Import Upstream version 0.66.4
[hcoop/debian/courier-authlib.git] / liblog / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for courierlogger 0.10.
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='courierlogger'
592 PACKAGE_TARNAME='courierlogger'
593 PACKAGE_VERSION='0.10'
594 PACKAGE_STRING='courierlogger 0.10'
595 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596 PACKAGE_URL=''
597
598 ac_unique_file="logger.c"
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 HAVE_SGML_FALSE
640 HAVE_SGML_TRUE
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 LN_S
672 am__fastdepCC_FALSE
673 am__fastdepCC_TRUE
674 CCDEPMODE
675 am__nodep
676 AMDEPBACKSLASH
677 AMDEP_FALSE
678 AMDEP_TRUE
679 am__quote
680 am__include
681 DEPDIR
682 OBJEXT
683 EXEEXT
684 ac_ct_CC
685 CPPFLAGS
686 LDFLAGS
687 CFLAGS
688 CC
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 enable_largefile
768 with_syslog
769 '
770 ac_precious_vars='build_alias
771 host_alias
772 target_alias
773 CC
774 CFLAGS
775 LDFLAGS
776 LIBS
777 CPPFLAGS
778 LT_SYS_LIBRARY_PATH
779 CPP'
780
781
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
803
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
829
830 ac_prev=
831 ac_dashdash=
832 for ac_option
833 do
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
837 ac_prev=
838 continue
839 fi
840
841 case $ac_option in
842 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *=) ac_optarg= ;;
844 *) ac_optarg=yes ;;
845 esac
846
847 # Accept the important Cygnus configure options, so we can diagnose typos.
848
849 case $ac_dashdash$ac_option in
850 --)
851 ac_dashdash=yes ;;
852
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 ac_prev=bindir ;;
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 bindir=$ac_optarg ;;
857
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
862
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
869
870 --config-cache | -C)
871 cache_file=config.cache ;;
872
873 -datadir | --datadir | --datadi | --datad)
874 ac_prev=datadir ;;
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
877
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
884
885 -disable-* | --disable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error $? "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
893 *"
894 "enable_$ac_useropt"
895 "*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
899 eval enable_$ac_useropt=no ;;
900
901 -docdir | --docdir | --docdi | --doc | --do)
902 ac_prev=docdir ;;
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 docdir=$ac_optarg ;;
905
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 ac_prev=dvidir ;;
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 dvidir=$ac_optarg ;;
910
911 -enable-* | --enable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
919 *"
920 "enable_$ac_useropt"
921 "*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=\$ac_optarg ;;
926
927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929 | --exec | --exe | --ex)
930 ac_prev=exec_prefix ;;
931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933 | --exec=* | --exe=* | --ex=*)
934 exec_prefix=$ac_optarg ;;
935
936 -gas | --gas | --ga | --g)
937 # Obsolete; use --with-gas.
938 with_gas=yes ;;
939
940 -help | --help | --hel | --he | -h)
941 ac_init_help=long ;;
942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943 ac_init_help=recursive ;;
944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945 ac_init_help=short ;;
946
947 -host | --host | --hos | --ho)
948 ac_prev=host_alias ;;
949 -host=* | --host=* | --hos=* | --ho=*)
950 host_alias=$ac_optarg ;;
951
952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 ac_prev=htmldir ;;
954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 | --ht=*)
956 htmldir=$ac_optarg ;;
957
958 -includedir | --includedir | --includedi | --included | --include \
959 | --includ | --inclu | --incl | --inc)
960 ac_prev=includedir ;;
961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962 | --includ=* | --inclu=* | --incl=* | --inc=*)
963 includedir=$ac_optarg ;;
964
965 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 ac_prev=infodir ;;
967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968 infodir=$ac_optarg ;;
969
970 -libdir | --libdir | --libdi | --libd)
971 ac_prev=libdir ;;
972 -libdir=* | --libdir=* | --libdi=* | --libd=*)
973 libdir=$ac_optarg ;;
974
975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976 | --libexe | --libex | --libe)
977 ac_prev=libexecdir ;;
978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979 | --libexe=* | --libex=* | --libe=*)
980 libexecdir=$ac_optarg ;;
981
982 -localedir | --localedir | --localedi | --localed | --locale)
983 ac_prev=localedir ;;
984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985 localedir=$ac_optarg ;;
986
987 -localstatedir | --localstatedir | --localstatedi | --localstated \
988 | --localstate | --localstat | --localsta | --localst | --locals)
989 ac_prev=localstatedir ;;
990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992 localstatedir=$ac_optarg ;;
993
994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 ac_prev=mandir ;;
996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997 mandir=$ac_optarg ;;
998
999 -nfp | --nfp | --nf)
1000 # Obsolete; use --without-fp.
1001 with_fp=no ;;
1002
1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004 | --no-cr | --no-c | -n)
1005 no_create=yes ;;
1006
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 no_recursion=yes ;;
1010
1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013 | --oldin | --oldi | --old | --ol | --o)
1014 ac_prev=oldincludedir ;;
1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018 oldincludedir=$ac_optarg ;;
1019
1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 ac_prev=prefix ;;
1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023 prefix=$ac_optarg ;;
1024
1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026 | --program-pre | --program-pr | --program-p)
1027 ac_prev=program_prefix ;;
1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030 program_prefix=$ac_optarg ;;
1031
1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033 | --program-suf | --program-su | --program-s)
1034 ac_prev=program_suffix ;;
1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037 program_suffix=$ac_optarg ;;
1038
1039 -program-transform-name | --program-transform-name \
1040 | --program-transform-nam | --program-transform-na \
1041 | --program-transform-n | --program-transform- \
1042 | --program-transform | --program-transfor \
1043 | --program-transfo | --program-transf \
1044 | --program-trans | --program-tran \
1045 | --progr-tra | --program-tr | --program-t)
1046 ac_prev=program_transform_name ;;
1047 -program-transform-name=* | --program-transform-name=* \
1048 | --program-transform-nam=* | --program-transform-na=* \
1049 | --program-transform-n=* | --program-transform-=* \
1050 | --program-transform=* | --program-transfor=* \
1051 | --program-transfo=* | --program-transf=* \
1052 | --program-trans=* | --program-tran=* \
1053 | --progr-tra=* | --program-tr=* | --program-t=*)
1054 program_transform_name=$ac_optarg ;;
1055
1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 ac_prev=pdfdir ;;
1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059 pdfdir=$ac_optarg ;;
1060
1061 -psdir | --psdir | --psdi | --psd | --ps)
1062 ac_prev=psdir ;;
1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 psdir=$ac_optarg ;;
1065
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 silent=yes ;;
1069
1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 ac_prev=sbindir ;;
1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 | --sbi=* | --sb=*)
1074 sbindir=$ac_optarg ;;
1075
1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078 | --sharedst | --shareds | --shared | --share | --shar \
1079 | --sha | --sh)
1080 ac_prev=sharedstatedir ;;
1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 | --sha=* | --sh=*)
1085 sharedstatedir=$ac_optarg ;;
1086
1087 -site | --site | --sit)
1088 ac_prev=site ;;
1089 -site=* | --site=* | --sit=*)
1090 site=$ac_optarg ;;
1091
1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 ac_prev=srcdir ;;
1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095 srcdir=$ac_optarg ;;
1096
1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098 | --syscon | --sysco | --sysc | --sys | --sy)
1099 ac_prev=sysconfdir ;;
1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102 sysconfdir=$ac_optarg ;;
1103
1104 -target | --target | --targe | --targ | --tar | --ta | --t)
1105 ac_prev=target_alias ;;
1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107 target_alias=$ac_optarg ;;
1108
1109 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 verbose=yes ;;
1111
1112 -version | --version | --versio | --versi | --vers | -V)
1113 ac_init_version=: ;;
1114
1115 -with-* | --with-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=\$ac_optarg ;;
1130
1131 -without-* | --without-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140 "with_$ac_useropt"
1141 "*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=no ;;
1146
1147 --x)
1148 # Obsolete; use --with-x.
1149 with_x=yes ;;
1150
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1157
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1164
1165 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information"
1167 ;;
1168
1169 *=*)
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175 esac
1176 eval $ac_envvar=\$ac_optarg
1177 export $ac_envvar ;;
1178
1179 *)
1180 # FIXME: should be removed in autoconf 3.0.
1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185 ;;
1186
1187 esac
1188 done
1189
1190 if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192 as_fn_error $? "missing argument to $ac_option"
1193 fi
1194
1195 if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1197 no) ;;
1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 esac
1201 fi
1202
1203 # Check all directory arguments for consistency.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1208 do
1209 eval ac_val=\$$ac_var
1210 # Remove trailing slashes.
1211 case $ac_val in
1212 */ )
1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\$ac_val;;
1215 esac
1216 # Be sure to have absolute directory names.
1217 case $ac_val in
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 esac
1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222 done
1223
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1227 build=$build_alias
1228 host=$host_alias
1229 target=$target_alias
1230
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238 fi
1239
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243 test "$silent" = yes && exec 6>/dev/null
1244
1245
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $? "pwd does not report name of working directory"
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
1281 srcdir=$ac_confdir
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 srcdir=..
1284 fi
1285 else
1286 ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291 fi
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 ac_abs_confdir=`(
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295 pwd)`
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299 fi
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1303 case $srcdir in
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 esac
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 done
1312
1313 #
1314 # Report the --help message.
1315 #
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
1320 \`configure' configures courierlogger 0.10 to adapt to many kinds of systems.
1321
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327 Defaults for the options are specified in brackets.
1328
1329 Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking ...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1344 [PREFIX]
1345
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1350
1351 For better control, use the options below.
1352
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/courierlogger]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1373 _ACEOF
1374
1375 cat <<\_ACEOF
1376
1377 Program names:
1378 --program-prefix=PREFIX prepend PREFIX to installed program names
1379 --program-suffix=SUFFIX append SUFFIX to installed program names
1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1381
1382 System types:
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1385 _ACEOF
1386 fi
1387
1388 if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short | recursive ) echo "Configuration of courierlogger 0.10:";;
1391 esac
1392 cat <<\_ACEOF
1393
1394 Optional Features:
1395 --disable-option-checking ignore unrecognized --enable/--with options
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-silent-rules less verbose build output (undo: "make V=1")
1399 --disable-silent-rules verbose build output (undo: "make V=0")
1400 --enable-dependency-tracking
1401 do not reject slow dependency extractors
1402 --disable-dependency-tracking
1403 speeds up one-time build
1404 --enable-shared[=PKGS] build shared libraries [default=yes]
1405 --enable-static[=PKGS] build static libraries [default=yes]
1406 --enable-fast-install[=PKGS]
1407 optimize for fast installation [default=yes]
1408 --disable-libtool-lock avoid locking (might break parallel builds)
1409 --disable-largefile omit support for large files
1410
1411 Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1415 both]
1416 --with-aix-soname=aix|svr4|both
1417 shared library versioning (aka "SONAME") variant to
1418 provide on AIX, [default=aix].
1419 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1420 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1421 compiler's sysroot if not specified).
1422 --with-syslog=XXX syslog facility [[MAIL]]
1423
1424 Some influential environment variables:
1425 CC C compiler command
1426 CFLAGS C compiler flags
1427 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1428 nonstandard directory <lib dir>
1429 LIBS libraries to pass to the linker, e.g. -l<library>
1430 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1431 you have headers in a nonstandard directory <include dir>
1432 LT_SYS_LIBRARY_PATH
1433 User-defined run-time library search path.
1434 CPP C preprocessor
1435
1436 Use these variables to override the choices made by `configure' or to help
1437 it to find libraries and programs with nonstandard names/locations.
1438
1439 Report bugs to <courier-users@lists.sourceforge.net>.
1440 _ACEOF
1441 ac_status=$?
1442 fi
1443
1444 if test "$ac_init_help" = "recursive"; then
1445 # If there are subdirs, report their specific --help.
1446 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1447 test -d "$ac_dir" ||
1448 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1449 continue
1450 ac_builddir=.
1451
1452 case "$ac_dir" in
1453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 *)
1455 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1456 # A ".." for each directory in $ac_dir_suffix.
1457 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1458 case $ac_top_builddir_sub in
1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461 esac ;;
1462 esac
1463 ac_abs_top_builddir=$ac_pwd
1464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465 # for backward compatibility:
1466 ac_top_builddir=$ac_top_build_prefix
1467
1468 case $srcdir in
1469 .) # We are building in place.
1470 ac_srcdir=.
1471 ac_top_srcdir=$ac_top_builddir_sub
1472 ac_abs_top_srcdir=$ac_pwd ;;
1473 [\\/]* | ?:[\\/]* ) # Absolute name.
1474 ac_srcdir=$srcdir$ac_dir_suffix;
1475 ac_top_srcdir=$srcdir
1476 ac_abs_top_srcdir=$srcdir ;;
1477 *) # Relative name.
1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479 ac_top_srcdir=$ac_top_build_prefix$srcdir
1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1481 esac
1482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1483
1484 cd "$ac_dir" || { ac_status=$?; continue; }
1485 # Check for guested configure.
1486 if test -f "$ac_srcdir/configure.gnu"; then
1487 echo &&
1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489 elif test -f "$ac_srcdir/configure"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure" --help=recursive
1492 else
1493 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1494 fi || ac_status=$?
1495 cd "$ac_pwd" || { ac_status=$?; break; }
1496 done
1497 fi
1498
1499 test -n "$ac_init_help" && exit $ac_status
1500 if $ac_init_version; then
1501 cat <<\_ACEOF
1502 courierlogger configure 0.10
1503 generated by GNU Autoconf 2.69
1504
1505 Copyright (C) 2012 Free Software Foundation, Inc.
1506 This configure script is free software; the Free Software Foundation
1507 gives unlimited permission to copy, distribute and modify it.
1508 _ACEOF
1509 exit
1510 fi
1511
1512 ## ------------------------ ##
1513 ## Autoconf initialization. ##
1514 ## ------------------------ ##
1515
1516 # ac_fn_c_try_compile LINENO
1517 # --------------------------
1518 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1519 ac_fn_c_try_compile ()
1520 {
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 rm -f conftest.$ac_objext
1523 if { { ac_try="$ac_compile"
1524 case "(($ac_try" in
1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526 *) ac_try_echo=$ac_try;;
1527 esac
1528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529 $as_echo "$ac_try_echo"; } >&5
1530 (eval "$ac_compile") 2>conftest.err
1531 ac_status=$?
1532 if test -s conftest.err; then
1533 grep -v '^ *+' conftest.err >conftest.er1
1534 cat conftest.er1 >&5
1535 mv -f conftest.er1 conftest.err
1536 fi
1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538 test $ac_status = 0; } && {
1539 test -z "$ac_c_werror_flag" ||
1540 test ! -s conftest.err
1541 } && test -s conftest.$ac_objext; then :
1542 ac_retval=0
1543 else
1544 $as_echo "$as_me: failed program was:" >&5
1545 sed 's/^/| /' conftest.$ac_ext >&5
1546
1547 ac_retval=1
1548 fi
1549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550 as_fn_set_status $ac_retval
1551
1552 } # ac_fn_c_try_compile
1553
1554 # ac_fn_c_try_link LINENO
1555 # -----------------------
1556 # Try to link conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_link ()
1558 {
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext conftest$ac_exeext
1561 if { { ac_try="$ac_link"
1562 case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565 esac
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_link") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1574 fi
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest$ac_exeext && {
1580 test "$cross_compiling" = yes ||
1581 test -x conftest$ac_exeext
1582 }; then :
1583 ac_retval=0
1584 else
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1587
1588 ac_retval=1
1589 fi
1590 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1591 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1592 # interfere with the next link command; also delete a directory that is
1593 # left behind by Apple's compiler. We do this before executing the actions.
1594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 as_fn_set_status $ac_retval
1597
1598 } # ac_fn_c_try_link
1599
1600 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1601 # -------------------------------------------------------
1602 # Tests whether HEADER exists and can be compiled using the include files in
1603 # INCLUDES, setting the cache variable VAR accordingly.
1604 ac_fn_c_check_header_compile ()
1605 {
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608 $as_echo_n "checking for $2... " >&6; }
1609 if eval \${$3+:} false; then :
1610 $as_echo_n "(cached) " >&6
1611 else
1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613 /* end confdefs.h. */
1614 $4
1615 #include <$2>
1616 _ACEOF
1617 if ac_fn_c_try_compile "$LINENO"; then :
1618 eval "$3=yes"
1619 else
1620 eval "$3=no"
1621 fi
1622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1623 fi
1624 eval ac_res=\$$3
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1626 $as_echo "$ac_res" >&6; }
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628
1629 } # ac_fn_c_check_header_compile
1630
1631 # ac_fn_c_try_cpp LINENO
1632 # ----------------------
1633 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_cpp ()
1635 {
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_cpp conftest.$ac_ext"
1638 case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1650 fi
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } > conftest.i && {
1653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 }; then :
1656 ac_retval=0
1657 else
1658 $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1660
1661 ac_retval=1
1662 fi
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 as_fn_set_status $ac_retval
1665
1666 } # ac_fn_c_try_cpp
1667
1668 # ac_fn_c_try_run LINENO
1669 # ----------------------
1670 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1671 # that executables *can* be run.
1672 ac_fn_c_try_run ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_link"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_link") 2>&5
1683 ac_status=$?
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1686 { { case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_try") 2>&5
1693 ac_status=$?
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; }; }; then :
1696 ac_retval=0
1697 else
1698 $as_echo "$as_me: program exited with status $ac_status" >&5
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=$ac_status
1703 fi
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_run
1709
1710 # ac_fn_c_check_func LINENO FUNC VAR
1711 # ----------------------------------
1712 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1713 ac_fn_c_check_func ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if eval \${$3+:} false; then :
1719 $as_echo_n "(cached) " >&6
1720 else
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1723 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1725 #define $2 innocuous_$2
1726
1727 /* System header to define __stub macros and hopefully few prototypes,
1728 which can conflict with char $2 (); below.
1729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1730 <limits.h> exists even on freestanding compilers. */
1731
1732 #ifdef __STDC__
1733 # include <limits.h>
1734 #else
1735 # include <assert.h>
1736 #endif
1737
1738 #undef $2
1739
1740 /* Override any GCC internal prototype to avoid an error.
1741 Use char because int might match the return type of a GCC
1742 builtin and then its argument prototype would still apply. */
1743 #ifdef __cplusplus
1744 extern "C"
1745 #endif
1746 char $2 ();
1747 /* The GNU C library defines this for functions which it implements
1748 to always fail with ENOSYS. Some functions are actually named
1749 something starting with __ and the normal name is an alias. */
1750 #if defined __stub_$2 || defined __stub___$2
1751 choke me
1752 #endif
1753
1754 int
1755 main ()
1756 {
1757 return $2 ();
1758 ;
1759 return 0;
1760 }
1761 _ACEOF
1762 if ac_fn_c_try_link "$LINENO"; then :
1763 eval "$3=yes"
1764 else
1765 eval "$3=no"
1766 fi
1767 rm -f core conftest.err conftest.$ac_objext \
1768 conftest$ac_exeext conftest.$ac_ext
1769 fi
1770 eval ac_res=\$$3
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774
1775 } # ac_fn_c_check_func
1776
1777 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1778 # -------------------------------------------------------
1779 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1780 # the include files in INCLUDES and setting the cache variable VAR
1781 # accordingly.
1782 ac_fn_c_check_header_mongrel ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if eval \${$3+:} false; then :
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1790 fi
1791 eval ac_res=\$$3
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1794 else
1795 # Is the header compilable?
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1797 $as_echo_n "checking $2 usability... " >&6; }
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1800 $4
1801 #include <$2>
1802 _ACEOF
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 ac_header_compiler=yes
1805 else
1806 ac_header_compiler=no
1807 fi
1808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1810 $as_echo "$ac_header_compiler" >&6; }
1811
1812 # Is the header present?
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1814 $as_echo_n "checking $2 presence... " >&6; }
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1817 #include <$2>
1818 _ACEOF
1819 if ac_fn_c_try_cpp "$LINENO"; then :
1820 ac_header_preproc=yes
1821 else
1822 ac_header_preproc=no
1823 fi
1824 rm -f conftest.err conftest.i conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1826 $as_echo "$ac_header_preproc" >&6; }
1827
1828 # So? What about this header?
1829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1830 yes:no: )
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1832 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 ;;
1836 no:yes:* )
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1838 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1840 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1842 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1844 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847 ( $as_echo "## -------------------------------------------------- ##
1848 ## Report this to courier-users@lists.sourceforge.net ##
1849 ## -------------------------------------------------- ##"
1850 ) | sed "s/^/$as_me: WARNING: /" >&2
1851 ;;
1852 esac
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857 else
1858 eval "$3=\$ac_header_compiler"
1859 fi
1860 eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863 fi
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866 } # ac_fn_c_check_header_mongrel
1867 cat >config.log <<_ACEOF
1868 This file contains any messages produced by compilers while
1869 running configure, to aid debugging if configure makes a mistake.
1870
1871 It was created by courierlogger $as_me 0.10, which was
1872 generated by GNU Autoconf 2.69. Invocation command line was
1873
1874 $ $0 $@
1875
1876 _ACEOF
1877 exec 5>>config.log
1878 {
1879 cat <<_ASUNAME
1880 ## --------- ##
1881 ## Platform. ##
1882 ## --------- ##
1883
1884 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1885 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1886 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1887 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1888 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1889
1890 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1891 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1892
1893 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1894 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1895 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1896 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1897 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1898 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1899 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1900
1901 _ASUNAME
1902
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1905 do
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
1908 $as_echo "PATH: $as_dir"
1909 done
1910 IFS=$as_save_IFS
1911
1912 } >&5
1913
1914 cat >&5 <<_ACEOF
1915
1916
1917 ## ----------- ##
1918 ## Core tests. ##
1919 ## ----------- ##
1920
1921 _ACEOF
1922
1923
1924 # Keep a trace of the command line.
1925 # Strip out --no-create and --no-recursion so they do not pile up.
1926 # Strip out --silent because we don't want to record it for future runs.
1927 # Also quote any args containing shell meta-characters.
1928 # Make two passes to allow for proper duplicate-argument suppression.
1929 ac_configure_args=
1930 ac_configure_args0=
1931 ac_configure_args1=
1932 ac_must_keep_next=false
1933 for ac_pass in 1 2
1934 do
1935 for ac_arg
1936 do
1937 case $ac_arg in
1938 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1939 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1940 | -silent | --silent | --silen | --sile | --sil)
1941 continue ;;
1942 *\'*)
1943 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1944 esac
1945 case $ac_pass in
1946 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1947 2)
1948 as_fn_append ac_configure_args1 " '$ac_arg'"
1949 if test $ac_must_keep_next = true; then
1950 ac_must_keep_next=false # Got value, back to normal.
1951 else
1952 case $ac_arg in
1953 *=* | --config-cache | -C | -disable-* | --disable-* \
1954 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1955 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1956 | -with-* | --with-* | -without-* | --without-* | --x)
1957 case "$ac_configure_args0 " in
1958 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1959 esac
1960 ;;
1961 -* ) ac_must_keep_next=true ;;
1962 esac
1963 fi
1964 as_fn_append ac_configure_args " '$ac_arg'"
1965 ;;
1966 esac
1967 done
1968 done
1969 { ac_configure_args0=; unset ac_configure_args0;}
1970 { ac_configure_args1=; unset ac_configure_args1;}
1971
1972 # When interrupted or exit'd, cleanup temporary files, and complete
1973 # config.log. We remove comments because anyway the quotes in there
1974 # would cause problems or look ugly.
1975 # WARNING: Use '\'' to represent an apostrophe within the trap.
1976 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1977 trap 'exit_status=$?
1978 # Save into config.log some information that might help in debugging.
1979 {
1980 echo
1981
1982 $as_echo "## ---------------- ##
1983 ## Cache variables. ##
1984 ## ---------------- ##"
1985 echo
1986 # The following way of writing the cache mishandles newlines in values,
1987 (
1988 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1989 eval ac_val=\$$ac_var
1990 case $ac_val in #(
1991 *${as_nl}*)
1992 case $ac_var in #(
1993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1995 esac
1996 case $ac_var in #(
1997 _ | IFS | as_nl) ;; #(
1998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1999 *) { eval $ac_var=; unset $ac_var;} ;;
2000 esac ;;
2001 esac
2002 done
2003 (set) 2>&1 |
2004 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2005 *${as_nl}ac_space=\ *)
2006 sed -n \
2007 "s/'\''/'\''\\\\'\'''\''/g;
2008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2009 ;; #(
2010 *)
2011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2012 ;;
2013 esac |
2014 sort
2015 )
2016 echo
2017
2018 $as_echo "## ----------------- ##
2019 ## Output variables. ##
2020 ## ----------------- ##"
2021 echo
2022 for ac_var in $ac_subst_vars
2023 do
2024 eval ac_val=\$$ac_var
2025 case $ac_val in
2026 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027 esac
2028 $as_echo "$ac_var='\''$ac_val'\''"
2029 done | sort
2030 echo
2031
2032 if test -n "$ac_subst_files"; then
2033 $as_echo "## ------------------- ##
2034 ## File substitutions. ##
2035 ## ------------------- ##"
2036 echo
2037 for ac_var in $ac_subst_files
2038 do
2039 eval ac_val=\$$ac_var
2040 case $ac_val in
2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042 esac
2043 $as_echo "$ac_var='\''$ac_val'\''"
2044 done | sort
2045 echo
2046 fi
2047
2048 if test -s confdefs.h; then
2049 $as_echo "## ----------- ##
2050 ## confdefs.h. ##
2051 ## ----------- ##"
2052 echo
2053 cat confdefs.h
2054 echo
2055 fi
2056 test "$ac_signal" != 0 &&
2057 $as_echo "$as_me: caught signal $ac_signal"
2058 $as_echo "$as_me: exit $exit_status"
2059 } >&5
2060 rm -f core *.core core.conftest.* &&
2061 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2062 exit $exit_status
2063 ' 0
2064 for ac_signal in 1 2 13 15; do
2065 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2066 done
2067 ac_signal=0
2068
2069 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2070 rm -f -r conftest* confdefs.h
2071
2072 $as_echo "/* confdefs.h */" > confdefs.h
2073
2074 # Predefined preprocessor variables.
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_NAME "$PACKAGE_NAME"
2078 _ACEOF
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2082 _ACEOF
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2086 _ACEOF
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_STRING "$PACKAGE_STRING"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_URL "$PACKAGE_URL"
2098 _ACEOF
2099
2100
2101 # Let the site file select an alternate cache file if it wants to.
2102 # Prefer an explicitly selected file to automatically selected ones.
2103 ac_site_file1=NONE
2104 ac_site_file2=NONE
2105 if test -n "$CONFIG_SITE"; then
2106 # We do not want a PATH search for config.site.
2107 case $CONFIG_SITE in #((
2108 -*) ac_site_file1=./$CONFIG_SITE;;
2109 */*) ac_site_file1=$CONFIG_SITE;;
2110 *) ac_site_file1=./$CONFIG_SITE;;
2111 esac
2112 elif test "x$prefix" != xNONE; then
2113 ac_site_file1=$prefix/share/config.site
2114 ac_site_file2=$prefix/etc/config.site
2115 else
2116 ac_site_file1=$ac_default_prefix/share/config.site
2117 ac_site_file2=$ac_default_prefix/etc/config.site
2118 fi
2119 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2120 do
2121 test "x$ac_site_file" = xNONE && continue
2122 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2124 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2125 sed 's/^/| /' "$ac_site_file" >&5
2126 . "$ac_site_file" \
2127 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2129 as_fn_error $? "failed to load site script $ac_site_file
2130 See \`config.log' for more details" "$LINENO" 5; }
2131 fi
2132 done
2133
2134 if test -r "$cache_file"; then
2135 # Some versions of bash will fail to source /dev/null (special files
2136 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2137 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2139 $as_echo "$as_me: loading cache $cache_file" >&6;}
2140 case $cache_file in
2141 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2142 *) . "./$cache_file";;
2143 esac
2144 fi
2145 else
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2147 $as_echo "$as_me: creating cache $cache_file" >&6;}
2148 >$cache_file
2149 fi
2150
2151 # Check that the precious variables saved in the cache have kept the same
2152 # value.
2153 ac_cache_corrupted=false
2154 for ac_var in $ac_precious_vars; do
2155 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2156 eval ac_new_set=\$ac_env_${ac_var}_set
2157 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2158 eval ac_new_val=\$ac_env_${ac_var}_value
2159 case $ac_old_set,$ac_new_set in
2160 set,)
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2162 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2163 ac_cache_corrupted=: ;;
2164 ,set)
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2166 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2167 ac_cache_corrupted=: ;;
2168 ,);;
2169 *)
2170 if test "x$ac_old_val" != "x$ac_new_val"; then
2171 # differences in whitespace do not lead to failure.
2172 ac_old_val_w=`echo x $ac_old_val`
2173 ac_new_val_w=`echo x $ac_new_val`
2174 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2176 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2177 ac_cache_corrupted=:
2178 else
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2180 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2181 eval $ac_var=\$ac_old_val
2182 fi
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2184 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2186 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2187 fi;;
2188 esac
2189 # Pass precious variables to config.status.
2190 if test "$ac_new_set" = set; then
2191 case $ac_new_val in
2192 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2193 *) ac_arg=$ac_var=$ac_new_val ;;
2194 esac
2195 case " $ac_configure_args " in
2196 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2197 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2198 esac
2199 fi
2200 done
2201 if $ac_cache_corrupted; then
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2205 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2206 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2207 fi
2208 ## -------------------- ##
2209 ## Main body of script. ##
2210 ## -------------------- ##
2211
2212 ac_ext=c
2213 ac_cpp='$CPP $CPPFLAGS'
2214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2217
2218
2219
2220 >confdefs.h # Kill PACKAGE_ macros.
2221 LPATH="$PATH:/usr/local/bin"
2222
2223 ac_aux_dir=
2224 for ac_dir in .. "$srcdir"/..; do
2225 if test -f "$ac_dir/install-sh"; then
2226 ac_aux_dir=$ac_dir
2227 ac_install_sh="$ac_aux_dir/install-sh -c"
2228 break
2229 elif test -f "$ac_dir/install.sh"; then
2230 ac_aux_dir=$ac_dir
2231 ac_install_sh="$ac_aux_dir/install.sh -c"
2232 break
2233 elif test -f "$ac_dir/shtool"; then
2234 ac_aux_dir=$ac_dir
2235 ac_install_sh="$ac_aux_dir/shtool install -c"
2236 break
2237 fi
2238 done
2239 if test -z "$ac_aux_dir"; then
2240 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2241 fi
2242
2243 # These three variables are undocumented and unsupported,
2244 # and are intended to be withdrawn in a future Autoconf release.
2245 # They can cause serious problems if a builder's source tree is in a directory
2246 # whose full name contains unusual characters.
2247 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2248 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2249 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2250
2251
2252 am__api_version='1.15'
2253
2254 # Find a good install program. We prefer a C program (faster),
2255 # so one script is as good as another. But avoid the broken or
2256 # incompatible versions:
2257 # SysV /etc/install, /usr/sbin/install
2258 # SunOS /usr/etc/install
2259 # IRIX /sbin/install
2260 # AIX /bin/install
2261 # AmigaOS /C/install, which installs bootblocks on floppy discs
2262 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2263 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2264 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2265 # OS/2's system install, which has a completely different semantic
2266 # ./install, which can be erroneously created by make from ./install.sh.
2267 # Reject install programs that cannot install multiple files.
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2269 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2270 if test -z "$INSTALL"; then
2271 if ${ac_cv_path_install+:} false; then :
2272 $as_echo_n "(cached) " >&6
2273 else
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 for as_dir in $PATH
2276 do
2277 IFS=$as_save_IFS
2278 test -z "$as_dir" && as_dir=.
2279 # Account for people who put trailing slashes in PATH elements.
2280 case $as_dir/ in #((
2281 ./ | .// | /[cC]/* | \
2282 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2283 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2284 /usr/ucb/* ) ;;
2285 *)
2286 # OSF1 and SCO ODT 3.0 have their own names for install.
2287 # Don't use installbsd from OSF since it installs stuff as root
2288 # by default.
2289 for ac_prog in ginstall scoinst install; do
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2292 if test $ac_prog = install &&
2293 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2294 # AIX install. It has an incompatible calling convention.
2295 :
2296 elif test $ac_prog = install &&
2297 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2298 # program-specific install script used by HP pwplus--don't use.
2299 :
2300 else
2301 rm -rf conftest.one conftest.two conftest.dir
2302 echo one > conftest.one
2303 echo two > conftest.two
2304 mkdir conftest.dir
2305 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2306 test -s conftest.one && test -s conftest.two &&
2307 test -s conftest.dir/conftest.one &&
2308 test -s conftest.dir/conftest.two
2309 then
2310 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2311 break 3
2312 fi
2313 fi
2314 fi
2315 done
2316 done
2317 ;;
2318 esac
2319
2320 done
2321 IFS=$as_save_IFS
2322
2323 rm -rf conftest.one conftest.two conftest.dir
2324
2325 fi
2326 if test "${ac_cv_path_install+set}" = set; then
2327 INSTALL=$ac_cv_path_install
2328 else
2329 # As a last resort, use the slow shell script. Don't cache a
2330 # value for INSTALL within a source directory, because that will
2331 # break other packages using the cache if that directory is
2332 # removed, or if the value is a relative name.
2333 INSTALL=$ac_install_sh
2334 fi
2335 fi
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2337 $as_echo "$INSTALL" >&6; }
2338
2339 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2340 # It thinks the first close brace ends the variable substitution.
2341 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2342
2343 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2344
2345 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2346
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2348 $as_echo_n "checking whether build environment is sane... " >&6; }
2349 # Reject unsafe characters in $srcdir or the absolute working directory
2350 # name. Accept space and tab only in the latter.
2351 am_lf='
2352 '
2353 case `pwd` in
2354 *[\\\"\#\$\&\'\`$am_lf]*)
2355 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2356 esac
2357 case $srcdir in
2358 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2359 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2360 esac
2361
2362 # Do 'set' in a subshell so we don't clobber the current shell's
2363 # arguments. Must try -L first in case configure is actually a
2364 # symlink; some systems play weird games with the mod time of symlinks
2365 # (eg FreeBSD returns the mod time of the symlink's containing
2366 # directory).
2367 if (
2368 am_has_slept=no
2369 for am_try in 1 2; do
2370 echo "timestamp, slept: $am_has_slept" > conftest.file
2371 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2372 if test "$*" = "X"; then
2373 # -L didn't work.
2374 set X `ls -t "$srcdir/configure" conftest.file`
2375 fi
2376 if test "$*" != "X $srcdir/configure conftest.file" \
2377 && test "$*" != "X conftest.file $srcdir/configure"; then
2378
2379 # If neither matched, then we have a broken ls. This can happen
2380 # if, for instance, CONFIG_SHELL is bash and it inherits a
2381 # broken ls alias from the environment. This has actually
2382 # happened. Such a system could not be considered "sane".
2383 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2384 alias in your environment" "$LINENO" 5
2385 fi
2386 if test "$2" = conftest.file || test $am_try -eq 2; then
2387 break
2388 fi
2389 # Just in case.
2390 sleep 1
2391 am_has_slept=yes
2392 done
2393 test "$2" = conftest.file
2394 )
2395 then
2396 # Ok.
2397 :
2398 else
2399 as_fn_error $? "newly created file is older than distributed files!
2400 Check your system clock" "$LINENO" 5
2401 fi
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2403 $as_echo "yes" >&6; }
2404 # If we didn't sleep, we still need to ensure time stamps of config.status and
2405 # generated files are strictly newer.
2406 am_sleep_pid=
2407 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2408 ( sleep 1 ) &
2409 am_sleep_pid=$!
2410 fi
2411
2412 rm -f conftest.file
2413
2414 test "$program_prefix" != NONE &&
2415 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2416 # Use a double $ so make ignores it.
2417 test "$program_suffix" != NONE &&
2418 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2419 # Double any \ or $.
2420 # By default was `s,x,x', remove it if useless.
2421 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2422 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2423
2424 # Expand $ac_aux_dir to an absolute path.
2425 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2426
2427 if test x"${MISSING+set}" != xset; then
2428 case $am_aux_dir in
2429 *\ * | *\ *)
2430 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2431 *)
2432 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2433 esac
2434 fi
2435 # Use eval to expand $SHELL
2436 if eval "$MISSING --is-lightweight"; then
2437 am_missing_run="$MISSING "
2438 else
2439 am_missing_run=
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2441 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2442 fi
2443
2444 if test x"${install_sh+set}" != xset; then
2445 case $am_aux_dir in
2446 *\ * | *\ *)
2447 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2448 *)
2449 install_sh="\${SHELL} $am_aux_dir/install-sh"
2450 esac
2451 fi
2452
2453 # Installed binaries are usually stripped using 'strip' when the user
2454 # run "make install-strip". However 'strip' might not be the right
2455 # tool to use in cross-compilation environments, therefore Automake
2456 # will honor the 'STRIP' environment variable to overrule this program.
2457 if test "$cross_compiling" != no; then
2458 if test -n "$ac_tool_prefix"; then
2459 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2460 set dummy ${ac_tool_prefix}strip; ac_word=$2
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if ${ac_cv_prog_STRIP+:} false; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 if test -n "$STRIP"; then
2467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 break 2
2479 fi
2480 done
2481 done
2482 IFS=$as_save_IFS
2483
2484 fi
2485 fi
2486 STRIP=$ac_cv_prog_STRIP
2487 if test -n "$STRIP"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2489 $as_echo "$STRIP" >&6; }
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2493 fi
2494
2495
2496 fi
2497 if test -z "$ac_cv_prog_STRIP"; then
2498 ac_ct_STRIP=$STRIP
2499 # Extract the first word of "strip", so it can be a program name with args.
2500 set dummy strip; ac_word=$2
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2502 $as_echo_n "checking for $ac_word... " >&6; }
2503 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 if test -n "$ac_ct_STRIP"; then
2507 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2516 ac_cv_prog_ac_ct_STRIP="strip"
2517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 break 2
2519 fi
2520 done
2521 done
2522 IFS=$as_save_IFS
2523
2524 fi
2525 fi
2526 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2527 if test -n "$ac_ct_STRIP"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2529 $as_echo "$ac_ct_STRIP" >&6; }
2530 else
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2532 $as_echo "no" >&6; }
2533 fi
2534
2535 if test "x$ac_ct_STRIP" = x; then
2536 STRIP=":"
2537 else
2538 case $cross_compiling:$ac_tool_warned in
2539 yes:)
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2542 ac_tool_warned=yes ;;
2543 esac
2544 STRIP=$ac_ct_STRIP
2545 fi
2546 else
2547 STRIP="$ac_cv_prog_STRIP"
2548 fi
2549
2550 fi
2551 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2552
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2554 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2555 if test -z "$MKDIR_P"; then
2556 if ${ac_cv_path_mkdir+:} false; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2561 do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_prog in mkdir gmkdir; do
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2567 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2568 'mkdir (GNU coreutils) '* | \
2569 'mkdir (coreutils) '* | \
2570 'mkdir (fileutils) '4.1*)
2571 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2572 break 3;;
2573 esac
2574 done
2575 done
2576 done
2577 IFS=$as_save_IFS
2578
2579 fi
2580
2581 test -d ./--version && rmdir ./--version
2582 if test "${ac_cv_path_mkdir+set}" = set; then
2583 MKDIR_P="$ac_cv_path_mkdir -p"
2584 else
2585 # As a last resort, use the slow shell script. Don't cache a
2586 # value for MKDIR_P within a source directory, because that will
2587 # break other packages using the cache if that directory is
2588 # removed, or if the value is a relative name.
2589 MKDIR_P="$ac_install_sh -d"
2590 fi
2591 fi
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2593 $as_echo "$MKDIR_P" >&6; }
2594
2595 for ac_prog in gawk mawk nawk awk
2596 do
2597 # Extract the first word of "$ac_prog", so it can be a program name with args.
2598 set dummy $ac_prog; ac_word=$2
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600 $as_echo_n "checking for $ac_word... " >&6; }
2601 if ${ac_cv_prog_AWK+:} false; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 if test -n "$AWK"; then
2605 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2609 do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2614 ac_cv_prog_AWK="$ac_prog"
2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2617 fi
2618 done
2619 done
2620 IFS=$as_save_IFS
2621
2622 fi
2623 fi
2624 AWK=$ac_cv_prog_AWK
2625 if test -n "$AWK"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2627 $as_echo "$AWK" >&6; }
2628 else
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630 $as_echo "no" >&6; }
2631 fi
2632
2633
2634 test -n "$AWK" && break
2635 done
2636
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2638 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2639 set x ${MAKE-make}
2640 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2641 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 cat >conftest.make <<\_ACEOF
2645 SHELL = /bin/sh
2646 all:
2647 @echo '@@@%%%=$(MAKE)=@@@%%%'
2648 _ACEOF
2649 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2650 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2651 *@@@%%%=?*=@@@%%%*)
2652 eval ac_cv_prog_make_${ac_make}_set=yes;;
2653 *)
2654 eval ac_cv_prog_make_${ac_make}_set=no;;
2655 esac
2656 rm -f conftest.make
2657 fi
2658 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2660 $as_echo "yes" >&6; }
2661 SET_MAKE=
2662 else
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664 $as_echo "no" >&6; }
2665 SET_MAKE="MAKE=${MAKE-make}"
2666 fi
2667
2668 rm -rf .tst 2>/dev/null
2669 mkdir .tst 2>/dev/null
2670 if test -d .tst; then
2671 am__leading_dot=.
2672 else
2673 am__leading_dot=_
2674 fi
2675 rmdir .tst 2>/dev/null
2676
2677 # Check whether --enable-silent-rules was given.
2678 if test "${enable_silent_rules+set}" = set; then :
2679 enableval=$enable_silent_rules;
2680 fi
2681
2682 case $enable_silent_rules in # (((
2683 yes) AM_DEFAULT_VERBOSITY=0;;
2684 no) AM_DEFAULT_VERBOSITY=1;;
2685 *) AM_DEFAULT_VERBOSITY=1;;
2686 esac
2687 am_make=${MAKE-make}
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2689 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2690 if ${am_cv_make_support_nested_variables+:} false; then :
2691 $as_echo_n "(cached) " >&6
2692 else
2693 if $as_echo 'TRUE=$(BAR$(V))
2694 BAR0=false
2695 BAR1=true
2696 V=1
2697 am__doit:
2698 @$(TRUE)
2699 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2700 am_cv_make_support_nested_variables=yes
2701 else
2702 am_cv_make_support_nested_variables=no
2703 fi
2704 fi
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2706 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2707 if test $am_cv_make_support_nested_variables = yes; then
2708 AM_V='$(V)'
2709 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2710 else
2711 AM_V=$AM_DEFAULT_VERBOSITY
2712 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2713 fi
2714 AM_BACKSLASH='\'
2715
2716 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2717 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2718 # is not polluted with repeated "-I."
2719 am__isrc=' -I$(srcdir)'
2720 # test to see if srcdir already configured
2721 if test -f $srcdir/config.status; then
2722 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2723 fi
2724 fi
2725
2726 # test whether we have cygpath
2727 if test -z "$CYGPATH_W"; then
2728 if (cygpath --version) >/dev/null 2>/dev/null; then
2729 CYGPATH_W='cygpath -w'
2730 else
2731 CYGPATH_W=echo
2732 fi
2733 fi
2734
2735
2736 # Define the identity of the package.
2737 PACKAGE='courierlogger'
2738 VERSION='0.10'
2739
2740
2741 # Some tools Automake needs.
2742
2743 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2744
2745
2746 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2747
2748
2749 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2750
2751
2752 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2753
2754
2755 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2756
2757 # For better backward compatibility. To be removed once Automake 1.9.x
2758 # dies out for good. For more background, see:
2759 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2760 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2761 mkdir_p='$(MKDIR_P)'
2762
2763 # We need awk for the "check" target (and possibly the TAP driver). The
2764 # system "awk" is bad on some platforms.
2765 # Always define AMTAR for backward compatibility. Yes, it's still used
2766 # in the wild :-( We should find a proper way to deprecate it ...
2767 AMTAR='$${TAR-tar}'
2768
2769
2770 # We'll loop over all known methods to create a tar archive until one works.
2771 _am_tools='gnutar pax cpio none'
2772
2773 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2774
2775
2776
2777
2778
2779
2780 # POSIX will say in a future version that running "rm -f" with no argument
2781 # is OK; and we want to be able to make that assumption in our Makefile
2782 # recipes. So use an aggressive probe to check that the usage we want is
2783 # actually supported "in the wild" to an acceptable degree.
2784 # See automake bug#10828.
2785 # To make any issue more visible, cause the running configure to be aborted
2786 # by default if the 'rm' program in use doesn't match our expectations; the
2787 # user can still override this though.
2788 if rm -f && rm -fr && rm -rf; then : OK; else
2789 cat >&2 <<'END'
2790 Oops!
2791
2792 Your 'rm' program seems unable to run without file operands specified
2793 on the command line, even when the '-f' option is present. This is contrary
2794 to the behaviour of most rm programs out there, and not conforming with
2795 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2796
2797 Please tell bug-automake@gnu.org about your system, including the value
2798 of your $PATH and any error possibly output before this message. This
2799 can help us improve future automake versions.
2800
2801 END
2802 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2803 echo 'Configuration will proceed anyway, since you have set the' >&2
2804 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2805 echo >&2
2806 else
2807 cat >&2 <<'END'
2808 Aborting the configuration process, to ensure you take notice of the issue.
2809
2810 You can download and install GNU coreutils to get an 'rm' implementation
2811 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2812
2813 If you want to complete the configuration process using your problematic
2814 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2815 to "yes", and re-run configure.
2816
2817 END
2818 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2819 fi
2820 fi
2821
2822 ac_config_headers="$ac_config_headers config.h"
2823
2824
2825 ac_ext=c
2826 ac_cpp='$CPP $CPPFLAGS'
2827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2830 if test -n "$ac_tool_prefix"; then
2831 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2832 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if ${ac_cv_prog_CC+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC="$CC" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 fi
2857 fi
2858 CC=$ac_cv_prog_CC
2859 if test -n "$CC"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2861 $as_echo "$CC" >&6; }
2862 else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2865 fi
2866
2867
2868 fi
2869 if test -z "$ac_cv_prog_CC"; then
2870 ac_ct_CC=$CC
2871 # Extract the first word of "gcc", so it can be a program name with args.
2872 set dummy gcc; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 if test -n "$ac_ct_CC"; then
2879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_ac_ct_CC="gcc"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 fi
2897 fi
2898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2899 if test -n "$ac_ct_CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2901 $as_echo "$ac_ct_CC" >&6; }
2902 else
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2905 fi
2906
2907 if test "x$ac_ct_CC" = x; then
2908 CC=""
2909 else
2910 case $cross_compiling:$ac_tool_warned in
2911 yes:)
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2914 ac_tool_warned=yes ;;
2915 esac
2916 CC=$ac_ct_CC
2917 fi
2918 else
2919 CC="$ac_cv_prog_CC"
2920 fi
2921
2922 if test -z "$CC"; then
2923 if test -n "$ac_tool_prefix"; then
2924 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2925 set dummy ${ac_tool_prefix}cc; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if ${ac_cv_prog_CC+:} false; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 if test -n "$CC"; then
2932 ac_cv_prog_CC="$CC" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941 ac_cv_prog_CC="${ac_tool_prefix}cc"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2944 fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 CC=$ac_cv_prog_CC
2952 if test -n "$CC"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2954 $as_echo "$CC" >&6; }
2955 else
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2958 fi
2959
2960
2961 fi
2962 fi
2963 if test -z "$CC"; then
2964 # Extract the first word of "cc", so it can be a program name with args.
2965 set dummy cc; ac_word=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if ${ac_cv_prog_CC+:} false; then :
2969 $as_echo_n "(cached) " >&6
2970 else
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2973 else
2974 ac_prog_rejected=no
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2983 ac_prog_rejected=yes
2984 continue
2985 fi
2986 ac_cv_prog_CC="cc"
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2989 fi
2990 done
2991 done
2992 IFS=$as_save_IFS
2993
2994 if test $ac_prog_rejected = yes; then
2995 # We found a bogon in the path, so make sure we never use it.
2996 set dummy $ac_cv_prog_CC
2997 shift
2998 if test $# != 0; then
2999 # We chose a different compiler from the bogus one.
3000 # However, it has the same basename, so the bogon will be chosen
3001 # first if we set CC to just the basename; use the full file name.
3002 shift
3003 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3004 fi
3005 fi
3006 fi
3007 fi
3008 CC=$ac_cv_prog_CC
3009 if test -n "$CC"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011 $as_echo "$CC" >&6; }
3012 else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3015 fi
3016
3017
3018 fi
3019 if test -z "$CC"; then
3020 if test -n "$ac_tool_prefix"; then
3021 for ac_prog in cl.exe
3022 do
3023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_CC+:} false; then :
3028 $as_echo_n "(cached) " >&6
3029 else
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036 IFS=$as_save_IFS
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 break 2
3043 fi
3044 done
3045 done
3046 IFS=$as_save_IFS
3047
3048 fi
3049 fi
3050 CC=$ac_cv_prog_CC
3051 if test -n "$CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3053 $as_echo "$CC" >&6; }
3054 else
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3057 fi
3058
3059
3060 test -n "$CC" && break
3061 done
3062 fi
3063 if test -z "$CC"; then
3064 ac_ct_CC=$CC
3065 for ac_prog in cl.exe
3066 do
3067 # Extract the first word of "$ac_prog", so it can be a program name with args.
3068 set dummy $ac_prog; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3072 $as_echo_n "(cached) " >&6
3073 else
3074 if test -n "$ac_ct_CC"; then
3075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084 ac_cv_prog_ac_ct_CC="$ac_prog"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 break 2
3087 fi
3088 done
3089 done
3090 IFS=$as_save_IFS
3091
3092 fi
3093 fi
3094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3095 if test -n "$ac_ct_CC"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3097 $as_echo "$ac_ct_CC" >&6; }
3098 else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3101 fi
3102
3103
3104 test -n "$ac_ct_CC" && break
3105 done
3106
3107 if test "x$ac_ct_CC" = x; then
3108 CC=""
3109 else
3110 case $cross_compiling:$ac_tool_warned in
3111 yes:)
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3114 ac_tool_warned=yes ;;
3115 esac
3116 CC=$ac_ct_CC
3117 fi
3118 fi
3119
3120 fi
3121
3122
3123 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125 as_fn_error $? "no acceptable C compiler found in \$PATH
3126 See \`config.log' for more details" "$LINENO" 5; }
3127
3128 # Provide some information about the compiler.
3129 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3130 set X $ac_compile
3131 ac_compiler=$2
3132 for ac_option in --version -v -V -qversion; do
3133 { { ac_try="$ac_compiler $ac_option >&5"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139 $as_echo "$ac_try_echo"; } >&5
3140 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3141 ac_status=$?
3142 if test -s conftest.err; then
3143 sed '10a\
3144 ... rest of stderr output deleted ...
3145 10q' conftest.err >conftest.er1
3146 cat conftest.er1 >&5
3147 fi
3148 rm -f conftest.er1 conftest.err
3149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150 test $ac_status = 0; }
3151 done
3152
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3155
3156 int
3157 main ()
3158 {
3159
3160 ;
3161 return 0;
3162 }
3163 _ACEOF
3164 ac_clean_files_save=$ac_clean_files
3165 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3166 # Try to create an executable without -o first, disregard a.out.
3167 # It will help us diagnose broken compilers, and finding out an intuition
3168 # of exeext.
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3170 $as_echo_n "checking whether the C compiler works... " >&6; }
3171 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3172
3173 # The possible output files:
3174 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3175
3176 ac_rmfiles=
3177 for ac_file in $ac_files
3178 do
3179 case $ac_file in
3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3181 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3182 esac
3183 done
3184 rm -f $ac_rmfiles
3185
3186 if { { ac_try="$ac_link_default"
3187 case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192 $as_echo "$ac_try_echo"; } >&5
3193 (eval "$ac_link_default") 2>&5
3194 ac_status=$?
3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }; then :
3197 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3198 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3199 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3200 # so that the user can short-circuit this test for compilers unknown to
3201 # Autoconf.
3202 for ac_file in $ac_files ''
3203 do
3204 test -f "$ac_file" || continue
3205 case $ac_file in
3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3207 ;;
3208 [ab].out )
3209 # We found the default executable, but exeext='' is most
3210 # certainly right.
3211 break;;
3212 *.* )
3213 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3214 then :; else
3215 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3216 fi
3217 # We set ac_cv_exeext here because the later test for it is not
3218 # safe: cross compilers may not add the suffix if given an `-o'
3219 # argument, so we may need to know it at that point already.
3220 # Even if this section looks crufty: it has the advantage of
3221 # actually working.
3222 break;;
3223 * )
3224 break;;
3225 esac
3226 done
3227 test "$ac_cv_exeext" = no && ac_cv_exeext=
3228
3229 else
3230 ac_file=''
3231 fi
3232 if test -z "$ac_file"; then :
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 $as_echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3237
3238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240 as_fn_error 77 "C compiler cannot create executables
3241 See \`config.log' for more details" "$LINENO" 5; }
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3244 $as_echo "yes" >&6; }
3245 fi
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3247 $as_echo_n "checking for C compiler default output file name... " >&6; }
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3249 $as_echo "$ac_file" >&6; }
3250 ac_exeext=$ac_cv_exeext
3251
3252 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3253 ac_clean_files=$ac_clean_files_save
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3255 $as_echo_n "checking for suffix of executables... " >&6; }
3256 if { { ac_try="$ac_link"
3257 case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262 $as_echo "$ac_try_echo"; } >&5
3263 (eval "$ac_link") 2>&5
3264 ac_status=$?
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; then :
3267 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3268 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3269 # work properly (i.e., refer to `conftest.exe'), while it won't with
3270 # `rm'.
3271 for ac_file in conftest.exe conftest conftest.*; do
3272 test -f "$ac_file" || continue
3273 case $ac_file in
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3275 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3276 break;;
3277 * ) break;;
3278 esac
3279 done
3280 else
3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3284 See \`config.log' for more details" "$LINENO" 5; }
3285 fi
3286 rm -f conftest conftest$ac_cv_exeext
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3288 $as_echo "$ac_cv_exeext" >&6; }
3289
3290 rm -f conftest.$ac_ext
3291 EXEEXT=$ac_cv_exeext
3292 ac_exeext=$EXEEXT
3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3295 #include <stdio.h>
3296 int
3297 main ()
3298 {
3299 FILE *f = fopen ("conftest.out", "w");
3300 return ferror (f) || fclose (f) != 0;
3301
3302 ;
3303 return 0;
3304 }
3305 _ACEOF
3306 ac_clean_files="$ac_clean_files conftest.out"
3307 # Check that the compiler produces executables we can run. If not, either
3308 # the compiler is broken, or we cross compile.
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3310 $as_echo_n "checking whether we are cross compiling... " >&6; }
3311 if test "$cross_compiling" != yes; then
3312 { { ac_try="$ac_link"
3313 case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316 esac
3317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318 $as_echo "$ac_try_echo"; } >&5
3319 (eval "$ac_link") 2>&5
3320 ac_status=$?
3321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322 test $ac_status = 0; }
3323 if { ac_try='./conftest$ac_cv_exeext'
3324 { { case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_try") 2>&5
3331 ac_status=$?
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }; }; then
3334 cross_compiling=no
3335 else
3336 if test "$cross_compiling" = maybe; then
3337 cross_compiling=yes
3338 else
3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 as_fn_error $? "cannot run C compiled programs.
3342 If you meant to cross compile, use \`--host'.
3343 See \`config.log' for more details" "$LINENO" 5; }
3344 fi
3345 fi
3346 fi
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3348 $as_echo "$cross_compiling" >&6; }
3349
3350 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3351 ac_clean_files=$ac_clean_files_save
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3353 $as_echo_n "checking for suffix of object files... " >&6; }
3354 if ${ac_cv_objext+:} false; then :
3355 $as_echo_n "(cached) " >&6
3356 else
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3359
3360 int
3361 main ()
3362 {
3363
3364 ;
3365 return 0;
3366 }
3367 _ACEOF
3368 rm -f conftest.o conftest.obj
3369 if { { ac_try="$ac_compile"
3370 case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373 esac
3374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375 $as_echo "$ac_try_echo"; } >&5
3376 (eval "$ac_compile") 2>&5
3377 ac_status=$?
3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379 test $ac_status = 0; }; then :
3380 for ac_file in conftest.o conftest.obj conftest.*; do
3381 test -f "$ac_file" || continue;
3382 case $ac_file in
3383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3384 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3385 break;;
3386 esac
3387 done
3388 else
3389 $as_echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3391
3392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394 as_fn_error $? "cannot compute suffix of object files: cannot compile
3395 See \`config.log' for more details" "$LINENO" 5; }
3396 fi
3397 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3398 fi
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3400 $as_echo "$ac_cv_objext" >&6; }
3401 OBJEXT=$ac_cv_objext
3402 ac_objext=$OBJEXT
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3404 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3405 if ${ac_cv_c_compiler_gnu+:} false; then :
3406 $as_echo_n "(cached) " >&6
3407 else
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3410
3411 int
3412 main ()
3413 {
3414 #ifndef __GNUC__
3415 choke me
3416 #endif
3417
3418 ;
3419 return 0;
3420 }
3421 _ACEOF
3422 if ac_fn_c_try_compile "$LINENO"; then :
3423 ac_compiler_gnu=yes
3424 else
3425 ac_compiler_gnu=no
3426 fi
3427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3429
3430 fi
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3432 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3433 if test $ac_compiler_gnu = yes; then
3434 GCC=yes
3435 else
3436 GCC=
3437 fi
3438 ac_test_CFLAGS=${CFLAGS+set}
3439 ac_save_CFLAGS=$CFLAGS
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3441 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3442 if ${ac_cv_prog_cc_g+:} false; then :
3443 $as_echo_n "(cached) " >&6
3444 else
3445 ac_save_c_werror_flag=$ac_c_werror_flag
3446 ac_c_werror_flag=yes
3447 ac_cv_prog_cc_g=no
3448 CFLAGS="-g"
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3451
3452 int
3453 main ()
3454 {
3455
3456 ;
3457 return 0;
3458 }
3459 _ACEOF
3460 if ac_fn_c_try_compile "$LINENO"; then :
3461 ac_cv_prog_cc_g=yes
3462 else
3463 CFLAGS=""
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
3477 else
3478 ac_c_werror_flag=$ac_save_c_werror_flag
3479 CFLAGS="-g"
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3482
3483 int
3484 main ()
3485 {
3486
3487 ;
3488 return 0;
3489 }
3490 _ACEOF
3491 if ac_fn_c_try_compile "$LINENO"; then :
3492 ac_cv_prog_cc_g=yes
3493 fi
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 fi
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 fi
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_c_werror_flag=$ac_save_c_werror_flag
3500 fi
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3502 $as_echo "$ac_cv_prog_cc_g" >&6; }
3503 if test "$ac_test_CFLAGS" = set; then
3504 CFLAGS=$ac_save_CFLAGS
3505 elif test $ac_cv_prog_cc_g = yes; then
3506 if test "$GCC" = yes; then
3507 CFLAGS="-g -O2"
3508 else
3509 CFLAGS="-g"
3510 fi
3511 else
3512 if test "$GCC" = yes; then
3513 CFLAGS="-O2"
3514 else
3515 CFLAGS=
3516 fi
3517 fi
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3519 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3520 if ${ac_cv_prog_cc_c89+:} false; then :
3521 $as_echo_n "(cached) " >&6
3522 else
3523 ac_cv_prog_cc_c89=no
3524 ac_save_CC=$CC
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3527 #include <stdarg.h>
3528 #include <stdio.h>
3529 struct stat;
3530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3531 struct buf { int x; };
3532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3533 static char *e (p, i)
3534 char **p;
3535 int i;
3536 {
3537 return p[i];
3538 }
3539 static char *f (char * (*g) (char **, int), char **p, ...)
3540 {
3541 char *s;
3542 va_list v;
3543 va_start (v,p);
3544 s = g (p, va_arg (v,int));
3545 va_end (v);
3546 return s;
3547 }
3548
3549 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3550 function prototypes and stuff, but not '\xHH' hex character constants.
3551 These don't provoke an error unfortunately, instead are silently treated
3552 as 'x'. The following induces an error, until -std is added to get
3553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3554 array size at least. It's necessary to write '\x00'==0 to get something
3555 that's true only with -std. */
3556 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3557
3558 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3559 inside strings and character constants. */
3560 #define FOO(x) 'x'
3561 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3562
3563 int test (int i, double x);
3564 struct s1 {int (*f) (int a);};
3565 struct s2 {int (*f) (double a);};
3566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3567 int argc;
3568 char **argv;
3569 int
3570 main ()
3571 {
3572 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3573 ;
3574 return 0;
3575 }
3576 _ACEOF
3577 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3579 do
3580 CC="$ac_save_CC $ac_arg"
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582 ac_cv_prog_cc_c89=$ac_arg
3583 fi
3584 rm -f core conftest.err conftest.$ac_objext
3585 test "x$ac_cv_prog_cc_c89" != "xno" && break
3586 done
3587 rm -f conftest.$ac_ext
3588 CC=$ac_save_CC
3589
3590 fi
3591 # AC_CACHE_VAL
3592 case "x$ac_cv_prog_cc_c89" in
3593 x)
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3595 $as_echo "none needed" >&6; } ;;
3596 xno)
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3598 $as_echo "unsupported" >&6; } ;;
3599 *)
3600 CC="$CC $ac_cv_prog_cc_c89"
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3602 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3603 esac
3604 if test "x$ac_cv_prog_cc_c89" != xno; then :
3605
3606 fi
3607
3608 ac_ext=c
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614 ac_ext=c
3615 ac_cpp='$CPP $CPPFLAGS'
3616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3620 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3621 if ${am_cv_prog_cc_c_o+:} false; then :
3622 $as_echo_n "(cached) " >&6
3623 else
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3626
3627 int
3628 main ()
3629 {
3630
3631 ;
3632 return 0;
3633 }
3634 _ACEOF
3635 # Make sure it works both with $CC and with simple cc.
3636 # Following AC_PROG_CC_C_O, we do the test twice because some
3637 # compilers refuse to overwrite an existing .o file with -o,
3638 # though they will create one.
3639 am_cv_prog_cc_c_o=yes
3640 for am_i in 1 2; do
3641 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3642 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } \
3646 && test -f conftest2.$ac_objext; then
3647 : OK
3648 else
3649 am_cv_prog_cc_c_o=no
3650 break
3651 fi
3652 done
3653 rm -f core conftest*
3654 unset am_i
3655 fi
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3657 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3658 if test "$am_cv_prog_cc_c_o" != yes; then
3659 # Losing compiler, so override with the script.
3660 # FIXME: It is wrong to rewrite CC.
3661 # But if we don't then we get into trouble of one sort or another.
3662 # A longer-term fix would be to have automake use am__CC in this case,
3663 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3664 CC="$am_aux_dir/compile $CC"
3665 fi
3666 ac_ext=c
3667 ac_cpp='$CPP $CPPFLAGS'
3668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3671
3672 DEPDIR="${am__leading_dot}deps"
3673
3674 ac_config_commands="$ac_config_commands depfiles"
3675
3676
3677 am_make=${MAKE-make}
3678 cat > confinc << 'END'
3679 am__doit:
3680 @echo this is the am__doit target
3681 .PHONY: am__doit
3682 END
3683 # If we don't find an include directive, just comment out the code.
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3685 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3686 am__include="#"
3687 am__quote=
3688 _am_result=none
3689 # First try GNU make style include.
3690 echo "include confinc" > confmf
3691 # Ignore all kinds of additional output from 'make'.
3692 case `$am_make -s -f confmf 2> /dev/null` in #(
3693 *the\ am__doit\ target*)
3694 am__include=include
3695 am__quote=
3696 _am_result=GNU
3697 ;;
3698 esac
3699 # Now try BSD make style include.
3700 if test "$am__include" = "#"; then
3701 echo '.include "confinc"' > confmf
3702 case `$am_make -s -f confmf 2> /dev/null` in #(
3703 *the\ am__doit\ target*)
3704 am__include=.include
3705 am__quote="\""
3706 _am_result=BSD
3707 ;;
3708 esac
3709 fi
3710
3711
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3713 $as_echo "$_am_result" >&6; }
3714 rm -f confinc confmf
3715
3716 # Check whether --enable-dependency-tracking was given.
3717 if test "${enable_dependency_tracking+set}" = set; then :
3718 enableval=$enable_dependency_tracking;
3719 fi
3720
3721 if test "x$enable_dependency_tracking" != xno; then
3722 am_depcomp="$ac_aux_dir/depcomp"
3723 AMDEPBACKSLASH='\'
3724 am__nodep='_no'
3725 fi
3726 if test "x$enable_dependency_tracking" != xno; then
3727 AMDEP_TRUE=
3728 AMDEP_FALSE='#'
3729 else
3730 AMDEP_TRUE='#'
3731 AMDEP_FALSE=
3732 fi
3733
3734
3735
3736 depcc="$CC" am_compiler_list=
3737
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3739 $as_echo_n "checking dependency style of $depcc... " >&6; }
3740 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3744 # We make a subdir and do the tests there. Otherwise we can end up
3745 # making bogus files that we don't know about and never remove. For
3746 # instance it was reported that on HP-UX the gcc test will end up
3747 # making a dummy file named 'D' -- because '-MD' means "put the output
3748 # in D".
3749 rm -rf conftest.dir
3750 mkdir conftest.dir
3751 # Copy depcomp to subdir because otherwise we won't find it if we're
3752 # using a relative directory.
3753 cp "$am_depcomp" conftest.dir
3754 cd conftest.dir
3755 # We will build objects and dependencies in a subdirectory because
3756 # it helps to detect inapplicable dependency modes. For instance
3757 # both Tru64's cc and ICC support -MD to output dependencies as a
3758 # side effect of compilation, but ICC will put the dependencies in
3759 # the current directory while Tru64 will put them in the object
3760 # directory.
3761 mkdir sub
3762
3763 am_cv_CC_dependencies_compiler_type=none
3764 if test "$am_compiler_list" = ""; then
3765 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3766 fi
3767 am__universal=false
3768 case " $depcc " in #(
3769 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3770 esac
3771
3772 for depmode in $am_compiler_list; do
3773 # Setup a source with many dependencies, because some compilers
3774 # like to wrap large dependency lists on column 80 (with \), and
3775 # we should not choose a depcomp mode which is confused by this.
3776 #
3777 # We need to recreate these files for each test, as the compiler may
3778 # overwrite some of them when testing with obscure command lines.
3779 # This happens at least with the AIX C compiler.
3780 : > sub/conftest.c
3781 for i in 1 2 3 4 5 6; do
3782 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3783 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3784 # Solaris 10 /bin/sh.
3785 echo '/* dummy */' > sub/conftst$i.h
3786 done
3787 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3788
3789 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3790 # mode. It turns out that the SunPro C++ compiler does not properly
3791 # handle '-M -o', and we need to detect this. Also, some Intel
3792 # versions had trouble with output in subdirs.
3793 am__obj=sub/conftest.${OBJEXT-o}
3794 am__minus_obj="-o $am__obj"
3795 case $depmode in
3796 gcc)
3797 # This depmode causes a compiler race in universal mode.
3798 test "$am__universal" = false || continue
3799 ;;
3800 nosideeffect)
3801 # After this tag, mechanisms are not by side-effect, so they'll
3802 # only be used when explicitly requested.
3803 if test "x$enable_dependency_tracking" = xyes; then
3804 continue
3805 else
3806 break
3807 fi
3808 ;;
3809 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3810 # This compiler won't grok '-c -o', but also, the minuso test has
3811 # not run yet. These depmodes are late enough in the game, and
3812 # so weak that their functioning should not be impacted.
3813 am__obj=conftest.${OBJEXT-o}
3814 am__minus_obj=
3815 ;;
3816 none) break ;;
3817 esac
3818 if depmode=$depmode \
3819 source=sub/conftest.c object=$am__obj \
3820 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3821 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3822 >/dev/null 2>conftest.err &&
3823 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3824 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3825 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3826 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3827 # icc doesn't choke on unknown options, it will just issue warnings
3828 # or remarks (even with -Werror). So we grep stderr for any message
3829 # that says an option was ignored or not supported.
3830 # When given -MP, icc 7.0 and 7.1 complain thusly:
3831 # icc: Command line warning: ignoring option '-M'; no argument required
3832 # The diagnosis changed in icc 8.0:
3833 # icc: Command line remark: option '-MP' not supported
3834 if (grep 'ignoring option' conftest.err ||
3835 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3836 am_cv_CC_dependencies_compiler_type=$depmode
3837 break
3838 fi
3839 fi
3840 done
3841
3842 cd ..
3843 rm -rf conftest.dir
3844 else
3845 am_cv_CC_dependencies_compiler_type=none
3846 fi
3847
3848 fi
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3850 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3851 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3852
3853 if
3854 test "x$enable_dependency_tracking" != xno \
3855 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3856 am__fastdepCC_TRUE=
3857 am__fastdepCC_FALSE='#'
3858 else
3859 am__fastdepCC_TRUE='#'
3860 am__fastdepCC_FALSE=
3861 fi
3862
3863
3864
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3866 $as_echo_n "checking whether ln -s works... " >&6; }
3867 LN_S=$as_ln_s
3868 if test "$LN_S" = "ln -s"; then
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3870 $as_echo "yes" >&6; }
3871 else
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3873 $as_echo "no, using $LN_S" >&6; }
3874 fi
3875
3876 case `pwd` in
3877 *\ * | *\ *)
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3879 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3880 esac
3881
3882
3883
3884 macro_version='2.4.6'
3885 macro_revision='2.4.6'
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899 ltmain=$ac_aux_dir/ltmain.sh
3900
3901 # Make sure we can run config.sub.
3902 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3903 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3904
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3906 $as_echo_n "checking build system type... " >&6; }
3907 if ${ac_cv_build+:} false; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 ac_build_alias=$build_alias
3911 test "x$ac_build_alias" = x &&
3912 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3913 test "x$ac_build_alias" = x &&
3914 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3915 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3916 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3917
3918 fi
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3920 $as_echo "$ac_cv_build" >&6; }
3921 case $ac_cv_build in
3922 *-*-*) ;;
3923 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3924 esac
3925 build=$ac_cv_build
3926 ac_save_IFS=$IFS; IFS='-'
3927 set x $ac_cv_build
3928 shift
3929 build_cpu=$1
3930 build_vendor=$2
3931 shift; shift
3932 # Remember, the first character of IFS is used to create $*,
3933 # except with old shells:
3934 build_os=$*
3935 IFS=$ac_save_IFS
3936 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3937
3938
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3940 $as_echo_n "checking host system type... " >&6; }
3941 if ${ac_cv_host+:} false; then :
3942 $as_echo_n "(cached) " >&6
3943 else
3944 if test "x$host_alias" = x; then
3945 ac_cv_host=$ac_cv_build
3946 else
3947 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3948 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3949 fi
3950
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3953 $as_echo "$ac_cv_host" >&6; }
3954 case $ac_cv_host in
3955 *-*-*) ;;
3956 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3957 esac
3958 host=$ac_cv_host
3959 ac_save_IFS=$IFS; IFS='-'
3960 set x $ac_cv_host
3961 shift
3962 host_cpu=$1
3963 host_vendor=$2
3964 shift; shift
3965 # Remember, the first character of IFS is used to create $*,
3966 # except with old shells:
3967 host_os=$*
3968 IFS=$ac_save_IFS
3969 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3970
3971
3972 # Backslashify metacharacters that are still active within
3973 # double-quoted strings.
3974 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3975
3976 # Same as above, but do not quote variable references.
3977 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3978
3979 # Sed substitution to delay expansion of an escaped shell variable in a
3980 # double_quote_subst'ed string.
3981 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3982
3983 # Sed substitution to delay expansion of an escaped single quote.
3984 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3985
3986 # Sed substitution to avoid accidental globbing in evaled expressions
3987 no_glob_subst='s/\*/\\\*/g'
3988
3989 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3990 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3991 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3992
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3994 $as_echo_n "checking how to print strings... " >&6; }
3995 # Test print first, because it will be a builtin if present.
3996 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3997 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3998 ECHO='print -r --'
3999 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4000 ECHO='printf %s\n'
4001 else
4002 # Use this function as a fallback that always works.
4003 func_fallback_echo ()
4004 {
4005 eval 'cat <<_LTECHO_EOF
4006 $1
4007 _LTECHO_EOF'
4008 }
4009 ECHO='func_fallback_echo'
4010 fi
4011
4012 # func_echo_all arg...
4013 # Invoke $ECHO with all args, space-separated.
4014 func_echo_all ()
4015 {
4016 $ECHO ""
4017 }
4018
4019 case $ECHO in
4020 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4021 $as_echo "printf" >&6; } ;;
4022 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4023 $as_echo "print -r" >&6; } ;;
4024 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4025 $as_echo "cat" >&6; } ;;
4026 esac
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4042 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4043 if ${ac_cv_path_SED+:} false; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4047 for ac_i in 1 2 3 4 5 6 7; do
4048 ac_script="$ac_script$as_nl$ac_script"
4049 done
4050 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4051 { ac_script=; unset ac_script;}
4052 if test -z "$SED"; then
4053 ac_path_SED_found=false
4054 # Loop through the user's path and test for each of PROGNAME-LIST
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4057 do
4058 IFS=$as_save_IFS
4059 test -z "$as_dir" && as_dir=.
4060 for ac_prog in sed gsed; do
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4063 as_fn_executable_p "$ac_path_SED" || continue
4064 # Check for GNU ac_path_SED and select it if it is found.
4065 # Check for GNU $ac_path_SED
4066 case `"$ac_path_SED" --version 2>&1` in
4067 *GNU*)
4068 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4069 *)
4070 ac_count=0
4071 $as_echo_n 0123456789 >"conftest.in"
4072 while :
4073 do
4074 cat "conftest.in" "conftest.in" >"conftest.tmp"
4075 mv "conftest.tmp" "conftest.in"
4076 cp "conftest.in" "conftest.nl"
4077 $as_echo '' >> "conftest.nl"
4078 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4080 as_fn_arith $ac_count + 1 && ac_count=$as_val
4081 if test $ac_count -gt ${ac_path_SED_max-0}; then
4082 # Best one so far, save it but keep looking for a better one
4083 ac_cv_path_SED="$ac_path_SED"
4084 ac_path_SED_max=$ac_count
4085 fi
4086 # 10*(2^10) chars as input seems more than enough
4087 test $ac_count -gt 10 && break
4088 done
4089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4090 esac
4091
4092 $ac_path_SED_found && break 3
4093 done
4094 done
4095 done
4096 IFS=$as_save_IFS
4097 if test -z "$ac_cv_path_SED"; then
4098 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4099 fi
4100 else
4101 ac_cv_path_SED=$SED
4102 fi
4103
4104 fi
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4106 $as_echo "$ac_cv_path_SED" >&6; }
4107 SED="$ac_cv_path_SED"
4108 rm -f conftest.sed
4109
4110 test -z "$SED" && SED=sed
4111 Xsed="$SED -e 1s/^X//"
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4124 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4125 if ${ac_cv_path_GREP+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 if test -z "$GREP"; then
4129 ac_path_GREP_found=false
4130 # Loop through the user's path and test for each of PROGNAME-LIST
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4133 do
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
4136 for ac_prog in grep ggrep; do
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4139 as_fn_executable_p "$ac_path_GREP" || continue
4140 # Check for GNU ac_path_GREP and select it if it is found.
4141 # Check for GNU $ac_path_GREP
4142 case `"$ac_path_GREP" --version 2>&1` in
4143 *GNU*)
4144 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4145 *)
4146 ac_count=0
4147 $as_echo_n 0123456789 >"conftest.in"
4148 while :
4149 do
4150 cat "conftest.in" "conftest.in" >"conftest.tmp"
4151 mv "conftest.tmp" "conftest.in"
4152 cp "conftest.in" "conftest.nl"
4153 $as_echo 'GREP' >> "conftest.nl"
4154 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4156 as_fn_arith $ac_count + 1 && ac_count=$as_val
4157 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4158 # Best one so far, save it but keep looking for a better one
4159 ac_cv_path_GREP="$ac_path_GREP"
4160 ac_path_GREP_max=$ac_count
4161 fi
4162 # 10*(2^10) chars as input seems more than enough
4163 test $ac_count -gt 10 && break
4164 done
4165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4166 esac
4167
4168 $ac_path_GREP_found && break 3
4169 done
4170 done
4171 done
4172 IFS=$as_save_IFS
4173 if test -z "$ac_cv_path_GREP"; then
4174 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4175 fi
4176 else
4177 ac_cv_path_GREP=$GREP
4178 fi
4179
4180 fi
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4182 $as_echo "$ac_cv_path_GREP" >&6; }
4183 GREP="$ac_cv_path_GREP"
4184
4185
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4187 $as_echo_n "checking for egrep... " >&6; }
4188 if ${ac_cv_path_EGREP+:} false; then :
4189 $as_echo_n "(cached) " >&6
4190 else
4191 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4192 then ac_cv_path_EGREP="$GREP -E"
4193 else
4194 if test -z "$EGREP"; then
4195 ac_path_EGREP_found=false
4196 # Loop through the user's path and test for each of PROGNAME-LIST
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4199 do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_prog in egrep; do
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4205 as_fn_executable_p "$ac_path_EGREP" || continue
4206 # Check for GNU ac_path_EGREP and select it if it is found.
4207 # Check for GNU $ac_path_EGREP
4208 case `"$ac_path_EGREP" --version 2>&1` in
4209 *GNU*)
4210 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4211 *)
4212 ac_count=0
4213 $as_echo_n 0123456789 >"conftest.in"
4214 while :
4215 do
4216 cat "conftest.in" "conftest.in" >"conftest.tmp"
4217 mv "conftest.tmp" "conftest.in"
4218 cp "conftest.in" "conftest.nl"
4219 $as_echo 'EGREP' >> "conftest.nl"
4220 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4221 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4222 as_fn_arith $ac_count + 1 && ac_count=$as_val
4223 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4224 # Best one so far, save it but keep looking for a better one
4225 ac_cv_path_EGREP="$ac_path_EGREP"
4226 ac_path_EGREP_max=$ac_count
4227 fi
4228 # 10*(2^10) chars as input seems more than enough
4229 test $ac_count -gt 10 && break
4230 done
4231 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4232 esac
4233
4234 $ac_path_EGREP_found && break 3
4235 done
4236 done
4237 done
4238 IFS=$as_save_IFS
4239 if test -z "$ac_cv_path_EGREP"; then
4240 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4241 fi
4242 else
4243 ac_cv_path_EGREP=$EGREP
4244 fi
4245
4246 fi
4247 fi
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4249 $as_echo "$ac_cv_path_EGREP" >&6; }
4250 EGREP="$ac_cv_path_EGREP"
4251
4252
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4254 $as_echo_n "checking for fgrep... " >&6; }
4255 if ${ac_cv_path_FGREP+:} false; then :
4256 $as_echo_n "(cached) " >&6
4257 else
4258 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4259 then ac_cv_path_FGREP="$GREP -F"
4260 else
4261 if test -z "$FGREP"; then
4262 ac_path_FGREP_found=false
4263 # Loop through the user's path and test for each of PROGNAME-LIST
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4266 do
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for ac_prog in fgrep; do
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4272 as_fn_executable_p "$ac_path_FGREP" || continue
4273 # Check for GNU ac_path_FGREP and select it if it is found.
4274 # Check for GNU $ac_path_FGREP
4275 case `"$ac_path_FGREP" --version 2>&1` in
4276 *GNU*)
4277 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4278 *)
4279 ac_count=0
4280 $as_echo_n 0123456789 >"conftest.in"
4281 while :
4282 do
4283 cat "conftest.in" "conftest.in" >"conftest.tmp"
4284 mv "conftest.tmp" "conftest.in"
4285 cp "conftest.in" "conftest.nl"
4286 $as_echo 'FGREP' >> "conftest.nl"
4287 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4288 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4289 as_fn_arith $ac_count + 1 && ac_count=$as_val
4290 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4291 # Best one so far, save it but keep looking for a better one
4292 ac_cv_path_FGREP="$ac_path_FGREP"
4293 ac_path_FGREP_max=$ac_count
4294 fi
4295 # 10*(2^10) chars as input seems more than enough
4296 test $ac_count -gt 10 && break
4297 done
4298 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4299 esac
4300
4301 $ac_path_FGREP_found && break 3
4302 done
4303 done
4304 done
4305 IFS=$as_save_IFS
4306 if test -z "$ac_cv_path_FGREP"; then
4307 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4308 fi
4309 else
4310 ac_cv_path_FGREP=$FGREP
4311 fi
4312
4313 fi
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4316 $as_echo "$ac_cv_path_FGREP" >&6; }
4317 FGREP="$ac_cv_path_FGREP"
4318
4319
4320 test -z "$GREP" && GREP=grep
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340 # Check whether --with-gnu-ld was given.
4341 if test "${with_gnu_ld+set}" = set; then :
4342 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4343 else
4344 with_gnu_ld=no
4345 fi
4346
4347 ac_prog=ld
4348 if test yes = "$GCC"; then
4349 # Check if gcc -print-prog-name=ld gives a path.
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4351 $as_echo_n "checking for ld used by $CC... " >&6; }
4352 case $host in
4353 *-*-mingw*)
4354 # gcc leaves a trailing carriage return, which upsets mingw
4355 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4356 *)
4357 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4358 esac
4359 case $ac_prog in
4360 # Accept absolute paths.
4361 [\\/]* | ?:[\\/]*)
4362 re_direlt='/[^/][^/]*/\.\./'
4363 # Canonicalize the pathname of ld
4364 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4365 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4366 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4367 done
4368 test -z "$LD" && LD=$ac_prog
4369 ;;
4370 "")
4371 # If it fails, then pretend we aren't using GCC.
4372 ac_prog=ld
4373 ;;
4374 *)
4375 # If it is relative, then search for the first ld in PATH.
4376 with_gnu_ld=unknown
4377 ;;
4378 esac
4379 elif test yes = "$with_gnu_ld"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4381 $as_echo_n "checking for GNU ld... " >&6; }
4382 else
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4384 $as_echo_n "checking for non-GNU ld... " >&6; }
4385 fi
4386 if ${lt_cv_path_LD+:} false; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 if test -z "$LD"; then
4390 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4391 for ac_dir in $PATH; do
4392 IFS=$lt_save_ifs
4393 test -z "$ac_dir" && ac_dir=.
4394 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4395 lt_cv_path_LD=$ac_dir/$ac_prog
4396 # Check to see if the program is GNU ld. I'd rather use --version,
4397 # but apparently some variants of GNU ld only accept -v.
4398 # Break only if it was the GNU/non-GNU ld that we prefer.
4399 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4400 *GNU* | *'with BFD'*)
4401 test no != "$with_gnu_ld" && break
4402 ;;
4403 *)
4404 test yes != "$with_gnu_ld" && break
4405 ;;
4406 esac
4407 fi
4408 done
4409 IFS=$lt_save_ifs
4410 else
4411 lt_cv_path_LD=$LD # Let the user override the test with a path.
4412 fi
4413 fi
4414
4415 LD=$lt_cv_path_LD
4416 if test -n "$LD"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4418 $as_echo "$LD" >&6; }
4419 else
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4422 fi
4423 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4425 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4426 if ${lt_cv_prog_gnu_ld+:} false; then :
4427 $as_echo_n "(cached) " >&6
4428 else
4429 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4430 case `$LD -v 2>&1 </dev/null` in
4431 *GNU* | *'with BFD'*)
4432 lt_cv_prog_gnu_ld=yes
4433 ;;
4434 *)
4435 lt_cv_prog_gnu_ld=no
4436 ;;
4437 esac
4438 fi
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4440 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4441 with_gnu_ld=$lt_cv_prog_gnu_ld
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4452 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4453 if ${lt_cv_path_NM+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 if test -n "$NM"; then
4457 # Let the user override the test.
4458 lt_cv_path_NM=$NM
4459 else
4460 lt_nm_to_check=${ac_tool_prefix}nm
4461 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4462 lt_nm_to_check="$lt_nm_to_check nm"
4463 fi
4464 for lt_tmp_nm in $lt_nm_to_check; do
4465 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4466 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4467 IFS=$lt_save_ifs
4468 test -z "$ac_dir" && ac_dir=.
4469 tmp_nm=$ac_dir/$lt_tmp_nm
4470 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4471 # Check to see if the nm accepts a BSD-compat flag.
4472 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4473 # nm: unknown option "B" ignored
4474 # Tru64's nm complains that /dev/null is an invalid object file
4475 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4476 case $build_os in
4477 mingw*) lt_bad_file=conftest.nm/nofile ;;
4478 *) lt_bad_file=/dev/null ;;
4479 esac
4480 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4481 *$lt_bad_file* | *'Invalid file or object type'*)
4482 lt_cv_path_NM="$tmp_nm -B"
4483 break 2
4484 ;;
4485 *)
4486 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4487 */dev/null*)
4488 lt_cv_path_NM="$tmp_nm -p"
4489 break 2
4490 ;;
4491 *)
4492 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4493 continue # so that we can try to find one that supports BSD flags
4494 ;;
4495 esac
4496 ;;
4497 esac
4498 fi
4499 done
4500 IFS=$lt_save_ifs
4501 done
4502 : ${lt_cv_path_NM=no}
4503 fi
4504 fi
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4506 $as_echo "$lt_cv_path_NM" >&6; }
4507 if test no != "$lt_cv_path_NM"; then
4508 NM=$lt_cv_path_NM
4509 else
4510 # Didn't find any BSD compatible name lister, look for dumpbin.
4511 if test -n "$DUMPBIN"; then :
4512 # Let the user override the test.
4513 else
4514 if test -n "$ac_tool_prefix"; then
4515 for ac_prog in dumpbin "link -dump"
4516 do
4517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4518 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520 $as_echo_n "checking for $ac_word... " >&6; }
4521 if ${ac_cv_prog_DUMPBIN+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 if test -n "$DUMPBIN"; then
4525 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4526 else
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4529 do
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4534 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 break 2
4537 fi
4538 done
4539 done
4540 IFS=$as_save_IFS
4541
4542 fi
4543 fi
4544 DUMPBIN=$ac_cv_prog_DUMPBIN
4545 if test -n "$DUMPBIN"; then
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4547 $as_echo "$DUMPBIN" >&6; }
4548 else
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550 $as_echo "no" >&6; }
4551 fi
4552
4553
4554 test -n "$DUMPBIN" && break
4555 done
4556 fi
4557 if test -z "$DUMPBIN"; then
4558 ac_ct_DUMPBIN=$DUMPBIN
4559 for ac_prog in dumpbin "link -dump"
4560 do
4561 # Extract the first word of "$ac_prog", so it can be a program name with args.
4562 set dummy $ac_prog; ac_word=$2
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564 $as_echo_n "checking for $ac_word... " >&6; }
4565 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 if test -n "$ac_ct_DUMPBIN"; then
4569 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4573 do
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4581 fi
4582 done
4583 done
4584 IFS=$as_save_IFS
4585
4586 fi
4587 fi
4588 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4589 if test -n "$ac_ct_DUMPBIN"; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4591 $as_echo "$ac_ct_DUMPBIN" >&6; }
4592 else
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4595 fi
4596
4597
4598 test -n "$ac_ct_DUMPBIN" && break
4599 done
4600
4601 if test "x$ac_ct_DUMPBIN" = x; then
4602 DUMPBIN=":"
4603 else
4604 case $cross_compiling:$ac_tool_warned in
4605 yes:)
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4608 ac_tool_warned=yes ;;
4609 esac
4610 DUMPBIN=$ac_ct_DUMPBIN
4611 fi
4612 fi
4613
4614 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4615 *COFF*)
4616 DUMPBIN="$DUMPBIN -symbols -headers"
4617 ;;
4618 *)
4619 DUMPBIN=:
4620 ;;
4621 esac
4622 fi
4623
4624 if test : != "$DUMPBIN"; then
4625 NM=$DUMPBIN
4626 fi
4627 fi
4628 test -z "$NM" && NM=nm
4629
4630
4631
4632
4633
4634
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4636 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4637 if ${lt_cv_nm_interface+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 lt_cv_nm_interface="BSD nm"
4641 echo "int some_variable = 0;" > conftest.$ac_ext
4642 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4643 (eval "$ac_compile" 2>conftest.err)
4644 cat conftest.err >&5
4645 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4646 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4647 cat conftest.err >&5
4648 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4649 cat conftest.out >&5
4650 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4651 lt_cv_nm_interface="MS dumpbin"
4652 fi
4653 rm -f conftest*
4654 fi
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4656 $as_echo "$lt_cv_nm_interface" >&6; }
4657
4658 # find the maximum length of command line arguments
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4660 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4661 if ${lt_cv_sys_max_cmd_len+:} false; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 i=0
4665 teststring=ABCD
4666
4667 case $build_os in
4668 msdosdjgpp*)
4669 # On DJGPP, this test can blow up pretty badly due to problems in libc
4670 # (any single argument exceeding 2000 bytes causes a buffer overrun
4671 # during glob expansion). Even if it were fixed, the result of this
4672 # check would be larger than it should be.
4673 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4674 ;;
4675
4676 gnu*)
4677 # Under GNU Hurd, this test is not required because there is
4678 # no limit to the length of command line arguments.
4679 # Libtool will interpret -1 as no limit whatsoever
4680 lt_cv_sys_max_cmd_len=-1;
4681 ;;
4682
4683 cygwin* | mingw* | cegcc*)
4684 # On Win9x/ME, this test blows up -- it succeeds, but takes
4685 # about 5 minutes as the teststring grows exponentially.
4686 # Worse, since 9x/ME are not pre-emptively multitasking,
4687 # you end up with a "frozen" computer, even though with patience
4688 # the test eventually succeeds (with a max line length of 256k).
4689 # Instead, let's just punt: use the minimum linelength reported by
4690 # all of the supported platforms: 8192 (on NT/2K/XP).
4691 lt_cv_sys_max_cmd_len=8192;
4692 ;;
4693
4694 mint*)
4695 # On MiNT this can take a long time and run out of memory.
4696 lt_cv_sys_max_cmd_len=8192;
4697 ;;
4698
4699 amigaos*)
4700 # On AmigaOS with pdksh, this test takes hours, literally.
4701 # So we just punt and use a minimum line length of 8192.
4702 lt_cv_sys_max_cmd_len=8192;
4703 ;;
4704
4705 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4706 # This has been around since 386BSD, at least. Likely further.
4707 if test -x /sbin/sysctl; then
4708 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4709 elif test -x /usr/sbin/sysctl; then
4710 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4711 else
4712 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4713 fi
4714 # And add a safety zone
4715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4717 ;;
4718
4719 interix*)
4720 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4721 lt_cv_sys_max_cmd_len=196608
4722 ;;
4723
4724 os2*)
4725 # The test takes a long time on OS/2.
4726 lt_cv_sys_max_cmd_len=8192
4727 ;;
4728
4729 osf*)
4730 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4731 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4732 # nice to cause kernel panics so lets avoid the loop below.
4733 # First set a reasonable default.
4734 lt_cv_sys_max_cmd_len=16384
4735 #
4736 if test -x /sbin/sysconfig; then
4737 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4738 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4739 esac
4740 fi
4741 ;;
4742 sco3.2v5*)
4743 lt_cv_sys_max_cmd_len=102400
4744 ;;
4745 sysv5* | sco5v6* | sysv4.2uw2*)
4746 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4747 if test -n "$kargmax"; then
4748 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4749 else
4750 lt_cv_sys_max_cmd_len=32768
4751 fi
4752 ;;
4753 *)
4754 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4755 if test -n "$lt_cv_sys_max_cmd_len" && \
4756 test undefined != "$lt_cv_sys_max_cmd_len"; then
4757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4759 else
4760 # Make teststring a little bigger before we do anything with it.
4761 # a 1K string should be a reasonable start.
4762 for i in 1 2 3 4 5 6 7 8; do
4763 teststring=$teststring$teststring
4764 done
4765 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4766 # If test is not a shell built-in, we'll probably end up computing a
4767 # maximum length that is only half of the actual maximum length, but
4768 # we can't tell.
4769 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4770 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4771 test 17 != "$i" # 1/2 MB should be enough
4772 do
4773 i=`expr $i + 1`
4774 teststring=$teststring$teststring
4775 done
4776 # Only check the string length outside the loop.
4777 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4778 teststring=
4779 # Add a significant safety factor because C++ compilers can tack on
4780 # massive amounts of additional arguments before passing them to the
4781 # linker. It appears as though 1/2 is a usable value.
4782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4783 fi
4784 ;;
4785 esac
4786
4787 fi
4788
4789 if test -n "$lt_cv_sys_max_cmd_len"; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4791 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4792 else
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4794 $as_echo "none" >&6; }
4795 fi
4796 max_cmd_len=$lt_cv_sys_max_cmd_len
4797
4798
4799
4800
4801
4802
4803 : ${CP="cp -f"}
4804 : ${MV="mv -f"}
4805 : ${RM="rm -f"}
4806
4807 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4808 lt_unset=unset
4809 else
4810 lt_unset=false
4811 fi
4812
4813
4814
4815
4816
4817 # test EBCDIC or ASCII
4818 case `echo X|tr X '\101'` in
4819 A) # ASCII based system
4820 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4821 lt_SP2NL='tr \040 \012'
4822 lt_NL2SP='tr \015\012 \040\040'
4823 ;;
4824 *) # EBCDIC based system
4825 lt_SP2NL='tr \100 \n'
4826 lt_NL2SP='tr \r\n \100\100'
4827 ;;
4828 esac
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4839 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4840 if ${lt_cv_to_host_file_cmd+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 case $host in
4844 *-*-mingw* )
4845 case $build in
4846 *-*-mingw* ) # actually msys
4847 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4848 ;;
4849 *-*-cygwin* )
4850 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4851 ;;
4852 * ) # otherwise, assume *nix
4853 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4854 ;;
4855 esac
4856 ;;
4857 *-*-cygwin* )
4858 case $build in
4859 *-*-mingw* ) # actually msys
4860 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4861 ;;
4862 *-*-cygwin* )
4863 lt_cv_to_host_file_cmd=func_convert_file_noop
4864 ;;
4865 * ) # otherwise, assume *nix
4866 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4867 ;;
4868 esac
4869 ;;
4870 * ) # unhandled hosts (and "normal" native builds)
4871 lt_cv_to_host_file_cmd=func_convert_file_noop
4872 ;;
4873 esac
4874
4875 fi
4876
4877 to_host_file_cmd=$lt_cv_to_host_file_cmd
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4879 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4880
4881
4882
4883
4884
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4886 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4887 if ${lt_cv_to_tool_file_cmd+:} false; then :
4888 $as_echo_n "(cached) " >&6
4889 else
4890 #assume ordinary cross tools, or native build.
4891 lt_cv_to_tool_file_cmd=func_convert_file_noop
4892 case $host in
4893 *-*-mingw* )
4894 case $build in
4895 *-*-mingw* ) # actually msys
4896 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4897 ;;
4898 esac
4899 ;;
4900 esac
4901
4902 fi
4903
4904 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4906 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4907
4908
4909
4910
4911
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4913 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4914 if ${lt_cv_ld_reload_flag+:} false; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 lt_cv_ld_reload_flag='-r'
4918 fi
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4920 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4921 reload_flag=$lt_cv_ld_reload_flag
4922 case $reload_flag in
4923 "" | " "*) ;;
4924 *) reload_flag=" $reload_flag" ;;
4925 esac
4926 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4927 case $host_os in
4928 cygwin* | mingw* | pw32* | cegcc*)
4929 if test yes != "$GCC"; then
4930 reload_cmds=false
4931 fi
4932 ;;
4933 darwin*)
4934 if test yes = "$GCC"; then
4935 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4936 else
4937 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4938 fi
4939 ;;
4940 esac
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950 if test -n "$ac_tool_prefix"; then
4951 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4952 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if ${ac_cv_prog_OBJDUMP+:} false; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 if test -n "$OBJDUMP"; then
4959 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4963 do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4971 fi
4972 done
4973 done
4974 IFS=$as_save_IFS
4975
4976 fi
4977 fi
4978 OBJDUMP=$ac_cv_prog_OBJDUMP
4979 if test -n "$OBJDUMP"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4981 $as_echo "$OBJDUMP" >&6; }
4982 else
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4985 fi
4986
4987
4988 fi
4989 if test -z "$ac_cv_prog_OBJDUMP"; then
4990 ac_ct_OBJDUMP=$OBJDUMP
4991 # Extract the first word of "objdump", so it can be a program name with args.
4992 set dummy objdump; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 if test -n "$ac_ct_OBJDUMP"; then
4999 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5008 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5011 fi
5012 done
5013 done
5014 IFS=$as_save_IFS
5015
5016 fi
5017 fi
5018 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5019 if test -n "$ac_ct_OBJDUMP"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5021 $as_echo "$ac_ct_OBJDUMP" >&6; }
5022 else
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5025 fi
5026
5027 if test "x$ac_ct_OBJDUMP" = x; then
5028 OBJDUMP="false"
5029 else
5030 case $cross_compiling:$ac_tool_warned in
5031 yes:)
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5034 ac_tool_warned=yes ;;
5035 esac
5036 OBJDUMP=$ac_ct_OBJDUMP
5037 fi
5038 else
5039 OBJDUMP="$ac_cv_prog_OBJDUMP"
5040 fi
5041
5042 test -z "$OBJDUMP" && OBJDUMP=objdump
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5053 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5054 if ${lt_cv_deplibs_check_method+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 lt_cv_file_magic_cmd='$MAGIC_CMD'
5058 lt_cv_file_magic_test_file=
5059 lt_cv_deplibs_check_method='unknown'
5060 # Need to set the preceding variable on all platforms that support
5061 # interlibrary dependencies.
5062 # 'none' -- dependencies not supported.
5063 # 'unknown' -- same as none, but documents that we really don't know.
5064 # 'pass_all' -- all dependencies passed with no checks.
5065 # 'test_compile' -- check by making test program.
5066 # 'file_magic [[regex]]' -- check by looking for files in library path
5067 # that responds to the $file_magic_cmd with a given extended regex.
5068 # If you have 'file' or equivalent on your system and you're not sure
5069 # whether 'pass_all' will *always* work, you probably want this one.
5070
5071 case $host_os in
5072 aix[4-9]*)
5073 lt_cv_deplibs_check_method=pass_all
5074 ;;
5075
5076 beos*)
5077 lt_cv_deplibs_check_method=pass_all
5078 ;;
5079
5080 bsdi[45]*)
5081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5082 lt_cv_file_magic_cmd='/usr/bin/file -L'
5083 lt_cv_file_magic_test_file=/shlib/libc.so
5084 ;;
5085
5086 cygwin*)
5087 # func_win32_libid is a shell function defined in ltmain.sh
5088 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5089 lt_cv_file_magic_cmd='func_win32_libid'
5090 ;;
5091
5092 mingw* | pw32*)
5093 # Base MSYS/MinGW do not provide the 'file' command needed by
5094 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5095 # unless we find 'file', for example because we are cross-compiling.
5096 if ( file / ) >/dev/null 2>&1; then
5097 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5098 lt_cv_file_magic_cmd='func_win32_libid'
5099 else
5100 # Keep this pattern in sync with the one in func_win32_libid.
5101 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5102 lt_cv_file_magic_cmd='$OBJDUMP -f'
5103 fi
5104 ;;
5105
5106 cegcc*)
5107 # use the weaker test based on 'objdump'. See mingw*.
5108 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5109 lt_cv_file_magic_cmd='$OBJDUMP -f'
5110 ;;
5111
5112 darwin* | rhapsody*)
5113 lt_cv_deplibs_check_method=pass_all
5114 ;;
5115
5116 freebsd* | dragonfly*)
5117 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5118 case $host_cpu in
5119 i*86 )
5120 # Not sure whether the presence of OpenBSD here was a mistake.
5121 # Let's accept both of them until this is cleared up.
5122 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5123 lt_cv_file_magic_cmd=/usr/bin/file
5124 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5125 ;;
5126 esac
5127 else
5128 lt_cv_deplibs_check_method=pass_all
5129 fi
5130 ;;
5131
5132 haiku*)
5133 lt_cv_deplibs_check_method=pass_all
5134 ;;
5135
5136 hpux10.20* | hpux11*)
5137 lt_cv_file_magic_cmd=/usr/bin/file
5138 case $host_cpu in
5139 ia64*)
5140 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5141 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5142 ;;
5143 hppa*64*)
5144 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]'
5145 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5146 ;;
5147 *)
5148 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5149 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5150 ;;
5151 esac
5152 ;;
5153
5154 interix[3-9]*)
5155 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5157 ;;
5158
5159 irix5* | irix6* | nonstopux*)
5160 case $LD in
5161 *-32|*"-32 ") libmagic=32-bit;;
5162 *-n32|*"-n32 ") libmagic=N32;;
5163 *-64|*"-64 ") libmagic=64-bit;;
5164 *) libmagic=never-match;;
5165 esac
5166 lt_cv_deplibs_check_method=pass_all
5167 ;;
5168
5169 # This must be glibc/ELF.
5170 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5171 lt_cv_deplibs_check_method=pass_all
5172 ;;
5173
5174 netbsd*)
5175 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5177 else
5178 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5179 fi
5180 ;;
5181
5182 newos6*)
5183 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5184 lt_cv_file_magic_cmd=/usr/bin/file
5185 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5186 ;;
5187
5188 *nto* | *qnx*)
5189 lt_cv_deplibs_check_method=pass_all
5190 ;;
5191
5192 openbsd* | bitrig*)
5193 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5195 else
5196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5197 fi
5198 ;;
5199
5200 osf3* | osf4* | osf5*)
5201 lt_cv_deplibs_check_method=pass_all
5202 ;;
5203
5204 rdos*)
5205 lt_cv_deplibs_check_method=pass_all
5206 ;;
5207
5208 solaris*)
5209 lt_cv_deplibs_check_method=pass_all
5210 ;;
5211
5212 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5213 lt_cv_deplibs_check_method=pass_all
5214 ;;
5215
5216 sysv4 | sysv4.3*)
5217 case $host_vendor in
5218 motorola)
5219 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]'
5220 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5221 ;;
5222 ncr)
5223 lt_cv_deplibs_check_method=pass_all
5224 ;;
5225 sequent)
5226 lt_cv_file_magic_cmd='/bin/file'
5227 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5228 ;;
5229 sni)
5230 lt_cv_file_magic_cmd='/bin/file'
5231 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5232 lt_cv_file_magic_test_file=/lib/libc.so
5233 ;;
5234 siemens)
5235 lt_cv_deplibs_check_method=pass_all
5236 ;;
5237 pc)
5238 lt_cv_deplibs_check_method=pass_all
5239 ;;
5240 esac
5241 ;;
5242
5243 tpf*)
5244 lt_cv_deplibs_check_method=pass_all
5245 ;;
5246 os2*)
5247 lt_cv_deplibs_check_method=pass_all
5248 ;;
5249 esac
5250
5251 fi
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5253 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5254
5255 file_magic_glob=
5256 want_nocaseglob=no
5257 if test "$build" = "$host"; then
5258 case $host_os in
5259 mingw* | pw32*)
5260 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5261 want_nocaseglob=yes
5262 else
5263 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5264 fi
5265 ;;
5266 esac
5267 fi
5268
5269 file_magic_cmd=$lt_cv_file_magic_cmd
5270 deplibs_check_method=$lt_cv_deplibs_check_method
5271 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294 if test -n "$ac_tool_prefix"; then
5295 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5296 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298 $as_echo_n "checking for $ac_word... " >&6; }
5299 if ${ac_cv_prog_DLLTOOL+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 if test -n "$DLLTOOL"; then
5303 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5304 else
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH
5307 do
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5312 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5315 fi
5316 done
5317 done
5318 IFS=$as_save_IFS
5319
5320 fi
5321 fi
5322 DLLTOOL=$ac_cv_prog_DLLTOOL
5323 if test -n "$DLLTOOL"; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5325 $as_echo "$DLLTOOL" >&6; }
5326 else
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 $as_echo "no" >&6; }
5329 fi
5330
5331
5332 fi
5333 if test -z "$ac_cv_prog_DLLTOOL"; then
5334 ac_ct_DLLTOOL=$DLLTOOL
5335 # Extract the first word of "dlltool", so it can be a program name with args.
5336 set dummy dlltool; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 if test -n "$ac_ct_DLLTOOL"; then
5343 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5344 else
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5347 do
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5352 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 break 2
5355 fi
5356 done
5357 done
5358 IFS=$as_save_IFS
5359
5360 fi
5361 fi
5362 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5363 if test -n "$ac_ct_DLLTOOL"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5365 $as_echo "$ac_ct_DLLTOOL" >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5369 fi
5370
5371 if test "x$ac_ct_DLLTOOL" = x; then
5372 DLLTOOL="false"
5373 else
5374 case $cross_compiling:$ac_tool_warned in
5375 yes:)
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5378 ac_tool_warned=yes ;;
5379 esac
5380 DLLTOOL=$ac_ct_DLLTOOL
5381 fi
5382 else
5383 DLLTOOL="$ac_cv_prog_DLLTOOL"
5384 fi
5385
5386 test -z "$DLLTOOL" && DLLTOOL=dlltool
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5398 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5399 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 lt_cv_sharedlib_from_linklib_cmd='unknown'
5403
5404 case $host_os in
5405 cygwin* | mingw* | pw32* | cegcc*)
5406 # two different shell functions defined in ltmain.sh;
5407 # decide which one to use based on capabilities of $DLLTOOL
5408 case `$DLLTOOL --help 2>&1` in
5409 *--identify-strict*)
5410 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5411 ;;
5412 *)
5413 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5414 ;;
5415 esac
5416 ;;
5417 *)
5418 # fallback: assume linklib IS sharedlib
5419 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5420 ;;
5421 esac
5422
5423 fi
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5425 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5426 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5427 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5428
5429
5430
5431
5432
5433
5434
5435
5436 if test -n "$ac_tool_prefix"; then
5437 for ac_prog in ar
5438 do
5439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5440 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442 $as_echo_n "checking for $ac_word... " >&6; }
5443 if ${ac_cv_prog_AR+:} false; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 if test -n "$AR"; then
5447 ac_cv_prog_AR="$AR" # Let the user override the test.
5448 else
5449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 for as_dir in $PATH
5451 do
5452 IFS=$as_save_IFS
5453 test -z "$as_dir" && as_dir=.
5454 for ac_exec_ext in '' $ac_executable_extensions; do
5455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5456 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 break 2
5459 fi
5460 done
5461 done
5462 IFS=$as_save_IFS
5463
5464 fi
5465 fi
5466 AR=$ac_cv_prog_AR
5467 if test -n "$AR"; then
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5469 $as_echo "$AR" >&6; }
5470 else
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472 $as_echo "no" >&6; }
5473 fi
5474
5475
5476 test -n "$AR" && break
5477 done
5478 fi
5479 if test -z "$AR"; then
5480 ac_ct_AR=$AR
5481 for ac_prog in ar
5482 do
5483 # Extract the first word of "$ac_prog", so it can be a program name with args.
5484 set dummy $ac_prog; ac_word=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 if test -n "$ac_ct_AR"; then
5491 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5492 else
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500 ac_cv_prog_ac_ct_AR="$ac_prog"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 break 2
5503 fi
5504 done
5505 done
5506 IFS=$as_save_IFS
5507
5508 fi
5509 fi
5510 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5511 if test -n "$ac_ct_AR"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5513 $as_echo "$ac_ct_AR" >&6; }
5514 else
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5517 fi
5518
5519
5520 test -n "$ac_ct_AR" && break
5521 done
5522
5523 if test "x$ac_ct_AR" = x; then
5524 AR="false"
5525 else
5526 case $cross_compiling:$ac_tool_warned in
5527 yes:)
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530 ac_tool_warned=yes ;;
5531 esac
5532 AR=$ac_ct_AR
5533 fi
5534 fi
5535
5536 : ${AR=ar}
5537 : ${AR_FLAGS=cru}
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5550 $as_echo_n "checking for archiver @FILE support... " >&6; }
5551 if ${lt_cv_ar_at_file+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 lt_cv_ar_at_file=no
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5557
5558 int
5559 main ()
5560 {
5561
5562 ;
5563 return 0;
5564 }
5565 _ACEOF
5566 if ac_fn_c_try_compile "$LINENO"; then :
5567 echo conftest.$ac_objext > conftest.lst
5568 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5570 (eval $lt_ar_try) 2>&5
5571 ac_status=$?
5572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5573 test $ac_status = 0; }
5574 if test 0 -eq "$ac_status"; then
5575 # Ensure the archiver fails upon bogus file names.
5576 rm -f conftest.$ac_objext libconftest.a
5577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5578 (eval $lt_ar_try) 2>&5
5579 ac_status=$?
5580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5581 test $ac_status = 0; }
5582 if test 0 -ne "$ac_status"; then
5583 lt_cv_ar_at_file=@
5584 fi
5585 fi
5586 rm -f conftest.* libconftest.a
5587
5588 fi
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590
5591 fi
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5593 $as_echo "$lt_cv_ar_at_file" >&6; }
5594
5595 if test no = "$lt_cv_ar_at_file"; then
5596 archiver_list_spec=
5597 else
5598 archiver_list_spec=$lt_cv_ar_at_file
5599 fi
5600
5601
5602
5603
5604
5605
5606
5607 if test -n "$ac_tool_prefix"; then
5608 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5609 set dummy ${ac_tool_prefix}strip; ac_word=$2
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611 $as_echo_n "checking for $ac_word... " >&6; }
5612 if ${ac_cv_prog_STRIP+:} false; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 if test -n "$STRIP"; then
5616 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5617 else
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH
5620 do
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 break 2
5628 fi
5629 done
5630 done
5631 IFS=$as_save_IFS
5632
5633 fi
5634 fi
5635 STRIP=$ac_cv_prog_STRIP
5636 if test -n "$STRIP"; then
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5638 $as_echo "$STRIP" >&6; }
5639 else
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5642 fi
5643
5644
5645 fi
5646 if test -z "$ac_cv_prog_STRIP"; then
5647 ac_ct_STRIP=$STRIP
5648 # Extract the first word of "strip", so it can be a program name with args.
5649 set dummy strip; ac_word=$2
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5651 $as_echo_n "checking for $ac_word... " >&6; }
5652 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5653 $as_echo_n "(cached) " >&6
5654 else
5655 if test -n "$ac_ct_STRIP"; then
5656 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5657 else
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 for as_dir in $PATH
5660 do
5661 IFS=$as_save_IFS
5662 test -z "$as_dir" && as_dir=.
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5665 ac_cv_prog_ac_ct_STRIP="strip"
5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 break 2
5668 fi
5669 done
5670 done
5671 IFS=$as_save_IFS
5672
5673 fi
5674 fi
5675 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5676 if test -n "$ac_ct_STRIP"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5678 $as_echo "$ac_ct_STRIP" >&6; }
5679 else
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5682 fi
5683
5684 if test "x$ac_ct_STRIP" = x; then
5685 STRIP=":"
5686 else
5687 case $cross_compiling:$ac_tool_warned in
5688 yes:)
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5691 ac_tool_warned=yes ;;
5692 esac
5693 STRIP=$ac_ct_STRIP
5694 fi
5695 else
5696 STRIP="$ac_cv_prog_STRIP"
5697 fi
5698
5699 test -z "$STRIP" && STRIP=:
5700
5701
5702
5703
5704
5705
5706 if test -n "$ac_tool_prefix"; then
5707 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5708 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710 $as_echo_n "checking for $ac_word... " >&6; }
5711 if ${ac_cv_prog_RANLIB+:} false; then :
5712 $as_echo_n "(cached) " >&6
5713 else
5714 if test -n "$RANLIB"; then
5715 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5719 do
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5724 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 break 2
5727 fi
5728 done
5729 done
5730 IFS=$as_save_IFS
5731
5732 fi
5733 fi
5734 RANLIB=$ac_cv_prog_RANLIB
5735 if test -n "$RANLIB"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5737 $as_echo "$RANLIB" >&6; }
5738 else
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5741 fi
5742
5743
5744 fi
5745 if test -z "$ac_cv_prog_RANLIB"; then
5746 ac_ct_RANLIB=$RANLIB
5747 # Extract the first word of "ranlib", so it can be a program name with args.
5748 set dummy ranlib; ac_word=$2
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750 $as_echo_n "checking for $ac_word... " >&6; }
5751 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 if test -n "$ac_ct_RANLIB"; then
5755 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5759 do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764 ac_cv_prog_ac_ct_RANLIB="ranlib"
5765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 break 2
5767 fi
5768 done
5769 done
5770 IFS=$as_save_IFS
5771
5772 fi
5773 fi
5774 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5775 if test -n "$ac_ct_RANLIB"; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5777 $as_echo "$ac_ct_RANLIB" >&6; }
5778 else
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 $as_echo "no" >&6; }
5781 fi
5782
5783 if test "x$ac_ct_RANLIB" = x; then
5784 RANLIB=":"
5785 else
5786 case $cross_compiling:$ac_tool_warned in
5787 yes:)
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5790 ac_tool_warned=yes ;;
5791 esac
5792 RANLIB=$ac_ct_RANLIB
5793 fi
5794 else
5795 RANLIB="$ac_cv_prog_RANLIB"
5796 fi
5797
5798 test -z "$RANLIB" && RANLIB=:
5799
5800
5801
5802
5803
5804
5805 # Determine commands to create old-style static archives.
5806 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5807 old_postinstall_cmds='chmod 644 $oldlib'
5808 old_postuninstall_cmds=
5809
5810 if test -n "$RANLIB"; then
5811 case $host_os in
5812 bitrig* | openbsd*)
5813 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5814 ;;
5815 *)
5816 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5817 ;;
5818 esac
5819 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5820 fi
5821
5822 case $host_os in
5823 darwin*)
5824 lock_old_archive_extraction=yes ;;
5825 *)
5826 lock_old_archive_extraction=no ;;
5827 esac
5828
5829
5830
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 # If no C compiler was specified, use CC.
5868 LTCC=${LTCC-"$CC"}
5869
5870 # If no C compiler flags were specified, use CFLAGS.
5871 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5872
5873 # Allow CC to be a program name with arguments.
5874 compiler=$CC
5875
5876
5877 # Check for command to grab the raw symbol name followed by C symbol from nm.
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5879 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5880 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883
5884 # These are sane defaults that work on at least a few old systems.
5885 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5886
5887 # Character class describing NM global symbol codes.
5888 symcode='[BCDEGRST]'
5889
5890 # Regexp to match symbols that can be accessed directly from C.
5891 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5892
5893 # Define system-specific variables.
5894 case $host_os in
5895 aix*)
5896 symcode='[BCDT]'
5897 ;;
5898 cygwin* | mingw* | pw32* | cegcc*)
5899 symcode='[ABCDGISTW]'
5900 ;;
5901 hpux*)
5902 if test ia64 = "$host_cpu"; then
5903 symcode='[ABCDEGRST]'
5904 fi
5905 ;;
5906 irix* | nonstopux*)
5907 symcode='[BCDEGRST]'
5908 ;;
5909 osf*)
5910 symcode='[BCDEGQRST]'
5911 ;;
5912 solaris*)
5913 symcode='[BDRT]'
5914 ;;
5915 sco3.2v5*)
5916 symcode='[DT]'
5917 ;;
5918 sysv4.2uw2*)
5919 symcode='[DT]'
5920 ;;
5921 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5922 symcode='[ABDT]'
5923 ;;
5924 sysv4)
5925 symcode='[DFNSTU]'
5926 ;;
5927 esac
5928
5929 # If we're using GNU nm, then use its standard symbol codes.
5930 case `$NM -V 2>&1` in
5931 *GNU* | *'with BFD'*)
5932 symcode='[ABCDGIRSTW]' ;;
5933 esac
5934
5935 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5936 # Gets list of data symbols to import.
5937 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5938 # Adjust the below global symbol transforms to fixup imported variables.
5939 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5940 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5941 lt_c_name_lib_hook="\
5942 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5943 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5944 else
5945 # Disable hooks by default.
5946 lt_cv_sys_global_symbol_to_import=
5947 lt_cdecl_hook=
5948 lt_c_name_hook=
5949 lt_c_name_lib_hook=
5950 fi
5951
5952 # Transform an extracted symbol line into a proper C declaration.
5953 # Some systems (esp. on ia64) link data and code symbols differently,
5954 # so use this general approach.
5955 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5956 $lt_cdecl_hook\
5957 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5958 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5959
5960 # Transform an extracted symbol line into symbol name and symbol address
5961 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5962 $lt_c_name_hook\
5963 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5964 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5965
5966 # Transform an extracted symbol line into symbol name with lib prefix and
5967 # symbol address.
5968 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5969 $lt_c_name_lib_hook\
5970 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5971 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5972 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5973
5974 # Handle CRLF in mingw tool chain
5975 opt_cr=
5976 case $build_os in
5977 mingw*)
5978 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5979 ;;
5980 esac
5981
5982 # Try without a prefix underscore, then with it.
5983 for ac_symprfx in "" "_"; do
5984
5985 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5986 symxfrm="\\1 $ac_symprfx\\2 \\2"
5987
5988 # Write the raw and C identifiers.
5989 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5990 # Fake it for dumpbin and say T for any non-static function,
5991 # D for any global variable and I for any imported variable.
5992 # Also find C++ and __fastcall symbols from MSVC++,
5993 # which start with @ or ?.
5994 lt_cv_sys_global_symbol_pipe="$AWK '"\
5995 " {last_section=section; section=\$ 3};"\
5996 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5997 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5998 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5999 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6000 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6001 " \$ 0!~/External *\|/{next};"\
6002 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6003 " {if(hide[section]) next};"\
6004 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6005 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6006 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6007 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6008 " ' prfx=^$ac_symprfx"
6009 else
6010 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6011 fi
6012 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6013
6014 # Check to see that the pipe works correctly.
6015 pipe_works=no
6016
6017 rm -f conftest*
6018 cat > conftest.$ac_ext <<_LT_EOF
6019 #ifdef __cplusplus
6020 extern "C" {
6021 #endif
6022 char nm_test_var;
6023 void nm_test_func(void);
6024 void nm_test_func(void){}
6025 #ifdef __cplusplus
6026 }
6027 #endif
6028 int main(){nm_test_var='a';nm_test_func();return(0);}
6029 _LT_EOF
6030
6031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6032 (eval $ac_compile) 2>&5
6033 ac_status=$?
6034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6035 test $ac_status = 0; }; then
6036 # Now try to grab the symbols.
6037 nlist=conftest.nm
6038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6039 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6040 ac_status=$?
6041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6042 test $ac_status = 0; } && test -s "$nlist"; then
6043 # Try sorting and uniquifying the output.
6044 if sort "$nlist" | uniq > "$nlist"T; then
6045 mv -f "$nlist"T "$nlist"
6046 else
6047 rm -f "$nlist"T
6048 fi
6049
6050 # Make sure that we snagged all the symbols we need.
6051 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6052 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6053 cat <<_LT_EOF > conftest.$ac_ext
6054 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6055 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6056 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6057 relocations are performed -- see ld's documentation on pseudo-relocs. */
6058 # define LT_DLSYM_CONST
6059 #elif defined __osf__
6060 /* This system does not cope well with relocations in const data. */
6061 # define LT_DLSYM_CONST
6062 #else
6063 # define LT_DLSYM_CONST const
6064 #endif
6065
6066 #ifdef __cplusplus
6067 extern "C" {
6068 #endif
6069
6070 _LT_EOF
6071 # Now generate the symbol file.
6072 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6073
6074 cat <<_LT_EOF >> conftest.$ac_ext
6075
6076 /* The mapping between symbol names and symbols. */
6077 LT_DLSYM_CONST struct {
6078 const char *name;
6079 void *address;
6080 }
6081 lt__PROGRAM__LTX_preloaded_symbols[] =
6082 {
6083 { "@PROGRAM@", (void *) 0 },
6084 _LT_EOF
6085 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6086 cat <<\_LT_EOF >> conftest.$ac_ext
6087 {0, (void *) 0}
6088 };
6089
6090 /* This works around a problem in FreeBSD linker */
6091 #ifdef FREEBSD_WORKAROUND
6092 static const void *lt_preloaded_setup() {
6093 return lt__PROGRAM__LTX_preloaded_symbols;
6094 }
6095 #endif
6096
6097 #ifdef __cplusplus
6098 }
6099 #endif
6100 _LT_EOF
6101 # Now try linking the two files.
6102 mv conftest.$ac_objext conftstm.$ac_objext
6103 lt_globsym_save_LIBS=$LIBS
6104 lt_globsym_save_CFLAGS=$CFLAGS
6105 LIBS=conftstm.$ac_objext
6106 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6108 (eval $ac_link) 2>&5
6109 ac_status=$?
6110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6111 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6112 pipe_works=yes
6113 fi
6114 LIBS=$lt_globsym_save_LIBS
6115 CFLAGS=$lt_globsym_save_CFLAGS
6116 else
6117 echo "cannot find nm_test_func in $nlist" >&5
6118 fi
6119 else
6120 echo "cannot find nm_test_var in $nlist" >&5
6121 fi
6122 else
6123 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6124 fi
6125 else
6126 echo "$progname: failed program was:" >&5
6127 cat conftest.$ac_ext >&5
6128 fi
6129 rm -rf conftest* conftst*
6130
6131 # Do not use the global_symbol_pipe unless it works.
6132 if test yes = "$pipe_works"; then
6133 break
6134 else
6135 lt_cv_sys_global_symbol_pipe=
6136 fi
6137 done
6138
6139 fi
6140
6141 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6142 lt_cv_sys_global_symbol_to_cdecl=
6143 fi
6144 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6146 $as_echo "failed" >&6; }
6147 else
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6149 $as_echo "ok" >&6; }
6150 fi
6151
6152 # Response file support.
6153 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6154 nm_file_list_spec='@'
6155 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6156 nm_file_list_spec='@'
6157 fi
6158
6159
6160
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6196 $as_echo_n "checking for sysroot... " >&6; }
6197
6198 # Check whether --with-sysroot was given.
6199 if test "${with_sysroot+set}" = set; then :
6200 withval=$with_sysroot;
6201 else
6202 with_sysroot=no
6203 fi
6204
6205
6206 lt_sysroot=
6207 case $with_sysroot in #(
6208 yes)
6209 if test yes = "$GCC"; then
6210 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6211 fi
6212 ;; #(
6213 /*)
6214 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6215 ;; #(
6216 no|'')
6217 ;; #(
6218 *)
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6220 $as_echo "$with_sysroot" >&6; }
6221 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6222 ;;
6223 esac
6224
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6226 $as_echo "${lt_sysroot:-no}" >&6; }
6227
6228
6229
6230
6231
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6233 $as_echo_n "checking for a working dd... " >&6; }
6234 if ${ac_cv_path_lt_DD+:} false; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 printf 0123456789abcdef0123456789abcdef >conftest.i
6238 cat conftest.i conftest.i >conftest2.i
6239 : ${lt_DD:=$DD}
6240 if test -z "$lt_DD"; then
6241 ac_path_lt_DD_found=false
6242 # Loop through the user's path and test for each of PROGNAME-LIST
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
6248 for ac_prog in dd; do
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6251 as_fn_executable_p "$ac_path_lt_DD" || continue
6252 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6253 cmp -s conftest.i conftest.out \
6254 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6255 fi
6256 $ac_path_lt_DD_found && break 3
6257 done
6258 done
6259 done
6260 IFS=$as_save_IFS
6261 if test -z "$ac_cv_path_lt_DD"; then
6262 :
6263 fi
6264 else
6265 ac_cv_path_lt_DD=$lt_DD
6266 fi
6267
6268 rm -f conftest.i conftest2.i conftest.out
6269 fi
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6271 $as_echo "$ac_cv_path_lt_DD" >&6; }
6272
6273
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6275 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6276 if ${lt_cv_truncate_bin+:} false; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6279 printf 0123456789abcdef0123456789abcdef >conftest.i
6280 cat conftest.i conftest.i >conftest2.i
6281 lt_cv_truncate_bin=
6282 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6283 cmp -s conftest.i conftest.out \
6284 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6285 fi
6286 rm -f conftest.i conftest2.i conftest.out
6287 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6288 fi
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6290 $as_echo "$lt_cv_truncate_bin" >&6; }
6291
6292
6293
6294
6295
6296
6297
6298 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6299 func_cc_basename ()
6300 {
6301 for cc_temp in $*""; do
6302 case $cc_temp in
6303 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6304 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6305 \-*) ;;
6306 *) break;;
6307 esac
6308 done
6309 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6310 }
6311
6312 # Check whether --enable-libtool-lock was given.
6313 if test "${enable_libtool_lock+set}" = set; then :
6314 enableval=$enable_libtool_lock;
6315 fi
6316
6317 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6318
6319 # Some flags need to be propagated to the compiler or linker for good
6320 # libtool support.
6321 case $host in
6322 ia64-*-hpux*)
6323 # Find out what ABI is being produced by ac_compile, and set mode
6324 # options accordingly.
6325 echo 'int i;' > conftest.$ac_ext
6326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6327 (eval $ac_compile) 2>&5
6328 ac_status=$?
6329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6330 test $ac_status = 0; }; then
6331 case `/usr/bin/file conftest.$ac_objext` in
6332 *ELF-32*)
6333 HPUX_IA64_MODE=32
6334 ;;
6335 *ELF-64*)
6336 HPUX_IA64_MODE=64
6337 ;;
6338 esac
6339 fi
6340 rm -rf conftest*
6341 ;;
6342 *-*-irix6*)
6343 # Find out what ABI is being produced by ac_compile, and set linker
6344 # options accordingly.
6345 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6347 (eval $ac_compile) 2>&5
6348 ac_status=$?
6349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6350 test $ac_status = 0; }; then
6351 if test yes = "$lt_cv_prog_gnu_ld"; then
6352 case `/usr/bin/file conftest.$ac_objext` in
6353 *32-bit*)
6354 LD="${LD-ld} -melf32bsmip"
6355 ;;
6356 *N32*)
6357 LD="${LD-ld} -melf32bmipn32"
6358 ;;
6359 *64-bit*)
6360 LD="${LD-ld} -melf64bmip"
6361 ;;
6362 esac
6363 else
6364 case `/usr/bin/file conftest.$ac_objext` in
6365 *32-bit*)
6366 LD="${LD-ld} -32"
6367 ;;
6368 *N32*)
6369 LD="${LD-ld} -n32"
6370 ;;
6371 *64-bit*)
6372 LD="${LD-ld} -64"
6373 ;;
6374 esac
6375 fi
6376 fi
6377 rm -rf conftest*
6378 ;;
6379
6380 mips64*-*linux*)
6381 # Find out what ABI is being produced by ac_compile, and set linker
6382 # options accordingly.
6383 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6385 (eval $ac_compile) 2>&5
6386 ac_status=$?
6387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6388 test $ac_status = 0; }; then
6389 emul=elf
6390 case `/usr/bin/file conftest.$ac_objext` in
6391 *32-bit*)
6392 emul="${emul}32"
6393 ;;
6394 *64-bit*)
6395 emul="${emul}64"
6396 ;;
6397 esac
6398 case `/usr/bin/file conftest.$ac_objext` in
6399 *MSB*)
6400 emul="${emul}btsmip"
6401 ;;
6402 *LSB*)
6403 emul="${emul}ltsmip"
6404 ;;
6405 esac
6406 case `/usr/bin/file conftest.$ac_objext` in
6407 *N32*)
6408 emul="${emul}n32"
6409 ;;
6410 esac
6411 LD="${LD-ld} -m $emul"
6412 fi
6413 rm -rf conftest*
6414 ;;
6415
6416 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6417 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6418 # Find out what ABI is being produced by ac_compile, and set linker
6419 # options accordingly. Note that the listed cases only cover the
6420 # situations where additional linker options are needed (such as when
6421 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6422 # vice versa); the common cases where no linker options are needed do
6423 # not appear in the list.
6424 echo 'int i;' > conftest.$ac_ext
6425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6426 (eval $ac_compile) 2>&5
6427 ac_status=$?
6428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6429 test $ac_status = 0; }; then
6430 case `/usr/bin/file conftest.o` in
6431 *32-bit*)
6432 case $host in
6433 x86_64-*kfreebsd*-gnu)
6434 LD="${LD-ld} -m elf_i386_fbsd"
6435 ;;
6436 x86_64-*linux*)
6437 case `/usr/bin/file conftest.o` in
6438 *x86-64*)
6439 LD="${LD-ld} -m elf32_x86_64"
6440 ;;
6441 *)
6442 LD="${LD-ld} -m elf_i386"
6443 ;;
6444 esac
6445 ;;
6446 powerpc64le-*linux*)
6447 LD="${LD-ld} -m elf32lppclinux"
6448 ;;
6449 powerpc64-*linux*)
6450 LD="${LD-ld} -m elf32ppclinux"
6451 ;;
6452 s390x-*linux*)
6453 LD="${LD-ld} -m elf_s390"
6454 ;;
6455 sparc64-*linux*)
6456 LD="${LD-ld} -m elf32_sparc"
6457 ;;
6458 esac
6459 ;;
6460 *64-bit*)
6461 case $host in
6462 x86_64-*kfreebsd*-gnu)
6463 LD="${LD-ld} -m elf_x86_64_fbsd"
6464 ;;
6465 x86_64-*linux*)
6466 LD="${LD-ld} -m elf_x86_64"
6467 ;;
6468 powerpcle-*linux*)
6469 LD="${LD-ld} -m elf64lppc"
6470 ;;
6471 powerpc-*linux*)
6472 LD="${LD-ld} -m elf64ppc"
6473 ;;
6474 s390*-*linux*|s390*-*tpf*)
6475 LD="${LD-ld} -m elf64_s390"
6476 ;;
6477 sparc*-*linux*)
6478 LD="${LD-ld} -m elf64_sparc"
6479 ;;
6480 esac
6481 ;;
6482 esac
6483 fi
6484 rm -rf conftest*
6485 ;;
6486
6487 *-*-sco3.2v5*)
6488 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6489 SAVE_CFLAGS=$CFLAGS
6490 CFLAGS="$CFLAGS -belf"
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6492 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6493 if ${lt_cv_cc_needs_belf+:} false; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 ac_ext=c
6497 ac_cpp='$CPP $CPPFLAGS'
6498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6501
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504
6505 int
6506 main ()
6507 {
6508
6509 ;
6510 return 0;
6511 }
6512 _ACEOF
6513 if ac_fn_c_try_link "$LINENO"; then :
6514 lt_cv_cc_needs_belf=yes
6515 else
6516 lt_cv_cc_needs_belf=no
6517 fi
6518 rm -f core conftest.err conftest.$ac_objext \
6519 conftest$ac_exeext conftest.$ac_ext
6520 ac_ext=c
6521 ac_cpp='$CPP $CPPFLAGS'
6522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6525
6526 fi
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6528 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6529 if test yes != "$lt_cv_cc_needs_belf"; then
6530 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6531 CFLAGS=$SAVE_CFLAGS
6532 fi
6533 ;;
6534 *-*solaris*)
6535 # Find out what ABI is being produced by ac_compile, and set linker
6536 # options accordingly.
6537 echo 'int i;' > conftest.$ac_ext
6538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6539 (eval $ac_compile) 2>&5
6540 ac_status=$?
6541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6542 test $ac_status = 0; }; then
6543 case `/usr/bin/file conftest.o` in
6544 *64-bit*)
6545 case $lt_cv_prog_gnu_ld in
6546 yes*)
6547 case $host in
6548 i?86-*-solaris*|x86_64-*-solaris*)
6549 LD="${LD-ld} -m elf_x86_64"
6550 ;;
6551 sparc*-*-solaris*)
6552 LD="${LD-ld} -m elf64_sparc"
6553 ;;
6554 esac
6555 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6556 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6557 LD=${LD-ld}_sol2
6558 fi
6559 ;;
6560 *)
6561 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6562 LD="${LD-ld} -64"
6563 fi
6564 ;;
6565 esac
6566 ;;
6567 esac
6568 fi
6569 rm -rf conftest*
6570 ;;
6571 esac
6572
6573 need_locks=$enable_libtool_lock
6574
6575 if test -n "$ac_tool_prefix"; then
6576 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6577 set dummy ${ac_tool_prefix}mt; ac_word=$2
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579 $as_echo_n "checking for $ac_word... " >&6; }
6580 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6583 if test -n "$MANIFEST_TOOL"; then
6584 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6585 else
6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 for as_dir in $PATH
6588 do
6589 IFS=$as_save_IFS
6590 test -z "$as_dir" && as_dir=.
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6593 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 break 2
6596 fi
6597 done
6598 done
6599 IFS=$as_save_IFS
6600
6601 fi
6602 fi
6603 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6604 if test -n "$MANIFEST_TOOL"; then
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6606 $as_echo "$MANIFEST_TOOL" >&6; }
6607 else
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609 $as_echo "no" >&6; }
6610 fi
6611
6612
6613 fi
6614 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6615 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6616 # Extract the first word of "mt", so it can be a program name with args.
6617 set dummy mt; ac_word=$2
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619 $as_echo_n "checking for $ac_word... " >&6; }
6620 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 if test -n "$ac_ct_MANIFEST_TOOL"; then
6624 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6633 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6636 fi
6637 done
6638 done
6639 IFS=$as_save_IFS
6640
6641 fi
6642 fi
6643 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6644 if test -n "$ac_ct_MANIFEST_TOOL"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6646 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6647 else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649 $as_echo "no" >&6; }
6650 fi
6651
6652 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6653 MANIFEST_TOOL=":"
6654 else
6655 case $cross_compiling:$ac_tool_warned in
6656 yes:)
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6659 ac_tool_warned=yes ;;
6660 esac
6661 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6662 fi
6663 else
6664 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6665 fi
6666
6667 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6669 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6670 if ${lt_cv_path_mainfest_tool+:} false; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6673 lt_cv_path_mainfest_tool=no
6674 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6675 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6676 cat conftest.err >&5
6677 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6678 lt_cv_path_mainfest_tool=yes
6679 fi
6680 rm -f conftest*
6681 fi
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6683 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6684 if test yes != "$lt_cv_path_mainfest_tool"; then
6685 MANIFEST_TOOL=:
6686 fi
6687
6688
6689
6690
6691
6692
6693 case $host_os in
6694 rhapsody* | darwin*)
6695 if test -n "$ac_tool_prefix"; then
6696 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6697 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6701 $as_echo_n "(cached) " >&6
6702 else
6703 if test -n "$DSYMUTIL"; then
6704 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6713 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6716 fi
6717 done
6718 done
6719 IFS=$as_save_IFS
6720
6721 fi
6722 fi
6723 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6724 if test -n "$DSYMUTIL"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6726 $as_echo "$DSYMUTIL" >&6; }
6727 else
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6730 fi
6731
6732
6733 fi
6734 if test -z "$ac_cv_prog_DSYMUTIL"; then
6735 ac_ct_DSYMUTIL=$DSYMUTIL
6736 # Extract the first word of "dsymutil", so it can be a program name with args.
6737 set dummy dsymutil; ac_word=$2
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6739 $as_echo_n "checking for $ac_word... " >&6; }
6740 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6741 $as_echo_n "(cached) " >&6
6742 else
6743 if test -n "$ac_ct_DSYMUTIL"; then
6744 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6745 else
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 for as_dir in $PATH
6748 do
6749 IFS=$as_save_IFS
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6753 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 break 2
6756 fi
6757 done
6758 done
6759 IFS=$as_save_IFS
6760
6761 fi
6762 fi
6763 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6764 if test -n "$ac_ct_DSYMUTIL"; then
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6766 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6767 else
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769 $as_echo "no" >&6; }
6770 fi
6771
6772 if test "x$ac_ct_DSYMUTIL" = x; then
6773 DSYMUTIL=":"
6774 else
6775 case $cross_compiling:$ac_tool_warned in
6776 yes:)
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6779 ac_tool_warned=yes ;;
6780 esac
6781 DSYMUTIL=$ac_ct_DSYMUTIL
6782 fi
6783 else
6784 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6785 fi
6786
6787 if test -n "$ac_tool_prefix"; then
6788 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6789 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791 $as_echo_n "checking for $ac_word... " >&6; }
6792 if ${ac_cv_prog_NMEDIT+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 if test -n "$NMEDIT"; then
6796 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6797 else
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6800 do
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6805 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 break 2
6808 fi
6809 done
6810 done
6811 IFS=$as_save_IFS
6812
6813 fi
6814 fi
6815 NMEDIT=$ac_cv_prog_NMEDIT
6816 if test -n "$NMEDIT"; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6818 $as_echo "$NMEDIT" >&6; }
6819 else
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 $as_echo "no" >&6; }
6822 fi
6823
6824
6825 fi
6826 if test -z "$ac_cv_prog_NMEDIT"; then
6827 ac_ct_NMEDIT=$NMEDIT
6828 # Extract the first word of "nmedit", so it can be a program name with args.
6829 set dummy nmedit; ac_word=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6833 $as_echo_n "(cached) " >&6
6834 else
6835 if test -n "$ac_ct_NMEDIT"; then
6836 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6837 else
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6840 do
6841 IFS=$as_save_IFS
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6845 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 break 2
6848 fi
6849 done
6850 done
6851 IFS=$as_save_IFS
6852
6853 fi
6854 fi
6855 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6856 if test -n "$ac_ct_NMEDIT"; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6858 $as_echo "$ac_ct_NMEDIT" >&6; }
6859 else
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6862 fi
6863
6864 if test "x$ac_ct_NMEDIT" = x; then
6865 NMEDIT=":"
6866 else
6867 case $cross_compiling:$ac_tool_warned in
6868 yes:)
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6871 ac_tool_warned=yes ;;
6872 esac
6873 NMEDIT=$ac_ct_NMEDIT
6874 fi
6875 else
6876 NMEDIT="$ac_cv_prog_NMEDIT"
6877 fi
6878
6879 if test -n "$ac_tool_prefix"; then
6880 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6881 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883 $as_echo_n "checking for $ac_word... " >&6; }
6884 if ${ac_cv_prog_LIPO+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 if test -n "$LIPO"; then
6888 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6889 else
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6892 do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6897 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6900 fi
6901 done
6902 done
6903 IFS=$as_save_IFS
6904
6905 fi
6906 fi
6907 LIPO=$ac_cv_prog_LIPO
6908 if test -n "$LIPO"; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6910 $as_echo "$LIPO" >&6; }
6911 else
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913 $as_echo "no" >&6; }
6914 fi
6915
6916
6917 fi
6918 if test -z "$ac_cv_prog_LIPO"; then
6919 ac_ct_LIPO=$LIPO
6920 # Extract the first word of "lipo", so it can be a program name with args.
6921 set dummy lipo; ac_word=$2
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923 $as_echo_n "checking for $ac_word... " >&6; }
6924 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6925 $as_echo_n "(cached) " >&6
6926 else
6927 if test -n "$ac_ct_LIPO"; then
6928 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6929 else
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6932 do
6933 IFS=$as_save_IFS
6934 test -z "$as_dir" && as_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6937 ac_cv_prog_ac_ct_LIPO="lipo"
6938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 break 2
6940 fi
6941 done
6942 done
6943 IFS=$as_save_IFS
6944
6945 fi
6946 fi
6947 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6948 if test -n "$ac_ct_LIPO"; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6950 $as_echo "$ac_ct_LIPO" >&6; }
6951 else
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953 $as_echo "no" >&6; }
6954 fi
6955
6956 if test "x$ac_ct_LIPO" = x; then
6957 LIPO=":"
6958 else
6959 case $cross_compiling:$ac_tool_warned in
6960 yes:)
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6963 ac_tool_warned=yes ;;
6964 esac
6965 LIPO=$ac_ct_LIPO
6966 fi
6967 else
6968 LIPO="$ac_cv_prog_LIPO"
6969 fi
6970
6971 if test -n "$ac_tool_prefix"; then
6972 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6973 set dummy ${ac_tool_prefix}otool; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if ${ac_cv_prog_OTOOL+:} false; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 if test -n "$OTOOL"; then
6980 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6981 else
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6984 do
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6989 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6992 fi
6993 done
6994 done
6995 IFS=$as_save_IFS
6996
6997 fi
6998 fi
6999 OTOOL=$ac_cv_prog_OTOOL
7000 if test -n "$OTOOL"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7002 $as_echo "$OTOOL" >&6; }
7003 else
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 $as_echo "no" >&6; }
7006 fi
7007
7008
7009 fi
7010 if test -z "$ac_cv_prog_OTOOL"; then
7011 ac_ct_OTOOL=$OTOOL
7012 # Extract the first word of "otool", so it can be a program name with args.
7013 set dummy otool; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7017 $as_echo_n "(cached) " >&6
7018 else
7019 if test -n "$ac_ct_OTOOL"; then
7020 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7021 else
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7024 do
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7029 ac_cv_prog_ac_ct_OTOOL="otool"
7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 break 2
7032 fi
7033 done
7034 done
7035 IFS=$as_save_IFS
7036
7037 fi
7038 fi
7039 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7040 if test -n "$ac_ct_OTOOL"; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7042 $as_echo "$ac_ct_OTOOL" >&6; }
7043 else
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7046 fi
7047
7048 if test "x$ac_ct_OTOOL" = x; then
7049 OTOOL=":"
7050 else
7051 case $cross_compiling:$ac_tool_warned in
7052 yes:)
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7055 ac_tool_warned=yes ;;
7056 esac
7057 OTOOL=$ac_ct_OTOOL
7058 fi
7059 else
7060 OTOOL="$ac_cv_prog_OTOOL"
7061 fi
7062
7063 if test -n "$ac_tool_prefix"; then
7064 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7065 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if ${ac_cv_prog_OTOOL64+:} false; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 if test -n "$OTOOL64"; then
7072 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7076 do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7084 fi
7085 done
7086 done
7087 IFS=$as_save_IFS
7088
7089 fi
7090 fi
7091 OTOOL64=$ac_cv_prog_OTOOL64
7092 if test -n "$OTOOL64"; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7094 $as_echo "$OTOOL64" >&6; }
7095 else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7098 fi
7099
7100
7101 fi
7102 if test -z "$ac_cv_prog_OTOOL64"; then
7103 ac_ct_OTOOL64=$OTOOL64
7104 # Extract the first word of "otool64", so it can be a program name with args.
7105 set dummy otool64; ac_word=$2
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107 $as_echo_n "checking for $ac_word... " >&6; }
7108 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111 if test -n "$ac_ct_OTOOL64"; then
7112 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7113 else
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7116 do
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121 ac_cv_prog_ac_ct_OTOOL64="otool64"
7122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7124 fi
7125 done
7126 done
7127 IFS=$as_save_IFS
7128
7129 fi
7130 fi
7131 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7132 if test -n "$ac_ct_OTOOL64"; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7134 $as_echo "$ac_ct_OTOOL64" >&6; }
7135 else
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7138 fi
7139
7140 if test "x$ac_ct_OTOOL64" = x; then
7141 OTOOL64=":"
7142 else
7143 case $cross_compiling:$ac_tool_warned in
7144 yes:)
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7147 ac_tool_warned=yes ;;
7148 esac
7149 OTOOL64=$ac_ct_OTOOL64
7150 fi
7151 else
7152 OTOOL64="$ac_cv_prog_OTOOL64"
7153 fi
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7182 $as_echo_n "checking for -single_module linker flag... " >&6; }
7183 if ${lt_cv_apple_cc_single_mod+:} false; then :
7184 $as_echo_n "(cached) " >&6
7185 else
7186 lt_cv_apple_cc_single_mod=no
7187 if test -z "$LT_MULTI_MODULE"; then
7188 # By default we will add the -single_module flag. You can override
7189 # by either setting the environment variable LT_MULTI_MODULE
7190 # non-empty at configure time, or by adding -multi_module to the
7191 # link flags.
7192 rm -rf libconftest.dylib*
7193 echo "int foo(void){return 1;}" > conftest.c
7194 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7195 -dynamiclib -Wl,-single_module conftest.c" >&5
7196 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7197 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7198 _lt_result=$?
7199 # If there is a non-empty error log, and "single_module"
7200 # appears in it, assume the flag caused a linker warning
7201 if test -s conftest.err && $GREP single_module conftest.err; then
7202 cat conftest.err >&5
7203 # Otherwise, if the output was created with a 0 exit code from
7204 # the compiler, it worked.
7205 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7206 lt_cv_apple_cc_single_mod=yes
7207 else
7208 cat conftest.err >&5
7209 fi
7210 rm -rf libconftest.dylib*
7211 rm -f conftest.*
7212 fi
7213 fi
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7215 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7216
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7218 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7219 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7220 $as_echo_n "(cached) " >&6
7221 else
7222 lt_cv_ld_exported_symbols_list=no
7223 save_LDFLAGS=$LDFLAGS
7224 echo "_main" > conftest.sym
7225 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7228
7229 int
7230 main ()
7231 {
7232
7233 ;
7234 return 0;
7235 }
7236 _ACEOF
7237 if ac_fn_c_try_link "$LINENO"; then :
7238 lt_cv_ld_exported_symbols_list=yes
7239 else
7240 lt_cv_ld_exported_symbols_list=no
7241 fi
7242 rm -f core conftest.err conftest.$ac_objext \
7243 conftest$ac_exeext conftest.$ac_ext
7244 LDFLAGS=$save_LDFLAGS
7245
7246 fi
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7248 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7249
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7251 $as_echo_n "checking for -force_load linker flag... " >&6; }
7252 if ${lt_cv_ld_force_load+:} false; then :
7253 $as_echo_n "(cached) " >&6
7254 else
7255 lt_cv_ld_force_load=no
7256 cat > conftest.c << _LT_EOF
7257 int forced_loaded() { return 2;}
7258 _LT_EOF
7259 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7260 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7261 echo "$AR cru libconftest.a conftest.o" >&5
7262 $AR cru libconftest.a conftest.o 2>&5
7263 echo "$RANLIB libconftest.a" >&5
7264 $RANLIB libconftest.a 2>&5
7265 cat > conftest.c << _LT_EOF
7266 int main() { return 0;}
7267 _LT_EOF
7268 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7269 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7270 _lt_result=$?
7271 if test -s conftest.err && $GREP force_load conftest.err; then
7272 cat conftest.err >&5
7273 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7274 lt_cv_ld_force_load=yes
7275 else
7276 cat conftest.err >&5
7277 fi
7278 rm -f conftest.err libconftest.a conftest conftest.c
7279 rm -rf conftest.dSYM
7280
7281 fi
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7283 $as_echo "$lt_cv_ld_force_load" >&6; }
7284 case $host_os in
7285 rhapsody* | darwin1.[012])
7286 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7287 darwin1.*)
7288 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7289 darwin*) # darwin 5.x on
7290 # if running on 10.5 or later, the deployment target defaults
7291 # to the OS version, if on x86, and 10.4, the deployment
7292 # target defaults to 10.4. Don't you love it?
7293 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7294 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7295 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7296 10.[012][,.]*)
7297 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7298 10.*)
7299 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7300 esac
7301 ;;
7302 esac
7303 if test yes = "$lt_cv_apple_cc_single_mod"; then
7304 _lt_dar_single_mod='$single_module'
7305 fi
7306 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7307 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7308 else
7309 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7310 fi
7311 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7312 _lt_dsymutil='~$DSYMUTIL $lib || :'
7313 else
7314 _lt_dsymutil=
7315 fi
7316 ;;
7317 esac
7318
7319 # func_munge_path_list VARIABLE PATH
7320 # -----------------------------------
7321 # VARIABLE is name of variable containing _space_ separated list of
7322 # directories to be munged by the contents of PATH, which is string
7323 # having a format:
7324 # "DIR[:DIR]:"
7325 # string "DIR[ DIR]" will be prepended to VARIABLE
7326 # ":DIR[:DIR]"
7327 # string "DIR[ DIR]" will be appended to VARIABLE
7328 # "DIRP[:DIRP]::[DIRA:]DIRA"
7329 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7330 # "DIRA[ DIRA]" will be appended to VARIABLE
7331 # "DIR[:DIR]"
7332 # VARIABLE will be replaced by "DIR[ DIR]"
7333 func_munge_path_list ()
7334 {
7335 case x$2 in
7336 x)
7337 ;;
7338 *:)
7339 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7340 ;;
7341 x:*)
7342 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7343 ;;
7344 *::*)
7345 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7346 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7347 ;;
7348 *)
7349 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7350 ;;
7351 esac
7352 }
7353
7354 ac_ext=c
7355 ac_cpp='$CPP $CPPFLAGS'
7356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7360 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7361 # On Suns, sometimes $CPP names a directory.
7362 if test -n "$CPP" && test -d "$CPP"; then
7363 CPP=
7364 fi
7365 if test -z "$CPP"; then
7366 if ${ac_cv_prog_CPP+:} false; then :
7367 $as_echo_n "(cached) " >&6
7368 else
7369 # Double quotes because CPP needs to be expanded
7370 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7371 do
7372 ac_preproc_ok=false
7373 for ac_c_preproc_warn_flag in '' yes
7374 do
7375 # Use a header file that comes with gcc, so configuring glibc
7376 # with a fresh cross-compiler works.
7377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7378 # <limits.h> exists even on freestanding compilers.
7379 # On the NeXT, cc -E runs the code through the compiler's parser,
7380 # not just through cpp. "Syntax error" is here to catch this case.
7381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382 /* end confdefs.h. */
7383 #ifdef __STDC__
7384 # include <limits.h>
7385 #else
7386 # include <assert.h>
7387 #endif
7388 Syntax error
7389 _ACEOF
7390 if ac_fn_c_try_cpp "$LINENO"; then :
7391
7392 else
7393 # Broken: fails on valid input.
7394 continue
7395 fi
7396 rm -f conftest.err conftest.i conftest.$ac_ext
7397
7398 # OK, works on sane cases. Now check whether nonexistent headers
7399 # can be detected and how.
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7402 #include <ac_nonexistent.h>
7403 _ACEOF
7404 if ac_fn_c_try_cpp "$LINENO"; then :
7405 # Broken: success on invalid input.
7406 continue
7407 else
7408 # Passes both tests.
7409 ac_preproc_ok=:
7410 break
7411 fi
7412 rm -f conftest.err conftest.i conftest.$ac_ext
7413
7414 done
7415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7416 rm -f conftest.i conftest.err conftest.$ac_ext
7417 if $ac_preproc_ok; then :
7418 break
7419 fi
7420
7421 done
7422 ac_cv_prog_CPP=$CPP
7423
7424 fi
7425 CPP=$ac_cv_prog_CPP
7426 else
7427 ac_cv_prog_CPP=$CPP
7428 fi
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7430 $as_echo "$CPP" >&6; }
7431 ac_preproc_ok=false
7432 for ac_c_preproc_warn_flag in '' yes
7433 do
7434 # Use a header file that comes with gcc, so configuring glibc
7435 # with a fresh cross-compiler works.
7436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7437 # <limits.h> exists even on freestanding compilers.
7438 # On the NeXT, cc -E runs the code through the compiler's parser,
7439 # not just through cpp. "Syntax error" is here to catch this case.
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7442 #ifdef __STDC__
7443 # include <limits.h>
7444 #else
7445 # include <assert.h>
7446 #endif
7447 Syntax error
7448 _ACEOF
7449 if ac_fn_c_try_cpp "$LINENO"; then :
7450
7451 else
7452 # Broken: fails on valid input.
7453 continue
7454 fi
7455 rm -f conftest.err conftest.i conftest.$ac_ext
7456
7457 # OK, works on sane cases. Now check whether nonexistent headers
7458 # can be detected and how.
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7461 #include <ac_nonexistent.h>
7462 _ACEOF
7463 if ac_fn_c_try_cpp "$LINENO"; then :
7464 # Broken: success on invalid input.
7465 continue
7466 else
7467 # Passes both tests.
7468 ac_preproc_ok=:
7469 break
7470 fi
7471 rm -f conftest.err conftest.i conftest.$ac_ext
7472
7473 done
7474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7475 rm -f conftest.i conftest.err conftest.$ac_ext
7476 if $ac_preproc_ok; then :
7477
7478 else
7479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7481 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7482 See \`config.log' for more details" "$LINENO" 5; }
7483 fi
7484
7485 ac_ext=c
7486 ac_cpp='$CPP $CPPFLAGS'
7487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7490
7491
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7493 $as_echo_n "checking for ANSI C header files... " >&6; }
7494 if ${ac_cv_header_stdc+:} false; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7499 #include <stdlib.h>
7500 #include <stdarg.h>
7501 #include <string.h>
7502 #include <float.h>
7503
7504 int
7505 main ()
7506 {
7507
7508 ;
7509 return 0;
7510 }
7511 _ACEOF
7512 if ac_fn_c_try_compile "$LINENO"; then :
7513 ac_cv_header_stdc=yes
7514 else
7515 ac_cv_header_stdc=no
7516 fi
7517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518
7519 if test $ac_cv_header_stdc = yes; then
7520 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7523 #include <string.h>
7524
7525 _ACEOF
7526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7527 $EGREP "memchr" >/dev/null 2>&1; then :
7528
7529 else
7530 ac_cv_header_stdc=no
7531 fi
7532 rm -f conftest*
7533
7534 fi
7535
7536 if test $ac_cv_header_stdc = yes; then
7537 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7540 #include <stdlib.h>
7541
7542 _ACEOF
7543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7544 $EGREP "free" >/dev/null 2>&1; then :
7545
7546 else
7547 ac_cv_header_stdc=no
7548 fi
7549 rm -f conftest*
7550
7551 fi
7552
7553 if test $ac_cv_header_stdc = yes; then
7554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7555 if test "$cross_compiling" = yes; then :
7556 :
7557 else
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7560 #include <ctype.h>
7561 #include <stdlib.h>
7562 #if ((' ' & 0x0FF) == 0x020)
7563 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7564 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7565 #else
7566 # define ISLOWER(c) \
7567 (('a' <= (c) && (c) <= 'i') \
7568 || ('j' <= (c) && (c) <= 'r') \
7569 || ('s' <= (c) && (c) <= 'z'))
7570 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7571 #endif
7572
7573 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7574 int
7575 main ()
7576 {
7577 int i;
7578 for (i = 0; i < 256; i++)
7579 if (XOR (islower (i), ISLOWER (i))
7580 || toupper (i) != TOUPPER (i))
7581 return 2;
7582 return 0;
7583 }
7584 _ACEOF
7585 if ac_fn_c_try_run "$LINENO"; then :
7586
7587 else
7588 ac_cv_header_stdc=no
7589 fi
7590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7591 conftest.$ac_objext conftest.beam conftest.$ac_ext
7592 fi
7593
7594 fi
7595 fi
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7597 $as_echo "$ac_cv_header_stdc" >&6; }
7598 if test $ac_cv_header_stdc = yes; then
7599
7600 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7601
7602 fi
7603
7604 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7605 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7606 inttypes.h stdint.h unistd.h
7607 do :
7608 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7609 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7610 "
7611 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7612 cat >>confdefs.h <<_ACEOF
7613 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7614 _ACEOF
7615
7616 fi
7617
7618 done
7619
7620
7621 for ac_header in dlfcn.h
7622 do :
7623 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7624 "
7625 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7626 cat >>confdefs.h <<_ACEOF
7627 #define HAVE_DLFCN_H 1
7628 _ACEOF
7629
7630 fi
7631
7632 done
7633
7634
7635
7636
7637
7638 # Set options
7639
7640
7641
7642 enable_dlopen=no
7643
7644
7645 enable_win32_dll=no
7646
7647
7648 # Check whether --enable-shared was given.
7649 if test "${enable_shared+set}" = set; then :
7650 enableval=$enable_shared; p=${PACKAGE-default}
7651 case $enableval in
7652 yes) enable_shared=yes ;;
7653 no) enable_shared=no ;;
7654 *)
7655 enable_shared=no
7656 # Look at the argument we got. We use all the common list separators.
7657 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7658 for pkg in $enableval; do
7659 IFS=$lt_save_ifs
7660 if test "X$pkg" = "X$p"; then
7661 enable_shared=yes
7662 fi
7663 done
7664 IFS=$lt_save_ifs
7665 ;;
7666 esac
7667 else
7668 enable_shared=yes
7669 fi
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679 # Check whether --enable-static was given.
7680 if test "${enable_static+set}" = set; then :
7681 enableval=$enable_static; p=${PACKAGE-default}
7682 case $enableval in
7683 yes) enable_static=yes ;;
7684 no) enable_static=no ;;
7685 *)
7686 enable_static=no
7687 # Look at the argument we got. We use all the common list separators.
7688 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7689 for pkg in $enableval; do
7690 IFS=$lt_save_ifs
7691 if test "X$pkg" = "X$p"; then
7692 enable_static=yes
7693 fi
7694 done
7695 IFS=$lt_save_ifs
7696 ;;
7697 esac
7698 else
7699 enable_static=yes
7700 fi
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711 # Check whether --with-pic was given.
7712 if test "${with_pic+set}" = set; then :
7713 withval=$with_pic; lt_p=${PACKAGE-default}
7714 case $withval in
7715 yes|no) pic_mode=$withval ;;
7716 *)
7717 pic_mode=default
7718 # Look at the argument we got. We use all the common list separators.
7719 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7720 for lt_pkg in $withval; do
7721 IFS=$lt_save_ifs
7722 if test "X$lt_pkg" = "X$lt_p"; then
7723 pic_mode=yes
7724 fi
7725 done
7726 IFS=$lt_save_ifs
7727 ;;
7728 esac
7729 else
7730 pic_mode=default
7731 fi
7732
7733
7734
7735
7736
7737
7738
7739
7740 # Check whether --enable-fast-install was given.
7741 if test "${enable_fast_install+set}" = set; then :
7742 enableval=$enable_fast_install; p=${PACKAGE-default}
7743 case $enableval in
7744 yes) enable_fast_install=yes ;;
7745 no) enable_fast_install=no ;;
7746 *)
7747 enable_fast_install=no
7748 # Look at the argument we got. We use all the common list separators.
7749 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7750 for pkg in $enableval; do
7751 IFS=$lt_save_ifs
7752 if test "X$pkg" = "X$p"; then
7753 enable_fast_install=yes
7754 fi
7755 done
7756 IFS=$lt_save_ifs
7757 ;;
7758 esac
7759 else
7760 enable_fast_install=yes
7761 fi
7762
7763
7764
7765
7766
7767
7768
7769
7770 shared_archive_member_spec=
7771 case $host,$enable_shared in
7772 power*-*-aix[5-9]*,yes)
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7774 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7775
7776 # Check whether --with-aix-soname was given.
7777 if test "${with_aix_soname+set}" = set; then :
7778 withval=$with_aix_soname; case $withval in
7779 aix|svr4|both)
7780 ;;
7781 *)
7782 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7783 ;;
7784 esac
7785 lt_cv_with_aix_soname=$with_aix_soname
7786 else
7787 if ${lt_cv_with_aix_soname+:} false; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7790 lt_cv_with_aix_soname=aix
7791 fi
7792
7793 with_aix_soname=$lt_cv_with_aix_soname
7794 fi
7795
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7797 $as_echo "$with_aix_soname" >&6; }
7798 if test aix != "$with_aix_soname"; then
7799 # For the AIX way of multilib, we name the shared archive member
7800 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7801 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7802 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7803 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7804 if test 64 = "${OBJECT_MODE-32}"; then
7805 shared_archive_member_spec=shr_64
7806 else
7807 shared_archive_member_spec=shr
7808 fi
7809 fi
7810 ;;
7811 *)
7812 with_aix_soname=aix
7813 ;;
7814 esac
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825 # This can be used to rebuild libtool when needed
7826 LIBTOOL_DEPS=$ltmain
7827
7828 # Always use our own libtool.
7829 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7830
7831
7832
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 test -z "$LN_S" && LN_S="ln -s"
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875 if test -n "${ZSH_VERSION+set}"; then
7876 setopt NO_GLOB_SUBST
7877 fi
7878
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7880 $as_echo_n "checking for objdir... " >&6; }
7881 if ${lt_cv_objdir+:} false; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 rm -f .libs 2>/dev/null
7885 mkdir .libs 2>/dev/null
7886 if test -d .libs; then
7887 lt_cv_objdir=.libs
7888 else
7889 # MS-DOS does not allow filenames that begin with a dot.
7890 lt_cv_objdir=_libs
7891 fi
7892 rmdir .libs 2>/dev/null
7893 fi
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7895 $as_echo "$lt_cv_objdir" >&6; }
7896 objdir=$lt_cv_objdir
7897
7898
7899
7900
7901
7902 cat >>confdefs.h <<_ACEOF
7903 #define LT_OBJDIR "$lt_cv_objdir/"
7904 _ACEOF
7905
7906
7907
7908
7909 case $host_os in
7910 aix3*)
7911 # AIX sometimes has problems with the GCC collect2 program. For some
7912 # reason, if we set the COLLECT_NAMES environment variable, the problems
7913 # vanish in a puff of smoke.
7914 if test set != "${COLLECT_NAMES+set}"; then
7915 COLLECT_NAMES=
7916 export COLLECT_NAMES
7917 fi
7918 ;;
7919 esac
7920
7921 # Global variables:
7922 ofile=libtool
7923 can_build_shared=yes
7924
7925 # All known linkers require a '.a' archive for static linking (except MSVC,
7926 # which needs '.lib').
7927 libext=a
7928
7929 with_gnu_ld=$lt_cv_prog_gnu_ld
7930
7931 old_CC=$CC
7932 old_CFLAGS=$CFLAGS
7933
7934 # Set sane defaults for various variables
7935 test -z "$CC" && CC=cc
7936 test -z "$LTCC" && LTCC=$CC
7937 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7938 test -z "$LD" && LD=ld
7939 test -z "$ac_objext" && ac_objext=o
7940
7941 func_cc_basename $compiler
7942 cc_basename=$func_cc_basename_result
7943
7944
7945 # Only perform the check for file, if the check method requires it
7946 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7947 case $deplibs_check_method in
7948 file_magic*)
7949 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7951 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7952 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7955 case $MAGIC_CMD in
7956 [\\/*] | ?:[\\/]*)
7957 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7958 ;;
7959 *)
7960 lt_save_MAGIC_CMD=$MAGIC_CMD
7961 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7962 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7963 for ac_dir in $ac_dummy; do
7964 IFS=$lt_save_ifs
7965 test -z "$ac_dir" && ac_dir=.
7966 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7967 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7968 if test -n "$file_magic_test_file"; then
7969 case $deplibs_check_method in
7970 "file_magic "*)
7971 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7972 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7973 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7974 $EGREP "$file_magic_regex" > /dev/null; then
7975 :
7976 else
7977 cat <<_LT_EOF 1>&2
7978
7979 *** Warning: the command libtool uses to detect shared libraries,
7980 *** $file_magic_cmd, produces output that libtool cannot recognize.
7981 *** The result is that libtool may fail to recognize shared libraries
7982 *** as such. This will affect the creation of libtool libraries that
7983 *** depend on shared libraries, but programs linked with such libtool
7984 *** libraries will work regardless of this problem. Nevertheless, you
7985 *** may want to report the problem to your system manager and/or to
7986 *** bug-libtool@gnu.org
7987
7988 _LT_EOF
7989 fi ;;
7990 esac
7991 fi
7992 break
7993 fi
7994 done
7995 IFS=$lt_save_ifs
7996 MAGIC_CMD=$lt_save_MAGIC_CMD
7997 ;;
7998 esac
7999 fi
8000
8001 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8002 if test -n "$MAGIC_CMD"; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8004 $as_echo "$MAGIC_CMD" >&6; }
8005 else
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 $as_echo "no" >&6; }
8008 fi
8009
8010
8011
8012
8013
8014 if test -z "$lt_cv_path_MAGIC_CMD"; then
8015 if test -n "$ac_tool_prefix"; then
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8017 $as_echo_n "checking for file... " >&6; }
8018 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8019 $as_echo_n "(cached) " >&6
8020 else
8021 case $MAGIC_CMD in
8022 [\\/*] | ?:[\\/]*)
8023 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8024 ;;
8025 *)
8026 lt_save_MAGIC_CMD=$MAGIC_CMD
8027 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8028 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8029 for ac_dir in $ac_dummy; do
8030 IFS=$lt_save_ifs
8031 test -z "$ac_dir" && ac_dir=.
8032 if test -f "$ac_dir/file"; then
8033 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8034 if test -n "$file_magic_test_file"; then
8035 case $deplibs_check_method in
8036 "file_magic "*)
8037 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8038 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8039 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8040 $EGREP "$file_magic_regex" > /dev/null; then
8041 :
8042 else
8043 cat <<_LT_EOF 1>&2
8044
8045 *** Warning: the command libtool uses to detect shared libraries,
8046 *** $file_magic_cmd, produces output that libtool cannot recognize.
8047 *** The result is that libtool may fail to recognize shared libraries
8048 *** as such. This will affect the creation of libtool libraries that
8049 *** depend on shared libraries, but programs linked with such libtool
8050 *** libraries will work regardless of this problem. Nevertheless, you
8051 *** may want to report the problem to your system manager and/or to
8052 *** bug-libtool@gnu.org
8053
8054 _LT_EOF
8055 fi ;;
8056 esac
8057 fi
8058 break
8059 fi
8060 done
8061 IFS=$lt_save_ifs
8062 MAGIC_CMD=$lt_save_MAGIC_CMD
8063 ;;
8064 esac
8065 fi
8066
8067 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8068 if test -n "$MAGIC_CMD"; then
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8070 $as_echo "$MAGIC_CMD" >&6; }
8071 else
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 $as_echo "no" >&6; }
8074 fi
8075
8076
8077 else
8078 MAGIC_CMD=:
8079 fi
8080 fi
8081
8082 fi
8083 ;;
8084 esac
8085
8086 # Use C for the default configuration in the libtool script
8087
8088 lt_save_CC=$CC
8089 ac_ext=c
8090 ac_cpp='$CPP $CPPFLAGS'
8091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8094
8095
8096 # Source file extension for C test sources.
8097 ac_ext=c
8098
8099 # Object file extension for compiled C test sources.
8100 objext=o
8101 objext=$objext
8102
8103 # Code to be used in simple compile tests
8104 lt_simple_compile_test_code="int some_variable = 0;"
8105
8106 # Code to be used in simple link tests
8107 lt_simple_link_test_code='int main(){return(0);}'
8108
8109
8110
8111
8112
8113
8114
8115 # If no C compiler was specified, use CC.
8116 LTCC=${LTCC-"$CC"}
8117
8118 # If no C compiler flags were specified, use CFLAGS.
8119 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8120
8121 # Allow CC to be a program name with arguments.
8122 compiler=$CC
8123
8124 # Save the default compiler, since it gets overwritten when the other
8125 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8126 compiler_DEFAULT=$CC
8127
8128 # save warnings/boilerplate of simple test code
8129 ac_outfile=conftest.$ac_objext
8130 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8131 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8132 _lt_compiler_boilerplate=`cat conftest.err`
8133 $RM conftest*
8134
8135 ac_outfile=conftest.$ac_objext
8136 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8137 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8138 _lt_linker_boilerplate=`cat conftest.err`
8139 $RM -r conftest*
8140
8141
8142 if test -n "$compiler"; then
8143
8144 lt_prog_compiler_no_builtin_flag=
8145
8146 if test yes = "$GCC"; then
8147 case $cc_basename in
8148 nvcc*)
8149 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8150 *)
8151 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8152 esac
8153
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8155 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8156 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 lt_cv_prog_compiler_rtti_exceptions=no
8160 ac_outfile=conftest.$ac_objext
8161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8162 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8163 # Insert the option either (1) after the last *FLAGS variable, or
8164 # (2) before a word containing "conftest.", or (3) at the end.
8165 # Note that $ac_compile itself does not contain backslashes and begins
8166 # with a dollar sign (not a hyphen), so the echo should work correctly.
8167 # The option is referenced via a variable to avoid confusing sed.
8168 lt_compile=`echo "$ac_compile" | $SED \
8169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8171 -e 's:$: $lt_compiler_flag:'`
8172 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8173 (eval "$lt_compile" 2>conftest.err)
8174 ac_status=$?
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 if (exit $ac_status) && test -s "$ac_outfile"; then
8178 # The compiler can only warn and ignore the option if not recognized
8179 # So say no if there are warnings other than the usual output.
8180 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8182 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8183 lt_cv_prog_compiler_rtti_exceptions=yes
8184 fi
8185 fi
8186 $RM conftest*
8187
8188 fi
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8190 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8191
8192 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8193 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8194 else
8195 :
8196 fi
8197
8198 fi
8199
8200
8201
8202
8203
8204
8205 lt_prog_compiler_wl=
8206 lt_prog_compiler_pic=
8207 lt_prog_compiler_static=
8208
8209
8210 if test yes = "$GCC"; then
8211 lt_prog_compiler_wl='-Wl,'
8212 lt_prog_compiler_static='-static'
8213
8214 case $host_os in
8215 aix*)
8216 # All AIX code is PIC.
8217 if test ia64 = "$host_cpu"; then
8218 # AIX 5 now supports IA64 processor
8219 lt_prog_compiler_static='-Bstatic'
8220 fi
8221 lt_prog_compiler_pic='-fPIC'
8222 ;;
8223
8224 amigaos*)
8225 case $host_cpu in
8226 powerpc)
8227 # see comment about AmigaOS4 .so support
8228 lt_prog_compiler_pic='-fPIC'
8229 ;;
8230 m68k)
8231 # FIXME: we need at least 68020 code to build shared libraries, but
8232 # adding the '-m68020' flag to GCC prevents building anything better,
8233 # like '-m68040'.
8234 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8235 ;;
8236 esac
8237 ;;
8238
8239 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8240 # PIC is the default for these OSes.
8241 ;;
8242
8243 mingw* | cygwin* | pw32* | os2* | cegcc*)
8244 # This hack is so that the source file can tell whether it is being
8245 # built for inclusion in a dll (and should export symbols for example).
8246 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8247 # (--disable-auto-import) libraries
8248 lt_prog_compiler_pic='-DDLL_EXPORT'
8249 case $host_os in
8250 os2*)
8251 lt_prog_compiler_static='$wl-static'
8252 ;;
8253 esac
8254 ;;
8255
8256 darwin* | rhapsody*)
8257 # PIC is the default on this platform
8258 # Common symbols not allowed in MH_DYLIB files
8259 lt_prog_compiler_pic='-fno-common'
8260 ;;
8261
8262 haiku*)
8263 # PIC is the default for Haiku.
8264 # The "-static" flag exists, but is broken.
8265 lt_prog_compiler_static=
8266 ;;
8267
8268 hpux*)
8269 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8270 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8271 # sets the default TLS model and affects inlining.
8272 case $host_cpu in
8273 hppa*64*)
8274 # +Z the default
8275 ;;
8276 *)
8277 lt_prog_compiler_pic='-fPIC'
8278 ;;
8279 esac
8280 ;;
8281
8282 interix[3-9]*)
8283 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8284 # Instead, we relocate shared libraries at runtime.
8285 ;;
8286
8287 msdosdjgpp*)
8288 # Just because we use GCC doesn't mean we suddenly get shared libraries
8289 # on systems that don't support them.
8290 lt_prog_compiler_can_build_shared=no
8291 enable_shared=no
8292 ;;
8293
8294 *nto* | *qnx*)
8295 # QNX uses GNU C++, but need to define -shared option too, otherwise
8296 # it will coredump.
8297 lt_prog_compiler_pic='-fPIC -shared'
8298 ;;
8299
8300 sysv4*MP*)
8301 if test -d /usr/nec; then
8302 lt_prog_compiler_pic=-Kconform_pic
8303 fi
8304 ;;
8305
8306 *)
8307 lt_prog_compiler_pic='-fPIC'
8308 ;;
8309 esac
8310
8311 case $cc_basename in
8312 nvcc*) # Cuda Compiler Driver 2.2
8313 lt_prog_compiler_wl='-Xlinker '
8314 if test -n "$lt_prog_compiler_pic"; then
8315 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8316 fi
8317 ;;
8318 esac
8319 else
8320 # PORTME Check for flag to pass linker flags through the system compiler.
8321 case $host_os in
8322 aix*)
8323 lt_prog_compiler_wl='-Wl,'
8324 if test ia64 = "$host_cpu"; then
8325 # AIX 5 now supports IA64 processor
8326 lt_prog_compiler_static='-Bstatic'
8327 else
8328 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8329 fi
8330 ;;
8331
8332 darwin* | rhapsody*)
8333 # PIC is the default on this platform
8334 # Common symbols not allowed in MH_DYLIB files
8335 lt_prog_compiler_pic='-fno-common'
8336 case $cc_basename in
8337 nagfor*)
8338 # NAG Fortran compiler
8339 lt_prog_compiler_wl='-Wl,-Wl,,'
8340 lt_prog_compiler_pic='-PIC'
8341 lt_prog_compiler_static='-Bstatic'
8342 ;;
8343 esac
8344 ;;
8345
8346 mingw* | cygwin* | pw32* | os2* | cegcc*)
8347 # This hack is so that the source file can tell whether it is being
8348 # built for inclusion in a dll (and should export symbols for example).
8349 lt_prog_compiler_pic='-DDLL_EXPORT'
8350 case $host_os in
8351 os2*)
8352 lt_prog_compiler_static='$wl-static'
8353 ;;
8354 esac
8355 ;;
8356
8357 hpux9* | hpux10* | hpux11*)
8358 lt_prog_compiler_wl='-Wl,'
8359 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8360 # not for PA HP-UX.
8361 case $host_cpu in
8362 hppa*64*|ia64*)
8363 # +Z the default
8364 ;;
8365 *)
8366 lt_prog_compiler_pic='+Z'
8367 ;;
8368 esac
8369 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8370 lt_prog_compiler_static='$wl-a ${wl}archive'
8371 ;;
8372
8373 irix5* | irix6* | nonstopux*)
8374 lt_prog_compiler_wl='-Wl,'
8375 # PIC (with -KPIC) is the default.
8376 lt_prog_compiler_static='-non_shared'
8377 ;;
8378
8379 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8380 case $cc_basename in
8381 # old Intel for x86_64, which still supported -KPIC.
8382 ecc*)
8383 lt_prog_compiler_wl='-Wl,'
8384 lt_prog_compiler_pic='-KPIC'
8385 lt_prog_compiler_static='-static'
8386 ;;
8387 # icc used to be incompatible with GCC.
8388 # ICC 10 doesn't accept -KPIC any more.
8389 icc* | ifort*)
8390 lt_prog_compiler_wl='-Wl,'
8391 lt_prog_compiler_pic='-fPIC'
8392 lt_prog_compiler_static='-static'
8393 ;;
8394 # Lahey Fortran 8.1.
8395 lf95*)
8396 lt_prog_compiler_wl='-Wl,'
8397 lt_prog_compiler_pic='--shared'
8398 lt_prog_compiler_static='--static'
8399 ;;
8400 nagfor*)
8401 # NAG Fortran compiler
8402 lt_prog_compiler_wl='-Wl,-Wl,,'
8403 lt_prog_compiler_pic='-PIC'
8404 lt_prog_compiler_static='-Bstatic'
8405 ;;
8406 tcc*)
8407 # Fabrice Bellard et al's Tiny C Compiler
8408 lt_prog_compiler_wl='-Wl,'
8409 lt_prog_compiler_pic='-fPIC'
8410 lt_prog_compiler_static='-static'
8411 ;;
8412 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8413 # Portland Group compilers (*not* the Pentium gcc compiler,
8414 # which looks to be a dead project)
8415 lt_prog_compiler_wl='-Wl,'
8416 lt_prog_compiler_pic='-fpic'
8417 lt_prog_compiler_static='-Bstatic'
8418 ;;
8419 ccc*)
8420 lt_prog_compiler_wl='-Wl,'
8421 # All Alpha code is PIC.
8422 lt_prog_compiler_static='-non_shared'
8423 ;;
8424 xl* | bgxl* | bgf* | mpixl*)
8425 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-qpic'
8428 lt_prog_compiler_static='-qstaticlink'
8429 ;;
8430 *)
8431 case `$CC -V 2>&1 | sed 5q` in
8432 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8433 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8434 lt_prog_compiler_pic='-KPIC'
8435 lt_prog_compiler_static='-Bstatic'
8436 lt_prog_compiler_wl=''
8437 ;;
8438 *Sun\ F* | *Sun*Fortran*)
8439 lt_prog_compiler_pic='-KPIC'
8440 lt_prog_compiler_static='-Bstatic'
8441 lt_prog_compiler_wl='-Qoption ld '
8442 ;;
8443 *Sun\ C*)
8444 # Sun C 5.9
8445 lt_prog_compiler_pic='-KPIC'
8446 lt_prog_compiler_static='-Bstatic'
8447 lt_prog_compiler_wl='-Wl,'
8448 ;;
8449 *Intel*\ [CF]*Compiler*)
8450 lt_prog_compiler_wl='-Wl,'
8451 lt_prog_compiler_pic='-fPIC'
8452 lt_prog_compiler_static='-static'
8453 ;;
8454 *Portland\ Group*)
8455 lt_prog_compiler_wl='-Wl,'
8456 lt_prog_compiler_pic='-fpic'
8457 lt_prog_compiler_static='-Bstatic'
8458 ;;
8459 esac
8460 ;;
8461 esac
8462 ;;
8463
8464 newsos6)
8465 lt_prog_compiler_pic='-KPIC'
8466 lt_prog_compiler_static='-Bstatic'
8467 ;;
8468
8469 *nto* | *qnx*)
8470 # QNX uses GNU C++, but need to define -shared option too, otherwise
8471 # it will coredump.
8472 lt_prog_compiler_pic='-fPIC -shared'
8473 ;;
8474
8475 osf3* | osf4* | osf5*)
8476 lt_prog_compiler_wl='-Wl,'
8477 # All OSF/1 code is PIC.
8478 lt_prog_compiler_static='-non_shared'
8479 ;;
8480
8481 rdos*)
8482 lt_prog_compiler_static='-non_shared'
8483 ;;
8484
8485 solaris*)
8486 lt_prog_compiler_pic='-KPIC'
8487 lt_prog_compiler_static='-Bstatic'
8488 case $cc_basename in
8489 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8490 lt_prog_compiler_wl='-Qoption ld ';;
8491 *)
8492 lt_prog_compiler_wl='-Wl,';;
8493 esac
8494 ;;
8495
8496 sunos4*)
8497 lt_prog_compiler_wl='-Qoption ld '
8498 lt_prog_compiler_pic='-PIC'
8499 lt_prog_compiler_static='-Bstatic'
8500 ;;
8501
8502 sysv4 | sysv4.2uw2* | sysv4.3*)
8503 lt_prog_compiler_wl='-Wl,'
8504 lt_prog_compiler_pic='-KPIC'
8505 lt_prog_compiler_static='-Bstatic'
8506 ;;
8507
8508 sysv4*MP*)
8509 if test -d /usr/nec; then
8510 lt_prog_compiler_pic='-Kconform_pic'
8511 lt_prog_compiler_static='-Bstatic'
8512 fi
8513 ;;
8514
8515 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8516 lt_prog_compiler_wl='-Wl,'
8517 lt_prog_compiler_pic='-KPIC'
8518 lt_prog_compiler_static='-Bstatic'
8519 ;;
8520
8521 unicos*)
8522 lt_prog_compiler_wl='-Wl,'
8523 lt_prog_compiler_can_build_shared=no
8524 ;;
8525
8526 uts4*)
8527 lt_prog_compiler_pic='-pic'
8528 lt_prog_compiler_static='-Bstatic'
8529 ;;
8530
8531 *)
8532 lt_prog_compiler_can_build_shared=no
8533 ;;
8534 esac
8535 fi
8536
8537 case $host_os in
8538 # For platforms that do not support PIC, -DPIC is meaningless:
8539 *djgpp*)
8540 lt_prog_compiler_pic=
8541 ;;
8542 *)
8543 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8544 ;;
8545 esac
8546
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8548 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8549 if ${lt_cv_prog_compiler_pic+:} false; then :
8550 $as_echo_n "(cached) " >&6
8551 else
8552 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8553 fi
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8555 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8556 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8557
8558 #
8559 # Check to make sure the PIC flag actually works.
8560 #
8561 if test -n "$lt_prog_compiler_pic"; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8563 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8564 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8565 $as_echo_n "(cached) " >&6
8566 else
8567 lt_cv_prog_compiler_pic_works=no
8568 ac_outfile=conftest.$ac_objext
8569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8570 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8571 # Insert the option either (1) after the last *FLAGS variable, or
8572 # (2) before a word containing "conftest.", or (3) at the end.
8573 # Note that $ac_compile itself does not contain backslashes and begins
8574 # with a dollar sign (not a hyphen), so the echo should work correctly.
8575 # The option is referenced via a variable to avoid confusing sed.
8576 lt_compile=`echo "$ac_compile" | $SED \
8577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8579 -e 's:$: $lt_compiler_flag:'`
8580 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8581 (eval "$lt_compile" 2>conftest.err)
8582 ac_status=$?
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 if (exit $ac_status) && test -s "$ac_outfile"; then
8586 # The compiler can only warn and ignore the option if not recognized
8587 # So say no if there are warnings other than the usual output.
8588 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8589 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8590 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8591 lt_cv_prog_compiler_pic_works=yes
8592 fi
8593 fi
8594 $RM conftest*
8595
8596 fi
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8598 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8599
8600 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8601 case $lt_prog_compiler_pic in
8602 "" | " "*) ;;
8603 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8604 esac
8605 else
8606 lt_prog_compiler_pic=
8607 lt_prog_compiler_can_build_shared=no
8608 fi
8609
8610 fi
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622 #
8623 # Check to make sure the static flag actually works.
8624 #
8625 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8627 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8628 if ${lt_cv_prog_compiler_static_works+:} false; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 lt_cv_prog_compiler_static_works=no
8632 save_LDFLAGS=$LDFLAGS
8633 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8634 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8636 # The linker can only warn and ignore the option if not recognized
8637 # So say no if there are warnings
8638 if test -s conftest.err; then
8639 # Append any errors to the config.log.
8640 cat conftest.err 1>&5
8641 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8643 if diff conftest.exp conftest.er2 >/dev/null; then
8644 lt_cv_prog_compiler_static_works=yes
8645 fi
8646 else
8647 lt_cv_prog_compiler_static_works=yes
8648 fi
8649 fi
8650 $RM -r conftest*
8651 LDFLAGS=$save_LDFLAGS
8652
8653 fi
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8655 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8656
8657 if test yes = "$lt_cv_prog_compiler_static_works"; then
8658 :
8659 else
8660 lt_prog_compiler_static=
8661 fi
8662
8663
8664
8665
8666
8667
8668
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8670 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8671 if ${lt_cv_prog_compiler_c_o+:} false; then :
8672 $as_echo_n "(cached) " >&6
8673 else
8674 lt_cv_prog_compiler_c_o=no
8675 $RM -r conftest 2>/dev/null
8676 mkdir conftest
8677 cd conftest
8678 mkdir out
8679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8680
8681 lt_compiler_flag="-o out/conftest2.$ac_objext"
8682 # Insert the option either (1) after the last *FLAGS variable, or
8683 # (2) before a word containing "conftest.", or (3) at the end.
8684 # Note that $ac_compile itself does not contain backslashes and begins
8685 # with a dollar sign (not a hyphen), so the echo should work correctly.
8686 lt_compile=`echo "$ac_compile" | $SED \
8687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8689 -e 's:$: $lt_compiler_flag:'`
8690 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8691 (eval "$lt_compile" 2>out/conftest.err)
8692 ac_status=$?
8693 cat out/conftest.err >&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8696 then
8697 # The compiler can only warn and ignore the option if not recognized
8698 # So say no if there are warnings
8699 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8700 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8701 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8702 lt_cv_prog_compiler_c_o=yes
8703 fi
8704 fi
8705 chmod u+w . 2>&5
8706 $RM conftest*
8707 # SGI C++ compiler will create directory out/ii_files/ for
8708 # template instantiation
8709 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8710 $RM out/* && rmdir out
8711 cd ..
8712 $RM -r conftest
8713 $RM conftest*
8714
8715 fi
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8717 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8718
8719
8720
8721
8722
8723
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8725 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8726 if ${lt_cv_prog_compiler_c_o+:} false; then :
8727 $as_echo_n "(cached) " >&6
8728 else
8729 lt_cv_prog_compiler_c_o=no
8730 $RM -r conftest 2>/dev/null
8731 mkdir conftest
8732 cd conftest
8733 mkdir out
8734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8735
8736 lt_compiler_flag="-o out/conftest2.$ac_objext"
8737 # Insert the option either (1) after the last *FLAGS variable, or
8738 # (2) before a word containing "conftest.", or (3) at the end.
8739 # Note that $ac_compile itself does not contain backslashes and begins
8740 # with a dollar sign (not a hyphen), so the echo should work correctly.
8741 lt_compile=`echo "$ac_compile" | $SED \
8742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8744 -e 's:$: $lt_compiler_flag:'`
8745 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8746 (eval "$lt_compile" 2>out/conftest.err)
8747 ac_status=$?
8748 cat out/conftest.err >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8751 then
8752 # The compiler can only warn and ignore the option if not recognized
8753 # So say no if there are warnings
8754 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8755 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8756 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8757 lt_cv_prog_compiler_c_o=yes
8758 fi
8759 fi
8760 chmod u+w . 2>&5
8761 $RM conftest*
8762 # SGI C++ compiler will create directory out/ii_files/ for
8763 # template instantiation
8764 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8765 $RM out/* && rmdir out
8766 cd ..
8767 $RM -r conftest
8768 $RM conftest*
8769
8770 fi
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8772 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8773
8774
8775
8776
8777 hard_links=nottested
8778 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8779 # do not overwrite the value of need_locks provided by the user
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8781 $as_echo_n "checking if we can lock with hard links... " >&6; }
8782 hard_links=yes
8783 $RM conftest*
8784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8785 touch conftest.a
8786 ln conftest.a conftest.b 2>&5 || hard_links=no
8787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8789 $as_echo "$hard_links" >&6; }
8790 if test no = "$hard_links"; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8792 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8793 need_locks=warn
8794 fi
8795 else
8796 need_locks=no
8797 fi
8798
8799
8800
8801
8802
8803
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8805 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8806
8807 runpath_var=
8808 allow_undefined_flag=
8809 always_export_symbols=no
8810 archive_cmds=
8811 archive_expsym_cmds=
8812 compiler_needs_object=no
8813 enable_shared_with_static_runtimes=no
8814 export_dynamic_flag_spec=
8815 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8816 hardcode_automatic=no
8817 hardcode_direct=no
8818 hardcode_direct_absolute=no
8819 hardcode_libdir_flag_spec=
8820 hardcode_libdir_separator=
8821 hardcode_minus_L=no
8822 hardcode_shlibpath_var=unsupported
8823 inherit_rpath=no
8824 link_all_deplibs=unknown
8825 module_cmds=
8826 module_expsym_cmds=
8827 old_archive_from_new_cmds=
8828 old_archive_from_expsyms_cmds=
8829 thread_safe_flag_spec=
8830 whole_archive_flag_spec=
8831 # include_expsyms should be a list of space-separated symbols to be *always*
8832 # included in the symbol list
8833 include_expsyms=
8834 # exclude_expsyms can be an extended regexp of symbols to exclude
8835 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8836 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8837 # as well as any symbol that contains 'd'.
8838 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8839 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8840 # platforms (ab)use it in PIC code, but their linkers get confused if
8841 # the symbol is explicitly referenced. Since portable code cannot
8842 # rely on this symbol name, it's probably fine to never include it in
8843 # preloaded symbol tables.
8844 # Exclude shared library initialization/finalization symbols.
8845 extract_expsyms_cmds=
8846
8847 case $host_os in
8848 cygwin* | mingw* | pw32* | cegcc*)
8849 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8850 # When not using gcc, we currently assume that we are using
8851 # Microsoft Visual C++.
8852 if test yes != "$GCC"; then
8853 with_gnu_ld=no
8854 fi
8855 ;;
8856 interix*)
8857 # we just hope/assume this is gcc and not c89 (= MSVC++)
8858 with_gnu_ld=yes
8859 ;;
8860 openbsd* | bitrig*)
8861 with_gnu_ld=no
8862 ;;
8863 esac
8864
8865 ld_shlibs=yes
8866
8867 # On some targets, GNU ld is compatible enough with the native linker
8868 # that we're better off using the native interface for both.
8869 lt_use_gnu_ld_interface=no
8870 if test yes = "$with_gnu_ld"; then
8871 case $host_os in
8872 aix*)
8873 # The AIX port of GNU ld has always aspired to compatibility
8874 # with the native linker. However, as the warning in the GNU ld
8875 # block says, versions before 2.19.5* couldn't really create working
8876 # shared libraries, regardless of the interface used.
8877 case `$LD -v 2>&1` in
8878 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8879 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8880 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8881 *)
8882 lt_use_gnu_ld_interface=yes
8883 ;;
8884 esac
8885 ;;
8886 *)
8887 lt_use_gnu_ld_interface=yes
8888 ;;
8889 esac
8890 fi
8891
8892 if test yes = "$lt_use_gnu_ld_interface"; then
8893 # If archive_cmds runs LD, not CC, wlarc should be empty
8894 wlarc='$wl'
8895
8896 # Set some defaults for GNU ld with shared library support. These
8897 # are reset later if shared libraries are not supported. Putting them
8898 # here allows them to be overridden if necessary.
8899 runpath_var=LD_RUN_PATH
8900 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8901 export_dynamic_flag_spec='$wl--export-dynamic'
8902 # ancient GNU ld didn't support --whole-archive et. al.
8903 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8904 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8905 else
8906 whole_archive_flag_spec=
8907 fi
8908 supports_anon_versioning=no
8909 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8910 *GNU\ gold*) supports_anon_versioning=yes ;;
8911 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8912 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8913 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8914 *\ 2.11.*) ;; # other 2.11 versions
8915 *) supports_anon_versioning=yes ;;
8916 esac
8917
8918 # See if GNU ld supports shared libraries.
8919 case $host_os in
8920 aix[3-9]*)
8921 # On AIX/PPC, the GNU linker is very broken
8922 if test ia64 != "$host_cpu"; then
8923 ld_shlibs=no
8924 cat <<_LT_EOF 1>&2
8925
8926 *** Warning: the GNU linker, at least up to release 2.19, is reported
8927 *** to be unable to reliably create shared libraries on AIX.
8928 *** Therefore, libtool is disabling shared libraries support. If you
8929 *** really care for shared libraries, you may want to install binutils
8930 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8931 *** You will then need to restart the configuration process.
8932
8933 _LT_EOF
8934 fi
8935 ;;
8936
8937 amigaos*)
8938 case $host_cpu in
8939 powerpc)
8940 # see comment about AmigaOS4 .so support
8941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8942 archive_expsym_cmds=''
8943 ;;
8944 m68k)
8945 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)'
8946 hardcode_libdir_flag_spec='-L$libdir'
8947 hardcode_minus_L=yes
8948 ;;
8949 esac
8950 ;;
8951
8952 beos*)
8953 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8954 allow_undefined_flag=unsupported
8955 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8956 # support --undefined. This deserves some investigation. FIXME
8957 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8958 else
8959 ld_shlibs=no
8960 fi
8961 ;;
8962
8963 cygwin* | mingw* | pw32* | cegcc*)
8964 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8965 # as there is no search path for DLLs.
8966 hardcode_libdir_flag_spec='-L$libdir'
8967 export_dynamic_flag_spec='$wl--export-all-symbols'
8968 allow_undefined_flag=unsupported
8969 always_export_symbols=no
8970 enable_shared_with_static_runtimes=yes
8971 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'
8972 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8973
8974 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8976 # If the export-symbols file already is a .def file, use it as
8977 # is; otherwise, prepend EXPORTS...
8978 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8979 cp $export_symbols $output_objdir/$soname.def;
8980 else
8981 echo EXPORTS > $output_objdir/$soname.def;
8982 cat $export_symbols >> $output_objdir/$soname.def;
8983 fi~
8984 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8985 else
8986 ld_shlibs=no
8987 fi
8988 ;;
8989
8990 haiku*)
8991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8992 link_all_deplibs=yes
8993 ;;
8994
8995 os2*)
8996 hardcode_libdir_flag_spec='-L$libdir'
8997 hardcode_minus_L=yes
8998 allow_undefined_flag=unsupported
8999 shrext_cmds=.dll
9000 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9001 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9002 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9003 $ECHO EXPORTS >> $output_objdir/$libname.def~
9004 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9005 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9006 emximp -o $lib $output_objdir/$libname.def'
9007 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9008 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9009 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9010 $ECHO EXPORTS >> $output_objdir/$libname.def~
9011 prefix_cmds="$SED"~
9012 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9013 prefix_cmds="$prefix_cmds -e 1d";
9014 fi~
9015 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9016 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9017 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9018 emximp -o $lib $output_objdir/$libname.def'
9019 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9020 enable_shared_with_static_runtimes=yes
9021 ;;
9022
9023 interix[3-9]*)
9024 hardcode_direct=no
9025 hardcode_shlibpath_var=no
9026 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9027 export_dynamic_flag_spec='$wl-E'
9028 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9029 # Instead, shared libraries are loaded at an image base (0x10000000 by
9030 # default) and relocated if they conflict, which is a slow very memory
9031 # consuming and fragmenting process. To avoid this, we pick a random,
9032 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9033 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9034 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9035 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'
9036 ;;
9037
9038 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9039 tmp_diet=no
9040 if test linux-dietlibc = "$host_os"; then
9041 case $cc_basename in
9042 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9043 esac
9044 fi
9045 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9046 && test no = "$tmp_diet"
9047 then
9048 tmp_addflag=' $pic_flag'
9049 tmp_sharedflag='-shared'
9050 case $cc_basename,$host_cpu in
9051 pgcc*) # Portland Group C compiler
9052 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'
9053 tmp_addflag=' $pic_flag'
9054 ;;
9055 pgf77* | pgf90* | pgf95* | pgfortran*)
9056 # Portland Group f77 and f90 compilers
9057 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'
9058 tmp_addflag=' $pic_flag -Mnomain' ;;
9059 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9060 tmp_addflag=' -i_dynamic' ;;
9061 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9062 tmp_addflag=' -i_dynamic -nofor_main' ;;
9063 ifc* | ifort*) # Intel Fortran compiler
9064 tmp_addflag=' -nofor_main' ;;
9065 lf95*) # Lahey Fortran 8.1
9066 whole_archive_flag_spec=
9067 tmp_sharedflag='--shared' ;;
9068 nagfor*) # NAGFOR 5.3
9069 tmp_sharedflag='-Wl,-shared' ;;
9070 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9071 tmp_sharedflag='-qmkshrobj'
9072 tmp_addflag= ;;
9073 nvcc*) # Cuda Compiler Driver 2.2
9074 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'
9075 compiler_needs_object=yes
9076 ;;
9077 esac
9078 case `$CC -V 2>&1 | sed 5q` in
9079 *Sun\ C*) # Sun C 5.9
9080 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'
9081 compiler_needs_object=yes
9082 tmp_sharedflag='-G' ;;
9083 *Sun\ F*) # Sun Fortran 8.3
9084 tmp_sharedflag='-G' ;;
9085 esac
9086 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9087
9088 if test yes = "$supports_anon_versioning"; then
9089 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9091 echo "local: *; };" >> $output_objdir/$libname.ver~
9092 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9093 fi
9094
9095 case $cc_basename in
9096 tcc*)
9097 export_dynamic_flag_spec='-rdynamic'
9098 ;;
9099 xlf* | bgf* | bgxlf* | mpixlf*)
9100 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9101 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9102 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9103 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9104 if test yes = "$supports_anon_versioning"; then
9105 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9106 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9107 echo "local: *; };" >> $output_objdir/$libname.ver~
9108 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9109 fi
9110 ;;
9111 esac
9112 else
9113 ld_shlibs=no
9114 fi
9115 ;;
9116
9117 netbsd*)
9118 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9119 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9120 wlarc=
9121 else
9122 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9123 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9124 fi
9125 ;;
9126
9127 solaris*)
9128 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9129 ld_shlibs=no
9130 cat <<_LT_EOF 1>&2
9131
9132 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9133 *** create shared libraries on Solaris systems. Therefore, libtool
9134 *** is disabling shared libraries support. We urge you to upgrade GNU
9135 *** binutils to release 2.9.1 or newer. Another option is to modify
9136 *** your PATH or compiler configuration so that the native linker is
9137 *** used, and then restart.
9138
9139 _LT_EOF
9140 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9141 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9142 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9143 else
9144 ld_shlibs=no
9145 fi
9146 ;;
9147
9148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9149 case `$LD -v 2>&1` in
9150 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9151 ld_shlibs=no
9152 cat <<_LT_EOF 1>&2
9153
9154 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9155 *** reliably create shared libraries on SCO systems. Therefore, libtool
9156 *** is disabling shared libraries support. We urge you to upgrade GNU
9157 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9158 *** your PATH or compiler configuration so that the native linker is
9159 *** used, and then restart.
9160
9161 _LT_EOF
9162 ;;
9163 *)
9164 # For security reasons, it is highly recommended that you always
9165 # use absolute paths for naming shared libraries, and exclude the
9166 # DT_RUNPATH tag from executables and libraries. But doing so
9167 # requires that you compile everything twice, which is a pain.
9168 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9169 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9171 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9172 else
9173 ld_shlibs=no
9174 fi
9175 ;;
9176 esac
9177 ;;
9178
9179 sunos4*)
9180 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9181 wlarc=
9182 hardcode_direct=yes
9183 hardcode_shlibpath_var=no
9184 ;;
9185
9186 *)
9187 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9188 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9189 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9190 else
9191 ld_shlibs=no
9192 fi
9193 ;;
9194 esac
9195
9196 if test no = "$ld_shlibs"; then
9197 runpath_var=
9198 hardcode_libdir_flag_spec=
9199 export_dynamic_flag_spec=
9200 whole_archive_flag_spec=
9201 fi
9202 else
9203 # PORTME fill in a description of your system's linker (not GNU ld)
9204 case $host_os in
9205 aix3*)
9206 allow_undefined_flag=unsupported
9207 always_export_symbols=yes
9208 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'
9209 # Note: this linker hardcodes the directories in LIBPATH if there
9210 # are no directories specified by -L.
9211 hardcode_minus_L=yes
9212 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9213 # Neither direct hardcoding nor static linking is supported with a
9214 # broken collect2.
9215 hardcode_direct=unsupported
9216 fi
9217 ;;
9218
9219 aix[4-9]*)
9220 if test ia64 = "$host_cpu"; then
9221 # On IA64, the linker does run time linking by default, so we don't
9222 # have to do anything special.
9223 aix_use_runtimelinking=no
9224 exp_sym_flag='-Bexport'
9225 no_entry_flag=
9226 else
9227 # If we're using GNU nm, then we don't want the "-C" option.
9228 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9229 # Without the "-l" option, or with the "-B" option, AIX nm treats
9230 # weak defined symbols like other global defined symbols, whereas
9231 # GNU nm marks them as "W".
9232 # While the 'weak' keyword is ignored in the Export File, we need
9233 # it in the Import File for the 'aix-soname' feature, so we have
9234 # to replace the "-B" option with "-P" for AIX nm.
9235 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9236 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'
9237 else
9238 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'
9239 fi
9240 aix_use_runtimelinking=no
9241
9242 # Test if we are trying to use run time linking or normal
9243 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9244 # have runtime linking enabled, and use it for executables.
9245 # For shared libraries, we enable/disable runtime linking
9246 # depending on the kind of the shared library created -
9247 # when "with_aix_soname,aix_use_runtimelinking" is:
9248 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9249 # "aix,yes" lib.so shared, rtl:yes, for executables
9250 # lib.a static archive
9251 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9252 # lib.a(lib.so.V) shared, rtl:no, for executables
9253 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9254 # lib.a(lib.so.V) shared, rtl:no
9255 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9256 # lib.a static archive
9257 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9258 for ld_flag in $LDFLAGS; do
9259 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9260 aix_use_runtimelinking=yes
9261 break
9262 fi
9263 done
9264 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9265 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9266 # so we don't have lib.a shared libs to link our executables.
9267 # We have to force runtime linking in this case.
9268 aix_use_runtimelinking=yes
9269 LDFLAGS="$LDFLAGS -Wl,-brtl"
9270 fi
9271 ;;
9272 esac
9273
9274 exp_sym_flag='-bexport'
9275 no_entry_flag='-bnoentry'
9276 fi
9277
9278 # When large executables or shared objects are built, AIX ld can
9279 # have problems creating the table of contents. If linking a library
9280 # or program results in "error TOC overflow" add -mminimal-toc to
9281 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9282 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9283
9284 archive_cmds=''
9285 hardcode_direct=yes
9286 hardcode_direct_absolute=yes
9287 hardcode_libdir_separator=':'
9288 link_all_deplibs=yes
9289 file_list_spec='$wl-f,'
9290 case $with_aix_soname,$aix_use_runtimelinking in
9291 aix,*) ;; # traditional, no import file
9292 svr4,* | *,yes) # use import file
9293 # The Import File defines what to hardcode.
9294 hardcode_direct=no
9295 hardcode_direct_absolute=no
9296 ;;
9297 esac
9298
9299 if test yes = "$GCC"; then
9300 case $host_os in aix4.[012]|aix4.[012].*)
9301 # We only want to do this on AIX 4.2 and lower, the check
9302 # below for broken collect2 doesn't work under 4.3+
9303 collect2name=`$CC -print-prog-name=collect2`
9304 if test -f "$collect2name" &&
9305 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9306 then
9307 # We have reworked collect2
9308 :
9309 else
9310 # We have old collect2
9311 hardcode_direct=unsupported
9312 # It fails to find uninstalled libraries when the uninstalled
9313 # path is not listed in the libpath. Setting hardcode_minus_L
9314 # to unsupported forces relinking
9315 hardcode_minus_L=yes
9316 hardcode_libdir_flag_spec='-L$libdir'
9317 hardcode_libdir_separator=
9318 fi
9319 ;;
9320 esac
9321 shared_flag='-shared'
9322 if test yes = "$aix_use_runtimelinking"; then
9323 shared_flag="$shared_flag "'$wl-G'
9324 fi
9325 # Need to ensure runtime linking is disabled for the traditional
9326 # shared library, or the linker may eventually find shared libraries
9327 # /with/ Import File - we do not want to mix them.
9328 shared_flag_aix='-shared'
9329 shared_flag_svr4='-shared $wl-G'
9330 else
9331 # not using gcc
9332 if test ia64 = "$host_cpu"; then
9333 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9334 # chokes on -Wl,-G. The following line is correct:
9335 shared_flag='-G'
9336 else
9337 if test yes = "$aix_use_runtimelinking"; then
9338 shared_flag='$wl-G'
9339 else
9340 shared_flag='$wl-bM:SRE'
9341 fi
9342 shared_flag_aix='$wl-bM:SRE'
9343 shared_flag_svr4='$wl-G'
9344 fi
9345 fi
9346
9347 export_dynamic_flag_spec='$wl-bexpall'
9348 # It seems that -bexpall does not export symbols beginning with
9349 # underscore (_), so it is better to generate a list of symbols to export.
9350 always_export_symbols=yes
9351 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9352 # Warning - without using the other runtime loading flags (-brtl),
9353 # -berok will link without error, but may produce a broken library.
9354 allow_undefined_flag='-berok'
9355 # Determine the default libpath from the value encoded in an
9356 # empty executable.
9357 if test set = "${lt_cv_aix_libpath+set}"; then
9358 aix_libpath=$lt_cv_aix_libpath
9359 else
9360 if ${lt_cv_aix_libpath_+:} false; then :
9361 $as_echo_n "(cached) " >&6
9362 else
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9365
9366 int
9367 main ()
9368 {
9369
9370 ;
9371 return 0;
9372 }
9373 _ACEOF
9374 if ac_fn_c_try_link "$LINENO"; then :
9375
9376 lt_aix_libpath_sed='
9377 /Import File Strings/,/^$/ {
9378 /^0/ {
9379 s/^0 *\([^ ]*\) *$/\1/
9380 p
9381 }
9382 }'
9383 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9384 # Check for a 64-bit object if we didn't find anything.
9385 if test -z "$lt_cv_aix_libpath_"; then
9386 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9387 fi
9388 fi
9389 rm -f core conftest.err conftest.$ac_objext \
9390 conftest$ac_exeext conftest.$ac_ext
9391 if test -z "$lt_cv_aix_libpath_"; then
9392 lt_cv_aix_libpath_=/usr/lib:/lib
9393 fi
9394
9395 fi
9396
9397 aix_libpath=$lt_cv_aix_libpath_
9398 fi
9399
9400 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9401 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
9402 else
9403 if test ia64 = "$host_cpu"; then
9404 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9405 allow_undefined_flag="-z nodefs"
9406 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"
9407 else
9408 # Determine the default libpath from the value encoded in an
9409 # empty executable.
9410 if test set = "${lt_cv_aix_libpath+set}"; then
9411 aix_libpath=$lt_cv_aix_libpath
9412 else
9413 if ${lt_cv_aix_libpath_+:} false; then :
9414 $as_echo_n "(cached) " >&6
9415 else
9416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417 /* end confdefs.h. */
9418
9419 int
9420 main ()
9421 {
9422
9423 ;
9424 return 0;
9425 }
9426 _ACEOF
9427 if ac_fn_c_try_link "$LINENO"; then :
9428
9429 lt_aix_libpath_sed='
9430 /Import File Strings/,/^$/ {
9431 /^0/ {
9432 s/^0 *\([^ ]*\) *$/\1/
9433 p
9434 }
9435 }'
9436 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9437 # Check for a 64-bit object if we didn't find anything.
9438 if test -z "$lt_cv_aix_libpath_"; then
9439 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9440 fi
9441 fi
9442 rm -f core conftest.err conftest.$ac_objext \
9443 conftest$ac_exeext conftest.$ac_ext
9444 if test -z "$lt_cv_aix_libpath_"; then
9445 lt_cv_aix_libpath_=/usr/lib:/lib
9446 fi
9447
9448 fi
9449
9450 aix_libpath=$lt_cv_aix_libpath_
9451 fi
9452
9453 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9454 # Warning - without using the other run time loading flags,
9455 # -berok will link without error, but may produce a broken library.
9456 no_undefined_flag=' $wl-bernotok'
9457 allow_undefined_flag=' $wl-berok'
9458 if test yes = "$with_gnu_ld"; then
9459 # We only use this code for GNU lds that support --whole-archive.
9460 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9461 else
9462 # Exported symbols can be pulled into shared objects from archives
9463 whole_archive_flag_spec='$convenience'
9464 fi
9465 archive_cmds_need_lc=yes
9466 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9467 # -brtl affects multiple linker settings, -berok does not and is overridden later
9468 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9469 if test svr4 != "$with_aix_soname"; then
9470 # This is similar to how AIX traditionally builds its shared libraries.
9471 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'
9472 fi
9473 if test aix != "$with_aix_soname"; then
9474 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'
9475 else
9476 # used by -dlpreopen to get the symbols
9477 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9478 fi
9479 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9480 fi
9481 fi
9482 ;;
9483
9484 amigaos*)
9485 case $host_cpu in
9486 powerpc)
9487 # see comment about AmigaOS4 .so support
9488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9489 archive_expsym_cmds=''
9490 ;;
9491 m68k)
9492 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)'
9493 hardcode_libdir_flag_spec='-L$libdir'
9494 hardcode_minus_L=yes
9495 ;;
9496 esac
9497 ;;
9498
9499 bsdi[45]*)
9500 export_dynamic_flag_spec=-rdynamic
9501 ;;
9502
9503 cygwin* | mingw* | pw32* | cegcc*)
9504 # When not using gcc, we currently assume that we are using
9505 # Microsoft Visual C++.
9506 # hardcode_libdir_flag_spec is actually meaningless, as there is
9507 # no search path for DLLs.
9508 case $cc_basename in
9509 cl*)
9510 # Native MSVC
9511 hardcode_libdir_flag_spec=' '
9512 allow_undefined_flag=unsupported
9513 always_export_symbols=yes
9514 file_list_spec='@'
9515 # Tell ltmain to make .lib files, not .a files.
9516 libext=lib
9517 # Tell ltmain to make .dll files, not .so files.
9518 shrext_cmds=.dll
9519 # FIXME: Setting linknames here is a bad hack.
9520 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9521 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9522 cp "$export_symbols" "$output_objdir/$soname.def";
9523 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9524 else
9525 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9526 fi~
9527 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9528 linknames='
9529 # The linker will not automatically build a static lib if we build a DLL.
9530 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9531 enable_shared_with_static_runtimes=yes
9532 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9533 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9534 # Don't use ranlib
9535 old_postinstall_cmds='chmod 644 $oldlib'
9536 postlink_cmds='lt_outputfile="@OUTPUT@"~
9537 lt_tool_outputfile="@TOOL_OUTPUT@"~
9538 case $lt_outputfile in
9539 *.exe|*.EXE) ;;
9540 *)
9541 lt_outputfile=$lt_outputfile.exe
9542 lt_tool_outputfile=$lt_tool_outputfile.exe
9543 ;;
9544 esac~
9545 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9546 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9547 $RM "$lt_outputfile.manifest";
9548 fi'
9549 ;;
9550 *)
9551 # Assume MSVC wrapper
9552 hardcode_libdir_flag_spec=' '
9553 allow_undefined_flag=unsupported
9554 # Tell ltmain to make .lib files, not .a files.
9555 libext=lib
9556 # Tell ltmain to make .dll files, not .so files.
9557 shrext_cmds=.dll
9558 # FIXME: Setting linknames here is a bad hack.
9559 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9560 # The linker will automatically build a .lib file if we build a DLL.
9561 old_archive_from_new_cmds='true'
9562 # FIXME: Should let the user specify the lib program.
9563 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9564 enable_shared_with_static_runtimes=yes
9565 ;;
9566 esac
9567 ;;
9568
9569 darwin* | rhapsody*)
9570
9571
9572 archive_cmds_need_lc=no
9573 hardcode_direct=no
9574 hardcode_automatic=yes
9575 hardcode_shlibpath_var=unsupported
9576 if test yes = "$lt_cv_ld_force_load"; then
9577 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\"`'
9578
9579 else
9580 whole_archive_flag_spec=''
9581 fi
9582 link_all_deplibs=yes
9583 allow_undefined_flag=$_lt_dar_allow_undefined
9584 case $cc_basename in
9585 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9586 *) _lt_dar_can_shared=$GCC ;;
9587 esac
9588 if test yes = "$_lt_dar_can_shared"; then
9589 output_verbose_link_cmd=func_echo_all
9590 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9591 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9592 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"
9593 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"
9594
9595 else
9596 ld_shlibs=no
9597 fi
9598
9599 ;;
9600
9601 dgux*)
9602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9603 hardcode_libdir_flag_spec='-L$libdir'
9604 hardcode_shlibpath_var=no
9605 ;;
9606
9607 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9608 # support. Future versions do this automatically, but an explicit c++rt0.o
9609 # does not break anything, and helps significantly (at the cost of a little
9610 # extra space).
9611 freebsd2.2*)
9612 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9613 hardcode_libdir_flag_spec='-R$libdir'
9614 hardcode_direct=yes
9615 hardcode_shlibpath_var=no
9616 ;;
9617
9618 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9619 freebsd2.*)
9620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9621 hardcode_direct=yes
9622 hardcode_minus_L=yes
9623 hardcode_shlibpath_var=no
9624 ;;
9625
9626 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9627 freebsd* | dragonfly*)
9628 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9629 hardcode_libdir_flag_spec='-R$libdir'
9630 hardcode_direct=yes
9631 hardcode_shlibpath_var=no
9632 ;;
9633
9634 hpux9*)
9635 if test yes = "$GCC"; then
9636 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'
9637 else
9638 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'
9639 fi
9640 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9641 hardcode_libdir_separator=:
9642 hardcode_direct=yes
9643
9644 # hardcode_minus_L: Not really in the search PATH,
9645 # but as the default location of the library.
9646 hardcode_minus_L=yes
9647 export_dynamic_flag_spec='$wl-E'
9648 ;;
9649
9650 hpux10*)
9651 if test yes,no = "$GCC,$with_gnu_ld"; then
9652 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9653 else
9654 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9655 fi
9656 if test no = "$with_gnu_ld"; then
9657 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9658 hardcode_libdir_separator=:
9659 hardcode_direct=yes
9660 hardcode_direct_absolute=yes
9661 export_dynamic_flag_spec='$wl-E'
9662 # hardcode_minus_L: Not really in the search PATH,
9663 # but as the default location of the library.
9664 hardcode_minus_L=yes
9665 fi
9666 ;;
9667
9668 hpux11*)
9669 if test yes,no = "$GCC,$with_gnu_ld"; then
9670 case $host_cpu in
9671 hppa*64*)
9672 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9673 ;;
9674 ia64*)
9675 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9676 ;;
9677 *)
9678 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9679 ;;
9680 esac
9681 else
9682 case $host_cpu in
9683 hppa*64*)
9684 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9685 ;;
9686 ia64*)
9687 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9688 ;;
9689 *)
9690
9691 # Older versions of the 11.00 compiler do not understand -b yet
9692 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9694 $as_echo_n "checking if $CC understands -b... " >&6; }
9695 if ${lt_cv_prog_compiler__b+:} false; then :
9696 $as_echo_n "(cached) " >&6
9697 else
9698 lt_cv_prog_compiler__b=no
9699 save_LDFLAGS=$LDFLAGS
9700 LDFLAGS="$LDFLAGS -b"
9701 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9702 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9703 # The linker can only warn and ignore the option if not recognized
9704 # So say no if there are warnings
9705 if test -s conftest.err; then
9706 # Append any errors to the config.log.
9707 cat conftest.err 1>&5
9708 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9710 if diff conftest.exp conftest.er2 >/dev/null; then
9711 lt_cv_prog_compiler__b=yes
9712 fi
9713 else
9714 lt_cv_prog_compiler__b=yes
9715 fi
9716 fi
9717 $RM -r conftest*
9718 LDFLAGS=$save_LDFLAGS
9719
9720 fi
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9722 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9723
9724 if test yes = "$lt_cv_prog_compiler__b"; then
9725 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9726 else
9727 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9728 fi
9729
9730 ;;
9731 esac
9732 fi
9733 if test no = "$with_gnu_ld"; then
9734 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9735 hardcode_libdir_separator=:
9736
9737 case $host_cpu in
9738 hppa*64*|ia64*)
9739 hardcode_direct=no
9740 hardcode_shlibpath_var=no
9741 ;;
9742 *)
9743 hardcode_direct=yes
9744 hardcode_direct_absolute=yes
9745 export_dynamic_flag_spec='$wl-E'
9746
9747 # hardcode_minus_L: Not really in the search PATH,
9748 # but as the default location of the library.
9749 hardcode_minus_L=yes
9750 ;;
9751 esac
9752 fi
9753 ;;
9754
9755 irix5* | irix6* | nonstopux*)
9756 if test yes = "$GCC"; then
9757 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'
9758 # Try to use the -exported_symbol ld option, if it does not
9759 # work, assume that -exports_file does not work either and
9760 # implicitly export all symbols.
9761 # This should be the same for all languages, so no per-tag cache variable.
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9763 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9764 if ${lt_cv_irix_exported_symbol+:} false; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9767 save_LDFLAGS=$LDFLAGS
9768 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9771 int foo (void) { return 0; }
9772 _ACEOF
9773 if ac_fn_c_try_link "$LINENO"; then :
9774 lt_cv_irix_exported_symbol=yes
9775 else
9776 lt_cv_irix_exported_symbol=no
9777 fi
9778 rm -f core conftest.err conftest.$ac_objext \
9779 conftest$ac_exeext conftest.$ac_ext
9780 LDFLAGS=$save_LDFLAGS
9781 fi
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9783 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9784 if test yes = "$lt_cv_irix_exported_symbol"; then
9785 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'
9786 fi
9787 else
9788 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'
9789 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'
9790 fi
9791 archive_cmds_need_lc='no'
9792 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9793 hardcode_libdir_separator=:
9794 inherit_rpath=yes
9795 link_all_deplibs=yes
9796 ;;
9797
9798 linux*)
9799 case $cc_basename in
9800 tcc*)
9801 # Fabrice Bellard et al's Tiny C Compiler
9802 ld_shlibs=yes
9803 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9804 ;;
9805 esac
9806 ;;
9807
9808 netbsd*)
9809 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9811 else
9812 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9813 fi
9814 hardcode_libdir_flag_spec='-R$libdir'
9815 hardcode_direct=yes
9816 hardcode_shlibpath_var=no
9817 ;;
9818
9819 newsos6)
9820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9821 hardcode_direct=yes
9822 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9823 hardcode_libdir_separator=:
9824 hardcode_shlibpath_var=no
9825 ;;
9826
9827 *nto* | *qnx*)
9828 ;;
9829
9830 openbsd* | bitrig*)
9831 if test -f /usr/libexec/ld.so; then
9832 hardcode_direct=yes
9833 hardcode_shlibpath_var=no
9834 hardcode_direct_absolute=yes
9835 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9836 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9837 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9838 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9839 export_dynamic_flag_spec='$wl-E'
9840 else
9841 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9842 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9843 fi
9844 else
9845 ld_shlibs=no
9846 fi
9847 ;;
9848
9849 os2*)
9850 hardcode_libdir_flag_spec='-L$libdir'
9851 hardcode_minus_L=yes
9852 allow_undefined_flag=unsupported
9853 shrext_cmds=.dll
9854 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9855 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9856 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9857 $ECHO EXPORTS >> $output_objdir/$libname.def~
9858 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9859 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9860 emximp -o $lib $output_objdir/$libname.def'
9861 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9862 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9863 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9864 $ECHO EXPORTS >> $output_objdir/$libname.def~
9865 prefix_cmds="$SED"~
9866 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9867 prefix_cmds="$prefix_cmds -e 1d";
9868 fi~
9869 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9870 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9871 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9872 emximp -o $lib $output_objdir/$libname.def'
9873 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9874 enable_shared_with_static_runtimes=yes
9875 ;;
9876
9877 osf3*)
9878 if test yes = "$GCC"; then
9879 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9880 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'
9881 else
9882 allow_undefined_flag=' -expect_unresolved \*'
9883 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'
9884 fi
9885 archive_cmds_need_lc='no'
9886 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9887 hardcode_libdir_separator=:
9888 ;;
9889
9890 osf4* | osf5*) # as osf3* with the addition of -msym flag
9891 if test yes = "$GCC"; then
9892 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9893 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'
9894 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9895 else
9896 allow_undefined_flag=' -expect_unresolved \*'
9897 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'
9898 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~
9899 $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'
9900
9901 # Both c and cxx compiler support -rpath directly
9902 hardcode_libdir_flag_spec='-rpath $libdir'
9903 fi
9904 archive_cmds_need_lc='no'
9905 hardcode_libdir_separator=:
9906 ;;
9907
9908 solaris*)
9909 no_undefined_flag=' -z defs'
9910 if test yes = "$GCC"; then
9911 wlarc='$wl'
9912 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9913 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9914 $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'
9915 else
9916 case `$CC -V 2>&1` in
9917 *"Compilers 5.0"*)
9918 wlarc=''
9919 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9920 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9921 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9922 ;;
9923 *)
9924 wlarc='$wl'
9925 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9926 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9927 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9928 ;;
9929 esac
9930 fi
9931 hardcode_libdir_flag_spec='-R$libdir'
9932 hardcode_shlibpath_var=no
9933 case $host_os in
9934 solaris2.[0-5] | solaris2.[0-5].*) ;;
9935 *)
9936 # The compiler driver will combine and reorder linker options,
9937 # but understands '-z linker_flag'. GCC discards it without '$wl',
9938 # but is careful enough not to reorder.
9939 # Supported since Solaris 2.6 (maybe 2.5.1?)
9940 if test yes = "$GCC"; then
9941 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9942 else
9943 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9944 fi
9945 ;;
9946 esac
9947 link_all_deplibs=yes
9948 ;;
9949
9950 sunos4*)
9951 if test sequent = "$host_vendor"; then
9952 # Use $CC to link under sequent, because it throws in some extra .o
9953 # files that make .init and .fini sections work.
9954 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9955 else
9956 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9957 fi
9958 hardcode_libdir_flag_spec='-L$libdir'
9959 hardcode_direct=yes
9960 hardcode_minus_L=yes
9961 hardcode_shlibpath_var=no
9962 ;;
9963
9964 sysv4)
9965 case $host_vendor in
9966 sni)
9967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9968 hardcode_direct=yes # is this really true???
9969 ;;
9970 siemens)
9971 ## LD is ld it makes a PLAMLIB
9972 ## CC just makes a GrossModule.
9973 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9974 reload_cmds='$CC -r -o $output$reload_objs'
9975 hardcode_direct=no
9976 ;;
9977 motorola)
9978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9979 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9980 ;;
9981 esac
9982 runpath_var='LD_RUN_PATH'
9983 hardcode_shlibpath_var=no
9984 ;;
9985
9986 sysv4.3*)
9987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988 hardcode_shlibpath_var=no
9989 export_dynamic_flag_spec='-Bexport'
9990 ;;
9991
9992 sysv4*MP*)
9993 if test -d /usr/nec; then
9994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9995 hardcode_shlibpath_var=no
9996 runpath_var=LD_RUN_PATH
9997 hardcode_runpath_var=yes
9998 ld_shlibs=yes
9999 fi
10000 ;;
10001
10002 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10003 no_undefined_flag='$wl-z,text'
10004 archive_cmds_need_lc=no
10005 hardcode_shlibpath_var=no
10006 runpath_var='LD_RUN_PATH'
10007
10008 if test yes = "$GCC"; then
10009 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10010 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10011 else
10012 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10013 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10014 fi
10015 ;;
10016
10017 sysv5* | sco3.2v5* | sco5v6*)
10018 # Note: We CANNOT use -z defs as we might desire, because we do not
10019 # link with -lc, and that would cause any symbols used from libc to
10020 # always be unresolved, which means just about no library would
10021 # ever link correctly. If we're not using GNU ld we use -z text
10022 # though, which does catch some bad symbols but isn't as heavy-handed
10023 # as -z defs.
10024 no_undefined_flag='$wl-z,text'
10025 allow_undefined_flag='$wl-z,nodefs'
10026 archive_cmds_need_lc=no
10027 hardcode_shlibpath_var=no
10028 hardcode_libdir_flag_spec='$wl-R,$libdir'
10029 hardcode_libdir_separator=':'
10030 link_all_deplibs=yes
10031 export_dynamic_flag_spec='$wl-Bexport'
10032 runpath_var='LD_RUN_PATH'
10033
10034 if test yes = "$GCC"; then
10035 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10036 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10037 else
10038 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10039 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10040 fi
10041 ;;
10042
10043 uts4*)
10044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10045 hardcode_libdir_flag_spec='-L$libdir'
10046 hardcode_shlibpath_var=no
10047 ;;
10048
10049 *)
10050 ld_shlibs=no
10051 ;;
10052 esac
10053
10054 if test sni = "$host_vendor"; then
10055 case $host in
10056 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10057 export_dynamic_flag_spec='$wl-Blargedynsym'
10058 ;;
10059 esac
10060 fi
10061 fi
10062
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10064 $as_echo "$ld_shlibs" >&6; }
10065 test no = "$ld_shlibs" && can_build_shared=no
10066
10067 with_gnu_ld=$with_gnu_ld
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083 #
10084 # Do we need to explicitly link libc?
10085 #
10086 case "x$archive_cmds_need_lc" in
10087 x|xyes)
10088 # Assume -lc should be added
10089 archive_cmds_need_lc=yes
10090
10091 if test yes,yes = "$GCC,$enable_shared"; then
10092 case $archive_cmds in
10093 *'~'*)
10094 # FIXME: we may have to deal with multi-command sequences.
10095 ;;
10096 '$CC '*)
10097 # Test whether the compiler implicitly links with -lc since on some
10098 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10099 # to ld, don't add -lc before -lgcc.
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10101 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10102 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10103 $as_echo_n "(cached) " >&6
10104 else
10105 $RM conftest*
10106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10107
10108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10109 (eval $ac_compile) 2>&5
10110 ac_status=$?
10111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10112 test $ac_status = 0; } 2>conftest.err; then
10113 soname=conftest
10114 lib=conftest
10115 libobjs=conftest.$ac_objext
10116 deplibs=
10117 wl=$lt_prog_compiler_wl
10118 pic_flag=$lt_prog_compiler_pic
10119 compiler_flags=-v
10120 linker_flags=-v
10121 verstring=
10122 output_objdir=.
10123 libname=conftest
10124 lt_save_allow_undefined_flag=$allow_undefined_flag
10125 allow_undefined_flag=
10126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10127 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10128 ac_status=$?
10129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10130 test $ac_status = 0; }
10131 then
10132 lt_cv_archive_cmds_need_lc=no
10133 else
10134 lt_cv_archive_cmds_need_lc=yes
10135 fi
10136 allow_undefined_flag=$lt_save_allow_undefined_flag
10137 else
10138 cat conftest.err 1>&5
10139 fi
10140 $RM conftest*
10141
10142 fi
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10144 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10145 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10146 ;;
10147 esac
10148 fi
10149 ;;
10150 esac
10151
10152
10153
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10304 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10305
10306 if test yes = "$GCC"; then
10307 case $host_os in
10308 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10309 *) lt_awk_arg='/^libraries:/' ;;
10310 esac
10311 case $host_os in
10312 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10313 *) lt_sed_strip_eq='s|=/|/|g' ;;
10314 esac
10315 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10316 case $lt_search_path_spec in
10317 *\;*)
10318 # if the path contains ";" then we assume it to be the separator
10319 # otherwise default to the standard path separator (i.e. ":") - it is
10320 # assumed that no part of a normal pathname contains ";" but that should
10321 # okay in the real world where ";" in dirpaths is itself problematic.
10322 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10323 ;;
10324 *)
10325 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10326 ;;
10327 esac
10328 # Ok, now we have the path, separated by spaces, we can step through it
10329 # and add multilib dir if necessary...
10330 lt_tmp_lt_search_path_spec=
10331 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10332 # ...but if some path component already ends with the multilib dir we assume
10333 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10334 case "$lt_multi_os_dir; $lt_search_path_spec " in
10335 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10336 lt_multi_os_dir=
10337 ;;
10338 esac
10339 for lt_sys_path in $lt_search_path_spec; do
10340 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10341 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10342 elif test -n "$lt_multi_os_dir"; then
10343 test -d "$lt_sys_path" && \
10344 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10345 fi
10346 done
10347 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10348 BEGIN {RS = " "; FS = "/|\n";} {
10349 lt_foo = "";
10350 lt_count = 0;
10351 for (lt_i = NF; lt_i > 0; lt_i--) {
10352 if ($lt_i != "" && $lt_i != ".") {
10353 if ($lt_i == "..") {
10354 lt_count++;
10355 } else {
10356 if (lt_count == 0) {
10357 lt_foo = "/" $lt_i lt_foo;
10358 } else {
10359 lt_count--;
10360 }
10361 }
10362 }
10363 }
10364 if (lt_foo != "") { lt_freq[lt_foo]++; }
10365 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10366 }'`
10367 # AWK program above erroneously prepends '/' to C:/dos/paths
10368 # for these hosts.
10369 case $host_os in
10370 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10371 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10372 esac
10373 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10374 else
10375 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10376 fi
10377 library_names_spec=
10378 libname_spec='lib$name'
10379 soname_spec=
10380 shrext_cmds=.so
10381 postinstall_cmds=
10382 postuninstall_cmds=
10383 finish_cmds=
10384 finish_eval=
10385 shlibpath_var=
10386 shlibpath_overrides_runpath=unknown
10387 version_type=none
10388 dynamic_linker="$host_os ld.so"
10389 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10390 need_lib_prefix=unknown
10391 hardcode_into_libs=no
10392
10393 # when you set need_version to no, make sure it does not cause -set_version
10394 # flags to be left without arguments
10395 need_version=unknown
10396
10397
10398
10399 case $host_os in
10400 aix3*)
10401 version_type=linux # correct to gnu/linux during the next big refactor
10402 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10403 shlibpath_var=LIBPATH
10404
10405 # AIX 3 has no versioning support, so we append a major version to the name.
10406 soname_spec='$libname$release$shared_ext$major'
10407 ;;
10408
10409 aix[4-9]*)
10410 version_type=linux # correct to gnu/linux during the next big refactor
10411 need_lib_prefix=no
10412 need_version=no
10413 hardcode_into_libs=yes
10414 if test ia64 = "$host_cpu"; then
10415 # AIX 5 supports IA64
10416 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10417 shlibpath_var=LD_LIBRARY_PATH
10418 else
10419 # With GCC up to 2.95.x, collect2 would create an import file
10420 # for dependence libraries. The import file would start with
10421 # the line '#! .'. This would cause the generated library to
10422 # depend on '.', always an invalid library. This was fixed in
10423 # development snapshots of GCC prior to 3.0.
10424 case $host_os in
10425 aix4 | aix4.[01] | aix4.[01].*)
10426 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10427 echo ' yes '
10428 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10429 :
10430 else
10431 can_build_shared=no
10432 fi
10433 ;;
10434 esac
10435 # Using Import Files as archive members, it is possible to support
10436 # filename-based versioning of shared library archives on AIX. While
10437 # this would work for both with and without runtime linking, it will
10438 # prevent static linking of such archives. So we do filename-based
10439 # shared library versioning with .so extension only, which is used
10440 # when both runtime linking and shared linking is enabled.
10441 # Unfortunately, runtime linking may impact performance, so we do
10442 # not want this to be the default eventually. Also, we use the
10443 # versioned .so libs for executables only if there is the -brtl
10444 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10445 # To allow for filename-based versioning support, we need to create
10446 # libNAME.so.V as an archive file, containing:
10447 # *) an Import File, referring to the versioned filename of the
10448 # archive as well as the shared archive member, telling the
10449 # bitwidth (32 or 64) of that shared object, and providing the
10450 # list of exported symbols of that shared object, eventually
10451 # decorated with the 'weak' keyword
10452 # *) the shared object with the F_LOADONLY flag set, to really avoid
10453 # it being seen by the linker.
10454 # At run time we better use the real file rather than another symlink,
10455 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10456
10457 case $with_aix_soname,$aix_use_runtimelinking in
10458 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10459 # soname into executable. Probably we can add versioning support to
10460 # collect2, so additional links can be useful in future.
10461 aix,yes) # traditional libtool
10462 dynamic_linker='AIX unversionable lib.so'
10463 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10464 # instead of lib<name>.a to let people know that these are not
10465 # typical AIX shared libraries.
10466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10467 ;;
10468 aix,no) # traditional AIX only
10469 dynamic_linker='AIX lib.a(lib.so.V)'
10470 # We preserve .a as extension for shared libraries through AIX4.2
10471 # and later when we are not doing run time linking.
10472 library_names_spec='$libname$release.a $libname.a'
10473 soname_spec='$libname$release$shared_ext$major'
10474 ;;
10475 svr4,*) # full svr4 only
10476 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10477 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10478 # We do not specify a path in Import Files, so LIBPATH fires.
10479 shlibpath_overrides_runpath=yes
10480 ;;
10481 *,yes) # both, prefer svr4
10482 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10483 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10484 # unpreferred sharedlib libNAME.a needs extra handling
10485 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"'
10486 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"'
10487 # We do not specify a path in Import Files, so LIBPATH fires.
10488 shlibpath_overrides_runpath=yes
10489 ;;
10490 *,no) # both, prefer aix
10491 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10492 library_names_spec='$libname$release.a $libname.a'
10493 soname_spec='$libname$release$shared_ext$major'
10494 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10495 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)'
10496 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"'
10497 ;;
10498 esac
10499 shlibpath_var=LIBPATH
10500 fi
10501 ;;
10502
10503 amigaos*)
10504 case $host_cpu in
10505 powerpc)
10506 # Since July 2007 AmigaOS4 officially supports .so libraries.
10507 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10509 ;;
10510 m68k)
10511 library_names_spec='$libname.ixlibrary $libname.a'
10512 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10513 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'
10514 ;;
10515 esac
10516 ;;
10517
10518 beos*)
10519 library_names_spec='$libname$shared_ext'
10520 dynamic_linker="$host_os ld.so"
10521 shlibpath_var=LIBRARY_PATH
10522 ;;
10523
10524 bsdi[45]*)
10525 version_type=linux # correct to gnu/linux during the next big refactor
10526 need_version=no
10527 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10528 soname_spec='$libname$release$shared_ext$major'
10529 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10532 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10533 # the default ld.so.conf also contains /usr/contrib/lib and
10534 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10535 # libtool to hard-code these into programs
10536 ;;
10537
10538 cygwin* | mingw* | pw32* | cegcc*)
10539 version_type=windows
10540 shrext_cmds=.dll
10541 need_version=no
10542 need_lib_prefix=no
10543
10544 case $GCC,$cc_basename in
10545 yes,*)
10546 # gcc
10547 library_names_spec='$libname.dll.a'
10548 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10549 postinstall_cmds='base_file=`basename \$file`~
10550 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10551 dldir=$destdir/`dirname \$dlpath`~
10552 test -d \$dldir || mkdir -p \$dldir~
10553 $install_prog $dir/$dlname \$dldir/$dlname~
10554 chmod a+x \$dldir/$dlname~
10555 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10556 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10557 fi'
10558 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10559 dlpath=$dir/\$dldll~
10560 $RM \$dlpath'
10561 shlibpath_overrides_runpath=yes
10562
10563 case $host_os in
10564 cygwin*)
10565 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10566 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10567
10568 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10569 ;;
10570 mingw* | cegcc*)
10571 # MinGW DLLs use traditional 'lib' prefix
10572 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10573 ;;
10574 pw32*)
10575 # pw32 DLLs use 'pw' prefix rather than 'lib'
10576 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10577 ;;
10578 esac
10579 dynamic_linker='Win32 ld.exe'
10580 ;;
10581
10582 *,cl*)
10583 # Native MSVC
10584 libname_spec='$name'
10585 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10586 library_names_spec='$libname.dll.lib'
10587
10588 case $build_os in
10589 mingw*)
10590 sys_lib_search_path_spec=
10591 lt_save_ifs=$IFS
10592 IFS=';'
10593 for lt_path in $LIB
10594 do
10595 IFS=$lt_save_ifs
10596 # Let DOS variable expansion print the short 8.3 style file name.
10597 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10598 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10599 done
10600 IFS=$lt_save_ifs
10601 # Convert to MSYS style.
10602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10603 ;;
10604 cygwin*)
10605 # Convert to unix form, then to dos form, then back to unix form
10606 # but this time dos style (no spaces!) so that the unix form looks
10607 # like /cygdrive/c/PROGRA~1:/cygdr...
10608 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10609 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10610 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10611 ;;
10612 *)
10613 sys_lib_search_path_spec=$LIB
10614 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10615 # It is most probably a Windows format PATH.
10616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10617 else
10618 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10619 fi
10620 # FIXME: find the short name or the path components, as spaces are
10621 # common. (e.g. "Program Files" -> "PROGRA~1")
10622 ;;
10623 esac
10624
10625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10626 postinstall_cmds='base_file=`basename \$file`~
10627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10628 dldir=$destdir/`dirname \$dlpath`~
10629 test -d \$dldir || mkdir -p \$dldir~
10630 $install_prog $dir/$dlname \$dldir/$dlname'
10631 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10632 dlpath=$dir/\$dldll~
10633 $RM \$dlpath'
10634 shlibpath_overrides_runpath=yes
10635 dynamic_linker='Win32 link.exe'
10636 ;;
10637
10638 *)
10639 # Assume MSVC wrapper
10640 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10641 dynamic_linker='Win32 ld.exe'
10642 ;;
10643 esac
10644 # FIXME: first we should search . and the directory the executable is in
10645 shlibpath_var=PATH
10646 ;;
10647
10648 darwin* | rhapsody*)
10649 dynamic_linker="$host_os dyld"
10650 version_type=darwin
10651 need_lib_prefix=no
10652 need_version=no
10653 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10654 soname_spec='$libname$release$major$shared_ext'
10655 shlibpath_overrides_runpath=yes
10656 shlibpath_var=DYLD_LIBRARY_PATH
10657 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10658
10659 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10660 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10661 ;;
10662
10663 dgux*)
10664 version_type=linux # correct to gnu/linux during the next big refactor
10665 need_lib_prefix=no
10666 need_version=no
10667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10668 soname_spec='$libname$release$shared_ext$major'
10669 shlibpath_var=LD_LIBRARY_PATH
10670 ;;
10671
10672 freebsd* | dragonfly*)
10673 # DragonFly does not have aout. When/if they implement a new
10674 # versioning mechanism, adjust this.
10675 if test -x /usr/bin/objformat; then
10676 objformat=`/usr/bin/objformat`
10677 else
10678 case $host_os in
10679 freebsd[23].*) objformat=aout ;;
10680 *) objformat=elf ;;
10681 esac
10682 fi
10683 version_type=freebsd-$objformat
10684 case $version_type in
10685 freebsd-elf*)
10686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10687 soname_spec='$libname$release$shared_ext$major'
10688 need_version=no
10689 need_lib_prefix=no
10690 ;;
10691 freebsd-*)
10692 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10693 need_version=yes
10694 ;;
10695 esac
10696 shlibpath_var=LD_LIBRARY_PATH
10697 case $host_os in
10698 freebsd2.*)
10699 shlibpath_overrides_runpath=yes
10700 ;;
10701 freebsd3.[01]* | freebsdelf3.[01]*)
10702 shlibpath_overrides_runpath=yes
10703 hardcode_into_libs=yes
10704 ;;
10705 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10706 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10707 shlibpath_overrides_runpath=no
10708 hardcode_into_libs=yes
10709 ;;
10710 *) # from 4.6 on, and DragonFly
10711 shlibpath_overrides_runpath=yes
10712 hardcode_into_libs=yes
10713 ;;
10714 esac
10715 ;;
10716
10717 haiku*)
10718 version_type=linux # correct to gnu/linux during the next big refactor
10719 need_lib_prefix=no
10720 need_version=no
10721 dynamic_linker="$host_os runtime_loader"
10722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10723 soname_spec='$libname$release$shared_ext$major'
10724 shlibpath_var=LIBRARY_PATH
10725 shlibpath_overrides_runpath=no
10726 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10727 hardcode_into_libs=yes
10728 ;;
10729
10730 hpux9* | hpux10* | hpux11*)
10731 # Give a soname corresponding to the major version so that dld.sl refuses to
10732 # link against other versions.
10733 version_type=sunos
10734 need_lib_prefix=no
10735 need_version=no
10736 case $host_cpu in
10737 ia64*)
10738 shrext_cmds='.so'
10739 hardcode_into_libs=yes
10740 dynamic_linker="$host_os dld.so"
10741 shlibpath_var=LD_LIBRARY_PATH
10742 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10744 soname_spec='$libname$release$shared_ext$major'
10745 if test 32 = "$HPUX_IA64_MODE"; then
10746 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10747 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10748 else
10749 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10750 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10751 fi
10752 ;;
10753 hppa*64*)
10754 shrext_cmds='.sl'
10755 hardcode_into_libs=yes
10756 dynamic_linker="$host_os dld.sl"
10757 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10760 soname_spec='$libname$release$shared_ext$major'
10761 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10762 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10763 ;;
10764 *)
10765 shrext_cmds='.sl'
10766 dynamic_linker="$host_os dld.sl"
10767 shlibpath_var=SHLIB_PATH
10768 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10770 soname_spec='$libname$release$shared_ext$major'
10771 ;;
10772 esac
10773 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10774 postinstall_cmds='chmod 555 $lib'
10775 # or fails outright, so override atomically:
10776 install_override_mode=555
10777 ;;
10778
10779 interix[3-9]*)
10780 version_type=linux # correct to gnu/linux during the next big refactor
10781 need_lib_prefix=no
10782 need_version=no
10783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10784 soname_spec='$libname$release$shared_ext$major'
10785 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10786 shlibpath_var=LD_LIBRARY_PATH
10787 shlibpath_overrides_runpath=no
10788 hardcode_into_libs=yes
10789 ;;
10790
10791 irix5* | irix6* | nonstopux*)
10792 case $host_os in
10793 nonstopux*) version_type=nonstopux ;;
10794 *)
10795 if test yes = "$lt_cv_prog_gnu_ld"; then
10796 version_type=linux # correct to gnu/linux during the next big refactor
10797 else
10798 version_type=irix
10799 fi ;;
10800 esac
10801 need_lib_prefix=no
10802 need_version=no
10803 soname_spec='$libname$release$shared_ext$major'
10804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10805 case $host_os in
10806 irix5* | nonstopux*)
10807 libsuff= shlibsuff=
10808 ;;
10809 *)
10810 case $LD in # libtool.m4 will add one of these switches to LD
10811 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10812 libsuff= shlibsuff= libmagic=32-bit;;
10813 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10814 libsuff=32 shlibsuff=N32 libmagic=N32;;
10815 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10816 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10817 *) libsuff= shlibsuff= libmagic=never-match;;
10818 esac
10819 ;;
10820 esac
10821 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10822 shlibpath_overrides_runpath=no
10823 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10824 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10825 hardcode_into_libs=yes
10826 ;;
10827
10828 # No shared lib support for Linux oldld, aout, or coff.
10829 linux*oldld* | linux*aout* | linux*coff*)
10830 dynamic_linker=no
10831 ;;
10832
10833 linux*android*)
10834 version_type=none # Android doesn't support versioned libraries.
10835 need_lib_prefix=no
10836 need_version=no
10837 library_names_spec='$libname$release$shared_ext'
10838 soname_spec='$libname$release$shared_ext'
10839 finish_cmds=
10840 shlibpath_var=LD_LIBRARY_PATH
10841 shlibpath_overrides_runpath=yes
10842
10843 # This implies no fast_install, which is unacceptable.
10844 # Some rework will be needed to allow for fast_install
10845 # before this can be enabled.
10846 hardcode_into_libs=yes
10847
10848 dynamic_linker='Android linker'
10849 # Don't embed -rpath directories since the linker doesn't support them.
10850 hardcode_libdir_flag_spec='-L$libdir'
10851 ;;
10852
10853 # This must be glibc/ELF.
10854 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10855 version_type=linux # correct to gnu/linux during the next big refactor
10856 need_lib_prefix=no
10857 need_version=no
10858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10859 soname_spec='$libname$release$shared_ext$major'
10860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10861 shlibpath_var=LD_LIBRARY_PATH
10862 shlibpath_overrides_runpath=no
10863
10864 # Some binutils ld are patched to set DT_RUNPATH
10865 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10866 $as_echo_n "(cached) " >&6
10867 else
10868 lt_cv_shlibpath_overrides_runpath=no
10869 save_LDFLAGS=$LDFLAGS
10870 save_libdir=$libdir
10871 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10872 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h. */
10875
10876 int
10877 main ()
10878 {
10879
10880 ;
10881 return 0;
10882 }
10883 _ACEOF
10884 if ac_fn_c_try_link "$LINENO"; then :
10885 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10886 lt_cv_shlibpath_overrides_runpath=yes
10887 fi
10888 fi
10889 rm -f core conftest.err conftest.$ac_objext \
10890 conftest$ac_exeext conftest.$ac_ext
10891 LDFLAGS=$save_LDFLAGS
10892 libdir=$save_libdir
10893
10894 fi
10895
10896 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10897
10898 # This implies no fast_install, which is unacceptable.
10899 # Some rework will be needed to allow for fast_install
10900 # before this can be enabled.
10901 hardcode_into_libs=yes
10902
10903 # Add ABI-specific directories to the system library path.
10904 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10905
10906 # Ideally, we could use ldconfig to report *all* directores which are
10907 # searched for libraries, however this is still not possible. Aside from not
10908 # being certain /sbin/ldconfig is available, command
10909 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10910 # even though it is searched at run-time. Try to do the best guess by
10911 # appending ld.so.conf contents (and includes) to the search path.
10912 if test -f /etc/ld.so.conf; then
10913 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' ' '`
10914 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10915 fi
10916
10917 # We used to test for /lib/ld.so.1 and disable shared libraries on
10918 # powerpc, because MkLinux only supported shared libraries with the
10919 # GNU dynamic linker. Since this was broken with cross compilers,
10920 # most powerpc-linux boxes support dynamic linking these days and
10921 # people can always --disable-shared, the test was removed, and we
10922 # assume the GNU/Linux dynamic linker is in use.
10923 dynamic_linker='GNU/Linux ld.so'
10924 ;;
10925
10926 netbsd*)
10927 version_type=sunos
10928 need_lib_prefix=no
10929 need_version=no
10930 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10931 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10932 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10933 dynamic_linker='NetBSD (a.out) ld.so'
10934 else
10935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10936 soname_spec='$libname$release$shared_ext$major'
10937 dynamic_linker='NetBSD ld.elf_so'
10938 fi
10939 shlibpath_var=LD_LIBRARY_PATH
10940 shlibpath_overrides_runpath=yes
10941 hardcode_into_libs=yes
10942 ;;
10943
10944 newsos6)
10945 version_type=linux # correct to gnu/linux during the next big refactor
10946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10947 shlibpath_var=LD_LIBRARY_PATH
10948 shlibpath_overrides_runpath=yes
10949 ;;
10950
10951 *nto* | *qnx*)
10952 version_type=qnx
10953 need_lib_prefix=no
10954 need_version=no
10955 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10956 soname_spec='$libname$release$shared_ext$major'
10957 shlibpath_var=LD_LIBRARY_PATH
10958 shlibpath_overrides_runpath=no
10959 hardcode_into_libs=yes
10960 dynamic_linker='ldqnx.so'
10961 ;;
10962
10963 openbsd* | bitrig*)
10964 version_type=sunos
10965 sys_lib_dlsearch_path_spec=/usr/lib
10966 need_lib_prefix=no
10967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10968 need_version=no
10969 else
10970 need_version=yes
10971 fi
10972 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes
10976 ;;
10977
10978 os2*)
10979 libname_spec='$name'
10980 version_type=windows
10981 shrext_cmds=.dll
10982 need_version=no
10983 need_lib_prefix=no
10984 # OS/2 can only load a DLL with a base name of 8 characters or less.
10985 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10986 v=$($ECHO $release$versuffix | tr -d .-);
10987 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10988 $ECHO $n$v`$shared_ext'
10989 library_names_spec='${libname}_dll.$libext'
10990 dynamic_linker='OS/2 ld.exe'
10991 shlibpath_var=BEGINLIBPATH
10992 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10994 postinstall_cmds='base_file=`basename \$file`~
10995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10996 dldir=$destdir/`dirname \$dlpath`~
10997 test -d \$dldir || mkdir -p \$dldir~
10998 $install_prog $dir/$dlname \$dldir/$dlname~
10999 chmod a+x \$dldir/$dlname~
11000 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11001 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11002 fi'
11003 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11004 dlpath=$dir/\$dldll~
11005 $RM \$dlpath'
11006 ;;
11007
11008 osf3* | osf4* | osf5*)
11009 version_type=osf
11010 need_lib_prefix=no
11011 need_version=no
11012 soname_spec='$libname$release$shared_ext$major'
11013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11014 shlibpath_var=LD_LIBRARY_PATH
11015 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11017 ;;
11018
11019 rdos*)
11020 dynamic_linker=no
11021 ;;
11022
11023 solaris*)
11024 version_type=linux # correct to gnu/linux during the next big refactor
11025 need_lib_prefix=no
11026 need_version=no
11027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11028 soname_spec='$libname$release$shared_ext$major'
11029 shlibpath_var=LD_LIBRARY_PATH
11030 shlibpath_overrides_runpath=yes
11031 hardcode_into_libs=yes
11032 # ldd complains unless libraries are executable
11033 postinstall_cmds='chmod +x $lib'
11034 ;;
11035
11036 sunos4*)
11037 version_type=sunos
11038 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11039 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11040 shlibpath_var=LD_LIBRARY_PATH
11041 shlibpath_overrides_runpath=yes
11042 if test yes = "$with_gnu_ld"; then
11043 need_lib_prefix=no
11044 fi
11045 need_version=yes
11046 ;;
11047
11048 sysv4 | sysv4.3*)
11049 version_type=linux # correct to gnu/linux during the next big refactor
11050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11051 soname_spec='$libname$release$shared_ext$major'
11052 shlibpath_var=LD_LIBRARY_PATH
11053 case $host_vendor in
11054 sni)
11055 shlibpath_overrides_runpath=no
11056 need_lib_prefix=no
11057 runpath_var=LD_RUN_PATH
11058 ;;
11059 siemens)
11060 need_lib_prefix=no
11061 ;;
11062 motorola)
11063 need_lib_prefix=no
11064 need_version=no
11065 shlibpath_overrides_runpath=no
11066 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11067 ;;
11068 esac
11069 ;;
11070
11071 sysv4*MP*)
11072 if test -d /usr/nec; then
11073 version_type=linux # correct to gnu/linux during the next big refactor
11074 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11075 soname_spec='$libname$shared_ext.$major'
11076 shlibpath_var=LD_LIBRARY_PATH
11077 fi
11078 ;;
11079
11080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11081 version_type=sco
11082 need_lib_prefix=no
11083 need_version=no
11084 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11085 soname_spec='$libname$release$shared_ext$major'
11086 shlibpath_var=LD_LIBRARY_PATH
11087 shlibpath_overrides_runpath=yes
11088 hardcode_into_libs=yes
11089 if test yes = "$with_gnu_ld"; then
11090 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11091 else
11092 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11093 case $host_os in
11094 sco3.2v5*)
11095 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11096 ;;
11097 esac
11098 fi
11099 sys_lib_dlsearch_path_spec='/usr/lib'
11100 ;;
11101
11102 tpf*)
11103 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11104 version_type=linux # correct to gnu/linux during the next big refactor
11105 need_lib_prefix=no
11106 need_version=no
11107 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=no
11110 hardcode_into_libs=yes
11111 ;;
11112
11113 uts4*)
11114 version_type=linux # correct to gnu/linux during the next big refactor
11115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11116 soname_spec='$libname$release$shared_ext$major'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 ;;
11119
11120 *)
11121 dynamic_linker=no
11122 ;;
11123 esac
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11125 $as_echo "$dynamic_linker" >&6; }
11126 test no = "$dynamic_linker" && can_build_shared=no
11127
11128 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11129 if test yes = "$GCC"; then
11130 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11131 fi
11132
11133 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11134 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11135 fi
11136
11137 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11138 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11139 fi
11140
11141 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11142 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11143
11144 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11145 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11146
11147 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11148 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11149
11150
11151
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11247 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11248 hardcode_action=
11249 if test -n "$hardcode_libdir_flag_spec" ||
11250 test -n "$runpath_var" ||
11251 test yes = "$hardcode_automatic"; then
11252
11253 # We can hardcode non-existent directories.
11254 if test no != "$hardcode_direct" &&
11255 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11256 # have to relink, otherwise we might link with an installed library
11257 # when we should be linking with a yet-to-be-installed one
11258 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11259 test no != "$hardcode_minus_L"; then
11260 # Linking always hardcodes the temporary library directory.
11261 hardcode_action=relink
11262 else
11263 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11264 hardcode_action=immediate
11265 fi
11266 else
11267 # We cannot hardcode anything, or else we can only hardcode existing
11268 # directories.
11269 hardcode_action=unsupported
11270 fi
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11272 $as_echo "$hardcode_action" >&6; }
11273
11274 if test relink = "$hardcode_action" ||
11275 test yes = "$inherit_rpath"; then
11276 # Fast installation is not supported
11277 enable_fast_install=no
11278 elif test yes = "$shlibpath_overrides_runpath" ||
11279 test no = "$enable_shared"; then
11280 # Fast installation is not necessary
11281 enable_fast_install=needless
11282 fi
11283
11284
11285
11286
11287
11288
11289 if test yes != "$enable_dlopen"; then
11290 enable_dlopen=unknown
11291 enable_dlopen_self=unknown
11292 enable_dlopen_self_static=unknown
11293 else
11294 lt_cv_dlopen=no
11295 lt_cv_dlopen_libs=
11296
11297 case $host_os in
11298 beos*)
11299 lt_cv_dlopen=load_add_on
11300 lt_cv_dlopen_libs=
11301 lt_cv_dlopen_self=yes
11302 ;;
11303
11304 mingw* | pw32* | cegcc*)
11305 lt_cv_dlopen=LoadLibrary
11306 lt_cv_dlopen_libs=
11307 ;;
11308
11309 cygwin*)
11310 lt_cv_dlopen=dlopen
11311 lt_cv_dlopen_libs=
11312 ;;
11313
11314 darwin*)
11315 # if libdl is installed we need to link against it
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11317 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11318 if ${ac_cv_lib_dl_dlopen+:} false; then :
11319 $as_echo_n "(cached) " >&6
11320 else
11321 ac_check_lib_save_LIBS=$LIBS
11322 LIBS="-ldl $LIBS"
11323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h. */
11325
11326 /* Override any GCC internal prototype to avoid an error.
11327 Use char because int might match the return type of a GCC
11328 builtin and then its argument prototype would still apply. */
11329 #ifdef __cplusplus
11330 extern "C"
11331 #endif
11332 char dlopen ();
11333 int
11334 main ()
11335 {
11336 return dlopen ();
11337 ;
11338 return 0;
11339 }
11340 _ACEOF
11341 if ac_fn_c_try_link "$LINENO"; then :
11342 ac_cv_lib_dl_dlopen=yes
11343 else
11344 ac_cv_lib_dl_dlopen=no
11345 fi
11346 rm -f core conftest.err conftest.$ac_objext \
11347 conftest$ac_exeext conftest.$ac_ext
11348 LIBS=$ac_check_lib_save_LIBS
11349 fi
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11351 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11352 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11353 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11354 else
11355
11356 lt_cv_dlopen=dyld
11357 lt_cv_dlopen_libs=
11358 lt_cv_dlopen_self=yes
11359
11360 fi
11361
11362 ;;
11363
11364 tpf*)
11365 # Don't try to run any link tests for TPF. We know it's impossible
11366 # because TPF is a cross-compiler, and we know how we open DSOs.
11367 lt_cv_dlopen=dlopen
11368 lt_cv_dlopen_libs=
11369 lt_cv_dlopen_self=no
11370 ;;
11371
11372 *)
11373 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11374 if test "x$ac_cv_func_shl_load" = xyes; then :
11375 lt_cv_dlopen=shl_load
11376 else
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11378 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11379 if ${ac_cv_lib_dld_shl_load+:} false; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 ac_check_lib_save_LIBS=$LIBS
11383 LIBS="-ldld $LIBS"
11384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h. */
11386
11387 /* Override any GCC internal prototype to avoid an error.
11388 Use char because int might match the return type of a GCC
11389 builtin and then its argument prototype would still apply. */
11390 #ifdef __cplusplus
11391 extern "C"
11392 #endif
11393 char shl_load ();
11394 int
11395 main ()
11396 {
11397 return shl_load ();
11398 ;
11399 return 0;
11400 }
11401 _ACEOF
11402 if ac_fn_c_try_link "$LINENO"; then :
11403 ac_cv_lib_dld_shl_load=yes
11404 else
11405 ac_cv_lib_dld_shl_load=no
11406 fi
11407 rm -f core conftest.err conftest.$ac_objext \
11408 conftest$ac_exeext conftest.$ac_ext
11409 LIBS=$ac_check_lib_save_LIBS
11410 fi
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11412 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11413 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11414 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11415 else
11416 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11417 if test "x$ac_cv_func_dlopen" = xyes; then :
11418 lt_cv_dlopen=dlopen
11419 else
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11421 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11422 if ${ac_cv_lib_dl_dlopen+:} false; then :
11423 $as_echo_n "(cached) " >&6
11424 else
11425 ac_check_lib_save_LIBS=$LIBS
11426 LIBS="-ldl $LIBS"
11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h. */
11429
11430 /* Override any GCC internal prototype to avoid an error.
11431 Use char because int might match the return type of a GCC
11432 builtin and then its argument prototype would still apply. */
11433 #ifdef __cplusplus
11434 extern "C"
11435 #endif
11436 char dlopen ();
11437 int
11438 main ()
11439 {
11440 return dlopen ();
11441 ;
11442 return 0;
11443 }
11444 _ACEOF
11445 if ac_fn_c_try_link "$LINENO"; then :
11446 ac_cv_lib_dl_dlopen=yes
11447 else
11448 ac_cv_lib_dl_dlopen=no
11449 fi
11450 rm -f core conftest.err conftest.$ac_objext \
11451 conftest$ac_exeext conftest.$ac_ext
11452 LIBS=$ac_check_lib_save_LIBS
11453 fi
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11455 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11456 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11457 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11458 else
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11460 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11461 if ${ac_cv_lib_svld_dlopen+:} false; then :
11462 $as_echo_n "(cached) " >&6
11463 else
11464 ac_check_lib_save_LIBS=$LIBS
11465 LIBS="-lsvld $LIBS"
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11468
11469 /* Override any GCC internal prototype to avoid an error.
11470 Use char because int might match the return type of a GCC
11471 builtin and then its argument prototype would still apply. */
11472 #ifdef __cplusplus
11473 extern "C"
11474 #endif
11475 char dlopen ();
11476 int
11477 main ()
11478 {
11479 return dlopen ();
11480 ;
11481 return 0;
11482 }
11483 _ACEOF
11484 if ac_fn_c_try_link "$LINENO"; then :
11485 ac_cv_lib_svld_dlopen=yes
11486 else
11487 ac_cv_lib_svld_dlopen=no
11488 fi
11489 rm -f core conftest.err conftest.$ac_objext \
11490 conftest$ac_exeext conftest.$ac_ext
11491 LIBS=$ac_check_lib_save_LIBS
11492 fi
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11494 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11495 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11496 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11497 else
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11499 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11500 if ${ac_cv_lib_dld_dld_link+:} false; then :
11501 $as_echo_n "(cached) " >&6
11502 else
11503 ac_check_lib_save_LIBS=$LIBS
11504 LIBS="-ldld $LIBS"
11505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506 /* end confdefs.h. */
11507
11508 /* Override any GCC internal prototype to avoid an error.
11509 Use char because int might match the return type of a GCC
11510 builtin and then its argument prototype would still apply. */
11511 #ifdef __cplusplus
11512 extern "C"
11513 #endif
11514 char dld_link ();
11515 int
11516 main ()
11517 {
11518 return dld_link ();
11519 ;
11520 return 0;
11521 }
11522 _ACEOF
11523 if ac_fn_c_try_link "$LINENO"; then :
11524 ac_cv_lib_dld_dld_link=yes
11525 else
11526 ac_cv_lib_dld_dld_link=no
11527 fi
11528 rm -f core conftest.err conftest.$ac_objext \
11529 conftest$ac_exeext conftest.$ac_ext
11530 LIBS=$ac_check_lib_save_LIBS
11531 fi
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11533 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11534 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11535 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11536 fi
11537
11538
11539 fi
11540
11541
11542 fi
11543
11544
11545 fi
11546
11547
11548 fi
11549
11550
11551 fi
11552
11553 ;;
11554 esac
11555
11556 if test no = "$lt_cv_dlopen"; then
11557 enable_dlopen=no
11558 else
11559 enable_dlopen=yes
11560 fi
11561
11562 case $lt_cv_dlopen in
11563 dlopen)
11564 save_CPPFLAGS=$CPPFLAGS
11565 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11566
11567 save_LDFLAGS=$LDFLAGS
11568 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11569
11570 save_LIBS=$LIBS
11571 LIBS="$lt_cv_dlopen_libs $LIBS"
11572
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11574 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11575 if ${lt_cv_dlopen_self+:} false; then :
11576 $as_echo_n "(cached) " >&6
11577 else
11578 if test yes = "$cross_compiling"; then :
11579 lt_cv_dlopen_self=cross
11580 else
11581 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11582 lt_status=$lt_dlunknown
11583 cat > conftest.$ac_ext <<_LT_EOF
11584 #line $LINENO "configure"
11585 #include "confdefs.h"
11586
11587 #if HAVE_DLFCN_H
11588 #include <dlfcn.h>
11589 #endif
11590
11591 #include <stdio.h>
11592
11593 #ifdef RTLD_GLOBAL
11594 # define LT_DLGLOBAL RTLD_GLOBAL
11595 #else
11596 # ifdef DL_GLOBAL
11597 # define LT_DLGLOBAL DL_GLOBAL
11598 # else
11599 # define LT_DLGLOBAL 0
11600 # endif
11601 #endif
11602
11603 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11604 find out it does not work in some platform. */
11605 #ifndef LT_DLLAZY_OR_NOW
11606 # ifdef RTLD_LAZY
11607 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11608 # else
11609 # ifdef DL_LAZY
11610 # define LT_DLLAZY_OR_NOW DL_LAZY
11611 # else
11612 # ifdef RTLD_NOW
11613 # define LT_DLLAZY_OR_NOW RTLD_NOW
11614 # else
11615 # ifdef DL_NOW
11616 # define LT_DLLAZY_OR_NOW DL_NOW
11617 # else
11618 # define LT_DLLAZY_OR_NOW 0
11619 # endif
11620 # endif
11621 # endif
11622 # endif
11623 #endif
11624
11625 /* When -fvisibility=hidden is used, assume the code has been annotated
11626 correspondingly for the symbols needed. */
11627 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11628 int fnord () __attribute__((visibility("default")));
11629 #endif
11630
11631 int fnord () { return 42; }
11632 int main ()
11633 {
11634 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11635 int status = $lt_dlunknown;
11636
11637 if (self)
11638 {
11639 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11640 else
11641 {
11642 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11643 else puts (dlerror ());
11644 }
11645 /* dlclose (self); */
11646 }
11647 else
11648 puts (dlerror ());
11649
11650 return status;
11651 }
11652 _LT_EOF
11653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11654 (eval $ac_link) 2>&5
11655 ac_status=$?
11656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11657 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11658 (./conftest; exit; ) >&5 2>/dev/null
11659 lt_status=$?
11660 case x$lt_status in
11661 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11662 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11663 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11664 esac
11665 else :
11666 # compilation failed
11667 lt_cv_dlopen_self=no
11668 fi
11669 fi
11670 rm -fr conftest*
11671
11672
11673 fi
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11675 $as_echo "$lt_cv_dlopen_self" >&6; }
11676
11677 if test yes = "$lt_cv_dlopen_self"; then
11678 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11680 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11681 if ${lt_cv_dlopen_self_static+:} false; then :
11682 $as_echo_n "(cached) " >&6
11683 else
11684 if test yes = "$cross_compiling"; then :
11685 lt_cv_dlopen_self_static=cross
11686 else
11687 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11688 lt_status=$lt_dlunknown
11689 cat > conftest.$ac_ext <<_LT_EOF
11690 #line $LINENO "configure"
11691 #include "confdefs.h"
11692
11693 #if HAVE_DLFCN_H
11694 #include <dlfcn.h>
11695 #endif
11696
11697 #include <stdio.h>
11698
11699 #ifdef RTLD_GLOBAL
11700 # define LT_DLGLOBAL RTLD_GLOBAL
11701 #else
11702 # ifdef DL_GLOBAL
11703 # define LT_DLGLOBAL DL_GLOBAL
11704 # else
11705 # define LT_DLGLOBAL 0
11706 # endif
11707 #endif
11708
11709 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11710 find out it does not work in some platform. */
11711 #ifndef LT_DLLAZY_OR_NOW
11712 # ifdef RTLD_LAZY
11713 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11714 # else
11715 # ifdef DL_LAZY
11716 # define LT_DLLAZY_OR_NOW DL_LAZY
11717 # else
11718 # ifdef RTLD_NOW
11719 # define LT_DLLAZY_OR_NOW RTLD_NOW
11720 # else
11721 # ifdef DL_NOW
11722 # define LT_DLLAZY_OR_NOW DL_NOW
11723 # else
11724 # define LT_DLLAZY_OR_NOW 0
11725 # endif
11726 # endif
11727 # endif
11728 # endif
11729 #endif
11730
11731 /* When -fvisibility=hidden is used, assume the code has been annotated
11732 correspondingly for the symbols needed. */
11733 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11734 int fnord () __attribute__((visibility("default")));
11735 #endif
11736
11737 int fnord () { return 42; }
11738 int main ()
11739 {
11740 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11741 int status = $lt_dlunknown;
11742
11743 if (self)
11744 {
11745 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11746 else
11747 {
11748 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11749 else puts (dlerror ());
11750 }
11751 /* dlclose (self); */
11752 }
11753 else
11754 puts (dlerror ());
11755
11756 return status;
11757 }
11758 _LT_EOF
11759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11760 (eval $ac_link) 2>&5
11761 ac_status=$?
11762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11763 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11764 (./conftest; exit; ) >&5 2>/dev/null
11765 lt_status=$?
11766 case x$lt_status in
11767 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11768 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11769 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11770 esac
11771 else :
11772 # compilation failed
11773 lt_cv_dlopen_self_static=no
11774 fi
11775 fi
11776 rm -fr conftest*
11777
11778
11779 fi
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11781 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11782 fi
11783
11784 CPPFLAGS=$save_CPPFLAGS
11785 LDFLAGS=$save_LDFLAGS
11786 LIBS=$save_LIBS
11787 ;;
11788 esac
11789
11790 case $lt_cv_dlopen_self in
11791 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11792 *) enable_dlopen_self=unknown ;;
11793 esac
11794
11795 case $lt_cv_dlopen_self_static in
11796 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11797 *) enable_dlopen_self_static=unknown ;;
11798 esac
11799 fi
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817 striplib=
11818 old_striplib=
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11820 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11821 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11822 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11823 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11825 $as_echo "yes" >&6; }
11826 else
11827 # FIXME - insert some real tests, host_os isn't really good enough
11828 case $host_os in
11829 darwin*)
11830 if test -n "$STRIP"; then
11831 striplib="$STRIP -x"
11832 old_striplib="$STRIP -S"
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11834 $as_echo "yes" >&6; }
11835 else
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837 $as_echo "no" >&6; }
11838 fi
11839 ;;
11840 *)
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11843 ;;
11844 esac
11845 fi
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858 # Report what library types will actually be built
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11860 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11862 $as_echo "$can_build_shared" >&6; }
11863
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11865 $as_echo_n "checking whether to build shared libraries... " >&6; }
11866 test no = "$can_build_shared" && enable_shared=no
11867
11868 # On AIX, shared libraries and static libraries use the same namespace, and
11869 # are all built from PIC.
11870 case $host_os in
11871 aix3*)
11872 test yes = "$enable_shared" && enable_static=no
11873 if test -n "$RANLIB"; then
11874 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11875 postinstall_cmds='$RANLIB $lib'
11876 fi
11877 ;;
11878
11879 aix[4-9]*)
11880 if test ia64 != "$host_cpu"; then
11881 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11882 yes,aix,yes) ;; # shared object as lib.so file only
11883 yes,svr4,*) ;; # shared object as lib.so archive member only
11884 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11885 esac
11886 fi
11887 ;;
11888 esac
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11890 $as_echo "$enable_shared" >&6; }
11891
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11893 $as_echo_n "checking whether to build static libraries... " >&6; }
11894 # Make sure either enable_shared or enable_static is yes.
11895 test yes = "$enable_shared" || enable_static=yes
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11897 $as_echo "$enable_static" >&6; }
11898
11899
11900
11901
11902 fi
11903 ac_ext=c
11904 ac_cpp='$CPP $CPPFLAGS'
11905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11908
11909 CC=$lt_save_CC
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925 ac_config_commands="$ac_config_commands libtool"
11926
11927
11928
11929
11930 # Only expand once:
11931
11932
11933
11934 if test x$GCC = xyes
11935 then
11936 CFLAGS="-Wall $CFLAGS"
11937 fi
11938 if test x$GXX = xyes
11939 then
11940 CXXFLAGS="-Wall $CXXFLAGS"
11941 fi
11942
11943 CFLAGS="-I../libs -I$srcdir/../libs $CFLAGS"
11944 CXXFLAGS="-I../libs -I$srcdir/../libs $CXXFLAGS"
11945
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11947 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11948 if ${ac_cv_c_const+:} false; then :
11949 $as_echo_n "(cached) " >&6
11950 else
11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h. */
11953
11954 int
11955 main ()
11956 {
11957
11958 #ifndef __cplusplus
11959 /* Ultrix mips cc rejects this sort of thing. */
11960 typedef int charset[2];
11961 const charset cs = { 0, 0 };
11962 /* SunOS 4.1.1 cc rejects this. */
11963 char const *const *pcpcc;
11964 char **ppc;
11965 /* NEC SVR4.0.2 mips cc rejects this. */
11966 struct point {int x, y;};
11967 static struct point const zero = {0,0};
11968 /* AIX XL C 1.02.0.0 rejects this.
11969 It does not let you subtract one const X* pointer from another in
11970 an arm of an if-expression whose if-part is not a constant
11971 expression */
11972 const char *g = "string";
11973 pcpcc = &g + (g ? g-g : 0);
11974 /* HPUX 7.0 cc rejects these. */
11975 ++pcpcc;
11976 ppc = (char**) pcpcc;
11977 pcpcc = (char const *const *) ppc;
11978 { /* SCO 3.2v4 cc rejects this sort of thing. */
11979 char tx;
11980 char *t = &tx;
11981 char const *s = 0 ? (char *) 0 : (char const *) 0;
11982
11983 *t++ = 0;
11984 if (s) return 0;
11985 }
11986 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11987 int x[] = {25, 17};
11988 const int *foo = &x[0];
11989 ++foo;
11990 }
11991 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11992 typedef const int *iptr;
11993 iptr p = 0;
11994 ++p;
11995 }
11996 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11997 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11998 struct s { int j; const int *ap[3]; } bx;
11999 struct s *b = &bx; b->j = 5;
12000 }
12001 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12002 const int foo = 10;
12003 if (!foo) return 0;
12004 }
12005 return !cs[0] && !zero.x;
12006 #endif
12007
12008 ;
12009 return 0;
12010 }
12011 _ACEOF
12012 if ac_fn_c_try_compile "$LINENO"; then :
12013 ac_cv_c_const=yes
12014 else
12015 ac_cv_c_const=no
12016 fi
12017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12018 fi
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12020 $as_echo "$ac_cv_c_const" >&6; }
12021 if test $ac_cv_c_const = no; then
12022
12023 $as_echo "#define const /**/" >>confdefs.h
12024
12025 fi
12026
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12028 $as_echo_n "checking for ANSI C header files... " >&6; }
12029 if ${ac_cv_header_stdc+:} false; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12033 /* end confdefs.h. */
12034 #include <stdlib.h>
12035 #include <stdarg.h>
12036 #include <string.h>
12037 #include <float.h>
12038
12039 int
12040 main ()
12041 {
12042
12043 ;
12044 return 0;
12045 }
12046 _ACEOF
12047 if ac_fn_c_try_compile "$LINENO"; then :
12048 ac_cv_header_stdc=yes
12049 else
12050 ac_cv_header_stdc=no
12051 fi
12052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12053
12054 if test $ac_cv_header_stdc = yes; then
12055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057 /* end confdefs.h. */
12058 #include <string.h>
12059
12060 _ACEOF
12061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12062 $EGREP "memchr" >/dev/null 2>&1; then :
12063
12064 else
12065 ac_cv_header_stdc=no
12066 fi
12067 rm -f conftest*
12068
12069 fi
12070
12071 if test $ac_cv_header_stdc = yes; then
12072 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12075 #include <stdlib.h>
12076
12077 _ACEOF
12078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12079 $EGREP "free" >/dev/null 2>&1; then :
12080
12081 else
12082 ac_cv_header_stdc=no
12083 fi
12084 rm -f conftest*
12085
12086 fi
12087
12088 if test $ac_cv_header_stdc = yes; then
12089 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12090 if test "$cross_compiling" = yes; then :
12091 :
12092 else
12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12095 #include <ctype.h>
12096 #include <stdlib.h>
12097 #if ((' ' & 0x0FF) == 0x020)
12098 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12099 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12100 #else
12101 # define ISLOWER(c) \
12102 (('a' <= (c) && (c) <= 'i') \
12103 || ('j' <= (c) && (c) <= 'r') \
12104 || ('s' <= (c) && (c) <= 'z'))
12105 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12106 #endif
12107
12108 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12109 int
12110 main ()
12111 {
12112 int i;
12113 for (i = 0; i < 256; i++)
12114 if (XOR (islower (i), ISLOWER (i))
12115 || toupper (i) != TOUPPER (i))
12116 return 2;
12117 return 0;
12118 }
12119 _ACEOF
12120 if ac_fn_c_try_run "$LINENO"; then :
12121
12122 else
12123 ac_cv_header_stdc=no
12124 fi
12125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12126 conftest.$ac_objext conftest.beam conftest.$ac_ext
12127 fi
12128
12129 fi
12130 fi
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12132 $as_echo "$ac_cv_header_stdc" >&6; }
12133 if test $ac_cv_header_stdc = yes; then
12134
12135 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12136
12137 fi
12138
12139 for ac_header in fcntl.h string.h syslog.h
12140 do :
12141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12142 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12143 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12144 cat >>confdefs.h <<_ACEOF
12145 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12146 _ACEOF
12147
12148 fi
12149
12150 done
12151
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12153 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12154 if ${ac_cv_type_uid_t+:} false; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12159 #include <sys/types.h>
12160
12161 _ACEOF
12162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12163 $EGREP "uid_t" >/dev/null 2>&1; then :
12164 ac_cv_type_uid_t=yes
12165 else
12166 ac_cv_type_uid_t=no
12167 fi
12168 rm -f conftest*
12169
12170 fi
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12172 $as_echo "$ac_cv_type_uid_t" >&6; }
12173 if test $ac_cv_type_uid_t = no; then
12174
12175 $as_echo "#define uid_t int" >>confdefs.h
12176
12177
12178 $as_echo "#define gid_t int" >>confdefs.h
12179
12180 fi
12181
12182 # Check whether --enable-largefile was given.
12183 if test "${enable_largefile+set}" = set; then :
12184 enableval=$enable_largefile;
12185 fi
12186
12187 if test "$enable_largefile" != no; then
12188
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12190 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12191 if ${ac_cv_sys_largefile_CC+:} false; then :
12192 $as_echo_n "(cached) " >&6
12193 else
12194 ac_cv_sys_largefile_CC=no
12195 if test "$GCC" != yes; then
12196 ac_save_CC=$CC
12197 while :; do
12198 # IRIX 6.2 and later do not support large files by default,
12199 # so use the C compiler's -n32 option if that helps.
12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12202 #include <sys/types.h>
12203 /* Check that off_t can represent 2**63 - 1 correctly.
12204 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12205 since some C++ compilers masquerading as C compilers
12206 incorrectly reject 9223372036854775807. */
12207 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12209 && LARGE_OFF_T % 2147483647 == 1)
12210 ? 1 : -1];
12211 int
12212 main ()
12213 {
12214
12215 ;
12216 return 0;
12217 }
12218 _ACEOF
12219 if ac_fn_c_try_compile "$LINENO"; then :
12220 break
12221 fi
12222 rm -f core conftest.err conftest.$ac_objext
12223 CC="$CC -n32"
12224 if ac_fn_c_try_compile "$LINENO"; then :
12225 ac_cv_sys_largefile_CC=' -n32'; break
12226 fi
12227 rm -f core conftest.err conftest.$ac_objext
12228 break
12229 done
12230 CC=$ac_save_CC
12231 rm -f conftest.$ac_ext
12232 fi
12233 fi
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12235 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12236 if test "$ac_cv_sys_largefile_CC" != no; then
12237 CC=$CC$ac_cv_sys_largefile_CC
12238 fi
12239
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12241 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12242 if ${ac_cv_sys_file_offset_bits+:} false; then :
12243 $as_echo_n "(cached) " >&6
12244 else
12245 while :; do
12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h. */
12248 #include <sys/types.h>
12249 /* Check that off_t can represent 2**63 - 1 correctly.
12250 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12251 since some C++ compilers masquerading as C compilers
12252 incorrectly reject 9223372036854775807. */
12253 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12254 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12255 && LARGE_OFF_T % 2147483647 == 1)
12256 ? 1 : -1];
12257 int
12258 main ()
12259 {
12260
12261 ;
12262 return 0;
12263 }
12264 _ACEOF
12265 if ac_fn_c_try_compile "$LINENO"; then :
12266 ac_cv_sys_file_offset_bits=no; break
12267 fi
12268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270 /* end confdefs.h. */
12271 #define _FILE_OFFSET_BITS 64
12272 #include <sys/types.h>
12273 /* Check that off_t can represent 2**63 - 1 correctly.
12274 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12275 since some C++ compilers masquerading as C compilers
12276 incorrectly reject 9223372036854775807. */
12277 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12278 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12279 && LARGE_OFF_T % 2147483647 == 1)
12280 ? 1 : -1];
12281 int
12282 main ()
12283 {
12284
12285 ;
12286 return 0;
12287 }
12288 _ACEOF
12289 if ac_fn_c_try_compile "$LINENO"; then :
12290 ac_cv_sys_file_offset_bits=64; break
12291 fi
12292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12293 ac_cv_sys_file_offset_bits=unknown
12294 break
12295 done
12296 fi
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12298 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12299 case $ac_cv_sys_file_offset_bits in #(
12300 no | unknown) ;;
12301 *)
12302 cat >>confdefs.h <<_ACEOF
12303 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12304 _ACEOF
12305 ;;
12306 esac
12307 rm -rf conftest*
12308 if test $ac_cv_sys_file_offset_bits = unknown; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12310 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12311 if ${ac_cv_sys_large_files+:} false; then :
12312 $as_echo_n "(cached) " >&6
12313 else
12314 while :; do
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12317 #include <sys/types.h>
12318 /* Check that off_t can represent 2**63 - 1 correctly.
12319 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12320 since some C++ compilers masquerading as C compilers
12321 incorrectly reject 9223372036854775807. */
12322 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12323 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12324 && LARGE_OFF_T % 2147483647 == 1)
12325 ? 1 : -1];
12326 int
12327 main ()
12328 {
12329
12330 ;
12331 return 0;
12332 }
12333 _ACEOF
12334 if ac_fn_c_try_compile "$LINENO"; then :
12335 ac_cv_sys_large_files=no; break
12336 fi
12337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12340 #define _LARGE_FILES 1
12341 #include <sys/types.h>
12342 /* Check that off_t can represent 2**63 - 1 correctly.
12343 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12344 since some C++ compilers masquerading as C compilers
12345 incorrectly reject 9223372036854775807. */
12346 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12347 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12348 && LARGE_OFF_T % 2147483647 == 1)
12349 ? 1 : -1];
12350 int
12351 main ()
12352 {
12353
12354 ;
12355 return 0;
12356 }
12357 _ACEOF
12358 if ac_fn_c_try_compile "$LINENO"; then :
12359 ac_cv_sys_large_files=1; break
12360 fi
12361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12362 ac_cv_sys_large_files=unknown
12363 break
12364 done
12365 fi
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12367 $as_echo "$ac_cv_sys_large_files" >&6; }
12368 case $ac_cv_sys_large_files in #(
12369 no | unknown) ;;
12370 *)
12371 cat >>confdefs.h <<_ACEOF
12372 #define _LARGE_FILES $ac_cv_sys_large_files
12373 _ACEOF
12374 ;;
12375 esac
12376 rm -rf conftest*
12377 fi
12378
12379
12380 fi
12381
12382 for ac_func in strchr
12383 do :
12384 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
12385 if test "x$ac_cv_func_strchr" = xyes; then :
12386 cat >>confdefs.h <<_ACEOF
12387 #define HAVE_STRCHR 1
12388 _ACEOF
12389
12390 fi
12391 done
12392
12393
12394
12395 # Check whether --with-syslog was given.
12396 if test "${with_syslog+set}" = set; then :
12397 withval=$with_syslog; logdest="LOG_$withval"
12398 else
12399 logdest="LOG_MAIL"
12400 fi
12401
12402
12403
12404 cat >>confdefs.h <<_ACEOF
12405 #define LOG_DEST $logdest
12406 _ACEOF
12407
12408 if test -d ${srcdir}/../libs/docbook; then
12409 HAVE_SGML_TRUE=
12410 HAVE_SGML_FALSE='#'
12411 else
12412 HAVE_SGML_TRUE='#'
12413 HAVE_SGML_FALSE=
12414 fi
12415
12416 ac_config_files="$ac_config_files Makefile"
12417
12418 cat >confcache <<\_ACEOF
12419 # This file is a shell script that caches the results of configure
12420 # tests run on this system so they can be shared between configure
12421 # scripts and configure runs, see configure's option --config-cache.
12422 # It is not useful on other systems. If it contains results you don't
12423 # want to keep, you may remove or edit it.
12424 #
12425 # config.status only pays attention to the cache file if you give it
12426 # the --recheck option to rerun configure.
12427 #
12428 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12429 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12430 # following values.
12431
12432 _ACEOF
12433
12434 # The following way of writing the cache mishandles newlines in values,
12435 # but we know of no workaround that is simple, portable, and efficient.
12436 # So, we kill variables containing newlines.
12437 # Ultrix sh set writes to stderr and can't be redirected directly,
12438 # and sets the high bit in the cache file unless we assign to the vars.
12439 (
12440 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12441 eval ac_val=\$$ac_var
12442 case $ac_val in #(
12443 *${as_nl}*)
12444 case $ac_var in #(
12445 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12446 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12447 esac
12448 case $ac_var in #(
12449 _ | IFS | as_nl) ;; #(
12450 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12451 *) { eval $ac_var=; unset $ac_var;} ;;
12452 esac ;;
12453 esac
12454 done
12455
12456 (set) 2>&1 |
12457 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12458 *${as_nl}ac_space=\ *)
12459 # `set' does not quote correctly, so add quotes: double-quote
12460 # substitution turns \\\\ into \\, and sed turns \\ into \.
12461 sed -n \
12462 "s/'/'\\\\''/g;
12463 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12464 ;; #(
12465 *)
12466 # `set' quotes correctly as required by POSIX, so do not add quotes.
12467 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12468 ;;
12469 esac |
12470 sort
12471 ) |
12472 sed '
12473 /^ac_cv_env_/b end
12474 t clear
12475 :clear
12476 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12477 t end
12478 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12479 :end' >>confcache
12480 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12481 if test -w "$cache_file"; then
12482 if test "x$cache_file" != "x/dev/null"; then
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12484 $as_echo "$as_me: updating cache $cache_file" >&6;}
12485 if test ! -f "$cache_file" || test -h "$cache_file"; then
12486 cat confcache >"$cache_file"
12487 else
12488 case $cache_file in #(
12489 */* | ?:*)
12490 mv -f confcache "$cache_file"$$ &&
12491 mv -f "$cache_file"$$ "$cache_file" ;; #(
12492 *)
12493 mv -f confcache "$cache_file" ;;
12494 esac
12495 fi
12496 fi
12497 else
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12499 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12500 fi
12501 fi
12502 rm -f confcache
12503
12504 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12505 # Let make expand exec_prefix.
12506 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12507
12508 DEFS=-DHAVE_CONFIG_H
12509
12510 ac_libobjs=
12511 ac_ltlibobjs=
12512 U=
12513 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12514 # 1. Remove the extension, and $U if already installed.
12515 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12516 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12517 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12518 # will be set to the directory where LIBOBJS objects are built.
12519 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12520 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12521 done
12522 LIBOBJS=$ac_libobjs
12523
12524 LTLIBOBJS=$ac_ltlibobjs
12525
12526
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12528 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12529 if test -n "$am_sleep_pid"; then
12530 # Hide warnings about reused PIDs.
12531 wait $am_sleep_pid 2>/dev/null
12532 fi
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12534 $as_echo "done" >&6; }
12535 if test -n "$EXEEXT"; then
12536 am__EXEEXT_TRUE=
12537 am__EXEEXT_FALSE='#'
12538 else
12539 am__EXEEXT_TRUE='#'
12540 am__EXEEXT_FALSE=
12541 fi
12542
12543 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12544 as_fn_error $? "conditional \"AMDEP\" was never defined.
12545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12546 fi
12547 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12548 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12550 fi
12551 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
12552 as_fn_error $? "conditional \"HAVE_SGML\" was never defined.
12553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12554 fi
12555
12556 : "${CONFIG_STATUS=./config.status}"
12557 ac_write_fail=0
12558 ac_clean_files_save=$ac_clean_files
12559 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12561 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12562 as_write_fail=0
12563 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12564 #! $SHELL
12565 # Generated by $as_me.
12566 # Run this file to recreate the current configuration.
12567 # Compiler output produced by configure, useful for debugging
12568 # configure, is in config.log if it exists.
12569
12570 debug=false
12571 ac_cs_recheck=false
12572 ac_cs_silent=false
12573
12574 SHELL=\${CONFIG_SHELL-$SHELL}
12575 export SHELL
12576 _ASEOF
12577 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12578 ## -------------------- ##
12579 ## M4sh Initialization. ##
12580 ## -------------------- ##
12581
12582 # Be more Bourne compatible
12583 DUALCASE=1; export DUALCASE # for MKS sh
12584 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12585 emulate sh
12586 NULLCMD=:
12587 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12588 # is contrary to our usage. Disable this feature.
12589 alias -g '${1+"$@"}'='"$@"'
12590 setopt NO_GLOB_SUBST
12591 else
12592 case `(set -o) 2>/dev/null` in #(
12593 *posix*) :
12594 set -o posix ;; #(
12595 *) :
12596 ;;
12597 esac
12598 fi
12599
12600
12601 as_nl='
12602 '
12603 export as_nl
12604 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12605 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12606 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12607 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12608 # Prefer a ksh shell builtin over an external printf program on Solaris,
12609 # but without wasting forks for bash or zsh.
12610 if test -z "$BASH_VERSION$ZSH_VERSION" \
12611 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12612 as_echo='print -r --'
12613 as_echo_n='print -rn --'
12614 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12615 as_echo='printf %s\n'
12616 as_echo_n='printf %s'
12617 else
12618 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12619 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12620 as_echo_n='/usr/ucb/echo -n'
12621 else
12622 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12623 as_echo_n_body='eval
12624 arg=$1;
12625 case $arg in #(
12626 *"$as_nl"*)
12627 expr "X$arg" : "X\\(.*\\)$as_nl";
12628 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12629 esac;
12630 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12631 '
12632 export as_echo_n_body
12633 as_echo_n='sh -c $as_echo_n_body as_echo'
12634 fi
12635 export as_echo_body
12636 as_echo='sh -c $as_echo_body as_echo'
12637 fi
12638
12639 # The user is always right.
12640 if test "${PATH_SEPARATOR+set}" != set; then
12641 PATH_SEPARATOR=:
12642 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12643 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12644 PATH_SEPARATOR=';'
12645 }
12646 fi
12647
12648
12649 # IFS
12650 # We need space, tab and new line, in precisely that order. Quoting is
12651 # there to prevent editors from complaining about space-tab.
12652 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12653 # splitting by setting IFS to empty value.)
12654 IFS=" "" $as_nl"
12655
12656 # Find who we are. Look in the path if we contain no directory separator.
12657 as_myself=
12658 case $0 in #((
12659 *[\\/]* ) as_myself=$0 ;;
12660 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12661 for as_dir in $PATH
12662 do
12663 IFS=$as_save_IFS
12664 test -z "$as_dir" && as_dir=.
12665 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12666 done
12667 IFS=$as_save_IFS
12668
12669 ;;
12670 esac
12671 # We did not find ourselves, most probably we were run as `sh COMMAND'
12672 # in which case we are not to be found in the path.
12673 if test "x$as_myself" = x; then
12674 as_myself=$0
12675 fi
12676 if test ! -f "$as_myself"; then
12677 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12678 exit 1
12679 fi
12680
12681 # Unset variables that we do not need and which cause bugs (e.g. in
12682 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12683 # suppresses any "Segmentation fault" message there. '((' could
12684 # trigger a bug in pdksh 5.2.14.
12685 for as_var in BASH_ENV ENV MAIL MAILPATH
12686 do eval test x\${$as_var+set} = xset \
12687 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12688 done
12689 PS1='$ '
12690 PS2='> '
12691 PS4='+ '
12692
12693 # NLS nuisances.
12694 LC_ALL=C
12695 export LC_ALL
12696 LANGUAGE=C
12697 export LANGUAGE
12698
12699 # CDPATH.
12700 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12701
12702
12703 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12704 # ----------------------------------------
12705 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12706 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12707 # script with STATUS, using 1 if that was 0.
12708 as_fn_error ()
12709 {
12710 as_status=$1; test $as_status -eq 0 && as_status=1
12711 if test "$4"; then
12712 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12713 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12714 fi
12715 $as_echo "$as_me: error: $2" >&2
12716 as_fn_exit $as_status
12717 } # as_fn_error
12718
12719
12720 # as_fn_set_status STATUS
12721 # -----------------------
12722 # Set $? to STATUS, without forking.
12723 as_fn_set_status ()
12724 {
12725 return $1
12726 } # as_fn_set_status
12727
12728 # as_fn_exit STATUS
12729 # -----------------
12730 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12731 as_fn_exit ()
12732 {
12733 set +e
12734 as_fn_set_status $1
12735 exit $1
12736 } # as_fn_exit
12737
12738 # as_fn_unset VAR
12739 # ---------------
12740 # Portably unset VAR.
12741 as_fn_unset ()
12742 {
12743 { eval $1=; unset $1;}
12744 }
12745 as_unset=as_fn_unset
12746 # as_fn_append VAR VALUE
12747 # ----------------------
12748 # Append the text in VALUE to the end of the definition contained in VAR. Take
12749 # advantage of any shell optimizations that allow amortized linear growth over
12750 # repeated appends, instead of the typical quadratic growth present in naive
12751 # implementations.
12752 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12753 eval 'as_fn_append ()
12754 {
12755 eval $1+=\$2
12756 }'
12757 else
12758 as_fn_append ()
12759 {
12760 eval $1=\$$1\$2
12761 }
12762 fi # as_fn_append
12763
12764 # as_fn_arith ARG...
12765 # ------------------
12766 # Perform arithmetic evaluation on the ARGs, and store the result in the
12767 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12768 # must be portable across $(()) and expr.
12769 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12770 eval 'as_fn_arith ()
12771 {
12772 as_val=$(( $* ))
12773 }'
12774 else
12775 as_fn_arith ()
12776 {
12777 as_val=`expr "$@" || test $? -eq 1`
12778 }
12779 fi # as_fn_arith
12780
12781
12782 if expr a : '\(a\)' >/dev/null 2>&1 &&
12783 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12784 as_expr=expr
12785 else
12786 as_expr=false
12787 fi
12788
12789 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12790 as_basename=basename
12791 else
12792 as_basename=false
12793 fi
12794
12795 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12796 as_dirname=dirname
12797 else
12798 as_dirname=false
12799 fi
12800
12801 as_me=`$as_basename -- "$0" ||
12802 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12803 X"$0" : 'X\(//\)$' \| \
12804 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12805 $as_echo X/"$0" |
12806 sed '/^.*\/\([^/][^/]*\)\/*$/{
12807 s//\1/
12808 q
12809 }
12810 /^X\/\(\/\/\)$/{
12811 s//\1/
12812 q
12813 }
12814 /^X\/\(\/\).*/{
12815 s//\1/
12816 q
12817 }
12818 s/.*/./; q'`
12819
12820 # Avoid depending upon Character Ranges.
12821 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12822 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12823 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12824 as_cr_digits='0123456789'
12825 as_cr_alnum=$as_cr_Letters$as_cr_digits
12826
12827 ECHO_C= ECHO_N= ECHO_T=
12828 case `echo -n x` in #(((((
12829 -n*)
12830 case `echo 'xy\c'` in
12831 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12832 xy) ECHO_C='\c';;
12833 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12834 ECHO_T=' ';;
12835 esac;;
12836 *)
12837 ECHO_N='-n';;
12838 esac
12839
12840 rm -f conf$$ conf$$.exe conf$$.file
12841 if test -d conf$$.dir; then
12842 rm -f conf$$.dir/conf$$.file
12843 else
12844 rm -f conf$$.dir
12845 mkdir conf$$.dir 2>/dev/null
12846 fi
12847 if (echo >conf$$.file) 2>/dev/null; then
12848 if ln -s conf$$.file conf$$ 2>/dev/null; then
12849 as_ln_s='ln -s'
12850 # ... but there are two gotchas:
12851 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12852 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12853 # In both cases, we have to default to `cp -pR'.
12854 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12855 as_ln_s='cp -pR'
12856 elif ln conf$$.file conf$$ 2>/dev/null; then
12857 as_ln_s=ln
12858 else
12859 as_ln_s='cp -pR'
12860 fi
12861 else
12862 as_ln_s='cp -pR'
12863 fi
12864 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12865 rmdir conf$$.dir 2>/dev/null
12866
12867
12868 # as_fn_mkdir_p
12869 # -------------
12870 # Create "$as_dir" as a directory, including parents if necessary.
12871 as_fn_mkdir_p ()
12872 {
12873
12874 case $as_dir in #(
12875 -*) as_dir=./$as_dir;;
12876 esac
12877 test -d "$as_dir" || eval $as_mkdir_p || {
12878 as_dirs=
12879 while :; do
12880 case $as_dir in #(
12881 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12882 *) as_qdir=$as_dir;;
12883 esac
12884 as_dirs="'$as_qdir' $as_dirs"
12885 as_dir=`$as_dirname -- "$as_dir" ||
12886 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12887 X"$as_dir" : 'X\(//\)[^/]' \| \
12888 X"$as_dir" : 'X\(//\)$' \| \
12889 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12890 $as_echo X"$as_dir" |
12891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12892 s//\1/
12893 q
12894 }
12895 /^X\(\/\/\)[^/].*/{
12896 s//\1/
12897 q
12898 }
12899 /^X\(\/\/\)$/{
12900 s//\1/
12901 q
12902 }
12903 /^X\(\/\).*/{
12904 s//\1/
12905 q
12906 }
12907 s/.*/./; q'`
12908 test -d "$as_dir" && break
12909 done
12910 test -z "$as_dirs" || eval "mkdir $as_dirs"
12911 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12912
12913
12914 } # as_fn_mkdir_p
12915 if mkdir -p . 2>/dev/null; then
12916 as_mkdir_p='mkdir -p "$as_dir"'
12917 else
12918 test -d ./-p && rmdir ./-p
12919 as_mkdir_p=false
12920 fi
12921
12922
12923 # as_fn_executable_p FILE
12924 # -----------------------
12925 # Test if FILE is an executable regular file.
12926 as_fn_executable_p ()
12927 {
12928 test -f "$1" && test -x "$1"
12929 } # as_fn_executable_p
12930 as_test_x='test -x'
12931 as_executable_p=as_fn_executable_p
12932
12933 # Sed expression to map a string onto a valid CPP name.
12934 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12935
12936 # Sed expression to map a string onto a valid variable name.
12937 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12938
12939
12940 exec 6>&1
12941 ## ----------------------------------- ##
12942 ## Main body of $CONFIG_STATUS script. ##
12943 ## ----------------------------------- ##
12944 _ASEOF
12945 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12946
12947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12948 # Save the log message, to keep $0 and so on meaningful, and to
12949 # report actual input values of CONFIG_FILES etc. instead of their
12950 # values after options handling.
12951 ac_log="
12952 This file was extended by courierlogger $as_me 0.10, which was
12953 generated by GNU Autoconf 2.69. Invocation command line was
12954
12955 CONFIG_FILES = $CONFIG_FILES
12956 CONFIG_HEADERS = $CONFIG_HEADERS
12957 CONFIG_LINKS = $CONFIG_LINKS
12958 CONFIG_COMMANDS = $CONFIG_COMMANDS
12959 $ $0 $@
12960
12961 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12962 "
12963
12964 _ACEOF
12965
12966 case $ac_config_files in *"
12967 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12968 esac
12969
12970 case $ac_config_headers in *"
12971 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12972 esac
12973
12974
12975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12976 # Files that config.status was made for.
12977 config_files="$ac_config_files"
12978 config_headers="$ac_config_headers"
12979 config_commands="$ac_config_commands"
12980
12981 _ACEOF
12982
12983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12984 ac_cs_usage="\
12985 \`$as_me' instantiates files and other configuration actions
12986 from templates according to the current configuration. Unless the files
12987 and actions are specified as TAGs, all are instantiated by default.
12988
12989 Usage: $0 [OPTION]... [TAG]...
12990
12991 -h, --help print this help, then exit
12992 -V, --version print version number and configuration settings, then exit
12993 --config print configuration, then exit
12994 -q, --quiet, --silent
12995 do not print progress messages
12996 -d, --debug don't remove temporary files
12997 --recheck update $as_me by reconfiguring in the same conditions
12998 --file=FILE[:TEMPLATE]
12999 instantiate the configuration file FILE
13000 --header=FILE[:TEMPLATE]
13001 instantiate the configuration header FILE
13002
13003 Configuration files:
13004 $config_files
13005
13006 Configuration headers:
13007 $config_headers
13008
13009 Configuration commands:
13010 $config_commands
13011
13012 Report bugs to <courier-users@lists.sourceforge.net>."
13013
13014 _ACEOF
13015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13016 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13017 ac_cs_version="\\
13018 courierlogger config.status 0.10
13019 configured by $0, generated by GNU Autoconf 2.69,
13020 with options \\"\$ac_cs_config\\"
13021
13022 Copyright (C) 2012 Free Software Foundation, Inc.
13023 This config.status script is free software; the Free Software Foundation
13024 gives unlimited permission to copy, distribute and modify it."
13025
13026 ac_pwd='$ac_pwd'
13027 srcdir='$srcdir'
13028 INSTALL='$INSTALL'
13029 MKDIR_P='$MKDIR_P'
13030 AWK='$AWK'
13031 test -n "\$AWK" || AWK=awk
13032 _ACEOF
13033
13034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13035 # The default lists apply if the user does not specify any file.
13036 ac_need_defaults=:
13037 while test $# != 0
13038 do
13039 case $1 in
13040 --*=?*)
13041 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13042 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13043 ac_shift=:
13044 ;;
13045 --*=)
13046 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13047 ac_optarg=
13048 ac_shift=:
13049 ;;
13050 *)
13051 ac_option=$1
13052 ac_optarg=$2
13053 ac_shift=shift
13054 ;;
13055 esac
13056
13057 case $ac_option in
13058 # Handling of the options.
13059 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13060 ac_cs_recheck=: ;;
13061 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13062 $as_echo "$ac_cs_version"; exit ;;
13063 --config | --confi | --conf | --con | --co | --c )
13064 $as_echo "$ac_cs_config"; exit ;;
13065 --debug | --debu | --deb | --de | --d | -d )
13066 debug=: ;;
13067 --file | --fil | --fi | --f )
13068 $ac_shift
13069 case $ac_optarg in
13070 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13071 '') as_fn_error $? "missing file argument" ;;
13072 esac
13073 as_fn_append CONFIG_FILES " '$ac_optarg'"
13074 ac_need_defaults=false;;
13075 --header | --heade | --head | --hea )
13076 $ac_shift
13077 case $ac_optarg in
13078 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13079 esac
13080 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13081 ac_need_defaults=false;;
13082 --he | --h)
13083 # Conflict between --help and --header
13084 as_fn_error $? "ambiguous option: \`$1'
13085 Try \`$0 --help' for more information.";;
13086 --help | --hel | -h )
13087 $as_echo "$ac_cs_usage"; exit ;;
13088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13089 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13090 ac_cs_silent=: ;;
13091
13092 # This is an error.
13093 -*) as_fn_error $? "unrecognized option: \`$1'
13094 Try \`$0 --help' for more information." ;;
13095
13096 *) as_fn_append ac_config_targets " $1"
13097 ac_need_defaults=false ;;
13098
13099 esac
13100 shift
13101 done
13102
13103 ac_configure_extra_args=
13104
13105 if $ac_cs_silent; then
13106 exec 6>/dev/null
13107 ac_configure_extra_args="$ac_configure_extra_args --silent"
13108 fi
13109
13110 _ACEOF
13111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13112 if \$ac_cs_recheck; then
13113 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13114 shift
13115 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13116 CONFIG_SHELL='$SHELL'
13117 export CONFIG_SHELL
13118 exec "\$@"
13119 fi
13120
13121 _ACEOF
13122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13123 exec 5>>config.log
13124 {
13125 echo
13126 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13127 ## Running $as_me. ##
13128 _ASBOX
13129 $as_echo "$ac_log"
13130 } >&5
13131
13132 _ACEOF
13133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13134 #
13135 # INIT-COMMANDS
13136 #
13137 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13138
13139
13140 # The HP-UX ksh and POSIX shell print the target directory to stdout
13141 # if CDPATH is set.
13142 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13143
13144 sed_quote_subst='$sed_quote_subst'
13145 double_quote_subst='$double_quote_subst'
13146 delay_variable_subst='$delay_variable_subst'
13147 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13148 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13149 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13150 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13151 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13152 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13153 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13154 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13155 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13156 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13157 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13158 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13159 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13160 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13161 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13162 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13163 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13164 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13165 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13166 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13167 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13168 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13169 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13170 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13171 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13172 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13173 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13174 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13175 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13176 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13177 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13178 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13179 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13180 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13181 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13182 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13183 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13184 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13185 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13186 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13187 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13188 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13189 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13190 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13191 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13192 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13193 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13194 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13195 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13196 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13197 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13198 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13199 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13200 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13201 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13202 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13203 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13204 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13205 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"`'
13206 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13207 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13208 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13209 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13210 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13211 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13212 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13213 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13214 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13215 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13216 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13217 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13218 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13219 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13220 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13221 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13222 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13223 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13224 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13225 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13226 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13227 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13228 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13229 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13230 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13231 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13232 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13233 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13234 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13235 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13236 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13237 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13238 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13239 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13240 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13241 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13242 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13243 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13244 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13245 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13246 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13247 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13248 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13249 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13250 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13251 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13252 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13253 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13254 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13255 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13256 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13257 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13258 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13259 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13260 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13261 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13262 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13263 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13264 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13265 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13266 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13267 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13268 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13269 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13270 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13271 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13272 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13273 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13274 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13275 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13276 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13277 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13278 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13279 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13280 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13281 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13282
13283 LTCC='$LTCC'
13284 LTCFLAGS='$LTCFLAGS'
13285 compiler='$compiler_DEFAULT'
13286
13287 # A function that is used when there is no print builtin or printf.
13288 func_fallback_echo ()
13289 {
13290 eval 'cat <<_LTECHO_EOF
13291 \$1
13292 _LTECHO_EOF'
13293 }
13294
13295 # Quote evaled strings.
13296 for var in SHELL \
13297 ECHO \
13298 PATH_SEPARATOR \
13299 SED \
13300 GREP \
13301 EGREP \
13302 FGREP \
13303 LD \
13304 NM \
13305 LN_S \
13306 lt_SP2NL \
13307 lt_NL2SP \
13308 reload_flag \
13309 OBJDUMP \
13310 deplibs_check_method \
13311 file_magic_cmd \
13312 file_magic_glob \
13313 want_nocaseglob \
13314 DLLTOOL \
13315 sharedlib_from_linklib_cmd \
13316 AR \
13317 AR_FLAGS \
13318 archiver_list_spec \
13319 STRIP \
13320 RANLIB \
13321 CC \
13322 CFLAGS \
13323 compiler \
13324 lt_cv_sys_global_symbol_pipe \
13325 lt_cv_sys_global_symbol_to_cdecl \
13326 lt_cv_sys_global_symbol_to_import \
13327 lt_cv_sys_global_symbol_to_c_name_address \
13328 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13329 lt_cv_nm_interface \
13330 nm_file_list_spec \
13331 lt_cv_truncate_bin \
13332 lt_prog_compiler_no_builtin_flag \
13333 lt_prog_compiler_pic \
13334 lt_prog_compiler_wl \
13335 lt_prog_compiler_static \
13336 lt_cv_prog_compiler_c_o \
13337 need_locks \
13338 MANIFEST_TOOL \
13339 DSYMUTIL \
13340 NMEDIT \
13341 LIPO \
13342 OTOOL \
13343 OTOOL64 \
13344 shrext_cmds \
13345 export_dynamic_flag_spec \
13346 whole_archive_flag_spec \
13347 compiler_needs_object \
13348 with_gnu_ld \
13349 allow_undefined_flag \
13350 no_undefined_flag \
13351 hardcode_libdir_flag_spec \
13352 hardcode_libdir_separator \
13353 exclude_expsyms \
13354 include_expsyms \
13355 file_list_spec \
13356 variables_saved_for_relink \
13357 libname_spec \
13358 library_names_spec \
13359 soname_spec \
13360 install_override_mode \
13361 finish_eval \
13362 old_striplib \
13363 striplib; do
13364 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13365 *[\\\\\\\`\\"\\\$]*)
13366 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13367 ;;
13368 *)
13369 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13370 ;;
13371 esac
13372 done
13373
13374 # Double-quote double-evaled strings.
13375 for var in reload_cmds \
13376 old_postinstall_cmds \
13377 old_postuninstall_cmds \
13378 old_archive_cmds \
13379 extract_expsyms_cmds \
13380 old_archive_from_new_cmds \
13381 old_archive_from_expsyms_cmds \
13382 archive_cmds \
13383 archive_expsym_cmds \
13384 module_cmds \
13385 module_expsym_cmds \
13386 export_symbols_cmds \
13387 prelink_cmds \
13388 postlink_cmds \
13389 postinstall_cmds \
13390 postuninstall_cmds \
13391 finish_cmds \
13392 sys_lib_search_path_spec \
13393 configure_time_dlsearch_path \
13394 configure_time_lt_sys_library_path; do
13395 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13396 *[\\\\\\\`\\"\\\$]*)
13397 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13398 ;;
13399 *)
13400 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13401 ;;
13402 esac
13403 done
13404
13405 ac_aux_dir='$ac_aux_dir'
13406
13407 # See if we are running on zsh, and set the options that allow our
13408 # commands through without removal of \ escapes INIT.
13409 if test -n "\${ZSH_VERSION+set}"; then
13410 setopt NO_GLOB_SUBST
13411 fi
13412
13413
13414 PACKAGE='$PACKAGE'
13415 VERSION='$VERSION'
13416 RM='$RM'
13417 ofile='$ofile'
13418
13419
13420
13421
13422 _ACEOF
13423
13424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13425
13426 # Handling of arguments.
13427 for ac_config_target in $ac_config_targets
13428 do
13429 case $ac_config_target in
13430 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13431 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13432 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13433 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13434
13435 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13436 esac
13437 done
13438
13439
13440 # If the user did not use the arguments to specify the items to instantiate,
13441 # then the envvar interface is used. Set only those that are not.
13442 # We use the long form for the default assignment because of an extremely
13443 # bizarre bug on SunOS 4.1.3.
13444 if $ac_need_defaults; then
13445 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13446 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13447 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13448 fi
13449
13450 # Have a temporary directory for convenience. Make it in the build tree
13451 # simply because there is no reason against having it here, and in addition,
13452 # creating and moving files from /tmp can sometimes cause problems.
13453 # Hook for its removal unless debugging.
13454 # Note that there is a small window in which the directory will not be cleaned:
13455 # after its creation but before its name has been assigned to `$tmp'.
13456 $debug ||
13457 {
13458 tmp= ac_tmp=
13459 trap 'exit_status=$?
13460 : "${ac_tmp:=$tmp}"
13461 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13462 ' 0
13463 trap 'as_fn_exit 1' 1 2 13 15
13464 }
13465 # Create a (secure) tmp directory for tmp files.
13466
13467 {
13468 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13469 test -d "$tmp"
13470 } ||
13471 {
13472 tmp=./conf$$-$RANDOM
13473 (umask 077 && mkdir "$tmp")
13474 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13475 ac_tmp=$tmp
13476
13477 # Set up the scripts for CONFIG_FILES section.
13478 # No need to generate them if there are no CONFIG_FILES.
13479 # This happens for instance with `./config.status config.h'.
13480 if test -n "$CONFIG_FILES"; then
13481
13482
13483 ac_cr=`echo X | tr X '\015'`
13484 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13485 # But we know of no other shell where ac_cr would be empty at this
13486 # point, so we can use a bashism as a fallback.
13487 if test "x$ac_cr" = x; then
13488 eval ac_cr=\$\'\\r\'
13489 fi
13490 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13491 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13492 ac_cs_awk_cr='\\r'
13493 else
13494 ac_cs_awk_cr=$ac_cr
13495 fi
13496
13497 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13498 _ACEOF
13499
13500
13501 {
13502 echo "cat >conf$$subs.awk <<_ACEOF" &&
13503 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13504 echo "_ACEOF"
13505 } >conf$$subs.sh ||
13506 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13507 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13508 ac_delim='%!_!# '
13509 for ac_last_try in false false false false false :; do
13510 . ./conf$$subs.sh ||
13511 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13512
13513 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13514 if test $ac_delim_n = $ac_delim_num; then
13515 break
13516 elif $ac_last_try; then
13517 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13518 else
13519 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13520 fi
13521 done
13522 rm -f conf$$subs.sh
13523
13524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13525 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13526 _ACEOF
13527 sed -n '
13528 h
13529 s/^/S["/; s/!.*/"]=/
13530 p
13531 g
13532 s/^[^!]*!//
13533 :repl
13534 t repl
13535 s/'"$ac_delim"'$//
13536 t delim
13537 :nl
13538 h
13539 s/\(.\{148\}\)..*/\1/
13540 t more1
13541 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13542 p
13543 n
13544 b repl
13545 :more1
13546 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13547 p
13548 g
13549 s/.\{148\}//
13550 t nl
13551 :delim
13552 h
13553 s/\(.\{148\}\)..*/\1/
13554 t more2
13555 s/["\\]/\\&/g; s/^/"/; s/$/"/
13556 p
13557 b
13558 :more2
13559 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13560 p
13561 g
13562 s/.\{148\}//
13563 t delim
13564 ' <conf$$subs.awk | sed '
13565 /^[^""]/{
13566 N
13567 s/\n//
13568 }
13569 ' >>$CONFIG_STATUS || ac_write_fail=1
13570 rm -f conf$$subs.awk
13571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13572 _ACAWK
13573 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13574 for (key in S) S_is_set[key] = 1
13575 FS = "\a"
13576
13577 }
13578 {
13579 line = $ 0
13580 nfields = split(line, field, "@")
13581 substed = 0
13582 len = length(field[1])
13583 for (i = 2; i < nfields; i++) {
13584 key = field[i]
13585 keylen = length(key)
13586 if (S_is_set[key]) {
13587 value = S[key]
13588 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13589 len += length(value) + length(field[++i])
13590 substed = 1
13591 } else
13592 len += 1 + keylen
13593 }
13594
13595 print line
13596 }
13597
13598 _ACAWK
13599 _ACEOF
13600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13601 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13602 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13603 else
13604 cat
13605 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13606 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13607 _ACEOF
13608
13609 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13610 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13611 # trailing colons and then remove the whole line if VPATH becomes empty
13612 # (actually we leave an empty line to preserve line numbers).
13613 if test "x$srcdir" = x.; then
13614 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13615 h
13616 s///
13617 s/^/:/
13618 s/[ ]*$/:/
13619 s/:\$(srcdir):/:/g
13620 s/:\${srcdir}:/:/g
13621 s/:@srcdir@:/:/g
13622 s/^:*//
13623 s/:*$//
13624 x
13625 s/\(=[ ]*\).*/\1/
13626 G
13627 s/\n//
13628 s/^[^=]*=[ ]*$//
13629 }'
13630 fi
13631
13632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13633 fi # test -n "$CONFIG_FILES"
13634
13635 # Set up the scripts for CONFIG_HEADERS section.
13636 # No need to generate them if there are no CONFIG_HEADERS.
13637 # This happens for instance with `./config.status Makefile'.
13638 if test -n "$CONFIG_HEADERS"; then
13639 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13640 BEGIN {
13641 _ACEOF
13642
13643 # Transform confdefs.h into an awk script `defines.awk', embedded as
13644 # here-document in config.status, that substitutes the proper values into
13645 # config.h.in to produce config.h.
13646
13647 # Create a delimiter string that does not exist in confdefs.h, to ease
13648 # handling of long lines.
13649 ac_delim='%!_!# '
13650 for ac_last_try in false false :; do
13651 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13652 if test -z "$ac_tt"; then
13653 break
13654 elif $ac_last_try; then
13655 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13656 else
13657 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13658 fi
13659 done
13660
13661 # For the awk script, D is an array of macro values keyed by name,
13662 # likewise P contains macro parameters if any. Preserve backslash
13663 # newline sequences.
13664
13665 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13666 sed -n '
13667 s/.\{148\}/&'"$ac_delim"'/g
13668 t rset
13669 :rset
13670 s/^[ ]*#[ ]*define[ ][ ]*/ /
13671 t def
13672 d
13673 :def
13674 s/\\$//
13675 t bsnl
13676 s/["\\]/\\&/g
13677 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13678 D["\1"]=" \3"/p
13679 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13680 d
13681 :bsnl
13682 s/["\\]/\\&/g
13683 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13684 D["\1"]=" \3\\\\\\n"\\/p
13685 t cont
13686 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13687 t cont
13688 d
13689 :cont
13690 n
13691 s/.\{148\}/&'"$ac_delim"'/g
13692 t clear
13693 :clear
13694 s/\\$//
13695 t bsnlc
13696 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13697 d
13698 :bsnlc
13699 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13700 b cont
13701 ' <confdefs.h | sed '
13702 s/'"$ac_delim"'/"\\\
13703 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13704
13705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13706 for (key in D) D_is_set[key] = 1
13707 FS = "\a"
13708 }
13709 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13710 line = \$ 0
13711 split(line, arg, " ")
13712 if (arg[1] == "#") {
13713 defundef = arg[2]
13714 mac1 = arg[3]
13715 } else {
13716 defundef = substr(arg[1], 2)
13717 mac1 = arg[2]
13718 }
13719 split(mac1, mac2, "(") #)
13720 macro = mac2[1]
13721 prefix = substr(line, 1, index(line, defundef) - 1)
13722 if (D_is_set[macro]) {
13723 # Preserve the white space surrounding the "#".
13724 print prefix "define", macro P[macro] D[macro]
13725 next
13726 } else {
13727 # Replace #undef with comments. This is necessary, for example,
13728 # in the case of _POSIX_SOURCE, which is predefined and required
13729 # on some systems where configure will not decide to define it.
13730 if (defundef == "undef") {
13731 print "/*", prefix defundef, macro, "*/"
13732 next
13733 }
13734 }
13735 }
13736 { print }
13737 _ACAWK
13738 _ACEOF
13739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13740 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13741 fi # test -n "$CONFIG_HEADERS"
13742
13743
13744 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13745 shift
13746 for ac_tag
13747 do
13748 case $ac_tag in
13749 :[FHLC]) ac_mode=$ac_tag; continue;;
13750 esac
13751 case $ac_mode$ac_tag in
13752 :[FHL]*:*);;
13753 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13754 :[FH]-) ac_tag=-:-;;
13755 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13756 esac
13757 ac_save_IFS=$IFS
13758 IFS=:
13759 set x $ac_tag
13760 IFS=$ac_save_IFS
13761 shift
13762 ac_file=$1
13763 shift
13764
13765 case $ac_mode in
13766 :L) ac_source=$1;;
13767 :[FH])
13768 ac_file_inputs=
13769 for ac_f
13770 do
13771 case $ac_f in
13772 -) ac_f="$ac_tmp/stdin";;
13773 *) # Look for the file first in the build tree, then in the source tree
13774 # (if the path is not absolute). The absolute path cannot be DOS-style,
13775 # because $ac_f cannot contain `:'.
13776 test -f "$ac_f" ||
13777 case $ac_f in
13778 [\\/$]*) false;;
13779 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13780 esac ||
13781 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13782 esac
13783 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13784 as_fn_append ac_file_inputs " '$ac_f'"
13785 done
13786
13787 # Let's still pretend it is `configure' which instantiates (i.e., don't
13788 # use $as_me), people would be surprised to read:
13789 # /* config.h. Generated by config.status. */
13790 configure_input='Generated from '`
13791 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13792 `' by configure.'
13793 if test x"$ac_file" != x-; then
13794 configure_input="$ac_file. $configure_input"
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13796 $as_echo "$as_me: creating $ac_file" >&6;}
13797 fi
13798 # Neutralize special characters interpreted by sed in replacement strings.
13799 case $configure_input in #(
13800 *\&* | *\|* | *\\* )
13801 ac_sed_conf_input=`$as_echo "$configure_input" |
13802 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13803 *) ac_sed_conf_input=$configure_input;;
13804 esac
13805
13806 case $ac_tag in
13807 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13808 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13809 esac
13810 ;;
13811 esac
13812
13813 ac_dir=`$as_dirname -- "$ac_file" ||
13814 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13815 X"$ac_file" : 'X\(//\)[^/]' \| \
13816 X"$ac_file" : 'X\(//\)$' \| \
13817 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13818 $as_echo X"$ac_file" |
13819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13820 s//\1/
13821 q
13822 }
13823 /^X\(\/\/\)[^/].*/{
13824 s//\1/
13825 q
13826 }
13827 /^X\(\/\/\)$/{
13828 s//\1/
13829 q
13830 }
13831 /^X\(\/\).*/{
13832 s//\1/
13833 q
13834 }
13835 s/.*/./; q'`
13836 as_dir="$ac_dir"; as_fn_mkdir_p
13837 ac_builddir=.
13838
13839 case "$ac_dir" in
13840 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13841 *)
13842 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13843 # A ".." for each directory in $ac_dir_suffix.
13844 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13845 case $ac_top_builddir_sub in
13846 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13847 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13848 esac ;;
13849 esac
13850 ac_abs_top_builddir=$ac_pwd
13851 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13852 # for backward compatibility:
13853 ac_top_builddir=$ac_top_build_prefix
13854
13855 case $srcdir in
13856 .) # We are building in place.
13857 ac_srcdir=.
13858 ac_top_srcdir=$ac_top_builddir_sub
13859 ac_abs_top_srcdir=$ac_pwd ;;
13860 [\\/]* | ?:[\\/]* ) # Absolute name.
13861 ac_srcdir=$srcdir$ac_dir_suffix;
13862 ac_top_srcdir=$srcdir
13863 ac_abs_top_srcdir=$srcdir ;;
13864 *) # Relative name.
13865 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13866 ac_top_srcdir=$ac_top_build_prefix$srcdir
13867 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13868 esac
13869 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13870
13871
13872 case $ac_mode in
13873 :F)
13874 #
13875 # CONFIG_FILE
13876 #
13877
13878 case $INSTALL in
13879 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13880 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13881 esac
13882 ac_MKDIR_P=$MKDIR_P
13883 case $MKDIR_P in
13884 [\\/$]* | ?:[\\/]* ) ;;
13885 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13886 esac
13887 _ACEOF
13888
13889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13890 # If the template does not know about datarootdir, expand it.
13891 # FIXME: This hack should be removed a few years after 2.60.
13892 ac_datarootdir_hack=; ac_datarootdir_seen=
13893 ac_sed_dataroot='
13894 /datarootdir/ {
13895 p
13896 q
13897 }
13898 /@datadir@/p
13899 /@docdir@/p
13900 /@infodir@/p
13901 /@localedir@/p
13902 /@mandir@/p'
13903 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13904 *datarootdir*) ac_datarootdir_seen=yes;;
13905 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13907 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13908 _ACEOF
13909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13910 ac_datarootdir_hack='
13911 s&@datadir@&$datadir&g
13912 s&@docdir@&$docdir&g
13913 s&@infodir@&$infodir&g
13914 s&@localedir@&$localedir&g
13915 s&@mandir@&$mandir&g
13916 s&\\\${datarootdir}&$datarootdir&g' ;;
13917 esac
13918 _ACEOF
13919
13920 # Neutralize VPATH when `$srcdir' = `.'.
13921 # Shell code in configure.ac might set extrasub.
13922 # FIXME: do we really want to maintain this feature?
13923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13924 ac_sed_extra="$ac_vpsub
13925 $extrasub
13926 _ACEOF
13927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13928 :t
13929 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13930 s|@configure_input@|$ac_sed_conf_input|;t t
13931 s&@top_builddir@&$ac_top_builddir_sub&;t t
13932 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13933 s&@srcdir@&$ac_srcdir&;t t
13934 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13935 s&@top_srcdir@&$ac_top_srcdir&;t t
13936 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13937 s&@builddir@&$ac_builddir&;t t
13938 s&@abs_builddir@&$ac_abs_builddir&;t t
13939 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13940 s&@INSTALL@&$ac_INSTALL&;t t
13941 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13942 $ac_datarootdir_hack
13943 "
13944 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13945 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13946
13947 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13948 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13949 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13950 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13952 which seems to be undefined. Please make sure it is defined" >&5
13953 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13954 which seems to be undefined. Please make sure it is defined" >&2;}
13955
13956 rm -f "$ac_tmp/stdin"
13957 case $ac_file in
13958 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13959 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13960 esac \
13961 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13962 ;;
13963 :H)
13964 #
13965 # CONFIG_HEADER
13966 #
13967 if test x"$ac_file" != x-; then
13968 {
13969 $as_echo "/* $configure_input */" \
13970 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13971 } >"$ac_tmp/config.h" \
13972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13973 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13975 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13976 else
13977 rm -f "$ac_file"
13978 mv "$ac_tmp/config.h" "$ac_file" \
13979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13980 fi
13981 else
13982 $as_echo "/* $configure_input */" \
13983 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13984 || as_fn_error $? "could not create -" "$LINENO" 5
13985 fi
13986 # Compute "$ac_file"'s index in $config_headers.
13987 _am_arg="$ac_file"
13988 _am_stamp_count=1
13989 for _am_header in $config_headers :; do
13990 case $_am_header in
13991 $_am_arg | $_am_arg:* )
13992 break ;;
13993 * )
13994 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13995 esac
13996 done
13997 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13998 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13999 X"$_am_arg" : 'X\(//\)[^/]' \| \
14000 X"$_am_arg" : 'X\(//\)$' \| \
14001 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14002 $as_echo X"$_am_arg" |
14003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14004 s//\1/
14005 q
14006 }
14007 /^X\(\/\/\)[^/].*/{
14008 s//\1/
14009 q
14010 }
14011 /^X\(\/\/\)$/{
14012 s//\1/
14013 q
14014 }
14015 /^X\(\/\).*/{
14016 s//\1/
14017 q
14018 }
14019 s/.*/./; q'`/stamp-h$_am_stamp_count
14020 ;;
14021
14022 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14023 $as_echo "$as_me: executing $ac_file commands" >&6;}
14024 ;;
14025 esac
14026
14027
14028 case $ac_file$ac_mode in
14029 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14030 # Older Autoconf quotes --file arguments for eval, but not when files
14031 # are listed without --file. Let's play safe and only enable the eval
14032 # if we detect the quoting.
14033 case $CONFIG_FILES in
14034 *\'*) eval set x "$CONFIG_FILES" ;;
14035 *) set x $CONFIG_FILES ;;
14036 esac
14037 shift
14038 for mf
14039 do
14040 # Strip MF so we end up with the name of the file.
14041 mf=`echo "$mf" | sed -e 's/:.*$//'`
14042 # Check whether this is an Automake generated Makefile or not.
14043 # We used to match only the files named 'Makefile.in', but
14044 # some people rename them; so instead we look at the file content.
14045 # Grep'ing the first line is not enough: some people post-process
14046 # each Makefile.in and add a new line on top of each file to say so.
14047 # Grep'ing the whole file is not good either: AIX grep has a line
14048 # limit of 2048, but all sed's we know have understand at least 4000.
14049 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14050 dirpart=`$as_dirname -- "$mf" ||
14051 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14052 X"$mf" : 'X\(//\)[^/]' \| \
14053 X"$mf" : 'X\(//\)$' \| \
14054 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14055 $as_echo X"$mf" |
14056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14057 s//\1/
14058 q
14059 }
14060 /^X\(\/\/\)[^/].*/{
14061 s//\1/
14062 q
14063 }
14064 /^X\(\/\/\)$/{
14065 s//\1/
14066 q
14067 }
14068 /^X\(\/\).*/{
14069 s//\1/
14070 q
14071 }
14072 s/.*/./; q'`
14073 else
14074 continue
14075 fi
14076 # Extract the definition of DEPDIR, am__include, and am__quote
14077 # from the Makefile without running 'make'.
14078 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14079 test -z "$DEPDIR" && continue
14080 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14081 test -z "$am__include" && continue
14082 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14083 # Find all dependency output files, they are included files with
14084 # $(DEPDIR) in their names. We invoke sed twice because it is the
14085 # simplest approach to changing $(DEPDIR) to its actual value in the
14086 # expansion.
14087 for file in `sed -n "
14088 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14089 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14090 # Make sure the directory exists.
14091 test -f "$dirpart/$file" && continue
14092 fdir=`$as_dirname -- "$file" ||
14093 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14094 X"$file" : 'X\(//\)[^/]' \| \
14095 X"$file" : 'X\(//\)$' \| \
14096 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14097 $as_echo X"$file" |
14098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14099 s//\1/
14100 q
14101 }
14102 /^X\(\/\/\)[^/].*/{
14103 s//\1/
14104 q
14105 }
14106 /^X\(\/\/\)$/{
14107 s//\1/
14108 q
14109 }
14110 /^X\(\/\).*/{
14111 s//\1/
14112 q
14113 }
14114 s/.*/./; q'`
14115 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14116 # echo "creating $dirpart/$file"
14117 echo '# dummy' > "$dirpart/$file"
14118 done
14119 done
14120 }
14121 ;;
14122 "libtool":C)
14123
14124 # See if we are running on zsh, and set the options that allow our
14125 # commands through without removal of \ escapes.
14126 if test -n "${ZSH_VERSION+set}"; then
14127 setopt NO_GLOB_SUBST
14128 fi
14129
14130 cfgfile=${ofile}T
14131 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14132 $RM "$cfgfile"
14133
14134 cat <<_LT_EOF >> "$cfgfile"
14135 #! $SHELL
14136 # Generated automatically by $as_me ($PACKAGE) $VERSION
14137 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14138 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14139
14140 # Provide generalized library-building support services.
14141 # Written by Gordon Matzigkeit, 1996
14142
14143 # Copyright (C) 2014 Free Software Foundation, Inc.
14144 # This is free software; see the source for copying conditions. There is NO
14145 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14146
14147 # GNU Libtool is free software; you can redistribute it and/or modify
14148 # it under the terms of the GNU General Public License as published by
14149 # the Free Software Foundation; either version 2 of of the License, or
14150 # (at your option) any later version.
14151 #
14152 # As a special exception to the GNU General Public License, if you
14153 # distribute this file as part of a program or library that is built
14154 # using GNU Libtool, you may include this file under the same
14155 # distribution terms that you use for the rest of that program.
14156 #
14157 # GNU Libtool is distributed in the hope that it will be useful, but
14158 # WITHOUT ANY WARRANTY; without even the implied warranty of
14159 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14160 # GNU General Public License for more details.
14161 #
14162 # You should have received a copy of the GNU General Public License
14163 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14164
14165
14166 # The names of the tagged configurations supported by this script.
14167 available_tags=''
14168
14169 # Configured defaults for sys_lib_dlsearch_path munging.
14170 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14171
14172 # ### BEGIN LIBTOOL CONFIG
14173
14174 # Which release of libtool.m4 was used?
14175 macro_version=$macro_version
14176 macro_revision=$macro_revision
14177
14178 # Whether or not to build shared libraries.
14179 build_libtool_libs=$enable_shared
14180
14181 # Whether or not to build static libraries.
14182 build_old_libs=$enable_static
14183
14184 # What type of objects to build.
14185 pic_mode=$pic_mode
14186
14187 # Whether or not to optimize for fast installation.
14188 fast_install=$enable_fast_install
14189
14190 # Shared archive member basename,for filename based shared library versioning on AIX.
14191 shared_archive_member_spec=$shared_archive_member_spec
14192
14193 # Shell to use when invoking shell scripts.
14194 SHELL=$lt_SHELL
14195
14196 # An echo program that protects backslashes.
14197 ECHO=$lt_ECHO
14198
14199 # The PATH separator for the build system.
14200 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14201
14202 # The host system.
14203 host_alias=$host_alias
14204 host=$host
14205 host_os=$host_os
14206
14207 # The build system.
14208 build_alias=$build_alias
14209 build=$build
14210 build_os=$build_os
14211
14212 # A sed program that does not truncate output.
14213 SED=$lt_SED
14214
14215 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14216 Xsed="\$SED -e 1s/^X//"
14217
14218 # A grep program that handles long lines.
14219 GREP=$lt_GREP
14220
14221 # An ERE matcher.
14222 EGREP=$lt_EGREP
14223
14224 # A literal string matcher.
14225 FGREP=$lt_FGREP
14226
14227 # A BSD- or MS-compatible name lister.
14228 NM=$lt_NM
14229
14230 # Whether we need soft or hard links.
14231 LN_S=$lt_LN_S
14232
14233 # What is the maximum length of a command?
14234 max_cmd_len=$max_cmd_len
14235
14236 # Object file suffix (normally "o").
14237 objext=$ac_objext
14238
14239 # Executable file suffix (normally "").
14240 exeext=$exeext
14241
14242 # whether the shell understands "unset".
14243 lt_unset=$lt_unset
14244
14245 # turn spaces into newlines.
14246 SP2NL=$lt_lt_SP2NL
14247
14248 # turn newlines into spaces.
14249 NL2SP=$lt_lt_NL2SP
14250
14251 # convert \$build file names to \$host format.
14252 to_host_file_cmd=$lt_cv_to_host_file_cmd
14253
14254 # convert \$build files to toolchain format.
14255 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14256
14257 # An object symbol dumper.
14258 OBJDUMP=$lt_OBJDUMP
14259
14260 # Method to check whether dependent libraries are shared objects.
14261 deplibs_check_method=$lt_deplibs_check_method
14262
14263 # Command to use when deplibs_check_method = "file_magic".
14264 file_magic_cmd=$lt_file_magic_cmd
14265
14266 # How to find potential files when deplibs_check_method = "file_magic".
14267 file_magic_glob=$lt_file_magic_glob
14268
14269 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14270 want_nocaseglob=$lt_want_nocaseglob
14271
14272 # DLL creation program.
14273 DLLTOOL=$lt_DLLTOOL
14274
14275 # Command to associate shared and link libraries.
14276 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14277
14278 # The archiver.
14279 AR=$lt_AR
14280
14281 # Flags to create an archive.
14282 AR_FLAGS=$lt_AR_FLAGS
14283
14284 # How to feed a file listing to the archiver.
14285 archiver_list_spec=$lt_archiver_list_spec
14286
14287 # A symbol stripping program.
14288 STRIP=$lt_STRIP
14289
14290 # Commands used to install an old-style archive.
14291 RANLIB=$lt_RANLIB
14292 old_postinstall_cmds=$lt_old_postinstall_cmds
14293 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14294
14295 # Whether to use a lock for old archive extraction.
14296 lock_old_archive_extraction=$lock_old_archive_extraction
14297
14298 # A C compiler.
14299 LTCC=$lt_CC
14300
14301 # LTCC compiler flags.
14302 LTCFLAGS=$lt_CFLAGS
14303
14304 # Take the output of nm and produce a listing of raw symbols and C names.
14305 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14306
14307 # Transform the output of nm in a proper C declaration.
14308 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14309
14310 # Transform the output of nm into a list of symbols to manually relocate.
14311 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14312
14313 # Transform the output of nm in a C name address pair.
14314 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14315
14316 # Transform the output of nm in a C name address pair when lib prefix is needed.
14317 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14318
14319 # The name lister interface.
14320 nm_interface=$lt_lt_cv_nm_interface
14321
14322 # Specify filename containing input files for \$NM.
14323 nm_file_list_spec=$lt_nm_file_list_spec
14324
14325 # The root where to search for dependent libraries,and where our libraries should be installed.
14326 lt_sysroot=$lt_sysroot
14327
14328 # Command to truncate a binary pipe.
14329 lt_truncate_bin=$lt_lt_cv_truncate_bin
14330
14331 # The name of the directory that contains temporary libtool files.
14332 objdir=$objdir
14333
14334 # Used to examine libraries when file_magic_cmd begins with "file".
14335 MAGIC_CMD=$MAGIC_CMD
14336
14337 # Must we lock files when doing compilation?
14338 need_locks=$lt_need_locks
14339
14340 # Manifest tool.
14341 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14342
14343 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14344 DSYMUTIL=$lt_DSYMUTIL
14345
14346 # Tool to change global to local symbols on Mac OS X.
14347 NMEDIT=$lt_NMEDIT
14348
14349 # Tool to manipulate fat objects and archives on Mac OS X.
14350 LIPO=$lt_LIPO
14351
14352 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14353 OTOOL=$lt_OTOOL
14354
14355 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14356 OTOOL64=$lt_OTOOL64
14357
14358 # Old archive suffix (normally "a").
14359 libext=$libext
14360
14361 # Shared library suffix (normally ".so").
14362 shrext_cmds=$lt_shrext_cmds
14363
14364 # The commands to extract the exported symbol list from a shared archive.
14365 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14366
14367 # Variables whose values should be saved in libtool wrapper scripts and
14368 # restored at link time.
14369 variables_saved_for_relink=$lt_variables_saved_for_relink
14370
14371 # Do we need the "lib" prefix for modules?
14372 need_lib_prefix=$need_lib_prefix
14373
14374 # Do we need a version for libraries?
14375 need_version=$need_version
14376
14377 # Library versioning type.
14378 version_type=$version_type
14379
14380 # Shared library runtime path variable.
14381 runpath_var=$runpath_var
14382
14383 # Shared library path variable.
14384 shlibpath_var=$shlibpath_var
14385
14386 # Is shlibpath searched before the hard-coded library search path?
14387 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14388
14389 # Format of library name prefix.
14390 libname_spec=$lt_libname_spec
14391
14392 # List of archive names. First name is the real one, the rest are links.
14393 # The last name is the one that the linker finds with -lNAME
14394 library_names_spec=$lt_library_names_spec
14395
14396 # The coded name of the library, if different from the real name.
14397 soname_spec=$lt_soname_spec
14398
14399 # Permission mode override for installation of shared libraries.
14400 install_override_mode=$lt_install_override_mode
14401
14402 # Command to use after installation of a shared archive.
14403 postinstall_cmds=$lt_postinstall_cmds
14404
14405 # Command to use after uninstallation of a shared archive.
14406 postuninstall_cmds=$lt_postuninstall_cmds
14407
14408 # Commands used to finish a libtool library installation in a directory.
14409 finish_cmds=$lt_finish_cmds
14410
14411 # As "finish_cmds", except a single script fragment to be evaled but
14412 # not shown.
14413 finish_eval=$lt_finish_eval
14414
14415 # Whether we should hardcode library paths into libraries.
14416 hardcode_into_libs=$hardcode_into_libs
14417
14418 # Compile-time system search path for libraries.
14419 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14420
14421 # Detected run-time system search path for libraries.
14422 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14423
14424 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14425 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14426
14427 # Whether dlopen is supported.
14428 dlopen_support=$enable_dlopen
14429
14430 # Whether dlopen of programs is supported.
14431 dlopen_self=$enable_dlopen_self
14432
14433 # Whether dlopen of statically linked programs is supported.
14434 dlopen_self_static=$enable_dlopen_self_static
14435
14436 # Commands to strip libraries.
14437 old_striplib=$lt_old_striplib
14438 striplib=$lt_striplib
14439
14440
14441 # The linker used to build libraries.
14442 LD=$lt_LD
14443
14444 # How to create reloadable object files.
14445 reload_flag=$lt_reload_flag
14446 reload_cmds=$lt_reload_cmds
14447
14448 # Commands used to build an old-style archive.
14449 old_archive_cmds=$lt_old_archive_cmds
14450
14451 # A language specific compiler.
14452 CC=$lt_compiler
14453
14454 # Is the compiler the GNU compiler?
14455 with_gcc=$GCC
14456
14457 # Compiler flag to turn off builtin functions.
14458 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14459
14460 # Additional compiler flags for building library objects.
14461 pic_flag=$lt_lt_prog_compiler_pic
14462
14463 # How to pass a linker flag through the compiler.
14464 wl=$lt_lt_prog_compiler_wl
14465
14466 # Compiler flag to prevent dynamic linking.
14467 link_static_flag=$lt_lt_prog_compiler_static
14468
14469 # Does compiler simultaneously support -c and -o options?
14470 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14471
14472 # Whether or not to add -lc for building shared libraries.
14473 build_libtool_need_lc=$archive_cmds_need_lc
14474
14475 # Whether or not to disallow shared libs when runtime libs are static.
14476 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14477
14478 # Compiler flag to allow reflexive dlopens.
14479 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14480
14481 # Compiler flag to generate shared objects directly from archives.
14482 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14483
14484 # Whether the compiler copes with passing no objects directly.
14485 compiler_needs_object=$lt_compiler_needs_object
14486
14487 # Create an old-style archive from a shared archive.
14488 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14489
14490 # Create a temporary old-style archive to link instead of a shared archive.
14491 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14492
14493 # Commands used to build a shared archive.
14494 archive_cmds=$lt_archive_cmds
14495 archive_expsym_cmds=$lt_archive_expsym_cmds
14496
14497 # Commands used to build a loadable module if different from building
14498 # a shared archive.
14499 module_cmds=$lt_module_cmds
14500 module_expsym_cmds=$lt_module_expsym_cmds
14501
14502 # Whether we are building with GNU ld or not.
14503 with_gnu_ld=$lt_with_gnu_ld
14504
14505 # Flag that allows shared libraries with undefined symbols to be built.
14506 allow_undefined_flag=$lt_allow_undefined_flag
14507
14508 # Flag that enforces no undefined symbols.
14509 no_undefined_flag=$lt_no_undefined_flag
14510
14511 # Flag to hardcode \$libdir into a binary during linking.
14512 # This must work even if \$libdir does not exist
14513 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14514
14515 # Whether we need a single "-rpath" flag with a separated argument.
14516 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14517
14518 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14519 # DIR into the resulting binary.
14520 hardcode_direct=$hardcode_direct
14521
14522 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14523 # DIR into the resulting binary and the resulting library dependency is
14524 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14525 # library is relocated.
14526 hardcode_direct_absolute=$hardcode_direct_absolute
14527
14528 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14529 # into the resulting binary.
14530 hardcode_minus_L=$hardcode_minus_L
14531
14532 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14533 # into the resulting binary.
14534 hardcode_shlibpath_var=$hardcode_shlibpath_var
14535
14536 # Set to "yes" if building a shared library automatically hardcodes DIR
14537 # into the library and all subsequent libraries and executables linked
14538 # against it.
14539 hardcode_automatic=$hardcode_automatic
14540
14541 # Set to yes if linker adds runtime paths of dependent libraries
14542 # to runtime path list.
14543 inherit_rpath=$inherit_rpath
14544
14545 # Whether libtool must link a program against all its dependency libraries.
14546 link_all_deplibs=$link_all_deplibs
14547
14548 # Set to "yes" if exported symbols are required.
14549 always_export_symbols=$always_export_symbols
14550
14551 # The commands to list exported symbols.
14552 export_symbols_cmds=$lt_export_symbols_cmds
14553
14554 # Symbols that should not be listed in the preloaded symbols.
14555 exclude_expsyms=$lt_exclude_expsyms
14556
14557 # Symbols that must always be exported.
14558 include_expsyms=$lt_include_expsyms
14559
14560 # Commands necessary for linking programs (against libraries) with templates.
14561 prelink_cmds=$lt_prelink_cmds
14562
14563 # Commands necessary for finishing linking programs.
14564 postlink_cmds=$lt_postlink_cmds
14565
14566 # Specify filename containing input files.
14567 file_list_spec=$lt_file_list_spec
14568
14569 # How to hardcode a shared library path into an executable.
14570 hardcode_action=$hardcode_action
14571
14572 # ### END LIBTOOL CONFIG
14573
14574 _LT_EOF
14575
14576 cat <<'_LT_EOF' >> "$cfgfile"
14577
14578 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14579
14580 # func_munge_path_list VARIABLE PATH
14581 # -----------------------------------
14582 # VARIABLE is name of variable containing _space_ separated list of
14583 # directories to be munged by the contents of PATH, which is string
14584 # having a format:
14585 # "DIR[:DIR]:"
14586 # string "DIR[ DIR]" will be prepended to VARIABLE
14587 # ":DIR[:DIR]"
14588 # string "DIR[ DIR]" will be appended to VARIABLE
14589 # "DIRP[:DIRP]::[DIRA:]DIRA"
14590 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14591 # "DIRA[ DIRA]" will be appended to VARIABLE
14592 # "DIR[:DIR]"
14593 # VARIABLE will be replaced by "DIR[ DIR]"
14594 func_munge_path_list ()
14595 {
14596 case x$2 in
14597 x)
14598 ;;
14599 *:)
14600 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14601 ;;
14602 x:*)
14603 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14604 ;;
14605 *::*)
14606 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14607 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14608 ;;
14609 *)
14610 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14611 ;;
14612 esac
14613 }
14614
14615
14616 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14617 func_cc_basename ()
14618 {
14619 for cc_temp in $*""; do
14620 case $cc_temp in
14621 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14622 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14623 \-*) ;;
14624 *) break;;
14625 esac
14626 done
14627 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14628 }
14629
14630
14631 # ### END FUNCTIONS SHARED WITH CONFIGURE
14632
14633 _LT_EOF
14634
14635 case $host_os in
14636 aix3*)
14637 cat <<\_LT_EOF >> "$cfgfile"
14638 # AIX sometimes has problems with the GCC collect2 program. For some
14639 # reason, if we set the COLLECT_NAMES environment variable, the problems
14640 # vanish in a puff of smoke.
14641 if test set != "${COLLECT_NAMES+set}"; then
14642 COLLECT_NAMES=
14643 export COLLECT_NAMES
14644 fi
14645 _LT_EOF
14646 ;;
14647 esac
14648
14649
14650 ltmain=$ac_aux_dir/ltmain.sh
14651
14652
14653 # We use sed instead of cat because bash on DJGPP gets confused if
14654 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14655 # text mode, it properly converts lines to CR/LF. This bash problem
14656 # is reportedly fixed, but why not run on old versions too?
14657 sed '$q' "$ltmain" >> "$cfgfile" \
14658 || (rm -f "$cfgfile"; exit 1)
14659
14660 mv -f "$cfgfile" "$ofile" ||
14661 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14662 chmod +x "$ofile"
14663
14664 ;;
14665
14666 esac
14667 done # for ac_tag
14668
14669
14670 as_fn_exit 0
14671 _ACEOF
14672 ac_clean_files=$ac_clean_files_save
14673
14674 test $ac_write_fail = 0 ||
14675 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14676
14677
14678 # configure is writing to config.log, and then calls config.status.
14679 # config.status does its own redirection, appending to config.log.
14680 # Unfortunately, on DOS this fails, as config.log is still kept open
14681 # by configure, so config.status won't be able to write to it; its
14682 # output is simply discarded. So we exec the FD to /dev/null,
14683 # effectively closing config.log, so it can be properly (re)opened and
14684 # appended to by config.status. When coming back to configure, we
14685 # need to make the FD available again.
14686 if test "$no_create" != yes; then
14687 ac_cs_success=:
14688 ac_config_status_args=
14689 test "$silent" = yes &&
14690 ac_config_status_args="$ac_config_status_args --quiet"
14691 exec 5>/dev/null
14692 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14693 exec 5>>config.log
14694 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14695 # would make configure fail if this is the last instruction.
14696 $ac_cs_success || as_fn_exit 1
14697 fi
14698 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14700 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14701 fi
14702