Imported Upstream version 0.66.1
[hcoop/debian/courier-authlib.git] / libs / liblock / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for liblock 0.60.
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='liblock'
592 PACKAGE_TARNAME='liblock'
593 PACKAGE_VERSION='0.60'
594 PACKAGE_STRING='liblock 0.60'
595 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596 PACKAGE_URL=''
597
598 ac_unique_file="liblock.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 HAVE_SGML_FALSE
640 HAVE_SGML_TRUE
641 USE_LOCKF_FALSE
642 USE_LOCKF_TRUE
643 USE_FLOCK_FALSE
644 USE_FLOCK_TRUE
645 USE_FCNTL_FALSE
646 USE_FCNTL_TRUE
647 CPP
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 MANIFEST_TOOL
654 RANLIB
655 ac_ct_AR
656 AR
657 DLLTOOL
658 OBJDUMP
659 NM
660 ac_ct_DUMPBIN
661 DUMPBIN
662 LD
663 FGREP
664 EGREP
665 GREP
666 SED
667 host_os
668 host_vendor
669 host_cpu
670 host
671 build_os
672 build_vendor
673 build_cpu
674 build
675 LIBTOOL
676 LN_S
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 AM_BACKSLASH
695 AM_DEFAULT_VERBOSITY
696 AM_DEFAULT_V
697 AM_V
698 am__untar
699 am__tar
700 AMTAR
701 am__leading_dot
702 SET_MAKE
703 AWK
704 mkdir_p
705 MKDIR_P
706 INSTALL_STRIP_PROGRAM
707 STRIP
708 install_sh
709 MAKEINFO
710 AUTOHEADER
711 AUTOMAKE
712 AUTOCONF
713 ACLOCAL
714 VERSION
715 PACKAGE
716 CYGPATH_W
717 am__isrc
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_silent_rules
763 enable_dependency_tracking
764 enable_shared
765 enable_static
766 with_pic
767 enable_fast_install
768 with_gnu_ld
769 with_sysroot
770 enable_libtool_lock
771 enable_largefile
772 with_locking_method
773 '
774 ac_precious_vars='build_alias
775 host_alias
776 target_alias
777 CC
778 CFLAGS
779 LDFLAGS
780 LIBS
781 CPPFLAGS
782 CPP'
783
784
785 # Initialize some variables set by options.
786 ac_init_help=
787 ac_init_version=false
788 ac_unrecognized_opts=
789 ac_unrecognized_sep=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
792 cache_file=/dev/null
793 exec_prefix=NONE
794 no_create=
795 no_recursion=
796 prefix=NONE
797 program_prefix=NONE
798 program_suffix=NONE
799 program_transform_name=s,x,x,
800 silent=
801 site=
802 srcdir=
803 verbose=
804 x_includes=NONE
805 x_libraries=NONE
806
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir='${exec_prefix}/bin'
814 sbindir='${exec_prefix}/sbin'
815 libexecdir='${exec_prefix}/libexec'
816 datarootdir='${prefix}/share'
817 datadir='${datarootdir}'
818 sysconfdir='${prefix}/etc'
819 sharedstatedir='${prefix}/com'
820 localstatedir='${prefix}/var'
821 includedir='${prefix}/include'
822 oldincludedir='/usr/include'
823 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824 infodir='${datarootdir}/info'
825 htmldir='${docdir}'
826 dvidir='${docdir}'
827 pdfdir='${docdir}'
828 psdir='${docdir}'
829 libdir='${exec_prefix}/lib'
830 localedir='${datarootdir}/locale'
831 mandir='${datarootdir}/man'
832
833 ac_prev=
834 ac_dashdash=
835 for ac_option
836 do
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\$ac_option
840 ac_prev=
841 continue
842 fi
843
844 case $ac_option in
845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 *=) ac_optarg= ;;
847 *) ac_optarg=yes ;;
848 esac
849
850 # Accept the important Cygnus configure options, so we can diagnose typos.
851
852 case $ac_dashdash$ac_option in
853 --)
854 ac_dashdash=yes ;;
855
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
860
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
865
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
872
873 --config-cache | -C)
874 cache_file=config.cache ;;
875
876 -datadir | --datadir | --datadi | --datad)
877 ac_prev=datadir ;;
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
880
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
887
888 -disable-* | --disable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
913
914 -enable-* | --enable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=\$ac_optarg ;;
929
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
938
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
942
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
949
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
954
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
960
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
967
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
972
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
977
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
984
985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
989
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
996
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1001
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1005
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1009
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1013
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1022
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1027
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1034
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1041
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1058
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1063
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1068
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1072
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 ac_prev=sbindir ;;
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 | --sbi=* | --sb=*)
1077 sbindir=$ac_optarg ;;
1078
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1082 | --sha | --sh)
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 | --sha=* | --sh=*)
1088 sharedstatedir=$ac_optarg ;;
1089
1090 -site | --site | --sit)
1091 ac_prev=site ;;
1092 -site=* | --site=* | --sit=*)
1093 site=$ac_optarg ;;
1094
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 ac_prev=srcdir ;;
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1099
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1106
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1111
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 verbose=yes ;;
1114
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1117
1118 -with-* | --with-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error $? "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127 "with_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=\$ac_optarg ;;
1133
1134 -without-* | --without-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=no ;;
1149
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1153
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1160
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1167
1168 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information"
1170 ;;
1171
1172 *=*)
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1178 esac
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1181
1182 *)
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1188 ;;
1189
1190 esac
1191 done
1192
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error $? "missing argument to $ac_option"
1196 fi
1197
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1200 no) ;;
1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 esac
1204 fi
1205
1206 # Check all directory arguments for consistency.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1211 do
1212 eval ac_val=\$$ac_var
1213 # Remove trailing slashes.
1214 case $ac_val in
1215 */ )
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1218 esac
1219 # Be sure to have absolute directory names.
1220 case $ac_val in
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1223 esac
1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1225 done
1226
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1233
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
1238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1240 fi
1241 fi
1242
1243 ac_tool_prefix=
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246 test "$silent" = yes && exec 6>/dev/null
1247
1248
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 as_fn_error $? "working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 as_fn_error $? "pwd does not report name of working directory"
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
1284 srcdir=$ac_confdir
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 srcdir=..
1287 fi
1288 else
1289 ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294 fi
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298 pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302 fi
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1315
1316 #
1317 # Report the --help message.
1318 #
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
1323 \`configure' configures liblock 0.60 to adapt to many kinds of systems.
1324
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330 Defaults for the options are specified in brackets.
1331
1332 Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking ...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 [PREFIX]
1348
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1353
1354 For better control, use the options below.
1355
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/liblock]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1376 _ACEOF
1377
1378 cat <<\_ACEOF
1379
1380 Program names:
1381 --program-prefix=PREFIX prepend PREFIX to installed program names
1382 --program-suffix=SUFFIX append SUFFIX to installed program names
1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384
1385 System types:
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388 _ACEOF
1389 fi
1390
1391 if test -n "$ac_init_help"; then
1392 case $ac_init_help in
1393 short | recursive ) echo "Configuration of liblock 0.60:";;
1394 esac
1395 cat <<\_ACEOF
1396
1397 Optional Features:
1398 --disable-option-checking ignore unrecognized --enable/--with options
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 --enable-silent-rules less verbose build output (undo: "make V=1")
1402 --disable-silent-rules verbose build output (undo: "make V=0")
1403 --enable-dependency-tracking
1404 do not reject slow dependency extractors
1405 --disable-dependency-tracking
1406 speeds up one-time build
1407 --enable-shared[=PKGS] build shared libraries [default=yes]
1408 --enable-static[=PKGS] build static libraries [default=yes]
1409 --enable-fast-install[=PKGS]
1410 optimize for fast installation [default=yes]
1411 --disable-libtool-lock avoid locking (might break parallel builds)
1412 --disable-largefile omit support for large files
1413
1414 Optional Packages:
1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1417 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1418 both]
1419 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1420 --with-sysroot=DIR Search for dependent libraries within DIR
1421 (or the compiler's sysroot if not specified).
1422
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 CPP C preprocessor
1433
1434 Use these variables to override the choices made by `configure' or to help
1435 it to find libraries and programs with nonstandard names/locations.
1436
1437 Report bugs to <courier-users@lists.sourceforge.net>.
1438 _ACEOF
1439 ac_status=$?
1440 fi
1441
1442 if test "$ac_init_help" = "recursive"; then
1443 # If there are subdirs, report their specific --help.
1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445 test -d "$ac_dir" ||
1446 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447 continue
1448 ac_builddir=.
1449
1450 case "$ac_dir" in
1451 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *)
1453 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1454 # A ".." for each directory in $ac_dir_suffix.
1455 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1456 case $ac_top_builddir_sub in
1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459 esac ;;
1460 esac
1461 ac_abs_top_builddir=$ac_pwd
1462 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1463 # for backward compatibility:
1464 ac_top_builddir=$ac_top_build_prefix
1465
1466 case $srcdir in
1467 .) # We are building in place.
1468 ac_srcdir=.
1469 ac_top_srcdir=$ac_top_builddir_sub
1470 ac_abs_top_srcdir=$ac_pwd ;;
1471 [\\/]* | ?:[\\/]* ) # Absolute name.
1472 ac_srcdir=$srcdir$ac_dir_suffix;
1473 ac_top_srcdir=$srcdir
1474 ac_abs_top_srcdir=$srcdir ;;
1475 *) # Relative name.
1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477 ac_top_srcdir=$ac_top_build_prefix$srcdir
1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479 esac
1480 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481
1482 cd "$ac_dir" || { ac_status=$?; continue; }
1483 # Check for guested configure.
1484 if test -f "$ac_srcdir/configure.gnu"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1487 elif test -f "$ac_srcdir/configure"; then
1488 echo &&
1489 $SHELL "$ac_srcdir/configure" --help=recursive
1490 else
1491 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492 fi || ac_status=$?
1493 cd "$ac_pwd" || { ac_status=$?; break; }
1494 done
1495 fi
1496
1497 test -n "$ac_init_help" && exit $ac_status
1498 if $ac_init_version; then
1499 cat <<\_ACEOF
1500 liblock configure 0.60
1501 generated by GNU Autoconf 2.69
1502
1503 Copyright (C) 2012 Free Software Foundation, Inc.
1504 This configure script is free software; the Free Software Foundation
1505 gives unlimited permission to copy, distribute and modify it.
1506 _ACEOF
1507 exit
1508 fi
1509
1510 ## ------------------------ ##
1511 ## Autoconf initialization. ##
1512 ## ------------------------ ##
1513
1514 # ac_fn_c_try_compile LINENO
1515 # --------------------------
1516 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1517 ac_fn_c_try_compile ()
1518 {
1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520 rm -f conftest.$ac_objext
1521 if { { ac_try="$ac_compile"
1522 case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525 esac
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_compile") 2>conftest.err
1529 ac_status=$?
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1534 fi
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } && {
1537 test -z "$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 } && test -s conftest.$ac_objext; then :
1540 ac_retval=0
1541 else
1542 $as_echo "$as_me: failed program was:" >&5
1543 sed 's/^/| /' conftest.$ac_ext >&5
1544
1545 ac_retval=1
1546 fi
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 as_fn_set_status $ac_retval
1549
1550 } # ac_fn_c_try_compile
1551
1552 # ac_fn_c_try_link LINENO
1553 # -----------------------
1554 # Try to link conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_link ()
1556 {
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext conftest$ac_exeext
1559 if { { ac_try="$ac_link"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_link") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest$ac_exeext && {
1578 test "$cross_compiling" = yes ||
1579 test -x conftest$ac_exeext
1580 }; then :
1581 ac_retval=0
1582 else
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1585
1586 ac_retval=1
1587 fi
1588 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1589 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1590 # interfere with the next link command; also delete a directory that is
1591 # left behind by Apple's compiler. We do this before executing the actions.
1592 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1595
1596 } # ac_fn_c_try_link
1597
1598 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1599 # -------------------------------------------------------
1600 # Tests whether HEADER exists and can be compiled using the include files in
1601 # INCLUDES, setting the cache variable VAR accordingly.
1602 ac_fn_c_check_header_compile ()
1603 {
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1606 $as_echo_n "checking for $2... " >&6; }
1607 if eval \${$3+:} false; then :
1608 $as_echo_n "(cached) " >&6
1609 else
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1612 $4
1613 #include <$2>
1614 _ACEOF
1615 if ac_fn_c_try_compile "$LINENO"; then :
1616 eval "$3=yes"
1617 else
1618 eval "$3=no"
1619 fi
1620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621 fi
1622 eval ac_res=\$$3
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624 $as_echo "$ac_res" >&6; }
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626
1627 } # ac_fn_c_check_header_compile
1628
1629 # ac_fn_c_try_cpp LINENO
1630 # ----------------------
1631 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_cpp ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 if { { ac_try="$ac_cpp conftest.$ac_ext"
1636 case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1648 fi
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } > conftest.i && {
1651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 }; then :
1654 ac_retval=0
1655 else
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1658
1659 ac_retval=1
1660 fi
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1663
1664 } # ac_fn_c_try_cpp
1665
1666 # ac_fn_c_try_run LINENO
1667 # ----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669 # that executables *can* be run.
1670 ac_fn_c_try_run ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if { { ac_try="$ac_link"
1674 case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_link") 2>&5
1681 ac_status=$?
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684 { { case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_try") 2>&5
1691 ac_status=$?
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; }; }; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: program exited with status $ac_status" >&5
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=$ac_status
1701 fi
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_run
1707
1708 # ac_fn_c_check_func LINENO FUNC VAR
1709 # ----------------------------------
1710 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1711 ac_fn_c_check_func ()
1712 {
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 $as_echo_n "checking for $2... " >&6; }
1716 if eval \${$3+:} false; then :
1717 $as_echo_n "(cached) " >&6
1718 else
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1721 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1723 #define $2 innocuous_$2
1724
1725 /* System header to define __stub macros and hopefully few prototypes,
1726 which can conflict with char $2 (); below.
1727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1728 <limits.h> exists even on freestanding compilers. */
1729
1730 #ifdef __STDC__
1731 # include <limits.h>
1732 #else
1733 # include <assert.h>
1734 #endif
1735
1736 #undef $2
1737
1738 /* Override any GCC internal prototype to avoid an error.
1739 Use char because int might match the return type of a GCC
1740 builtin and then its argument prototype would still apply. */
1741 #ifdef __cplusplus
1742 extern "C"
1743 #endif
1744 char $2 ();
1745 /* The GNU C library defines this for functions which it implements
1746 to always fail with ENOSYS. Some functions are actually named
1747 something starting with __ and the normal name is an alias. */
1748 #if defined __stub_$2 || defined __stub___$2
1749 choke me
1750 #endif
1751
1752 int
1753 main ()
1754 {
1755 return $2 ();
1756 ;
1757 return 0;
1758 }
1759 _ACEOF
1760 if ac_fn_c_try_link "$LINENO"; then :
1761 eval "$3=yes"
1762 else
1763 eval "$3=no"
1764 fi
1765 rm -f core conftest.err conftest.$ac_objext \
1766 conftest$ac_exeext conftest.$ac_ext
1767 fi
1768 eval ac_res=\$$3
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772
1773 } # ac_fn_c_check_func
1774
1775 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1776 # -------------------------------------------------------
1777 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1778 # the include files in INCLUDES and setting the cache variable VAR
1779 # accordingly.
1780 ac_fn_c_check_header_mongrel ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if eval \${$3+:} false; then :
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1788 fi
1789 eval ac_res=\$$3
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1792 else
1793 # Is the header compilable?
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1795 $as_echo_n "checking $2 usability... " >&6; }
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 $4
1799 #include <$2>
1800 _ACEOF
1801 if ac_fn_c_try_compile "$LINENO"; then :
1802 ac_header_compiler=yes
1803 else
1804 ac_header_compiler=no
1805 fi
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1808 $as_echo "$ac_header_compiler" >&6; }
1809
1810 # Is the header present?
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1812 $as_echo_n "checking $2 presence... " >&6; }
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1815 #include <$2>
1816 _ACEOF
1817 if ac_fn_c_try_cpp "$LINENO"; then :
1818 ac_header_preproc=yes
1819 else
1820 ac_header_preproc=no
1821 fi
1822 rm -f conftest.err conftest.i conftest.$ac_ext
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1824 $as_echo "$ac_header_preproc" >&6; }
1825
1826 # So? What about this header?
1827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1828 yes:no: )
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1830 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 ;;
1834 no:yes:* )
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1836 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1838 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1840 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1842 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1844 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845 ( $as_echo "## -------------------------------------------------- ##
1846 ## Report this to courier-users@lists.sourceforge.net ##
1847 ## -------------------------------------------------- ##"
1848 ) | sed "s/^/$as_me: WARNING: /" >&2
1849 ;;
1850 esac
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1855 else
1856 eval "$3=\$ac_header_compiler"
1857 fi
1858 eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 fi
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863
1864 } # ac_fn_c_check_header_mongrel
1865
1866 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1867 # -------------------------------------------
1868 # Tests whether TYPE exists after having included INCLUDES, setting cache
1869 # variable VAR accordingly.
1870 ac_fn_c_check_type ()
1871 {
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if eval \${$3+:} false; then :
1876 $as_echo_n "(cached) " >&6
1877 else
1878 eval "$3=no"
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1881 $4
1882 int
1883 main ()
1884 {
1885 if (sizeof ($2))
1886 return 0;
1887 ;
1888 return 0;
1889 }
1890 _ACEOF
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1894 $4
1895 int
1896 main ()
1897 {
1898 if (sizeof (($2)))
1899 return 0;
1900 ;
1901 return 0;
1902 }
1903 _ACEOF
1904 if ac_fn_c_try_compile "$LINENO"; then :
1905
1906 else
1907 eval "$3=yes"
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 fi
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 fi
1913 eval ac_res=\$$3
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
1918 } # ac_fn_c_check_type
1919 cat >config.log <<_ACEOF
1920 This file contains any messages produced by compilers while
1921 running configure, to aid debugging if configure makes a mistake.
1922
1923 It was created by liblock $as_me 0.60, which was
1924 generated by GNU Autoconf 2.69. Invocation command line was
1925
1926 $ $0 $@
1927
1928 _ACEOF
1929 exec 5>>config.log
1930 {
1931 cat <<_ASUNAME
1932 ## --------- ##
1933 ## Platform. ##
1934 ## --------- ##
1935
1936 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1937 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1938 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1939 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1940 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1941
1942 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1943 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1944
1945 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1946 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1947 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1948 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1949 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1950 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1951 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1952
1953 _ASUNAME
1954
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 for as_dir in $PATH
1957 do
1958 IFS=$as_save_IFS
1959 test -z "$as_dir" && as_dir=.
1960 $as_echo "PATH: $as_dir"
1961 done
1962 IFS=$as_save_IFS
1963
1964 } >&5
1965
1966 cat >&5 <<_ACEOF
1967
1968
1969 ## ----------- ##
1970 ## Core tests. ##
1971 ## ----------- ##
1972
1973 _ACEOF
1974
1975
1976 # Keep a trace of the command line.
1977 # Strip out --no-create and --no-recursion so they do not pile up.
1978 # Strip out --silent because we don't want to record it for future runs.
1979 # Also quote any args containing shell meta-characters.
1980 # Make two passes to allow for proper duplicate-argument suppression.
1981 ac_configure_args=
1982 ac_configure_args0=
1983 ac_configure_args1=
1984 ac_must_keep_next=false
1985 for ac_pass in 1 2
1986 do
1987 for ac_arg
1988 do
1989 case $ac_arg in
1990 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1992 | -silent | --silent | --silen | --sile | --sil)
1993 continue ;;
1994 *\'*)
1995 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1996 esac
1997 case $ac_pass in
1998 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1999 2)
2000 as_fn_append ac_configure_args1 " '$ac_arg'"
2001 if test $ac_must_keep_next = true; then
2002 ac_must_keep_next=false # Got value, back to normal.
2003 else
2004 case $ac_arg in
2005 *=* | --config-cache | -C | -disable-* | --disable-* \
2006 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2007 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2008 | -with-* | --with-* | -without-* | --without-* | --x)
2009 case "$ac_configure_args0 " in
2010 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2011 esac
2012 ;;
2013 -* ) ac_must_keep_next=true ;;
2014 esac
2015 fi
2016 as_fn_append ac_configure_args " '$ac_arg'"
2017 ;;
2018 esac
2019 done
2020 done
2021 { ac_configure_args0=; unset ac_configure_args0;}
2022 { ac_configure_args1=; unset ac_configure_args1;}
2023
2024 # When interrupted or exit'd, cleanup temporary files, and complete
2025 # config.log. We remove comments because anyway the quotes in there
2026 # would cause problems or look ugly.
2027 # WARNING: Use '\'' to represent an apostrophe within the trap.
2028 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2029 trap 'exit_status=$?
2030 # Save into config.log some information that might help in debugging.
2031 {
2032 echo
2033
2034 $as_echo "## ---------------- ##
2035 ## Cache variables. ##
2036 ## ---------------- ##"
2037 echo
2038 # The following way of writing the cache mishandles newlines in values,
2039 (
2040 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2041 eval ac_val=\$$ac_var
2042 case $ac_val in #(
2043 *${as_nl}*)
2044 case $ac_var in #(
2045 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2046 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2047 esac
2048 case $ac_var in #(
2049 _ | IFS | as_nl) ;; #(
2050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2051 *) { eval $ac_var=; unset $ac_var;} ;;
2052 esac ;;
2053 esac
2054 done
2055 (set) 2>&1 |
2056 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2057 *${as_nl}ac_space=\ *)
2058 sed -n \
2059 "s/'\''/'\''\\\\'\'''\''/g;
2060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2061 ;; #(
2062 *)
2063 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2064 ;;
2065 esac |
2066 sort
2067 )
2068 echo
2069
2070 $as_echo "## ----------------- ##
2071 ## Output variables. ##
2072 ## ----------------- ##"
2073 echo
2074 for ac_var in $ac_subst_vars
2075 do
2076 eval ac_val=\$$ac_var
2077 case $ac_val in
2078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2079 esac
2080 $as_echo "$ac_var='\''$ac_val'\''"
2081 done | sort
2082 echo
2083
2084 if test -n "$ac_subst_files"; then
2085 $as_echo "## ------------------- ##
2086 ## File substitutions. ##
2087 ## ------------------- ##"
2088 echo
2089 for ac_var in $ac_subst_files
2090 do
2091 eval ac_val=\$$ac_var
2092 case $ac_val in
2093 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2094 esac
2095 $as_echo "$ac_var='\''$ac_val'\''"
2096 done | sort
2097 echo
2098 fi
2099
2100 if test -s confdefs.h; then
2101 $as_echo "## ----------- ##
2102 ## confdefs.h. ##
2103 ## ----------- ##"
2104 echo
2105 cat confdefs.h
2106 echo
2107 fi
2108 test "$ac_signal" != 0 &&
2109 $as_echo "$as_me: caught signal $ac_signal"
2110 $as_echo "$as_me: exit $exit_status"
2111 } >&5
2112 rm -f core *.core core.conftest.* &&
2113 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2114 exit $exit_status
2115 ' 0
2116 for ac_signal in 1 2 13 15; do
2117 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2118 done
2119 ac_signal=0
2120
2121 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2122 rm -f -r conftest* confdefs.h
2123
2124 $as_echo "/* confdefs.h */" > confdefs.h
2125
2126 # Predefined preprocessor variables.
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_NAME "$PACKAGE_NAME"
2130 _ACEOF
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2134 _ACEOF
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2138 _ACEOF
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_STRING "$PACKAGE_STRING"
2142 _ACEOF
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2146 _ACEOF
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_URL "$PACKAGE_URL"
2150 _ACEOF
2151
2152
2153 # Let the site file select an alternate cache file if it wants to.
2154 # Prefer an explicitly selected file to automatically selected ones.
2155 ac_site_file1=NONE
2156 ac_site_file2=NONE
2157 if test -n "$CONFIG_SITE"; then
2158 # We do not want a PATH search for config.site.
2159 case $CONFIG_SITE in #((
2160 -*) ac_site_file1=./$CONFIG_SITE;;
2161 */*) ac_site_file1=$CONFIG_SITE;;
2162 *) ac_site_file1=./$CONFIG_SITE;;
2163 esac
2164 elif test "x$prefix" != xNONE; then
2165 ac_site_file1=$prefix/share/config.site
2166 ac_site_file2=$prefix/etc/config.site
2167 else
2168 ac_site_file1=$ac_default_prefix/share/config.site
2169 ac_site_file2=$ac_default_prefix/etc/config.site
2170 fi
2171 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2172 do
2173 test "x$ac_site_file" = xNONE && continue
2174 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2176 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2177 sed 's/^/| /' "$ac_site_file" >&5
2178 . "$ac_site_file" \
2179 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2181 as_fn_error $? "failed to load site script $ac_site_file
2182 See \`config.log' for more details" "$LINENO" 5; }
2183 fi
2184 done
2185
2186 if test -r "$cache_file"; then
2187 # Some versions of bash will fail to source /dev/null (special files
2188 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2189 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2191 $as_echo "$as_me: loading cache $cache_file" >&6;}
2192 case $cache_file in
2193 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2194 *) . "./$cache_file";;
2195 esac
2196 fi
2197 else
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2199 $as_echo "$as_me: creating cache $cache_file" >&6;}
2200 >$cache_file
2201 fi
2202
2203 # Check that the precious variables saved in the cache have kept the same
2204 # value.
2205 ac_cache_corrupted=false
2206 for ac_var in $ac_precious_vars; do
2207 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2208 eval ac_new_set=\$ac_env_${ac_var}_set
2209 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2210 eval ac_new_val=\$ac_env_${ac_var}_value
2211 case $ac_old_set,$ac_new_set in
2212 set,)
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2214 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2215 ac_cache_corrupted=: ;;
2216 ,set)
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2218 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2219 ac_cache_corrupted=: ;;
2220 ,);;
2221 *)
2222 if test "x$ac_old_val" != "x$ac_new_val"; then
2223 # differences in whitespace do not lead to failure.
2224 ac_old_val_w=`echo x $ac_old_val`
2225 ac_new_val_w=`echo x $ac_new_val`
2226 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2228 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2229 ac_cache_corrupted=:
2230 else
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2232 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2233 eval $ac_var=\$ac_old_val
2234 fi
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2236 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2238 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2239 fi;;
2240 esac
2241 # Pass precious variables to config.status.
2242 if test "$ac_new_set" = set; then
2243 case $ac_new_val in
2244 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2245 *) ac_arg=$ac_var=$ac_new_val ;;
2246 esac
2247 case " $ac_configure_args " in
2248 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2249 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2250 esac
2251 fi
2252 done
2253 if $ac_cache_corrupted; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2257 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2258 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2259 fi
2260 ## -------------------- ##
2261 ## Main body of script. ##
2262 ## -------------------- ##
2263
2264 ac_ext=c
2265 ac_cpp='$CPP $CPPFLAGS'
2266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2269
2270
2271
2272 >confdefs.h # Kill PACKAGE_ macros
2273
2274
2275 ac_aux_dir=
2276 for ac_dir in ../.. "$srcdir"/../..; do
2277 if test -f "$ac_dir/install-sh"; then
2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/install-sh -c"
2280 break
2281 elif test -f "$ac_dir/install.sh"; then
2282 ac_aux_dir=$ac_dir
2283 ac_install_sh="$ac_aux_dir/install.sh -c"
2284 break
2285 elif test -f "$ac_dir/shtool"; then
2286 ac_aux_dir=$ac_dir
2287 ac_install_sh="$ac_aux_dir/shtool install -c"
2288 break
2289 fi
2290 done
2291 if test -z "$ac_aux_dir"; then
2292 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2293 fi
2294
2295 # These three variables are undocumented and unsupported,
2296 # and are intended to be withdrawn in a future Autoconf release.
2297 # They can cause serious problems if a builder's source tree is in a directory
2298 # whose full name contains unusual characters.
2299 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2300 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2301 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2302
2303
2304 ac_config_headers="$ac_config_headers config.h"
2305
2306 am__api_version='1.13'
2307
2308 # Find a good install program. We prefer a C program (faster),
2309 # so one script is as good as another. But avoid the broken or
2310 # incompatible versions:
2311 # SysV /etc/install, /usr/sbin/install
2312 # SunOS /usr/etc/install
2313 # IRIX /sbin/install
2314 # AIX /bin/install
2315 # AmigaOS /C/install, which installs bootblocks on floppy discs
2316 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2317 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2318 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2319 # OS/2's system install, which has a completely different semantic
2320 # ./install, which can be erroneously created by make from ./install.sh.
2321 # Reject install programs that cannot install multiple files.
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2323 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2324 if test -z "$INSTALL"; then
2325 if ${ac_cv_path_install+:} false; then :
2326 $as_echo_n "(cached) " >&6
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2330 do
2331 IFS=$as_save_IFS
2332 test -z "$as_dir" && as_dir=.
2333 # Account for people who put trailing slashes in PATH elements.
2334 case $as_dir/ in #((
2335 ./ | .// | /[cC]/* | \
2336 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2337 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2338 /usr/ucb/* ) ;;
2339 *)
2340 # OSF1 and SCO ODT 3.0 have their own names for install.
2341 # Don't use installbsd from OSF since it installs stuff as root
2342 # by default.
2343 for ac_prog in ginstall scoinst install; do
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2346 if test $ac_prog = install &&
2347 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2348 # AIX install. It has an incompatible calling convention.
2349 :
2350 elif test $ac_prog = install &&
2351 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2352 # program-specific install script used by HP pwplus--don't use.
2353 :
2354 else
2355 rm -rf conftest.one conftest.two conftest.dir
2356 echo one > conftest.one
2357 echo two > conftest.two
2358 mkdir conftest.dir
2359 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2360 test -s conftest.one && test -s conftest.two &&
2361 test -s conftest.dir/conftest.one &&
2362 test -s conftest.dir/conftest.two
2363 then
2364 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2365 break 3
2366 fi
2367 fi
2368 fi
2369 done
2370 done
2371 ;;
2372 esac
2373
2374 done
2375 IFS=$as_save_IFS
2376
2377 rm -rf conftest.one conftest.two conftest.dir
2378
2379 fi
2380 if test "${ac_cv_path_install+set}" = set; then
2381 INSTALL=$ac_cv_path_install
2382 else
2383 # As a last resort, use the slow shell script. Don't cache a
2384 # value for INSTALL within a source directory, because that will
2385 # break other packages using the cache if that directory is
2386 # removed, or if the value is a relative name.
2387 INSTALL=$ac_install_sh
2388 fi
2389 fi
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2391 $as_echo "$INSTALL" >&6; }
2392
2393 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2394 # It thinks the first close brace ends the variable substitution.
2395 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2396
2397 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2398
2399 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2400
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2402 $as_echo_n "checking whether build environment is sane... " >&6; }
2403 # Reject unsafe characters in $srcdir or the absolute working directory
2404 # name. Accept space and tab only in the latter.
2405 am_lf='
2406 '
2407 case `pwd` in
2408 *[\\\"\#\$\&\'\`$am_lf]*)
2409 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2410 esac
2411 case $srcdir in
2412 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2413 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2414 esac
2415
2416 # Do 'set' in a subshell so we don't clobber the current shell's
2417 # arguments. Must try -L first in case configure is actually a
2418 # symlink; some systems play weird games with the mod time of symlinks
2419 # (eg FreeBSD returns the mod time of the symlink's containing
2420 # directory).
2421 if (
2422 am_has_slept=no
2423 for am_try in 1 2; do
2424 echo "timestamp, slept: $am_has_slept" > conftest.file
2425 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2426 if test "$*" = "X"; then
2427 # -L didn't work.
2428 set X `ls -t "$srcdir/configure" conftest.file`
2429 fi
2430 if test "$*" != "X $srcdir/configure conftest.file" \
2431 && test "$*" != "X conftest.file $srcdir/configure"; then
2432
2433 # If neither matched, then we have a broken ls. This can happen
2434 # if, for instance, CONFIG_SHELL is bash and it inherits a
2435 # broken ls alias from the environment. This has actually
2436 # happened. Such a system could not be considered "sane".
2437 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2438 alias in your environment" "$LINENO" 5
2439 fi
2440 if test "$2" = conftest.file || test $am_try -eq 2; then
2441 break
2442 fi
2443 # Just in case.
2444 sleep 1
2445 am_has_slept=yes
2446 done
2447 test "$2" = conftest.file
2448 )
2449 then
2450 # Ok.
2451 :
2452 else
2453 as_fn_error $? "newly created file is older than distributed files!
2454 Check your system clock" "$LINENO" 5
2455 fi
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2457 $as_echo "yes" >&6; }
2458 # If we didn't sleep, we still need to ensure time stamps of config.status and
2459 # generated files are strictly newer.
2460 am_sleep_pid=
2461 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2462 ( sleep 1 ) &
2463 am_sleep_pid=$!
2464 fi
2465
2466 rm -f conftest.file
2467
2468 test "$program_prefix" != NONE &&
2469 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2470 # Use a double $ so make ignores it.
2471 test "$program_suffix" != NONE &&
2472 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2473 # Double any \ or $.
2474 # By default was `s,x,x', remove it if useless.
2475 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2476 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2477
2478 # expand $ac_aux_dir to an absolute path
2479 am_aux_dir=`cd $ac_aux_dir && pwd`
2480
2481 if test x"${MISSING+set}" != xset; then
2482 case $am_aux_dir in
2483 *\ * | *\ *)
2484 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2485 *)
2486 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2487 esac
2488 fi
2489 # Use eval to expand $SHELL
2490 if eval "$MISSING --is-lightweight"; then
2491 am_missing_run="$MISSING "
2492 else
2493 am_missing_run=
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2495 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2496 fi
2497
2498 if test x"${install_sh}" != xset; then
2499 case $am_aux_dir in
2500 *\ * | *\ *)
2501 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2502 *)
2503 install_sh="\${SHELL} $am_aux_dir/install-sh"
2504 esac
2505 fi
2506
2507 # Installed binaries are usually stripped using 'strip' when the user
2508 # run "make install-strip". However 'strip' might not be the right
2509 # tool to use in cross-compilation environments, therefore Automake
2510 # will honor the 'STRIP' environment variable to overrule this program.
2511 if test "$cross_compiling" != no; then
2512 if test -n "$ac_tool_prefix"; then
2513 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2514 set dummy ${ac_tool_prefix}strip; ac_word=$2
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if ${ac_cv_prog_STRIP+:} false; then :
2518 $as_echo_n "(cached) " >&6
2519 else
2520 if test -n "$STRIP"; then
2521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 break 2
2533 fi
2534 done
2535 done
2536 IFS=$as_save_IFS
2537
2538 fi
2539 fi
2540 STRIP=$ac_cv_prog_STRIP
2541 if test -n "$STRIP"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2543 $as_echo "$STRIP" >&6; }
2544 else
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546 $as_echo "no" >&6; }
2547 fi
2548
2549
2550 fi
2551 if test -z "$ac_cv_prog_STRIP"; then
2552 ac_ct_STRIP=$STRIP
2553 # Extract the first word of "strip", so it can be a program name with args.
2554 set dummy strip; ac_word=$2
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2558 $as_echo_n "(cached) " >&6
2559 else
2560 if test -n "$ac_ct_STRIP"; then
2561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2565 do
2566 IFS=$as_save_IFS
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2570 ac_cv_prog_ac_ct_STRIP="strip"
2571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 break 2
2573 fi
2574 done
2575 done
2576 IFS=$as_save_IFS
2577
2578 fi
2579 fi
2580 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2581 if test -n "$ac_ct_STRIP"; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2583 $as_echo "$ac_ct_STRIP" >&6; }
2584 else
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586 $as_echo "no" >&6; }
2587 fi
2588
2589 if test "x$ac_ct_STRIP" = x; then
2590 STRIP=":"
2591 else
2592 case $cross_compiling:$ac_tool_warned in
2593 yes:)
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2596 ac_tool_warned=yes ;;
2597 esac
2598 STRIP=$ac_ct_STRIP
2599 fi
2600 else
2601 STRIP="$ac_cv_prog_STRIP"
2602 fi
2603
2604 fi
2605 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2606
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2608 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2609 if test -z "$MKDIR_P"; then
2610 if ${ac_cv_path_mkdir+:} false; then :
2611 $as_echo_n "(cached) " >&6
2612 else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2615 do
2616 IFS=$as_save_IFS
2617 test -z "$as_dir" && as_dir=.
2618 for ac_prog in mkdir gmkdir; do
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2621 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2622 'mkdir (GNU coreutils) '* | \
2623 'mkdir (coreutils) '* | \
2624 'mkdir (fileutils) '4.1*)
2625 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2626 break 3;;
2627 esac
2628 done
2629 done
2630 done
2631 IFS=$as_save_IFS
2632
2633 fi
2634
2635 test -d ./--version && rmdir ./--version
2636 if test "${ac_cv_path_mkdir+set}" = set; then
2637 MKDIR_P="$ac_cv_path_mkdir -p"
2638 else
2639 # As a last resort, use the slow shell script. Don't cache a
2640 # value for MKDIR_P within a source directory, because that will
2641 # break other packages using the cache if that directory is
2642 # removed, or if the value is a relative name.
2643 MKDIR_P="$ac_install_sh -d"
2644 fi
2645 fi
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2647 $as_echo "$MKDIR_P" >&6; }
2648
2649 for ac_prog in gawk mawk nawk awk
2650 do
2651 # Extract the first word of "$ac_prog", so it can be a program name with args.
2652 set dummy $ac_prog; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if ${ac_cv_prog_AWK+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 if test -n "$AWK"; then
2659 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_AWK="$ac_prog"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2671 fi
2672 done
2673 done
2674 IFS=$as_save_IFS
2675
2676 fi
2677 fi
2678 AWK=$ac_cv_prog_AWK
2679 if test -n "$AWK"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2681 $as_echo "$AWK" >&6; }
2682 else
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2685 fi
2686
2687
2688 test -n "$AWK" && break
2689 done
2690
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2692 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2693 set x ${MAKE-make}
2694 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2695 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 cat >conftest.make <<\_ACEOF
2699 SHELL = /bin/sh
2700 all:
2701 @echo '@@@%%%=$(MAKE)=@@@%%%'
2702 _ACEOF
2703 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2704 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2705 *@@@%%%=?*=@@@%%%*)
2706 eval ac_cv_prog_make_${ac_make}_set=yes;;
2707 *)
2708 eval ac_cv_prog_make_${ac_make}_set=no;;
2709 esac
2710 rm -f conftest.make
2711 fi
2712 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2714 $as_echo "yes" >&6; }
2715 SET_MAKE=
2716 else
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2718 $as_echo "no" >&6; }
2719 SET_MAKE="MAKE=${MAKE-make}"
2720 fi
2721
2722 rm -rf .tst 2>/dev/null
2723 mkdir .tst 2>/dev/null
2724 if test -d .tst; then
2725 am__leading_dot=.
2726 else
2727 am__leading_dot=_
2728 fi
2729 rmdir .tst 2>/dev/null
2730
2731 # Check whether --enable-silent-rules was given.
2732 if test "${enable_silent_rules+set}" = set; then :
2733 enableval=$enable_silent_rules;
2734 fi
2735
2736 case $enable_silent_rules in # (((
2737 yes) AM_DEFAULT_VERBOSITY=0;;
2738 no) AM_DEFAULT_VERBOSITY=1;;
2739 *) AM_DEFAULT_VERBOSITY=1;;
2740 esac
2741 am_make=${MAKE-make}
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2743 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2744 if ${am_cv_make_support_nested_variables+:} false; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 if $as_echo 'TRUE=$(BAR$(V))
2748 BAR0=false
2749 BAR1=true
2750 V=1
2751 am__doit:
2752 @$(TRUE)
2753 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2754 am_cv_make_support_nested_variables=yes
2755 else
2756 am_cv_make_support_nested_variables=no
2757 fi
2758 fi
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2760 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2761 if test $am_cv_make_support_nested_variables = yes; then
2762 AM_V='$(V)'
2763 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2764 else
2765 AM_V=$AM_DEFAULT_VERBOSITY
2766 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2767 fi
2768 AM_BACKSLASH='\'
2769
2770 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2771 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2772 # is not polluted with repeated "-I."
2773 am__isrc=' -I$(srcdir)'
2774 # test to see if srcdir already configured
2775 if test -f $srcdir/config.status; then
2776 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2777 fi
2778 fi
2779
2780 # test whether we have cygpath
2781 if test -z "$CYGPATH_W"; then
2782 if (cygpath --version) >/dev/null 2>/dev/null; then
2783 CYGPATH_W='cygpath -w'
2784 else
2785 CYGPATH_W=echo
2786 fi
2787 fi
2788
2789
2790 # Define the identity of the package.
2791 PACKAGE='liblock'
2792 VERSION='0.60'
2793
2794
2795 # Some tools Automake needs.
2796
2797 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2798
2799
2800 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2801
2802
2803 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2804
2805
2806 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2807
2808
2809 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2810
2811 # For better backward compatibility. To be removed once Automake 1.9.x
2812 # dies out for good. For more background, see:
2813 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2814 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2815 mkdir_p='$(MKDIR_P)'
2816
2817 # We need awk for the "check" target. The system "awk" is bad on
2818 # some platforms.
2819 # Always define AMTAR for backward compatibility. Yes, it's still used
2820 # in the wild :-( We should find a proper way to deprecate it ...
2821 AMTAR='$${TAR-tar}'
2822
2823
2824 # We'll loop over all known methods to create a tar archive until one works.
2825 _am_tools='gnutar pax cpio none'
2826
2827 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2828
2829
2830
2831
2832
2833
2834
2835 CFLAGS="-I.. -I${srcdir}/.. $CFLAGS"
2836
2837 for ac_prog in gawk mawk nawk awk
2838 do
2839 # Extract the first word of "$ac_prog", so it can be a program name with args.
2840 set dummy $ac_prog; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_AWK+:} false; then :
2844 $as_echo_n "(cached) " >&6
2845 else
2846 if test -n "$AWK"; then
2847 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856 ac_cv_prog_AWK="$ac_prog"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 break 2
2859 fi
2860 done
2861 done
2862 IFS=$as_save_IFS
2863
2864 fi
2865 fi
2866 AWK=$ac_cv_prog_AWK
2867 if test -n "$AWK"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2869 $as_echo "$AWK" >&6; }
2870 else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2873 fi
2874
2875
2876 test -n "$AWK" && break
2877 done
2878
2879 ac_ext=c
2880 ac_cpp='$CPP $CPPFLAGS'
2881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884 if test -n "$ac_tool_prefix"; then
2885 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2886 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if ${ac_cv_prog_CC+:} false; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test -n "$CC"; then
2893 ac_cv_prog_CC="$CC" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906 done
2907 done
2908 IFS=$as_save_IFS
2909
2910 fi
2911 fi
2912 CC=$ac_cv_prog_CC
2913 if test -n "$CC"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2915 $as_echo "$CC" >&6; }
2916 else
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2919 fi
2920
2921
2922 fi
2923 if test -z "$ac_cv_prog_CC"; then
2924 ac_ct_CC=$CC
2925 # Extract the first word of "gcc", so it can be a program name with args.
2926 set dummy gcc; ac_word=$2
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928 $as_echo_n "checking for $ac_word... " >&6; }
2929 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2930 $as_echo_n "(cached) " >&6
2931 else
2932 if test -n "$ac_ct_CC"; then
2933 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2937 do
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2942 ac_cv_prog_ac_ct_CC="gcc"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946 done
2947 done
2948 IFS=$as_save_IFS
2949
2950 fi
2951 fi
2952 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2953 if test -n "$ac_ct_CC"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2955 $as_echo "$ac_ct_CC" >&6; }
2956 else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 $as_echo "no" >&6; }
2959 fi
2960
2961 if test "x$ac_ct_CC" = x; then
2962 CC=""
2963 else
2964 case $cross_compiling:$ac_tool_warned in
2965 yes:)
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2968 ac_tool_warned=yes ;;
2969 esac
2970 CC=$ac_ct_CC
2971 fi
2972 else
2973 CC="$ac_cv_prog_CC"
2974 fi
2975
2976 if test -z "$CC"; then
2977 if test -n "$ac_tool_prefix"; then
2978 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2979 set dummy ${ac_tool_prefix}cc; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if ${ac_cv_prog_CC+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_CC="${ac_tool_prefix}cc"
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
2998 fi
2999 done
3000 done
3001 IFS=$as_save_IFS
3002
3003 fi
3004 fi
3005 CC=$ac_cv_prog_CC
3006 if test -n "$CC"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3008 $as_echo "$CC" >&6; }
3009 else
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3012 fi
3013
3014
3015 fi
3016 fi
3017 if test -z "$CC"; then
3018 # Extract the first word of "cc", so it can be a program name with args.
3019 set dummy cc; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if ${ac_cv_prog_CC+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 if test -n "$CC"; then
3026 ac_cv_prog_CC="$CC" # Let the user override the test.
3027 else
3028 ac_prog_rejected=no
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3037 ac_prog_rejected=yes
3038 continue
3039 fi
3040 ac_cv_prog_CC="cc"
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 if test $ac_prog_rejected = yes; then
3049 # We found a bogon in the path, so make sure we never use it.
3050 set dummy $ac_cv_prog_CC
3051 shift
3052 if test $# != 0; then
3053 # We chose a different compiler from the bogus one.
3054 # However, it has the same basename, so the bogon will be chosen
3055 # first if we set CC to just the basename; use the full file name.
3056 shift
3057 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3058 fi
3059 fi
3060 fi
3061 fi
3062 CC=$ac_cv_prog_CC
3063 if test -n "$CC"; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3065 $as_echo "$CC" >&6; }
3066 else
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3069 fi
3070
3071
3072 fi
3073 if test -z "$CC"; then
3074 if test -n "$ac_tool_prefix"; then
3075 for ac_prog in cl.exe
3076 do
3077 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3078 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if ${ac_cv_prog_CC+:} false; then :
3082 $as_echo_n "(cached) " >&6
3083 else
3084 if test -n "$CC"; then
3085 ac_cv_prog_CC="$CC" # Let the user override the test.
3086 else
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH
3089 do
3090 IFS=$as_save_IFS
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 break 2
3097 fi
3098 done
3099 done
3100 IFS=$as_save_IFS
3101
3102 fi
3103 fi
3104 CC=$ac_cv_prog_CC
3105 if test -n "$CC"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107 $as_echo "$CC" >&6; }
3108 else
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3111 fi
3112
3113
3114 test -n "$CC" && break
3115 done
3116 fi
3117 if test -z "$CC"; then
3118 ac_ct_CC=$CC
3119 for ac_prog in cl.exe
3120 do
3121 # Extract the first word of "$ac_prog", so it can be a program name with args.
3122 set dummy $ac_prog; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test -n "$ac_ct_CC"; then
3129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_ac_ct_CC="$ac_prog"
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142 done
3143 done
3144 IFS=$as_save_IFS
3145
3146 fi
3147 fi
3148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3149 if test -n "$ac_ct_CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3151 $as_echo "$ac_ct_CC" >&6; }
3152 else
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157
3158 test -n "$ac_ct_CC" && break
3159 done
3160
3161 if test "x$ac_ct_CC" = x; then
3162 CC=""
3163 else
3164 case $cross_compiling:$ac_tool_warned in
3165 yes:)
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3168 ac_tool_warned=yes ;;
3169 esac
3170 CC=$ac_ct_CC
3171 fi
3172 fi
3173
3174 fi
3175
3176
3177 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 as_fn_error $? "no acceptable C compiler found in \$PATH
3180 See \`config.log' for more details" "$LINENO" 5; }
3181
3182 # Provide some information about the compiler.
3183 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3184 set X $ac_compile
3185 ac_compiler=$2
3186 for ac_option in --version -v -V -qversion; do
3187 { { ac_try="$ac_compiler $ac_option >&5"
3188 case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3193 $as_echo "$ac_try_echo"; } >&5
3194 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3195 ac_status=$?
3196 if test -s conftest.err; then
3197 sed '10a\
3198 ... rest of stderr output deleted ...
3199 10q' conftest.err >conftest.er1
3200 cat conftest.er1 >&5
3201 fi
3202 rm -f conftest.er1 conftest.err
3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }
3205 done
3206
3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208 /* end confdefs.h. */
3209
3210 int
3211 main ()
3212 {
3213
3214 ;
3215 return 0;
3216 }
3217 _ACEOF
3218 ac_clean_files_save=$ac_clean_files
3219 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3220 # Try to create an executable without -o first, disregard a.out.
3221 # It will help us diagnose broken compilers, and finding out an intuition
3222 # of exeext.
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3224 $as_echo_n "checking whether the C compiler works... " >&6; }
3225 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3226
3227 # The possible output files:
3228 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3229
3230 ac_rmfiles=
3231 for ac_file in $ac_files
3232 do
3233 case $ac_file in
3234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3235 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3236 esac
3237 done
3238 rm -f $ac_rmfiles
3239
3240 if { { ac_try="$ac_link_default"
3241 case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247 (eval "$ac_link_default") 2>&5
3248 ac_status=$?
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }; then :
3251 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3252 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3253 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3254 # so that the user can short-circuit this test for compilers unknown to
3255 # Autoconf.
3256 for ac_file in $ac_files ''
3257 do
3258 test -f "$ac_file" || continue
3259 case $ac_file in
3260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3261 ;;
3262 [ab].out )
3263 # We found the default executable, but exeext='' is most
3264 # certainly right.
3265 break;;
3266 *.* )
3267 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3268 then :; else
3269 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3270 fi
3271 # We set ac_cv_exeext here because the later test for it is not
3272 # safe: cross compilers may not add the suffix if given an `-o'
3273 # argument, so we may need to know it at that point already.
3274 # Even if this section looks crufty: it has the advantage of
3275 # actually working.
3276 break;;
3277 * )
3278 break;;
3279 esac
3280 done
3281 test "$ac_cv_exeext" = no && ac_cv_exeext=
3282
3283 else
3284 ac_file=''
3285 fi
3286 if test -z "$ac_file"; then :
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 $as_echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3291
3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error 77 "C compiler cannot create executables
3295 See \`config.log' for more details" "$LINENO" 5; }
3296 else
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3298 $as_echo "yes" >&6; }
3299 fi
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3301 $as_echo_n "checking for C compiler default output file name... " >&6; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3303 $as_echo "$ac_file" >&6; }
3304 ac_exeext=$ac_cv_exeext
3305
3306 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3307 ac_clean_files=$ac_clean_files_save
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3309 $as_echo_n "checking for suffix of executables... " >&6; }
3310 if { { ac_try="$ac_link"
3311 case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314 esac
3315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316 $as_echo "$ac_try_echo"; } >&5
3317 (eval "$ac_link") 2>&5
3318 ac_status=$?
3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }; then :
3321 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3322 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3323 # work properly (i.e., refer to `conftest.exe'), while it won't with
3324 # `rm'.
3325 for ac_file in conftest.exe conftest conftest.*; do
3326 test -f "$ac_file" || continue
3327 case $ac_file in
3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3329 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3330 break;;
3331 * ) break;;
3332 esac
3333 done
3334 else
3335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3338 See \`config.log' for more details" "$LINENO" 5; }
3339 fi
3340 rm -f conftest conftest$ac_cv_exeext
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3342 $as_echo "$ac_cv_exeext" >&6; }
3343
3344 rm -f conftest.$ac_ext
3345 EXEEXT=$ac_cv_exeext
3346 ac_exeext=$EXEEXT
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3349 #include <stdio.h>
3350 int
3351 main ()
3352 {
3353 FILE *f = fopen ("conftest.out", "w");
3354 return ferror (f) || fclose (f) != 0;
3355
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 ac_clean_files="$ac_clean_files conftest.out"
3361 # Check that the compiler produces executables we can run. If not, either
3362 # the compiler is broken, or we cross compile.
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3364 $as_echo_n "checking whether we are cross compiling... " >&6; }
3365 if test "$cross_compiling" != yes; then
3366 { { ac_try="$ac_link"
3367 case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370 esac
3371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372 $as_echo "$ac_try_echo"; } >&5
3373 (eval "$ac_link") 2>&5
3374 ac_status=$?
3375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376 test $ac_status = 0; }
3377 if { ac_try='./conftest$ac_cv_exeext'
3378 { { case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384 (eval "$ac_try") 2>&5
3385 ac_status=$?
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }; }; then
3388 cross_compiling=no
3389 else
3390 if test "$cross_compiling" = maybe; then
3391 cross_compiling=yes
3392 else
3393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395 as_fn_error $? "cannot run C compiled programs.
3396 If you meant to cross compile, use \`--host'.
3397 See \`config.log' for more details" "$LINENO" 5; }
3398 fi
3399 fi
3400 fi
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3402 $as_echo "$cross_compiling" >&6; }
3403
3404 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3405 ac_clean_files=$ac_clean_files_save
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3407 $as_echo_n "checking for suffix of object files... " >&6; }
3408 if ${ac_cv_objext+:} false; then :
3409 $as_echo_n "(cached) " >&6
3410 else
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3413
3414 int
3415 main ()
3416 {
3417
3418 ;
3419 return 0;
3420 }
3421 _ACEOF
3422 rm -f conftest.o conftest.obj
3423 if { { ac_try="$ac_compile"
3424 case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427 esac
3428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429 $as_echo "$ac_try_echo"; } >&5
3430 (eval "$ac_compile") 2>&5
3431 ac_status=$?
3432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433 test $ac_status = 0; }; then :
3434 for ac_file in conftest.o conftest.obj conftest.*; do
3435 test -f "$ac_file" || continue;
3436 case $ac_file in
3437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3438 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3439 break;;
3440 esac
3441 done
3442 else
3443 $as_echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3445
3446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448 as_fn_error $? "cannot compute suffix of object files: cannot compile
3449 See \`config.log' for more details" "$LINENO" 5; }
3450 fi
3451 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3452 fi
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3454 $as_echo "$ac_cv_objext" >&6; }
3455 OBJEXT=$ac_cv_objext
3456 ac_objext=$OBJEXT
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3458 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3459 if ${ac_cv_c_compiler_gnu+:} false; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3464
3465 int
3466 main ()
3467 {
3468 #ifndef __GNUC__
3469 choke me
3470 #endif
3471
3472 ;
3473 return 0;
3474 }
3475 _ACEOF
3476 if ac_fn_c_try_compile "$LINENO"; then :
3477 ac_compiler_gnu=yes
3478 else
3479 ac_compiler_gnu=no
3480 fi
3481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3483
3484 fi
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3486 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3487 if test $ac_compiler_gnu = yes; then
3488 GCC=yes
3489 else
3490 GCC=
3491 fi
3492 ac_test_CFLAGS=${CFLAGS+set}
3493 ac_save_CFLAGS=$CFLAGS
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3495 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3496 if ${ac_cv_prog_cc_g+:} false; then :
3497 $as_echo_n "(cached) " >&6
3498 else
3499 ac_save_c_werror_flag=$ac_c_werror_flag
3500 ac_c_werror_flag=yes
3501 ac_cv_prog_cc_g=no
3502 CFLAGS="-g"
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505
3506 int
3507 main ()
3508 {
3509
3510 ;
3511 return 0;
3512 }
3513 _ACEOF
3514 if ac_fn_c_try_compile "$LINENO"; then :
3515 ac_cv_prog_cc_g=yes
3516 else
3517 CFLAGS=""
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3520
3521 int
3522 main ()
3523 {
3524
3525 ;
3526 return 0;
3527 }
3528 _ACEOF
3529 if ac_fn_c_try_compile "$LINENO"; then :
3530
3531 else
3532 ac_c_werror_flag=$ac_save_c_werror_flag
3533 CFLAGS="-g"
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3536
3537 int
3538 main ()
3539 {
3540
3541 ;
3542 return 0;
3543 }
3544 _ACEOF
3545 if ac_fn_c_try_compile "$LINENO"; then :
3546 ac_cv_prog_cc_g=yes
3547 fi
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 fi
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 fi
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 ac_c_werror_flag=$ac_save_c_werror_flag
3554 fi
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3556 $as_echo "$ac_cv_prog_cc_g" >&6; }
3557 if test "$ac_test_CFLAGS" = set; then
3558 CFLAGS=$ac_save_CFLAGS
3559 elif test $ac_cv_prog_cc_g = yes; then
3560 if test "$GCC" = yes; then
3561 CFLAGS="-g -O2"
3562 else
3563 CFLAGS="-g"
3564 fi
3565 else
3566 if test "$GCC" = yes; then
3567 CFLAGS="-O2"
3568 else
3569 CFLAGS=
3570 fi
3571 fi
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3573 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3574 if ${ac_cv_prog_cc_c89+:} false; then :
3575 $as_echo_n "(cached) " >&6
3576 else
3577 ac_cv_prog_cc_c89=no
3578 ac_save_CC=$CC
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3581 #include <stdarg.h>
3582 #include <stdio.h>
3583 struct stat;
3584 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3585 struct buf { int x; };
3586 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3587 static char *e (p, i)
3588 char **p;
3589 int i;
3590 {
3591 return p[i];
3592 }
3593 static char *f (char * (*g) (char **, int), char **p, ...)
3594 {
3595 char *s;
3596 va_list v;
3597 va_start (v,p);
3598 s = g (p, va_arg (v,int));
3599 va_end (v);
3600 return s;
3601 }
3602
3603 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3604 function prototypes and stuff, but not '\xHH' hex character constants.
3605 These don't provoke an error unfortunately, instead are silently treated
3606 as 'x'. The following induces an error, until -std is added to get
3607 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3608 array size at least. It's necessary to write '\x00'==0 to get something
3609 that's true only with -std. */
3610 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3611
3612 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3613 inside strings and character constants. */
3614 #define FOO(x) 'x'
3615 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3616
3617 int test (int i, double x);
3618 struct s1 {int (*f) (int a);};
3619 struct s2 {int (*f) (double a);};
3620 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3621 int argc;
3622 char **argv;
3623 int
3624 main ()
3625 {
3626 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3627 ;
3628 return 0;
3629 }
3630 _ACEOF
3631 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3632 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3633 do
3634 CC="$ac_save_CC $ac_arg"
3635 if ac_fn_c_try_compile "$LINENO"; then :
3636 ac_cv_prog_cc_c89=$ac_arg
3637 fi
3638 rm -f core conftest.err conftest.$ac_objext
3639 test "x$ac_cv_prog_cc_c89" != "xno" && break
3640 done
3641 rm -f conftest.$ac_ext
3642 CC=$ac_save_CC
3643
3644 fi
3645 # AC_CACHE_VAL
3646 case "x$ac_cv_prog_cc_c89" in
3647 x)
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3649 $as_echo "none needed" >&6; } ;;
3650 xno)
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3652 $as_echo "unsupported" >&6; } ;;
3653 *)
3654 CC="$CC $ac_cv_prog_cc_c89"
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3656 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3657 esac
3658 if test "x$ac_cv_prog_cc_c89" != xno; then :
3659
3660 fi
3661
3662 ac_ext=c
3663 ac_cpp='$CPP $CPPFLAGS'
3664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667 DEPDIR="${am__leading_dot}deps"
3668
3669 ac_config_commands="$ac_config_commands depfiles"
3670
3671
3672 am_make=${MAKE-make}
3673 cat > confinc << 'END'
3674 am__doit:
3675 @echo this is the am__doit target
3676 .PHONY: am__doit
3677 END
3678 # If we don't find an include directive, just comment out the code.
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3680 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3681 am__include="#"
3682 am__quote=
3683 _am_result=none
3684 # First try GNU make style include.
3685 echo "include confinc" > confmf
3686 # Ignore all kinds of additional output from 'make'.
3687 case `$am_make -s -f confmf 2> /dev/null` in #(
3688 *the\ am__doit\ target*)
3689 am__include=include
3690 am__quote=
3691 _am_result=GNU
3692 ;;
3693 esac
3694 # Now try BSD make style include.
3695 if test "$am__include" = "#"; then
3696 echo '.include "confinc"' > confmf
3697 case `$am_make -s -f confmf 2> /dev/null` in #(
3698 *the\ am__doit\ target*)
3699 am__include=.include
3700 am__quote="\""
3701 _am_result=BSD
3702 ;;
3703 esac
3704 fi
3705
3706
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3708 $as_echo "$_am_result" >&6; }
3709 rm -f confinc confmf
3710
3711 # Check whether --enable-dependency-tracking was given.
3712 if test "${enable_dependency_tracking+set}" = set; then :
3713 enableval=$enable_dependency_tracking;
3714 fi
3715
3716 if test "x$enable_dependency_tracking" != xno; then
3717 am_depcomp="$ac_aux_dir/depcomp"
3718 AMDEPBACKSLASH='\'
3719 am__nodep='_no'
3720 fi
3721 if test "x$enable_dependency_tracking" != xno; then
3722 AMDEP_TRUE=
3723 AMDEP_FALSE='#'
3724 else
3725 AMDEP_TRUE='#'
3726 AMDEP_FALSE=
3727 fi
3728
3729
3730
3731 depcc="$CC" am_compiler_list=
3732
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3734 $as_echo_n "checking dependency style of $depcc... " >&6; }
3735 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3739 # We make a subdir and do the tests there. Otherwise we can end up
3740 # making bogus files that we don't know about and never remove. For
3741 # instance it was reported that on HP-UX the gcc test will end up
3742 # making a dummy file named 'D' -- because '-MD' means "put the output
3743 # in D".
3744 rm -rf conftest.dir
3745 mkdir conftest.dir
3746 # Copy depcomp to subdir because otherwise we won't find it if we're
3747 # using a relative directory.
3748 cp "$am_depcomp" conftest.dir
3749 cd conftest.dir
3750 # We will build objects and dependencies in a subdirectory because
3751 # it helps to detect inapplicable dependency modes. For instance
3752 # both Tru64's cc and ICC support -MD to output dependencies as a
3753 # side effect of compilation, but ICC will put the dependencies in
3754 # the current directory while Tru64 will put them in the object
3755 # directory.
3756 mkdir sub
3757
3758 am_cv_CC_dependencies_compiler_type=none
3759 if test "$am_compiler_list" = ""; then
3760 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3761 fi
3762 am__universal=false
3763 case " $depcc " in #(
3764 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3765 esac
3766
3767 for depmode in $am_compiler_list; do
3768 # Setup a source with many dependencies, because some compilers
3769 # like to wrap large dependency lists on column 80 (with \), and
3770 # we should not choose a depcomp mode which is confused by this.
3771 #
3772 # We need to recreate these files for each test, as the compiler may
3773 # overwrite some of them when testing with obscure command lines.
3774 # This happens at least with the AIX C compiler.
3775 : > sub/conftest.c
3776 for i in 1 2 3 4 5 6; do
3777 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3778 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3779 # Solaris 10 /bin/sh.
3780 echo '/* dummy */' > sub/conftst$i.h
3781 done
3782 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3783
3784 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3785 # mode. It turns out that the SunPro C++ compiler does not properly
3786 # handle '-M -o', and we need to detect this. Also, some Intel
3787 # versions had trouble with output in subdirs.
3788 am__obj=sub/conftest.${OBJEXT-o}
3789 am__minus_obj="-o $am__obj"
3790 case $depmode in
3791 gcc)
3792 # This depmode causes a compiler race in universal mode.
3793 test "$am__universal" = false || continue
3794 ;;
3795 nosideeffect)
3796 # After this tag, mechanisms are not by side-effect, so they'll
3797 # only be used when explicitly requested.
3798 if test "x$enable_dependency_tracking" = xyes; then
3799 continue
3800 else
3801 break
3802 fi
3803 ;;
3804 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3805 # This compiler won't grok '-c -o', but also, the minuso test has
3806 # not run yet. These depmodes are late enough in the game, and
3807 # so weak that their functioning should not be impacted.
3808 am__obj=conftest.${OBJEXT-o}
3809 am__minus_obj=
3810 ;;
3811 none) break ;;
3812 esac
3813 if depmode=$depmode \
3814 source=sub/conftest.c object=$am__obj \
3815 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3816 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3817 >/dev/null 2>conftest.err &&
3818 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3819 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3820 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3821 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3822 # icc doesn't choke on unknown options, it will just issue warnings
3823 # or remarks (even with -Werror). So we grep stderr for any message
3824 # that says an option was ignored or not supported.
3825 # When given -MP, icc 7.0 and 7.1 complain thusly:
3826 # icc: Command line warning: ignoring option '-M'; no argument required
3827 # The diagnosis changed in icc 8.0:
3828 # icc: Command line remark: option '-MP' not supported
3829 if (grep 'ignoring option' conftest.err ||
3830 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3831 am_cv_CC_dependencies_compiler_type=$depmode
3832 break
3833 fi
3834 fi
3835 done
3836
3837 cd ..
3838 rm -rf conftest.dir
3839 else
3840 am_cv_CC_dependencies_compiler_type=none
3841 fi
3842
3843 fi
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3845 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3846 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3847
3848 if
3849 test "x$enable_dependency_tracking" != xno \
3850 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3851 am__fastdepCC_TRUE=
3852 am__fastdepCC_FALSE='#'
3853 else
3854 am__fastdepCC_TRUE='#'
3855 am__fastdepCC_FALSE=
3856 fi
3857
3858
3859
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3861 $as_echo_n "checking whether ln -s works... " >&6; }
3862 LN_S=$as_ln_s
3863 if test "$LN_S" = "ln -s"; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3865 $as_echo "yes" >&6; }
3866 else
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3868 $as_echo "no, using $LN_S" >&6; }
3869 fi
3870
3871 case `pwd` in
3872 *\ * | *\ *)
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3874 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3875 esac
3876
3877
3878
3879 macro_version='2.4.2'
3880 macro_revision='1.3337'
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894 ltmain="$ac_aux_dir/ltmain.sh"
3895
3896 # Make sure we can run config.sub.
3897 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3898 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3899
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3901 $as_echo_n "checking build system type... " >&6; }
3902 if ${ac_cv_build+:} false; then :
3903 $as_echo_n "(cached) " >&6
3904 else
3905 ac_build_alias=$build_alias
3906 test "x$ac_build_alias" = x &&
3907 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3908 test "x$ac_build_alias" = x &&
3909 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3910 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3911 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3912
3913 fi
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3915 $as_echo "$ac_cv_build" >&6; }
3916 case $ac_cv_build in
3917 *-*-*) ;;
3918 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3919 esac
3920 build=$ac_cv_build
3921 ac_save_IFS=$IFS; IFS='-'
3922 set x $ac_cv_build
3923 shift
3924 build_cpu=$1
3925 build_vendor=$2
3926 shift; shift
3927 # Remember, the first character of IFS is used to create $*,
3928 # except with old shells:
3929 build_os=$*
3930 IFS=$ac_save_IFS
3931 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3932
3933
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3935 $as_echo_n "checking host system type... " >&6; }
3936 if ${ac_cv_host+:} false; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 if test "x$host_alias" = x; then
3940 ac_cv_host=$ac_cv_build
3941 else
3942 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3943 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3944 fi
3945
3946 fi
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3948 $as_echo "$ac_cv_host" >&6; }
3949 case $ac_cv_host in
3950 *-*-*) ;;
3951 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3952 esac
3953 host=$ac_cv_host
3954 ac_save_IFS=$IFS; IFS='-'
3955 set x $ac_cv_host
3956 shift
3957 host_cpu=$1
3958 host_vendor=$2
3959 shift; shift
3960 # Remember, the first character of IFS is used to create $*,
3961 # except with old shells:
3962 host_os=$*
3963 IFS=$ac_save_IFS
3964 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3965
3966
3967 # Backslashify metacharacters that are still active within
3968 # double-quoted strings.
3969 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3970
3971 # Same as above, but do not quote variable references.
3972 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3973
3974 # Sed substitution to delay expansion of an escaped shell variable in a
3975 # double_quote_subst'ed string.
3976 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3977
3978 # Sed substitution to delay expansion of an escaped single quote.
3979 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3980
3981 # Sed substitution to avoid accidental globbing in evaled expressions
3982 no_glob_subst='s/\*/\\\*/g'
3983
3984 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3985 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3986 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3987
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3989 $as_echo_n "checking how to print strings... " >&6; }
3990 # Test print first, because it will be a builtin if present.
3991 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3992 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3993 ECHO='print -r --'
3994 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3995 ECHO='printf %s\n'
3996 else
3997 # Use this function as a fallback that always works.
3998 func_fallback_echo ()
3999 {
4000 eval 'cat <<_LTECHO_EOF
4001 $1
4002 _LTECHO_EOF'
4003 }
4004 ECHO='func_fallback_echo'
4005 fi
4006
4007 # func_echo_all arg...
4008 # Invoke $ECHO with all args, space-separated.
4009 func_echo_all ()
4010 {
4011 $ECHO ""
4012 }
4013
4014 case "$ECHO" in
4015 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4016 $as_echo "printf" >&6; } ;;
4017 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4018 $as_echo "print -r" >&6; } ;;
4019 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4020 $as_echo "cat" >&6; } ;;
4021 esac
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4037 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4038 if ${ac_cv_path_SED+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4042 for ac_i in 1 2 3 4 5 6 7; do
4043 ac_script="$ac_script$as_nl$ac_script"
4044 done
4045 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4046 { ac_script=; unset ac_script;}
4047 if test -z "$SED"; then
4048 ac_path_SED_found=false
4049 # Loop through the user's path and test for each of PROGNAME-LIST
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4052 do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_prog in sed gsed; do
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4058 as_fn_executable_p "$ac_path_SED" || continue
4059 # Check for GNU ac_path_SED and select it if it is found.
4060 # Check for GNU $ac_path_SED
4061 case `"$ac_path_SED" --version 2>&1` in
4062 *GNU*)
4063 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4064 *)
4065 ac_count=0
4066 $as_echo_n 0123456789 >"conftest.in"
4067 while :
4068 do
4069 cat "conftest.in" "conftest.in" >"conftest.tmp"
4070 mv "conftest.tmp" "conftest.in"
4071 cp "conftest.in" "conftest.nl"
4072 $as_echo '' >> "conftest.nl"
4073 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4075 as_fn_arith $ac_count + 1 && ac_count=$as_val
4076 if test $ac_count -gt ${ac_path_SED_max-0}; then
4077 # Best one so far, save it but keep looking for a better one
4078 ac_cv_path_SED="$ac_path_SED"
4079 ac_path_SED_max=$ac_count
4080 fi
4081 # 10*(2^10) chars as input seems more than enough
4082 test $ac_count -gt 10 && break
4083 done
4084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4085 esac
4086
4087 $ac_path_SED_found && break 3
4088 done
4089 done
4090 done
4091 IFS=$as_save_IFS
4092 if test -z "$ac_cv_path_SED"; then
4093 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4094 fi
4095 else
4096 ac_cv_path_SED=$SED
4097 fi
4098
4099 fi
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4101 $as_echo "$ac_cv_path_SED" >&6; }
4102 SED="$ac_cv_path_SED"
4103 rm -f conftest.sed
4104
4105 test -z "$SED" && SED=sed
4106 Xsed="$SED -e 1s/^X//"
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4119 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4120 if ${ac_cv_path_GREP+:} false; then :
4121 $as_echo_n "(cached) " >&6
4122 else
4123 if test -z "$GREP"; then
4124 ac_path_GREP_found=false
4125 # Loop through the user's path and test for each of PROGNAME-LIST
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4128 do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
4131 for ac_prog in grep ggrep; do
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4134 as_fn_executable_p "$ac_path_GREP" || continue
4135 # Check for GNU ac_path_GREP and select it if it is found.
4136 # Check for GNU $ac_path_GREP
4137 case `"$ac_path_GREP" --version 2>&1` in
4138 *GNU*)
4139 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4140 *)
4141 ac_count=0
4142 $as_echo_n 0123456789 >"conftest.in"
4143 while :
4144 do
4145 cat "conftest.in" "conftest.in" >"conftest.tmp"
4146 mv "conftest.tmp" "conftest.in"
4147 cp "conftest.in" "conftest.nl"
4148 $as_echo 'GREP' >> "conftest.nl"
4149 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4150 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4151 as_fn_arith $ac_count + 1 && ac_count=$as_val
4152 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4153 # Best one so far, save it but keep looking for a better one
4154 ac_cv_path_GREP="$ac_path_GREP"
4155 ac_path_GREP_max=$ac_count
4156 fi
4157 # 10*(2^10) chars as input seems more than enough
4158 test $ac_count -gt 10 && break
4159 done
4160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4161 esac
4162
4163 $ac_path_GREP_found && break 3
4164 done
4165 done
4166 done
4167 IFS=$as_save_IFS
4168 if test -z "$ac_cv_path_GREP"; then
4169 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4170 fi
4171 else
4172 ac_cv_path_GREP=$GREP
4173 fi
4174
4175 fi
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4177 $as_echo "$ac_cv_path_GREP" >&6; }
4178 GREP="$ac_cv_path_GREP"
4179
4180
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4182 $as_echo_n "checking for egrep... " >&6; }
4183 if ${ac_cv_path_EGREP+:} false; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4187 then ac_cv_path_EGREP="$GREP -E"
4188 else
4189 if test -z "$EGREP"; then
4190 ac_path_EGREP_found=false
4191 # Loop through the user's path and test for each of PROGNAME-LIST
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4194 do
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
4197 for ac_prog in egrep; do
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4200 as_fn_executable_p "$ac_path_EGREP" || continue
4201 # Check for GNU ac_path_EGREP and select it if it is found.
4202 # Check for GNU $ac_path_EGREP
4203 case `"$ac_path_EGREP" --version 2>&1` in
4204 *GNU*)
4205 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4206 *)
4207 ac_count=0
4208 $as_echo_n 0123456789 >"conftest.in"
4209 while :
4210 do
4211 cat "conftest.in" "conftest.in" >"conftest.tmp"
4212 mv "conftest.tmp" "conftest.in"
4213 cp "conftest.in" "conftest.nl"
4214 $as_echo 'EGREP' >> "conftest.nl"
4215 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4216 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4217 as_fn_arith $ac_count + 1 && ac_count=$as_val
4218 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4219 # Best one so far, save it but keep looking for a better one
4220 ac_cv_path_EGREP="$ac_path_EGREP"
4221 ac_path_EGREP_max=$ac_count
4222 fi
4223 # 10*(2^10) chars as input seems more than enough
4224 test $ac_count -gt 10 && break
4225 done
4226 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4227 esac
4228
4229 $ac_path_EGREP_found && break 3
4230 done
4231 done
4232 done
4233 IFS=$as_save_IFS
4234 if test -z "$ac_cv_path_EGREP"; then
4235 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4236 fi
4237 else
4238 ac_cv_path_EGREP=$EGREP
4239 fi
4240
4241 fi
4242 fi
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4244 $as_echo "$ac_cv_path_EGREP" >&6; }
4245 EGREP="$ac_cv_path_EGREP"
4246
4247
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4249 $as_echo_n "checking for fgrep... " >&6; }
4250 if ${ac_cv_path_FGREP+:} false; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4254 then ac_cv_path_FGREP="$GREP -F"
4255 else
4256 if test -z "$FGREP"; then
4257 ac_path_FGREP_found=false
4258 # Loop through the user's path and test for each of PROGNAME-LIST
4259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4261 do
4262 IFS=$as_save_IFS
4263 test -z "$as_dir" && as_dir=.
4264 for ac_prog in fgrep; do
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4267 as_fn_executable_p "$ac_path_FGREP" || continue
4268 # Check for GNU ac_path_FGREP and select it if it is found.
4269 # Check for GNU $ac_path_FGREP
4270 case `"$ac_path_FGREP" --version 2>&1` in
4271 *GNU*)
4272 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4273 *)
4274 ac_count=0
4275 $as_echo_n 0123456789 >"conftest.in"
4276 while :
4277 do
4278 cat "conftest.in" "conftest.in" >"conftest.tmp"
4279 mv "conftest.tmp" "conftest.in"
4280 cp "conftest.in" "conftest.nl"
4281 $as_echo 'FGREP' >> "conftest.nl"
4282 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4284 as_fn_arith $ac_count + 1 && ac_count=$as_val
4285 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4286 # Best one so far, save it but keep looking for a better one
4287 ac_cv_path_FGREP="$ac_path_FGREP"
4288 ac_path_FGREP_max=$ac_count
4289 fi
4290 # 10*(2^10) chars as input seems more than enough
4291 test $ac_count -gt 10 && break
4292 done
4293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4294 esac
4295
4296 $ac_path_FGREP_found && break 3
4297 done
4298 done
4299 done
4300 IFS=$as_save_IFS
4301 if test -z "$ac_cv_path_FGREP"; then
4302 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4303 fi
4304 else
4305 ac_cv_path_FGREP=$FGREP
4306 fi
4307
4308 fi
4309 fi
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4311 $as_echo "$ac_cv_path_FGREP" >&6; }
4312 FGREP="$ac_cv_path_FGREP"
4313
4314
4315 test -z "$GREP" && GREP=grep
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335 # Check whether --with-gnu-ld was given.
4336 if test "${with_gnu_ld+set}" = set; then :
4337 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4338 else
4339 with_gnu_ld=no
4340 fi
4341
4342 ac_prog=ld
4343 if test "$GCC" = yes; then
4344 # Check if gcc -print-prog-name=ld gives a path.
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4346 $as_echo_n "checking for ld used by $CC... " >&6; }
4347 case $host in
4348 *-*-mingw*)
4349 # gcc leaves a trailing carriage return which upsets mingw
4350 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4351 *)
4352 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4353 esac
4354 case $ac_prog in
4355 # Accept absolute paths.
4356 [\\/]* | ?:[\\/]*)
4357 re_direlt='/[^/][^/]*/\.\./'
4358 # Canonicalize the pathname of ld
4359 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4360 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4361 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4362 done
4363 test -z "$LD" && LD="$ac_prog"
4364 ;;
4365 "")
4366 # If it fails, then pretend we aren't using GCC.
4367 ac_prog=ld
4368 ;;
4369 *)
4370 # If it is relative, then search for the first ld in PATH.
4371 with_gnu_ld=unknown
4372 ;;
4373 esac
4374 elif test "$with_gnu_ld" = yes; then
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4376 $as_echo_n "checking for GNU ld... " >&6; }
4377 else
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4379 $as_echo_n "checking for non-GNU ld... " >&6; }
4380 fi
4381 if ${lt_cv_path_LD+:} false; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 if test -z "$LD"; then
4385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4386 for ac_dir in $PATH; do
4387 IFS="$lt_save_ifs"
4388 test -z "$ac_dir" && ac_dir=.
4389 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4390 lt_cv_path_LD="$ac_dir/$ac_prog"
4391 # Check to see if the program is GNU ld. I'd rather use --version,
4392 # but apparently some variants of GNU ld only accept -v.
4393 # Break only if it was the GNU/non-GNU ld that we prefer.
4394 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4395 *GNU* | *'with BFD'*)
4396 test "$with_gnu_ld" != no && break
4397 ;;
4398 *)
4399 test "$with_gnu_ld" != yes && break
4400 ;;
4401 esac
4402 fi
4403 done
4404 IFS="$lt_save_ifs"
4405 else
4406 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4407 fi
4408 fi
4409
4410 LD="$lt_cv_path_LD"
4411 if test -n "$LD"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4413 $as_echo "$LD" >&6; }
4414 else
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4417 fi
4418 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4420 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4421 if ${lt_cv_prog_gnu_ld+:} false; then :
4422 $as_echo_n "(cached) " >&6
4423 else
4424 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4425 case `$LD -v 2>&1 </dev/null` in
4426 *GNU* | *'with BFD'*)
4427 lt_cv_prog_gnu_ld=yes
4428 ;;
4429 *)
4430 lt_cv_prog_gnu_ld=no
4431 ;;
4432 esac
4433 fi
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4435 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4436 with_gnu_ld=$lt_cv_prog_gnu_ld
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4447 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4448 if ${lt_cv_path_NM+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 if test -n "$NM"; then
4452 # Let the user override the test.
4453 lt_cv_path_NM="$NM"
4454 else
4455 lt_nm_to_check="${ac_tool_prefix}nm"
4456 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4457 lt_nm_to_check="$lt_nm_to_check nm"
4458 fi
4459 for lt_tmp_nm in $lt_nm_to_check; do
4460 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4461 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4462 IFS="$lt_save_ifs"
4463 test -z "$ac_dir" && ac_dir=.
4464 tmp_nm="$ac_dir/$lt_tmp_nm"
4465 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4466 # Check to see if the nm accepts a BSD-compat flag.
4467 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4468 # nm: unknown option "B" ignored
4469 # Tru64's nm complains that /dev/null is an invalid object file
4470 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4471 */dev/null* | *'Invalid file or object type'*)
4472 lt_cv_path_NM="$tmp_nm -B"
4473 break
4474 ;;
4475 *)
4476 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4477 */dev/null*)
4478 lt_cv_path_NM="$tmp_nm -p"
4479 break
4480 ;;
4481 *)
4482 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4483 continue # so that we can try to find one that supports BSD flags
4484 ;;
4485 esac
4486 ;;
4487 esac
4488 fi
4489 done
4490 IFS="$lt_save_ifs"
4491 done
4492 : ${lt_cv_path_NM=no}
4493 fi
4494 fi
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4496 $as_echo "$lt_cv_path_NM" >&6; }
4497 if test "$lt_cv_path_NM" != "no"; then
4498 NM="$lt_cv_path_NM"
4499 else
4500 # Didn't find any BSD compatible name lister, look for dumpbin.
4501 if test -n "$DUMPBIN"; then :
4502 # Let the user override the test.
4503 else
4504 if test -n "$ac_tool_prefix"; then
4505 for ac_prog in dumpbin "link -dump"
4506 do
4507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if ${ac_cv_prog_DUMPBIN+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -n "$DUMPBIN"; then
4515 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4527 fi
4528 done
4529 done
4530 IFS=$as_save_IFS
4531
4532 fi
4533 fi
4534 DUMPBIN=$ac_cv_prog_DUMPBIN
4535 if test -n "$DUMPBIN"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4537 $as_echo "$DUMPBIN" >&6; }
4538 else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4541 fi
4542
4543
4544 test -n "$DUMPBIN" && break
4545 done
4546 fi
4547 if test -z "$DUMPBIN"; then
4548 ac_ct_DUMPBIN=$DUMPBIN
4549 for ac_prog in dumpbin "link -dump"
4550 do
4551 # Extract the first word of "$ac_prog", so it can be a program name with args.
4552 set dummy $ac_prog; ac_word=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$ac_ct_DUMPBIN"; then
4559 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 fi
4577 fi
4578 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4579 if test -n "$ac_ct_DUMPBIN"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4581 $as_echo "$ac_ct_DUMPBIN" >&6; }
4582 else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4585 fi
4586
4587
4588 test -n "$ac_ct_DUMPBIN" && break
4589 done
4590
4591 if test "x$ac_ct_DUMPBIN" = x; then
4592 DUMPBIN=":"
4593 else
4594 case $cross_compiling:$ac_tool_warned in
4595 yes:)
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4598 ac_tool_warned=yes ;;
4599 esac
4600 DUMPBIN=$ac_ct_DUMPBIN
4601 fi
4602 fi
4603
4604 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4605 *COFF*)
4606 DUMPBIN="$DUMPBIN -symbols"
4607 ;;
4608 *)
4609 DUMPBIN=:
4610 ;;
4611 esac
4612 fi
4613
4614 if test "$DUMPBIN" != ":"; then
4615 NM="$DUMPBIN"
4616 fi
4617 fi
4618 test -z "$NM" && NM=nm
4619
4620
4621
4622
4623
4624
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4626 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4627 if ${lt_cv_nm_interface+:} false; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 lt_cv_nm_interface="BSD nm"
4631 echo "int some_variable = 0;" > conftest.$ac_ext
4632 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4633 (eval "$ac_compile" 2>conftest.err)
4634 cat conftest.err >&5
4635 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4636 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4637 cat conftest.err >&5
4638 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4639 cat conftest.out >&5
4640 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4641 lt_cv_nm_interface="MS dumpbin"
4642 fi
4643 rm -f conftest*
4644 fi
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4646 $as_echo "$lt_cv_nm_interface" >&6; }
4647
4648 # find the maximum length of command line arguments
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4650 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4651 if ${lt_cv_sys_max_cmd_len+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 i=0
4655 teststring="ABCD"
4656
4657 case $build_os in
4658 msdosdjgpp*)
4659 # On DJGPP, this test can blow up pretty badly due to problems in libc
4660 # (any single argument exceeding 2000 bytes causes a buffer overrun
4661 # during glob expansion). Even if it were fixed, the result of this
4662 # check would be larger than it should be.
4663 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4664 ;;
4665
4666 gnu*)
4667 # Under GNU Hurd, this test is not required because there is
4668 # no limit to the length of command line arguments.
4669 # Libtool will interpret -1 as no limit whatsoever
4670 lt_cv_sys_max_cmd_len=-1;
4671 ;;
4672
4673 cygwin* | mingw* | cegcc*)
4674 # On Win9x/ME, this test blows up -- it succeeds, but takes
4675 # about 5 minutes as the teststring grows exponentially.
4676 # Worse, since 9x/ME are not pre-emptively multitasking,
4677 # you end up with a "frozen" computer, even though with patience
4678 # the test eventually succeeds (with a max line length of 256k).
4679 # Instead, let's just punt: use the minimum linelength reported by
4680 # all of the supported platforms: 8192 (on NT/2K/XP).
4681 lt_cv_sys_max_cmd_len=8192;
4682 ;;
4683
4684 mint*)
4685 # On MiNT this can take a long time and run out of memory.
4686 lt_cv_sys_max_cmd_len=8192;
4687 ;;
4688
4689 amigaos*)
4690 # On AmigaOS with pdksh, this test takes hours, literally.
4691 # So we just punt and use a minimum line length of 8192.
4692 lt_cv_sys_max_cmd_len=8192;
4693 ;;
4694
4695 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4696 # This has been around since 386BSD, at least. Likely further.
4697 if test -x /sbin/sysctl; then
4698 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4699 elif test -x /usr/sbin/sysctl; then
4700 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4701 else
4702 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4703 fi
4704 # And add a safety zone
4705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4707 ;;
4708
4709 interix*)
4710 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4711 lt_cv_sys_max_cmd_len=196608
4712 ;;
4713
4714 os2*)
4715 # The test takes a long time on OS/2.
4716 lt_cv_sys_max_cmd_len=8192
4717 ;;
4718
4719 osf*)
4720 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4721 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4722 # nice to cause kernel panics so lets avoid the loop below.
4723 # First set a reasonable default.
4724 lt_cv_sys_max_cmd_len=16384
4725 #
4726 if test -x /sbin/sysconfig; then
4727 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4728 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4729 esac
4730 fi
4731 ;;
4732 sco3.2v5*)
4733 lt_cv_sys_max_cmd_len=102400
4734 ;;
4735 sysv5* | sco5v6* | sysv4.2uw2*)
4736 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4737 if test -n "$kargmax"; then
4738 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4739 else
4740 lt_cv_sys_max_cmd_len=32768
4741 fi
4742 ;;
4743 *)
4744 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4745 if test -n "$lt_cv_sys_max_cmd_len"; then
4746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4748 else
4749 # Make teststring a little bigger before we do anything with it.
4750 # a 1K string should be a reasonable start.
4751 for i in 1 2 3 4 5 6 7 8 ; do
4752 teststring=$teststring$teststring
4753 done
4754 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4755 # If test is not a shell built-in, we'll probably end up computing a
4756 # maximum length that is only half of the actual maximum length, but
4757 # we can't tell.
4758 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4759 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4760 test $i != 17 # 1/2 MB should be enough
4761 do
4762 i=`expr $i + 1`
4763 teststring=$teststring$teststring
4764 done
4765 # Only check the string length outside the loop.
4766 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4767 teststring=
4768 # Add a significant safety factor because C++ compilers can tack on
4769 # massive amounts of additional arguments before passing them to the
4770 # linker. It appears as though 1/2 is a usable value.
4771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4772 fi
4773 ;;
4774 esac
4775
4776 fi
4777
4778 if test -n $lt_cv_sys_max_cmd_len ; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4780 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4781 else
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4783 $as_echo "none" >&6; }
4784 fi
4785 max_cmd_len=$lt_cv_sys_max_cmd_len
4786
4787
4788
4789
4790
4791
4792 : ${CP="cp -f"}
4793 : ${MV="mv -f"}
4794 : ${RM="rm -f"}
4795
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4797 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4798 # Try some XSI features
4799 xsi_shell=no
4800 ( _lt_dummy="a/b/c"
4801 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4802 = c,a/b,b/c, \
4803 && eval 'test $(( 1 + 1 )) -eq 2 \
4804 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4805 && xsi_shell=yes
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4807 $as_echo "$xsi_shell" >&6; }
4808
4809
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4811 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4812 lt_shell_append=no
4813 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4814 >/dev/null 2>&1 \
4815 && lt_shell_append=yes
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4817 $as_echo "$lt_shell_append" >&6; }
4818
4819
4820 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4821 lt_unset=unset
4822 else
4823 lt_unset=false
4824 fi
4825
4826
4827
4828
4829
4830 # test EBCDIC or ASCII
4831 case `echo X|tr X '\101'` in
4832 A) # ASCII based system
4833 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4834 lt_SP2NL='tr \040 \012'
4835 lt_NL2SP='tr \015\012 \040\040'
4836 ;;
4837 *) # EBCDIC based system
4838 lt_SP2NL='tr \100 \n'
4839 lt_NL2SP='tr \r\n \100\100'
4840 ;;
4841 esac
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4852 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4853 if ${lt_cv_to_host_file_cmd+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 case $host in
4857 *-*-mingw* )
4858 case $build in
4859 *-*-mingw* ) # actually msys
4860 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4861 ;;
4862 *-*-cygwin* )
4863 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4864 ;;
4865 * ) # otherwise, assume *nix
4866 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4867 ;;
4868 esac
4869 ;;
4870 *-*-cygwin* )
4871 case $build in
4872 *-*-mingw* ) # actually msys
4873 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4874 ;;
4875 *-*-cygwin* )
4876 lt_cv_to_host_file_cmd=func_convert_file_noop
4877 ;;
4878 * ) # otherwise, assume *nix
4879 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4880 ;;
4881 esac
4882 ;;
4883 * ) # unhandled hosts (and "normal" native builds)
4884 lt_cv_to_host_file_cmd=func_convert_file_noop
4885 ;;
4886 esac
4887
4888 fi
4889
4890 to_host_file_cmd=$lt_cv_to_host_file_cmd
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4892 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4893
4894
4895
4896
4897
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4899 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4900 if ${lt_cv_to_tool_file_cmd+:} false; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 #assume ordinary cross tools, or native build.
4904 lt_cv_to_tool_file_cmd=func_convert_file_noop
4905 case $host in
4906 *-*-mingw* )
4907 case $build in
4908 *-*-mingw* ) # actually msys
4909 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4910 ;;
4911 esac
4912 ;;
4913 esac
4914
4915 fi
4916
4917 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4919 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4920
4921
4922
4923
4924
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4926 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4927 if ${lt_cv_ld_reload_flag+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 lt_cv_ld_reload_flag='-r'
4931 fi
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4933 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4934 reload_flag=$lt_cv_ld_reload_flag
4935 case $reload_flag in
4936 "" | " "*) ;;
4937 *) reload_flag=" $reload_flag" ;;
4938 esac
4939 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4940 case $host_os in
4941 cygwin* | mingw* | pw32* | cegcc*)
4942 if test "$GCC" != yes; then
4943 reload_cmds=false
4944 fi
4945 ;;
4946 darwin*)
4947 if test "$GCC" = yes; then
4948 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4949 else
4950 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4951 fi
4952 ;;
4953 esac
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963 if test -n "$ac_tool_prefix"; then
4964 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4965 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 $as_echo_n "checking for $ac_word... " >&6; }
4968 if ${ac_cv_prog_OBJDUMP+:} false; then :
4969 $as_echo_n "(cached) " >&6
4970 else
4971 if test -n "$OBJDUMP"; then
4972 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4973 else
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4976 do
4977 IFS=$as_save_IFS
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4981 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 break 2
4984 fi
4985 done
4986 done
4987 IFS=$as_save_IFS
4988
4989 fi
4990 fi
4991 OBJDUMP=$ac_cv_prog_OBJDUMP
4992 if test -n "$OBJDUMP"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4994 $as_echo "$OBJDUMP" >&6; }
4995 else
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
4998 fi
4999
5000
5001 fi
5002 if test -z "$ac_cv_prog_OBJDUMP"; then
5003 ac_ct_OBJDUMP=$OBJDUMP
5004 # Extract the first word of "objdump", so it can be a program name with args.
5005 set dummy objdump; ac_word=$2
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 if test -n "$ac_ct_OBJDUMP"; then
5012 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5021 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5024 fi
5025 done
5026 done
5027 IFS=$as_save_IFS
5028
5029 fi
5030 fi
5031 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5032 if test -n "$ac_ct_OBJDUMP"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5034 $as_echo "$ac_ct_OBJDUMP" >&6; }
5035 else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5038 fi
5039
5040 if test "x$ac_ct_OBJDUMP" = x; then
5041 OBJDUMP="false"
5042 else
5043 case $cross_compiling:$ac_tool_warned in
5044 yes:)
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047 ac_tool_warned=yes ;;
5048 esac
5049 OBJDUMP=$ac_ct_OBJDUMP
5050 fi
5051 else
5052 OBJDUMP="$ac_cv_prog_OBJDUMP"
5053 fi
5054
5055 test -z "$OBJDUMP" && OBJDUMP=objdump
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5066 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5067 if ${lt_cv_deplibs_check_method+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 lt_cv_file_magic_cmd='$MAGIC_CMD'
5071 lt_cv_file_magic_test_file=
5072 lt_cv_deplibs_check_method='unknown'
5073 # Need to set the preceding variable on all platforms that support
5074 # interlibrary dependencies.
5075 # 'none' -- dependencies not supported.
5076 # `unknown' -- same as none, but documents that we really don't know.
5077 # 'pass_all' -- all dependencies passed with no checks.
5078 # 'test_compile' -- check by making test program.
5079 # 'file_magic [[regex]]' -- check by looking for files in library path
5080 # which responds to the $file_magic_cmd with a given extended regex.
5081 # If you have `file' or equivalent on your system and you're not sure
5082 # whether `pass_all' will *always* work, you probably want this one.
5083
5084 case $host_os in
5085 aix[4-9]*)
5086 lt_cv_deplibs_check_method=pass_all
5087 ;;
5088
5089 beos*)
5090 lt_cv_deplibs_check_method=pass_all
5091 ;;
5092
5093 bsdi[45]*)
5094 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5095 lt_cv_file_magic_cmd='/usr/bin/file -L'
5096 lt_cv_file_magic_test_file=/shlib/libc.so
5097 ;;
5098
5099 cygwin*)
5100 # func_win32_libid is a shell function defined in ltmain.sh
5101 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5102 lt_cv_file_magic_cmd='func_win32_libid'
5103 ;;
5104
5105 mingw* | pw32*)
5106 # Base MSYS/MinGW do not provide the 'file' command needed by
5107 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5108 # unless we find 'file', for example because we are cross-compiling.
5109 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5110 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5112 lt_cv_file_magic_cmd='func_win32_libid'
5113 else
5114 # Keep this pattern in sync with the one in func_win32_libid.
5115 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5116 lt_cv_file_magic_cmd='$OBJDUMP -f'
5117 fi
5118 ;;
5119
5120 cegcc*)
5121 # use the weaker test based on 'objdump'. See mingw*.
5122 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5123 lt_cv_file_magic_cmd='$OBJDUMP -f'
5124 ;;
5125
5126 darwin* | rhapsody*)
5127 lt_cv_deplibs_check_method=pass_all
5128 ;;
5129
5130 freebsd* | dragonfly*)
5131 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5132 case $host_cpu in
5133 i*86 )
5134 # Not sure whether the presence of OpenBSD here was a mistake.
5135 # Let's accept both of them until this is cleared up.
5136 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5137 lt_cv_file_magic_cmd=/usr/bin/file
5138 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5139 ;;
5140 esac
5141 else
5142 lt_cv_deplibs_check_method=pass_all
5143 fi
5144 ;;
5145
5146 gnu*)
5147 lt_cv_deplibs_check_method=pass_all
5148 ;;
5149
5150 haiku*)
5151 lt_cv_deplibs_check_method=pass_all
5152 ;;
5153
5154 hpux10.20* | hpux11*)
5155 lt_cv_file_magic_cmd=/usr/bin/file
5156 case $host_cpu in
5157 ia64*)
5158 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5159 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5160 ;;
5161 hppa*64*)
5162 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]'
5163 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5164 ;;
5165 *)
5166 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5167 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5168 ;;
5169 esac
5170 ;;
5171
5172 interix[3-9]*)
5173 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5175 ;;
5176
5177 irix5* | irix6* | nonstopux*)
5178 case $LD in
5179 *-32|*"-32 ") libmagic=32-bit;;
5180 *-n32|*"-n32 ") libmagic=N32;;
5181 *-64|*"-64 ") libmagic=64-bit;;
5182 *) libmagic=never-match;;
5183 esac
5184 lt_cv_deplibs_check_method=pass_all
5185 ;;
5186
5187 # This must be glibc/ELF.
5188 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5189 lt_cv_deplibs_check_method=pass_all
5190 ;;
5191
5192 netbsd*)
5193 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5195 else
5196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5197 fi
5198 ;;
5199
5200 newos6*)
5201 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5202 lt_cv_file_magic_cmd=/usr/bin/file
5203 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5204 ;;
5205
5206 *nto* | *qnx*)
5207 lt_cv_deplibs_check_method=pass_all
5208 ;;
5209
5210 openbsd*)
5211 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5213 else
5214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5215 fi
5216 ;;
5217
5218 osf3* | osf4* | osf5*)
5219 lt_cv_deplibs_check_method=pass_all
5220 ;;
5221
5222 rdos*)
5223 lt_cv_deplibs_check_method=pass_all
5224 ;;
5225
5226 solaris*)
5227 lt_cv_deplibs_check_method=pass_all
5228 ;;
5229
5230 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5231 lt_cv_deplibs_check_method=pass_all
5232 ;;
5233
5234 sysv4 | sysv4.3*)
5235 case $host_vendor in
5236 motorola)
5237 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]'
5238 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5239 ;;
5240 ncr)
5241 lt_cv_deplibs_check_method=pass_all
5242 ;;
5243 sequent)
5244 lt_cv_file_magic_cmd='/bin/file'
5245 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5246 ;;
5247 sni)
5248 lt_cv_file_magic_cmd='/bin/file'
5249 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5250 lt_cv_file_magic_test_file=/lib/libc.so
5251 ;;
5252 siemens)
5253 lt_cv_deplibs_check_method=pass_all
5254 ;;
5255 pc)
5256 lt_cv_deplibs_check_method=pass_all
5257 ;;
5258 esac
5259 ;;
5260
5261 tpf*)
5262 lt_cv_deplibs_check_method=pass_all
5263 ;;
5264 esac
5265
5266 fi
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5268 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5269
5270 file_magic_glob=
5271 want_nocaseglob=no
5272 if test "$build" = "$host"; then
5273 case $host_os in
5274 mingw* | pw32*)
5275 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5276 want_nocaseglob=yes
5277 else
5278 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5279 fi
5280 ;;
5281 esac
5282 fi
5283
5284 file_magic_cmd=$lt_cv_file_magic_cmd
5285 deplibs_check_method=$lt_cv_deplibs_check_method
5286 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309 if test -n "$ac_tool_prefix"; then
5310 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5311 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if ${ac_cv_prog_DLLTOOL+:} false; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 if test -n "$DLLTOOL"; then
5318 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5322 do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5330 fi
5331 done
5332 done
5333 IFS=$as_save_IFS
5334
5335 fi
5336 fi
5337 DLLTOOL=$ac_cv_prog_DLLTOOL
5338 if test -n "$DLLTOOL"; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5340 $as_echo "$DLLTOOL" >&6; }
5341 else
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5344 fi
5345
5346
5347 fi
5348 if test -z "$ac_cv_prog_DLLTOOL"; then
5349 ac_ct_DLLTOOL=$DLLTOOL
5350 # Extract the first word of "dlltool", so it can be a program name with args.
5351 set dummy dlltool; ac_word=$2
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353 $as_echo_n "checking for $ac_word... " >&6; }
5354 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5355 $as_echo_n "(cached) " >&6
5356 else
5357 if test -n "$ac_ct_DLLTOOL"; then
5358 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 break 2
5370 fi
5371 done
5372 done
5373 IFS=$as_save_IFS
5374
5375 fi
5376 fi
5377 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5378 if test -n "$ac_ct_DLLTOOL"; then
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5380 $as_echo "$ac_ct_DLLTOOL" >&6; }
5381 else
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 $as_echo "no" >&6; }
5384 fi
5385
5386 if test "x$ac_ct_DLLTOOL" = x; then
5387 DLLTOOL="false"
5388 else
5389 case $cross_compiling:$ac_tool_warned in
5390 yes:)
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5393 ac_tool_warned=yes ;;
5394 esac
5395 DLLTOOL=$ac_ct_DLLTOOL
5396 fi
5397 else
5398 DLLTOOL="$ac_cv_prog_DLLTOOL"
5399 fi
5400
5401 test -z "$DLLTOOL" && DLLTOOL=dlltool
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5413 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5414 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 lt_cv_sharedlib_from_linklib_cmd='unknown'
5418
5419 case $host_os in
5420 cygwin* | mingw* | pw32* | cegcc*)
5421 # two different shell functions defined in ltmain.sh
5422 # decide which to use based on capabilities of $DLLTOOL
5423 case `$DLLTOOL --help 2>&1` in
5424 *--identify-strict*)
5425 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5426 ;;
5427 *)
5428 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5429 ;;
5430 esac
5431 ;;
5432 *)
5433 # fallback: assume linklib IS sharedlib
5434 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5435 ;;
5436 esac
5437
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5440 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5441 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5442 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5443
5444
5445
5446
5447
5448
5449
5450
5451 if test -n "$ac_tool_prefix"; then
5452 for ac_prog in ar
5453 do
5454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if ${ac_cv_prog_AR+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 if test -n "$AR"; then
5462 ac_cv_prog_AR="$AR" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5474 fi
5475 done
5476 done
5477 IFS=$as_save_IFS
5478
5479 fi
5480 fi
5481 AR=$ac_cv_prog_AR
5482 if test -n "$AR"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5484 $as_echo "$AR" >&6; }
5485 else
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489
5490
5491 test -n "$AR" && break
5492 done
5493 fi
5494 if test -z "$AR"; then
5495 ac_ct_AR=$AR
5496 for ac_prog in ar
5497 do
5498 # Extract the first word of "$ac_prog", so it can be a program name with args.
5499 set dummy $ac_prog; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5503 $as_echo_n "(cached) " >&6
5504 else
5505 if test -n "$ac_ct_AR"; then
5506 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5507 else
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH
5510 do
5511 IFS=$as_save_IFS
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5515 ac_cv_prog_ac_ct_AR="$ac_prog"
5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 break 2
5518 fi
5519 done
5520 done
5521 IFS=$as_save_IFS
5522
5523 fi
5524 fi
5525 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5526 if test -n "$ac_ct_AR"; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5528 $as_echo "$ac_ct_AR" >&6; }
5529 else
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5532 fi
5533
5534
5535 test -n "$ac_ct_AR" && break
5536 done
5537
5538 if test "x$ac_ct_AR" = x; then
5539 AR="false"
5540 else
5541 case $cross_compiling:$ac_tool_warned in
5542 yes:)
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545 ac_tool_warned=yes ;;
5546 esac
5547 AR=$ac_ct_AR
5548 fi
5549 fi
5550
5551 : ${AR=ar}
5552 : ${AR_FLAGS=cru}
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5565 $as_echo_n "checking for archiver @FILE support... " >&6; }
5566 if ${lt_cv_ar_at_file+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 lt_cv_ar_at_file=no
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572
5573 int
5574 main ()
5575 {
5576
5577 ;
5578 return 0;
5579 }
5580 _ACEOF
5581 if ac_fn_c_try_compile "$LINENO"; then :
5582 echo conftest.$ac_objext > conftest.lst
5583 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5585 (eval $lt_ar_try) 2>&5
5586 ac_status=$?
5587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5588 test $ac_status = 0; }
5589 if test "$ac_status" -eq 0; then
5590 # Ensure the archiver fails upon bogus file names.
5591 rm -f conftest.$ac_objext libconftest.a
5592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5593 (eval $lt_ar_try) 2>&5
5594 ac_status=$?
5595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5596 test $ac_status = 0; }
5597 if test "$ac_status" -ne 0; then
5598 lt_cv_ar_at_file=@
5599 fi
5600 fi
5601 rm -f conftest.* libconftest.a
5602
5603 fi
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605
5606 fi
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5608 $as_echo "$lt_cv_ar_at_file" >&6; }
5609
5610 if test "x$lt_cv_ar_at_file" = xno; then
5611 archiver_list_spec=
5612 else
5613 archiver_list_spec=$lt_cv_ar_at_file
5614 fi
5615
5616
5617
5618
5619
5620
5621
5622 if test -n "$ac_tool_prefix"; then
5623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5624 set dummy ${ac_tool_prefix}strip; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_prog_STRIP+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 if test -n "$STRIP"; then
5631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5635 do
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5643 fi
5644 done
5645 done
5646 IFS=$as_save_IFS
5647
5648 fi
5649 fi
5650 STRIP=$ac_cv_prog_STRIP
5651 if test -n "$STRIP"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5653 $as_echo "$STRIP" >&6; }
5654 else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5657 fi
5658
5659
5660 fi
5661 if test -z "$ac_cv_prog_STRIP"; then
5662 ac_ct_STRIP=$STRIP
5663 # Extract the first word of "strip", so it can be a program name with args.
5664 set dummy strip; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 if test -n "$ac_ct_STRIP"; then
5671 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5675 do
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680 ac_cv_prog_ac_ct_STRIP="strip"
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 break 2
5683 fi
5684 done
5685 done
5686 IFS=$as_save_IFS
5687
5688 fi
5689 fi
5690 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5691 if test -n "$ac_ct_STRIP"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5693 $as_echo "$ac_ct_STRIP" >&6; }
5694 else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5697 fi
5698
5699 if test "x$ac_ct_STRIP" = x; then
5700 STRIP=":"
5701 else
5702 case $cross_compiling:$ac_tool_warned in
5703 yes:)
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5706 ac_tool_warned=yes ;;
5707 esac
5708 STRIP=$ac_ct_STRIP
5709 fi
5710 else
5711 STRIP="$ac_cv_prog_STRIP"
5712 fi
5713
5714 test -z "$STRIP" && STRIP=:
5715
5716
5717
5718
5719
5720
5721 if test -n "$ac_tool_prefix"; then
5722 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5723 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725 $as_echo_n "checking for $ac_word... " >&6; }
5726 if ${ac_cv_prog_RANLIB+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 if test -n "$RANLIB"; then
5730 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5731 else
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 for as_dir in $PATH
5734 do
5735 IFS=$as_save_IFS
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 break 2
5742 fi
5743 done
5744 done
5745 IFS=$as_save_IFS
5746
5747 fi
5748 fi
5749 RANLIB=$ac_cv_prog_RANLIB
5750 if test -n "$RANLIB"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5752 $as_echo "$RANLIB" >&6; }
5753 else
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5756 fi
5757
5758
5759 fi
5760 if test -z "$ac_cv_prog_RANLIB"; then
5761 ac_ct_RANLIB=$RANLIB
5762 # Extract the first word of "ranlib", so it can be a program name with args.
5763 set dummy ranlib; ac_word=$2
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765 $as_echo_n "checking for $ac_word... " >&6; }
5766 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 if test -n "$ac_ct_RANLIB"; then
5770 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5771 else
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5774 do
5775 IFS=$as_save_IFS
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779 ac_cv_prog_ac_ct_RANLIB="ranlib"
5780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 break 2
5782 fi
5783 done
5784 done
5785 IFS=$as_save_IFS
5786
5787 fi
5788 fi
5789 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5790 if test -n "$ac_ct_RANLIB"; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5792 $as_echo "$ac_ct_RANLIB" >&6; }
5793 else
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5796 fi
5797
5798 if test "x$ac_ct_RANLIB" = x; then
5799 RANLIB=":"
5800 else
5801 case $cross_compiling:$ac_tool_warned in
5802 yes:)
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5805 ac_tool_warned=yes ;;
5806 esac
5807 RANLIB=$ac_ct_RANLIB
5808 fi
5809 else
5810 RANLIB="$ac_cv_prog_RANLIB"
5811 fi
5812
5813 test -z "$RANLIB" && RANLIB=:
5814
5815
5816
5817
5818
5819
5820 # Determine commands to create old-style static archives.
5821 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5822 old_postinstall_cmds='chmod 644 $oldlib'
5823 old_postuninstall_cmds=
5824
5825 if test -n "$RANLIB"; then
5826 case $host_os in
5827 openbsd*)
5828 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5829 ;;
5830 *)
5831 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5832 ;;
5833 esac
5834 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5835 fi
5836
5837 case $host_os in
5838 darwin*)
5839 lock_old_archive_extraction=yes ;;
5840 *)
5841 lock_old_archive_extraction=no ;;
5842 esac
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882 # If no C compiler was specified, use CC.
5883 LTCC=${LTCC-"$CC"}
5884
5885 # If no C compiler flags were specified, use CFLAGS.
5886 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5887
5888 # Allow CC to be a program name with arguments.
5889 compiler=$CC
5890
5891
5892 # Check for command to grab the raw symbol name followed by C symbol from nm.
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5894 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5895 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898
5899 # These are sane defaults that work on at least a few old systems.
5900 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5901
5902 # Character class describing NM global symbol codes.
5903 symcode='[BCDEGRST]'
5904
5905 # Regexp to match symbols that can be accessed directly from C.
5906 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5907
5908 # Define system-specific variables.
5909 case $host_os in
5910 aix*)
5911 symcode='[BCDT]'
5912 ;;
5913 cygwin* | mingw* | pw32* | cegcc*)
5914 symcode='[ABCDGISTW]'
5915 ;;
5916 hpux*)
5917 if test "$host_cpu" = ia64; then
5918 symcode='[ABCDEGRST]'
5919 fi
5920 ;;
5921 irix* | nonstopux*)
5922 symcode='[BCDEGRST]'
5923 ;;
5924 osf*)
5925 symcode='[BCDEGQRST]'
5926 ;;
5927 solaris*)
5928 symcode='[BDRT]'
5929 ;;
5930 sco3.2v5*)
5931 symcode='[DT]'
5932 ;;
5933 sysv4.2uw2*)
5934 symcode='[DT]'
5935 ;;
5936 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5937 symcode='[ABDT]'
5938 ;;
5939 sysv4)
5940 symcode='[DFNSTU]'
5941 ;;
5942 esac
5943
5944 # If we're using GNU nm, then use its standard symbol codes.
5945 case `$NM -V 2>&1` in
5946 *GNU* | *'with BFD'*)
5947 symcode='[ABCDGIRSTW]' ;;
5948 esac
5949
5950 # Transform an extracted symbol line into a proper C declaration.
5951 # Some systems (esp. on ia64) link data and code symbols differently,
5952 # so use this general approach.
5953 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5954
5955 # Transform an extracted symbol line into symbol name and symbol address
5956 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5957 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5958
5959 # Handle CRLF in mingw tool chain
5960 opt_cr=
5961 case $build_os in
5962 mingw*)
5963 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5964 ;;
5965 esac
5966
5967 # Try without a prefix underscore, then with it.
5968 for ac_symprfx in "" "_"; do
5969
5970 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5971 symxfrm="\\1 $ac_symprfx\\2 \\2"
5972
5973 # Write the raw and C identifiers.
5974 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5975 # Fake it for dumpbin and say T for any non-static function
5976 # and D for any global variable.
5977 # Also find C++ and __fastcall symbols from MSVC++,
5978 # which start with @ or ?.
5979 lt_cv_sys_global_symbol_pipe="$AWK '"\
5980 " {last_section=section; section=\$ 3};"\
5981 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5982 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5983 " \$ 0!~/External *\|/{next};"\
5984 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5985 " {if(hide[section]) next};"\
5986 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5987 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5988 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5989 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5990 " ' prfx=^$ac_symprfx"
5991 else
5992 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5993 fi
5994 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5995
5996 # Check to see that the pipe works correctly.
5997 pipe_works=no
5998
5999 rm -f conftest*
6000 cat > conftest.$ac_ext <<_LT_EOF
6001 #ifdef __cplusplus
6002 extern "C" {
6003 #endif
6004 char nm_test_var;
6005 void nm_test_func(void);
6006 void nm_test_func(void){}
6007 #ifdef __cplusplus
6008 }
6009 #endif
6010 int main(){nm_test_var='a';nm_test_func();return(0);}
6011 _LT_EOF
6012
6013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6014 (eval $ac_compile) 2>&5
6015 ac_status=$?
6016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6017 test $ac_status = 0; }; then
6018 # Now try to grab the symbols.
6019 nlist=conftest.nm
6020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6021 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6022 ac_status=$?
6023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6024 test $ac_status = 0; } && test -s "$nlist"; then
6025 # Try sorting and uniquifying the output.
6026 if sort "$nlist" | uniq > "$nlist"T; then
6027 mv -f "$nlist"T "$nlist"
6028 else
6029 rm -f "$nlist"T
6030 fi
6031
6032 # Make sure that we snagged all the symbols we need.
6033 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6034 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6035 cat <<_LT_EOF > conftest.$ac_ext
6036 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6037 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6038 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6039 relocations are performed -- see ld's documentation on pseudo-relocs. */
6040 # define LT_DLSYM_CONST
6041 #elif defined(__osf__)
6042 /* This system does not cope well with relocations in const data. */
6043 # define LT_DLSYM_CONST
6044 #else
6045 # define LT_DLSYM_CONST const
6046 #endif
6047
6048 #ifdef __cplusplus
6049 extern "C" {
6050 #endif
6051
6052 _LT_EOF
6053 # Now generate the symbol file.
6054 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6055
6056 cat <<_LT_EOF >> conftest.$ac_ext
6057
6058 /* The mapping between symbol names and symbols. */
6059 LT_DLSYM_CONST struct {
6060 const char *name;
6061 void *address;
6062 }
6063 lt__PROGRAM__LTX_preloaded_symbols[] =
6064 {
6065 { "@PROGRAM@", (void *) 0 },
6066 _LT_EOF
6067 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6068 cat <<\_LT_EOF >> conftest.$ac_ext
6069 {0, (void *) 0}
6070 };
6071
6072 /* This works around a problem in FreeBSD linker */
6073 #ifdef FREEBSD_WORKAROUND
6074 static const void *lt_preloaded_setup() {
6075 return lt__PROGRAM__LTX_preloaded_symbols;
6076 }
6077 #endif
6078
6079 #ifdef __cplusplus
6080 }
6081 #endif
6082 _LT_EOF
6083 # Now try linking the two files.
6084 mv conftest.$ac_objext conftstm.$ac_objext
6085 lt_globsym_save_LIBS=$LIBS
6086 lt_globsym_save_CFLAGS=$CFLAGS
6087 LIBS="conftstm.$ac_objext"
6088 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6090 (eval $ac_link) 2>&5
6091 ac_status=$?
6092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6093 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6094 pipe_works=yes
6095 fi
6096 LIBS=$lt_globsym_save_LIBS
6097 CFLAGS=$lt_globsym_save_CFLAGS
6098 else
6099 echo "cannot find nm_test_func in $nlist" >&5
6100 fi
6101 else
6102 echo "cannot find nm_test_var in $nlist" >&5
6103 fi
6104 else
6105 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6106 fi
6107 else
6108 echo "$progname: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6110 fi
6111 rm -rf conftest* conftst*
6112
6113 # Do not use the global_symbol_pipe unless it works.
6114 if test "$pipe_works" = yes; then
6115 break
6116 else
6117 lt_cv_sys_global_symbol_pipe=
6118 fi
6119 done
6120
6121 fi
6122
6123 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6124 lt_cv_sys_global_symbol_to_cdecl=
6125 fi
6126 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6128 $as_echo "failed" >&6; }
6129 else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6131 $as_echo "ok" >&6; }
6132 fi
6133
6134 # Response file support.
6135 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6136 nm_file_list_spec='@'
6137 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6138 nm_file_list_spec='@'
6139 fi
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6168 $as_echo_n "checking for sysroot... " >&6; }
6169
6170 # Check whether --with-sysroot was given.
6171 if test "${with_sysroot+set}" = set; then :
6172 withval=$with_sysroot;
6173 else
6174 with_sysroot=no
6175 fi
6176
6177
6178 lt_sysroot=
6179 case ${with_sysroot} in #(
6180 yes)
6181 if test "$GCC" = yes; then
6182 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6183 fi
6184 ;; #(
6185 /*)
6186 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6187 ;; #(
6188 no|'')
6189 ;; #(
6190 *)
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6192 $as_echo "${with_sysroot}" >&6; }
6193 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6194 ;;
6195 esac
6196
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6198 $as_echo "${lt_sysroot:-no}" >&6; }
6199
6200
6201
6202
6203
6204 # Check whether --enable-libtool-lock was given.
6205 if test "${enable_libtool_lock+set}" = set; then :
6206 enableval=$enable_libtool_lock;
6207 fi
6208
6209 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6210
6211 # Some flags need to be propagated to the compiler or linker for good
6212 # libtool support.
6213 case $host in
6214 ia64-*-hpux*)
6215 # Find out which ABI we are using.
6216 echo 'int i;' > conftest.$ac_ext
6217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6218 (eval $ac_compile) 2>&5
6219 ac_status=$?
6220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6221 test $ac_status = 0; }; then
6222 case `/usr/bin/file conftest.$ac_objext` in
6223 *ELF-32*)
6224 HPUX_IA64_MODE="32"
6225 ;;
6226 *ELF-64*)
6227 HPUX_IA64_MODE="64"
6228 ;;
6229 esac
6230 fi
6231 rm -rf conftest*
6232 ;;
6233 *-*-irix6*)
6234 # Find out which ABI we are using.
6235 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6237 (eval $ac_compile) 2>&5
6238 ac_status=$?
6239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6240 test $ac_status = 0; }; then
6241 if test "$lt_cv_prog_gnu_ld" = yes; then
6242 case `/usr/bin/file conftest.$ac_objext` in
6243 *32-bit*)
6244 LD="${LD-ld} -melf32bsmip"
6245 ;;
6246 *N32*)
6247 LD="${LD-ld} -melf32bmipn32"
6248 ;;
6249 *64-bit*)
6250 LD="${LD-ld} -melf64bmip"
6251 ;;
6252 esac
6253 else
6254 case `/usr/bin/file conftest.$ac_objext` in
6255 *32-bit*)
6256 LD="${LD-ld} -32"
6257 ;;
6258 *N32*)
6259 LD="${LD-ld} -n32"
6260 ;;
6261 *64-bit*)
6262 LD="${LD-ld} -64"
6263 ;;
6264 esac
6265 fi
6266 fi
6267 rm -rf conftest*
6268 ;;
6269
6270 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6271 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6272 # Find out which ABI we are using.
6273 echo 'int i;' > conftest.$ac_ext
6274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6275 (eval $ac_compile) 2>&5
6276 ac_status=$?
6277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6278 test $ac_status = 0; }; then
6279 case `/usr/bin/file conftest.o` in
6280 *32-bit*)
6281 case $host in
6282 x86_64-*kfreebsd*-gnu)
6283 LD="${LD-ld} -m elf_i386_fbsd"
6284 ;;
6285 x86_64-*linux*)
6286 LD="${LD-ld} -m elf_i386"
6287 ;;
6288 ppc64-*linux*|powerpc64-*linux*)
6289 LD="${LD-ld} -m elf32ppclinux"
6290 ;;
6291 s390x-*linux*)
6292 LD="${LD-ld} -m elf_s390"
6293 ;;
6294 sparc64-*linux*)
6295 LD="${LD-ld} -m elf32_sparc"
6296 ;;
6297 esac
6298 ;;
6299 *64-bit*)
6300 case $host in
6301 x86_64-*kfreebsd*-gnu)
6302 LD="${LD-ld} -m elf_x86_64_fbsd"
6303 ;;
6304 x86_64-*linux*)
6305 LD="${LD-ld} -m elf_x86_64"
6306 ;;
6307 ppc*-*linux*|powerpc*-*linux*)
6308 LD="${LD-ld} -m elf64ppc"
6309 ;;
6310 s390*-*linux*|s390*-*tpf*)
6311 LD="${LD-ld} -m elf64_s390"
6312 ;;
6313 sparc*-*linux*)
6314 LD="${LD-ld} -m elf64_sparc"
6315 ;;
6316 esac
6317 ;;
6318 esac
6319 fi
6320 rm -rf conftest*
6321 ;;
6322
6323 *-*-sco3.2v5*)
6324 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6325 SAVE_CFLAGS="$CFLAGS"
6326 CFLAGS="$CFLAGS -belf"
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6328 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6329 if ${lt_cv_cc_needs_belf+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6332 ac_ext=c
6333 ac_cpp='$CPP $CPPFLAGS'
6334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6337
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6340
6341 int
6342 main ()
6343 {
6344
6345 ;
6346 return 0;
6347 }
6348 _ACEOF
6349 if ac_fn_c_try_link "$LINENO"; then :
6350 lt_cv_cc_needs_belf=yes
6351 else
6352 lt_cv_cc_needs_belf=no
6353 fi
6354 rm -f core conftest.err conftest.$ac_objext \
6355 conftest$ac_exeext conftest.$ac_ext
6356 ac_ext=c
6357 ac_cpp='$CPP $CPPFLAGS'
6358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6361
6362 fi
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6364 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6365 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6366 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6367 CFLAGS="$SAVE_CFLAGS"
6368 fi
6369 ;;
6370 *-*solaris*)
6371 # Find out which ABI we are using.
6372 echo 'int i;' > conftest.$ac_ext
6373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6374 (eval $ac_compile) 2>&5
6375 ac_status=$?
6376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6377 test $ac_status = 0; }; then
6378 case `/usr/bin/file conftest.o` in
6379 *64-bit*)
6380 case $lt_cv_prog_gnu_ld in
6381 yes*)
6382 case $host in
6383 i?86-*-solaris*)
6384 LD="${LD-ld} -m elf_x86_64"
6385 ;;
6386 sparc*-*-solaris*)
6387 LD="${LD-ld} -m elf64_sparc"
6388 ;;
6389 esac
6390 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6391 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6392 LD="${LD-ld}_sol2"
6393 fi
6394 ;;
6395 *)
6396 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6397 LD="${LD-ld} -64"
6398 fi
6399 ;;
6400 esac
6401 ;;
6402 esac
6403 fi
6404 rm -rf conftest*
6405 ;;
6406 esac
6407
6408 need_locks="$enable_libtool_lock"
6409
6410 if test -n "$ac_tool_prefix"; then
6411 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6412 set dummy ${ac_tool_prefix}mt; ac_word=$2
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 if test -n "$MANIFEST_TOOL"; then
6419 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6420 else
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6423 do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6431 fi
6432 done
6433 done
6434 IFS=$as_save_IFS
6435
6436 fi
6437 fi
6438 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6439 if test -n "$MANIFEST_TOOL"; then
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6441 $as_echo "$MANIFEST_TOOL" >&6; }
6442 else
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 $as_echo "no" >&6; }
6445 fi
6446
6447
6448 fi
6449 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6450 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6451 # Extract the first word of "mt", so it can be a program name with args.
6452 set dummy mt; ac_word=$2
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454 $as_echo_n "checking for $ac_word... " >&6; }
6455 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6456 $as_echo_n "(cached) " >&6
6457 else
6458 if test -n "$ac_ct_MANIFEST_TOOL"; then
6459 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6460 else
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 for as_dir in $PATH
6463 do
6464 IFS=$as_save_IFS
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6468 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 break 2
6471 fi
6472 done
6473 done
6474 IFS=$as_save_IFS
6475
6476 fi
6477 fi
6478 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6479 if test -n "$ac_ct_MANIFEST_TOOL"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6481 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6482 else
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 $as_echo "no" >&6; }
6485 fi
6486
6487 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6488 MANIFEST_TOOL=":"
6489 else
6490 case $cross_compiling:$ac_tool_warned in
6491 yes:)
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6494 ac_tool_warned=yes ;;
6495 esac
6496 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6497 fi
6498 else
6499 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6500 fi
6501
6502 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6504 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6505 if ${lt_cv_path_mainfest_tool+:} false; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 lt_cv_path_mainfest_tool=no
6509 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6510 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6511 cat conftest.err >&5
6512 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6513 lt_cv_path_mainfest_tool=yes
6514 fi
6515 rm -f conftest*
6516 fi
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6518 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6519 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6520 MANIFEST_TOOL=:
6521 fi
6522
6523
6524
6525
6526
6527
6528 case $host_os in
6529 rhapsody* | darwin*)
6530 if test -n "$ac_tool_prefix"; then
6531 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6532 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 if test -n "$DSYMUTIL"; then
6539 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6540 else
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6543 do
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 break 2
6551 fi
6552 done
6553 done
6554 IFS=$as_save_IFS
6555
6556 fi
6557 fi
6558 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6559 if test -n "$DSYMUTIL"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6561 $as_echo "$DSYMUTIL" >&6; }
6562 else
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6565 fi
6566
6567
6568 fi
6569 if test -z "$ac_cv_prog_DSYMUTIL"; then
6570 ac_ct_DSYMUTIL=$DSYMUTIL
6571 # Extract the first word of "dsymutil", so it can be a program name with args.
6572 set dummy dsymutil; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 if test -n "$ac_ct_DSYMUTIL"; then
6579 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6591 fi
6592 done
6593 done
6594 IFS=$as_save_IFS
6595
6596 fi
6597 fi
6598 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6599 if test -n "$ac_ct_DSYMUTIL"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6601 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6602 else
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6605 fi
6606
6607 if test "x$ac_ct_DSYMUTIL" = x; then
6608 DSYMUTIL=":"
6609 else
6610 case $cross_compiling:$ac_tool_warned in
6611 yes:)
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614 ac_tool_warned=yes ;;
6615 esac
6616 DSYMUTIL=$ac_ct_DSYMUTIL
6617 fi
6618 else
6619 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6620 fi
6621
6622 if test -n "$ac_tool_prefix"; then
6623 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6624 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if ${ac_cv_prog_NMEDIT+:} false; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 if test -n "$NMEDIT"; then
6631 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6632 else
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6635 do
6636 IFS=$as_save_IFS
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6640 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 break 2
6643 fi
6644 done
6645 done
6646 IFS=$as_save_IFS
6647
6648 fi
6649 fi
6650 NMEDIT=$ac_cv_prog_NMEDIT
6651 if test -n "$NMEDIT"; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6653 $as_echo "$NMEDIT" >&6; }
6654 else
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 $as_echo "no" >&6; }
6657 fi
6658
6659
6660 fi
6661 if test -z "$ac_cv_prog_NMEDIT"; then
6662 ac_ct_NMEDIT=$NMEDIT
6663 # Extract the first word of "nmedit", so it can be a program name with args.
6664 set dummy nmedit; ac_word=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 if test -n "$ac_ct_NMEDIT"; then
6671 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6672 else
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674 for as_dir in $PATH
6675 do
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684 done
6685 done
6686 IFS=$as_save_IFS
6687
6688 fi
6689 fi
6690 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6691 if test -n "$ac_ct_NMEDIT"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6693 $as_echo "$ac_ct_NMEDIT" >&6; }
6694 else
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6697 fi
6698
6699 if test "x$ac_ct_NMEDIT" = x; then
6700 NMEDIT=":"
6701 else
6702 case $cross_compiling:$ac_tool_warned in
6703 yes:)
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6706 ac_tool_warned=yes ;;
6707 esac
6708 NMEDIT=$ac_ct_NMEDIT
6709 fi
6710 else
6711 NMEDIT="$ac_cv_prog_NMEDIT"
6712 fi
6713
6714 if test -n "$ac_tool_prefix"; then
6715 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6716 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718 $as_echo_n "checking for $ac_word... " >&6; }
6719 if ${ac_cv_prog_LIPO+:} false; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 if test -n "$LIPO"; then
6723 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6724 else
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728 IFS=$as_save_IFS
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6732 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 break 2
6735 fi
6736 done
6737 done
6738 IFS=$as_save_IFS
6739
6740 fi
6741 fi
6742 LIPO=$ac_cv_prog_LIPO
6743 if test -n "$LIPO"; then
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6745 $as_echo "$LIPO" >&6; }
6746 else
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 $as_echo "no" >&6; }
6749 fi
6750
6751
6752 fi
6753 if test -z "$ac_cv_prog_LIPO"; then
6754 ac_ct_LIPO=$LIPO
6755 # Extract the first word of "lipo", so it can be a program name with args.
6756 set dummy lipo; ac_word=$2
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 $as_echo_n "checking for $ac_word... " >&6; }
6759 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6760 $as_echo_n "(cached) " >&6
6761 else
6762 if test -n "$ac_ct_LIPO"; then
6763 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6764 else
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772 ac_cv_prog_ac_ct_LIPO="lipo"
6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 break 2
6775 fi
6776 done
6777 done
6778 IFS=$as_save_IFS
6779
6780 fi
6781 fi
6782 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6783 if test -n "$ac_ct_LIPO"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6785 $as_echo "$ac_ct_LIPO" >&6; }
6786 else
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6789 fi
6790
6791 if test "x$ac_ct_LIPO" = x; then
6792 LIPO=":"
6793 else
6794 case $cross_compiling:$ac_tool_warned in
6795 yes:)
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6798 ac_tool_warned=yes ;;
6799 esac
6800 LIPO=$ac_ct_LIPO
6801 fi
6802 else
6803 LIPO="$ac_cv_prog_LIPO"
6804 fi
6805
6806 if test -n "$ac_tool_prefix"; then
6807 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6808 set dummy ${ac_tool_prefix}otool; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if ${ac_cv_prog_OTOOL+:} false; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 if test -n "$OTOOL"; then
6815 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 break 2
6827 fi
6828 done
6829 done
6830 IFS=$as_save_IFS
6831
6832 fi
6833 fi
6834 OTOOL=$ac_cv_prog_OTOOL
6835 if test -n "$OTOOL"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6837 $as_echo "$OTOOL" >&6; }
6838 else
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6841 fi
6842
6843
6844 fi
6845 if test -z "$ac_cv_prog_OTOOL"; then
6846 ac_ct_OTOOL=$OTOOL
6847 # Extract the first word of "otool", so it can be a program name with args.
6848 set dummy otool; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6852 $as_echo_n "(cached) " >&6
6853 else
6854 if test -n "$ac_ct_OTOOL"; then
6855 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6859 do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6864 ac_cv_prog_ac_ct_OTOOL="otool"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868 done
6869 done
6870 IFS=$as_save_IFS
6871
6872 fi
6873 fi
6874 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6875 if test -n "$ac_ct_OTOOL"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6877 $as_echo "$ac_ct_OTOOL" >&6; }
6878 else
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6881 fi
6882
6883 if test "x$ac_ct_OTOOL" = x; then
6884 OTOOL=":"
6885 else
6886 case $cross_compiling:$ac_tool_warned in
6887 yes:)
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890 ac_tool_warned=yes ;;
6891 esac
6892 OTOOL=$ac_ct_OTOOL
6893 fi
6894 else
6895 OTOOL="$ac_cv_prog_OTOOL"
6896 fi
6897
6898 if test -n "$ac_tool_prefix"; then
6899 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6900 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if ${ac_cv_prog_OTOOL64+:} false; then :
6904 $as_echo_n "(cached) " >&6
6905 else
6906 if test -n "$OTOOL64"; then
6907 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6916 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 break 2
6919 fi
6920 done
6921 done
6922 IFS=$as_save_IFS
6923
6924 fi
6925 fi
6926 OTOOL64=$ac_cv_prog_OTOOL64
6927 if test -n "$OTOOL64"; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6929 $as_echo "$OTOOL64" >&6; }
6930 else
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6933 fi
6934
6935
6936 fi
6937 if test -z "$ac_cv_prog_OTOOL64"; then
6938 ac_ct_OTOOL64=$OTOOL64
6939 # Extract the first word of "otool64", so it can be a program name with args.
6940 set dummy otool64; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 if test -n "$ac_ct_OTOOL64"; then
6947 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6956 ac_cv_prog_ac_ct_OTOOL64="otool64"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960 done
6961 done
6962 IFS=$as_save_IFS
6963
6964 fi
6965 fi
6966 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6967 if test -n "$ac_ct_OTOOL64"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6969 $as_echo "$ac_ct_OTOOL64" >&6; }
6970 else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6973 fi
6974
6975 if test "x$ac_ct_OTOOL64" = x; then
6976 OTOOL64=":"
6977 else
6978 case $cross_compiling:$ac_tool_warned in
6979 yes:)
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6982 ac_tool_warned=yes ;;
6983 esac
6984 OTOOL64=$ac_ct_OTOOL64
6985 fi
6986 else
6987 OTOOL64="$ac_cv_prog_OTOOL64"
6988 fi
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7017 $as_echo_n "checking for -single_module linker flag... " >&6; }
7018 if ${lt_cv_apple_cc_single_mod+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 lt_cv_apple_cc_single_mod=no
7022 if test -z "${LT_MULTI_MODULE}"; then
7023 # By default we will add the -single_module flag. You can override
7024 # by either setting the environment variable LT_MULTI_MODULE
7025 # non-empty at configure time, or by adding -multi_module to the
7026 # link flags.
7027 rm -rf libconftest.dylib*
7028 echo "int foo(void){return 1;}" > conftest.c
7029 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7030 -dynamiclib -Wl,-single_module conftest.c" >&5
7031 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7032 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7033 _lt_result=$?
7034 # If there is a non-empty error log, and "single_module"
7035 # appears in it, assume the flag caused a linker warning
7036 if test -s conftest.err && $GREP single_module conftest.err; then
7037 cat conftest.err >&5
7038 # Otherwise, if the output was created with a 0 exit code from
7039 # the compiler, it worked.
7040 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7041 lt_cv_apple_cc_single_mod=yes
7042 else
7043 cat conftest.err >&5
7044 fi
7045 rm -rf libconftest.dylib*
7046 rm -f conftest.*
7047 fi
7048 fi
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7050 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7051
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7053 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7054 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 lt_cv_ld_exported_symbols_list=no
7058 save_LDFLAGS=$LDFLAGS
7059 echo "_main" > conftest.sym
7060 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7063
7064 int
7065 main ()
7066 {
7067
7068 ;
7069 return 0;
7070 }
7071 _ACEOF
7072 if ac_fn_c_try_link "$LINENO"; then :
7073 lt_cv_ld_exported_symbols_list=yes
7074 else
7075 lt_cv_ld_exported_symbols_list=no
7076 fi
7077 rm -f core conftest.err conftest.$ac_objext \
7078 conftest$ac_exeext conftest.$ac_ext
7079 LDFLAGS="$save_LDFLAGS"
7080
7081 fi
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7083 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7084
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7086 $as_echo_n "checking for -force_load linker flag... " >&6; }
7087 if ${lt_cv_ld_force_load+:} false; then :
7088 $as_echo_n "(cached) " >&6
7089 else
7090 lt_cv_ld_force_load=no
7091 cat > conftest.c << _LT_EOF
7092 int forced_loaded() { return 2;}
7093 _LT_EOF
7094 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7095 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7096 echo "$AR cru libconftest.a conftest.o" >&5
7097 $AR cru libconftest.a conftest.o 2>&5
7098 echo "$RANLIB libconftest.a" >&5
7099 $RANLIB libconftest.a 2>&5
7100 cat > conftest.c << _LT_EOF
7101 int main() { return 0;}
7102 _LT_EOF
7103 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7104 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7105 _lt_result=$?
7106 if test -s conftest.err && $GREP force_load conftest.err; then
7107 cat conftest.err >&5
7108 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7109 lt_cv_ld_force_load=yes
7110 else
7111 cat conftest.err >&5
7112 fi
7113 rm -f conftest.err libconftest.a conftest conftest.c
7114 rm -rf conftest.dSYM
7115
7116 fi
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7118 $as_echo "$lt_cv_ld_force_load" >&6; }
7119 case $host_os in
7120 rhapsody* | darwin1.[012])
7121 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7122 darwin1.*)
7123 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7124 darwin*) # darwin 5.x on
7125 # if running on 10.5 or later, the deployment target defaults
7126 # to the OS version, if on x86, and 10.4, the deployment
7127 # target defaults to 10.4. Don't you love it?
7128 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7129 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7130 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7131 10.[012]*)
7132 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7133 10.*)
7134 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7135 esac
7136 ;;
7137 esac
7138 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7139 _lt_dar_single_mod='$single_module'
7140 fi
7141 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7142 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7143 else
7144 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7145 fi
7146 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7147 _lt_dsymutil='~$DSYMUTIL $lib || :'
7148 else
7149 _lt_dsymutil=
7150 fi
7151 ;;
7152 esac
7153
7154 ac_ext=c
7155 ac_cpp='$CPP $CPPFLAGS'
7156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7160 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7161 # On Suns, sometimes $CPP names a directory.
7162 if test -n "$CPP" && test -d "$CPP"; then
7163 CPP=
7164 fi
7165 if test -z "$CPP"; then
7166 if ${ac_cv_prog_CPP+:} false; then :
7167 $as_echo_n "(cached) " >&6
7168 else
7169 # Double quotes because CPP needs to be expanded
7170 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7171 do
7172 ac_preproc_ok=false
7173 for ac_c_preproc_warn_flag in '' yes
7174 do
7175 # Use a header file that comes with gcc, so configuring glibc
7176 # with a fresh cross-compiler works.
7177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7178 # <limits.h> exists even on freestanding compilers.
7179 # On the NeXT, cc -E runs the code through the compiler's parser,
7180 # not just through cpp. "Syntax error" is here to catch this case.
7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h. */
7183 #ifdef __STDC__
7184 # include <limits.h>
7185 #else
7186 # include <assert.h>
7187 #endif
7188 Syntax error
7189 _ACEOF
7190 if ac_fn_c_try_cpp "$LINENO"; then :
7191
7192 else
7193 # Broken: fails on valid input.
7194 continue
7195 fi
7196 rm -f conftest.err conftest.i conftest.$ac_ext
7197
7198 # OK, works on sane cases. Now check whether nonexistent headers
7199 # can be detected and how.
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7202 #include <ac_nonexistent.h>
7203 _ACEOF
7204 if ac_fn_c_try_cpp "$LINENO"; then :
7205 # Broken: success on invalid input.
7206 continue
7207 else
7208 # Passes both tests.
7209 ac_preproc_ok=:
7210 break
7211 fi
7212 rm -f conftest.err conftest.i conftest.$ac_ext
7213
7214 done
7215 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7216 rm -f conftest.i conftest.err conftest.$ac_ext
7217 if $ac_preproc_ok; then :
7218 break
7219 fi
7220
7221 done
7222 ac_cv_prog_CPP=$CPP
7223
7224 fi
7225 CPP=$ac_cv_prog_CPP
7226 else
7227 ac_cv_prog_CPP=$CPP
7228 fi
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7230 $as_echo "$CPP" >&6; }
7231 ac_preproc_ok=false
7232 for ac_c_preproc_warn_flag in '' yes
7233 do
7234 # Use a header file that comes with gcc, so configuring glibc
7235 # with a fresh cross-compiler works.
7236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7237 # <limits.h> exists even on freestanding compilers.
7238 # On the NeXT, cc -E runs the code through the compiler's parser,
7239 # not just through cpp. "Syntax error" is here to catch this case.
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7242 #ifdef __STDC__
7243 # include <limits.h>
7244 #else
7245 # include <assert.h>
7246 #endif
7247 Syntax error
7248 _ACEOF
7249 if ac_fn_c_try_cpp "$LINENO"; then :
7250
7251 else
7252 # Broken: fails on valid input.
7253 continue
7254 fi
7255 rm -f conftest.err conftest.i conftest.$ac_ext
7256
7257 # OK, works on sane cases. Now check whether nonexistent headers
7258 # can be detected and how.
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261 #include <ac_nonexistent.h>
7262 _ACEOF
7263 if ac_fn_c_try_cpp "$LINENO"; then :
7264 # Broken: success on invalid input.
7265 continue
7266 else
7267 # Passes both tests.
7268 ac_preproc_ok=:
7269 break
7270 fi
7271 rm -f conftest.err conftest.i conftest.$ac_ext
7272
7273 done
7274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7275 rm -f conftest.i conftest.err conftest.$ac_ext
7276 if $ac_preproc_ok; then :
7277
7278 else
7279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7281 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7282 See \`config.log' for more details" "$LINENO" 5; }
7283 fi
7284
7285 ac_ext=c
7286 ac_cpp='$CPP $CPPFLAGS'
7287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7290
7291
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7293 $as_echo_n "checking for ANSI C header files... " >&6; }
7294 if ${ac_cv_header_stdc+:} false; then :
7295 $as_echo_n "(cached) " >&6
7296 else
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7299 #include <stdlib.h>
7300 #include <stdarg.h>
7301 #include <string.h>
7302 #include <float.h>
7303
7304 int
7305 main ()
7306 {
7307
7308 ;
7309 return 0;
7310 }
7311 _ACEOF
7312 if ac_fn_c_try_compile "$LINENO"; then :
7313 ac_cv_header_stdc=yes
7314 else
7315 ac_cv_header_stdc=no
7316 fi
7317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318
7319 if test $ac_cv_header_stdc = yes; then
7320 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7323 #include <string.h>
7324
7325 _ACEOF
7326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7327 $EGREP "memchr" >/dev/null 2>&1; then :
7328
7329 else
7330 ac_cv_header_stdc=no
7331 fi
7332 rm -f conftest*
7333
7334 fi
7335
7336 if test $ac_cv_header_stdc = yes; then
7337 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h. */
7340 #include <stdlib.h>
7341
7342 _ACEOF
7343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7344 $EGREP "free" >/dev/null 2>&1; then :
7345
7346 else
7347 ac_cv_header_stdc=no
7348 fi
7349 rm -f conftest*
7350
7351 fi
7352
7353 if test $ac_cv_header_stdc = yes; then
7354 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7355 if test "$cross_compiling" = yes; then :
7356 :
7357 else
7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h. */
7360 #include <ctype.h>
7361 #include <stdlib.h>
7362 #if ((' ' & 0x0FF) == 0x020)
7363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7365 #else
7366 # define ISLOWER(c) \
7367 (('a' <= (c) && (c) <= 'i') \
7368 || ('j' <= (c) && (c) <= 'r') \
7369 || ('s' <= (c) && (c) <= 'z'))
7370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7371 #endif
7372
7373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7374 int
7375 main ()
7376 {
7377 int i;
7378 for (i = 0; i < 256; i++)
7379 if (XOR (islower (i), ISLOWER (i))
7380 || toupper (i) != TOUPPER (i))
7381 return 2;
7382 return 0;
7383 }
7384 _ACEOF
7385 if ac_fn_c_try_run "$LINENO"; then :
7386
7387 else
7388 ac_cv_header_stdc=no
7389 fi
7390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7391 conftest.$ac_objext conftest.beam conftest.$ac_ext
7392 fi
7393
7394 fi
7395 fi
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7397 $as_echo "$ac_cv_header_stdc" >&6; }
7398 if test $ac_cv_header_stdc = yes; then
7399
7400 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7401
7402 fi
7403
7404 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7405 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7406 inttypes.h stdint.h unistd.h
7407 do :
7408 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7409 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7410 "
7411 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7412 cat >>confdefs.h <<_ACEOF
7413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7414 _ACEOF
7415
7416 fi
7417
7418 done
7419
7420
7421 for ac_header in dlfcn.h
7422 do :
7423 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7424 "
7425 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7426 cat >>confdefs.h <<_ACEOF
7427 #define HAVE_DLFCN_H 1
7428 _ACEOF
7429
7430 fi
7431
7432 done
7433
7434
7435
7436
7437
7438 # Set options
7439
7440
7441
7442 enable_dlopen=no
7443
7444
7445 enable_win32_dll=no
7446
7447
7448 # Check whether --enable-shared was given.
7449 if test "${enable_shared+set}" = set; then :
7450 enableval=$enable_shared; p=${PACKAGE-default}
7451 case $enableval in
7452 yes) enable_shared=yes ;;
7453 no) enable_shared=no ;;
7454 *)
7455 enable_shared=no
7456 # Look at the argument we got. We use all the common list separators.
7457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7458 for pkg in $enableval; do
7459 IFS="$lt_save_ifs"
7460 if test "X$pkg" = "X$p"; then
7461 enable_shared=yes
7462 fi
7463 done
7464 IFS="$lt_save_ifs"
7465 ;;
7466 esac
7467 else
7468 enable_shared=yes
7469 fi
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479 # Check whether --enable-static was given.
7480 if test "${enable_static+set}" = set; then :
7481 enableval=$enable_static; p=${PACKAGE-default}
7482 case $enableval in
7483 yes) enable_static=yes ;;
7484 no) enable_static=no ;;
7485 *)
7486 enable_static=no
7487 # Look at the argument we got. We use all the common list separators.
7488 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7489 for pkg in $enableval; do
7490 IFS="$lt_save_ifs"
7491 if test "X$pkg" = "X$p"; then
7492 enable_static=yes
7493 fi
7494 done
7495 IFS="$lt_save_ifs"
7496 ;;
7497 esac
7498 else
7499 enable_static=yes
7500 fi
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511 # Check whether --with-pic was given.
7512 if test "${with_pic+set}" = set; then :
7513 withval=$with_pic; lt_p=${PACKAGE-default}
7514 case $withval in
7515 yes|no) pic_mode=$withval ;;
7516 *)
7517 pic_mode=default
7518 # Look at the argument we got. We use all the common list separators.
7519 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7520 for lt_pkg in $withval; do
7521 IFS="$lt_save_ifs"
7522 if test "X$lt_pkg" = "X$lt_p"; then
7523 pic_mode=yes
7524 fi
7525 done
7526 IFS="$lt_save_ifs"
7527 ;;
7528 esac
7529 else
7530 pic_mode=default
7531 fi
7532
7533
7534 test -z "$pic_mode" && pic_mode=default
7535
7536
7537
7538
7539
7540
7541
7542 # Check whether --enable-fast-install was given.
7543 if test "${enable_fast_install+set}" = set; then :
7544 enableval=$enable_fast_install; p=${PACKAGE-default}
7545 case $enableval in
7546 yes) enable_fast_install=yes ;;
7547 no) enable_fast_install=no ;;
7548 *)
7549 enable_fast_install=no
7550 # Look at the argument we got. We use all the common list separators.
7551 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7552 for pkg in $enableval; do
7553 IFS="$lt_save_ifs"
7554 if test "X$pkg" = "X$p"; then
7555 enable_fast_install=yes
7556 fi
7557 done
7558 IFS="$lt_save_ifs"
7559 ;;
7560 esac
7561 else
7562 enable_fast_install=yes
7563 fi
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575 # This can be used to rebuild libtool when needed
7576 LIBTOOL_DEPS="$ltmain"
7577
7578 # Always use our own libtool.
7579 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610 test -z "$LN_S" && LN_S="ln -s"
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625 if test -n "${ZSH_VERSION+set}" ; then
7626 setopt NO_GLOB_SUBST
7627 fi
7628
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7630 $as_echo_n "checking for objdir... " >&6; }
7631 if ${lt_cv_objdir+:} false; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 rm -f .libs 2>/dev/null
7635 mkdir .libs 2>/dev/null
7636 if test -d .libs; then
7637 lt_cv_objdir=.libs
7638 else
7639 # MS-DOS does not allow filenames that begin with a dot.
7640 lt_cv_objdir=_libs
7641 fi
7642 rmdir .libs 2>/dev/null
7643 fi
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7645 $as_echo "$lt_cv_objdir" >&6; }
7646 objdir=$lt_cv_objdir
7647
7648
7649
7650
7651
7652 cat >>confdefs.h <<_ACEOF
7653 #define LT_OBJDIR "$lt_cv_objdir/"
7654 _ACEOF
7655
7656
7657
7658
7659 case $host_os in
7660 aix3*)
7661 # AIX sometimes has problems with the GCC collect2 program. For some
7662 # reason, if we set the COLLECT_NAMES environment variable, the problems
7663 # vanish in a puff of smoke.
7664 if test "X${COLLECT_NAMES+set}" != Xset; then
7665 COLLECT_NAMES=
7666 export COLLECT_NAMES
7667 fi
7668 ;;
7669 esac
7670
7671 # Global variables:
7672 ofile=libtool
7673 can_build_shared=yes
7674
7675 # All known linkers require a `.a' archive for static linking (except MSVC,
7676 # which needs '.lib').
7677 libext=a
7678
7679 with_gnu_ld="$lt_cv_prog_gnu_ld"
7680
7681 old_CC="$CC"
7682 old_CFLAGS="$CFLAGS"
7683
7684 # Set sane defaults for various variables
7685 test -z "$CC" && CC=cc
7686 test -z "$LTCC" && LTCC=$CC
7687 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7688 test -z "$LD" && LD=ld
7689 test -z "$ac_objext" && ac_objext=o
7690
7691 for cc_temp in $compiler""; do
7692 case $cc_temp in
7693 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7694 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7695 \-*) ;;
7696 *) break;;
7697 esac
7698 done
7699 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7700
7701
7702 # Only perform the check for file, if the check method requires it
7703 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7704 case $deplibs_check_method in
7705 file_magic*)
7706 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7708 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7709 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7710 $as_echo_n "(cached) " >&6
7711 else
7712 case $MAGIC_CMD in
7713 [\\/*] | ?:[\\/]*)
7714 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7715 ;;
7716 *)
7717 lt_save_MAGIC_CMD="$MAGIC_CMD"
7718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7719 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7720 for ac_dir in $ac_dummy; do
7721 IFS="$lt_save_ifs"
7722 test -z "$ac_dir" && ac_dir=.
7723 if test -f $ac_dir/${ac_tool_prefix}file; then
7724 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7725 if test -n "$file_magic_test_file"; then
7726 case $deplibs_check_method in
7727 "file_magic "*)
7728 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7730 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7731 $EGREP "$file_magic_regex" > /dev/null; then
7732 :
7733 else
7734 cat <<_LT_EOF 1>&2
7735
7736 *** Warning: the command libtool uses to detect shared libraries,
7737 *** $file_magic_cmd, produces output that libtool cannot recognize.
7738 *** The result is that libtool may fail to recognize shared libraries
7739 *** as such. This will affect the creation of libtool libraries that
7740 *** depend on shared libraries, but programs linked with such libtool
7741 *** libraries will work regardless of this problem. Nevertheless, you
7742 *** may want to report the problem to your system manager and/or to
7743 *** bug-libtool@gnu.org
7744
7745 _LT_EOF
7746 fi ;;
7747 esac
7748 fi
7749 break
7750 fi
7751 done
7752 IFS="$lt_save_ifs"
7753 MAGIC_CMD="$lt_save_MAGIC_CMD"
7754 ;;
7755 esac
7756 fi
7757
7758 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7759 if test -n "$MAGIC_CMD"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7761 $as_echo "$MAGIC_CMD" >&6; }
7762 else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7765 fi
7766
7767
7768
7769
7770
7771 if test -z "$lt_cv_path_MAGIC_CMD"; then
7772 if test -n "$ac_tool_prefix"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7774 $as_echo_n "checking for file... " >&6; }
7775 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 case $MAGIC_CMD in
7779 [\\/*] | ?:[\\/]*)
7780 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7781 ;;
7782 *)
7783 lt_save_MAGIC_CMD="$MAGIC_CMD"
7784 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7785 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7786 for ac_dir in $ac_dummy; do
7787 IFS="$lt_save_ifs"
7788 test -z "$ac_dir" && ac_dir=.
7789 if test -f $ac_dir/file; then
7790 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7791 if test -n "$file_magic_test_file"; then
7792 case $deplibs_check_method in
7793 "file_magic "*)
7794 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7795 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7796 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7797 $EGREP "$file_magic_regex" > /dev/null; then
7798 :
7799 else
7800 cat <<_LT_EOF 1>&2
7801
7802 *** Warning: the command libtool uses to detect shared libraries,
7803 *** $file_magic_cmd, produces output that libtool cannot recognize.
7804 *** The result is that libtool may fail to recognize shared libraries
7805 *** as such. This will affect the creation of libtool libraries that
7806 *** depend on shared libraries, but programs linked with such libtool
7807 *** libraries will work regardless of this problem. Nevertheless, you
7808 *** may want to report the problem to your system manager and/or to
7809 *** bug-libtool@gnu.org
7810
7811 _LT_EOF
7812 fi ;;
7813 esac
7814 fi
7815 break
7816 fi
7817 done
7818 IFS="$lt_save_ifs"
7819 MAGIC_CMD="$lt_save_MAGIC_CMD"
7820 ;;
7821 esac
7822 fi
7823
7824 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7825 if test -n "$MAGIC_CMD"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7827 $as_echo "$MAGIC_CMD" >&6; }
7828 else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832
7833
7834 else
7835 MAGIC_CMD=:
7836 fi
7837 fi
7838
7839 fi
7840 ;;
7841 esac
7842
7843 # Use C for the default configuration in the libtool script
7844
7845 lt_save_CC="$CC"
7846 ac_ext=c
7847 ac_cpp='$CPP $CPPFLAGS'
7848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7851
7852
7853 # Source file extension for C test sources.
7854 ac_ext=c
7855
7856 # Object file extension for compiled C test sources.
7857 objext=o
7858 objext=$objext
7859
7860 # Code to be used in simple compile tests
7861 lt_simple_compile_test_code="int some_variable = 0;"
7862
7863 # Code to be used in simple link tests
7864 lt_simple_link_test_code='int main(){return(0);}'
7865
7866
7867
7868
7869
7870
7871
7872 # If no C compiler was specified, use CC.
7873 LTCC=${LTCC-"$CC"}
7874
7875 # If no C compiler flags were specified, use CFLAGS.
7876 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7877
7878 # Allow CC to be a program name with arguments.
7879 compiler=$CC
7880
7881 # Save the default compiler, since it gets overwritten when the other
7882 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7883 compiler_DEFAULT=$CC
7884
7885 # save warnings/boilerplate of simple test code
7886 ac_outfile=conftest.$ac_objext
7887 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7888 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7889 _lt_compiler_boilerplate=`cat conftest.err`
7890 $RM conftest*
7891
7892 ac_outfile=conftest.$ac_objext
7893 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7894 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7895 _lt_linker_boilerplate=`cat conftest.err`
7896 $RM -r conftest*
7897
7898
7899 if test -n "$compiler"; then
7900
7901 lt_prog_compiler_no_builtin_flag=
7902
7903 if test "$GCC" = yes; then
7904 case $cc_basename in
7905 nvcc*)
7906 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7907 *)
7908 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7909 esac
7910
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7912 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7913 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 lt_cv_prog_compiler_rtti_exceptions=no
7917 ac_outfile=conftest.$ac_objext
7918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7919 lt_compiler_flag="-fno-rtti -fno-exceptions"
7920 # Insert the option either (1) after the last *FLAGS variable, or
7921 # (2) before a word containing "conftest.", or (3) at the end.
7922 # Note that $ac_compile itself does not contain backslashes and begins
7923 # with a dollar sign (not a hyphen), so the echo should work correctly.
7924 # The option is referenced via a variable to avoid confusing sed.
7925 lt_compile=`echo "$ac_compile" | $SED \
7926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7928 -e 's:$: $lt_compiler_flag:'`
7929 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7930 (eval "$lt_compile" 2>conftest.err)
7931 ac_status=$?
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 if (exit $ac_status) && test -s "$ac_outfile"; then
7935 # The compiler can only warn and ignore the option if not recognized
7936 # So say no if there are warnings other than the usual output.
7937 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7938 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7939 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7940 lt_cv_prog_compiler_rtti_exceptions=yes
7941 fi
7942 fi
7943 $RM conftest*
7944
7945 fi
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7947 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7948
7949 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7950 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7951 else
7952 :
7953 fi
7954
7955 fi
7956
7957
7958
7959
7960
7961
7962 lt_prog_compiler_wl=
7963 lt_prog_compiler_pic=
7964 lt_prog_compiler_static=
7965
7966
7967 if test "$GCC" = yes; then
7968 lt_prog_compiler_wl='-Wl,'
7969 lt_prog_compiler_static='-static'
7970
7971 case $host_os in
7972 aix*)
7973 # All AIX code is PIC.
7974 if test "$host_cpu" = ia64; then
7975 # AIX 5 now supports IA64 processor
7976 lt_prog_compiler_static='-Bstatic'
7977 fi
7978 ;;
7979
7980 amigaos*)
7981 case $host_cpu in
7982 powerpc)
7983 # see comment about AmigaOS4 .so support
7984 lt_prog_compiler_pic='-fPIC'
7985 ;;
7986 m68k)
7987 # FIXME: we need at least 68020 code to build shared libraries, but
7988 # adding the `-m68020' flag to GCC prevents building anything better,
7989 # like `-m68040'.
7990 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7991 ;;
7992 esac
7993 ;;
7994
7995 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7996 # PIC is the default for these OSes.
7997 ;;
7998
7999 mingw* | cygwin* | pw32* | os2* | cegcc*)
8000 # This hack is so that the source file can tell whether it is being
8001 # built for inclusion in a dll (and should export symbols for example).
8002 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8003 # (--disable-auto-import) libraries
8004 lt_prog_compiler_pic='-DDLL_EXPORT'
8005 ;;
8006
8007 darwin* | rhapsody*)
8008 # PIC is the default on this platform
8009 # Common symbols not allowed in MH_DYLIB files
8010 lt_prog_compiler_pic='-fno-common'
8011 ;;
8012
8013 haiku*)
8014 # PIC is the default for Haiku.
8015 # The "-static" flag exists, but is broken.
8016 lt_prog_compiler_static=
8017 ;;
8018
8019 hpux*)
8020 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8021 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8022 # sets the default TLS model and affects inlining.
8023 case $host_cpu in
8024 hppa*64*)
8025 # +Z the default
8026 ;;
8027 *)
8028 lt_prog_compiler_pic='-fPIC'
8029 ;;
8030 esac
8031 ;;
8032
8033 interix[3-9]*)
8034 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8035 # Instead, we relocate shared libraries at runtime.
8036 ;;
8037
8038 msdosdjgpp*)
8039 # Just because we use GCC doesn't mean we suddenly get shared libraries
8040 # on systems that don't support them.
8041 lt_prog_compiler_can_build_shared=no
8042 enable_shared=no
8043 ;;
8044
8045 *nto* | *qnx*)
8046 # QNX uses GNU C++, but need to define -shared option too, otherwise
8047 # it will coredump.
8048 lt_prog_compiler_pic='-fPIC -shared'
8049 ;;
8050
8051 sysv4*MP*)
8052 if test -d /usr/nec; then
8053 lt_prog_compiler_pic=-Kconform_pic
8054 fi
8055 ;;
8056
8057 *)
8058 lt_prog_compiler_pic='-fPIC'
8059 ;;
8060 esac
8061
8062 case $cc_basename in
8063 nvcc*) # Cuda Compiler Driver 2.2
8064 lt_prog_compiler_wl='-Xlinker '
8065 if test -n "$lt_prog_compiler_pic"; then
8066 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8067 fi
8068 ;;
8069 esac
8070 else
8071 # PORTME Check for flag to pass linker flags through the system compiler.
8072 case $host_os in
8073 aix*)
8074 lt_prog_compiler_wl='-Wl,'
8075 if test "$host_cpu" = ia64; then
8076 # AIX 5 now supports IA64 processor
8077 lt_prog_compiler_static='-Bstatic'
8078 else
8079 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8080 fi
8081 ;;
8082
8083 mingw* | cygwin* | pw32* | os2* | cegcc*)
8084 # This hack is so that the source file can tell whether it is being
8085 # built for inclusion in a dll (and should export symbols for example).
8086 lt_prog_compiler_pic='-DDLL_EXPORT'
8087 ;;
8088
8089 hpux9* | hpux10* | hpux11*)
8090 lt_prog_compiler_wl='-Wl,'
8091 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8092 # not for PA HP-UX.
8093 case $host_cpu in
8094 hppa*64*|ia64*)
8095 # +Z the default
8096 ;;
8097 *)
8098 lt_prog_compiler_pic='+Z'
8099 ;;
8100 esac
8101 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8102 lt_prog_compiler_static='${wl}-a ${wl}archive'
8103 ;;
8104
8105 irix5* | irix6* | nonstopux*)
8106 lt_prog_compiler_wl='-Wl,'
8107 # PIC (with -KPIC) is the default.
8108 lt_prog_compiler_static='-non_shared'
8109 ;;
8110
8111 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8112 case $cc_basename in
8113 # old Intel for x86_64 which still supported -KPIC.
8114 ecc*)
8115 lt_prog_compiler_wl='-Wl,'
8116 lt_prog_compiler_pic='-KPIC'
8117 lt_prog_compiler_static='-static'
8118 ;;
8119 # icc used to be incompatible with GCC.
8120 # ICC 10 doesn't accept -KPIC any more.
8121 icc* | ifort*)
8122 lt_prog_compiler_wl='-Wl,'
8123 lt_prog_compiler_pic='-fPIC'
8124 lt_prog_compiler_static='-static'
8125 ;;
8126 # Lahey Fortran 8.1.
8127 lf95*)
8128 lt_prog_compiler_wl='-Wl,'
8129 lt_prog_compiler_pic='--shared'
8130 lt_prog_compiler_static='--static'
8131 ;;
8132 nagfor*)
8133 # NAG Fortran compiler
8134 lt_prog_compiler_wl='-Wl,-Wl,,'
8135 lt_prog_compiler_pic='-PIC'
8136 lt_prog_compiler_static='-Bstatic'
8137 ;;
8138 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8139 # Portland Group compilers (*not* the Pentium gcc compiler,
8140 # which looks to be a dead project)
8141 lt_prog_compiler_wl='-Wl,'
8142 lt_prog_compiler_pic='-fpic'
8143 lt_prog_compiler_static='-Bstatic'
8144 ;;
8145 ccc*)
8146 lt_prog_compiler_wl='-Wl,'
8147 # All Alpha code is PIC.
8148 lt_prog_compiler_static='-non_shared'
8149 ;;
8150 xl* | bgxl* | bgf* | mpixl*)
8151 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8152 lt_prog_compiler_wl='-Wl,'
8153 lt_prog_compiler_pic='-qpic'
8154 lt_prog_compiler_static='-qstaticlink'
8155 ;;
8156 *)
8157 case `$CC -V 2>&1 | sed 5q` in
8158 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8159 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8160 lt_prog_compiler_pic='-KPIC'
8161 lt_prog_compiler_static='-Bstatic'
8162 lt_prog_compiler_wl=''
8163 ;;
8164 *Sun\ F* | *Sun*Fortran*)
8165 lt_prog_compiler_pic='-KPIC'
8166 lt_prog_compiler_static='-Bstatic'
8167 lt_prog_compiler_wl='-Qoption ld '
8168 ;;
8169 *Sun\ C*)
8170 # Sun C 5.9
8171 lt_prog_compiler_pic='-KPIC'
8172 lt_prog_compiler_static='-Bstatic'
8173 lt_prog_compiler_wl='-Wl,'
8174 ;;
8175 *Intel*\ [CF]*Compiler*)
8176 lt_prog_compiler_wl='-Wl,'
8177 lt_prog_compiler_pic='-fPIC'
8178 lt_prog_compiler_static='-static'
8179 ;;
8180 *Portland\ Group*)
8181 lt_prog_compiler_wl='-Wl,'
8182 lt_prog_compiler_pic='-fpic'
8183 lt_prog_compiler_static='-Bstatic'
8184 ;;
8185 esac
8186 ;;
8187 esac
8188 ;;
8189
8190 newsos6)
8191 lt_prog_compiler_pic='-KPIC'
8192 lt_prog_compiler_static='-Bstatic'
8193 ;;
8194
8195 *nto* | *qnx*)
8196 # QNX uses GNU C++, but need to define -shared option too, otherwise
8197 # it will coredump.
8198 lt_prog_compiler_pic='-fPIC -shared'
8199 ;;
8200
8201 osf3* | osf4* | osf5*)
8202 lt_prog_compiler_wl='-Wl,'
8203 # All OSF/1 code is PIC.
8204 lt_prog_compiler_static='-non_shared'
8205 ;;
8206
8207 rdos*)
8208 lt_prog_compiler_static='-non_shared'
8209 ;;
8210
8211 solaris*)
8212 lt_prog_compiler_pic='-KPIC'
8213 lt_prog_compiler_static='-Bstatic'
8214 case $cc_basename in
8215 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8216 lt_prog_compiler_wl='-Qoption ld ';;
8217 *)
8218 lt_prog_compiler_wl='-Wl,';;
8219 esac
8220 ;;
8221
8222 sunos4*)
8223 lt_prog_compiler_wl='-Qoption ld '
8224 lt_prog_compiler_pic='-PIC'
8225 lt_prog_compiler_static='-Bstatic'
8226 ;;
8227
8228 sysv4 | sysv4.2uw2* | sysv4.3*)
8229 lt_prog_compiler_wl='-Wl,'
8230 lt_prog_compiler_pic='-KPIC'
8231 lt_prog_compiler_static='-Bstatic'
8232 ;;
8233
8234 sysv4*MP*)
8235 if test -d /usr/nec ;then
8236 lt_prog_compiler_pic='-Kconform_pic'
8237 lt_prog_compiler_static='-Bstatic'
8238 fi
8239 ;;
8240
8241 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8242 lt_prog_compiler_wl='-Wl,'
8243 lt_prog_compiler_pic='-KPIC'
8244 lt_prog_compiler_static='-Bstatic'
8245 ;;
8246
8247 unicos*)
8248 lt_prog_compiler_wl='-Wl,'
8249 lt_prog_compiler_can_build_shared=no
8250 ;;
8251
8252 uts4*)
8253 lt_prog_compiler_pic='-pic'
8254 lt_prog_compiler_static='-Bstatic'
8255 ;;
8256
8257 *)
8258 lt_prog_compiler_can_build_shared=no
8259 ;;
8260 esac
8261 fi
8262
8263 case $host_os in
8264 # For platforms which do not support PIC, -DPIC is meaningless:
8265 *djgpp*)
8266 lt_prog_compiler_pic=
8267 ;;
8268 *)
8269 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8270 ;;
8271 esac
8272
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8274 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8275 if ${lt_cv_prog_compiler_pic+:} false; then :
8276 $as_echo_n "(cached) " >&6
8277 else
8278 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8279 fi
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8281 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8282 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8283
8284 #
8285 # Check to make sure the PIC flag actually works.
8286 #
8287 if test -n "$lt_prog_compiler_pic"; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8289 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8290 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 lt_cv_prog_compiler_pic_works=no
8294 ac_outfile=conftest.$ac_objext
8295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8296 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8297 # Insert the option either (1) after the last *FLAGS variable, or
8298 # (2) before a word containing "conftest.", or (3) at the end.
8299 # Note that $ac_compile itself does not contain backslashes and begins
8300 # with a dollar sign (not a hyphen), so the echo should work correctly.
8301 # The option is referenced via a variable to avoid confusing sed.
8302 lt_compile=`echo "$ac_compile" | $SED \
8303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8305 -e 's:$: $lt_compiler_flag:'`
8306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8307 (eval "$lt_compile" 2>conftest.err)
8308 ac_status=$?
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 if (exit $ac_status) && test -s "$ac_outfile"; then
8312 # The compiler can only warn and ignore the option if not recognized
8313 # So say no if there are warnings other than the usual output.
8314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8317 lt_cv_prog_compiler_pic_works=yes
8318 fi
8319 fi
8320 $RM conftest*
8321
8322 fi
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8324 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8325
8326 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8327 case $lt_prog_compiler_pic in
8328 "" | " "*) ;;
8329 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8330 esac
8331 else
8332 lt_prog_compiler_pic=
8333 lt_prog_compiler_can_build_shared=no
8334 fi
8335
8336 fi
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348 #
8349 # Check to make sure the static flag actually works.
8350 #
8351 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8353 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8354 if ${lt_cv_prog_compiler_static_works+:} false; then :
8355 $as_echo_n "(cached) " >&6
8356 else
8357 lt_cv_prog_compiler_static_works=no
8358 save_LDFLAGS="$LDFLAGS"
8359 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8360 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8361 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8362 # The linker can only warn and ignore the option if not recognized
8363 # So say no if there are warnings
8364 if test -s conftest.err; then
8365 # Append any errors to the config.log.
8366 cat conftest.err 1>&5
8367 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8369 if diff conftest.exp conftest.er2 >/dev/null; then
8370 lt_cv_prog_compiler_static_works=yes
8371 fi
8372 else
8373 lt_cv_prog_compiler_static_works=yes
8374 fi
8375 fi
8376 $RM -r conftest*
8377 LDFLAGS="$save_LDFLAGS"
8378
8379 fi
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8381 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8382
8383 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8384 :
8385 else
8386 lt_prog_compiler_static=
8387 fi
8388
8389
8390
8391
8392
8393
8394
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8396 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8397 if ${lt_cv_prog_compiler_c_o+:} false; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 lt_cv_prog_compiler_c_o=no
8401 $RM -r conftest 2>/dev/null
8402 mkdir conftest
8403 cd conftest
8404 mkdir out
8405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8406
8407 lt_compiler_flag="-o out/conftest2.$ac_objext"
8408 # Insert the option either (1) after the last *FLAGS variable, or
8409 # (2) before a word containing "conftest.", or (3) at the end.
8410 # Note that $ac_compile itself does not contain backslashes and begins
8411 # with a dollar sign (not a hyphen), so the echo should work correctly.
8412 lt_compile=`echo "$ac_compile" | $SED \
8413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8415 -e 's:$: $lt_compiler_flag:'`
8416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8417 (eval "$lt_compile" 2>out/conftest.err)
8418 ac_status=$?
8419 cat out/conftest.err >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8422 then
8423 # The compiler can only warn and ignore the option if not recognized
8424 # So say no if there are warnings
8425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8426 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8427 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8428 lt_cv_prog_compiler_c_o=yes
8429 fi
8430 fi
8431 chmod u+w . 2>&5
8432 $RM conftest*
8433 # SGI C++ compiler will create directory out/ii_files/ for
8434 # template instantiation
8435 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8436 $RM out/* && rmdir out
8437 cd ..
8438 $RM -r conftest
8439 $RM conftest*
8440
8441 fi
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8443 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8444
8445
8446
8447
8448
8449
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8451 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8452 if ${lt_cv_prog_compiler_c_o+:} false; then :
8453 $as_echo_n "(cached) " >&6
8454 else
8455 lt_cv_prog_compiler_c_o=no
8456 $RM -r conftest 2>/dev/null
8457 mkdir conftest
8458 cd conftest
8459 mkdir out
8460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8461
8462 lt_compiler_flag="-o out/conftest2.$ac_objext"
8463 # Insert the option either (1) after the last *FLAGS variable, or
8464 # (2) before a word containing "conftest.", or (3) at the end.
8465 # Note that $ac_compile itself does not contain backslashes and begins
8466 # with a dollar sign (not a hyphen), so the echo should work correctly.
8467 lt_compile=`echo "$ac_compile" | $SED \
8468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8470 -e 's:$: $lt_compiler_flag:'`
8471 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8472 (eval "$lt_compile" 2>out/conftest.err)
8473 ac_status=$?
8474 cat out/conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8477 then
8478 # The compiler can only warn and ignore the option if not recognized
8479 # So say no if there are warnings
8480 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8481 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8482 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8483 lt_cv_prog_compiler_c_o=yes
8484 fi
8485 fi
8486 chmod u+w . 2>&5
8487 $RM conftest*
8488 # SGI C++ compiler will create directory out/ii_files/ for
8489 # template instantiation
8490 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8491 $RM out/* && rmdir out
8492 cd ..
8493 $RM -r conftest
8494 $RM conftest*
8495
8496 fi
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8498 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8499
8500
8501
8502
8503 hard_links="nottested"
8504 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8505 # do not overwrite the value of need_locks provided by the user
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8507 $as_echo_n "checking if we can lock with hard links... " >&6; }
8508 hard_links=yes
8509 $RM conftest*
8510 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8511 touch conftest.a
8512 ln conftest.a conftest.b 2>&5 || hard_links=no
8513 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8515 $as_echo "$hard_links" >&6; }
8516 if test "$hard_links" = no; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8518 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8519 need_locks=warn
8520 fi
8521 else
8522 need_locks=no
8523 fi
8524
8525
8526
8527
8528
8529
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8531 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8532
8533 runpath_var=
8534 allow_undefined_flag=
8535 always_export_symbols=no
8536 archive_cmds=
8537 archive_expsym_cmds=
8538 compiler_needs_object=no
8539 enable_shared_with_static_runtimes=no
8540 export_dynamic_flag_spec=
8541 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8542 hardcode_automatic=no
8543 hardcode_direct=no
8544 hardcode_direct_absolute=no
8545 hardcode_libdir_flag_spec=
8546 hardcode_libdir_separator=
8547 hardcode_minus_L=no
8548 hardcode_shlibpath_var=unsupported
8549 inherit_rpath=no
8550 link_all_deplibs=unknown
8551 module_cmds=
8552 module_expsym_cmds=
8553 old_archive_from_new_cmds=
8554 old_archive_from_expsyms_cmds=
8555 thread_safe_flag_spec=
8556 whole_archive_flag_spec=
8557 # include_expsyms should be a list of space-separated symbols to be *always*
8558 # included in the symbol list
8559 include_expsyms=
8560 # exclude_expsyms can be an extended regexp of symbols to exclude
8561 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8562 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8563 # as well as any symbol that contains `d'.
8564 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8565 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8566 # platforms (ab)use it in PIC code, but their linkers get confused if
8567 # the symbol is explicitly referenced. Since portable code cannot
8568 # rely on this symbol name, it's probably fine to never include it in
8569 # preloaded symbol tables.
8570 # Exclude shared library initialization/finalization symbols.
8571 extract_expsyms_cmds=
8572
8573 case $host_os in
8574 cygwin* | mingw* | pw32* | cegcc*)
8575 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8576 # When not using gcc, we currently assume that we are using
8577 # Microsoft Visual C++.
8578 if test "$GCC" != yes; then
8579 with_gnu_ld=no
8580 fi
8581 ;;
8582 interix*)
8583 # we just hope/assume this is gcc and not c89 (= MSVC++)
8584 with_gnu_ld=yes
8585 ;;
8586 openbsd*)
8587 with_gnu_ld=no
8588 ;;
8589 esac
8590
8591 ld_shlibs=yes
8592
8593 # On some targets, GNU ld is compatible enough with the native linker
8594 # that we're better off using the native interface for both.
8595 lt_use_gnu_ld_interface=no
8596 if test "$with_gnu_ld" = yes; then
8597 case $host_os in
8598 aix*)
8599 # The AIX port of GNU ld has always aspired to compatibility
8600 # with the native linker. However, as the warning in the GNU ld
8601 # block says, versions before 2.19.5* couldn't really create working
8602 # shared libraries, regardless of the interface used.
8603 case `$LD -v 2>&1` in
8604 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8605 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8606 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8607 *)
8608 lt_use_gnu_ld_interface=yes
8609 ;;
8610 esac
8611 ;;
8612 *)
8613 lt_use_gnu_ld_interface=yes
8614 ;;
8615 esac
8616 fi
8617
8618 if test "$lt_use_gnu_ld_interface" = yes; then
8619 # If archive_cmds runs LD, not CC, wlarc should be empty
8620 wlarc='${wl}'
8621
8622 # Set some defaults for GNU ld with shared library support. These
8623 # are reset later if shared libraries are not supported. Putting them
8624 # here allows them to be overridden if necessary.
8625 runpath_var=LD_RUN_PATH
8626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8627 export_dynamic_flag_spec='${wl}--export-dynamic'
8628 # ancient GNU ld didn't support --whole-archive et. al.
8629 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8630 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8631 else
8632 whole_archive_flag_spec=
8633 fi
8634 supports_anon_versioning=no
8635 case `$LD -v 2>&1` in
8636 *GNU\ gold*) supports_anon_versioning=yes ;;
8637 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8638 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8639 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8640 *\ 2.11.*) ;; # other 2.11 versions
8641 *) supports_anon_versioning=yes ;;
8642 esac
8643
8644 # See if GNU ld supports shared libraries.
8645 case $host_os in
8646 aix[3-9]*)
8647 # On AIX/PPC, the GNU linker is very broken
8648 if test "$host_cpu" != ia64; then
8649 ld_shlibs=no
8650 cat <<_LT_EOF 1>&2
8651
8652 *** Warning: the GNU linker, at least up to release 2.19, is reported
8653 *** to be unable to reliably create shared libraries on AIX.
8654 *** Therefore, libtool is disabling shared libraries support. If you
8655 *** really care for shared libraries, you may want to install binutils
8656 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8657 *** You will then need to restart the configuration process.
8658
8659 _LT_EOF
8660 fi
8661 ;;
8662
8663 amigaos*)
8664 case $host_cpu in
8665 powerpc)
8666 # see comment about AmigaOS4 .so support
8667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8668 archive_expsym_cmds=''
8669 ;;
8670 m68k)
8671 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)'
8672 hardcode_libdir_flag_spec='-L$libdir'
8673 hardcode_minus_L=yes
8674 ;;
8675 esac
8676 ;;
8677
8678 beos*)
8679 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8680 allow_undefined_flag=unsupported
8681 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8682 # support --undefined. This deserves some investigation. FIXME
8683 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8684 else
8685 ld_shlibs=no
8686 fi
8687 ;;
8688
8689 cygwin* | mingw* | pw32* | cegcc*)
8690 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8691 # as there is no search path for DLLs.
8692 hardcode_libdir_flag_spec='-L$libdir'
8693 export_dynamic_flag_spec='${wl}--export-all-symbols'
8694 allow_undefined_flag=unsupported
8695 always_export_symbols=no
8696 enable_shared_with_static_runtimes=yes
8697 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'
8698 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8699
8700 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8701 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8702 # If the export-symbols file already is a .def file (1st line
8703 # is EXPORTS), use it as is; otherwise, prepend...
8704 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8705 cp $export_symbols $output_objdir/$soname.def;
8706 else
8707 echo EXPORTS > $output_objdir/$soname.def;
8708 cat $export_symbols >> $output_objdir/$soname.def;
8709 fi~
8710 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8711 else
8712 ld_shlibs=no
8713 fi
8714 ;;
8715
8716 haiku*)
8717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8718 link_all_deplibs=yes
8719 ;;
8720
8721 interix[3-9]*)
8722 hardcode_direct=no
8723 hardcode_shlibpath_var=no
8724 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8725 export_dynamic_flag_spec='${wl}-E'
8726 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8727 # Instead, shared libraries are loaded at an image base (0x10000000 by
8728 # default) and relocated if they conflict, which is a slow very memory
8729 # consuming and fragmenting process. To avoid this, we pick a random,
8730 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8731 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8732 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8733 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'
8734 ;;
8735
8736 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8737 tmp_diet=no
8738 if test "$host_os" = linux-dietlibc; then
8739 case $cc_basename in
8740 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8741 esac
8742 fi
8743 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8744 && test "$tmp_diet" = no
8745 then
8746 tmp_addflag=' $pic_flag'
8747 tmp_sharedflag='-shared'
8748 case $cc_basename,$host_cpu in
8749 pgcc*) # Portland Group C compiler
8750 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'
8751 tmp_addflag=' $pic_flag'
8752 ;;
8753 pgf77* | pgf90* | pgf95* | pgfortran*)
8754 # Portland Group f77 and f90 compilers
8755 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'
8756 tmp_addflag=' $pic_flag -Mnomain' ;;
8757 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8758 tmp_addflag=' -i_dynamic' ;;
8759 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8760 tmp_addflag=' -i_dynamic -nofor_main' ;;
8761 ifc* | ifort*) # Intel Fortran compiler
8762 tmp_addflag=' -nofor_main' ;;
8763 lf95*) # Lahey Fortran 8.1
8764 whole_archive_flag_spec=
8765 tmp_sharedflag='--shared' ;;
8766 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8767 tmp_sharedflag='-qmkshrobj'
8768 tmp_addflag= ;;
8769 nvcc*) # Cuda Compiler Driver 2.2
8770 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'
8771 compiler_needs_object=yes
8772 ;;
8773 esac
8774 case `$CC -V 2>&1 | sed 5q` in
8775 *Sun\ C*) # Sun C 5.9
8776 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'
8777 compiler_needs_object=yes
8778 tmp_sharedflag='-G' ;;
8779 *Sun\ F*) # Sun Fortran 8.3
8780 tmp_sharedflag='-G' ;;
8781 esac
8782 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8783
8784 if test "x$supports_anon_versioning" = xyes; then
8785 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8786 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8787 echo "local: *; };" >> $output_objdir/$libname.ver~
8788 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8789 fi
8790
8791 case $cc_basename in
8792 xlf* | bgf* | bgxlf* | mpixlf*)
8793 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8794 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8796 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8797 if test "x$supports_anon_versioning" = xyes; then
8798 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8799 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8800 echo "local: *; };" >> $output_objdir/$libname.ver~
8801 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8802 fi
8803 ;;
8804 esac
8805 else
8806 ld_shlibs=no
8807 fi
8808 ;;
8809
8810 netbsd*)
8811 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8812 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8813 wlarc=
8814 else
8815 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8816 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8817 fi
8818 ;;
8819
8820 solaris*)
8821 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8822 ld_shlibs=no
8823 cat <<_LT_EOF 1>&2
8824
8825 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8826 *** create shared libraries on Solaris systems. Therefore, libtool
8827 *** is disabling shared libraries support. We urge you to upgrade GNU
8828 *** binutils to release 2.9.1 or newer. Another option is to modify
8829 *** your PATH or compiler configuration so that the native linker is
8830 *** used, and then restart.
8831
8832 _LT_EOF
8833 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8834 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8835 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8836 else
8837 ld_shlibs=no
8838 fi
8839 ;;
8840
8841 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8842 case `$LD -v 2>&1` in
8843 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8844 ld_shlibs=no
8845 cat <<_LT_EOF 1>&2
8846
8847 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8848 *** reliably create shared libraries on SCO systems. Therefore, libtool
8849 *** is disabling shared libraries support. We urge you to upgrade GNU
8850 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8851 *** your PATH or compiler configuration so that the native linker is
8852 *** used, and then restart.
8853
8854 _LT_EOF
8855 ;;
8856 *)
8857 # For security reasons, it is highly recommended that you always
8858 # use absolute paths for naming shared libraries, and exclude the
8859 # DT_RUNPATH tag from executables and libraries. But doing so
8860 # requires that you compile everything twice, which is a pain.
8861 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8862 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8864 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8865 else
8866 ld_shlibs=no
8867 fi
8868 ;;
8869 esac
8870 ;;
8871
8872 sunos4*)
8873 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8874 wlarc=
8875 hardcode_direct=yes
8876 hardcode_shlibpath_var=no
8877 ;;
8878
8879 *)
8880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8881 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8882 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8883 else
8884 ld_shlibs=no
8885 fi
8886 ;;
8887 esac
8888
8889 if test "$ld_shlibs" = no; then
8890 runpath_var=
8891 hardcode_libdir_flag_spec=
8892 export_dynamic_flag_spec=
8893 whole_archive_flag_spec=
8894 fi
8895 else
8896 # PORTME fill in a description of your system's linker (not GNU ld)
8897 case $host_os in
8898 aix3*)
8899 allow_undefined_flag=unsupported
8900 always_export_symbols=yes
8901 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'
8902 # Note: this linker hardcodes the directories in LIBPATH if there
8903 # are no directories specified by -L.
8904 hardcode_minus_L=yes
8905 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8906 # Neither direct hardcoding nor static linking is supported with a
8907 # broken collect2.
8908 hardcode_direct=unsupported
8909 fi
8910 ;;
8911
8912 aix[4-9]*)
8913 if test "$host_cpu" = ia64; then
8914 # On IA64, the linker does run time linking by default, so we don't
8915 # have to do anything special.
8916 aix_use_runtimelinking=no
8917 exp_sym_flag='-Bexport'
8918 no_entry_flag=""
8919 else
8920 # If we're using GNU nm, then we don't want the "-C" option.
8921 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8922 # Also, AIX nm treats weak defined symbols like other global
8923 # defined symbols, whereas GNU nm marks them as "W".
8924 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8925 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8926 else
8927 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8928 fi
8929 aix_use_runtimelinking=no
8930
8931 # Test if we are trying to use run time linking or normal
8932 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8933 # need to do runtime linking.
8934 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8935 for ld_flag in $LDFLAGS; do
8936 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8937 aix_use_runtimelinking=yes
8938 break
8939 fi
8940 done
8941 ;;
8942 esac
8943
8944 exp_sym_flag='-bexport'
8945 no_entry_flag='-bnoentry'
8946 fi
8947
8948 # When large executables or shared objects are built, AIX ld can
8949 # have problems creating the table of contents. If linking a library
8950 # or program results in "error TOC overflow" add -mminimal-toc to
8951 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8952 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8953
8954 archive_cmds=''
8955 hardcode_direct=yes
8956 hardcode_direct_absolute=yes
8957 hardcode_libdir_separator=':'
8958 link_all_deplibs=yes
8959 file_list_spec='${wl}-f,'
8960
8961 if test "$GCC" = yes; then
8962 case $host_os in aix4.[012]|aix4.[012].*)
8963 # We only want to do this on AIX 4.2 and lower, the check
8964 # below for broken collect2 doesn't work under 4.3+
8965 collect2name=`${CC} -print-prog-name=collect2`
8966 if test -f "$collect2name" &&
8967 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8968 then
8969 # We have reworked collect2
8970 :
8971 else
8972 # We have old collect2
8973 hardcode_direct=unsupported
8974 # It fails to find uninstalled libraries when the uninstalled
8975 # path is not listed in the libpath. Setting hardcode_minus_L
8976 # to unsupported forces relinking
8977 hardcode_minus_L=yes
8978 hardcode_libdir_flag_spec='-L$libdir'
8979 hardcode_libdir_separator=
8980 fi
8981 ;;
8982 esac
8983 shared_flag='-shared'
8984 if test "$aix_use_runtimelinking" = yes; then
8985 shared_flag="$shared_flag "'${wl}-G'
8986 fi
8987 else
8988 # not using gcc
8989 if test "$host_cpu" = ia64; then
8990 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8991 # chokes on -Wl,-G. The following line is correct:
8992 shared_flag='-G'
8993 else
8994 if test "$aix_use_runtimelinking" = yes; then
8995 shared_flag='${wl}-G'
8996 else
8997 shared_flag='${wl}-bM:SRE'
8998 fi
8999 fi
9000 fi
9001
9002 export_dynamic_flag_spec='${wl}-bexpall'
9003 # It seems that -bexpall does not export symbols beginning with
9004 # underscore (_), so it is better to generate a list of symbols to export.
9005 always_export_symbols=yes
9006 if test "$aix_use_runtimelinking" = yes; then
9007 # Warning - without using the other runtime loading flags (-brtl),
9008 # -berok will link without error, but may produce a broken library.
9009 allow_undefined_flag='-berok'
9010 # Determine the default libpath from the value encoded in an
9011 # empty executable.
9012 if test "${lt_cv_aix_libpath+set}" = set; then
9013 aix_libpath=$lt_cv_aix_libpath
9014 else
9015 if ${lt_cv_aix_libpath_+:} false; then :
9016 $as_echo_n "(cached) " >&6
9017 else
9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019 /* end confdefs.h. */
9020
9021 int
9022 main ()
9023 {
9024
9025 ;
9026 return 0;
9027 }
9028 _ACEOF
9029 if ac_fn_c_try_link "$LINENO"; then :
9030
9031 lt_aix_libpath_sed='
9032 /Import File Strings/,/^$/ {
9033 /^0/ {
9034 s/^0 *\([^ ]*\) *$/\1/
9035 p
9036 }
9037 }'
9038 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9039 # Check for a 64-bit object if we didn't find anything.
9040 if test -z "$lt_cv_aix_libpath_"; then
9041 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9042 fi
9043 fi
9044 rm -f core conftest.err conftest.$ac_objext \
9045 conftest$ac_exeext conftest.$ac_ext
9046 if test -z "$lt_cv_aix_libpath_"; then
9047 lt_cv_aix_libpath_="/usr/lib:/lib"
9048 fi
9049
9050 fi
9051
9052 aix_libpath=$lt_cv_aix_libpath_
9053 fi
9054
9055 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9056 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9057 else
9058 if test "$host_cpu" = ia64; then
9059 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9060 allow_undefined_flag="-z nodefs"
9061 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"
9062 else
9063 # Determine the default libpath from the value encoded in an
9064 # empty executable.
9065 if test "${lt_cv_aix_libpath+set}" = set; then
9066 aix_libpath=$lt_cv_aix_libpath
9067 else
9068 if ${lt_cv_aix_libpath_+:} false; then :
9069 $as_echo_n "(cached) " >&6
9070 else
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9073
9074 int
9075 main ()
9076 {
9077
9078 ;
9079 return 0;
9080 }
9081 _ACEOF
9082 if ac_fn_c_try_link "$LINENO"; then :
9083
9084 lt_aix_libpath_sed='
9085 /Import File Strings/,/^$/ {
9086 /^0/ {
9087 s/^0 *\([^ ]*\) *$/\1/
9088 p
9089 }
9090 }'
9091 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9092 # Check for a 64-bit object if we didn't find anything.
9093 if test -z "$lt_cv_aix_libpath_"; then
9094 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9095 fi
9096 fi
9097 rm -f core conftest.err conftest.$ac_objext \
9098 conftest$ac_exeext conftest.$ac_ext
9099 if test -z "$lt_cv_aix_libpath_"; then
9100 lt_cv_aix_libpath_="/usr/lib:/lib"
9101 fi
9102
9103 fi
9104
9105 aix_libpath=$lt_cv_aix_libpath_
9106 fi
9107
9108 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9109 # Warning - without using the other run time loading flags,
9110 # -berok will link without error, but may produce a broken library.
9111 no_undefined_flag=' ${wl}-bernotok'
9112 allow_undefined_flag=' ${wl}-berok'
9113 if test "$with_gnu_ld" = yes; then
9114 # We only use this code for GNU lds that support --whole-archive.
9115 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9116 else
9117 # Exported symbols can be pulled into shared objects from archives
9118 whole_archive_flag_spec='$convenience'
9119 fi
9120 archive_cmds_need_lc=yes
9121 # This is similar to how AIX traditionally builds its shared libraries.
9122 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9123 fi
9124 fi
9125 ;;
9126
9127 amigaos*)
9128 case $host_cpu in
9129 powerpc)
9130 # see comment about AmigaOS4 .so support
9131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9132 archive_expsym_cmds=''
9133 ;;
9134 m68k)
9135 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)'
9136 hardcode_libdir_flag_spec='-L$libdir'
9137 hardcode_minus_L=yes
9138 ;;
9139 esac
9140 ;;
9141
9142 bsdi[45]*)
9143 export_dynamic_flag_spec=-rdynamic
9144 ;;
9145
9146 cygwin* | mingw* | pw32* | cegcc*)
9147 # When not using gcc, we currently assume that we are using
9148 # Microsoft Visual C++.
9149 # hardcode_libdir_flag_spec is actually meaningless, as there is
9150 # no search path for DLLs.
9151 case $cc_basename in
9152 cl*)
9153 # Native MSVC
9154 hardcode_libdir_flag_spec=' '
9155 allow_undefined_flag=unsupported
9156 always_export_symbols=yes
9157 file_list_spec='@'
9158 # Tell ltmain to make .lib files, not .a files.
9159 libext=lib
9160 # Tell ltmain to make .dll files, not .so files.
9161 shrext_cmds=".dll"
9162 # FIXME: Setting linknames here is a bad hack.
9163 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9164 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9165 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9166 else
9167 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9168 fi~
9169 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9170 linknames='
9171 # The linker will not automatically build a static lib if we build a DLL.
9172 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9173 enable_shared_with_static_runtimes=yes
9174 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9175 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9176 # Don't use ranlib
9177 old_postinstall_cmds='chmod 644 $oldlib'
9178 postlink_cmds='lt_outputfile="@OUTPUT@"~
9179 lt_tool_outputfile="@TOOL_OUTPUT@"~
9180 case $lt_outputfile in
9181 *.exe|*.EXE) ;;
9182 *)
9183 lt_outputfile="$lt_outputfile.exe"
9184 lt_tool_outputfile="$lt_tool_outputfile.exe"
9185 ;;
9186 esac~
9187 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9188 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9189 $RM "$lt_outputfile.manifest";
9190 fi'
9191 ;;
9192 *)
9193 # Assume MSVC wrapper
9194 hardcode_libdir_flag_spec=' '
9195 allow_undefined_flag=unsupported
9196 # Tell ltmain to make .lib files, not .a files.
9197 libext=lib
9198 # Tell ltmain to make .dll files, not .so files.
9199 shrext_cmds=".dll"
9200 # FIXME: Setting linknames here is a bad hack.
9201 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9202 # The linker will automatically build a .lib file if we build a DLL.
9203 old_archive_from_new_cmds='true'
9204 # FIXME: Should let the user specify the lib program.
9205 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9206 enable_shared_with_static_runtimes=yes
9207 ;;
9208 esac
9209 ;;
9210
9211 darwin* | rhapsody*)
9212
9213
9214 archive_cmds_need_lc=no
9215 hardcode_direct=no
9216 hardcode_automatic=yes
9217 hardcode_shlibpath_var=unsupported
9218 if test "$lt_cv_ld_force_load" = "yes"; then
9219 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\"`'
9220
9221 else
9222 whole_archive_flag_spec=''
9223 fi
9224 link_all_deplibs=yes
9225 allow_undefined_flag="$_lt_dar_allow_undefined"
9226 case $cc_basename in
9227 ifort*) _lt_dar_can_shared=yes ;;
9228 *) _lt_dar_can_shared=$GCC ;;
9229 esac
9230 if test "$_lt_dar_can_shared" = "yes"; then
9231 output_verbose_link_cmd=func_echo_all
9232 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9233 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9234 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}"
9235 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}"
9236
9237 else
9238 ld_shlibs=no
9239 fi
9240
9241 ;;
9242
9243 dgux*)
9244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9245 hardcode_libdir_flag_spec='-L$libdir'
9246 hardcode_shlibpath_var=no
9247 ;;
9248
9249 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9250 # support. Future versions do this automatically, but an explicit c++rt0.o
9251 # does not break anything, and helps significantly (at the cost of a little
9252 # extra space).
9253 freebsd2.2*)
9254 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9255 hardcode_libdir_flag_spec='-R$libdir'
9256 hardcode_direct=yes
9257 hardcode_shlibpath_var=no
9258 ;;
9259
9260 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9261 freebsd2.*)
9262 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9263 hardcode_direct=yes
9264 hardcode_minus_L=yes
9265 hardcode_shlibpath_var=no
9266 ;;
9267
9268 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9269 freebsd* | dragonfly*)
9270 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9271 hardcode_libdir_flag_spec='-R$libdir'
9272 hardcode_direct=yes
9273 hardcode_shlibpath_var=no
9274 ;;
9275
9276 hpux9*)
9277 if test "$GCC" = yes; then
9278 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9279 else
9280 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9281 fi
9282 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9283 hardcode_libdir_separator=:
9284 hardcode_direct=yes
9285
9286 # hardcode_minus_L: Not really in the search PATH,
9287 # but as the default location of the library.
9288 hardcode_minus_L=yes
9289 export_dynamic_flag_spec='${wl}-E'
9290 ;;
9291
9292 hpux10*)
9293 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9294 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9295 else
9296 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9297 fi
9298 if test "$with_gnu_ld" = no; then
9299 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9300 hardcode_libdir_separator=:
9301 hardcode_direct=yes
9302 hardcode_direct_absolute=yes
9303 export_dynamic_flag_spec='${wl}-E'
9304 # hardcode_minus_L: Not really in the search PATH,
9305 # but as the default location of the library.
9306 hardcode_minus_L=yes
9307 fi
9308 ;;
9309
9310 hpux11*)
9311 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9312 case $host_cpu in
9313 hppa*64*)
9314 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9315 ;;
9316 ia64*)
9317 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9318 ;;
9319 *)
9320 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9321 ;;
9322 esac
9323 else
9324 case $host_cpu in
9325 hppa*64*)
9326 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9327 ;;
9328 ia64*)
9329 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9330 ;;
9331 *)
9332
9333 # Older versions of the 11.00 compiler do not understand -b yet
9334 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9336 $as_echo_n "checking if $CC understands -b... " >&6; }
9337 if ${lt_cv_prog_compiler__b+:} false; then :
9338 $as_echo_n "(cached) " >&6
9339 else
9340 lt_cv_prog_compiler__b=no
9341 save_LDFLAGS="$LDFLAGS"
9342 LDFLAGS="$LDFLAGS -b"
9343 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9344 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9345 # The linker can only warn and ignore the option if not recognized
9346 # So say no if there are warnings
9347 if test -s conftest.err; then
9348 # Append any errors to the config.log.
9349 cat conftest.err 1>&5
9350 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9352 if diff conftest.exp conftest.er2 >/dev/null; then
9353 lt_cv_prog_compiler__b=yes
9354 fi
9355 else
9356 lt_cv_prog_compiler__b=yes
9357 fi
9358 fi
9359 $RM -r conftest*
9360 LDFLAGS="$save_LDFLAGS"
9361
9362 fi
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9364 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9365
9366 if test x"$lt_cv_prog_compiler__b" = xyes; then
9367 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9368 else
9369 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9370 fi
9371
9372 ;;
9373 esac
9374 fi
9375 if test "$with_gnu_ld" = no; then
9376 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9377 hardcode_libdir_separator=:
9378
9379 case $host_cpu in
9380 hppa*64*|ia64*)
9381 hardcode_direct=no
9382 hardcode_shlibpath_var=no
9383 ;;
9384 *)
9385 hardcode_direct=yes
9386 hardcode_direct_absolute=yes
9387 export_dynamic_flag_spec='${wl}-E'
9388
9389 # hardcode_minus_L: Not really in the search PATH,
9390 # but as the default location of the library.
9391 hardcode_minus_L=yes
9392 ;;
9393 esac
9394 fi
9395 ;;
9396
9397 irix5* | irix6* | nonstopux*)
9398 if test "$GCC" = yes; then
9399 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'
9400 # Try to use the -exported_symbol ld option, if it does not
9401 # work, assume that -exports_file does not work either and
9402 # implicitly export all symbols.
9403 # This should be the same for all languages, so no per-tag cache variable.
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9405 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9406 if ${lt_cv_irix_exported_symbol+:} false; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 save_LDFLAGS="$LDFLAGS"
9410 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h. */
9413 int foo (void) { return 0; }
9414 _ACEOF
9415 if ac_fn_c_try_link "$LINENO"; then :
9416 lt_cv_irix_exported_symbol=yes
9417 else
9418 lt_cv_irix_exported_symbol=no
9419 fi
9420 rm -f core conftest.err conftest.$ac_objext \
9421 conftest$ac_exeext conftest.$ac_ext
9422 LDFLAGS="$save_LDFLAGS"
9423 fi
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9425 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9426 if test "$lt_cv_irix_exported_symbol" = yes; then
9427 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'
9428 fi
9429 else
9430 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'
9431 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'
9432 fi
9433 archive_cmds_need_lc='no'
9434 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9435 hardcode_libdir_separator=:
9436 inherit_rpath=yes
9437 link_all_deplibs=yes
9438 ;;
9439
9440 netbsd*)
9441 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9443 else
9444 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9445 fi
9446 hardcode_libdir_flag_spec='-R$libdir'
9447 hardcode_direct=yes
9448 hardcode_shlibpath_var=no
9449 ;;
9450
9451 newsos6)
9452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9453 hardcode_direct=yes
9454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9455 hardcode_libdir_separator=:
9456 hardcode_shlibpath_var=no
9457 ;;
9458
9459 *nto* | *qnx*)
9460 ;;
9461
9462 openbsd*)
9463 if test -f /usr/libexec/ld.so; then
9464 hardcode_direct=yes
9465 hardcode_shlibpath_var=no
9466 hardcode_direct_absolute=yes
9467 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9468 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9469 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9470 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9471 export_dynamic_flag_spec='${wl}-E'
9472 else
9473 case $host_os in
9474 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9475 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9476 hardcode_libdir_flag_spec='-R$libdir'
9477 ;;
9478 *)
9479 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9481 ;;
9482 esac
9483 fi
9484 else
9485 ld_shlibs=no
9486 fi
9487 ;;
9488
9489 os2*)
9490 hardcode_libdir_flag_spec='-L$libdir'
9491 hardcode_minus_L=yes
9492 allow_undefined_flag=unsupported
9493 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9494 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9495 ;;
9496
9497 osf3*)
9498 if test "$GCC" = yes; then
9499 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9500 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'
9501 else
9502 allow_undefined_flag=' -expect_unresolved \*'
9503 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'
9504 fi
9505 archive_cmds_need_lc='no'
9506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9507 hardcode_libdir_separator=:
9508 ;;
9509
9510 osf4* | osf5*) # as osf3* with the addition of -msym flag
9511 if test "$GCC" = yes; then
9512 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9513 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'
9514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9515 else
9516 allow_undefined_flag=' -expect_unresolved \*'
9517 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'
9518 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~
9519 $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'
9520
9521 # Both c and cxx compiler support -rpath directly
9522 hardcode_libdir_flag_spec='-rpath $libdir'
9523 fi
9524 archive_cmds_need_lc='no'
9525 hardcode_libdir_separator=:
9526 ;;
9527
9528 solaris*)
9529 no_undefined_flag=' -z defs'
9530 if test "$GCC" = yes; then
9531 wlarc='${wl}'
9532 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9533 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9534 $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'
9535 else
9536 case `$CC -V 2>&1` in
9537 *"Compilers 5.0"*)
9538 wlarc=''
9539 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9540 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9541 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9542 ;;
9543 *)
9544 wlarc='${wl}'
9545 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9546 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9547 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9548 ;;
9549 esac
9550 fi
9551 hardcode_libdir_flag_spec='-R$libdir'
9552 hardcode_shlibpath_var=no
9553 case $host_os in
9554 solaris2.[0-5] | solaris2.[0-5].*) ;;
9555 *)
9556 # The compiler driver will combine and reorder linker options,
9557 # but understands `-z linker_flag'. GCC discards it without `$wl',
9558 # but is careful enough not to reorder.
9559 # Supported since Solaris 2.6 (maybe 2.5.1?)
9560 if test "$GCC" = yes; then
9561 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9562 else
9563 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9564 fi
9565 ;;
9566 esac
9567 link_all_deplibs=yes
9568 ;;
9569
9570 sunos4*)
9571 if test "x$host_vendor" = xsequent; then
9572 # Use $CC to link under sequent, because it throws in some extra .o
9573 # files that make .init and .fini sections work.
9574 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9575 else
9576 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9577 fi
9578 hardcode_libdir_flag_spec='-L$libdir'
9579 hardcode_direct=yes
9580 hardcode_minus_L=yes
9581 hardcode_shlibpath_var=no
9582 ;;
9583
9584 sysv4)
9585 case $host_vendor in
9586 sni)
9587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9588 hardcode_direct=yes # is this really true???
9589 ;;
9590 siemens)
9591 ## LD is ld it makes a PLAMLIB
9592 ## CC just makes a GrossModule.
9593 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9594 reload_cmds='$CC -r -o $output$reload_objs'
9595 hardcode_direct=no
9596 ;;
9597 motorola)
9598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9599 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9600 ;;
9601 esac
9602 runpath_var='LD_RUN_PATH'
9603 hardcode_shlibpath_var=no
9604 ;;
9605
9606 sysv4.3*)
9607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608 hardcode_shlibpath_var=no
9609 export_dynamic_flag_spec='-Bexport'
9610 ;;
9611
9612 sysv4*MP*)
9613 if test -d /usr/nec; then
9614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9615 hardcode_shlibpath_var=no
9616 runpath_var=LD_RUN_PATH
9617 hardcode_runpath_var=yes
9618 ld_shlibs=yes
9619 fi
9620 ;;
9621
9622 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9623 no_undefined_flag='${wl}-z,text'
9624 archive_cmds_need_lc=no
9625 hardcode_shlibpath_var=no
9626 runpath_var='LD_RUN_PATH'
9627
9628 if test "$GCC" = yes; then
9629 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9630 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9631 else
9632 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9633 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9634 fi
9635 ;;
9636
9637 sysv5* | sco3.2v5* | sco5v6*)
9638 # Note: We can NOT use -z defs as we might desire, because we do not
9639 # link with -lc, and that would cause any symbols used from libc to
9640 # always be unresolved, which means just about no library would
9641 # ever link correctly. If we're not using GNU ld we use -z text
9642 # though, which does catch some bad symbols but isn't as heavy-handed
9643 # as -z defs.
9644 no_undefined_flag='${wl}-z,text'
9645 allow_undefined_flag='${wl}-z,nodefs'
9646 archive_cmds_need_lc=no
9647 hardcode_shlibpath_var=no
9648 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9649 hardcode_libdir_separator=':'
9650 link_all_deplibs=yes
9651 export_dynamic_flag_spec='${wl}-Bexport'
9652 runpath_var='LD_RUN_PATH'
9653
9654 if test "$GCC" = yes; then
9655 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9656 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9657 else
9658 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9659 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9660 fi
9661 ;;
9662
9663 uts4*)
9664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665 hardcode_libdir_flag_spec='-L$libdir'
9666 hardcode_shlibpath_var=no
9667 ;;
9668
9669 *)
9670 ld_shlibs=no
9671 ;;
9672 esac
9673
9674 if test x$host_vendor = xsni; then
9675 case $host in
9676 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9677 export_dynamic_flag_spec='${wl}-Blargedynsym'
9678 ;;
9679 esac
9680 fi
9681 fi
9682
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9684 $as_echo "$ld_shlibs" >&6; }
9685 test "$ld_shlibs" = no && can_build_shared=no
9686
9687 with_gnu_ld=$with_gnu_ld
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703 #
9704 # Do we need to explicitly link libc?
9705 #
9706 case "x$archive_cmds_need_lc" in
9707 x|xyes)
9708 # Assume -lc should be added
9709 archive_cmds_need_lc=yes
9710
9711 if test "$enable_shared" = yes && test "$GCC" = yes; then
9712 case $archive_cmds in
9713 *'~'*)
9714 # FIXME: we may have to deal with multi-command sequences.
9715 ;;
9716 '$CC '*)
9717 # Test whether the compiler implicitly links with -lc since on some
9718 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9719 # to ld, don't add -lc before -lgcc.
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9721 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9722 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9723 $as_echo_n "(cached) " >&6
9724 else
9725 $RM conftest*
9726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9727
9728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9729 (eval $ac_compile) 2>&5
9730 ac_status=$?
9731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9732 test $ac_status = 0; } 2>conftest.err; then
9733 soname=conftest
9734 lib=conftest
9735 libobjs=conftest.$ac_objext
9736 deplibs=
9737 wl=$lt_prog_compiler_wl
9738 pic_flag=$lt_prog_compiler_pic
9739 compiler_flags=-v
9740 linker_flags=-v
9741 verstring=
9742 output_objdir=.
9743 libname=conftest
9744 lt_save_allow_undefined_flag=$allow_undefined_flag
9745 allow_undefined_flag=
9746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9747 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9748 ac_status=$?
9749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9750 test $ac_status = 0; }
9751 then
9752 lt_cv_archive_cmds_need_lc=no
9753 else
9754 lt_cv_archive_cmds_need_lc=yes
9755 fi
9756 allow_undefined_flag=$lt_save_allow_undefined_flag
9757 else
9758 cat conftest.err 1>&5
9759 fi
9760 $RM conftest*
9761
9762 fi
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9764 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9765 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9766 ;;
9767 esac
9768 fi
9769 ;;
9770 esac
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9924 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9925
9926 if test "$GCC" = yes; then
9927 case $host_os in
9928 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9929 *) lt_awk_arg="/^libraries:/" ;;
9930 esac
9931 case $host_os in
9932 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9933 *) lt_sed_strip_eq="s,=/,/,g" ;;
9934 esac
9935 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9936 case $lt_search_path_spec in
9937 *\;*)
9938 # if the path contains ";" then we assume it to be the separator
9939 # otherwise default to the standard path separator (i.e. ":") - it is
9940 # assumed that no part of a normal pathname contains ";" but that should
9941 # okay in the real world where ";" in dirpaths is itself problematic.
9942 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9943 ;;
9944 *)
9945 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9946 ;;
9947 esac
9948 # Ok, now we have the path, separated by spaces, we can step through it
9949 # and add multilib dir if necessary.
9950 lt_tmp_lt_search_path_spec=
9951 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9952 for lt_sys_path in $lt_search_path_spec; do
9953 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9954 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9955 else
9956 test -d "$lt_sys_path" && \
9957 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9958 fi
9959 done
9960 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9961 BEGIN {RS=" "; FS="/|\n";} {
9962 lt_foo="";
9963 lt_count=0;
9964 for (lt_i = NF; lt_i > 0; lt_i--) {
9965 if ($lt_i != "" && $lt_i != ".") {
9966 if ($lt_i == "..") {
9967 lt_count++;
9968 } else {
9969 if (lt_count == 0) {
9970 lt_foo="/" $lt_i lt_foo;
9971 } else {
9972 lt_count--;
9973 }
9974 }
9975 }
9976 }
9977 if (lt_foo != "") { lt_freq[lt_foo]++; }
9978 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9979 }'`
9980 # AWK program above erroneously prepends '/' to C:/dos/paths
9981 # for these hosts.
9982 case $host_os in
9983 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9984 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9985 esac
9986 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9987 else
9988 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9989 fi
9990 library_names_spec=
9991 libname_spec='lib$name'
9992 soname_spec=
9993 shrext_cmds=".so"
9994 postinstall_cmds=
9995 postuninstall_cmds=
9996 finish_cmds=
9997 finish_eval=
9998 shlibpath_var=
9999 shlibpath_overrides_runpath=unknown
10000 version_type=none
10001 dynamic_linker="$host_os ld.so"
10002 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10003 need_lib_prefix=unknown
10004 hardcode_into_libs=no
10005
10006 # when you set need_version to no, make sure it does not cause -set_version
10007 # flags to be left without arguments
10008 need_version=unknown
10009
10010 case $host_os in
10011 aix3*)
10012 version_type=linux # correct to gnu/linux during the next big refactor
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10014 shlibpath_var=LIBPATH
10015
10016 # AIX 3 has no versioning support, so we append a major version to the name.
10017 soname_spec='${libname}${release}${shared_ext}$major'
10018 ;;
10019
10020 aix[4-9]*)
10021 version_type=linux # correct to gnu/linux during the next big refactor
10022 need_lib_prefix=no
10023 need_version=no
10024 hardcode_into_libs=yes
10025 if test "$host_cpu" = ia64; then
10026 # AIX 5 supports IA64
10027 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10028 shlibpath_var=LD_LIBRARY_PATH
10029 else
10030 # With GCC up to 2.95.x, collect2 would create an import file
10031 # for dependence libraries. The import file would start with
10032 # the line `#! .'. This would cause the generated library to
10033 # depend on `.', always an invalid library. This was fixed in
10034 # development snapshots of GCC prior to 3.0.
10035 case $host_os in
10036 aix4 | aix4.[01] | aix4.[01].*)
10037 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10038 echo ' yes '
10039 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10040 :
10041 else
10042 can_build_shared=no
10043 fi
10044 ;;
10045 esac
10046 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10047 # soname into executable. Probably we can add versioning support to
10048 # collect2, so additional links can be useful in future.
10049 if test "$aix_use_runtimelinking" = yes; then
10050 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10051 # instead of lib<name>.a to let people know that these are not
10052 # typical AIX shared libraries.
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10054 else
10055 # We preserve .a as extension for shared libraries through AIX4.2
10056 # and later when we are not doing run time linking.
10057 library_names_spec='${libname}${release}.a $libname.a'
10058 soname_spec='${libname}${release}${shared_ext}$major'
10059 fi
10060 shlibpath_var=LIBPATH
10061 fi
10062 ;;
10063
10064 amigaos*)
10065 case $host_cpu in
10066 powerpc)
10067 # Since July 2007 AmigaOS4 officially supports .so libraries.
10068 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10070 ;;
10071 m68k)
10072 library_names_spec='$libname.ixlibrary $libname.a'
10073 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10074 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10075 ;;
10076 esac
10077 ;;
10078
10079 beos*)
10080 library_names_spec='${libname}${shared_ext}'
10081 dynamic_linker="$host_os ld.so"
10082 shlibpath_var=LIBRARY_PATH
10083 ;;
10084
10085 bsdi[45]*)
10086 version_type=linux # correct to gnu/linux during the next big refactor
10087 need_version=no
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10091 shlibpath_var=LD_LIBRARY_PATH
10092 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10093 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10094 # the default ld.so.conf also contains /usr/contrib/lib and
10095 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10096 # libtool to hard-code these into programs
10097 ;;
10098
10099 cygwin* | mingw* | pw32* | cegcc*)
10100 version_type=windows
10101 shrext_cmds=".dll"
10102 need_version=no
10103 need_lib_prefix=no
10104
10105 case $GCC,$cc_basename in
10106 yes,*)
10107 # gcc
10108 library_names_spec='$libname.dll.a'
10109 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10110 postinstall_cmds='base_file=`basename \${file}`~
10111 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10112 dldir=$destdir/`dirname \$dlpath`~
10113 test -d \$dldir || mkdir -p \$dldir~
10114 $install_prog $dir/$dlname \$dldir/$dlname~
10115 chmod a+x \$dldir/$dlname~
10116 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10117 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10118 fi'
10119 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10120 dlpath=$dir/\$dldll~
10121 $RM \$dlpath'
10122 shlibpath_overrides_runpath=yes
10123
10124 case $host_os in
10125 cygwin*)
10126 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10127 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10128
10129 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10130 ;;
10131 mingw* | cegcc*)
10132 # MinGW DLLs use traditional 'lib' prefix
10133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10134 ;;
10135 pw32*)
10136 # pw32 DLLs use 'pw' prefix rather than 'lib'
10137 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10138 ;;
10139 esac
10140 dynamic_linker='Win32 ld.exe'
10141 ;;
10142
10143 *,cl*)
10144 # Native MSVC
10145 libname_spec='$name'
10146 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10147 library_names_spec='${libname}.dll.lib'
10148
10149 case $build_os in
10150 mingw*)
10151 sys_lib_search_path_spec=
10152 lt_save_ifs=$IFS
10153 IFS=';'
10154 for lt_path in $LIB
10155 do
10156 IFS=$lt_save_ifs
10157 # Let DOS variable expansion print the short 8.3 style file name.
10158 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10159 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10160 done
10161 IFS=$lt_save_ifs
10162 # Convert to MSYS style.
10163 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10164 ;;
10165 cygwin*)
10166 # Convert to unix form, then to dos form, then back to unix form
10167 # but this time dos style (no spaces!) so that the unix form looks
10168 # like /cygdrive/c/PROGRA~1:/cygdr...
10169 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10170 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10171 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10172 ;;
10173 *)
10174 sys_lib_search_path_spec="$LIB"
10175 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10176 # It is most probably a Windows format PATH.
10177 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10178 else
10179 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10180 fi
10181 # FIXME: find the short name or the path components, as spaces are
10182 # common. (e.g. "Program Files" -> "PROGRA~1")
10183 ;;
10184 esac
10185
10186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10187 postinstall_cmds='base_file=`basename \${file}`~
10188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10189 dldir=$destdir/`dirname \$dlpath`~
10190 test -d \$dldir || mkdir -p \$dldir~
10191 $install_prog $dir/$dlname \$dldir/$dlname'
10192 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10193 dlpath=$dir/\$dldll~
10194 $RM \$dlpath'
10195 shlibpath_overrides_runpath=yes
10196 dynamic_linker='Win32 link.exe'
10197 ;;
10198
10199 *)
10200 # Assume MSVC wrapper
10201 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10202 dynamic_linker='Win32 ld.exe'
10203 ;;
10204 esac
10205 # FIXME: first we should search . and the directory the executable is in
10206 shlibpath_var=PATH
10207 ;;
10208
10209 darwin* | rhapsody*)
10210 dynamic_linker="$host_os dyld"
10211 version_type=darwin
10212 need_lib_prefix=no
10213 need_version=no
10214 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10215 soname_spec='${libname}${release}${major}$shared_ext'
10216 shlibpath_overrides_runpath=yes
10217 shlibpath_var=DYLD_LIBRARY_PATH
10218 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10219
10220 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10221 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10222 ;;
10223
10224 dgux*)
10225 version_type=linux # correct to gnu/linux during the next big refactor
10226 need_lib_prefix=no
10227 need_version=no
10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10229 soname_spec='${libname}${release}${shared_ext}$major'
10230 shlibpath_var=LD_LIBRARY_PATH
10231 ;;
10232
10233 freebsd* | dragonfly*)
10234 # DragonFly does not have aout. When/if they implement a new
10235 # versioning mechanism, adjust this.
10236 if test -x /usr/bin/objformat; then
10237 objformat=`/usr/bin/objformat`
10238 else
10239 case $host_os in
10240 freebsd[23].*) objformat=aout ;;
10241 *) objformat=elf ;;
10242 esac
10243 fi
10244 version_type=freebsd-$objformat
10245 case $version_type in
10246 freebsd-elf*)
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10248 need_version=no
10249 need_lib_prefix=no
10250 ;;
10251 freebsd-*)
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10253 need_version=yes
10254 ;;
10255 esac
10256 shlibpath_var=LD_LIBRARY_PATH
10257 case $host_os in
10258 freebsd2.*)
10259 shlibpath_overrides_runpath=yes
10260 ;;
10261 freebsd3.[01]* | freebsdelf3.[01]*)
10262 shlibpath_overrides_runpath=yes
10263 hardcode_into_libs=yes
10264 ;;
10265 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10266 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10267 shlibpath_overrides_runpath=no
10268 hardcode_into_libs=yes
10269 ;;
10270 *) # from 4.6 on, and DragonFly
10271 shlibpath_overrides_runpath=yes
10272 hardcode_into_libs=yes
10273 ;;
10274 esac
10275 ;;
10276
10277 gnu*)
10278 version_type=linux # correct to gnu/linux during the next big refactor
10279 need_lib_prefix=no
10280 need_version=no
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10282 soname_spec='${libname}${release}${shared_ext}$major'
10283 shlibpath_var=LD_LIBRARY_PATH
10284 shlibpath_overrides_runpath=no
10285 hardcode_into_libs=yes
10286 ;;
10287
10288 haiku*)
10289 version_type=linux # correct to gnu/linux during the next big refactor
10290 need_lib_prefix=no
10291 need_version=no
10292 dynamic_linker="$host_os runtime_loader"
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10294 soname_spec='${libname}${release}${shared_ext}$major'
10295 shlibpath_var=LIBRARY_PATH
10296 shlibpath_overrides_runpath=yes
10297 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10298 hardcode_into_libs=yes
10299 ;;
10300
10301 hpux9* | hpux10* | hpux11*)
10302 # Give a soname corresponding to the major version so that dld.sl refuses to
10303 # link against other versions.
10304 version_type=sunos
10305 need_lib_prefix=no
10306 need_version=no
10307 case $host_cpu in
10308 ia64*)
10309 shrext_cmds='.so'
10310 hardcode_into_libs=yes
10311 dynamic_linker="$host_os dld.so"
10312 shlibpath_var=LD_LIBRARY_PATH
10313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315 soname_spec='${libname}${release}${shared_ext}$major'
10316 if test "X$HPUX_IA64_MODE" = X32; then
10317 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10318 else
10319 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10320 fi
10321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10322 ;;
10323 hppa*64*)
10324 shrext_cmds='.sl'
10325 hardcode_into_libs=yes
10326 dynamic_linker="$host_os dld.sl"
10327 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10333 ;;
10334 *)
10335 shrext_cmds='.sl'
10336 dynamic_linker="$host_os dld.sl"
10337 shlibpath_var=SHLIB_PATH
10338 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 ;;
10342 esac
10343 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10344 postinstall_cmds='chmod 555 $lib'
10345 # or fails outright, so override atomically:
10346 install_override_mode=555
10347 ;;
10348
10349 interix[3-9]*)
10350 version_type=linux # correct to gnu/linux during the next big refactor
10351 need_lib_prefix=no
10352 need_version=no
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10356 shlibpath_var=LD_LIBRARY_PATH
10357 shlibpath_overrides_runpath=no
10358 hardcode_into_libs=yes
10359 ;;
10360
10361 irix5* | irix6* | nonstopux*)
10362 case $host_os in
10363 nonstopux*) version_type=nonstopux ;;
10364 *)
10365 if test "$lt_cv_prog_gnu_ld" = yes; then
10366 version_type=linux # correct to gnu/linux during the next big refactor
10367 else
10368 version_type=irix
10369 fi ;;
10370 esac
10371 need_lib_prefix=no
10372 need_version=no
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10375 case $host_os in
10376 irix5* | nonstopux*)
10377 libsuff= shlibsuff=
10378 ;;
10379 *)
10380 case $LD in # libtool.m4 will add one of these switches to LD
10381 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10382 libsuff= shlibsuff= libmagic=32-bit;;
10383 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10384 libsuff=32 shlibsuff=N32 libmagic=N32;;
10385 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10386 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10387 *) libsuff= shlibsuff= libmagic=never-match;;
10388 esac
10389 ;;
10390 esac
10391 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10392 shlibpath_overrides_runpath=no
10393 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10394 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10395 hardcode_into_libs=yes
10396 ;;
10397
10398 # No shared lib support for Linux oldld, aout, or coff.
10399 linux*oldld* | linux*aout* | linux*coff*)
10400 dynamic_linker=no
10401 ;;
10402
10403 # This must be glibc/ELF.
10404 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10405 version_type=linux # correct to gnu/linux during the next big refactor
10406 need_lib_prefix=no
10407 need_version=no
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10411 shlibpath_var=LD_LIBRARY_PATH
10412 shlibpath_overrides_runpath=no
10413
10414 # Some binutils ld are patched to set DT_RUNPATH
10415 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10416 $as_echo_n "(cached) " >&6
10417 else
10418 lt_cv_shlibpath_overrides_runpath=no
10419 save_LDFLAGS=$LDFLAGS
10420 save_libdir=$libdir
10421 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10422 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10424 /* end confdefs.h. */
10425
10426 int
10427 main ()
10428 {
10429
10430 ;
10431 return 0;
10432 }
10433 _ACEOF
10434 if ac_fn_c_try_link "$LINENO"; then :
10435 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10436 lt_cv_shlibpath_overrides_runpath=yes
10437 fi
10438 fi
10439 rm -f core conftest.err conftest.$ac_objext \
10440 conftest$ac_exeext conftest.$ac_ext
10441 LDFLAGS=$save_LDFLAGS
10442 libdir=$save_libdir
10443
10444 fi
10445
10446 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10447
10448 # This implies no fast_install, which is unacceptable.
10449 # Some rework will be needed to allow for fast_install
10450 # before this can be enabled.
10451 hardcode_into_libs=yes
10452
10453 # Add ABI-specific directories to the system library path.
10454 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10455
10456 # Append ld.so.conf contents to the search path
10457 if test -f /etc/ld.so.conf; then
10458 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' ' '`
10459 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10460
10461 fi
10462
10463 # We used to test for /lib/ld.so.1 and disable shared libraries on
10464 # powerpc, because MkLinux only supported shared libraries with the
10465 # GNU dynamic linker. Since this was broken with cross compilers,
10466 # most powerpc-linux boxes support dynamic linking these days and
10467 # people can always --disable-shared, the test was removed, and we
10468 # assume the GNU/Linux dynamic linker is in use.
10469 dynamic_linker='GNU/Linux ld.so'
10470 ;;
10471
10472 netbsd*)
10473 version_type=sunos
10474 need_lib_prefix=no
10475 need_version=no
10476 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10479 dynamic_linker='NetBSD (a.out) ld.so'
10480 else
10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10482 soname_spec='${libname}${release}${shared_ext}$major'
10483 dynamic_linker='NetBSD ld.elf_so'
10484 fi
10485 shlibpath_var=LD_LIBRARY_PATH
10486 shlibpath_overrides_runpath=yes
10487 hardcode_into_libs=yes
10488 ;;
10489
10490 newsos6)
10491 version_type=linux # correct to gnu/linux during the next big refactor
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493 shlibpath_var=LD_LIBRARY_PATH
10494 shlibpath_overrides_runpath=yes
10495 ;;
10496
10497 *nto* | *qnx*)
10498 version_type=qnx
10499 need_lib_prefix=no
10500 need_version=no
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10502 soname_spec='${libname}${release}${shared_ext}$major'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 shlibpath_overrides_runpath=no
10505 hardcode_into_libs=yes
10506 dynamic_linker='ldqnx.so'
10507 ;;
10508
10509 openbsd*)
10510 version_type=sunos
10511 sys_lib_dlsearch_path_spec="/usr/lib"
10512 need_lib_prefix=no
10513 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10514 case $host_os in
10515 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10516 *) need_version=no ;;
10517 esac
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10520 shlibpath_var=LD_LIBRARY_PATH
10521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10522 case $host_os in
10523 openbsd2.[89] | openbsd2.[89].*)
10524 shlibpath_overrides_runpath=no
10525 ;;
10526 *)
10527 shlibpath_overrides_runpath=yes
10528 ;;
10529 esac
10530 else
10531 shlibpath_overrides_runpath=yes
10532 fi
10533 ;;
10534
10535 os2*)
10536 libname_spec='$name'
10537 shrext_cmds=".dll"
10538 need_lib_prefix=no
10539 library_names_spec='$libname${shared_ext} $libname.a'
10540 dynamic_linker='OS/2 ld.exe'
10541 shlibpath_var=LIBPATH
10542 ;;
10543
10544 osf3* | osf4* | osf5*)
10545 version_type=osf
10546 need_lib_prefix=no
10547 need_version=no
10548 soname_spec='${libname}${release}${shared_ext}$major'
10549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10550 shlibpath_var=LD_LIBRARY_PATH
10551 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10552 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10553 ;;
10554
10555 rdos*)
10556 dynamic_linker=no
10557 ;;
10558
10559 solaris*)
10560 version_type=linux # correct to gnu/linux during the next big refactor
10561 need_lib_prefix=no
10562 need_version=no
10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564 soname_spec='${libname}${release}${shared_ext}$major'
10565 shlibpath_var=LD_LIBRARY_PATH
10566 shlibpath_overrides_runpath=yes
10567 hardcode_into_libs=yes
10568 # ldd complains unless libraries are executable
10569 postinstall_cmds='chmod +x $lib'
10570 ;;
10571
10572 sunos4*)
10573 version_type=sunos
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10575 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 shlibpath_overrides_runpath=yes
10578 if test "$with_gnu_ld" = yes; then
10579 need_lib_prefix=no
10580 fi
10581 need_version=yes
10582 ;;
10583
10584 sysv4 | sysv4.3*)
10585 version_type=linux # correct to gnu/linux during the next big refactor
10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10587 soname_spec='${libname}${release}${shared_ext}$major'
10588 shlibpath_var=LD_LIBRARY_PATH
10589 case $host_vendor in
10590 sni)
10591 shlibpath_overrides_runpath=no
10592 need_lib_prefix=no
10593 runpath_var=LD_RUN_PATH
10594 ;;
10595 siemens)
10596 need_lib_prefix=no
10597 ;;
10598 motorola)
10599 need_lib_prefix=no
10600 need_version=no
10601 shlibpath_overrides_runpath=no
10602 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10603 ;;
10604 esac
10605 ;;
10606
10607 sysv4*MP*)
10608 if test -d /usr/nec ;then
10609 version_type=linux # correct to gnu/linux during the next big refactor
10610 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10611 soname_spec='$libname${shared_ext}.$major'
10612 shlibpath_var=LD_LIBRARY_PATH
10613 fi
10614 ;;
10615
10616 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10617 version_type=freebsd-elf
10618 need_lib_prefix=no
10619 need_version=no
10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10621 soname_spec='${libname}${release}${shared_ext}$major'
10622 shlibpath_var=LD_LIBRARY_PATH
10623 shlibpath_overrides_runpath=yes
10624 hardcode_into_libs=yes
10625 if test "$with_gnu_ld" = yes; then
10626 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10627 else
10628 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10629 case $host_os in
10630 sco3.2v5*)
10631 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10632 ;;
10633 esac
10634 fi
10635 sys_lib_dlsearch_path_spec='/usr/lib'
10636 ;;
10637
10638 tpf*)
10639 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10640 version_type=linux # correct to gnu/linux during the next big refactor
10641 need_lib_prefix=no
10642 need_version=no
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644 shlibpath_var=LD_LIBRARY_PATH
10645 shlibpath_overrides_runpath=no
10646 hardcode_into_libs=yes
10647 ;;
10648
10649 uts4*)
10650 version_type=linux # correct to gnu/linux during the next big refactor
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652 soname_spec='${libname}${release}${shared_ext}$major'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 ;;
10655
10656 *)
10657 dynamic_linker=no
10658 ;;
10659 esac
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10661 $as_echo "$dynamic_linker" >&6; }
10662 test "$dynamic_linker" = no && can_build_shared=no
10663
10664 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10665 if test "$GCC" = yes; then
10666 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10667 fi
10668
10669 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10670 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10671 fi
10672 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10673 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10674 fi
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10768 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10769 hardcode_action=
10770 if test -n "$hardcode_libdir_flag_spec" ||
10771 test -n "$runpath_var" ||
10772 test "X$hardcode_automatic" = "Xyes" ; then
10773
10774 # We can hardcode non-existent directories.
10775 if test "$hardcode_direct" != no &&
10776 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10777 # have to relink, otherwise we might link with an installed library
10778 # when we should be linking with a yet-to-be-installed one
10779 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10780 test "$hardcode_minus_L" != no; then
10781 # Linking always hardcodes the temporary library directory.
10782 hardcode_action=relink
10783 else
10784 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10785 hardcode_action=immediate
10786 fi
10787 else
10788 # We cannot hardcode anything, or else we can only hardcode existing
10789 # directories.
10790 hardcode_action=unsupported
10791 fi
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10793 $as_echo "$hardcode_action" >&6; }
10794
10795 if test "$hardcode_action" = relink ||
10796 test "$inherit_rpath" = yes; then
10797 # Fast installation is not supported
10798 enable_fast_install=no
10799 elif test "$shlibpath_overrides_runpath" = yes ||
10800 test "$enable_shared" = no; then
10801 # Fast installation is not necessary
10802 enable_fast_install=needless
10803 fi
10804
10805
10806
10807
10808
10809
10810 if test "x$enable_dlopen" != xyes; then
10811 enable_dlopen=unknown
10812 enable_dlopen_self=unknown
10813 enable_dlopen_self_static=unknown
10814 else
10815 lt_cv_dlopen=no
10816 lt_cv_dlopen_libs=
10817
10818 case $host_os in
10819 beos*)
10820 lt_cv_dlopen="load_add_on"
10821 lt_cv_dlopen_libs=
10822 lt_cv_dlopen_self=yes
10823 ;;
10824
10825 mingw* | pw32* | cegcc*)
10826 lt_cv_dlopen="LoadLibrary"
10827 lt_cv_dlopen_libs=
10828 ;;
10829
10830 cygwin*)
10831 lt_cv_dlopen="dlopen"
10832 lt_cv_dlopen_libs=
10833 ;;
10834
10835 darwin*)
10836 # if libdl is installed we need to link against it
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10838 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10839 if ${ac_cv_lib_dl_dlopen+:} false; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 ac_check_lib_save_LIBS=$LIBS
10843 LIBS="-ldl $LIBS"
10844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10846
10847 /* Override any GCC internal prototype to avoid an error.
10848 Use char because int might match the return type of a GCC
10849 builtin and then its argument prototype would still apply. */
10850 #ifdef __cplusplus
10851 extern "C"
10852 #endif
10853 char dlopen ();
10854 int
10855 main ()
10856 {
10857 return dlopen ();
10858 ;
10859 return 0;
10860 }
10861 _ACEOF
10862 if ac_fn_c_try_link "$LINENO"; then :
10863 ac_cv_lib_dl_dlopen=yes
10864 else
10865 ac_cv_lib_dl_dlopen=no
10866 fi
10867 rm -f core conftest.err conftest.$ac_objext \
10868 conftest$ac_exeext conftest.$ac_ext
10869 LIBS=$ac_check_lib_save_LIBS
10870 fi
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10872 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10873 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10874 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10875 else
10876
10877 lt_cv_dlopen="dyld"
10878 lt_cv_dlopen_libs=
10879 lt_cv_dlopen_self=yes
10880
10881 fi
10882
10883 ;;
10884
10885 *)
10886 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10887 if test "x$ac_cv_func_shl_load" = xyes; then :
10888 lt_cv_dlopen="shl_load"
10889 else
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10891 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10892 if ${ac_cv_lib_dld_shl_load+:} false; then :
10893 $as_echo_n "(cached) " >&6
10894 else
10895 ac_check_lib_save_LIBS=$LIBS
10896 LIBS="-ldld $LIBS"
10897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10899
10900 /* Override any GCC internal prototype to avoid an error.
10901 Use char because int might match the return type of a GCC
10902 builtin and then its argument prototype would still apply. */
10903 #ifdef __cplusplus
10904 extern "C"
10905 #endif
10906 char shl_load ();
10907 int
10908 main ()
10909 {
10910 return shl_load ();
10911 ;
10912 return 0;
10913 }
10914 _ACEOF
10915 if ac_fn_c_try_link "$LINENO"; then :
10916 ac_cv_lib_dld_shl_load=yes
10917 else
10918 ac_cv_lib_dld_shl_load=no
10919 fi
10920 rm -f core conftest.err conftest.$ac_objext \
10921 conftest$ac_exeext conftest.$ac_ext
10922 LIBS=$ac_check_lib_save_LIBS
10923 fi
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10925 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10926 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10927 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10928 else
10929 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10930 if test "x$ac_cv_func_dlopen" = xyes; then :
10931 lt_cv_dlopen="dlopen"
10932 else
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10934 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10935 if ${ac_cv_lib_dl_dlopen+:} false; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 ac_check_lib_save_LIBS=$LIBS
10939 LIBS="-ldl $LIBS"
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10942
10943 /* Override any GCC internal prototype to avoid an error.
10944 Use char because int might match the return type of a GCC
10945 builtin and then its argument prototype would still apply. */
10946 #ifdef __cplusplus
10947 extern "C"
10948 #endif
10949 char dlopen ();
10950 int
10951 main ()
10952 {
10953 return dlopen ();
10954 ;
10955 return 0;
10956 }
10957 _ACEOF
10958 if ac_fn_c_try_link "$LINENO"; then :
10959 ac_cv_lib_dl_dlopen=yes
10960 else
10961 ac_cv_lib_dl_dlopen=no
10962 fi
10963 rm -f core conftest.err conftest.$ac_objext \
10964 conftest$ac_exeext conftest.$ac_ext
10965 LIBS=$ac_check_lib_save_LIBS
10966 fi
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10968 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10969 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10971 else
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10973 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10974 if ${ac_cv_lib_svld_dlopen+:} false; then :
10975 $as_echo_n "(cached) " >&6
10976 else
10977 ac_check_lib_save_LIBS=$LIBS
10978 LIBS="-lsvld $LIBS"
10979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10980 /* end confdefs.h. */
10981
10982 /* Override any GCC internal prototype to avoid an error.
10983 Use char because int might match the return type of a GCC
10984 builtin and then its argument prototype would still apply. */
10985 #ifdef __cplusplus
10986 extern "C"
10987 #endif
10988 char dlopen ();
10989 int
10990 main ()
10991 {
10992 return dlopen ();
10993 ;
10994 return 0;
10995 }
10996 _ACEOF
10997 if ac_fn_c_try_link "$LINENO"; then :
10998 ac_cv_lib_svld_dlopen=yes
10999 else
11000 ac_cv_lib_svld_dlopen=no
11001 fi
11002 rm -f core conftest.err conftest.$ac_objext \
11003 conftest$ac_exeext conftest.$ac_ext
11004 LIBS=$ac_check_lib_save_LIBS
11005 fi
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11007 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11008 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11009 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11010 else
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11012 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11013 if ${ac_cv_lib_dld_dld_link+:} false; then :
11014 $as_echo_n "(cached) " >&6
11015 else
11016 ac_check_lib_save_LIBS=$LIBS
11017 LIBS="-ldld $LIBS"
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11020
11021 /* Override any GCC internal prototype to avoid an error.
11022 Use char because int might match the return type of a GCC
11023 builtin and then its argument prototype would still apply. */
11024 #ifdef __cplusplus
11025 extern "C"
11026 #endif
11027 char dld_link ();
11028 int
11029 main ()
11030 {
11031 return dld_link ();
11032 ;
11033 return 0;
11034 }
11035 _ACEOF
11036 if ac_fn_c_try_link "$LINENO"; then :
11037 ac_cv_lib_dld_dld_link=yes
11038 else
11039 ac_cv_lib_dld_dld_link=no
11040 fi
11041 rm -f core conftest.err conftest.$ac_objext \
11042 conftest$ac_exeext conftest.$ac_ext
11043 LIBS=$ac_check_lib_save_LIBS
11044 fi
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11046 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11047 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11048 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11049 fi
11050
11051
11052 fi
11053
11054
11055 fi
11056
11057
11058 fi
11059
11060
11061 fi
11062
11063
11064 fi
11065
11066 ;;
11067 esac
11068
11069 if test "x$lt_cv_dlopen" != xno; then
11070 enable_dlopen=yes
11071 else
11072 enable_dlopen=no
11073 fi
11074
11075 case $lt_cv_dlopen in
11076 dlopen)
11077 save_CPPFLAGS="$CPPFLAGS"
11078 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11079
11080 save_LDFLAGS="$LDFLAGS"
11081 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11082
11083 save_LIBS="$LIBS"
11084 LIBS="$lt_cv_dlopen_libs $LIBS"
11085
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11087 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11088 if ${lt_cv_dlopen_self+:} false; then :
11089 $as_echo_n "(cached) " >&6
11090 else
11091 if test "$cross_compiling" = yes; then :
11092 lt_cv_dlopen_self=cross
11093 else
11094 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11095 lt_status=$lt_dlunknown
11096 cat > conftest.$ac_ext <<_LT_EOF
11097 #line $LINENO "configure"
11098 #include "confdefs.h"
11099
11100 #if HAVE_DLFCN_H
11101 #include <dlfcn.h>
11102 #endif
11103
11104 #include <stdio.h>
11105
11106 #ifdef RTLD_GLOBAL
11107 # define LT_DLGLOBAL RTLD_GLOBAL
11108 #else
11109 # ifdef DL_GLOBAL
11110 # define LT_DLGLOBAL DL_GLOBAL
11111 # else
11112 # define LT_DLGLOBAL 0
11113 # endif
11114 #endif
11115
11116 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11117 find out it does not work in some platform. */
11118 #ifndef LT_DLLAZY_OR_NOW
11119 # ifdef RTLD_LAZY
11120 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11121 # else
11122 # ifdef DL_LAZY
11123 # define LT_DLLAZY_OR_NOW DL_LAZY
11124 # else
11125 # ifdef RTLD_NOW
11126 # define LT_DLLAZY_OR_NOW RTLD_NOW
11127 # else
11128 # ifdef DL_NOW
11129 # define LT_DLLAZY_OR_NOW DL_NOW
11130 # else
11131 # define LT_DLLAZY_OR_NOW 0
11132 # endif
11133 # endif
11134 # endif
11135 # endif
11136 #endif
11137
11138 /* When -fvisbility=hidden is used, assume the code has been annotated
11139 correspondingly for the symbols needed. */
11140 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11141 int fnord () __attribute__((visibility("default")));
11142 #endif
11143
11144 int fnord () { return 42; }
11145 int main ()
11146 {
11147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11148 int status = $lt_dlunknown;
11149
11150 if (self)
11151 {
11152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11153 else
11154 {
11155 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11156 else puts (dlerror ());
11157 }
11158 /* dlclose (self); */
11159 }
11160 else
11161 puts (dlerror ());
11162
11163 return status;
11164 }
11165 _LT_EOF
11166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11167 (eval $ac_link) 2>&5
11168 ac_status=$?
11169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11170 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11171 (./conftest; exit; ) >&5 2>/dev/null
11172 lt_status=$?
11173 case x$lt_status in
11174 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11175 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11176 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11177 esac
11178 else :
11179 # compilation failed
11180 lt_cv_dlopen_self=no
11181 fi
11182 fi
11183 rm -fr conftest*
11184
11185
11186 fi
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11188 $as_echo "$lt_cv_dlopen_self" >&6; }
11189
11190 if test "x$lt_cv_dlopen_self" = xyes; then
11191 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11193 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11194 if ${lt_cv_dlopen_self_static+:} false; then :
11195 $as_echo_n "(cached) " >&6
11196 else
11197 if test "$cross_compiling" = yes; then :
11198 lt_cv_dlopen_self_static=cross
11199 else
11200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11201 lt_status=$lt_dlunknown
11202 cat > conftest.$ac_ext <<_LT_EOF
11203 #line $LINENO "configure"
11204 #include "confdefs.h"
11205
11206 #if HAVE_DLFCN_H
11207 #include <dlfcn.h>
11208 #endif
11209
11210 #include <stdio.h>
11211
11212 #ifdef RTLD_GLOBAL
11213 # define LT_DLGLOBAL RTLD_GLOBAL
11214 #else
11215 # ifdef DL_GLOBAL
11216 # define LT_DLGLOBAL DL_GLOBAL
11217 # else
11218 # define LT_DLGLOBAL 0
11219 # endif
11220 #endif
11221
11222 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11223 find out it does not work in some platform. */
11224 #ifndef LT_DLLAZY_OR_NOW
11225 # ifdef RTLD_LAZY
11226 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11227 # else
11228 # ifdef DL_LAZY
11229 # define LT_DLLAZY_OR_NOW DL_LAZY
11230 # else
11231 # ifdef RTLD_NOW
11232 # define LT_DLLAZY_OR_NOW RTLD_NOW
11233 # else
11234 # ifdef DL_NOW
11235 # define LT_DLLAZY_OR_NOW DL_NOW
11236 # else
11237 # define LT_DLLAZY_OR_NOW 0
11238 # endif
11239 # endif
11240 # endif
11241 # endif
11242 #endif
11243
11244 /* When -fvisbility=hidden is used, assume the code has been annotated
11245 correspondingly for the symbols needed. */
11246 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11247 int fnord () __attribute__((visibility("default")));
11248 #endif
11249
11250 int fnord () { return 42; }
11251 int main ()
11252 {
11253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11254 int status = $lt_dlunknown;
11255
11256 if (self)
11257 {
11258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11259 else
11260 {
11261 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11262 else puts (dlerror ());
11263 }
11264 /* dlclose (self); */
11265 }
11266 else
11267 puts (dlerror ());
11268
11269 return status;
11270 }
11271 _LT_EOF
11272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11273 (eval $ac_link) 2>&5
11274 ac_status=$?
11275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11276 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11277 (./conftest; exit; ) >&5 2>/dev/null
11278 lt_status=$?
11279 case x$lt_status in
11280 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11281 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11282 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11283 esac
11284 else :
11285 # compilation failed
11286 lt_cv_dlopen_self_static=no
11287 fi
11288 fi
11289 rm -fr conftest*
11290
11291
11292 fi
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11294 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11295 fi
11296
11297 CPPFLAGS="$save_CPPFLAGS"
11298 LDFLAGS="$save_LDFLAGS"
11299 LIBS="$save_LIBS"
11300 ;;
11301 esac
11302
11303 case $lt_cv_dlopen_self in
11304 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11305 *) enable_dlopen_self=unknown ;;
11306 esac
11307
11308 case $lt_cv_dlopen_self_static in
11309 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11310 *) enable_dlopen_self_static=unknown ;;
11311 esac
11312 fi
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330 striplib=
11331 old_striplib=
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11333 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11334 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11335 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11336 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11338 $as_echo "yes" >&6; }
11339 else
11340 # FIXME - insert some real tests, host_os isn't really good enough
11341 case $host_os in
11342 darwin*)
11343 if test -n "$STRIP" ; then
11344 striplib="$STRIP -x"
11345 old_striplib="$STRIP -S"
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11347 $as_echo "yes" >&6; }
11348 else
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350 $as_echo "no" >&6; }
11351 fi
11352 ;;
11353 *)
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11355 $as_echo "no" >&6; }
11356 ;;
11357 esac
11358 fi
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371 # Report which library types will actually be built
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11373 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11375 $as_echo "$can_build_shared" >&6; }
11376
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11378 $as_echo_n "checking whether to build shared libraries... " >&6; }
11379 test "$can_build_shared" = "no" && enable_shared=no
11380
11381 # On AIX, shared libraries and static libraries use the same namespace, and
11382 # are all built from PIC.
11383 case $host_os in
11384 aix3*)
11385 test "$enable_shared" = yes && enable_static=no
11386 if test -n "$RANLIB"; then
11387 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11388 postinstall_cmds='$RANLIB $lib'
11389 fi
11390 ;;
11391
11392 aix[4-9]*)
11393 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11394 test "$enable_shared" = yes && enable_static=no
11395 fi
11396 ;;
11397 esac
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11399 $as_echo "$enable_shared" >&6; }
11400
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11402 $as_echo_n "checking whether to build static libraries... " >&6; }
11403 # Make sure either enable_shared or enable_static is yes.
11404 test "$enable_shared" = yes || enable_static=yes
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11406 $as_echo "$enable_static" >&6; }
11407
11408
11409
11410
11411 fi
11412 ac_ext=c
11413 ac_cpp='$CPP $CPPFLAGS'
11414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11417
11418 CC="$lt_save_CC"
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434 ac_config_commands="$ac_config_commands libtool"
11435
11436
11437
11438
11439 # Only expand once:
11440
11441
11442
11443
11444 for ac_header in errno.h fcntl.h sys/fcntl.h sys/ioctl.h sys/file.h unistd.h sysexits.h
11445 do :
11446 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11447 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11448 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11449 cat >>confdefs.h <<_ACEOF
11450 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11451 _ACEOF
11452
11453 fi
11454
11455 done
11456
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11458 $as_echo_n "checking for ANSI C header files... " >&6; }
11459 if ${ac_cv_header_stdc+:} false; then :
11460 $as_echo_n "(cached) " >&6
11461 else
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11464 #include <stdlib.h>
11465 #include <stdarg.h>
11466 #include <string.h>
11467 #include <float.h>
11468
11469 int
11470 main ()
11471 {
11472
11473 ;
11474 return 0;
11475 }
11476 _ACEOF
11477 if ac_fn_c_try_compile "$LINENO"; then :
11478 ac_cv_header_stdc=yes
11479 else
11480 ac_cv_header_stdc=no
11481 fi
11482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11483
11484 if test $ac_cv_header_stdc = yes; then
11485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487 /* end confdefs.h. */
11488 #include <string.h>
11489
11490 _ACEOF
11491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11492 $EGREP "memchr" >/dev/null 2>&1; then :
11493
11494 else
11495 ac_cv_header_stdc=no
11496 fi
11497 rm -f conftest*
11498
11499 fi
11500
11501 if test $ac_cv_header_stdc = yes; then
11502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h. */
11505 #include <stdlib.h>
11506
11507 _ACEOF
11508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11509 $EGREP "free" >/dev/null 2>&1; then :
11510
11511 else
11512 ac_cv_header_stdc=no
11513 fi
11514 rm -f conftest*
11515
11516 fi
11517
11518 if test $ac_cv_header_stdc = yes; then
11519 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11520 if test "$cross_compiling" = yes; then :
11521 :
11522 else
11523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11524 /* end confdefs.h. */
11525 #include <ctype.h>
11526 #include <stdlib.h>
11527 #if ((' ' & 0x0FF) == 0x020)
11528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11530 #else
11531 # define ISLOWER(c) \
11532 (('a' <= (c) && (c) <= 'i') \
11533 || ('j' <= (c) && (c) <= 'r') \
11534 || ('s' <= (c) && (c) <= 'z'))
11535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11536 #endif
11537
11538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11539 int
11540 main ()
11541 {
11542 int i;
11543 for (i = 0; i < 256; i++)
11544 if (XOR (islower (i), ISLOWER (i))
11545 || toupper (i) != TOUPPER (i))
11546 return 2;
11547 return 0;
11548 }
11549 _ACEOF
11550 if ac_fn_c_try_run "$LINENO"; then :
11551
11552 else
11553 ac_cv_header_stdc=no
11554 fi
11555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11556 conftest.$ac_objext conftest.beam conftest.$ac_ext
11557 fi
11558
11559 fi
11560 fi
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11562 $as_echo "$ac_cv_header_stdc" >&6; }
11563 if test $ac_cv_header_stdc = yes; then
11564
11565 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11566
11567 fi
11568
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11570 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11571 if ${ac_cv_header_sys_wait_h+:} false; then :
11572 $as_echo_n "(cached) " >&6
11573 else
11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11576 #include <sys/types.h>
11577 #include <sys/wait.h>
11578 #ifndef WEXITSTATUS
11579 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11580 #endif
11581 #ifndef WIFEXITED
11582 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11583 #endif
11584
11585 int
11586 main ()
11587 {
11588 int s;
11589 wait (&s);
11590 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11591 ;
11592 return 0;
11593 }
11594 _ACEOF
11595 if ac_fn_c_try_compile "$LINENO"; then :
11596 ac_cv_header_sys_wait_h=yes
11597 else
11598 ac_cv_header_sys_wait_h=no
11599 fi
11600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11601 fi
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11603 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11604 if test $ac_cv_header_sys_wait_h = yes; then
11605
11606 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11607
11608 fi
11609
11610
11611
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11613 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11614 if ${ac_cv_c_const+:} false; then :
11615 $as_echo_n "(cached) " >&6
11616 else
11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11619
11620 int
11621 main ()
11622 {
11623
11624 #ifndef __cplusplus
11625 /* Ultrix mips cc rejects this sort of thing. */
11626 typedef int charset[2];
11627 const charset cs = { 0, 0 };
11628 /* SunOS 4.1.1 cc rejects this. */
11629 char const *const *pcpcc;
11630 char **ppc;
11631 /* NEC SVR4.0.2 mips cc rejects this. */
11632 struct point {int x, y;};
11633 static struct point const zero = {0,0};
11634 /* AIX XL C 1.02.0.0 rejects this.
11635 It does not let you subtract one const X* pointer from another in
11636 an arm of an if-expression whose if-part is not a constant
11637 expression */
11638 const char *g = "string";
11639 pcpcc = &g + (g ? g-g : 0);
11640 /* HPUX 7.0 cc rejects these. */
11641 ++pcpcc;
11642 ppc = (char**) pcpcc;
11643 pcpcc = (char const *const *) ppc;
11644 { /* SCO 3.2v4 cc rejects this sort of thing. */
11645 char tx;
11646 char *t = &tx;
11647 char const *s = 0 ? (char *) 0 : (char const *) 0;
11648
11649 *t++ = 0;
11650 if (s) return 0;
11651 }
11652 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11653 int x[] = {25, 17};
11654 const int *foo = &x[0];
11655 ++foo;
11656 }
11657 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11658 typedef const int *iptr;
11659 iptr p = 0;
11660 ++p;
11661 }
11662 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11663 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11664 struct s { int j; const int *ap[3]; } bx;
11665 struct s *b = &bx; b->j = 5;
11666 }
11667 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11668 const int foo = 10;
11669 if (!foo) return 0;
11670 }
11671 return !cs[0] && !zero.x;
11672 #endif
11673
11674 ;
11675 return 0;
11676 }
11677 _ACEOF
11678 if ac_fn_c_try_compile "$LINENO"; then :
11679 ac_cv_c_const=yes
11680 else
11681 ac_cv_c_const=no
11682 fi
11683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11684 fi
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11686 $as_echo "$ac_cv_c_const" >&6; }
11687 if test $ac_cv_c_const = no; then
11688
11689 $as_echo "#define const /**/" >>confdefs.h
11690
11691 fi
11692
11693 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11694 if test "x$ac_cv_type_off_t" = xyes; then :
11695
11696 else
11697
11698 cat >>confdefs.h <<_ACEOF
11699 #define off_t long int
11700 _ACEOF
11701
11702 fi
11703
11704 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11705 if test "x$ac_cv_type_pid_t" = xyes; then :
11706
11707 else
11708
11709 cat >>confdefs.h <<_ACEOF
11710 #define pid_t int
11711 _ACEOF
11712
11713 fi
11714
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11716 $as_echo_n "checking return type of signal handlers... " >&6; }
11717 if ${ac_cv_type_signal+:} false; then :
11718 $as_echo_n "(cached) " >&6
11719 else
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11722 #include <sys/types.h>
11723 #include <signal.h>
11724
11725 int
11726 main ()
11727 {
11728 return *(signal (0, 0)) (0) == 1;
11729 ;
11730 return 0;
11731 }
11732 _ACEOF
11733 if ac_fn_c_try_compile "$LINENO"; then :
11734 ac_cv_type_signal=int
11735 else
11736 ac_cv_type_signal=void
11737 fi
11738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739 fi
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11741 $as_echo "$ac_cv_type_signal" >&6; }
11742
11743 cat >>confdefs.h <<_ACEOF
11744 #define RETSIGTYPE $ac_cv_type_signal
11745 _ACEOF
11746
11747
11748 # Check whether --enable-largefile was given.
11749 if test "${enable_largefile+set}" = set; then :
11750 enableval=$enable_largefile;
11751 fi
11752
11753 if test "$enable_largefile" != no; then
11754
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11756 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11757 if ${ac_cv_sys_largefile_CC+:} false; then :
11758 $as_echo_n "(cached) " >&6
11759 else
11760 ac_cv_sys_largefile_CC=no
11761 if test "$GCC" != yes; then
11762 ac_save_CC=$CC
11763 while :; do
11764 # IRIX 6.2 and later do not support large files by default,
11765 # so use the C compiler's -n32 option if that helps.
11766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767 /* end confdefs.h. */
11768 #include <sys/types.h>
11769 /* Check that off_t can represent 2**63 - 1 correctly.
11770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11771 since some C++ compilers masquerading as C compilers
11772 incorrectly reject 9223372036854775807. */
11773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11775 && LARGE_OFF_T % 2147483647 == 1)
11776 ? 1 : -1];
11777 int
11778 main ()
11779 {
11780
11781 ;
11782 return 0;
11783 }
11784 _ACEOF
11785 if ac_fn_c_try_compile "$LINENO"; then :
11786 break
11787 fi
11788 rm -f core conftest.err conftest.$ac_objext
11789 CC="$CC -n32"
11790 if ac_fn_c_try_compile "$LINENO"; then :
11791 ac_cv_sys_largefile_CC=' -n32'; break
11792 fi
11793 rm -f core conftest.err conftest.$ac_objext
11794 break
11795 done
11796 CC=$ac_save_CC
11797 rm -f conftest.$ac_ext
11798 fi
11799 fi
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11801 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11802 if test "$ac_cv_sys_largefile_CC" != no; then
11803 CC=$CC$ac_cv_sys_largefile_CC
11804 fi
11805
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11807 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11808 if ${ac_cv_sys_file_offset_bits+:} false; then :
11809 $as_echo_n "(cached) " >&6
11810 else
11811 while :; do
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11814 #include <sys/types.h>
11815 /* Check that off_t can represent 2**63 - 1 correctly.
11816 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11817 since some C++ compilers masquerading as C compilers
11818 incorrectly reject 9223372036854775807. */
11819 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11820 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11821 && LARGE_OFF_T % 2147483647 == 1)
11822 ? 1 : -1];
11823 int
11824 main ()
11825 {
11826
11827 ;
11828 return 0;
11829 }
11830 _ACEOF
11831 if ac_fn_c_try_compile "$LINENO"; then :
11832 ac_cv_sys_file_offset_bits=no; break
11833 fi
11834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h. */
11837 #define _FILE_OFFSET_BITS 64
11838 #include <sys/types.h>
11839 /* Check that off_t can represent 2**63 - 1 correctly.
11840 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11841 since some C++ compilers masquerading as C compilers
11842 incorrectly reject 9223372036854775807. */
11843 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11844 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11845 && LARGE_OFF_T % 2147483647 == 1)
11846 ? 1 : -1];
11847 int
11848 main ()
11849 {
11850
11851 ;
11852 return 0;
11853 }
11854 _ACEOF
11855 if ac_fn_c_try_compile "$LINENO"; then :
11856 ac_cv_sys_file_offset_bits=64; break
11857 fi
11858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11859 ac_cv_sys_file_offset_bits=unknown
11860 break
11861 done
11862 fi
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11864 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11865 case $ac_cv_sys_file_offset_bits in #(
11866 no | unknown) ;;
11867 *)
11868 cat >>confdefs.h <<_ACEOF
11869 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11870 _ACEOF
11871 ;;
11872 esac
11873 rm -rf conftest*
11874 if test $ac_cv_sys_file_offset_bits = unknown; then
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11876 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11877 if ${ac_cv_sys_large_files+:} false; then :
11878 $as_echo_n "(cached) " >&6
11879 else
11880 while :; do
11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11883 #include <sys/types.h>
11884 /* Check that off_t can represent 2**63 - 1 correctly.
11885 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11886 since some C++ compilers masquerading as C compilers
11887 incorrectly reject 9223372036854775807. */
11888 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11889 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11890 && LARGE_OFF_T % 2147483647 == 1)
11891 ? 1 : -1];
11892 int
11893 main ()
11894 {
11895
11896 ;
11897 return 0;
11898 }
11899 _ACEOF
11900 if ac_fn_c_try_compile "$LINENO"; then :
11901 ac_cv_sys_large_files=no; break
11902 fi
11903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h. */
11906 #define _LARGE_FILES 1
11907 #include <sys/types.h>
11908 /* Check that off_t can represent 2**63 - 1 correctly.
11909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11910 since some C++ compilers masquerading as C compilers
11911 incorrectly reject 9223372036854775807. */
11912 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11914 && LARGE_OFF_T % 2147483647 == 1)
11915 ? 1 : -1];
11916 int
11917 main ()
11918 {
11919
11920 ;
11921 return 0;
11922 }
11923 _ACEOF
11924 if ac_fn_c_try_compile "$LINENO"; then :
11925 ac_cv_sys_large_files=1; break
11926 fi
11927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11928 ac_cv_sys_large_files=unknown
11929 break
11930 done
11931 fi
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11933 $as_echo "$ac_cv_sys_large_files" >&6; }
11934 case $ac_cv_sys_large_files in #(
11935 no | unknown) ;;
11936 *)
11937 cat >>confdefs.h <<_ACEOF
11938 #define _LARGE_FILES $ac_cv_sys_large_files
11939 _ACEOF
11940 ;;
11941 esac
11942 rm -rf conftest*
11943 fi
11944
11945
11946 fi
11947
11948
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
11950 $as_echo_n "checking for off64_t... " >&6; }
11951 if ${liblock_cv_hasoff64t+:} false; then :
11952 $as_echo_n "(cached) " >&6
11953 else
11954 liblock_cv_hasoff64t="no"
11955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956 /* end confdefs.h. */
11957
11958 #include <sys/types.h>
11959
11960 int
11961 main ()
11962 {
11963
11964 off64_t n;
11965
11966 n=0;
11967
11968 ;
11969 return 0;
11970 }
11971 _ACEOF
11972 if ac_fn_c_try_compile "$LINENO"; then :
11973 liblock_cv_hasoff64t="yes"
11974 fi
11975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976
11977
11978 fi
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasoff64t" >&5
11980 $as_echo "$liblock_cv_hasoff64t" >&6; }
11981
11982 if test "$liblock_cv_hasoff64t" = "yes"
11983 then
11984 LL_OFFSET_TYPE=off64_t
11985 else
11986 LL_OFFSET_TYPE=off_t
11987 fi
11988
11989 cat >>confdefs.h <<_ACEOF
11990 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
11991 _ACEOF
11992
11993
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock_t" >&5
11995 $as_echo_n "checking for flock_t... " >&6; }
11996 if ${liblock_cv_hasflock_t+:} false; then :
11997 $as_echo_n "(cached) " >&6
11998 else
11999 liblock_cv_hasflock_t="no"
12000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001 /* end confdefs.h. */
12002
12003 #if HAVE_CONFIG_H
12004 #include "config.h"
12005 #endif
12006 #include <sys/types.h>
12007 #if HAVE_FCNTL_H
12008 #include <fcntl.h>
12009 #endif
12010 #if HAVE_SYS_FCNTL_H
12011 #include <sys/fcntl.h>
12012 #endif
12013
12014 int
12015 main ()
12016 {
12017
12018 flock_t t;
12019
12020 ;
12021 return 0;
12022 }
12023 _ACEOF
12024 if ac_fn_c_try_compile "$LINENO"; then :
12025 liblock_cv_hasflock_t="yes"
12026 fi
12027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12028 fi
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasflock_t" >&5
12030 $as_echo "$liblock_cv_hasflock_t" >&6; }
12031
12032 if test "$liblock_cv_hasflock_t" = "yes"
12033 then
12034
12035 cat >>confdefs.h <<_ACEOF
12036 #define HAS_FLOCK_T 1
12037 _ACEOF
12038
12039 fi
12040
12041
12042 for ac_func in getdtablesize setpgrp sysconf
12043 do :
12044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12045 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12046 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12047 cat >>confdefs.h <<_ACEOF
12048 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12049 _ACEOF
12050
12051 fi
12052 done
12053
12054 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
12055 if test "x$ac_cv_func_setpgrp" = xyes; then :
12056
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12058 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12059 if ${ac_cv_func_setpgrp_void+:} false; then :
12060 $as_echo_n "(cached) " >&6
12061 else
12062 if test "$cross_compiling" = yes; then :
12063 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
12064 else
12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h. */
12067 $ac_includes_default
12068 int
12069 main ()
12070 {
12071 /* If this system has a BSD-style setpgrp which takes arguments,
12072 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12073 exit successfully. */
12074 return setpgrp (1,1) != -1;
12075 ;
12076 return 0;
12077 }
12078 _ACEOF
12079 if ac_fn_c_try_run "$LINENO"; then :
12080 ac_cv_func_setpgrp_void=no
12081 else
12082 ac_cv_func_setpgrp_void=yes
12083 fi
12084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12085 conftest.$ac_objext conftest.beam conftest.$ac_ext
12086 fi
12087
12088 fi
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12090 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12091 if test $ac_cv_func_setpgrp_void = yes; then
12092
12093 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12094
12095 fi
12096
12097
12098
12099 fi
12100
12101
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl" >&5
12103 $as_echo_n "checking for fcntl... " >&6; }
12104 if ${liblock_cv_hasfcntl+:} false; then :
12105 $as_echo_n "(cached) " >&6
12106 else
12107 liblock_cv_hasfcntl="no"
12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12110
12111 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12112 #include "${srcdir}/lockfcntl.c"
12113
12114 int
12115 main ()
12116 {
12117
12118 int n;
12119
12120 ;
12121 return 0;
12122 }
12123 _ACEOF
12124 if ac_fn_c_try_link "$LINENO"; then :
12125 liblock_cv_hasfcntl="yes"
12126 fi
12127 rm -f core conftest.err conftest.$ac_objext \
12128 conftest$ac_exeext conftest.$ac_ext
12129 fi
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasfcntl" >&5
12131 $as_echo "$liblock_cv_hasfcntl" >&6; }
12132 if test "$liblock_cv_hasfcntl" = "yes"
12133 then
12134
12135 cat >>confdefs.h <<_ACEOF
12136 #define HAS_FCNTL 1
12137 _ACEOF
12138
12139 fi
12140
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5
12142 $as_echo_n "checking for flock... " >&6; }
12143 if ${liblock_cv_hasflock+:} false; then :
12144 $as_echo_n "(cached) " >&6
12145 else
12146 liblock_cv_hasflock="no"
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12149
12150 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12151 #include "${srcdir}/lockflock.c"
12152
12153 int
12154 main ()
12155 {
12156
12157 int n;
12158
12159 ;
12160 return 0;
12161 }
12162 _ACEOF
12163 if ac_fn_c_try_link "$LINENO"; then :
12164 liblock_cv_hasflock="yes"
12165 fi
12166 rm -f core conftest.err conftest.$ac_objext \
12167 conftest$ac_exeext conftest.$ac_ext
12168 fi
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasflock" >&5
12170 $as_echo "$liblock_cv_hasflock" >&6; }
12171 if test "$liblock_cv_hasflock" = "yes"
12172 then
12173
12174 cat >>confdefs.h <<_ACEOF
12175 #define HAS_FLOCK 1
12176 _ACEOF
12177
12178 fi
12179
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lockf" >&5
12181 $as_echo_n "checking for lockf... " >&6; }
12182 if ${liblock_cv_haslockf+:} false; then :
12183 $as_echo_n "(cached) " >&6
12184 else
12185 liblock_cv_haslockf="no"
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12188
12189 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12190 #include "${srcdir}/locklockf.c"
12191
12192 int
12193 main ()
12194 {
12195
12196 int n;
12197
12198 ;
12199 return 0;
12200 }
12201 _ACEOF
12202 if ac_fn_c_try_link "$LINENO"; then :
12203 liblock_cv_haslockf="yes"
12204 fi
12205 rm -f core conftest.err conftest.$ac_objext \
12206 conftest$ac_exeext conftest.$ac_ext
12207 fi
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_haslockf" >&5
12209 $as_echo "$liblock_cv_haslockf" >&6; }
12210 if test "$liblock_cv_haslockf" = "yes"
12211 then
12212
12213 cat >>confdefs.h <<_ACEOF
12214 #define HAS_LOCKF 1
12215 _ACEOF
12216
12217 fi
12218
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locking method" >&5
12220 $as_echo_n "checking for locking method... " >&6; }
12221
12222 # Check whether --with-locking-method was given.
12223 if test "${with_locking_method+set}" = set; then :
12224 withval=$with_locking_method; lockmethod="$withval"
12225 else
12226 lockmethod=""
12227 fi
12228
12229
12230 case x$lockmethod in
12231 xfcntl)
12232 if test "$cross_compiling" = yes; then :
12233 :
12234
12235 else
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12238
12239 #define USE_FCNTL 1
12240 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12241 #include "${srcdir}/locktest.c"
12242
12243 _ACEOF
12244 if ac_fn_c_try_run "$LINENO"; then :
12245
12246 else
12247 as_fn_error $? "fcntl test failed." "$LINENO" 5
12248 fi
12249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12250 conftest.$ac_objext conftest.beam conftest.$ac_ext
12251 fi
12252
12253 ;;
12254 x)
12255 if test "$cross_compiling" = yes; then :
12256 as_fn_error $? "--with-locking-method option required" "$LINENO" 5
12257 else
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12260
12261 #define USE_FCNTL 1
12262 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12263 #include "${srcdir}/locktest.c"
12264
12265 _ACEOF
12266 if ac_fn_c_try_run "$LINENO"; then :
12267 lockmethod=fcntl
12268 fi
12269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12270 conftest.$ac_objext conftest.beam conftest.$ac_ext
12271 fi
12272
12273 ;;
12274 esac
12275
12276 case x$lockmethod in
12277 xlockf)
12278 if test "$cross_compiling" = yes; then :
12279 :
12280
12281 else
12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h. */
12284
12285 #define USE_LOCKF 1
12286 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12287 #include "${srcdir}/locktest.c"
12288
12289 _ACEOF
12290 if ac_fn_c_try_run "$LINENO"; then :
12291
12292 else
12293 as_fn_error $? "lockf test failed." "$LINENO" 5
12294 fi
12295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12296 conftest.$ac_objext conftest.beam conftest.$ac_ext
12297 fi
12298
12299 ;;
12300 x)
12301 if test "$cross_compiling" = yes; then :
12302 as_fn_error $? "--with-locking-method option required" "$LINENO" 5
12303 else
12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305 /* end confdefs.h. */
12306
12307 #define USE_LOCKF 1
12308 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12309 #include "${srcdir}/locktest.c"
12310
12311 _ACEOF
12312 if ac_fn_c_try_run "$LINENO"; then :
12313 lockmethod=lockf
12314 fi
12315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12316 conftest.$ac_objext conftest.beam conftest.$ac_ext
12317 fi
12318
12319 ;;
12320 esac
12321
12322
12323 case x$lockmethod in
12324 xflock)
12325 if test "$cross_compiling" = yes; then :
12326 :
12327
12328 else
12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330 /* end confdefs.h. */
12331
12332 #define USE_FLOCK 1
12333 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12334 #include "${srcdir}/locktest.c"
12335
12336 _ACEOF
12337 if ac_fn_c_try_run "$LINENO"; then :
12338
12339 else
12340 as_fn_error $? "flock test failed." "$LINENO" 5
12341 fi
12342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12343 conftest.$ac_objext conftest.beam conftest.$ac_ext
12344 fi
12345
12346 ;;
12347 x)
12348 if test "$cross_compiling" = yes; then :
12349 as_fn_error $? "--with-locking-method option required" "$LINENO" 5
12350 else
12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h. */
12353
12354 #define USE_FLOCK 1
12355 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12356 #include "${srcdir}/locktest.c"
12357
12358 _ACEOF
12359 if ac_fn_c_try_run "$LINENO"; then :
12360 lockmethod=flock
12361 fi
12362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12363 conftest.$ac_objext conftest.beam conftest.$ac_ext
12364 fi
12365
12366 ;;
12367 esac
12368
12369 case x$lockmethod in
12370 xlockf)
12371 ;;
12372 xflock)
12373 ;;
12374 xfcntl)
12375 ;;
12376 *)
12377 as_fn_error $? "must specify --with-locking-method option" "$LINENO" 5
12378 ;;
12379 esac
12380
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lockmethod" >&5
12382 $as_echo "$lockmethod" >&6; }
12383
12384 if test "$lockmethod" = "fcntl"; then
12385 USE_FCNTL_TRUE=
12386 USE_FCNTL_FALSE='#'
12387 else
12388 USE_FCNTL_TRUE='#'
12389 USE_FCNTL_FALSE=
12390 fi
12391
12392 if test "$lockmethod" = "flock"; then
12393 USE_FLOCK_TRUE=
12394 USE_FLOCK_FALSE='#'
12395 else
12396 USE_FLOCK_TRUE='#'
12397 USE_FLOCK_FALSE=
12398 fi
12399
12400 if test "$lockmethod" = "lockf"; then
12401 USE_LOCKF_TRUE=
12402 USE_LOCKF_FALSE='#'
12403 else
12404 USE_LOCKF_TRUE='#'
12405 USE_LOCKF_FALSE=
12406 fi
12407
12408
12409 if test -d ${srcdir}/../docbook; then
12410 HAVE_SGML_TRUE=
12411 HAVE_SGML_FALSE='#'
12412 else
12413 HAVE_SGML_TRUE='#'
12414 HAVE_SGML_FALSE=
12415 fi
12416
12417
12418
12419 cat >>confdefs.h <<_ACEOF
12420 #define liblock_config_h 1
12421 _ACEOF
12422
12423
12424 ac_config_files="$ac_config_files Makefile"
12425
12426 cat >confcache <<\_ACEOF
12427 # This file is a shell script that caches the results of configure
12428 # tests run on this system so they can be shared between configure
12429 # scripts and configure runs, see configure's option --config-cache.
12430 # It is not useful on other systems. If it contains results you don't
12431 # want to keep, you may remove or edit it.
12432 #
12433 # config.status only pays attention to the cache file if you give it
12434 # the --recheck option to rerun configure.
12435 #
12436 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12437 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12438 # following values.
12439
12440 _ACEOF
12441
12442 # The following way of writing the cache mishandles newlines in values,
12443 # but we know of no workaround that is simple, portable, and efficient.
12444 # So, we kill variables containing newlines.
12445 # Ultrix sh set writes to stderr and can't be redirected directly,
12446 # and sets the high bit in the cache file unless we assign to the vars.
12447 (
12448 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12449 eval ac_val=\$$ac_var
12450 case $ac_val in #(
12451 *${as_nl}*)
12452 case $ac_var in #(
12453 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12454 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12455 esac
12456 case $ac_var in #(
12457 _ | IFS | as_nl) ;; #(
12458 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12459 *) { eval $ac_var=; unset $ac_var;} ;;
12460 esac ;;
12461 esac
12462 done
12463
12464 (set) 2>&1 |
12465 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12466 *${as_nl}ac_space=\ *)
12467 # `set' does not quote correctly, so add quotes: double-quote
12468 # substitution turns \\\\ into \\, and sed turns \\ into \.
12469 sed -n \
12470 "s/'/'\\\\''/g;
12471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12472 ;; #(
12473 *)
12474 # `set' quotes correctly as required by POSIX, so do not add quotes.
12475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12476 ;;
12477 esac |
12478 sort
12479 ) |
12480 sed '
12481 /^ac_cv_env_/b end
12482 t clear
12483 :clear
12484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12485 t end
12486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12487 :end' >>confcache
12488 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12489 if test -w "$cache_file"; then
12490 if test "x$cache_file" != "x/dev/null"; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12492 $as_echo "$as_me: updating cache $cache_file" >&6;}
12493 if test ! -f "$cache_file" || test -h "$cache_file"; then
12494 cat confcache >"$cache_file"
12495 else
12496 case $cache_file in #(
12497 */* | ?:*)
12498 mv -f confcache "$cache_file"$$ &&
12499 mv -f "$cache_file"$$ "$cache_file" ;; #(
12500 *)
12501 mv -f confcache "$cache_file" ;;
12502 esac
12503 fi
12504 fi
12505 else
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12507 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12508 fi
12509 fi
12510 rm -f confcache
12511
12512 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12513 # Let make expand exec_prefix.
12514 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12515
12516 DEFS=-DHAVE_CONFIG_H
12517
12518 ac_libobjs=
12519 ac_ltlibobjs=
12520 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12521 # 1. Remove the extension, and $U if already installed.
12522 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12523 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12524 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12525 # will be set to the directory where LIBOBJS objects are built.
12526 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12527 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12528 done
12529 LIBOBJS=$ac_libobjs
12530
12531 LTLIBOBJS=$ac_ltlibobjs
12532
12533
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12535 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12536 if test -n "$am_sleep_pid"; then
12537 # Hide warnings about reused PIDs.
12538 wait $am_sleep_pid 2>/dev/null
12539 fi
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12541 $as_echo "done" >&6; }
12542 if test -n "$EXEEXT"; then
12543 am__EXEEXT_TRUE=
12544 am__EXEEXT_FALSE='#'
12545 else
12546 am__EXEEXT_TRUE='#'
12547 am__EXEEXT_FALSE=
12548 fi
12549
12550 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12551 as_fn_error $? "conditional \"AMDEP\" was never defined.
12552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12553 fi
12554 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12555 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12557 fi
12558 if test -z "${USE_FCNTL_TRUE}" && test -z "${USE_FCNTL_FALSE}"; then
12559 as_fn_error $? "conditional \"USE_FCNTL\" was never defined.
12560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12561 fi
12562 if test -z "${USE_FLOCK_TRUE}" && test -z "${USE_FLOCK_FALSE}"; then
12563 as_fn_error $? "conditional \"USE_FLOCK\" was never defined.
12564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12565 fi
12566 if test -z "${USE_LOCKF_TRUE}" && test -z "${USE_LOCKF_FALSE}"; then
12567 as_fn_error $? "conditional \"USE_LOCKF\" was never defined.
12568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12569 fi
12570 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
12571 as_fn_error $? "conditional \"HAVE_SGML\" was never defined.
12572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12573 fi
12574
12575 : "${CONFIG_STATUS=./config.status}"
12576 ac_write_fail=0
12577 ac_clean_files_save=$ac_clean_files
12578 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12580 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12581 as_write_fail=0
12582 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12583 #! $SHELL
12584 # Generated by $as_me.
12585 # Run this file to recreate the current configuration.
12586 # Compiler output produced by configure, useful for debugging
12587 # configure, is in config.log if it exists.
12588
12589 debug=false
12590 ac_cs_recheck=false
12591 ac_cs_silent=false
12592
12593 SHELL=\${CONFIG_SHELL-$SHELL}
12594 export SHELL
12595 _ASEOF
12596 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12597 ## -------------------- ##
12598 ## M4sh Initialization. ##
12599 ## -------------------- ##
12600
12601 # Be more Bourne compatible
12602 DUALCASE=1; export DUALCASE # for MKS sh
12603 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12604 emulate sh
12605 NULLCMD=:
12606 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12607 # is contrary to our usage. Disable this feature.
12608 alias -g '${1+"$@"}'='"$@"'
12609 setopt NO_GLOB_SUBST
12610 else
12611 case `(set -o) 2>/dev/null` in #(
12612 *posix*) :
12613 set -o posix ;; #(
12614 *) :
12615 ;;
12616 esac
12617 fi
12618
12619
12620 as_nl='
12621 '
12622 export as_nl
12623 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12624 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12625 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12626 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12627 # Prefer a ksh shell builtin over an external printf program on Solaris,
12628 # but without wasting forks for bash or zsh.
12629 if test -z "$BASH_VERSION$ZSH_VERSION" \
12630 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12631 as_echo='print -r --'
12632 as_echo_n='print -rn --'
12633 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12634 as_echo='printf %s\n'
12635 as_echo_n='printf %s'
12636 else
12637 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12638 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12639 as_echo_n='/usr/ucb/echo -n'
12640 else
12641 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12642 as_echo_n_body='eval
12643 arg=$1;
12644 case $arg in #(
12645 *"$as_nl"*)
12646 expr "X$arg" : "X\\(.*\\)$as_nl";
12647 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12648 esac;
12649 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12650 '
12651 export as_echo_n_body
12652 as_echo_n='sh -c $as_echo_n_body as_echo'
12653 fi
12654 export as_echo_body
12655 as_echo='sh -c $as_echo_body as_echo'
12656 fi
12657
12658 # The user is always right.
12659 if test "${PATH_SEPARATOR+set}" != set; then
12660 PATH_SEPARATOR=:
12661 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12662 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12663 PATH_SEPARATOR=';'
12664 }
12665 fi
12666
12667
12668 # IFS
12669 # We need space, tab and new line, in precisely that order. Quoting is
12670 # there to prevent editors from complaining about space-tab.
12671 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12672 # splitting by setting IFS to empty value.)
12673 IFS=" "" $as_nl"
12674
12675 # Find who we are. Look in the path if we contain no directory separator.
12676 as_myself=
12677 case $0 in #((
12678 *[\\/]* ) as_myself=$0 ;;
12679 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12680 for as_dir in $PATH
12681 do
12682 IFS=$as_save_IFS
12683 test -z "$as_dir" && as_dir=.
12684 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12685 done
12686 IFS=$as_save_IFS
12687
12688 ;;
12689 esac
12690 # We did not find ourselves, most probably we were run as `sh COMMAND'
12691 # in which case we are not to be found in the path.
12692 if test "x$as_myself" = x; then
12693 as_myself=$0
12694 fi
12695 if test ! -f "$as_myself"; then
12696 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12697 exit 1
12698 fi
12699
12700 # Unset variables that we do not need and which cause bugs (e.g. in
12701 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12702 # suppresses any "Segmentation fault" message there. '((' could
12703 # trigger a bug in pdksh 5.2.14.
12704 for as_var in BASH_ENV ENV MAIL MAILPATH
12705 do eval test x\${$as_var+set} = xset \
12706 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12707 done
12708 PS1='$ '
12709 PS2='> '
12710 PS4='+ '
12711
12712 # NLS nuisances.
12713 LC_ALL=C
12714 export LC_ALL
12715 LANGUAGE=C
12716 export LANGUAGE
12717
12718 # CDPATH.
12719 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12720
12721
12722 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12723 # ----------------------------------------
12724 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12725 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12726 # script with STATUS, using 1 if that was 0.
12727 as_fn_error ()
12728 {
12729 as_status=$1; test $as_status -eq 0 && as_status=1
12730 if test "$4"; then
12731 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12732 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12733 fi
12734 $as_echo "$as_me: error: $2" >&2
12735 as_fn_exit $as_status
12736 } # as_fn_error
12737
12738
12739 # as_fn_set_status STATUS
12740 # -----------------------
12741 # Set $? to STATUS, without forking.
12742 as_fn_set_status ()
12743 {
12744 return $1
12745 } # as_fn_set_status
12746
12747 # as_fn_exit STATUS
12748 # -----------------
12749 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12750 as_fn_exit ()
12751 {
12752 set +e
12753 as_fn_set_status $1
12754 exit $1
12755 } # as_fn_exit
12756
12757 # as_fn_unset VAR
12758 # ---------------
12759 # Portably unset VAR.
12760 as_fn_unset ()
12761 {
12762 { eval $1=; unset $1;}
12763 }
12764 as_unset=as_fn_unset
12765 # as_fn_append VAR VALUE
12766 # ----------------------
12767 # Append the text in VALUE to the end of the definition contained in VAR. Take
12768 # advantage of any shell optimizations that allow amortized linear growth over
12769 # repeated appends, instead of the typical quadratic growth present in naive
12770 # implementations.
12771 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12772 eval 'as_fn_append ()
12773 {
12774 eval $1+=\$2
12775 }'
12776 else
12777 as_fn_append ()
12778 {
12779 eval $1=\$$1\$2
12780 }
12781 fi # as_fn_append
12782
12783 # as_fn_arith ARG...
12784 # ------------------
12785 # Perform arithmetic evaluation on the ARGs, and store the result in the
12786 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12787 # must be portable across $(()) and expr.
12788 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12789 eval 'as_fn_arith ()
12790 {
12791 as_val=$(( $* ))
12792 }'
12793 else
12794 as_fn_arith ()
12795 {
12796 as_val=`expr "$@" || test $? -eq 1`
12797 }
12798 fi # as_fn_arith
12799
12800
12801 if expr a : '\(a\)' >/dev/null 2>&1 &&
12802 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12803 as_expr=expr
12804 else
12805 as_expr=false
12806 fi
12807
12808 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12809 as_basename=basename
12810 else
12811 as_basename=false
12812 fi
12813
12814 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12815 as_dirname=dirname
12816 else
12817 as_dirname=false
12818 fi
12819
12820 as_me=`$as_basename -- "$0" ||
12821 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12822 X"$0" : 'X\(//\)$' \| \
12823 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12824 $as_echo X/"$0" |
12825 sed '/^.*\/\([^/][^/]*\)\/*$/{
12826 s//\1/
12827 q
12828 }
12829 /^X\/\(\/\/\)$/{
12830 s//\1/
12831 q
12832 }
12833 /^X\/\(\/\).*/{
12834 s//\1/
12835 q
12836 }
12837 s/.*/./; q'`
12838
12839 # Avoid depending upon Character Ranges.
12840 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12841 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12842 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12843 as_cr_digits='0123456789'
12844 as_cr_alnum=$as_cr_Letters$as_cr_digits
12845
12846 ECHO_C= ECHO_N= ECHO_T=
12847 case `echo -n x` in #(((((
12848 -n*)
12849 case `echo 'xy\c'` in
12850 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12851 xy) ECHO_C='\c';;
12852 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12853 ECHO_T=' ';;
12854 esac;;
12855 *)
12856 ECHO_N='-n';;
12857 esac
12858
12859 rm -f conf$$ conf$$.exe conf$$.file
12860 if test -d conf$$.dir; then
12861 rm -f conf$$.dir/conf$$.file
12862 else
12863 rm -f conf$$.dir
12864 mkdir conf$$.dir 2>/dev/null
12865 fi
12866 if (echo >conf$$.file) 2>/dev/null; then
12867 if ln -s conf$$.file conf$$ 2>/dev/null; then
12868 as_ln_s='ln -s'
12869 # ... but there are two gotchas:
12870 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12871 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12872 # In both cases, we have to default to `cp -pR'.
12873 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12874 as_ln_s='cp -pR'
12875 elif ln conf$$.file conf$$ 2>/dev/null; then
12876 as_ln_s=ln
12877 else
12878 as_ln_s='cp -pR'
12879 fi
12880 else
12881 as_ln_s='cp -pR'
12882 fi
12883 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12884 rmdir conf$$.dir 2>/dev/null
12885
12886
12887 # as_fn_mkdir_p
12888 # -------------
12889 # Create "$as_dir" as a directory, including parents if necessary.
12890 as_fn_mkdir_p ()
12891 {
12892
12893 case $as_dir in #(
12894 -*) as_dir=./$as_dir;;
12895 esac
12896 test -d "$as_dir" || eval $as_mkdir_p || {
12897 as_dirs=
12898 while :; do
12899 case $as_dir in #(
12900 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12901 *) as_qdir=$as_dir;;
12902 esac
12903 as_dirs="'$as_qdir' $as_dirs"
12904 as_dir=`$as_dirname -- "$as_dir" ||
12905 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12906 X"$as_dir" : 'X\(//\)[^/]' \| \
12907 X"$as_dir" : 'X\(//\)$' \| \
12908 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12909 $as_echo X"$as_dir" |
12910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12911 s//\1/
12912 q
12913 }
12914 /^X\(\/\/\)[^/].*/{
12915 s//\1/
12916 q
12917 }
12918 /^X\(\/\/\)$/{
12919 s//\1/
12920 q
12921 }
12922 /^X\(\/\).*/{
12923 s//\1/
12924 q
12925 }
12926 s/.*/./; q'`
12927 test -d "$as_dir" && break
12928 done
12929 test -z "$as_dirs" || eval "mkdir $as_dirs"
12930 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12931
12932
12933 } # as_fn_mkdir_p
12934 if mkdir -p . 2>/dev/null; then
12935 as_mkdir_p='mkdir -p "$as_dir"'
12936 else
12937 test -d ./-p && rmdir ./-p
12938 as_mkdir_p=false
12939 fi
12940
12941
12942 # as_fn_executable_p FILE
12943 # -----------------------
12944 # Test if FILE is an executable regular file.
12945 as_fn_executable_p ()
12946 {
12947 test -f "$1" && test -x "$1"
12948 } # as_fn_executable_p
12949 as_test_x='test -x'
12950 as_executable_p=as_fn_executable_p
12951
12952 # Sed expression to map a string onto a valid CPP name.
12953 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12954
12955 # Sed expression to map a string onto a valid variable name.
12956 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12957
12958
12959 exec 6>&1
12960 ## ----------------------------------- ##
12961 ## Main body of $CONFIG_STATUS script. ##
12962 ## ----------------------------------- ##
12963 _ASEOF
12964 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12965
12966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12967 # Save the log message, to keep $0 and so on meaningful, and to
12968 # report actual input values of CONFIG_FILES etc. instead of their
12969 # values after options handling.
12970 ac_log="
12971 This file was extended by liblock $as_me 0.60, which was
12972 generated by GNU Autoconf 2.69. Invocation command line was
12973
12974 CONFIG_FILES = $CONFIG_FILES
12975 CONFIG_HEADERS = $CONFIG_HEADERS
12976 CONFIG_LINKS = $CONFIG_LINKS
12977 CONFIG_COMMANDS = $CONFIG_COMMANDS
12978 $ $0 $@
12979
12980 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12981 "
12982
12983 _ACEOF
12984
12985 case $ac_config_files in *"
12986 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12987 esac
12988
12989 case $ac_config_headers in *"
12990 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12991 esac
12992
12993
12994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12995 # Files that config.status was made for.
12996 config_files="$ac_config_files"
12997 config_headers="$ac_config_headers"
12998 config_commands="$ac_config_commands"
12999
13000 _ACEOF
13001
13002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13003 ac_cs_usage="\
13004 \`$as_me' instantiates files and other configuration actions
13005 from templates according to the current configuration. Unless the files
13006 and actions are specified as TAGs, all are instantiated by default.
13007
13008 Usage: $0 [OPTION]... [TAG]...
13009
13010 -h, --help print this help, then exit
13011 -V, --version print version number and configuration settings, then exit
13012 --config print configuration, then exit
13013 -q, --quiet, --silent
13014 do not print progress messages
13015 -d, --debug don't remove temporary files
13016 --recheck update $as_me by reconfiguring in the same conditions
13017 --file=FILE[:TEMPLATE]
13018 instantiate the configuration file FILE
13019 --header=FILE[:TEMPLATE]
13020 instantiate the configuration header FILE
13021
13022 Configuration files:
13023 $config_files
13024
13025 Configuration headers:
13026 $config_headers
13027
13028 Configuration commands:
13029 $config_commands
13030
13031 Report bugs to <courier-users@lists.sourceforge.net>."
13032
13033 _ACEOF
13034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13035 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13036 ac_cs_version="\\
13037 liblock config.status 0.60
13038 configured by $0, generated by GNU Autoconf 2.69,
13039 with options \\"\$ac_cs_config\\"
13040
13041 Copyright (C) 2012 Free Software Foundation, Inc.
13042 This config.status script is free software; the Free Software Foundation
13043 gives unlimited permission to copy, distribute and modify it."
13044
13045 ac_pwd='$ac_pwd'
13046 srcdir='$srcdir'
13047 INSTALL='$INSTALL'
13048 MKDIR_P='$MKDIR_P'
13049 AWK='$AWK'
13050 test -n "\$AWK" || AWK=awk
13051 _ACEOF
13052
13053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13054 # The default lists apply if the user does not specify any file.
13055 ac_need_defaults=:
13056 while test $# != 0
13057 do
13058 case $1 in
13059 --*=?*)
13060 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13061 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13062 ac_shift=:
13063 ;;
13064 --*=)
13065 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13066 ac_optarg=
13067 ac_shift=:
13068 ;;
13069 *)
13070 ac_option=$1
13071 ac_optarg=$2
13072 ac_shift=shift
13073 ;;
13074 esac
13075
13076 case $ac_option in
13077 # Handling of the options.
13078 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13079 ac_cs_recheck=: ;;
13080 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13081 $as_echo "$ac_cs_version"; exit ;;
13082 --config | --confi | --conf | --con | --co | --c )
13083 $as_echo "$ac_cs_config"; exit ;;
13084 --debug | --debu | --deb | --de | --d | -d )
13085 debug=: ;;
13086 --file | --fil | --fi | --f )
13087 $ac_shift
13088 case $ac_optarg in
13089 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13090 '') as_fn_error $? "missing file argument" ;;
13091 esac
13092 as_fn_append CONFIG_FILES " '$ac_optarg'"
13093 ac_need_defaults=false;;
13094 --header | --heade | --head | --hea )
13095 $ac_shift
13096 case $ac_optarg in
13097 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13098 esac
13099 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13100 ac_need_defaults=false;;
13101 --he | --h)
13102 # Conflict between --help and --header
13103 as_fn_error $? "ambiguous option: \`$1'
13104 Try \`$0 --help' for more information.";;
13105 --help | --hel | -h )
13106 $as_echo "$ac_cs_usage"; exit ;;
13107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13108 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13109 ac_cs_silent=: ;;
13110
13111 # This is an error.
13112 -*) as_fn_error $? "unrecognized option: \`$1'
13113 Try \`$0 --help' for more information." ;;
13114
13115 *) as_fn_append ac_config_targets " $1"
13116 ac_need_defaults=false ;;
13117
13118 esac
13119 shift
13120 done
13121
13122 ac_configure_extra_args=
13123
13124 if $ac_cs_silent; then
13125 exec 6>/dev/null
13126 ac_configure_extra_args="$ac_configure_extra_args --silent"
13127 fi
13128
13129 _ACEOF
13130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13131 if \$ac_cs_recheck; then
13132 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13133 shift
13134 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13135 CONFIG_SHELL='$SHELL'
13136 export CONFIG_SHELL
13137 exec "\$@"
13138 fi
13139
13140 _ACEOF
13141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13142 exec 5>>config.log
13143 {
13144 echo
13145 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13146 ## Running $as_me. ##
13147 _ASBOX
13148 $as_echo "$ac_log"
13149 } >&5
13150
13151 _ACEOF
13152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13153 #
13154 # INIT-COMMANDS
13155 #
13156 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13157
13158
13159 # The HP-UX ksh and POSIX shell print the target directory to stdout
13160 # if CDPATH is set.
13161 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13162
13163 sed_quote_subst='$sed_quote_subst'
13164 double_quote_subst='$double_quote_subst'
13165 delay_variable_subst='$delay_variable_subst'
13166 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13167 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13168 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13169 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13170 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13171 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13172 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13173 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13174 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13175 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13176 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13177 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13178 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13179 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13180 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13181 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13182 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13183 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13184 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13185 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13186 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13187 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13188 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13189 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13190 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13191 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13192 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13193 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13194 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13195 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13196 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13197 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13198 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13199 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13200 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13201 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13202 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13203 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13204 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13205 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13206 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13207 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13208 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13209 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13210 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13211 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13212 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13213 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13214 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13215 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13216 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13217 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13218 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13219 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13220 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13221 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13222 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"`'
13223 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13224 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13225 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13226 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13227 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13228 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13229 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13230 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13231 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13232 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13233 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13234 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13235 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13236 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13237 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13238 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13239 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13240 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13241 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13242 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13243 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13244 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13245 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13246 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13247 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13248 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13249 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13250 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13251 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13252 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13253 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13254 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13255 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13256 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13257 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13258 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13259 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13260 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13261 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13262 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13263 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13264 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13265 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13266 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13267 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13268 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13269 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13270 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13271 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13272 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13273 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13274 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13275 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13276 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13277 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13278 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13279 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13280 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13281 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13282 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13283 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13284 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13285 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13286 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13287 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13288 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13289 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13290 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13291 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13292 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13293 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13294 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13295 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13296
13297 LTCC='$LTCC'
13298 LTCFLAGS='$LTCFLAGS'
13299 compiler='$compiler_DEFAULT'
13300
13301 # A function that is used when there is no print builtin or printf.
13302 func_fallback_echo ()
13303 {
13304 eval 'cat <<_LTECHO_EOF
13305 \$1
13306 _LTECHO_EOF'
13307 }
13308
13309 # Quote evaled strings.
13310 for var in SHELL \
13311 ECHO \
13312 PATH_SEPARATOR \
13313 SED \
13314 GREP \
13315 EGREP \
13316 FGREP \
13317 LD \
13318 NM \
13319 LN_S \
13320 lt_SP2NL \
13321 lt_NL2SP \
13322 reload_flag \
13323 OBJDUMP \
13324 deplibs_check_method \
13325 file_magic_cmd \
13326 file_magic_glob \
13327 want_nocaseglob \
13328 DLLTOOL \
13329 sharedlib_from_linklib_cmd \
13330 AR \
13331 AR_FLAGS \
13332 archiver_list_spec \
13333 STRIP \
13334 RANLIB \
13335 CC \
13336 CFLAGS \
13337 compiler \
13338 lt_cv_sys_global_symbol_pipe \
13339 lt_cv_sys_global_symbol_to_cdecl \
13340 lt_cv_sys_global_symbol_to_c_name_address \
13341 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13342 nm_file_list_spec \
13343 lt_prog_compiler_no_builtin_flag \
13344 lt_prog_compiler_pic \
13345 lt_prog_compiler_wl \
13346 lt_prog_compiler_static \
13347 lt_cv_prog_compiler_c_o \
13348 need_locks \
13349 MANIFEST_TOOL \
13350 DSYMUTIL \
13351 NMEDIT \
13352 LIPO \
13353 OTOOL \
13354 OTOOL64 \
13355 shrext_cmds \
13356 export_dynamic_flag_spec \
13357 whole_archive_flag_spec \
13358 compiler_needs_object \
13359 with_gnu_ld \
13360 allow_undefined_flag \
13361 no_undefined_flag \
13362 hardcode_libdir_flag_spec \
13363 hardcode_libdir_separator \
13364 exclude_expsyms \
13365 include_expsyms \
13366 file_list_spec \
13367 variables_saved_for_relink \
13368 libname_spec \
13369 library_names_spec \
13370 soname_spec \
13371 install_override_mode \
13372 finish_eval \
13373 old_striplib \
13374 striplib; do
13375 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13376 *[\\\\\\\`\\"\\\$]*)
13377 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13378 ;;
13379 *)
13380 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13381 ;;
13382 esac
13383 done
13384
13385 # Double-quote double-evaled strings.
13386 for var in reload_cmds \
13387 old_postinstall_cmds \
13388 old_postuninstall_cmds \
13389 old_archive_cmds \
13390 extract_expsyms_cmds \
13391 old_archive_from_new_cmds \
13392 old_archive_from_expsyms_cmds \
13393 archive_cmds \
13394 archive_expsym_cmds \
13395 module_cmds \
13396 module_expsym_cmds \
13397 export_symbols_cmds \
13398 prelink_cmds \
13399 postlink_cmds \
13400 postinstall_cmds \
13401 postuninstall_cmds \
13402 finish_cmds \
13403 sys_lib_search_path_spec \
13404 sys_lib_dlsearch_path_spec; do
13405 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13406 *[\\\\\\\`\\"\\\$]*)
13407 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13408 ;;
13409 *)
13410 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13411 ;;
13412 esac
13413 done
13414
13415 ac_aux_dir='$ac_aux_dir'
13416 xsi_shell='$xsi_shell'
13417 lt_shell_append='$lt_shell_append'
13418
13419 # See if we are running on zsh, and set the options which allow our
13420 # commands through without removal of \ escapes INIT.
13421 if test -n "\${ZSH_VERSION+set}" ; then
13422 setopt NO_GLOB_SUBST
13423 fi
13424
13425
13426 PACKAGE='$PACKAGE'
13427 VERSION='$VERSION'
13428 TIMESTAMP='$TIMESTAMP'
13429 RM='$RM'
13430 ofile='$ofile'
13431
13432
13433
13434
13435 _ACEOF
13436
13437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13438
13439 # Handling of arguments.
13440 for ac_config_target in $ac_config_targets
13441 do
13442 case $ac_config_target in
13443 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13444 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13445 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13446 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13447
13448 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13449 esac
13450 done
13451
13452
13453 # If the user did not use the arguments to specify the items to instantiate,
13454 # then the envvar interface is used. Set only those that are not.
13455 # We use the long form for the default assignment because of an extremely
13456 # bizarre bug on SunOS 4.1.3.
13457 if $ac_need_defaults; then
13458 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13459 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13460 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13461 fi
13462
13463 # Have a temporary directory for convenience. Make it in the build tree
13464 # simply because there is no reason against having it here, and in addition,
13465 # creating and moving files from /tmp can sometimes cause problems.
13466 # Hook for its removal unless debugging.
13467 # Note that there is a small window in which the directory will not be cleaned:
13468 # after its creation but before its name has been assigned to `$tmp'.
13469 $debug ||
13470 {
13471 tmp= ac_tmp=
13472 trap 'exit_status=$?
13473 : "${ac_tmp:=$tmp}"
13474 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13475 ' 0
13476 trap 'as_fn_exit 1' 1 2 13 15
13477 }
13478 # Create a (secure) tmp directory for tmp files.
13479
13480 {
13481 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13482 test -d "$tmp"
13483 } ||
13484 {
13485 tmp=./conf$$-$RANDOM
13486 (umask 077 && mkdir "$tmp")
13487 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13488 ac_tmp=$tmp
13489
13490 # Set up the scripts for CONFIG_FILES section.
13491 # No need to generate them if there are no CONFIG_FILES.
13492 # This happens for instance with `./config.status config.h'.
13493 if test -n "$CONFIG_FILES"; then
13494
13495
13496 ac_cr=`echo X | tr X '\015'`
13497 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13498 # But we know of no other shell where ac_cr would be empty at this
13499 # point, so we can use a bashism as a fallback.
13500 if test "x$ac_cr" = x; then
13501 eval ac_cr=\$\'\\r\'
13502 fi
13503 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13504 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13505 ac_cs_awk_cr='\\r'
13506 else
13507 ac_cs_awk_cr=$ac_cr
13508 fi
13509
13510 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13511 _ACEOF
13512
13513
13514 {
13515 echo "cat >conf$$subs.awk <<_ACEOF" &&
13516 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13517 echo "_ACEOF"
13518 } >conf$$subs.sh ||
13519 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13520 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13521 ac_delim='%!_!# '
13522 for ac_last_try in false false false false false :; do
13523 . ./conf$$subs.sh ||
13524 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13525
13526 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13527 if test $ac_delim_n = $ac_delim_num; then
13528 break
13529 elif $ac_last_try; then
13530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13531 else
13532 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13533 fi
13534 done
13535 rm -f conf$$subs.sh
13536
13537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13538 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13539 _ACEOF
13540 sed -n '
13541 h
13542 s/^/S["/; s/!.*/"]=/
13543 p
13544 g
13545 s/^[^!]*!//
13546 :repl
13547 t repl
13548 s/'"$ac_delim"'$//
13549 t delim
13550 :nl
13551 h
13552 s/\(.\{148\}\)..*/\1/
13553 t more1
13554 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13555 p
13556 n
13557 b repl
13558 :more1
13559 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13560 p
13561 g
13562 s/.\{148\}//
13563 t nl
13564 :delim
13565 h
13566 s/\(.\{148\}\)..*/\1/
13567 t more2
13568 s/["\\]/\\&/g; s/^/"/; s/$/"/
13569 p
13570 b
13571 :more2
13572 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13573 p
13574 g
13575 s/.\{148\}//
13576 t delim
13577 ' <conf$$subs.awk | sed '
13578 /^[^""]/{
13579 N
13580 s/\n//
13581 }
13582 ' >>$CONFIG_STATUS || ac_write_fail=1
13583 rm -f conf$$subs.awk
13584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13585 _ACAWK
13586 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13587 for (key in S) S_is_set[key] = 1
13588 FS = "\a"
13589
13590 }
13591 {
13592 line = $ 0
13593 nfields = split(line, field, "@")
13594 substed = 0
13595 len = length(field[1])
13596 for (i = 2; i < nfields; i++) {
13597 key = field[i]
13598 keylen = length(key)
13599 if (S_is_set[key]) {
13600 value = S[key]
13601 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13602 len += length(value) + length(field[++i])
13603 substed = 1
13604 } else
13605 len += 1 + keylen
13606 }
13607
13608 print line
13609 }
13610
13611 _ACAWK
13612 _ACEOF
13613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13614 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13615 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13616 else
13617 cat
13618 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13619 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13620 _ACEOF
13621
13622 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13623 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13624 # trailing colons and then remove the whole line if VPATH becomes empty
13625 # (actually we leave an empty line to preserve line numbers).
13626 if test "x$srcdir" = x.; then
13627 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13628 h
13629 s///
13630 s/^/:/
13631 s/[ ]*$/:/
13632 s/:\$(srcdir):/:/g
13633 s/:\${srcdir}:/:/g
13634 s/:@srcdir@:/:/g
13635 s/^:*//
13636 s/:*$//
13637 x
13638 s/\(=[ ]*\).*/\1/
13639 G
13640 s/\n//
13641 s/^[^=]*=[ ]*$//
13642 }'
13643 fi
13644
13645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13646 fi # test -n "$CONFIG_FILES"
13647
13648 # Set up the scripts for CONFIG_HEADERS section.
13649 # No need to generate them if there are no CONFIG_HEADERS.
13650 # This happens for instance with `./config.status Makefile'.
13651 if test -n "$CONFIG_HEADERS"; then
13652 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13653 BEGIN {
13654 _ACEOF
13655
13656 # Transform confdefs.h into an awk script `defines.awk', embedded as
13657 # here-document in config.status, that substitutes the proper values into
13658 # config.h.in to produce config.h.
13659
13660 # Create a delimiter string that does not exist in confdefs.h, to ease
13661 # handling of long lines.
13662 ac_delim='%!_!# '
13663 for ac_last_try in false false :; do
13664 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13665 if test -z "$ac_tt"; then
13666 break
13667 elif $ac_last_try; then
13668 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13669 else
13670 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13671 fi
13672 done
13673
13674 # For the awk script, D is an array of macro values keyed by name,
13675 # likewise P contains macro parameters if any. Preserve backslash
13676 # newline sequences.
13677
13678 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13679 sed -n '
13680 s/.\{148\}/&'"$ac_delim"'/g
13681 t rset
13682 :rset
13683 s/^[ ]*#[ ]*define[ ][ ]*/ /
13684 t def
13685 d
13686 :def
13687 s/\\$//
13688 t bsnl
13689 s/["\\]/\\&/g
13690 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13691 D["\1"]=" \3"/p
13692 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13693 d
13694 :bsnl
13695 s/["\\]/\\&/g
13696 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13697 D["\1"]=" \3\\\\\\n"\\/p
13698 t cont
13699 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13700 t cont
13701 d
13702 :cont
13703 n
13704 s/.\{148\}/&'"$ac_delim"'/g
13705 t clear
13706 :clear
13707 s/\\$//
13708 t bsnlc
13709 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13710 d
13711 :bsnlc
13712 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13713 b cont
13714 ' <confdefs.h | sed '
13715 s/'"$ac_delim"'/"\\\
13716 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13717
13718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13719 for (key in D) D_is_set[key] = 1
13720 FS = "\a"
13721 }
13722 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13723 line = \$ 0
13724 split(line, arg, " ")
13725 if (arg[1] == "#") {
13726 defundef = arg[2]
13727 mac1 = arg[3]
13728 } else {
13729 defundef = substr(arg[1], 2)
13730 mac1 = arg[2]
13731 }
13732 split(mac1, mac2, "(") #)
13733 macro = mac2[1]
13734 prefix = substr(line, 1, index(line, defundef) - 1)
13735 if (D_is_set[macro]) {
13736 # Preserve the white space surrounding the "#".
13737 print prefix "define", macro P[macro] D[macro]
13738 next
13739 } else {
13740 # Replace #undef with comments. This is necessary, for example,
13741 # in the case of _POSIX_SOURCE, which is predefined and required
13742 # on some systems where configure will not decide to define it.
13743 if (defundef == "undef") {
13744 print "/*", prefix defundef, macro, "*/"
13745 next
13746 }
13747 }
13748 }
13749 { print }
13750 _ACAWK
13751 _ACEOF
13752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13753 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13754 fi # test -n "$CONFIG_HEADERS"
13755
13756
13757 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13758 shift
13759 for ac_tag
13760 do
13761 case $ac_tag in
13762 :[FHLC]) ac_mode=$ac_tag; continue;;
13763 esac
13764 case $ac_mode$ac_tag in
13765 :[FHL]*:*);;
13766 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13767 :[FH]-) ac_tag=-:-;;
13768 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13769 esac
13770 ac_save_IFS=$IFS
13771 IFS=:
13772 set x $ac_tag
13773 IFS=$ac_save_IFS
13774 shift
13775 ac_file=$1
13776 shift
13777
13778 case $ac_mode in
13779 :L) ac_source=$1;;
13780 :[FH])
13781 ac_file_inputs=
13782 for ac_f
13783 do
13784 case $ac_f in
13785 -) ac_f="$ac_tmp/stdin";;
13786 *) # Look for the file first in the build tree, then in the source tree
13787 # (if the path is not absolute). The absolute path cannot be DOS-style,
13788 # because $ac_f cannot contain `:'.
13789 test -f "$ac_f" ||
13790 case $ac_f in
13791 [\\/$]*) false;;
13792 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13793 esac ||
13794 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13795 esac
13796 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13797 as_fn_append ac_file_inputs " '$ac_f'"
13798 done
13799
13800 # Let's still pretend it is `configure' which instantiates (i.e., don't
13801 # use $as_me), people would be surprised to read:
13802 # /* config.h. Generated by config.status. */
13803 configure_input='Generated from '`
13804 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13805 `' by configure.'
13806 if test x"$ac_file" != x-; then
13807 configure_input="$ac_file. $configure_input"
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13809 $as_echo "$as_me: creating $ac_file" >&6;}
13810 fi
13811 # Neutralize special characters interpreted by sed in replacement strings.
13812 case $configure_input in #(
13813 *\&* | *\|* | *\\* )
13814 ac_sed_conf_input=`$as_echo "$configure_input" |
13815 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13816 *) ac_sed_conf_input=$configure_input;;
13817 esac
13818
13819 case $ac_tag in
13820 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13821 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13822 esac
13823 ;;
13824 esac
13825
13826 ac_dir=`$as_dirname -- "$ac_file" ||
13827 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13828 X"$ac_file" : 'X\(//\)[^/]' \| \
13829 X"$ac_file" : 'X\(//\)$' \| \
13830 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13831 $as_echo X"$ac_file" |
13832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13833 s//\1/
13834 q
13835 }
13836 /^X\(\/\/\)[^/].*/{
13837 s//\1/
13838 q
13839 }
13840 /^X\(\/\/\)$/{
13841 s//\1/
13842 q
13843 }
13844 /^X\(\/\).*/{
13845 s//\1/
13846 q
13847 }
13848 s/.*/./; q'`
13849 as_dir="$ac_dir"; as_fn_mkdir_p
13850 ac_builddir=.
13851
13852 case "$ac_dir" in
13853 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13854 *)
13855 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13856 # A ".." for each directory in $ac_dir_suffix.
13857 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13858 case $ac_top_builddir_sub in
13859 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13860 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13861 esac ;;
13862 esac
13863 ac_abs_top_builddir=$ac_pwd
13864 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13865 # for backward compatibility:
13866 ac_top_builddir=$ac_top_build_prefix
13867
13868 case $srcdir in
13869 .) # We are building in place.
13870 ac_srcdir=.
13871 ac_top_srcdir=$ac_top_builddir_sub
13872 ac_abs_top_srcdir=$ac_pwd ;;
13873 [\\/]* | ?:[\\/]* ) # Absolute name.
13874 ac_srcdir=$srcdir$ac_dir_suffix;
13875 ac_top_srcdir=$srcdir
13876 ac_abs_top_srcdir=$srcdir ;;
13877 *) # Relative name.
13878 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13879 ac_top_srcdir=$ac_top_build_prefix$srcdir
13880 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13881 esac
13882 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13883
13884
13885 case $ac_mode in
13886 :F)
13887 #
13888 # CONFIG_FILE
13889 #
13890
13891 case $INSTALL in
13892 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13893 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13894 esac
13895 ac_MKDIR_P=$MKDIR_P
13896 case $MKDIR_P in
13897 [\\/$]* | ?:[\\/]* ) ;;
13898 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13899 esac
13900 _ACEOF
13901
13902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13903 # If the template does not know about datarootdir, expand it.
13904 # FIXME: This hack should be removed a few years after 2.60.
13905 ac_datarootdir_hack=; ac_datarootdir_seen=
13906 ac_sed_dataroot='
13907 /datarootdir/ {
13908 p
13909 q
13910 }
13911 /@datadir@/p
13912 /@docdir@/p
13913 /@infodir@/p
13914 /@localedir@/p
13915 /@mandir@/p'
13916 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13917 *datarootdir*) ac_datarootdir_seen=yes;;
13918 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13920 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13921 _ACEOF
13922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13923 ac_datarootdir_hack='
13924 s&@datadir@&$datadir&g
13925 s&@docdir@&$docdir&g
13926 s&@infodir@&$infodir&g
13927 s&@localedir@&$localedir&g
13928 s&@mandir@&$mandir&g
13929 s&\\\${datarootdir}&$datarootdir&g' ;;
13930 esac
13931 _ACEOF
13932
13933 # Neutralize VPATH when `$srcdir' = `.'.
13934 # Shell code in configure.ac might set extrasub.
13935 # FIXME: do we really want to maintain this feature?
13936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13937 ac_sed_extra="$ac_vpsub
13938 $extrasub
13939 _ACEOF
13940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13941 :t
13942 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13943 s|@configure_input@|$ac_sed_conf_input|;t t
13944 s&@top_builddir@&$ac_top_builddir_sub&;t t
13945 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13946 s&@srcdir@&$ac_srcdir&;t t
13947 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13948 s&@top_srcdir@&$ac_top_srcdir&;t t
13949 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13950 s&@builddir@&$ac_builddir&;t t
13951 s&@abs_builddir@&$ac_abs_builddir&;t t
13952 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13953 s&@INSTALL@&$ac_INSTALL&;t t
13954 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13955 $ac_datarootdir_hack
13956 "
13957 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13958 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13959
13960 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13961 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13962 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13963 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13965 which seems to be undefined. Please make sure it is defined" >&5
13966 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13967 which seems to be undefined. Please make sure it is defined" >&2;}
13968
13969 rm -f "$ac_tmp/stdin"
13970 case $ac_file in
13971 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13972 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13973 esac \
13974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13975 ;;
13976 :H)
13977 #
13978 # CONFIG_HEADER
13979 #
13980 if test x"$ac_file" != x-; then
13981 {
13982 $as_echo "/* $configure_input */" \
13983 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13984 } >"$ac_tmp/config.h" \
13985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13986 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13988 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13989 else
13990 rm -f "$ac_file"
13991 mv "$ac_tmp/config.h" "$ac_file" \
13992 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13993 fi
13994 else
13995 $as_echo "/* $configure_input */" \
13996 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13997 || as_fn_error $? "could not create -" "$LINENO" 5
13998 fi
13999 # Compute "$ac_file"'s index in $config_headers.
14000 _am_arg="$ac_file"
14001 _am_stamp_count=1
14002 for _am_header in $config_headers :; do
14003 case $_am_header in
14004 $_am_arg | $_am_arg:* )
14005 break ;;
14006 * )
14007 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14008 esac
14009 done
14010 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14011 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14012 X"$_am_arg" : 'X\(//\)[^/]' \| \
14013 X"$_am_arg" : 'X\(//\)$' \| \
14014 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14015 $as_echo X"$_am_arg" |
14016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14017 s//\1/
14018 q
14019 }
14020 /^X\(\/\/\)[^/].*/{
14021 s//\1/
14022 q
14023 }
14024 /^X\(\/\/\)$/{
14025 s//\1/
14026 q
14027 }
14028 /^X\(\/\).*/{
14029 s//\1/
14030 q
14031 }
14032 s/.*/./; q'`/stamp-h$_am_stamp_count
14033 ;;
14034
14035 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14036 $as_echo "$as_me: executing $ac_file commands" >&6;}
14037 ;;
14038 esac
14039
14040
14041 case $ac_file$ac_mode in
14042 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14043 # Older Autoconf quotes --file arguments for eval, but not when files
14044 # are listed without --file. Let's play safe and only enable the eval
14045 # if we detect the quoting.
14046 case $CONFIG_FILES in
14047 *\'*) eval set x "$CONFIG_FILES" ;;
14048 *) set x $CONFIG_FILES ;;
14049 esac
14050 shift
14051 for mf
14052 do
14053 # Strip MF so we end up with the name of the file.
14054 mf=`echo "$mf" | sed -e 's/:.*$//'`
14055 # Check whether this is an Automake generated Makefile or not.
14056 # We used to match only the files named 'Makefile.in', but
14057 # some people rename them; so instead we look at the file content.
14058 # Grep'ing the first line is not enough: some people post-process
14059 # each Makefile.in and add a new line on top of each file to say so.
14060 # Grep'ing the whole file is not good either: AIX grep has a line
14061 # limit of 2048, but all sed's we know have understand at least 4000.
14062 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14063 dirpart=`$as_dirname -- "$mf" ||
14064 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14065 X"$mf" : 'X\(//\)[^/]' \| \
14066 X"$mf" : 'X\(//\)$' \| \
14067 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14068 $as_echo X"$mf" |
14069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14070 s//\1/
14071 q
14072 }
14073 /^X\(\/\/\)[^/].*/{
14074 s//\1/
14075 q
14076 }
14077 /^X\(\/\/\)$/{
14078 s//\1/
14079 q
14080 }
14081 /^X\(\/\).*/{
14082 s//\1/
14083 q
14084 }
14085 s/.*/./; q'`
14086 else
14087 continue
14088 fi
14089 # Extract the definition of DEPDIR, am__include, and am__quote
14090 # from the Makefile without running 'make'.
14091 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14092 test -z "$DEPDIR" && continue
14093 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14094 test -z "$am__include" && continue
14095 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14096 # Find all dependency output files, they are included files with
14097 # $(DEPDIR) in their names. We invoke sed twice because it is the
14098 # simplest approach to changing $(DEPDIR) to its actual value in the
14099 # expansion.
14100 for file in `sed -n "
14101 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14102 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14103 # Make sure the directory exists.
14104 test -f "$dirpart/$file" && continue
14105 fdir=`$as_dirname -- "$file" ||
14106 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14107 X"$file" : 'X\(//\)[^/]' \| \
14108 X"$file" : 'X\(//\)$' \| \
14109 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14110 $as_echo X"$file" |
14111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14112 s//\1/
14113 q
14114 }
14115 /^X\(\/\/\)[^/].*/{
14116 s//\1/
14117 q
14118 }
14119 /^X\(\/\/\)$/{
14120 s//\1/
14121 q
14122 }
14123 /^X\(\/\).*/{
14124 s//\1/
14125 q
14126 }
14127 s/.*/./; q'`
14128 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14129 # echo "creating $dirpart/$file"
14130 echo '# dummy' > "$dirpart/$file"
14131 done
14132 done
14133 }
14134 ;;
14135 "libtool":C)
14136
14137 # See if we are running on zsh, and set the options which allow our
14138 # commands through without removal of \ escapes.
14139 if test -n "${ZSH_VERSION+set}" ; then
14140 setopt NO_GLOB_SUBST
14141 fi
14142
14143 cfgfile="${ofile}T"
14144 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14145 $RM "$cfgfile"
14146
14147 cat <<_LT_EOF >> "$cfgfile"
14148 #! $SHELL
14149
14150 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14151 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14152 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14153 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14154 #
14155 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14156 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14157 # Foundation, Inc.
14158 # Written by Gordon Matzigkeit, 1996
14159 #
14160 # This file is part of GNU Libtool.
14161 #
14162 # GNU Libtool is free software; you can redistribute it and/or
14163 # modify it under the terms of the GNU General Public License as
14164 # published by the Free Software Foundation; either version 2 of
14165 # the License, or (at your option) any later version.
14166 #
14167 # As a special exception to the GNU General Public License,
14168 # if you distribute this file as part of a program or library that
14169 # is built using GNU Libtool, you may include this file under the
14170 # same distribution terms that you use for the rest of that program.
14171 #
14172 # GNU Libtool is distributed in the hope that it will be useful,
14173 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14174 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14175 # GNU General Public License for more details.
14176 #
14177 # You should have received a copy of the GNU General Public License
14178 # along with GNU Libtool; see the file COPYING. If not, a copy
14179 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14180 # obtained by writing to the Free Software Foundation, Inc.,
14181 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14182
14183
14184 # The names of the tagged configurations supported by this script.
14185 available_tags=""
14186
14187 # ### BEGIN LIBTOOL CONFIG
14188
14189 # Which release of libtool.m4 was used?
14190 macro_version=$macro_version
14191 macro_revision=$macro_revision
14192
14193 # Whether or not to build shared libraries.
14194 build_libtool_libs=$enable_shared
14195
14196 # Whether or not to build static libraries.
14197 build_old_libs=$enable_static
14198
14199 # What type of objects to build.
14200 pic_mode=$pic_mode
14201
14202 # Whether or not to optimize for fast installation.
14203 fast_install=$enable_fast_install
14204
14205 # Shell to use when invoking shell scripts.
14206 SHELL=$lt_SHELL
14207
14208 # An echo program that protects backslashes.
14209 ECHO=$lt_ECHO
14210
14211 # The PATH separator for the build system.
14212 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14213
14214 # The host system.
14215 host_alias=$host_alias
14216 host=$host
14217 host_os=$host_os
14218
14219 # The build system.
14220 build_alias=$build_alias
14221 build=$build
14222 build_os=$build_os
14223
14224 # A sed program that does not truncate output.
14225 SED=$lt_SED
14226
14227 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14228 Xsed="\$SED -e 1s/^X//"
14229
14230 # A grep program that handles long lines.
14231 GREP=$lt_GREP
14232
14233 # An ERE matcher.
14234 EGREP=$lt_EGREP
14235
14236 # A literal string matcher.
14237 FGREP=$lt_FGREP
14238
14239 # A BSD- or MS-compatible name lister.
14240 NM=$lt_NM
14241
14242 # Whether we need soft or hard links.
14243 LN_S=$lt_LN_S
14244
14245 # What is the maximum length of a command?
14246 max_cmd_len=$max_cmd_len
14247
14248 # Object file suffix (normally "o").
14249 objext=$ac_objext
14250
14251 # Executable file suffix (normally "").
14252 exeext=$exeext
14253
14254 # whether the shell understands "unset".
14255 lt_unset=$lt_unset
14256
14257 # turn spaces into newlines.
14258 SP2NL=$lt_lt_SP2NL
14259
14260 # turn newlines into spaces.
14261 NL2SP=$lt_lt_NL2SP
14262
14263 # convert \$build file names to \$host format.
14264 to_host_file_cmd=$lt_cv_to_host_file_cmd
14265
14266 # convert \$build files to toolchain format.
14267 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14268
14269 # An object symbol dumper.
14270 OBJDUMP=$lt_OBJDUMP
14271
14272 # Method to check whether dependent libraries are shared objects.
14273 deplibs_check_method=$lt_deplibs_check_method
14274
14275 # Command to use when deplibs_check_method = "file_magic".
14276 file_magic_cmd=$lt_file_magic_cmd
14277
14278 # How to find potential files when deplibs_check_method = "file_magic".
14279 file_magic_glob=$lt_file_magic_glob
14280
14281 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14282 want_nocaseglob=$lt_want_nocaseglob
14283
14284 # DLL creation program.
14285 DLLTOOL=$lt_DLLTOOL
14286
14287 # Command to associate shared and link libraries.
14288 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14289
14290 # The archiver.
14291 AR=$lt_AR
14292
14293 # Flags to create an archive.
14294 AR_FLAGS=$lt_AR_FLAGS
14295
14296 # How to feed a file listing to the archiver.
14297 archiver_list_spec=$lt_archiver_list_spec
14298
14299 # A symbol stripping program.
14300 STRIP=$lt_STRIP
14301
14302 # Commands used to install an old-style archive.
14303 RANLIB=$lt_RANLIB
14304 old_postinstall_cmds=$lt_old_postinstall_cmds
14305 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14306
14307 # Whether to use a lock for old archive extraction.
14308 lock_old_archive_extraction=$lock_old_archive_extraction
14309
14310 # A C compiler.
14311 LTCC=$lt_CC
14312
14313 # LTCC compiler flags.
14314 LTCFLAGS=$lt_CFLAGS
14315
14316 # Take the output of nm and produce a listing of raw symbols and C names.
14317 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14318
14319 # Transform the output of nm in a proper C declaration.
14320 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14321
14322 # Transform the output of nm in a C name address pair.
14323 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14324
14325 # Transform the output of nm in a C name address pair when lib prefix is needed.
14326 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14327
14328 # Specify filename containing input files for \$NM.
14329 nm_file_list_spec=$lt_nm_file_list_spec
14330
14331 # The root where to search for dependent libraries,and in which our libraries should be installed.
14332 lt_sysroot=$lt_sysroot
14333
14334 # The name of the directory that contains temporary libtool files.
14335 objdir=$objdir
14336
14337 # Used to examine libraries when file_magic_cmd begins with "file".
14338 MAGIC_CMD=$MAGIC_CMD
14339
14340 # Must we lock files when doing compilation?
14341 need_locks=$lt_need_locks
14342
14343 # Manifest tool.
14344 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14345
14346 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14347 DSYMUTIL=$lt_DSYMUTIL
14348
14349 # Tool to change global to local symbols on Mac OS X.
14350 NMEDIT=$lt_NMEDIT
14351
14352 # Tool to manipulate fat objects and archives on Mac OS X.
14353 LIPO=$lt_LIPO
14354
14355 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14356 OTOOL=$lt_OTOOL
14357
14358 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14359 OTOOL64=$lt_OTOOL64
14360
14361 # Old archive suffix (normally "a").
14362 libext=$libext
14363
14364 # Shared library suffix (normally ".so").
14365 shrext_cmds=$lt_shrext_cmds
14366
14367 # The commands to extract the exported symbol list from a shared archive.
14368 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14369
14370 # Variables whose values should be saved in libtool wrapper scripts and
14371 # restored at link time.
14372 variables_saved_for_relink=$lt_variables_saved_for_relink
14373
14374 # Do we need the "lib" prefix for modules?
14375 need_lib_prefix=$need_lib_prefix
14376
14377 # Do we need a version for libraries?
14378 need_version=$need_version
14379
14380 # Library versioning type.
14381 version_type=$version_type
14382
14383 # Shared library runtime path variable.
14384 runpath_var=$runpath_var
14385
14386 # Shared library path variable.
14387 shlibpath_var=$shlibpath_var
14388
14389 # Is shlibpath searched before the hard-coded library search path?
14390 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14391
14392 # Format of library name prefix.
14393 libname_spec=$lt_libname_spec
14394
14395 # List of archive names. First name is the real one, the rest are links.
14396 # The last name is the one that the linker finds with -lNAME
14397 library_names_spec=$lt_library_names_spec
14398
14399 # The coded name of the library, if different from the real name.
14400 soname_spec=$lt_soname_spec
14401
14402 # Permission mode override for installation of shared libraries.
14403 install_override_mode=$lt_install_override_mode
14404
14405 # Command to use after installation of a shared archive.
14406 postinstall_cmds=$lt_postinstall_cmds
14407
14408 # Command to use after uninstallation of a shared archive.
14409 postuninstall_cmds=$lt_postuninstall_cmds
14410
14411 # Commands used to finish a libtool library installation in a directory.
14412 finish_cmds=$lt_finish_cmds
14413
14414 # As "finish_cmds", except a single script fragment to be evaled but
14415 # not shown.
14416 finish_eval=$lt_finish_eval
14417
14418 # Whether we should hardcode library paths into libraries.
14419 hardcode_into_libs=$hardcode_into_libs
14420
14421 # Compile-time system search path for libraries.
14422 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14423
14424 # Run-time system search path for libraries.
14425 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
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 case $host_os in
14577 aix3*)
14578 cat <<\_LT_EOF >> "$cfgfile"
14579 # AIX sometimes has problems with the GCC collect2 program. For some
14580 # reason, if we set the COLLECT_NAMES environment variable, the problems
14581 # vanish in a puff of smoke.
14582 if test "X${COLLECT_NAMES+set}" != Xset; then
14583 COLLECT_NAMES=
14584 export COLLECT_NAMES
14585 fi
14586 _LT_EOF
14587 ;;
14588 esac
14589
14590
14591 ltmain="$ac_aux_dir/ltmain.sh"
14592
14593
14594 # We use sed instead of cat because bash on DJGPP gets confused if
14595 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14596 # text mode, it properly converts lines to CR/LF. This bash problem
14597 # is reportedly fixed, but why not run on old versions too?
14598 sed '$q' "$ltmain" >> "$cfgfile" \
14599 || (rm -f "$cfgfile"; exit 1)
14600
14601 if test x"$xsi_shell" = xyes; then
14602 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14603 func_dirname ()\
14604 {\
14605 \ case ${1} in\
14606 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14607 \ * ) func_dirname_result="${3}" ;;\
14608 \ esac\
14609 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14610 && mv -f "$cfgfile.tmp" "$cfgfile" \
14611 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14612 test 0 -eq $? || _lt_function_replace_fail=:
14613
14614
14615 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14616 func_basename ()\
14617 {\
14618 \ func_basename_result="${1##*/}"\
14619 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14620 && mv -f "$cfgfile.tmp" "$cfgfile" \
14621 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14622 test 0 -eq $? || _lt_function_replace_fail=:
14623
14624
14625 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14626 func_dirname_and_basename ()\
14627 {\
14628 \ case ${1} in\
14629 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14630 \ * ) func_dirname_result="${3}" ;;\
14631 \ esac\
14632 \ func_basename_result="${1##*/}"\
14633 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14634 && mv -f "$cfgfile.tmp" "$cfgfile" \
14635 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14636 test 0 -eq $? || _lt_function_replace_fail=:
14637
14638
14639 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14640 func_stripname ()\
14641 {\
14642 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14643 \ # positional parameters, so assign one to ordinary parameter first.\
14644 \ func_stripname_result=${3}\
14645 \ func_stripname_result=${func_stripname_result#"${1}"}\
14646 \ func_stripname_result=${func_stripname_result%"${2}"}\
14647 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14648 && mv -f "$cfgfile.tmp" "$cfgfile" \
14649 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14650 test 0 -eq $? || _lt_function_replace_fail=:
14651
14652
14653 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14654 func_split_long_opt ()\
14655 {\
14656 \ func_split_long_opt_name=${1%%=*}\
14657 \ func_split_long_opt_arg=${1#*=}\
14658 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14659 && mv -f "$cfgfile.tmp" "$cfgfile" \
14660 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14661 test 0 -eq $? || _lt_function_replace_fail=:
14662
14663
14664 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14665 func_split_short_opt ()\
14666 {\
14667 \ func_split_short_opt_arg=${1#??}\
14668 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14669 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14670 && mv -f "$cfgfile.tmp" "$cfgfile" \
14671 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14672 test 0 -eq $? || _lt_function_replace_fail=:
14673
14674
14675 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14676 func_lo2o ()\
14677 {\
14678 \ case ${1} in\
14679 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14680 \ *) func_lo2o_result=${1} ;;\
14681 \ esac\
14682 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14683 && mv -f "$cfgfile.tmp" "$cfgfile" \
14684 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14685 test 0 -eq $? || _lt_function_replace_fail=:
14686
14687
14688 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14689 func_xform ()\
14690 {\
14691 func_xform_result=${1%.*}.lo\
14692 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14693 && mv -f "$cfgfile.tmp" "$cfgfile" \
14694 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14695 test 0 -eq $? || _lt_function_replace_fail=:
14696
14697
14698 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14699 func_arith ()\
14700 {\
14701 func_arith_result=$(( $* ))\
14702 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14703 && mv -f "$cfgfile.tmp" "$cfgfile" \
14704 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14705 test 0 -eq $? || _lt_function_replace_fail=:
14706
14707
14708 sed -e '/^func_len ()$/,/^} # func_len /c\
14709 func_len ()\
14710 {\
14711 func_len_result=${#1}\
14712 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14713 && mv -f "$cfgfile.tmp" "$cfgfile" \
14714 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14715 test 0 -eq $? || _lt_function_replace_fail=:
14716
14717 fi
14718
14719 if test x"$lt_shell_append" = xyes; then
14720 sed -e '/^func_append ()$/,/^} # func_append /c\
14721 func_append ()\
14722 {\
14723 eval "${1}+=\\${2}"\
14724 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14725 && mv -f "$cfgfile.tmp" "$cfgfile" \
14726 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14727 test 0 -eq $? || _lt_function_replace_fail=:
14728
14729
14730 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14731 func_append_quoted ()\
14732 {\
14733 \ func_quote_for_eval "${2}"\
14734 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14735 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14736 && mv -f "$cfgfile.tmp" "$cfgfile" \
14737 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14738 test 0 -eq $? || _lt_function_replace_fail=:
14739
14740
14741 # Save a `func_append' function call where possible by direct use of '+='
14742 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14743 && mv -f "$cfgfile.tmp" "$cfgfile" \
14744 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14745 test 0 -eq $? || _lt_function_replace_fail=:
14746 else
14747 # Save a `func_append' function call even when '+=' is not available
14748 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14749 && mv -f "$cfgfile.tmp" "$cfgfile" \
14750 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14751 test 0 -eq $? || _lt_function_replace_fail=:
14752 fi
14753
14754 if test x"$_lt_function_replace_fail" = x":"; then
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14756 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14757 fi
14758
14759
14760 mv -f "$cfgfile" "$ofile" ||
14761 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14762 chmod +x "$ofile"
14763
14764 ;;
14765
14766 esac
14767 done # for ac_tag
14768
14769
14770 as_fn_exit 0
14771 _ACEOF
14772 ac_clean_files=$ac_clean_files_save
14773
14774 test $ac_write_fail = 0 ||
14775 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14776
14777
14778 # configure is writing to config.log, and then calls config.status.
14779 # config.status does its own redirection, appending to config.log.
14780 # Unfortunately, on DOS this fails, as config.log is still kept open
14781 # by configure, so config.status won't be able to write to it; its
14782 # output is simply discarded. So we exec the FD to /dev/null,
14783 # effectively closing config.log, so it can be properly (re)opened and
14784 # appended to by config.status. When coming back to configure, we
14785 # need to make the FD available again.
14786 if test "$no_create" != yes; then
14787 ac_cs_success=:
14788 ac_config_status_args=
14789 test "$silent" = yes &&
14790 ac_config_status_args="$ac_config_status_args --quiet"
14791 exec 5>/dev/null
14792 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14793 exec 5>>config.log
14794 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14795 # would make configure fail if this is the last instruction.
14796 $ac_cs_success || as_fn_exit 1
14797 fi
14798 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14800 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14801 fi
14802