Import Upstream version 0.66.4
[hcoop/debian/courier-authlib.git] / userdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libuserdb 0.10.
4 #
5 # Report bugs to <courier-users@lists.sourceforge.net>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: courier-users@lists.sourceforge.net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libuserdb'
592 PACKAGE_TARNAME='libuserdb'
593 PACKAGE_VERSION='0.10'
594 PACKAGE_STRING='libuserdb 0.10'
595 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
596 PACKAGE_URL=''
597
598 ac_unique_file="userdb.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 HAVE_SGML_FALSE
640 HAVE_SGML_TRUE
641 CRYPTLIBS
642 HMACLIB
643 SHA1LIB
644 MD5LIB
645 makedat
646 tmpdir
647 userdbtmpdir
648 USERDB
649 userdb
650 PERL
651 CPP
652 LT_SYS_LIBRARY_PATH
653 OTOOL64
654 OTOOL
655 LIPO
656 NMEDIT
657 DSYMUTIL
658 MANIFEST_TOOL
659 RANLIB
660 ac_ct_AR
661 AR
662 DLLTOOL
663 OBJDUMP
664 NM
665 ac_ct_DUMPBIN
666 DUMPBIN
667 LD
668 FGREP
669 EGREP
670 GREP
671 SED
672 host_os
673 host_vendor
674 host_cpu
675 host
676 build_os
677 build_vendor
678 build_cpu
679 build
680 LIBTOOL
681 LN_S
682 am__fastdepCC_FALSE
683 am__fastdepCC_TRUE
684 CCDEPMODE
685 am__nodep
686 AMDEPBACKSLASH
687 AMDEP_FALSE
688 AMDEP_TRUE
689 am__quote
690 am__include
691 DEPDIR
692 OBJEXT
693 EXEEXT
694 ac_ct_CC
695 CPPFLAGS
696 LDFLAGS
697 CFLAGS
698 CC
699 AM_BACKSLASH
700 AM_DEFAULT_VERBOSITY
701 AM_DEFAULT_V
702 AM_V
703 am__untar
704 am__tar
705 AMTAR
706 am__leading_dot
707 SET_MAKE
708 AWK
709 mkdir_p
710 MKDIR_P
711 INSTALL_STRIP_PROGRAM
712 STRIP
713 install_sh
714 MAKEINFO
715 AUTOHEADER
716 AUTOMAKE
717 AUTOCONF
718 ACLOCAL
719 VERSION
720 PACKAGE
721 CYGPATH_W
722 am__isrc
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL'
764 ac_subst_files=''
765 ac_user_opts='
766 enable_option_checking
767 enable_silent_rules
768 enable_dependency_tracking
769 enable_shared
770 enable_static
771 with_pic
772 enable_fast_install
773 with_aix_soname
774 with_gnu_ld
775 with_sysroot
776 enable_libtool_lock
777 with_userdb
778 with_userdbmandir
779 with_userdbtmpdir
780 with_makedatprog
781 enable_largefile
782 with_random
783 '
784 ac_precious_vars='build_alias
785 host_alias
786 target_alias
787 CC
788 CFLAGS
789 LDFLAGS
790 LIBS
791 CPPFLAGS
792 LT_SYS_LIBRARY_PATH
793 CPP'
794
795
796 # Initialize some variables set by options.
797 ac_init_help=
798 ac_init_version=false
799 ac_unrecognized_opts=
800 ac_unrecognized_sep=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
803 cache_file=/dev/null
804 exec_prefix=NONE
805 no_create=
806 no_recursion=
807 prefix=NONE
808 program_prefix=NONE
809 program_suffix=NONE
810 program_transform_name=s,x,x,
811 silent=
812 site=
813 srcdir=
814 verbose=
815 x_includes=NONE
816 x_libraries=NONE
817
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835 infodir='${datarootdir}/info'
836 htmldir='${docdir}'
837 dvidir='${docdir}'
838 pdfdir='${docdir}'
839 psdir='${docdir}'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
843
844 ac_prev=
845 ac_dashdash=
846 for ac_option
847 do
848 # If the previous option needs an argument, assign it.
849 if test -n "$ac_prev"; then
850 eval $ac_prev=\$ac_option
851 ac_prev=
852 continue
853 fi
854
855 case $ac_option in
856 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 *=) ac_optarg= ;;
858 *) ac_optarg=yes ;;
859 esac
860
861 # Accept the important Cygnus configure options, so we can diagnose typos.
862
863 case $ac_dashdash$ac_option in
864 --)
865 ac_dashdash=yes ;;
866
867 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 ac_prev=bindir ;;
869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870 bindir=$ac_optarg ;;
871
872 -build | --build | --buil | --bui | --bu)
873 ac_prev=build_alias ;;
874 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875 build_alias=$ac_optarg ;;
876
877 -cache-file | --cache-file | --cache-fil | --cache-fi \
878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879 ac_prev=cache_file ;;
880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882 cache_file=$ac_optarg ;;
883
884 --config-cache | -C)
885 cache_file=config.cache ;;
886
887 -datadir | --datadir | --datadi | --datad)
888 ac_prev=datadir ;;
889 -datadir=* | --datadir=* | --datadi=* | --datad=*)
890 datadir=$ac_optarg ;;
891
892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893 | --dataroo | --dataro | --datar)
894 ac_prev=datarootdir ;;
895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897 datarootdir=$ac_optarg ;;
898
899 -disable-* | --disable-*)
900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error $? "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
907 *"
908 "enable_$ac_useropt"
909 "*) ;;
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
912 esac
913 eval enable_$ac_useropt=no ;;
914
915 -docdir | --docdir | --docdi | --doc | --do)
916 ac_prev=docdir ;;
917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 docdir=$ac_optarg ;;
919
920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 ac_prev=dvidir ;;
922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 dvidir=$ac_optarg ;;
924
925 -enable-* | --enable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=\$ac_optarg ;;
940
941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943 | --exec | --exe | --ex)
944 ac_prev=exec_prefix ;;
945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947 | --exec=* | --exe=* | --ex=*)
948 exec_prefix=$ac_optarg ;;
949
950 -gas | --gas | --ga | --g)
951 # Obsolete; use --with-gas.
952 with_gas=yes ;;
953
954 -help | --help | --hel | --he | -h)
955 ac_init_help=long ;;
956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957 ac_init_help=recursive ;;
958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959 ac_init_help=short ;;
960
961 -host | --host | --hos | --ho)
962 ac_prev=host_alias ;;
963 -host=* | --host=* | --hos=* | --ho=*)
964 host_alias=$ac_optarg ;;
965
966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967 ac_prev=htmldir ;;
968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969 | --ht=*)
970 htmldir=$ac_optarg ;;
971
972 -includedir | --includedir | --includedi | --included | --include \
973 | --includ | --inclu | --incl | --inc)
974 ac_prev=includedir ;;
975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976 | --includ=* | --inclu=* | --incl=* | --inc=*)
977 includedir=$ac_optarg ;;
978
979 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 ac_prev=infodir ;;
981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982 infodir=$ac_optarg ;;
983
984 -libdir | --libdir | --libdi | --libd)
985 ac_prev=libdir ;;
986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
987 libdir=$ac_optarg ;;
988
989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990 | --libexe | --libex | --libe)
991 ac_prev=libexecdir ;;
992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993 | --libexe=* | --libex=* | --libe=*)
994 libexecdir=$ac_optarg ;;
995
996 -localedir | --localedir | --localedi | --localed | --locale)
997 ac_prev=localedir ;;
998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999 localedir=$ac_optarg ;;
1000
1001 -localstatedir | --localstatedir | --localstatedi | --localstated \
1002 | --localstate | --localstat | --localsta | --localst | --locals)
1003 ac_prev=localstatedir ;;
1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006 localstatedir=$ac_optarg ;;
1007
1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 ac_prev=mandir ;;
1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011 mandir=$ac_optarg ;;
1012
1013 -nfp | --nfp | --nf)
1014 # Obsolete; use --without-fp.
1015 with_fp=no ;;
1016
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018 | --no-cr | --no-c | -n)
1019 no_create=yes ;;
1020
1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023 no_recursion=yes ;;
1024
1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027 | --oldin | --oldi | --old | --ol | --o)
1028 ac_prev=oldincludedir ;;
1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032 oldincludedir=$ac_optarg ;;
1033
1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 ac_prev=prefix ;;
1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037 prefix=$ac_optarg ;;
1038
1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040 | --program-pre | --program-pr | --program-p)
1041 ac_prev=program_prefix ;;
1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044 program_prefix=$ac_optarg ;;
1045
1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047 | --program-suf | --program-su | --program-s)
1048 ac_prev=program_suffix ;;
1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051 program_suffix=$ac_optarg ;;
1052
1053 -program-transform-name | --program-transform-name \
1054 | --program-transform-nam | --program-transform-na \
1055 | --program-transform-n | --program-transform- \
1056 | --program-transform | --program-transfor \
1057 | --program-transfo | --program-transf \
1058 | --program-trans | --program-tran \
1059 | --progr-tra | --program-tr | --program-t)
1060 ac_prev=program_transform_name ;;
1061 -program-transform-name=* | --program-transform-name=* \
1062 | --program-transform-nam=* | --program-transform-na=* \
1063 | --program-transform-n=* | --program-transform-=* \
1064 | --program-transform=* | --program-transfor=* \
1065 | --program-transfo=* | --program-transf=* \
1066 | --program-trans=* | --program-tran=* \
1067 | --progr-tra=* | --program-tr=* | --program-t=*)
1068 program_transform_name=$ac_optarg ;;
1069
1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 ac_prev=pdfdir ;;
1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073 pdfdir=$ac_optarg ;;
1074
1075 -psdir | --psdir | --psdi | --psd | --ps)
1076 ac_prev=psdir ;;
1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078 psdir=$ac_optarg ;;
1079
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 silent=yes ;;
1083
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 ac_prev=sbindir ;;
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 | --sbi=* | --sb=*)
1088 sbindir=$ac_optarg ;;
1089
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1093 | --sha | --sh)
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 | --sha=* | --sh=*)
1099 sharedstatedir=$ac_optarg ;;
1100
1101 -site | --site | --sit)
1102 ac_prev=site ;;
1103 -site=* | --site=* | --sit=*)
1104 site=$ac_optarg ;;
1105
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 ac_prev=srcdir ;;
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109 srcdir=$ac_optarg ;;
1110
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116 sysconfdir=$ac_optarg ;;
1117
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
1119 ac_prev=target_alias ;;
1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121 target_alias=$ac_optarg ;;
1122
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 verbose=yes ;;
1125
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
1128
1129 -with-* | --with-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=\$ac_optarg ;;
1144
1145 -without-* | --without-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1153 *"
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=no ;;
1160
1161 --x)
1162 # Obsolete; use --with-x.
1163 with_x=yes ;;
1164
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170 x_includes=$ac_optarg ;;
1171
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177 x_libraries=$ac_optarg ;;
1178
1179 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information"
1181 ;;
1182
1183 *=*)
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
1186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
1188 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189 esac
1190 eval $ac_envvar=\$ac_optarg
1191 export $ac_envvar ;;
1192
1193 *)
1194 # FIXME: should be removed in autoconf 3.0.
1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1199 ;;
1200
1201 esac
1202 done
1203
1204 if test -n "$ac_prev"; then
1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206 as_fn_error $? "missing argument to $ac_option"
1207 fi
1208
1209 if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1211 no) ;;
1212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214 esac
1215 fi
1216
1217 # Check all directory arguments for consistency.
1218 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
1222 do
1223 eval ac_val=\$$ac_var
1224 # Remove trailing slashes.
1225 case $ac_val in
1226 */ )
1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228 eval $ac_var=\$ac_val;;
1229 esac
1230 # Be sure to have absolute directory names.
1231 case $ac_val in
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234 esac
1235 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1236 done
1237
1238 # There might be people who depend on the old broken behavior: `$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1241 build=$build_alias
1242 host=$host_alias
1243 target=$target_alias
1244
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
1249 elif test "x$build_alias" != "x$host_alias"; then
1250 cross_compiling=yes
1251 fi
1252 fi
1253
1254 ac_tool_prefix=
1255 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1256
1257 test "$silent" = yes && exec 6>/dev/null
1258
1259
1260 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261 ac_ls_di=`ls -di .` &&
1262 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263 as_fn_error $? "working directory cannot be determined"
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265 as_fn_error $? "pwd does not report name of working directory"
1266
1267
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$as_myself" ||
1273 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$as_myself" : 'X\(//\)[^/]' \| \
1275 X"$as_myself" : 'X\(//\)$' \| \
1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277 $as_echo X"$as_myself" |
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)[^/].*/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)$/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\).*/{
1291 s//\1/
1292 q
1293 }
1294 s/.*/./; q'`
1295 srcdir=$ac_confdir
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 srcdir=..
1298 fi
1299 else
1300 ac_srcdir_defaulted=no
1301 fi
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1305 fi
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 ac_abs_confdir=`(
1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1309 pwd)`
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 srcdir=.
1313 fi
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1317 case $srcdir in
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 esac
1320 for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 done
1326
1327 #
1328 # Report the --help message.
1329 #
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1333 cat <<_ACEOF
1334 \`configure' configures libuserdb 0.10 to adapt to many kinds of systems.
1335
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1340
1341 Defaults for the options are specified in brackets.
1342
1343 Configuration:
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking ...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 [PREFIX]
1359
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1364
1365 For better control, use the options below.
1366
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/libuserdb]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1387 _ACEOF
1388
1389 cat <<\_ACEOF
1390
1391 Program names:
1392 --program-prefix=PREFIX prepend PREFIX to installed program names
1393 --program-suffix=SUFFIX append SUFFIX to installed program names
1394 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1395
1396 System types:
1397 --build=BUILD configure for building on BUILD [guessed]
1398 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1399 _ACEOF
1400 fi
1401
1402 if test -n "$ac_init_help"; then
1403 case $ac_init_help in
1404 short | recursive ) echo "Configuration of libuserdb 0.10:";;
1405 esac
1406 cat <<\_ACEOF
1407
1408 Optional Features:
1409 --disable-option-checking ignore unrecognized --enable/--with options
1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412 --enable-silent-rules less verbose build output (undo: "make V=1")
1413 --disable-silent-rules verbose build output (undo: "make V=0")
1414 --enable-dependency-tracking
1415 do not reject slow dependency extractors
1416 --disable-dependency-tracking
1417 speeds up one-time build
1418 --enable-shared[=PKGS] build shared libraries [default=yes]
1419 --enable-static[=PKGS] build static libraries [default=yes]
1420 --enable-fast-install[=PKGS]
1421 optimize for fast installation [default=yes]
1422 --disable-libtool-lock avoid locking (might break parallel builds)
1423 --disable-largefile omit support for large files
1424
1425 Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1429 both]
1430 --with-aix-soname=aix|svr4|both
1431 shared library versioning (aka "SONAME") variant to
1432 provide on AIX, [default=aix].
1433 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1434 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1435 compiler's sysroot if not specified).
1436
1437 --with-random=/dev/urandom - location of the system random file generator
1438 --without-random - there is no system random file generator
1439
1440 Some influential environment variables:
1441 CC C compiler command
1442 CFLAGS C compiler flags
1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1444 nonstandard directory <lib dir>
1445 LIBS libraries to pass to the linker, e.g. -l<library>
1446 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
1448 LT_SYS_LIBRARY_PATH
1449 User-defined run-time library search path.
1450 CPP C preprocessor
1451
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1454
1455 Report bugs to <courier-users@lists.sourceforge.net>.
1456 _ACEOF
1457 ac_status=$?
1458 fi
1459
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 continue
1466 ac_builddir=.
1467
1468 case "$ac_dir" in
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *)
1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 esac ;;
1478 esac
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1483
1484 case $srcdir in
1485 .) # We are building in place.
1486 ac_srcdir=.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1493 *) # Relative name.
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497 esac
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1508 else
1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 fi || ac_status=$?
1511 cd "$ac_pwd" || { ac_status=$?; break; }
1512 done
1513 fi
1514
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1517 cat <<\_ACEOF
1518 libuserdb configure 0.10
1519 generated by GNU Autoconf 2.69
1520
1521 Copyright (C) 2012 Free Software Foundation, Inc.
1522 This configure script is free software; the Free Software Foundation
1523 gives unlimited permission to copy, distribute and modify it.
1524 _ACEOF
1525 exit
1526 fi
1527
1528 ## ------------------------ ##
1529 ## Autoconf initialization. ##
1530 ## ------------------------ ##
1531
1532 # ac_fn_c_try_compile LINENO
1533 # --------------------------
1534 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_compile ()
1536 {
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext
1539 if { { ac_try="$ac_compile"
1540 case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543 esac
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1552 fi
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1558 ac_retval=0
1559 else
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1562
1563 ac_retval=1
1564 fi
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566 as_fn_set_status $ac_retval
1567
1568 } # ac_fn_c_try_compile
1569
1570 # ac_fn_c_try_link LINENO
1571 # -----------------------
1572 # Try to link conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_link ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext conftest$ac_exeext
1577 if { { ac_try="$ac_link"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_link") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1590 fi
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest$ac_exeext && {
1596 test "$cross_compiling" = yes ||
1597 test -x conftest$ac_exeext
1598 }; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 ac_retval=1
1605 fi
1606 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1607 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1608 # interfere with the next link command; also delete a directory that is
1609 # left behind by Apple's compiler. We do this before executing the actions.
1610 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1613
1614 } # ac_fn_c_try_link
1615
1616 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1617 # -------------------------------------------------------
1618 # Tests whether HEADER exists and can be compiled using the include files in
1619 # INCLUDES, setting the cache variable VAR accordingly.
1620 ac_fn_c_check_header_compile ()
1621 {
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624 $as_echo_n "checking for $2... " >&6; }
1625 if eval \${$3+:} false; then :
1626 $as_echo_n "(cached) " >&6
1627 else
1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629 /* end confdefs.h. */
1630 $4
1631 #include <$2>
1632 _ACEOF
1633 if ac_fn_c_try_compile "$LINENO"; then :
1634 eval "$3=yes"
1635 else
1636 eval "$3=no"
1637 fi
1638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639 fi
1640 eval ac_res=\$$3
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642 $as_echo "$ac_res" >&6; }
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644
1645 } # ac_fn_c_check_header_compile
1646
1647 # ac_fn_c_try_cpp LINENO
1648 # ----------------------
1649 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_c_try_cpp ()
1651 {
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { { ac_try="$ac_cpp conftest.$ac_ext"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } > conftest.i && {
1669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 }; then :
1672 ac_retval=0
1673 else
1674 $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1676
1677 ac_retval=1
1678 fi
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1681
1682 } # ac_fn_c_try_cpp
1683
1684 # ac_fn_c_try_run LINENO
1685 # ----------------------
1686 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1687 # that executables *can* be run.
1688 ac_fn_c_try_run ()
1689 {
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if { { ac_try="$ac_link"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_link") 2>&5
1699 ac_status=$?
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1702 { { case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_try") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; }; }; then :
1712 ac_retval=0
1713 else
1714 $as_echo "$as_me: program exited with status $ac_status" >&5
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=$ac_status
1719 fi
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_run
1725
1726 # ac_fn_c_check_func LINENO FUNC VAR
1727 # ----------------------------------
1728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1729 ac_fn_c_check_func ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1736 else
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1739 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1741 #define $2 innocuous_$2
1742
1743 /* System header to define __stub macros and hopefully few prototypes,
1744 which can conflict with char $2 (); below.
1745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1746 <limits.h> exists even on freestanding compilers. */
1747
1748 #ifdef __STDC__
1749 # include <limits.h>
1750 #else
1751 # include <assert.h>
1752 #endif
1753
1754 #undef $2
1755
1756 /* Override any GCC internal prototype to avoid an error.
1757 Use char because int might match the return type of a GCC
1758 builtin and then its argument prototype would still apply. */
1759 #ifdef __cplusplus
1760 extern "C"
1761 #endif
1762 char $2 ();
1763 /* The GNU C library defines this for functions which it implements
1764 to always fail with ENOSYS. Some functions are actually named
1765 something starting with __ and the normal name is an alias. */
1766 #if defined __stub_$2 || defined __stub___$2
1767 choke me
1768 #endif
1769
1770 int
1771 main ()
1772 {
1773 return $2 ();
1774 ;
1775 return 0;
1776 }
1777 _ACEOF
1778 if ac_fn_c_try_link "$LINENO"; then :
1779 eval "$3=yes"
1780 else
1781 eval "$3=no"
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext \
1784 conftest$ac_exeext conftest.$ac_ext
1785 fi
1786 eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791 } # ac_fn_c_check_func
1792
1793 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1794 # -------------------------------------------------------
1795 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1796 # the include files in INCLUDES and setting the cache variable VAR
1797 # accordingly.
1798 ac_fn_c_check_header_mongrel ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if eval \${$3+:} false; then :
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if eval \${$3+:} false; then :
1805 $as_echo_n "(cached) " >&6
1806 fi
1807 eval ac_res=\$$3
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 else
1811 # Is the header compilable?
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1813 $as_echo_n "checking $2 usability... " >&6; }
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1816 $4
1817 #include <$2>
1818 _ACEOF
1819 if ac_fn_c_try_compile "$LINENO"; then :
1820 ac_header_compiler=yes
1821 else
1822 ac_header_compiler=no
1823 fi
1824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1826 $as_echo "$ac_header_compiler" >&6; }
1827
1828 # Is the header present?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1830 $as_echo_n "checking $2 presence... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1833 #include <$2>
1834 _ACEOF
1835 if ac_fn_c_try_cpp "$LINENO"; then :
1836 ac_header_preproc=yes
1837 else
1838 ac_header_preproc=no
1839 fi
1840 rm -f conftest.err conftest.i conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1842 $as_echo "$ac_header_preproc" >&6; }
1843
1844 # So? What about this header?
1845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1846 yes:no: )
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1848 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1851 ;;
1852 no:yes:* )
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1854 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1856 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1858 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1860 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1862 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1863 ( $as_echo "## -------------------------------------------------- ##
1864 ## Report this to courier-users@lists.sourceforge.net ##
1865 ## -------------------------------------------------- ##"
1866 ) | sed "s/^/$as_me: WARNING: /" >&2
1867 ;;
1868 esac
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1873 else
1874 eval "$3=\$ac_header_compiler"
1875 fi
1876 eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 fi
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881
1882 } # ac_fn_c_check_header_mongrel
1883
1884 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1885 # -------------------------------------------
1886 # Tests whether TYPE exists after having included INCLUDES, setting cache
1887 # variable VAR accordingly.
1888 ac_fn_c_check_type ()
1889 {
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if eval \${$3+:} false; then :
1894 $as_echo_n "(cached) " >&6
1895 else
1896 eval "$3=no"
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 $4
1900 int
1901 main ()
1902 {
1903 if (sizeof ($2))
1904 return 0;
1905 ;
1906 return 0;
1907 }
1908 _ACEOF
1909 if ac_fn_c_try_compile "$LINENO"; then :
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1912 $4
1913 int
1914 main ()
1915 {
1916 if (sizeof (($2)))
1917 return 0;
1918 ;
1919 return 0;
1920 }
1921 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"; then :
1923
1924 else
1925 eval "$3=yes"
1926 fi
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 fi
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 fi
1931 eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936 } # ac_fn_c_check_type
1937 cat >config.log <<_ACEOF
1938 This file contains any messages produced by compilers while
1939 running configure, to aid debugging if configure makes a mistake.
1940
1941 It was created by libuserdb $as_me 0.10, which was
1942 generated by GNU Autoconf 2.69. Invocation command line was
1943
1944 $ $0 $@
1945
1946 _ACEOF
1947 exec 5>>config.log
1948 {
1949 cat <<_ASUNAME
1950 ## --------- ##
1951 ## Platform. ##
1952 ## --------- ##
1953
1954 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1955 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1956 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1957 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1958 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1959
1960 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1961 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1962
1963 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1964 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1965 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1966 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1967 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1968 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1969 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1970
1971 _ASUNAME
1972
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1975 do
1976 IFS=$as_save_IFS
1977 test -z "$as_dir" && as_dir=.
1978 $as_echo "PATH: $as_dir"
1979 done
1980 IFS=$as_save_IFS
1981
1982 } >&5
1983
1984 cat >&5 <<_ACEOF
1985
1986
1987 ## ----------- ##
1988 ## Core tests. ##
1989 ## ----------- ##
1990
1991 _ACEOF
1992
1993
1994 # Keep a trace of the command line.
1995 # Strip out --no-create and --no-recursion so they do not pile up.
1996 # Strip out --silent because we don't want to record it for future runs.
1997 # Also quote any args containing shell meta-characters.
1998 # Make two passes to allow for proper duplicate-argument suppression.
1999 ac_configure_args=
2000 ac_configure_args0=
2001 ac_configure_args1=
2002 ac_must_keep_next=false
2003 for ac_pass in 1 2
2004 do
2005 for ac_arg
2006 do
2007 case $ac_arg in
2008 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2010 | -silent | --silent | --silen | --sile | --sil)
2011 continue ;;
2012 *\'*)
2013 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2014 esac
2015 case $ac_pass in
2016 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2017 2)
2018 as_fn_append ac_configure_args1 " '$ac_arg'"
2019 if test $ac_must_keep_next = true; then
2020 ac_must_keep_next=false # Got value, back to normal.
2021 else
2022 case $ac_arg in
2023 *=* | --config-cache | -C | -disable-* | --disable-* \
2024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2026 | -with-* | --with-* | -without-* | --without-* | --x)
2027 case "$ac_configure_args0 " in
2028 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2029 esac
2030 ;;
2031 -* ) ac_must_keep_next=true ;;
2032 esac
2033 fi
2034 as_fn_append ac_configure_args " '$ac_arg'"
2035 ;;
2036 esac
2037 done
2038 done
2039 { ac_configure_args0=; unset ac_configure_args0;}
2040 { ac_configure_args1=; unset ac_configure_args1;}
2041
2042 # When interrupted or exit'd, cleanup temporary files, and complete
2043 # config.log. We remove comments because anyway the quotes in there
2044 # would cause problems or look ugly.
2045 # WARNING: Use '\'' to represent an apostrophe within the trap.
2046 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2047 trap 'exit_status=$?
2048 # Save into config.log some information that might help in debugging.
2049 {
2050 echo
2051
2052 $as_echo "## ---------------- ##
2053 ## Cache variables. ##
2054 ## ---------------- ##"
2055 echo
2056 # The following way of writing the cache mishandles newlines in values,
2057 (
2058 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2059 eval ac_val=\$$ac_var
2060 case $ac_val in #(
2061 *${as_nl}*)
2062 case $ac_var in #(
2063 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2064 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2065 esac
2066 case $ac_var in #(
2067 _ | IFS | as_nl) ;; #(
2068 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2069 *) { eval $ac_var=; unset $ac_var;} ;;
2070 esac ;;
2071 esac
2072 done
2073 (set) 2>&1 |
2074 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2075 *${as_nl}ac_space=\ *)
2076 sed -n \
2077 "s/'\''/'\''\\\\'\'''\''/g;
2078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2079 ;; #(
2080 *)
2081 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2082 ;;
2083 esac |
2084 sort
2085 )
2086 echo
2087
2088 $as_echo "## ----------------- ##
2089 ## Output variables. ##
2090 ## ----------------- ##"
2091 echo
2092 for ac_var in $ac_subst_vars
2093 do
2094 eval ac_val=\$$ac_var
2095 case $ac_val in
2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097 esac
2098 $as_echo "$ac_var='\''$ac_val'\''"
2099 done | sort
2100 echo
2101
2102 if test -n "$ac_subst_files"; then
2103 $as_echo "## ------------------- ##
2104 ## File substitutions. ##
2105 ## ------------------- ##"
2106 echo
2107 for ac_var in $ac_subst_files
2108 do
2109 eval ac_val=\$$ac_var
2110 case $ac_val in
2111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112 esac
2113 $as_echo "$ac_var='\''$ac_val'\''"
2114 done | sort
2115 echo
2116 fi
2117
2118 if test -s confdefs.h; then
2119 $as_echo "## ----------- ##
2120 ## confdefs.h. ##
2121 ## ----------- ##"
2122 echo
2123 cat confdefs.h
2124 echo
2125 fi
2126 test "$ac_signal" != 0 &&
2127 $as_echo "$as_me: caught signal $ac_signal"
2128 $as_echo "$as_me: exit $exit_status"
2129 } >&5
2130 rm -f core *.core core.conftest.* &&
2131 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2132 exit $exit_status
2133 ' 0
2134 for ac_signal in 1 2 13 15; do
2135 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2136 done
2137 ac_signal=0
2138
2139 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2140 rm -f -r conftest* confdefs.h
2141
2142 $as_echo "/* confdefs.h */" > confdefs.h
2143
2144 # Predefined preprocessor variables.
2145
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_NAME "$PACKAGE_NAME"
2148 _ACEOF
2149
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2152 _ACEOF
2153
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2156 _ACEOF
2157
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_STRING "$PACKAGE_STRING"
2160 _ACEOF
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2164 _ACEOF
2165
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_URL "$PACKAGE_URL"
2168 _ACEOF
2169
2170
2171 # Let the site file select an alternate cache file if it wants to.
2172 # Prefer an explicitly selected file to automatically selected ones.
2173 ac_site_file1=NONE
2174 ac_site_file2=NONE
2175 if test -n "$CONFIG_SITE"; then
2176 # We do not want a PATH search for config.site.
2177 case $CONFIG_SITE in #((
2178 -*) ac_site_file1=./$CONFIG_SITE;;
2179 */*) ac_site_file1=$CONFIG_SITE;;
2180 *) ac_site_file1=./$CONFIG_SITE;;
2181 esac
2182 elif test "x$prefix" != xNONE; then
2183 ac_site_file1=$prefix/share/config.site
2184 ac_site_file2=$prefix/etc/config.site
2185 else
2186 ac_site_file1=$ac_default_prefix/share/config.site
2187 ac_site_file2=$ac_default_prefix/etc/config.site
2188 fi
2189 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2190 do
2191 test "x$ac_site_file" = xNONE && continue
2192 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2194 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2195 sed 's/^/| /' "$ac_site_file" >&5
2196 . "$ac_site_file" \
2197 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2199 as_fn_error $? "failed to load site script $ac_site_file
2200 See \`config.log' for more details" "$LINENO" 5; }
2201 fi
2202 done
2203
2204 if test -r "$cache_file"; then
2205 # Some versions of bash will fail to source /dev/null (special files
2206 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2207 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2209 $as_echo "$as_me: loading cache $cache_file" >&6;}
2210 case $cache_file in
2211 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2212 *) . "./$cache_file";;
2213 esac
2214 fi
2215 else
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2217 $as_echo "$as_me: creating cache $cache_file" >&6;}
2218 >$cache_file
2219 fi
2220
2221 # Check that the precious variables saved in the cache have kept the same
2222 # value.
2223 ac_cache_corrupted=false
2224 for ac_var in $ac_precious_vars; do
2225 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2226 eval ac_new_set=\$ac_env_${ac_var}_set
2227 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2228 eval ac_new_val=\$ac_env_${ac_var}_value
2229 case $ac_old_set,$ac_new_set in
2230 set,)
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2232 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2233 ac_cache_corrupted=: ;;
2234 ,set)
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2236 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2237 ac_cache_corrupted=: ;;
2238 ,);;
2239 *)
2240 if test "x$ac_old_val" != "x$ac_new_val"; then
2241 # differences in whitespace do not lead to failure.
2242 ac_old_val_w=`echo x $ac_old_val`
2243 ac_new_val_w=`echo x $ac_new_val`
2244 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2246 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2247 ac_cache_corrupted=:
2248 else
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2250 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2251 eval $ac_var=\$ac_old_val
2252 fi
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2254 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2256 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2257 fi;;
2258 esac
2259 # Pass precious variables to config.status.
2260 if test "$ac_new_set" = set; then
2261 case $ac_new_val in
2262 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2263 *) ac_arg=$ac_var=$ac_new_val ;;
2264 esac
2265 case " $ac_configure_args " in
2266 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2267 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2268 esac
2269 fi
2270 done
2271 if $ac_cache_corrupted; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2275 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2276 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2277 fi
2278 ## -------------------- ##
2279 ## Main body of script. ##
2280 ## -------------------- ##
2281
2282 ac_ext=c
2283 ac_cpp='$CPP $CPPFLAGS'
2284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2287
2288
2289
2290 >confdefs.h # Kill PACKAGE_ macros.
2291
2292 LPATH="$PATH:/usr/local/bin"
2293
2294
2295 ac_aux_dir=
2296 for ac_dir in .. "$srcdir"/..; do
2297 if test -f "$ac_dir/install-sh"; then
2298 ac_aux_dir=$ac_dir
2299 ac_install_sh="$ac_aux_dir/install-sh -c"
2300 break
2301 elif test -f "$ac_dir/install.sh"; then
2302 ac_aux_dir=$ac_dir
2303 ac_install_sh="$ac_aux_dir/install.sh -c"
2304 break
2305 elif test -f "$ac_dir/shtool"; then
2306 ac_aux_dir=$ac_dir
2307 ac_install_sh="$ac_aux_dir/shtool install -c"
2308 break
2309 fi
2310 done
2311 if test -z "$ac_aux_dir"; then
2312 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2313 fi
2314
2315 # These three variables are undocumented and unsupported,
2316 # and are intended to be withdrawn in a future Autoconf release.
2317 # They can cause serious problems if a builder's source tree is in a directory
2318 # whose full name contains unusual characters.
2319 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2320 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2321 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2322
2323
2324 am__api_version='1.15'
2325
2326 # Find a good install program. We prefer a C program (faster),
2327 # so one script is as good as another. But avoid the broken or
2328 # incompatible versions:
2329 # SysV /etc/install, /usr/sbin/install
2330 # SunOS /usr/etc/install
2331 # IRIX /sbin/install
2332 # AIX /bin/install
2333 # AmigaOS /C/install, which installs bootblocks on floppy discs
2334 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2335 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2336 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2337 # OS/2's system install, which has a completely different semantic
2338 # ./install, which can be erroneously created by make from ./install.sh.
2339 # Reject install programs that cannot install multiple files.
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2341 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2342 if test -z "$INSTALL"; then
2343 if ${ac_cv_path_install+:} false; then :
2344 $as_echo_n "(cached) " >&6
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2348 do
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 # Account for people who put trailing slashes in PATH elements.
2352 case $as_dir/ in #((
2353 ./ | .// | /[cC]/* | \
2354 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2355 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2356 /usr/ucb/* ) ;;
2357 *)
2358 # OSF1 and SCO ODT 3.0 have their own names for install.
2359 # Don't use installbsd from OSF since it installs stuff as root
2360 # by default.
2361 for ac_prog in ginstall scoinst install; do
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2364 if test $ac_prog = install &&
2365 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2366 # AIX install. It has an incompatible calling convention.
2367 :
2368 elif test $ac_prog = install &&
2369 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2370 # program-specific install script used by HP pwplus--don't use.
2371 :
2372 else
2373 rm -rf conftest.one conftest.two conftest.dir
2374 echo one > conftest.one
2375 echo two > conftest.two
2376 mkdir conftest.dir
2377 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2378 test -s conftest.one && test -s conftest.two &&
2379 test -s conftest.dir/conftest.one &&
2380 test -s conftest.dir/conftest.two
2381 then
2382 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2383 break 3
2384 fi
2385 fi
2386 fi
2387 done
2388 done
2389 ;;
2390 esac
2391
2392 done
2393 IFS=$as_save_IFS
2394
2395 rm -rf conftest.one conftest.two conftest.dir
2396
2397 fi
2398 if test "${ac_cv_path_install+set}" = set; then
2399 INSTALL=$ac_cv_path_install
2400 else
2401 # As a last resort, use the slow shell script. Don't cache a
2402 # value for INSTALL within a source directory, because that will
2403 # break other packages using the cache if that directory is
2404 # removed, or if the value is a relative name.
2405 INSTALL=$ac_install_sh
2406 fi
2407 fi
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2409 $as_echo "$INSTALL" >&6; }
2410
2411 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2412 # It thinks the first close brace ends the variable substitution.
2413 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2414
2415 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2416
2417 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2418
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2420 $as_echo_n "checking whether build environment is sane... " >&6; }
2421 # Reject unsafe characters in $srcdir or the absolute working directory
2422 # name. Accept space and tab only in the latter.
2423 am_lf='
2424 '
2425 case `pwd` in
2426 *[\\\"\#\$\&\'\`$am_lf]*)
2427 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2428 esac
2429 case $srcdir in
2430 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2431 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2432 esac
2433
2434 # Do 'set' in a subshell so we don't clobber the current shell's
2435 # arguments. Must try -L first in case configure is actually a
2436 # symlink; some systems play weird games with the mod time of symlinks
2437 # (eg FreeBSD returns the mod time of the symlink's containing
2438 # directory).
2439 if (
2440 am_has_slept=no
2441 for am_try in 1 2; do
2442 echo "timestamp, slept: $am_has_slept" > conftest.file
2443 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2444 if test "$*" = "X"; then
2445 # -L didn't work.
2446 set X `ls -t "$srcdir/configure" conftest.file`
2447 fi
2448 if test "$*" != "X $srcdir/configure conftest.file" \
2449 && test "$*" != "X conftest.file $srcdir/configure"; then
2450
2451 # If neither matched, then we have a broken ls. This can happen
2452 # if, for instance, CONFIG_SHELL is bash and it inherits a
2453 # broken ls alias from the environment. This has actually
2454 # happened. Such a system could not be considered "sane".
2455 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2456 alias in your environment" "$LINENO" 5
2457 fi
2458 if test "$2" = conftest.file || test $am_try -eq 2; then
2459 break
2460 fi
2461 # Just in case.
2462 sleep 1
2463 am_has_slept=yes
2464 done
2465 test "$2" = conftest.file
2466 )
2467 then
2468 # Ok.
2469 :
2470 else
2471 as_fn_error $? "newly created file is older than distributed files!
2472 Check your system clock" "$LINENO" 5
2473 fi
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2475 $as_echo "yes" >&6; }
2476 # If we didn't sleep, we still need to ensure time stamps of config.status and
2477 # generated files are strictly newer.
2478 am_sleep_pid=
2479 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2480 ( sleep 1 ) &
2481 am_sleep_pid=$!
2482 fi
2483
2484 rm -f conftest.file
2485
2486 test "$program_prefix" != NONE &&
2487 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2488 # Use a double $ so make ignores it.
2489 test "$program_suffix" != NONE &&
2490 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2491 # Double any \ or $.
2492 # By default was `s,x,x', remove it if useless.
2493 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2494 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2495
2496 # Expand $ac_aux_dir to an absolute path.
2497 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2498
2499 if test x"${MISSING+set}" != xset; then
2500 case $am_aux_dir in
2501 *\ * | *\ *)
2502 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2503 *)
2504 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2505 esac
2506 fi
2507 # Use eval to expand $SHELL
2508 if eval "$MISSING --is-lightweight"; then
2509 am_missing_run="$MISSING "
2510 else
2511 am_missing_run=
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2513 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2514 fi
2515
2516 if test x"${install_sh+set}" != xset; then
2517 case $am_aux_dir in
2518 *\ * | *\ *)
2519 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2520 *)
2521 install_sh="\${SHELL} $am_aux_dir/install-sh"
2522 esac
2523 fi
2524
2525 # Installed binaries are usually stripped using 'strip' when the user
2526 # run "make install-strip". However 'strip' might not be the right
2527 # tool to use in cross-compilation environments, therefore Automake
2528 # will honor the 'STRIP' environment variable to overrule this program.
2529 if test "$cross_compiling" != no; then
2530 if test -n "$ac_tool_prefix"; then
2531 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2532 set dummy ${ac_tool_prefix}strip; ac_word=$2
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2534 $as_echo_n "checking for $ac_word... " >&6; }
2535 if ${ac_cv_prog_STRIP+:} false; then :
2536 $as_echo_n "(cached) " >&6
2537 else
2538 if test -n "$STRIP"; then
2539 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2540 else
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2543 do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2548 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 break 2
2551 fi
2552 done
2553 done
2554 IFS=$as_save_IFS
2555
2556 fi
2557 fi
2558 STRIP=$ac_cv_prog_STRIP
2559 if test -n "$STRIP"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2561 $as_echo "$STRIP" >&6; }
2562 else
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2564 $as_echo "no" >&6; }
2565 fi
2566
2567
2568 fi
2569 if test -z "$ac_cv_prog_STRIP"; then
2570 ac_ct_STRIP=$STRIP
2571 # Extract the first word of "strip", so it can be a program name with args.
2572 set dummy strip; ac_word=$2
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574 $as_echo_n "checking for $ac_word... " >&6; }
2575 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2576 $as_echo_n "(cached) " >&6
2577 else
2578 if test -n "$ac_ct_STRIP"; then
2579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2580 else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2583 do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588 ac_cv_prog_ac_ct_STRIP="strip"
2589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2591 fi
2592 done
2593 done
2594 IFS=$as_save_IFS
2595
2596 fi
2597 fi
2598 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2599 if test -n "$ac_ct_STRIP"; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2601 $as_echo "$ac_ct_STRIP" >&6; }
2602 else
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604 $as_echo "no" >&6; }
2605 fi
2606
2607 if test "x$ac_ct_STRIP" = x; then
2608 STRIP=":"
2609 else
2610 case $cross_compiling:$ac_tool_warned in
2611 yes:)
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2614 ac_tool_warned=yes ;;
2615 esac
2616 STRIP=$ac_ct_STRIP
2617 fi
2618 else
2619 STRIP="$ac_cv_prog_STRIP"
2620 fi
2621
2622 fi
2623 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2624
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2626 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2627 if test -z "$MKDIR_P"; then
2628 if ${ac_cv_path_mkdir+:} false; then :
2629 $as_echo_n "(cached) " >&6
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2633 do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_prog in mkdir gmkdir; do
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2639 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2640 'mkdir (GNU coreutils) '* | \
2641 'mkdir (coreutils) '* | \
2642 'mkdir (fileutils) '4.1*)
2643 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2644 break 3;;
2645 esac
2646 done
2647 done
2648 done
2649 IFS=$as_save_IFS
2650
2651 fi
2652
2653 test -d ./--version && rmdir ./--version
2654 if test "${ac_cv_path_mkdir+set}" = set; then
2655 MKDIR_P="$ac_cv_path_mkdir -p"
2656 else
2657 # As a last resort, use the slow shell script. Don't cache a
2658 # value for MKDIR_P within a source directory, because that will
2659 # break other packages using the cache if that directory is
2660 # removed, or if the value is a relative name.
2661 MKDIR_P="$ac_install_sh -d"
2662 fi
2663 fi
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2665 $as_echo "$MKDIR_P" >&6; }
2666
2667 for ac_prog in gawk mawk nawk awk
2668 do
2669 # Extract the first word of "$ac_prog", so it can be a program name with args.
2670 set dummy $ac_prog; ac_word=$2
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 $as_echo_n "checking for $ac_word... " >&6; }
2673 if ${ac_cv_prog_AWK+:} false; then :
2674 $as_echo_n "(cached) " >&6
2675 else
2676 if test -n "$AWK"; then
2677 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_AWK="$ac_prog"
2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2689 fi
2690 done
2691 done
2692 IFS=$as_save_IFS
2693
2694 fi
2695 fi
2696 AWK=$ac_cv_prog_AWK
2697 if test -n "$AWK"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2699 $as_echo "$AWK" >&6; }
2700 else
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2703 fi
2704
2705
2706 test -n "$AWK" && break
2707 done
2708
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2710 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2711 set x ${MAKE-make}
2712 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2713 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 cat >conftest.make <<\_ACEOF
2717 SHELL = /bin/sh
2718 all:
2719 @echo '@@@%%%=$(MAKE)=@@@%%%'
2720 _ACEOF
2721 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2722 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2723 *@@@%%%=?*=@@@%%%*)
2724 eval ac_cv_prog_make_${ac_make}_set=yes;;
2725 *)
2726 eval ac_cv_prog_make_${ac_make}_set=no;;
2727 esac
2728 rm -f conftest.make
2729 fi
2730 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2732 $as_echo "yes" >&6; }
2733 SET_MAKE=
2734 else
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736 $as_echo "no" >&6; }
2737 SET_MAKE="MAKE=${MAKE-make}"
2738 fi
2739
2740 rm -rf .tst 2>/dev/null
2741 mkdir .tst 2>/dev/null
2742 if test -d .tst; then
2743 am__leading_dot=.
2744 else
2745 am__leading_dot=_
2746 fi
2747 rmdir .tst 2>/dev/null
2748
2749 # Check whether --enable-silent-rules was given.
2750 if test "${enable_silent_rules+set}" = set; then :
2751 enableval=$enable_silent_rules;
2752 fi
2753
2754 case $enable_silent_rules in # (((
2755 yes) AM_DEFAULT_VERBOSITY=0;;
2756 no) AM_DEFAULT_VERBOSITY=1;;
2757 *) AM_DEFAULT_VERBOSITY=1;;
2758 esac
2759 am_make=${MAKE-make}
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2761 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2762 if ${am_cv_make_support_nested_variables+:} false; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 if $as_echo 'TRUE=$(BAR$(V))
2766 BAR0=false
2767 BAR1=true
2768 V=1
2769 am__doit:
2770 @$(TRUE)
2771 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2772 am_cv_make_support_nested_variables=yes
2773 else
2774 am_cv_make_support_nested_variables=no
2775 fi
2776 fi
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2778 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2779 if test $am_cv_make_support_nested_variables = yes; then
2780 AM_V='$(V)'
2781 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2782 else
2783 AM_V=$AM_DEFAULT_VERBOSITY
2784 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2785 fi
2786 AM_BACKSLASH='\'
2787
2788 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2789 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2790 # is not polluted with repeated "-I."
2791 am__isrc=' -I$(srcdir)'
2792 # test to see if srcdir already configured
2793 if test -f $srcdir/config.status; then
2794 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2795 fi
2796 fi
2797
2798 # test whether we have cygpath
2799 if test -z "$CYGPATH_W"; then
2800 if (cygpath --version) >/dev/null 2>/dev/null; then
2801 CYGPATH_W='cygpath -w'
2802 else
2803 CYGPATH_W=echo
2804 fi
2805 fi
2806
2807
2808 # Define the identity of the package.
2809 PACKAGE='libuserdb'
2810 VERSION='0.10'
2811
2812
2813 # Some tools Automake needs.
2814
2815 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2816
2817
2818 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2819
2820
2821 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2822
2823
2824 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2825
2826
2827 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2828
2829 # For better backward compatibility. To be removed once Automake 1.9.x
2830 # dies out for good. For more background, see:
2831 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2832 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2833 mkdir_p='$(MKDIR_P)'
2834
2835 # We need awk for the "check" target (and possibly the TAP driver). The
2836 # system "awk" is bad on some platforms.
2837 # Always define AMTAR for backward compatibility. Yes, it's still used
2838 # in the wild :-( We should find a proper way to deprecate it ...
2839 AMTAR='$${TAR-tar}'
2840
2841
2842 # We'll loop over all known methods to create a tar archive until one works.
2843 _am_tools='gnutar pax cpio none'
2844
2845 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2846
2847
2848
2849
2850
2851
2852 # POSIX will say in a future version that running "rm -f" with no argument
2853 # is OK; and we want to be able to make that assumption in our Makefile
2854 # recipes. So use an aggressive probe to check that the usage we want is
2855 # actually supported "in the wild" to an acceptable degree.
2856 # See automake bug#10828.
2857 # To make any issue more visible, cause the running configure to be aborted
2858 # by default if the 'rm' program in use doesn't match our expectations; the
2859 # user can still override this though.
2860 if rm -f && rm -fr && rm -rf; then : OK; else
2861 cat >&2 <<'END'
2862 Oops!
2863
2864 Your 'rm' program seems unable to run without file operands specified
2865 on the command line, even when the '-f' option is present. This is contrary
2866 to the behaviour of most rm programs out there, and not conforming with
2867 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2868
2869 Please tell bug-automake@gnu.org about your system, including the value
2870 of your $PATH and any error possibly output before this message. This
2871 can help us improve future automake versions.
2872
2873 END
2874 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2875 echo 'Configuration will proceed anyway, since you have set the' >&2
2876 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2877 echo >&2
2878 else
2879 cat >&2 <<'END'
2880 Aborting the configuration process, to ensure you take notice of the issue.
2881
2882 You can download and install GNU coreutils to get an 'rm' implementation
2883 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2884
2885 If you want to complete the configuration process using your problematic
2886 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2887 to "yes", and re-run configure.
2888
2889 END
2890 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2891 fi
2892 fi
2893
2894 ac_config_headers="$ac_config_headers config.h"
2895
2896
2897 for ac_prog in gawk mawk nawk awk
2898 do
2899 # Extract the first word of "$ac_prog", so it can be a program name with args.
2900 set dummy $ac_prog; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if ${ac_cv_prog_AWK+:} false; then :
2904 $as_echo_n "(cached) " >&6
2905 else
2906 if test -n "$AWK"; then
2907 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2908 else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2911 do
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2916 ac_cv_prog_AWK="$ac_prog"
2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 break 2
2919 fi
2920 done
2921 done
2922 IFS=$as_save_IFS
2923
2924 fi
2925 fi
2926 AWK=$ac_cv_prog_AWK
2927 if test -n "$AWK"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2929 $as_echo "$AWK" >&6; }
2930 else
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2933 fi
2934
2935
2936 test -n "$AWK" && break
2937 done
2938
2939 ac_ext=c
2940 ac_cpp='$CPP $CPPFLAGS'
2941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944 if test -n "$ac_tool_prefix"; then
2945 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2946 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_CC+:} false; then :
2950 $as_echo_n "(cached) " >&6
2951 else
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 break 2
2965 fi
2966 done
2967 done
2968 IFS=$as_save_IFS
2969
2970 fi
2971 fi
2972 CC=$ac_cv_prog_CC
2973 if test -n "$CC"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975 $as_echo "$CC" >&6; }
2976 else
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 fi
2980
2981
2982 fi
2983 if test -z "$ac_cv_prog_CC"; then
2984 ac_ct_CC=$CC
2985 # Extract the first word of "gcc", so it can be a program name with args.
2986 set dummy gcc; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 if test -n "$ac_ct_CC"; then
2993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_ac_ct_CC="gcc"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006 done
3007 done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3013 if test -n "$ac_ct_CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3015 $as_echo "$ac_ct_CC" >&6; }
3016 else
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021 if test "x$ac_ct_CC" = x; then
3022 CC=""
3023 else
3024 case $cross_compiling:$ac_tool_warned in
3025 yes:)
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3028 ac_tool_warned=yes ;;
3029 esac
3030 CC=$ac_ct_CC
3031 fi
3032 else
3033 CC="$ac_cv_prog_CC"
3034 fi
3035
3036 if test -z "$CC"; then
3037 if test -n "$ac_tool_prefix"; then
3038 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3039 set dummy ${ac_tool_prefix}cc; ac_word=$2
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if ${ac_cv_prog_CC+:} false; then :
3043 $as_echo_n "(cached) " >&6
3044 else
3045 if test -n "$CC"; then
3046 ac_cv_prog_CC="$CC" # Let the user override the test.
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3050 do
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3055 ac_cv_prog_CC="${ac_tool_prefix}cc"
3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 break 2
3058 fi
3059 done
3060 done
3061 IFS=$as_save_IFS
3062
3063 fi
3064 fi
3065 CC=$ac_cv_prog_CC
3066 if test -n "$CC"; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3068 $as_echo "$CC" >&6; }
3069 else
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3072 fi
3073
3074
3075 fi
3076 fi
3077 if test -z "$CC"; then
3078 # Extract the first word of "cc", so it can be a program name with args.
3079 set dummy cc; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_CC+:} false; then :
3083 $as_echo_n "(cached) " >&6
3084 else
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC="$CC" # Let the user override the test.
3087 else
3088 ac_prog_rejected=no
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3097 ac_prog_rejected=yes
3098 continue
3099 fi
3100 ac_cv_prog_CC="cc"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 break 2
3103 fi
3104 done
3105 done
3106 IFS=$as_save_IFS
3107
3108 if test $ac_prog_rejected = yes; then
3109 # We found a bogon in the path, so make sure we never use it.
3110 set dummy $ac_cv_prog_CC
3111 shift
3112 if test $# != 0; then
3113 # We chose a different compiler from the bogus one.
3114 # However, it has the same basename, so the bogon will be chosen
3115 # first if we set CC to just the basename; use the full file name.
3116 shift
3117 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3118 fi
3119 fi
3120 fi
3121 fi
3122 CC=$ac_cv_prog_CC
3123 if test -n "$CC"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3126 else
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3129 fi
3130
3131
3132 fi
3133 if test -z "$CC"; then
3134 if test -n "$ac_tool_prefix"; then
3135 for ac_prog in cl.exe
3136 do
3137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_CC+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3157 fi
3158 done
3159 done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 CC=$ac_cv_prog_CC
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174 test -n "$CC" && break
3175 done
3176 fi
3177 if test -z "$CC"; then
3178 ac_ct_CC=$CC
3179 for ac_prog in cl.exe
3180 do
3181 # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy $ac_prog; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 if test -n "$ac_ct_CC"; then
3189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3193 do
3194 IFS=$as_save_IFS
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198 ac_cv_prog_ac_ct_CC="$ac_prog"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 break 2
3201 fi
3202 done
3203 done
3204 IFS=$as_save_IFS
3205
3206 fi
3207 fi
3208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209 if test -n "$ac_ct_CC"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3211 $as_echo "$ac_ct_CC" >&6; }
3212 else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3215 fi
3216
3217
3218 test -n "$ac_ct_CC" && break
3219 done
3220
3221 if test "x$ac_ct_CC" = x; then
3222 CC=""
3223 else
3224 case $cross_compiling:$ac_tool_warned in
3225 yes:)
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3228 ac_tool_warned=yes ;;
3229 esac
3230 CC=$ac_ct_CC
3231 fi
3232 fi
3233
3234 fi
3235
3236
3237 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error $? "no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details" "$LINENO" 5; }
3241
3242 # Provide some information about the compiler.
3243 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3244 set X $ac_compile
3245 ac_compiler=$2
3246 for ac_option in --version -v -V -qversion; do
3247 { { ac_try="$ac_compiler $ac_option >&5"
3248 case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3255 ac_status=$?
3256 if test -s conftest.err; then
3257 sed '10a\
3258 ... rest of stderr output deleted ...
3259 10q' conftest.err >conftest.er1
3260 cat conftest.er1 >&5
3261 fi
3262 rm -f conftest.er1 conftest.err
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }
3265 done
3266
3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268 /* end confdefs.h. */
3269
3270 int
3271 main ()
3272 {
3273
3274 ;
3275 return 0;
3276 }
3277 _ACEOF
3278 ac_clean_files_save=$ac_clean_files
3279 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3280 # Try to create an executable without -o first, disregard a.out.
3281 # It will help us diagnose broken compilers, and finding out an intuition
3282 # of exeext.
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3284 $as_echo_n "checking whether the C compiler works... " >&6; }
3285 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3286
3287 # The possible output files:
3288 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3289
3290 ac_rmfiles=
3291 for ac_file in $ac_files
3292 do
3293 case $ac_file in
3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3295 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3296 esac
3297 done
3298 rm -f $ac_rmfiles
3299
3300 if { { ac_try="$ac_link_default"
3301 case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304 esac
3305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306 $as_echo "$ac_try_echo"; } >&5
3307 (eval "$ac_link_default") 2>&5
3308 ac_status=$?
3309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310 test $ac_status = 0; }; then :
3311 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3312 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3313 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3314 # so that the user can short-circuit this test for compilers unknown to
3315 # Autoconf.
3316 for ac_file in $ac_files ''
3317 do
3318 test -f "$ac_file" || continue
3319 case $ac_file in
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3321 ;;
3322 [ab].out )
3323 # We found the default executable, but exeext='' is most
3324 # certainly right.
3325 break;;
3326 *.* )
3327 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3328 then :; else
3329 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3330 fi
3331 # We set ac_cv_exeext here because the later test for it is not
3332 # safe: cross compilers may not add the suffix if given an `-o'
3333 # argument, so we may need to know it at that point already.
3334 # Even if this section looks crufty: it has the advantage of
3335 # actually working.
3336 break;;
3337 * )
3338 break;;
3339 esac
3340 done
3341 test "$ac_cv_exeext" = no && ac_cv_exeext=
3342
3343 else
3344 ac_file=''
3345 fi
3346 if test -z "$ac_file"; then :
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 $as_echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354 as_fn_error 77 "C compiler cannot create executables
3355 See \`config.log' for more details" "$LINENO" 5; }
3356 else
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3358 $as_echo "yes" >&6; }
3359 fi
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3361 $as_echo_n "checking for C compiler default output file name... " >&6; }
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3363 $as_echo "$ac_file" >&6; }
3364 ac_exeext=$ac_cv_exeext
3365
3366 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3367 ac_clean_files=$ac_clean_files_save
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3369 $as_echo_n "checking for suffix of executables... " >&6; }
3370 if { { ac_try="$ac_link"
3371 case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374 esac
3375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376 $as_echo "$ac_try_echo"; } >&5
3377 (eval "$ac_link") 2>&5
3378 ac_status=$?
3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380 test $ac_status = 0; }; then :
3381 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3382 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3383 # work properly (i.e., refer to `conftest.exe'), while it won't with
3384 # `rm'.
3385 for ac_file in conftest.exe conftest conftest.*; do
3386 test -f "$ac_file" || continue
3387 case $ac_file in
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3389 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390 break;;
3391 * ) break;;
3392 esac
3393 done
3394 else
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3398 See \`config.log' for more details" "$LINENO" 5; }
3399 fi
3400 rm -f conftest conftest$ac_cv_exeext
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3402 $as_echo "$ac_cv_exeext" >&6; }
3403
3404 rm -f conftest.$ac_ext
3405 EXEEXT=$ac_cv_exeext
3406 ac_exeext=$EXEEXT
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3409 #include <stdio.h>
3410 int
3411 main ()
3412 {
3413 FILE *f = fopen ("conftest.out", "w");
3414 return ferror (f) || fclose (f) != 0;
3415
3416 ;
3417 return 0;
3418 }
3419 _ACEOF
3420 ac_clean_files="$ac_clean_files conftest.out"
3421 # Check that the compiler produces executables we can run. If not, either
3422 # the compiler is broken, or we cross compile.
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3424 $as_echo_n "checking whether we are cross compiling... " >&6; }
3425 if test "$cross_compiling" != yes; then
3426 { { ac_try="$ac_link"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link") 2>&5
3434 ac_status=$?
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }
3437 if { ac_try='./conftest$ac_cv_exeext'
3438 { { case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_try") 2>&5
3445 ac_status=$?
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }; }; then
3448 cross_compiling=no
3449 else
3450 if test "$cross_compiling" = maybe; then
3451 cross_compiling=yes
3452 else
3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error $? "cannot run C compiled programs.
3456 If you meant to cross compile, use \`--host'.
3457 See \`config.log' for more details" "$LINENO" 5; }
3458 fi
3459 fi
3460 fi
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3462 $as_echo "$cross_compiling" >&6; }
3463
3464 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3465 ac_clean_files=$ac_clean_files_save
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3467 $as_echo_n "checking for suffix of object files... " >&6; }
3468 if ${ac_cv_objext+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3473
3474 int
3475 main ()
3476 {
3477
3478 ;
3479 return 0;
3480 }
3481 _ACEOF
3482 rm -f conftest.o conftest.obj
3483 if { { ac_try="$ac_compile"
3484 case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_compile") 2>&5
3491 ac_status=$?
3492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493 test $ac_status = 0; }; then :
3494 for ac_file in conftest.o conftest.obj conftest.*; do
3495 test -f "$ac_file" || continue;
3496 case $ac_file in
3497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3498 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3499 break;;
3500 esac
3501 done
3502 else
3503 $as_echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508 as_fn_error $? "cannot compute suffix of object files: cannot compile
3509 See \`config.log' for more details" "$LINENO" 5; }
3510 fi
3511 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3512 fi
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3514 $as_echo "$ac_cv_objext" >&6; }
3515 OBJEXT=$ac_cv_objext
3516 ac_objext=$OBJEXT
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3518 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3519 if ${ac_cv_c_compiler_gnu+:} false; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3524
3525 int
3526 main ()
3527 {
3528 #ifndef __GNUC__
3529 choke me
3530 #endif
3531
3532 ;
3533 return 0;
3534 }
3535 _ACEOF
3536 if ac_fn_c_try_compile "$LINENO"; then :
3537 ac_compiler_gnu=yes
3538 else
3539 ac_compiler_gnu=no
3540 fi
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3543
3544 fi
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3546 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3547 if test $ac_compiler_gnu = yes; then
3548 GCC=yes
3549 else
3550 GCC=
3551 fi
3552 ac_test_CFLAGS=${CFLAGS+set}
3553 ac_save_CFLAGS=$CFLAGS
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3555 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3556 if ${ac_cv_prog_cc_g+:} false; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 ac_save_c_werror_flag=$ac_c_werror_flag
3560 ac_c_werror_flag=yes
3561 ac_cv_prog_cc_g=no
3562 CFLAGS="-g"
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3565
3566 int
3567 main ()
3568 {
3569
3570 ;
3571 return 0;
3572 }
3573 _ACEOF
3574 if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_cv_prog_cc_g=yes
3576 else
3577 CFLAGS=""
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580
3581 int
3582 main ()
3583 {
3584
3585 ;
3586 return 0;
3587 }
3588 _ACEOF
3589 if ac_fn_c_try_compile "$LINENO"; then :
3590
3591 else
3592 ac_c_werror_flag=$ac_save_c_werror_flag
3593 CFLAGS="-g"
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3596
3597 int
3598 main ()
3599 {
3600
3601 ;
3602 return 0;
3603 }
3604 _ACEOF
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_cv_prog_cc_g=yes
3607 fi
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 fi
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 fi
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 ac_c_werror_flag=$ac_save_c_werror_flag
3614 fi
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3616 $as_echo "$ac_cv_prog_cc_g" >&6; }
3617 if test "$ac_test_CFLAGS" = set; then
3618 CFLAGS=$ac_save_CFLAGS
3619 elif test $ac_cv_prog_cc_g = yes; then
3620 if test "$GCC" = yes; then
3621 CFLAGS="-g -O2"
3622 else
3623 CFLAGS="-g"
3624 fi
3625 else
3626 if test "$GCC" = yes; then
3627 CFLAGS="-O2"
3628 else
3629 CFLAGS=
3630 fi
3631 fi
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3633 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3634 if ${ac_cv_prog_cc_c89+:} false; then :
3635 $as_echo_n "(cached) " >&6
3636 else
3637 ac_cv_prog_cc_c89=no
3638 ac_save_CC=$CC
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3641 #include <stdarg.h>
3642 #include <stdio.h>
3643 struct stat;
3644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3645 struct buf { int x; };
3646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3647 static char *e (p, i)
3648 char **p;
3649 int i;
3650 {
3651 return p[i];
3652 }
3653 static char *f (char * (*g) (char **, int), char **p, ...)
3654 {
3655 char *s;
3656 va_list v;
3657 va_start (v,p);
3658 s = g (p, va_arg (v,int));
3659 va_end (v);
3660 return s;
3661 }
3662
3663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3664 function prototypes and stuff, but not '\xHH' hex character constants.
3665 These don't provoke an error unfortunately, instead are silently treated
3666 as 'x'. The following induces an error, until -std is added to get
3667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3668 array size at least. It's necessary to write '\x00'==0 to get something
3669 that's true only with -std. */
3670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3671
3672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3673 inside strings and character constants. */
3674 #define FOO(x) 'x'
3675 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3676
3677 int test (int i, double x);
3678 struct s1 {int (*f) (int a);};
3679 struct s2 {int (*f) (double a);};
3680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3681 int argc;
3682 char **argv;
3683 int
3684 main ()
3685 {
3686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3687 ;
3688 return 0;
3689 }
3690 _ACEOF
3691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3693 do
3694 CC="$ac_save_CC $ac_arg"
3695 if ac_fn_c_try_compile "$LINENO"; then :
3696 ac_cv_prog_cc_c89=$ac_arg
3697 fi
3698 rm -f core conftest.err conftest.$ac_objext
3699 test "x$ac_cv_prog_cc_c89" != "xno" && break
3700 done
3701 rm -f conftest.$ac_ext
3702 CC=$ac_save_CC
3703
3704 fi
3705 # AC_CACHE_VAL
3706 case "x$ac_cv_prog_cc_c89" in
3707 x)
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3709 $as_echo "none needed" >&6; } ;;
3710 xno)
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3712 $as_echo "unsupported" >&6; } ;;
3713 *)
3714 CC="$CC $ac_cv_prog_cc_c89"
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3716 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3717 esac
3718 if test "x$ac_cv_prog_cc_c89" != xno; then :
3719
3720 fi
3721
3722 ac_ext=c
3723 ac_cpp='$CPP $CPPFLAGS'
3724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727
3728 ac_ext=c
3729 ac_cpp='$CPP $CPPFLAGS'
3730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3734 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3735 if ${am_cv_prog_cc_c_o+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740
3741 int
3742 main ()
3743 {
3744
3745 ;
3746 return 0;
3747 }
3748 _ACEOF
3749 # Make sure it works both with $CC and with simple cc.
3750 # Following AC_PROG_CC_C_O, we do the test twice because some
3751 # compilers refuse to overwrite an existing .o file with -o,
3752 # though they will create one.
3753 am_cv_prog_cc_c_o=yes
3754 for am_i in 1 2; do
3755 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3756 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } \
3760 && test -f conftest2.$ac_objext; then
3761 : OK
3762 else
3763 am_cv_prog_cc_c_o=no
3764 break
3765 fi
3766 done
3767 rm -f core conftest*
3768 unset am_i
3769 fi
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3771 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3772 if test "$am_cv_prog_cc_c_o" != yes; then
3773 # Losing compiler, so override with the script.
3774 # FIXME: It is wrong to rewrite CC.
3775 # But if we don't then we get into trouble of one sort or another.
3776 # A longer-term fix would be to have automake use am__CC in this case,
3777 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3778 CC="$am_aux_dir/compile $CC"
3779 fi
3780 ac_ext=c
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785
3786 DEPDIR="${am__leading_dot}deps"
3787
3788 ac_config_commands="$ac_config_commands depfiles"
3789
3790
3791 am_make=${MAKE-make}
3792 cat > confinc << 'END'
3793 am__doit:
3794 @echo this is the am__doit target
3795 .PHONY: am__doit
3796 END
3797 # If we don't find an include directive, just comment out the code.
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3799 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3800 am__include="#"
3801 am__quote=
3802 _am_result=none
3803 # First try GNU make style include.
3804 echo "include confinc" > confmf
3805 # Ignore all kinds of additional output from 'make'.
3806 case `$am_make -s -f confmf 2> /dev/null` in #(
3807 *the\ am__doit\ target*)
3808 am__include=include
3809 am__quote=
3810 _am_result=GNU
3811 ;;
3812 esac
3813 # Now try BSD make style include.
3814 if test "$am__include" = "#"; then
3815 echo '.include "confinc"' > confmf
3816 case `$am_make -s -f confmf 2> /dev/null` in #(
3817 *the\ am__doit\ target*)
3818 am__include=.include
3819 am__quote="\""
3820 _am_result=BSD
3821 ;;
3822 esac
3823 fi
3824
3825
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3827 $as_echo "$_am_result" >&6; }
3828 rm -f confinc confmf
3829
3830 # Check whether --enable-dependency-tracking was given.
3831 if test "${enable_dependency_tracking+set}" = set; then :
3832 enableval=$enable_dependency_tracking;
3833 fi
3834
3835 if test "x$enable_dependency_tracking" != xno; then
3836 am_depcomp="$ac_aux_dir/depcomp"
3837 AMDEPBACKSLASH='\'
3838 am__nodep='_no'
3839 fi
3840 if test "x$enable_dependency_tracking" != xno; then
3841 AMDEP_TRUE=
3842 AMDEP_FALSE='#'
3843 else
3844 AMDEP_TRUE='#'
3845 AMDEP_FALSE=
3846 fi
3847
3848
3849
3850 depcc="$CC" am_compiler_list=
3851
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3853 $as_echo_n "checking dependency style of $depcc... " >&6; }
3854 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3855 $as_echo_n "(cached) " >&6
3856 else
3857 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3858 # We make a subdir and do the tests there. Otherwise we can end up
3859 # making bogus files that we don't know about and never remove. For
3860 # instance it was reported that on HP-UX the gcc test will end up
3861 # making a dummy file named 'D' -- because '-MD' means "put the output
3862 # in D".
3863 rm -rf conftest.dir
3864 mkdir conftest.dir
3865 # Copy depcomp to subdir because otherwise we won't find it if we're
3866 # using a relative directory.
3867 cp "$am_depcomp" conftest.dir
3868 cd conftest.dir
3869 # We will build objects and dependencies in a subdirectory because
3870 # it helps to detect inapplicable dependency modes. For instance
3871 # both Tru64's cc and ICC support -MD to output dependencies as a
3872 # side effect of compilation, but ICC will put the dependencies in
3873 # the current directory while Tru64 will put them in the object
3874 # directory.
3875 mkdir sub
3876
3877 am_cv_CC_dependencies_compiler_type=none
3878 if test "$am_compiler_list" = ""; then
3879 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3880 fi
3881 am__universal=false
3882 case " $depcc " in #(
3883 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3884 esac
3885
3886 for depmode in $am_compiler_list; do
3887 # Setup a source with many dependencies, because some compilers
3888 # like to wrap large dependency lists on column 80 (with \), and
3889 # we should not choose a depcomp mode which is confused by this.
3890 #
3891 # We need to recreate these files for each test, as the compiler may
3892 # overwrite some of them when testing with obscure command lines.
3893 # This happens at least with the AIX C compiler.
3894 : > sub/conftest.c
3895 for i in 1 2 3 4 5 6; do
3896 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3897 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3898 # Solaris 10 /bin/sh.
3899 echo '/* dummy */' > sub/conftst$i.h
3900 done
3901 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3902
3903 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3904 # mode. It turns out that the SunPro C++ compiler does not properly
3905 # handle '-M -o', and we need to detect this. Also, some Intel
3906 # versions had trouble with output in subdirs.
3907 am__obj=sub/conftest.${OBJEXT-o}
3908 am__minus_obj="-o $am__obj"
3909 case $depmode in
3910 gcc)
3911 # This depmode causes a compiler race in universal mode.
3912 test "$am__universal" = false || continue
3913 ;;
3914 nosideeffect)
3915 # After this tag, mechanisms are not by side-effect, so they'll
3916 # only be used when explicitly requested.
3917 if test "x$enable_dependency_tracking" = xyes; then
3918 continue
3919 else
3920 break
3921 fi
3922 ;;
3923 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3924 # This compiler won't grok '-c -o', but also, the minuso test has
3925 # not run yet. These depmodes are late enough in the game, and
3926 # so weak that their functioning should not be impacted.
3927 am__obj=conftest.${OBJEXT-o}
3928 am__minus_obj=
3929 ;;
3930 none) break ;;
3931 esac
3932 if depmode=$depmode \
3933 source=sub/conftest.c object=$am__obj \
3934 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3935 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3936 >/dev/null 2>conftest.err &&
3937 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3938 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3939 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3940 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3941 # icc doesn't choke on unknown options, it will just issue warnings
3942 # or remarks (even with -Werror). So we grep stderr for any message
3943 # that says an option was ignored or not supported.
3944 # When given -MP, icc 7.0 and 7.1 complain thusly:
3945 # icc: Command line warning: ignoring option '-M'; no argument required
3946 # The diagnosis changed in icc 8.0:
3947 # icc: Command line remark: option '-MP' not supported
3948 if (grep 'ignoring option' conftest.err ||
3949 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3950 am_cv_CC_dependencies_compiler_type=$depmode
3951 break
3952 fi
3953 fi
3954 done
3955
3956 cd ..
3957 rm -rf conftest.dir
3958 else
3959 am_cv_CC_dependencies_compiler_type=none
3960 fi
3961
3962 fi
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3964 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3965 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3966
3967 if
3968 test "x$enable_dependency_tracking" != xno \
3969 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3970 am__fastdepCC_TRUE=
3971 am__fastdepCC_FALSE='#'
3972 else
3973 am__fastdepCC_TRUE='#'
3974 am__fastdepCC_FALSE=
3975 fi
3976
3977
3978
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3980 $as_echo_n "checking whether ln -s works... " >&6; }
3981 LN_S=$as_ln_s
3982 if test "$LN_S" = "ln -s"; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3984 $as_echo "yes" >&6; }
3985 else
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3987 $as_echo "no, using $LN_S" >&6; }
3988 fi
3989
3990 case `pwd` in
3991 *\ * | *\ *)
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3993 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3994 esac
3995
3996
3997
3998 macro_version='2.4.6'
3999 macro_revision='2.4.6'
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013 ltmain=$ac_aux_dir/ltmain.sh
4014
4015 # Make sure we can run config.sub.
4016 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4017 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4018
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4020 $as_echo_n "checking build system type... " >&6; }
4021 if ${ac_cv_build+:} false; then :
4022 $as_echo_n "(cached) " >&6
4023 else
4024 ac_build_alias=$build_alias
4025 test "x$ac_build_alias" = x &&
4026 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4027 test "x$ac_build_alias" = x &&
4028 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4029 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4030 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4031
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4034 $as_echo "$ac_cv_build" >&6; }
4035 case $ac_cv_build in
4036 *-*-*) ;;
4037 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4038 esac
4039 build=$ac_cv_build
4040 ac_save_IFS=$IFS; IFS='-'
4041 set x $ac_cv_build
4042 shift
4043 build_cpu=$1
4044 build_vendor=$2
4045 shift; shift
4046 # Remember, the first character of IFS is used to create $*,
4047 # except with old shells:
4048 build_os=$*
4049 IFS=$ac_save_IFS
4050 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4051
4052
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4054 $as_echo_n "checking host system type... " >&6; }
4055 if ${ac_cv_host+:} false; then :
4056 $as_echo_n "(cached) " >&6
4057 else
4058 if test "x$host_alias" = x; then
4059 ac_cv_host=$ac_cv_build
4060 else
4061 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4062 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4063 fi
4064
4065 fi
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4067 $as_echo "$ac_cv_host" >&6; }
4068 case $ac_cv_host in
4069 *-*-*) ;;
4070 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4071 esac
4072 host=$ac_cv_host
4073 ac_save_IFS=$IFS; IFS='-'
4074 set x $ac_cv_host
4075 shift
4076 host_cpu=$1
4077 host_vendor=$2
4078 shift; shift
4079 # Remember, the first character of IFS is used to create $*,
4080 # except with old shells:
4081 host_os=$*
4082 IFS=$ac_save_IFS
4083 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4084
4085
4086 # Backslashify metacharacters that are still active within
4087 # double-quoted strings.
4088 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4089
4090 # Same as above, but do not quote variable references.
4091 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4092
4093 # Sed substitution to delay expansion of an escaped shell variable in a
4094 # double_quote_subst'ed string.
4095 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4096
4097 # Sed substitution to delay expansion of an escaped single quote.
4098 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4099
4100 # Sed substitution to avoid accidental globbing in evaled expressions
4101 no_glob_subst='s/\*/\\\*/g'
4102
4103 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4104 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4105 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4106
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4108 $as_echo_n "checking how to print strings... " >&6; }
4109 # Test print first, because it will be a builtin if present.
4110 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4111 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4112 ECHO='print -r --'
4113 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4114 ECHO='printf %s\n'
4115 else
4116 # Use this function as a fallback that always works.
4117 func_fallback_echo ()
4118 {
4119 eval 'cat <<_LTECHO_EOF
4120 $1
4121 _LTECHO_EOF'
4122 }
4123 ECHO='func_fallback_echo'
4124 fi
4125
4126 # func_echo_all arg...
4127 # Invoke $ECHO with all args, space-separated.
4128 func_echo_all ()
4129 {
4130 $ECHO ""
4131 }
4132
4133 case $ECHO in
4134 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4135 $as_echo "printf" >&6; } ;;
4136 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4137 $as_echo "print -r" >&6; } ;;
4138 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4139 $as_echo "cat" >&6; } ;;
4140 esac
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4156 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4157 if ${ac_cv_path_SED+:} false; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4161 for ac_i in 1 2 3 4 5 6 7; do
4162 ac_script="$ac_script$as_nl$ac_script"
4163 done
4164 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4165 { ac_script=; unset ac_script;}
4166 if test -z "$SED"; then
4167 ac_path_SED_found=false
4168 # Loop through the user's path and test for each of PROGNAME-LIST
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4171 do
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_prog in sed gsed; do
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4177 as_fn_executable_p "$ac_path_SED" || continue
4178 # Check for GNU ac_path_SED and select it if it is found.
4179 # Check for GNU $ac_path_SED
4180 case `"$ac_path_SED" --version 2>&1` in
4181 *GNU*)
4182 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4183 *)
4184 ac_count=0
4185 $as_echo_n 0123456789 >"conftest.in"
4186 while :
4187 do
4188 cat "conftest.in" "conftest.in" >"conftest.tmp"
4189 mv "conftest.tmp" "conftest.in"
4190 cp "conftest.in" "conftest.nl"
4191 $as_echo '' >> "conftest.nl"
4192 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4194 as_fn_arith $ac_count + 1 && ac_count=$as_val
4195 if test $ac_count -gt ${ac_path_SED_max-0}; then
4196 # Best one so far, save it but keep looking for a better one
4197 ac_cv_path_SED="$ac_path_SED"
4198 ac_path_SED_max=$ac_count
4199 fi
4200 # 10*(2^10) chars as input seems more than enough
4201 test $ac_count -gt 10 && break
4202 done
4203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4204 esac
4205
4206 $ac_path_SED_found && break 3
4207 done
4208 done
4209 done
4210 IFS=$as_save_IFS
4211 if test -z "$ac_cv_path_SED"; then
4212 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4213 fi
4214 else
4215 ac_cv_path_SED=$SED
4216 fi
4217
4218 fi
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4220 $as_echo "$ac_cv_path_SED" >&6; }
4221 SED="$ac_cv_path_SED"
4222 rm -f conftest.sed
4223
4224 test -z "$SED" && SED=sed
4225 Xsed="$SED -e 1s/^X//"
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4238 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4239 if ${ac_cv_path_GREP+:} false; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 if test -z "$GREP"; then
4243 ac_path_GREP_found=false
4244 # Loop through the user's path and test for each of PROGNAME-LIST
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4247 do
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_prog in grep ggrep; do
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4253 as_fn_executable_p "$ac_path_GREP" || continue
4254 # Check for GNU ac_path_GREP and select it if it is found.
4255 # Check for GNU $ac_path_GREP
4256 case `"$ac_path_GREP" --version 2>&1` in
4257 *GNU*)
4258 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4259 *)
4260 ac_count=0
4261 $as_echo_n 0123456789 >"conftest.in"
4262 while :
4263 do
4264 cat "conftest.in" "conftest.in" >"conftest.tmp"
4265 mv "conftest.tmp" "conftest.in"
4266 cp "conftest.in" "conftest.nl"
4267 $as_echo 'GREP' >> "conftest.nl"
4268 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4270 as_fn_arith $ac_count + 1 && ac_count=$as_val
4271 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4272 # Best one so far, save it but keep looking for a better one
4273 ac_cv_path_GREP="$ac_path_GREP"
4274 ac_path_GREP_max=$ac_count
4275 fi
4276 # 10*(2^10) chars as input seems more than enough
4277 test $ac_count -gt 10 && break
4278 done
4279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4280 esac
4281
4282 $ac_path_GREP_found && break 3
4283 done
4284 done
4285 done
4286 IFS=$as_save_IFS
4287 if test -z "$ac_cv_path_GREP"; then
4288 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4289 fi
4290 else
4291 ac_cv_path_GREP=$GREP
4292 fi
4293
4294 fi
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4296 $as_echo "$ac_cv_path_GREP" >&6; }
4297 GREP="$ac_cv_path_GREP"
4298
4299
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4301 $as_echo_n "checking for egrep... " >&6; }
4302 if ${ac_cv_path_EGREP+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4306 then ac_cv_path_EGREP="$GREP -E"
4307 else
4308 if test -z "$EGREP"; then
4309 ac_path_EGREP_found=false
4310 # Loop through the user's path and test for each of PROGNAME-LIST
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4313 do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_prog in egrep; do
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4319 as_fn_executable_p "$ac_path_EGREP" || continue
4320 # Check for GNU ac_path_EGREP and select it if it is found.
4321 # Check for GNU $ac_path_EGREP
4322 case `"$ac_path_EGREP" --version 2>&1` in
4323 *GNU*)
4324 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4325 *)
4326 ac_count=0
4327 $as_echo_n 0123456789 >"conftest.in"
4328 while :
4329 do
4330 cat "conftest.in" "conftest.in" >"conftest.tmp"
4331 mv "conftest.tmp" "conftest.in"
4332 cp "conftest.in" "conftest.nl"
4333 $as_echo 'EGREP' >> "conftest.nl"
4334 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4336 as_fn_arith $ac_count + 1 && ac_count=$as_val
4337 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4338 # Best one so far, save it but keep looking for a better one
4339 ac_cv_path_EGREP="$ac_path_EGREP"
4340 ac_path_EGREP_max=$ac_count
4341 fi
4342 # 10*(2^10) chars as input seems more than enough
4343 test $ac_count -gt 10 && break
4344 done
4345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4346 esac
4347
4348 $ac_path_EGREP_found && break 3
4349 done
4350 done
4351 done
4352 IFS=$as_save_IFS
4353 if test -z "$ac_cv_path_EGREP"; then
4354 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4355 fi
4356 else
4357 ac_cv_path_EGREP=$EGREP
4358 fi
4359
4360 fi
4361 fi
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4363 $as_echo "$ac_cv_path_EGREP" >&6; }
4364 EGREP="$ac_cv_path_EGREP"
4365
4366
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4368 $as_echo_n "checking for fgrep... " >&6; }
4369 if ${ac_cv_path_FGREP+:} false; then :
4370 $as_echo_n "(cached) " >&6
4371 else
4372 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4373 then ac_cv_path_FGREP="$GREP -F"
4374 else
4375 if test -z "$FGREP"; then
4376 ac_path_FGREP_found=false
4377 # Loop through the user's path and test for each of PROGNAME-LIST
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4380 do
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_prog in fgrep; do
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4386 as_fn_executable_p "$ac_path_FGREP" || continue
4387 # Check for GNU ac_path_FGREP and select it if it is found.
4388 # Check for GNU $ac_path_FGREP
4389 case `"$ac_path_FGREP" --version 2>&1` in
4390 *GNU*)
4391 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4392 *)
4393 ac_count=0
4394 $as_echo_n 0123456789 >"conftest.in"
4395 while :
4396 do
4397 cat "conftest.in" "conftest.in" >"conftest.tmp"
4398 mv "conftest.tmp" "conftest.in"
4399 cp "conftest.in" "conftest.nl"
4400 $as_echo 'FGREP' >> "conftest.nl"
4401 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4402 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4403 as_fn_arith $ac_count + 1 && ac_count=$as_val
4404 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4405 # Best one so far, save it but keep looking for a better one
4406 ac_cv_path_FGREP="$ac_path_FGREP"
4407 ac_path_FGREP_max=$ac_count
4408 fi
4409 # 10*(2^10) chars as input seems more than enough
4410 test $ac_count -gt 10 && break
4411 done
4412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4413 esac
4414
4415 $ac_path_FGREP_found && break 3
4416 done
4417 done
4418 done
4419 IFS=$as_save_IFS
4420 if test -z "$ac_cv_path_FGREP"; then
4421 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4422 fi
4423 else
4424 ac_cv_path_FGREP=$FGREP
4425 fi
4426
4427 fi
4428 fi
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4430 $as_echo "$ac_cv_path_FGREP" >&6; }
4431 FGREP="$ac_cv_path_FGREP"
4432
4433
4434 test -z "$GREP" && GREP=grep
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454 # Check whether --with-gnu-ld was given.
4455 if test "${with_gnu_ld+set}" = set; then :
4456 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4457 else
4458 with_gnu_ld=no
4459 fi
4460
4461 ac_prog=ld
4462 if test yes = "$GCC"; then
4463 # Check if gcc -print-prog-name=ld gives a path.
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4465 $as_echo_n "checking for ld used by $CC... " >&6; }
4466 case $host in
4467 *-*-mingw*)
4468 # gcc leaves a trailing carriage return, which upsets mingw
4469 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4470 *)
4471 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4472 esac
4473 case $ac_prog in
4474 # Accept absolute paths.
4475 [\\/]* | ?:[\\/]*)
4476 re_direlt='/[^/][^/]*/\.\./'
4477 # Canonicalize the pathname of ld
4478 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4479 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4480 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4481 done
4482 test -z "$LD" && LD=$ac_prog
4483 ;;
4484 "")
4485 # If it fails, then pretend we aren't using GCC.
4486 ac_prog=ld
4487 ;;
4488 *)
4489 # If it is relative, then search for the first ld in PATH.
4490 with_gnu_ld=unknown
4491 ;;
4492 esac
4493 elif test yes = "$with_gnu_ld"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4495 $as_echo_n "checking for GNU ld... " >&6; }
4496 else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4498 $as_echo_n "checking for non-GNU ld... " >&6; }
4499 fi
4500 if ${lt_cv_path_LD+:} false; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 if test -z "$LD"; then
4504 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4505 for ac_dir in $PATH; do
4506 IFS=$lt_save_ifs
4507 test -z "$ac_dir" && ac_dir=.
4508 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4509 lt_cv_path_LD=$ac_dir/$ac_prog
4510 # Check to see if the program is GNU ld. I'd rather use --version,
4511 # but apparently some variants of GNU ld only accept -v.
4512 # Break only if it was the GNU/non-GNU ld that we prefer.
4513 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4514 *GNU* | *'with BFD'*)
4515 test no != "$with_gnu_ld" && break
4516 ;;
4517 *)
4518 test yes != "$with_gnu_ld" && break
4519 ;;
4520 esac
4521 fi
4522 done
4523 IFS=$lt_save_ifs
4524 else
4525 lt_cv_path_LD=$LD # Let the user override the test with a path.
4526 fi
4527 fi
4528
4529 LD=$lt_cv_path_LD
4530 if test -n "$LD"; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4532 $as_echo "$LD" >&6; }
4533 else
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 $as_echo "no" >&6; }
4536 fi
4537 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4539 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4540 if ${lt_cv_prog_gnu_ld+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4544 case `$LD -v 2>&1 </dev/null` in
4545 *GNU* | *'with BFD'*)
4546 lt_cv_prog_gnu_ld=yes
4547 ;;
4548 *)
4549 lt_cv_prog_gnu_ld=no
4550 ;;
4551 esac
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4554 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4555 with_gnu_ld=$lt_cv_prog_gnu_ld
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4566 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4567 if ${lt_cv_path_NM+:} false; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 if test -n "$NM"; then
4571 # Let the user override the test.
4572 lt_cv_path_NM=$NM
4573 else
4574 lt_nm_to_check=${ac_tool_prefix}nm
4575 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4576 lt_nm_to_check="$lt_nm_to_check nm"
4577 fi
4578 for lt_tmp_nm in $lt_nm_to_check; do
4579 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4580 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4581 IFS=$lt_save_ifs
4582 test -z "$ac_dir" && ac_dir=.
4583 tmp_nm=$ac_dir/$lt_tmp_nm
4584 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4585 # Check to see if the nm accepts a BSD-compat flag.
4586 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4587 # nm: unknown option "B" ignored
4588 # Tru64's nm complains that /dev/null is an invalid object file
4589 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4590 case $build_os in
4591 mingw*) lt_bad_file=conftest.nm/nofile ;;
4592 *) lt_bad_file=/dev/null ;;
4593 esac
4594 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4595 *$lt_bad_file* | *'Invalid file or object type'*)
4596 lt_cv_path_NM="$tmp_nm -B"
4597 break 2
4598 ;;
4599 *)
4600 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4601 */dev/null*)
4602 lt_cv_path_NM="$tmp_nm -p"
4603 break 2
4604 ;;
4605 *)
4606 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4607 continue # so that we can try to find one that supports BSD flags
4608 ;;
4609 esac
4610 ;;
4611 esac
4612 fi
4613 done
4614 IFS=$lt_save_ifs
4615 done
4616 : ${lt_cv_path_NM=no}
4617 fi
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4620 $as_echo "$lt_cv_path_NM" >&6; }
4621 if test no != "$lt_cv_path_NM"; then
4622 NM=$lt_cv_path_NM
4623 else
4624 # Didn't find any BSD compatible name lister, look for dumpbin.
4625 if test -n "$DUMPBIN"; then :
4626 # Let the user override the test.
4627 else
4628 if test -n "$ac_tool_prefix"; then
4629 for ac_prog in dumpbin "link -dump"
4630 do
4631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_prog_DUMPBIN+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 if test -n "$DUMPBIN"; then
4639 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4643 do
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4651 fi
4652 done
4653 done
4654 IFS=$as_save_IFS
4655
4656 fi
4657 fi
4658 DUMPBIN=$ac_cv_prog_DUMPBIN
4659 if test -n "$DUMPBIN"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4661 $as_echo "$DUMPBIN" >&6; }
4662 else
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4665 fi
4666
4667
4668 test -n "$DUMPBIN" && break
4669 done
4670 fi
4671 if test -z "$DUMPBIN"; then
4672 ac_ct_DUMPBIN=$DUMPBIN
4673 for ac_prog in dumpbin "link -dump"
4674 do
4675 # Extract the first word of "$ac_prog", so it can be a program name with args.
4676 set dummy $ac_prog; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 if test -n "$ac_ct_DUMPBIN"; then
4683 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4684 else
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4687 do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4692 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4695 fi
4696 done
4697 done
4698 IFS=$as_save_IFS
4699
4700 fi
4701 fi
4702 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4703 if test -n "$ac_ct_DUMPBIN"; then
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4705 $as_echo "$ac_ct_DUMPBIN" >&6; }
4706 else
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4709 fi
4710
4711
4712 test -n "$ac_ct_DUMPBIN" && break
4713 done
4714
4715 if test "x$ac_ct_DUMPBIN" = x; then
4716 DUMPBIN=":"
4717 else
4718 case $cross_compiling:$ac_tool_warned in
4719 yes:)
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4722 ac_tool_warned=yes ;;
4723 esac
4724 DUMPBIN=$ac_ct_DUMPBIN
4725 fi
4726 fi
4727
4728 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4729 *COFF*)
4730 DUMPBIN="$DUMPBIN -symbols -headers"
4731 ;;
4732 *)
4733 DUMPBIN=:
4734 ;;
4735 esac
4736 fi
4737
4738 if test : != "$DUMPBIN"; then
4739 NM=$DUMPBIN
4740 fi
4741 fi
4742 test -z "$NM" && NM=nm
4743
4744
4745
4746
4747
4748
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4750 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4751 if ${lt_cv_nm_interface+:} false; then :
4752 $as_echo_n "(cached) " >&6
4753 else
4754 lt_cv_nm_interface="BSD nm"
4755 echo "int some_variable = 0;" > conftest.$ac_ext
4756 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4757 (eval "$ac_compile" 2>conftest.err)
4758 cat conftest.err >&5
4759 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4760 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4761 cat conftest.err >&5
4762 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4763 cat conftest.out >&5
4764 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4765 lt_cv_nm_interface="MS dumpbin"
4766 fi
4767 rm -f conftest*
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4770 $as_echo "$lt_cv_nm_interface" >&6; }
4771
4772 # find the maximum length of command line arguments
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4774 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4775 if ${lt_cv_sys_max_cmd_len+:} false; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 i=0
4779 teststring=ABCD
4780
4781 case $build_os in
4782 msdosdjgpp*)
4783 # On DJGPP, this test can blow up pretty badly due to problems in libc
4784 # (any single argument exceeding 2000 bytes causes a buffer overrun
4785 # during glob expansion). Even if it were fixed, the result of this
4786 # check would be larger than it should be.
4787 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4788 ;;
4789
4790 gnu*)
4791 # Under GNU Hurd, this test is not required because there is
4792 # no limit to the length of command line arguments.
4793 # Libtool will interpret -1 as no limit whatsoever
4794 lt_cv_sys_max_cmd_len=-1;
4795 ;;
4796
4797 cygwin* | mingw* | cegcc*)
4798 # On Win9x/ME, this test blows up -- it succeeds, but takes
4799 # about 5 minutes as the teststring grows exponentially.
4800 # Worse, since 9x/ME are not pre-emptively multitasking,
4801 # you end up with a "frozen" computer, even though with patience
4802 # the test eventually succeeds (with a max line length of 256k).
4803 # Instead, let's just punt: use the minimum linelength reported by
4804 # all of the supported platforms: 8192 (on NT/2K/XP).
4805 lt_cv_sys_max_cmd_len=8192;
4806 ;;
4807
4808 mint*)
4809 # On MiNT this can take a long time and run out of memory.
4810 lt_cv_sys_max_cmd_len=8192;
4811 ;;
4812
4813 amigaos*)
4814 # On AmigaOS with pdksh, this test takes hours, literally.
4815 # So we just punt and use a minimum line length of 8192.
4816 lt_cv_sys_max_cmd_len=8192;
4817 ;;
4818
4819 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4820 # This has been around since 386BSD, at least. Likely further.
4821 if test -x /sbin/sysctl; then
4822 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4823 elif test -x /usr/sbin/sysctl; then
4824 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4825 else
4826 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4827 fi
4828 # And add a safety zone
4829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4830 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4831 ;;
4832
4833 interix*)
4834 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4835 lt_cv_sys_max_cmd_len=196608
4836 ;;
4837
4838 os2*)
4839 # The test takes a long time on OS/2.
4840 lt_cv_sys_max_cmd_len=8192
4841 ;;
4842
4843 osf*)
4844 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4845 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4846 # nice to cause kernel panics so lets avoid the loop below.
4847 # First set a reasonable default.
4848 lt_cv_sys_max_cmd_len=16384
4849 #
4850 if test -x /sbin/sysconfig; then
4851 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4852 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4853 esac
4854 fi
4855 ;;
4856 sco3.2v5*)
4857 lt_cv_sys_max_cmd_len=102400
4858 ;;
4859 sysv5* | sco5v6* | sysv4.2uw2*)
4860 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4861 if test -n "$kargmax"; then
4862 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4863 else
4864 lt_cv_sys_max_cmd_len=32768
4865 fi
4866 ;;
4867 *)
4868 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4869 if test -n "$lt_cv_sys_max_cmd_len" && \
4870 test undefined != "$lt_cv_sys_max_cmd_len"; then
4871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4872 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4873 else
4874 # Make teststring a little bigger before we do anything with it.
4875 # a 1K string should be a reasonable start.
4876 for i in 1 2 3 4 5 6 7 8; do
4877 teststring=$teststring$teststring
4878 done
4879 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4880 # If test is not a shell built-in, we'll probably end up computing a
4881 # maximum length that is only half of the actual maximum length, but
4882 # we can't tell.
4883 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4884 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4885 test 17 != "$i" # 1/2 MB should be enough
4886 do
4887 i=`expr $i + 1`
4888 teststring=$teststring$teststring
4889 done
4890 # Only check the string length outside the loop.
4891 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4892 teststring=
4893 # Add a significant safety factor because C++ compilers can tack on
4894 # massive amounts of additional arguments before passing them to the
4895 # linker. It appears as though 1/2 is a usable value.
4896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4897 fi
4898 ;;
4899 esac
4900
4901 fi
4902
4903 if test -n "$lt_cv_sys_max_cmd_len"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4905 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4906 else
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4908 $as_echo "none" >&6; }
4909 fi
4910 max_cmd_len=$lt_cv_sys_max_cmd_len
4911
4912
4913
4914
4915
4916
4917 : ${CP="cp -f"}
4918 : ${MV="mv -f"}
4919 : ${RM="rm -f"}
4920
4921 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4922 lt_unset=unset
4923 else
4924 lt_unset=false
4925 fi
4926
4927
4928
4929
4930
4931 # test EBCDIC or ASCII
4932 case `echo X|tr X '\101'` in
4933 A) # ASCII based system
4934 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4935 lt_SP2NL='tr \040 \012'
4936 lt_NL2SP='tr \015\012 \040\040'
4937 ;;
4938 *) # EBCDIC based system
4939 lt_SP2NL='tr \100 \n'
4940 lt_NL2SP='tr \r\n \100\100'
4941 ;;
4942 esac
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4953 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4954 if ${lt_cv_to_host_file_cmd+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 case $host in
4958 *-*-mingw* )
4959 case $build in
4960 *-*-mingw* ) # actually msys
4961 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4962 ;;
4963 *-*-cygwin* )
4964 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4965 ;;
4966 * ) # otherwise, assume *nix
4967 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4968 ;;
4969 esac
4970 ;;
4971 *-*-cygwin* )
4972 case $build in
4973 *-*-mingw* ) # actually msys
4974 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4975 ;;
4976 *-*-cygwin* )
4977 lt_cv_to_host_file_cmd=func_convert_file_noop
4978 ;;
4979 * ) # otherwise, assume *nix
4980 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4981 ;;
4982 esac
4983 ;;
4984 * ) # unhandled hosts (and "normal" native builds)
4985 lt_cv_to_host_file_cmd=func_convert_file_noop
4986 ;;
4987 esac
4988
4989 fi
4990
4991 to_host_file_cmd=$lt_cv_to_host_file_cmd
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4993 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4994
4995
4996
4997
4998
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5000 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5001 if ${lt_cv_to_tool_file_cmd+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 #assume ordinary cross tools, or native build.
5005 lt_cv_to_tool_file_cmd=func_convert_file_noop
5006 case $host in
5007 *-*-mingw* )
5008 case $build in
5009 *-*-mingw* ) # actually msys
5010 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5011 ;;
5012 esac
5013 ;;
5014 esac
5015
5016 fi
5017
5018 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5020 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5021
5022
5023
5024
5025
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5027 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5028 if ${lt_cv_ld_reload_flag+:} false; then :
5029 $as_echo_n "(cached) " >&6
5030 else
5031 lt_cv_ld_reload_flag='-r'
5032 fi
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5034 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5035 reload_flag=$lt_cv_ld_reload_flag
5036 case $reload_flag in
5037 "" | " "*) ;;
5038 *) reload_flag=" $reload_flag" ;;
5039 esac
5040 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5041 case $host_os in
5042 cygwin* | mingw* | pw32* | cegcc*)
5043 if test yes != "$GCC"; then
5044 reload_cmds=false
5045 fi
5046 ;;
5047 darwin*)
5048 if test yes = "$GCC"; then
5049 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5050 else
5051 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5052 fi
5053 ;;
5054 esac
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064 if test -n "$ac_tool_prefix"; then
5065 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5066 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 $as_echo_n "checking for $ac_word... " >&6; }
5069 if ${ac_cv_prog_OBJDUMP+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 if test -n "$OBJDUMP"; then
5073 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5074 else
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5077 do
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5082 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5085 fi
5086 done
5087 done
5088 IFS=$as_save_IFS
5089
5090 fi
5091 fi
5092 OBJDUMP=$ac_cv_prog_OBJDUMP
5093 if test -n "$OBJDUMP"; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5095 $as_echo "$OBJDUMP" >&6; }
5096 else
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5099 fi
5100
5101
5102 fi
5103 if test -z "$ac_cv_prog_OBJDUMP"; then
5104 ac_ct_OBJDUMP=$OBJDUMP
5105 # Extract the first word of "objdump", so it can be a program name with args.
5106 set dummy objdump; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -n "$ac_ct_OBJDUMP"; then
5113 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5125 fi
5126 done
5127 done
5128 IFS=$as_save_IFS
5129
5130 fi
5131 fi
5132 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5133 if test -n "$ac_ct_OBJDUMP"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5135 $as_echo "$ac_ct_OBJDUMP" >&6; }
5136 else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5139 fi
5140
5141 if test "x$ac_ct_OBJDUMP" = x; then
5142 OBJDUMP="false"
5143 else
5144 case $cross_compiling:$ac_tool_warned in
5145 yes:)
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5148 ac_tool_warned=yes ;;
5149 esac
5150 OBJDUMP=$ac_ct_OBJDUMP
5151 fi
5152 else
5153 OBJDUMP="$ac_cv_prog_OBJDUMP"
5154 fi
5155
5156 test -z "$OBJDUMP" && OBJDUMP=objdump
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5167 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5168 if ${lt_cv_deplibs_check_method+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 lt_cv_file_magic_cmd='$MAGIC_CMD'
5172 lt_cv_file_magic_test_file=
5173 lt_cv_deplibs_check_method='unknown'
5174 # Need to set the preceding variable on all platforms that support
5175 # interlibrary dependencies.
5176 # 'none' -- dependencies not supported.
5177 # 'unknown' -- same as none, but documents that we really don't know.
5178 # 'pass_all' -- all dependencies passed with no checks.
5179 # 'test_compile' -- check by making test program.
5180 # 'file_magic [[regex]]' -- check by looking for files in library path
5181 # that responds to the $file_magic_cmd with a given extended regex.
5182 # If you have 'file' or equivalent on your system and you're not sure
5183 # whether 'pass_all' will *always* work, you probably want this one.
5184
5185 case $host_os in
5186 aix[4-9]*)
5187 lt_cv_deplibs_check_method=pass_all
5188 ;;
5189
5190 beos*)
5191 lt_cv_deplibs_check_method=pass_all
5192 ;;
5193
5194 bsdi[45]*)
5195 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5196 lt_cv_file_magic_cmd='/usr/bin/file -L'
5197 lt_cv_file_magic_test_file=/shlib/libc.so
5198 ;;
5199
5200 cygwin*)
5201 # func_win32_libid is a shell function defined in ltmain.sh
5202 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5203 lt_cv_file_magic_cmd='func_win32_libid'
5204 ;;
5205
5206 mingw* | pw32*)
5207 # Base MSYS/MinGW do not provide the 'file' command needed by
5208 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5209 # unless we find 'file', for example because we are cross-compiling.
5210 if ( file / ) >/dev/null 2>&1; then
5211 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5212 lt_cv_file_magic_cmd='func_win32_libid'
5213 else
5214 # Keep this pattern in sync with the one in func_win32_libid.
5215 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5216 lt_cv_file_magic_cmd='$OBJDUMP -f'
5217 fi
5218 ;;
5219
5220 cegcc*)
5221 # use the weaker test based on 'objdump'. See mingw*.
5222 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5223 lt_cv_file_magic_cmd='$OBJDUMP -f'
5224 ;;
5225
5226 darwin* | rhapsody*)
5227 lt_cv_deplibs_check_method=pass_all
5228 ;;
5229
5230 freebsd* | dragonfly*)
5231 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5232 case $host_cpu in
5233 i*86 )
5234 # Not sure whether the presence of OpenBSD here was a mistake.
5235 # Let's accept both of them until this is cleared up.
5236 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5237 lt_cv_file_magic_cmd=/usr/bin/file
5238 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5239 ;;
5240 esac
5241 else
5242 lt_cv_deplibs_check_method=pass_all
5243 fi
5244 ;;
5245
5246 haiku*)
5247 lt_cv_deplibs_check_method=pass_all
5248 ;;
5249
5250 hpux10.20* | hpux11*)
5251 lt_cv_file_magic_cmd=/usr/bin/file
5252 case $host_cpu in
5253 ia64*)
5254 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5255 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5256 ;;
5257 hppa*64*)
5258 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]'
5259 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5260 ;;
5261 *)
5262 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5263 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5264 ;;
5265 esac
5266 ;;
5267
5268 interix[3-9]*)
5269 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5271 ;;
5272
5273 irix5* | irix6* | nonstopux*)
5274 case $LD in
5275 *-32|*"-32 ") libmagic=32-bit;;
5276 *-n32|*"-n32 ") libmagic=N32;;
5277 *-64|*"-64 ") libmagic=64-bit;;
5278 *) libmagic=never-match;;
5279 esac
5280 lt_cv_deplibs_check_method=pass_all
5281 ;;
5282
5283 # This must be glibc/ELF.
5284 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5285 lt_cv_deplibs_check_method=pass_all
5286 ;;
5287
5288 netbsd*)
5289 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5291 else
5292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5293 fi
5294 ;;
5295
5296 newos6*)
5297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5298 lt_cv_file_magic_cmd=/usr/bin/file
5299 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5300 ;;
5301
5302 *nto* | *qnx*)
5303 lt_cv_deplibs_check_method=pass_all
5304 ;;
5305
5306 openbsd* | bitrig*)
5307 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5309 else
5310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5311 fi
5312 ;;
5313
5314 osf3* | osf4* | osf5*)
5315 lt_cv_deplibs_check_method=pass_all
5316 ;;
5317
5318 rdos*)
5319 lt_cv_deplibs_check_method=pass_all
5320 ;;
5321
5322 solaris*)
5323 lt_cv_deplibs_check_method=pass_all
5324 ;;
5325
5326 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5327 lt_cv_deplibs_check_method=pass_all
5328 ;;
5329
5330 sysv4 | sysv4.3*)
5331 case $host_vendor in
5332 motorola)
5333 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]'
5334 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5335 ;;
5336 ncr)
5337 lt_cv_deplibs_check_method=pass_all
5338 ;;
5339 sequent)
5340 lt_cv_file_magic_cmd='/bin/file'
5341 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5342 ;;
5343 sni)
5344 lt_cv_file_magic_cmd='/bin/file'
5345 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5346 lt_cv_file_magic_test_file=/lib/libc.so
5347 ;;
5348 siemens)
5349 lt_cv_deplibs_check_method=pass_all
5350 ;;
5351 pc)
5352 lt_cv_deplibs_check_method=pass_all
5353 ;;
5354 esac
5355 ;;
5356
5357 tpf*)
5358 lt_cv_deplibs_check_method=pass_all
5359 ;;
5360 os2*)
5361 lt_cv_deplibs_check_method=pass_all
5362 ;;
5363 esac
5364
5365 fi
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5367 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5368
5369 file_magic_glob=
5370 want_nocaseglob=no
5371 if test "$build" = "$host"; then
5372 case $host_os in
5373 mingw* | pw32*)
5374 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5375 want_nocaseglob=yes
5376 else
5377 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5378 fi
5379 ;;
5380 esac
5381 fi
5382
5383 file_magic_cmd=$lt_cv_file_magic_cmd
5384 deplibs_check_method=$lt_cv_deplibs_check_method
5385 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408 if test -n "$ac_tool_prefix"; then
5409 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5410 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_prog_DLLTOOL+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 if test -n "$DLLTOOL"; then
5417 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5418 else
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5421 do
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5429 fi
5430 done
5431 done
5432 IFS=$as_save_IFS
5433
5434 fi
5435 fi
5436 DLLTOOL=$ac_cv_prog_DLLTOOL
5437 if test -n "$DLLTOOL"; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5439 $as_echo "$DLLTOOL" >&6; }
5440 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5443 fi
5444
5445
5446 fi
5447 if test -z "$ac_cv_prog_DLLTOOL"; then
5448 ac_ct_DLLTOOL=$DLLTOOL
5449 # Extract the first word of "dlltool", so it can be a program name with args.
5450 set dummy dlltool; ac_word=$2
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452 $as_echo_n "checking for $ac_word... " >&6; }
5453 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 if test -n "$ac_ct_DLLTOOL"; then
5457 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5458 else
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5461 do
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 break 2
5469 fi
5470 done
5471 done
5472 IFS=$as_save_IFS
5473
5474 fi
5475 fi
5476 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5477 if test -n "$ac_ct_DLLTOOL"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5479 $as_echo "$ac_ct_DLLTOOL" >&6; }
5480 else
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5483 fi
5484
5485 if test "x$ac_ct_DLLTOOL" = x; then
5486 DLLTOOL="false"
5487 else
5488 case $cross_compiling:$ac_tool_warned in
5489 yes:)
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5492 ac_tool_warned=yes ;;
5493 esac
5494 DLLTOOL=$ac_ct_DLLTOOL
5495 fi
5496 else
5497 DLLTOOL="$ac_cv_prog_DLLTOOL"
5498 fi
5499
5500 test -z "$DLLTOOL" && DLLTOOL=dlltool
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5512 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5513 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 lt_cv_sharedlib_from_linklib_cmd='unknown'
5517
5518 case $host_os in
5519 cygwin* | mingw* | pw32* | cegcc*)
5520 # two different shell functions defined in ltmain.sh;
5521 # decide which one to use based on capabilities of $DLLTOOL
5522 case `$DLLTOOL --help 2>&1` in
5523 *--identify-strict*)
5524 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5525 ;;
5526 *)
5527 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5528 ;;
5529 esac
5530 ;;
5531 *)
5532 # fallback: assume linklib IS sharedlib
5533 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5534 ;;
5535 esac
5536
5537 fi
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5539 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5540 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5541 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5542
5543
5544
5545
5546
5547
5548
5549
5550 if test -n "$ac_tool_prefix"; then
5551 for ac_prog in ar
5552 do
5553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if ${ac_cv_prog_AR+:} false; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 if test -n "$AR"; then
5561 ac_cv_prog_AR="$AR" # Let the user override the test.
5562 else
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5565 do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5570 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5573 fi
5574 done
5575 done
5576 IFS=$as_save_IFS
5577
5578 fi
5579 fi
5580 AR=$ac_cv_prog_AR
5581 if test -n "$AR"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5583 $as_echo "$AR" >&6; }
5584 else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5587 fi
5588
5589
5590 test -n "$AR" && break
5591 done
5592 fi
5593 if test -z "$AR"; then
5594 ac_ct_AR=$AR
5595 for ac_prog in ar
5596 do
5597 # Extract the first word of "$ac_prog", so it can be a program name with args.
5598 set dummy $ac_prog; ac_word=$2
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5600 $as_echo_n "checking for $ac_word... " >&6; }
5601 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 if test -n "$ac_ct_AR"; then
5605 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5606 else
5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608 for as_dir in $PATH
5609 do
5610 IFS=$as_save_IFS
5611 test -z "$as_dir" && as_dir=.
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5614 ac_cv_prog_ac_ct_AR="$ac_prog"
5615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 break 2
5617 fi
5618 done
5619 done
5620 IFS=$as_save_IFS
5621
5622 fi
5623 fi
5624 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5625 if test -n "$ac_ct_AR"; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5627 $as_echo "$ac_ct_AR" >&6; }
5628 else
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630 $as_echo "no" >&6; }
5631 fi
5632
5633
5634 test -n "$ac_ct_AR" && break
5635 done
5636
5637 if test "x$ac_ct_AR" = x; then
5638 AR="false"
5639 else
5640 case $cross_compiling:$ac_tool_warned in
5641 yes:)
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5644 ac_tool_warned=yes ;;
5645 esac
5646 AR=$ac_ct_AR
5647 fi
5648 fi
5649
5650 : ${AR=ar}
5651 : ${AR_FLAGS=cru}
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5664 $as_echo_n "checking for archiver @FILE support... " >&6; }
5665 if ${lt_cv_ar_at_file+:} false; then :
5666 $as_echo_n "(cached) " >&6
5667 else
5668 lt_cv_ar_at_file=no
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671
5672 int
5673 main ()
5674 {
5675
5676 ;
5677 return 0;
5678 }
5679 _ACEOF
5680 if ac_fn_c_try_compile "$LINENO"; then :
5681 echo conftest.$ac_objext > conftest.lst
5682 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5684 (eval $lt_ar_try) 2>&5
5685 ac_status=$?
5686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5687 test $ac_status = 0; }
5688 if test 0 -eq "$ac_status"; then
5689 # Ensure the archiver fails upon bogus file names.
5690 rm -f conftest.$ac_objext libconftest.a
5691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5692 (eval $lt_ar_try) 2>&5
5693 ac_status=$?
5694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5695 test $ac_status = 0; }
5696 if test 0 -ne "$ac_status"; then
5697 lt_cv_ar_at_file=@
5698 fi
5699 fi
5700 rm -f conftest.* libconftest.a
5701
5702 fi
5703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5704
5705 fi
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5707 $as_echo "$lt_cv_ar_at_file" >&6; }
5708
5709 if test no = "$lt_cv_ar_at_file"; then
5710 archiver_list_spec=
5711 else
5712 archiver_list_spec=$lt_cv_ar_at_file
5713 fi
5714
5715
5716
5717
5718
5719
5720
5721 if test -n "$ac_tool_prefix"; then
5722 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5723 set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 if test -n "$STRIP"; then
5730 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
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 STRIP=$ac_cv_prog_STRIP
5750 if test -n "$STRIP"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5752 $as_echo "$STRIP" >&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_STRIP"; then
5761 ac_ct_STRIP=$STRIP
5762 # Extract the first word of "strip", so it can be a program name with args.
5763 set dummy strip; 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_STRIP+:} false; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 if test -n "$ac_ct_STRIP"; then
5770 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip"
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_STRIP=$ac_cv_prog_ac_ct_STRIP
5790 if test -n "$ac_ct_STRIP"; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5792 $as_echo "$ac_ct_STRIP" >&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_STRIP" = x; then
5799 STRIP=":"
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 STRIP=$ac_ct_STRIP
5808 fi
5809 else
5810 STRIP="$ac_cv_prog_STRIP"
5811 fi
5812
5813 test -z "$STRIP" && STRIP=:
5814
5815
5816
5817
5818
5819
5820 if test -n "$ac_tool_prefix"; then
5821 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5822 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824 $as_echo_n "checking for $ac_word... " >&6; }
5825 if ${ac_cv_prog_RANLIB+:} false; then :
5826 $as_echo_n "(cached) " >&6
5827 else
5828 if test -n "$RANLIB"; then
5829 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5830 else
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5833 do
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5838 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 break 2
5841 fi
5842 done
5843 done
5844 IFS=$as_save_IFS
5845
5846 fi
5847 fi
5848 RANLIB=$ac_cv_prog_RANLIB
5849 if test -n "$RANLIB"; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5851 $as_echo "$RANLIB" >&6; }
5852 else
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854 $as_echo "no" >&6; }
5855 fi
5856
5857
5858 fi
5859 if test -z "$ac_cv_prog_RANLIB"; then
5860 ac_ct_RANLIB=$RANLIB
5861 # Extract the first word of "ranlib", so it can be a program name with args.
5862 set dummy ranlib; ac_word=$2
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 $as_echo_n "checking for $ac_word... " >&6; }
5865 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 if test -n "$ac_ct_RANLIB"; then
5869 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878 ac_cv_prog_ac_ct_RANLIB="ranlib"
5879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 break 2
5881 fi
5882 done
5883 done
5884 IFS=$as_save_IFS
5885
5886 fi
5887 fi
5888 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5889 if test -n "$ac_ct_RANLIB"; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5891 $as_echo "$ac_ct_RANLIB" >&6; }
5892 else
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 $as_echo "no" >&6; }
5895 fi
5896
5897 if test "x$ac_ct_RANLIB" = x; then
5898 RANLIB=":"
5899 else
5900 case $cross_compiling:$ac_tool_warned in
5901 yes:)
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5904 ac_tool_warned=yes ;;
5905 esac
5906 RANLIB=$ac_ct_RANLIB
5907 fi
5908 else
5909 RANLIB="$ac_cv_prog_RANLIB"
5910 fi
5911
5912 test -z "$RANLIB" && RANLIB=:
5913
5914
5915
5916
5917
5918
5919 # Determine commands to create old-style static archives.
5920 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5921 old_postinstall_cmds='chmod 644 $oldlib'
5922 old_postuninstall_cmds=
5923
5924 if test -n "$RANLIB"; then
5925 case $host_os in
5926 bitrig* | openbsd*)
5927 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5928 ;;
5929 *)
5930 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5931 ;;
5932 esac
5933 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5934 fi
5935
5936 case $host_os in
5937 darwin*)
5938 lock_old_archive_extraction=yes ;;
5939 *)
5940 lock_old_archive_extraction=no ;;
5941 esac
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981 # If no C compiler was specified, use CC.
5982 LTCC=${LTCC-"$CC"}
5983
5984 # If no C compiler flags were specified, use CFLAGS.
5985 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5986
5987 # Allow CC to be a program name with arguments.
5988 compiler=$CC
5989
5990
5991 # Check for command to grab the raw symbol name followed by C symbol from nm.
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5993 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5994 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5995 $as_echo_n "(cached) " >&6
5996 else
5997
5998 # These are sane defaults that work on at least a few old systems.
5999 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6000
6001 # Character class describing NM global symbol codes.
6002 symcode='[BCDEGRST]'
6003
6004 # Regexp to match symbols that can be accessed directly from C.
6005 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6006
6007 # Define system-specific variables.
6008 case $host_os in
6009 aix*)
6010 symcode='[BCDT]'
6011 ;;
6012 cygwin* | mingw* | pw32* | cegcc*)
6013 symcode='[ABCDGISTW]'
6014 ;;
6015 hpux*)
6016 if test ia64 = "$host_cpu"; then
6017 symcode='[ABCDEGRST]'
6018 fi
6019 ;;
6020 irix* | nonstopux*)
6021 symcode='[BCDEGRST]'
6022 ;;
6023 osf*)
6024 symcode='[BCDEGQRST]'
6025 ;;
6026 solaris*)
6027 symcode='[BDRT]'
6028 ;;
6029 sco3.2v5*)
6030 symcode='[DT]'
6031 ;;
6032 sysv4.2uw2*)
6033 symcode='[DT]'
6034 ;;
6035 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6036 symcode='[ABDT]'
6037 ;;
6038 sysv4)
6039 symcode='[DFNSTU]'
6040 ;;
6041 esac
6042
6043 # If we're using GNU nm, then use its standard symbol codes.
6044 case `$NM -V 2>&1` in
6045 *GNU* | *'with BFD'*)
6046 symcode='[ABCDGIRSTW]' ;;
6047 esac
6048
6049 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6050 # Gets list of data symbols to import.
6051 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6052 # Adjust the below global symbol transforms to fixup imported variables.
6053 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6054 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6055 lt_c_name_lib_hook="\
6056 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6057 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6058 else
6059 # Disable hooks by default.
6060 lt_cv_sys_global_symbol_to_import=
6061 lt_cdecl_hook=
6062 lt_c_name_hook=
6063 lt_c_name_lib_hook=
6064 fi
6065
6066 # Transform an extracted symbol line into a proper C declaration.
6067 # Some systems (esp. on ia64) link data and code symbols differently,
6068 # so use this general approach.
6069 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6070 $lt_cdecl_hook\
6071 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6072 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6073
6074 # Transform an extracted symbol line into symbol name and symbol address
6075 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6076 $lt_c_name_hook\
6077 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6078 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6079
6080 # Transform an extracted symbol line into symbol name with lib prefix and
6081 # symbol address.
6082 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6083 $lt_c_name_lib_hook\
6084 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6085 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6086 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6087
6088 # Handle CRLF in mingw tool chain
6089 opt_cr=
6090 case $build_os in
6091 mingw*)
6092 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6093 ;;
6094 esac
6095
6096 # Try without a prefix underscore, then with it.
6097 for ac_symprfx in "" "_"; do
6098
6099 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6100 symxfrm="\\1 $ac_symprfx\\2 \\2"
6101
6102 # Write the raw and C identifiers.
6103 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6104 # Fake it for dumpbin and say T for any non-static function,
6105 # D for any global variable and I for any imported variable.
6106 # Also find C++ and __fastcall symbols from MSVC++,
6107 # which start with @ or ?.
6108 lt_cv_sys_global_symbol_pipe="$AWK '"\
6109 " {last_section=section; section=\$ 3};"\
6110 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6111 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6112 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6113 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6114 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6115 " \$ 0!~/External *\|/{next};"\
6116 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6117 " {if(hide[section]) next};"\
6118 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6119 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6120 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6121 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6122 " ' prfx=^$ac_symprfx"
6123 else
6124 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6125 fi
6126 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6127
6128 # Check to see that the pipe works correctly.
6129 pipe_works=no
6130
6131 rm -f conftest*
6132 cat > conftest.$ac_ext <<_LT_EOF
6133 #ifdef __cplusplus
6134 extern "C" {
6135 #endif
6136 char nm_test_var;
6137 void nm_test_func(void);
6138 void nm_test_func(void){}
6139 #ifdef __cplusplus
6140 }
6141 #endif
6142 int main(){nm_test_var='a';nm_test_func();return(0);}
6143 _LT_EOF
6144
6145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6146 (eval $ac_compile) 2>&5
6147 ac_status=$?
6148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6149 test $ac_status = 0; }; then
6150 # Now try to grab the symbols.
6151 nlist=conftest.nm
6152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6153 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6154 ac_status=$?
6155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6156 test $ac_status = 0; } && test -s "$nlist"; then
6157 # Try sorting and uniquifying the output.
6158 if sort "$nlist" | uniq > "$nlist"T; then
6159 mv -f "$nlist"T "$nlist"
6160 else
6161 rm -f "$nlist"T
6162 fi
6163
6164 # Make sure that we snagged all the symbols we need.
6165 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6166 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6167 cat <<_LT_EOF > conftest.$ac_ext
6168 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6169 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6170 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6171 relocations are performed -- see ld's documentation on pseudo-relocs. */
6172 # define LT_DLSYM_CONST
6173 #elif defined __osf__
6174 /* This system does not cope well with relocations in const data. */
6175 # define LT_DLSYM_CONST
6176 #else
6177 # define LT_DLSYM_CONST const
6178 #endif
6179
6180 #ifdef __cplusplus
6181 extern "C" {
6182 #endif
6183
6184 _LT_EOF
6185 # Now generate the symbol file.
6186 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6187
6188 cat <<_LT_EOF >> conftest.$ac_ext
6189
6190 /* The mapping between symbol names and symbols. */
6191 LT_DLSYM_CONST struct {
6192 const char *name;
6193 void *address;
6194 }
6195 lt__PROGRAM__LTX_preloaded_symbols[] =
6196 {
6197 { "@PROGRAM@", (void *) 0 },
6198 _LT_EOF
6199 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6200 cat <<\_LT_EOF >> conftest.$ac_ext
6201 {0, (void *) 0}
6202 };
6203
6204 /* This works around a problem in FreeBSD linker */
6205 #ifdef FREEBSD_WORKAROUND
6206 static const void *lt_preloaded_setup() {
6207 return lt__PROGRAM__LTX_preloaded_symbols;
6208 }
6209 #endif
6210
6211 #ifdef __cplusplus
6212 }
6213 #endif
6214 _LT_EOF
6215 # Now try linking the two files.
6216 mv conftest.$ac_objext conftstm.$ac_objext
6217 lt_globsym_save_LIBS=$LIBS
6218 lt_globsym_save_CFLAGS=$CFLAGS
6219 LIBS=conftstm.$ac_objext
6220 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6222 (eval $ac_link) 2>&5
6223 ac_status=$?
6224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6225 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6226 pipe_works=yes
6227 fi
6228 LIBS=$lt_globsym_save_LIBS
6229 CFLAGS=$lt_globsym_save_CFLAGS
6230 else
6231 echo "cannot find nm_test_func in $nlist" >&5
6232 fi
6233 else
6234 echo "cannot find nm_test_var in $nlist" >&5
6235 fi
6236 else
6237 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6238 fi
6239 else
6240 echo "$progname: failed program was:" >&5
6241 cat conftest.$ac_ext >&5
6242 fi
6243 rm -rf conftest* conftst*
6244
6245 # Do not use the global_symbol_pipe unless it works.
6246 if test yes = "$pipe_works"; then
6247 break
6248 else
6249 lt_cv_sys_global_symbol_pipe=
6250 fi
6251 done
6252
6253 fi
6254
6255 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6256 lt_cv_sys_global_symbol_to_cdecl=
6257 fi
6258 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6260 $as_echo "failed" >&6; }
6261 else
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6263 $as_echo "ok" >&6; }
6264 fi
6265
6266 # Response file support.
6267 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6268 nm_file_list_spec='@'
6269 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6270 nm_file_list_spec='@'
6271 fi
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6310 $as_echo_n "checking for sysroot... " >&6; }
6311
6312 # Check whether --with-sysroot was given.
6313 if test "${with_sysroot+set}" = set; then :
6314 withval=$with_sysroot;
6315 else
6316 with_sysroot=no
6317 fi
6318
6319
6320 lt_sysroot=
6321 case $with_sysroot in #(
6322 yes)
6323 if test yes = "$GCC"; then
6324 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6325 fi
6326 ;; #(
6327 /*)
6328 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6329 ;; #(
6330 no|'')
6331 ;; #(
6332 *)
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6334 $as_echo "$with_sysroot" >&6; }
6335 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6336 ;;
6337 esac
6338
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6340 $as_echo "${lt_sysroot:-no}" >&6; }
6341
6342
6343
6344
6345
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6347 $as_echo_n "checking for a working dd... " >&6; }
6348 if ${ac_cv_path_lt_DD+:} false; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 printf 0123456789abcdef0123456789abcdef >conftest.i
6352 cat conftest.i conftest.i >conftest2.i
6353 : ${lt_DD:=$DD}
6354 if test -z "$lt_DD"; then
6355 ac_path_lt_DD_found=false
6356 # Loop through the user's path and test for each of PROGNAME-LIST
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6359 do
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_prog in dd; do
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6365 as_fn_executable_p "$ac_path_lt_DD" || continue
6366 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6367 cmp -s conftest.i conftest.out \
6368 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6369 fi
6370 $ac_path_lt_DD_found && break 3
6371 done
6372 done
6373 done
6374 IFS=$as_save_IFS
6375 if test -z "$ac_cv_path_lt_DD"; then
6376 :
6377 fi
6378 else
6379 ac_cv_path_lt_DD=$lt_DD
6380 fi
6381
6382 rm -f conftest.i conftest2.i conftest.out
6383 fi
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6385 $as_echo "$ac_cv_path_lt_DD" >&6; }
6386
6387
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6389 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6390 if ${lt_cv_truncate_bin+:} false; then :
6391 $as_echo_n "(cached) " >&6
6392 else
6393 printf 0123456789abcdef0123456789abcdef >conftest.i
6394 cat conftest.i conftest.i >conftest2.i
6395 lt_cv_truncate_bin=
6396 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6397 cmp -s conftest.i conftest.out \
6398 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6399 fi
6400 rm -f conftest.i conftest2.i conftest.out
6401 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6402 fi
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6404 $as_echo "$lt_cv_truncate_bin" >&6; }
6405
6406
6407
6408
6409
6410
6411
6412 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6413 func_cc_basename ()
6414 {
6415 for cc_temp in $*""; do
6416 case $cc_temp in
6417 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6418 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6419 \-*) ;;
6420 *) break;;
6421 esac
6422 done
6423 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6424 }
6425
6426 # Check whether --enable-libtool-lock was given.
6427 if test "${enable_libtool_lock+set}" = set; then :
6428 enableval=$enable_libtool_lock;
6429 fi
6430
6431 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6432
6433 # Some flags need to be propagated to the compiler or linker for good
6434 # libtool support.
6435 case $host in
6436 ia64-*-hpux*)
6437 # Find out what ABI is being produced by ac_compile, and set mode
6438 # options accordingly.
6439 echo 'int i;' > conftest.$ac_ext
6440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6441 (eval $ac_compile) 2>&5
6442 ac_status=$?
6443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6444 test $ac_status = 0; }; then
6445 case `/usr/bin/file conftest.$ac_objext` in
6446 *ELF-32*)
6447 HPUX_IA64_MODE=32
6448 ;;
6449 *ELF-64*)
6450 HPUX_IA64_MODE=64
6451 ;;
6452 esac
6453 fi
6454 rm -rf conftest*
6455 ;;
6456 *-*-irix6*)
6457 # Find out what ABI is being produced by ac_compile, and set linker
6458 # options accordingly.
6459 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6461 (eval $ac_compile) 2>&5
6462 ac_status=$?
6463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6464 test $ac_status = 0; }; then
6465 if test yes = "$lt_cv_prog_gnu_ld"; then
6466 case `/usr/bin/file conftest.$ac_objext` in
6467 *32-bit*)
6468 LD="${LD-ld} -melf32bsmip"
6469 ;;
6470 *N32*)
6471 LD="${LD-ld} -melf32bmipn32"
6472 ;;
6473 *64-bit*)
6474 LD="${LD-ld} -melf64bmip"
6475 ;;
6476 esac
6477 else
6478 case `/usr/bin/file conftest.$ac_objext` in
6479 *32-bit*)
6480 LD="${LD-ld} -32"
6481 ;;
6482 *N32*)
6483 LD="${LD-ld} -n32"
6484 ;;
6485 *64-bit*)
6486 LD="${LD-ld} -64"
6487 ;;
6488 esac
6489 fi
6490 fi
6491 rm -rf conftest*
6492 ;;
6493
6494 mips64*-*linux*)
6495 # Find out what ABI is being produced by ac_compile, and set linker
6496 # options accordingly.
6497 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6499 (eval $ac_compile) 2>&5
6500 ac_status=$?
6501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6502 test $ac_status = 0; }; then
6503 emul=elf
6504 case `/usr/bin/file conftest.$ac_objext` in
6505 *32-bit*)
6506 emul="${emul}32"
6507 ;;
6508 *64-bit*)
6509 emul="${emul}64"
6510 ;;
6511 esac
6512 case `/usr/bin/file conftest.$ac_objext` in
6513 *MSB*)
6514 emul="${emul}btsmip"
6515 ;;
6516 *LSB*)
6517 emul="${emul}ltsmip"
6518 ;;
6519 esac
6520 case `/usr/bin/file conftest.$ac_objext` in
6521 *N32*)
6522 emul="${emul}n32"
6523 ;;
6524 esac
6525 LD="${LD-ld} -m $emul"
6526 fi
6527 rm -rf conftest*
6528 ;;
6529
6530 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6531 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6532 # Find out what ABI is being produced by ac_compile, and set linker
6533 # options accordingly. Note that the listed cases only cover the
6534 # situations where additional linker options are needed (such as when
6535 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6536 # vice versa); the common cases where no linker options are needed do
6537 # not appear in the list.
6538 echo 'int i;' > conftest.$ac_ext
6539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6540 (eval $ac_compile) 2>&5
6541 ac_status=$?
6542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6543 test $ac_status = 0; }; then
6544 case `/usr/bin/file conftest.o` in
6545 *32-bit*)
6546 case $host in
6547 x86_64-*kfreebsd*-gnu)
6548 LD="${LD-ld} -m elf_i386_fbsd"
6549 ;;
6550 x86_64-*linux*)
6551 case `/usr/bin/file conftest.o` in
6552 *x86-64*)
6553 LD="${LD-ld} -m elf32_x86_64"
6554 ;;
6555 *)
6556 LD="${LD-ld} -m elf_i386"
6557 ;;
6558 esac
6559 ;;
6560 powerpc64le-*linux*)
6561 LD="${LD-ld} -m elf32lppclinux"
6562 ;;
6563 powerpc64-*linux*)
6564 LD="${LD-ld} -m elf32ppclinux"
6565 ;;
6566 s390x-*linux*)
6567 LD="${LD-ld} -m elf_s390"
6568 ;;
6569 sparc64-*linux*)
6570 LD="${LD-ld} -m elf32_sparc"
6571 ;;
6572 esac
6573 ;;
6574 *64-bit*)
6575 case $host in
6576 x86_64-*kfreebsd*-gnu)
6577 LD="${LD-ld} -m elf_x86_64_fbsd"
6578 ;;
6579 x86_64-*linux*)
6580 LD="${LD-ld} -m elf_x86_64"
6581 ;;
6582 powerpcle-*linux*)
6583 LD="${LD-ld} -m elf64lppc"
6584 ;;
6585 powerpc-*linux*)
6586 LD="${LD-ld} -m elf64ppc"
6587 ;;
6588 s390*-*linux*|s390*-*tpf*)
6589 LD="${LD-ld} -m elf64_s390"
6590 ;;
6591 sparc*-*linux*)
6592 LD="${LD-ld} -m elf64_sparc"
6593 ;;
6594 esac
6595 ;;
6596 esac
6597 fi
6598 rm -rf conftest*
6599 ;;
6600
6601 *-*-sco3.2v5*)
6602 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6603 SAVE_CFLAGS=$CFLAGS
6604 CFLAGS="$CFLAGS -belf"
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6606 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6607 if ${lt_cv_cc_needs_belf+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 ac_ext=c
6611 ac_cpp='$CPP $CPPFLAGS'
6612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6615
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6618
6619 int
6620 main ()
6621 {
6622
6623 ;
6624 return 0;
6625 }
6626 _ACEOF
6627 if ac_fn_c_try_link "$LINENO"; then :
6628 lt_cv_cc_needs_belf=yes
6629 else
6630 lt_cv_cc_needs_belf=no
6631 fi
6632 rm -f core conftest.err conftest.$ac_objext \
6633 conftest$ac_exeext conftest.$ac_ext
6634 ac_ext=c
6635 ac_cpp='$CPP $CPPFLAGS'
6636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6639
6640 fi
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6642 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6643 if test yes != "$lt_cv_cc_needs_belf"; then
6644 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6645 CFLAGS=$SAVE_CFLAGS
6646 fi
6647 ;;
6648 *-*solaris*)
6649 # Find out what ABI is being produced by ac_compile, and set linker
6650 # options accordingly.
6651 echo 'int i;' > conftest.$ac_ext
6652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6653 (eval $ac_compile) 2>&5
6654 ac_status=$?
6655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6656 test $ac_status = 0; }; then
6657 case `/usr/bin/file conftest.o` in
6658 *64-bit*)
6659 case $lt_cv_prog_gnu_ld in
6660 yes*)
6661 case $host in
6662 i?86-*-solaris*|x86_64-*-solaris*)
6663 LD="${LD-ld} -m elf_x86_64"
6664 ;;
6665 sparc*-*-solaris*)
6666 LD="${LD-ld} -m elf64_sparc"
6667 ;;
6668 esac
6669 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6670 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6671 LD=${LD-ld}_sol2
6672 fi
6673 ;;
6674 *)
6675 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6676 LD="${LD-ld} -64"
6677 fi
6678 ;;
6679 esac
6680 ;;
6681 esac
6682 fi
6683 rm -rf conftest*
6684 ;;
6685 esac
6686
6687 need_locks=$enable_libtool_lock
6688
6689 if test -n "$ac_tool_prefix"; then
6690 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6691 set dummy ${ac_tool_prefix}mt; ac_word=$2
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693 $as_echo_n "checking for $ac_word... " >&6; }
6694 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6695 $as_echo_n "(cached) " >&6
6696 else
6697 if test -n "$MANIFEST_TOOL"; then
6698 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6699 else
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6702 do
6703 IFS=$as_save_IFS
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6707 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 break 2
6710 fi
6711 done
6712 done
6713 IFS=$as_save_IFS
6714
6715 fi
6716 fi
6717 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6718 if test -n "$MANIFEST_TOOL"; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6720 $as_echo "$MANIFEST_TOOL" >&6; }
6721 else
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723 $as_echo "no" >&6; }
6724 fi
6725
6726
6727 fi
6728 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6729 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6730 # Extract the first word of "mt", so it can be a program name with args.
6731 set dummy mt; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 if test -n "$ac_ct_MANIFEST_TOOL"; then
6738 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6747 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6750 fi
6751 done
6752 done
6753 IFS=$as_save_IFS
6754
6755 fi
6756 fi
6757 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6758 if test -n "$ac_ct_MANIFEST_TOOL"; then
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6760 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6761 else
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6764 fi
6765
6766 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6767 MANIFEST_TOOL=":"
6768 else
6769 case $cross_compiling:$ac_tool_warned in
6770 yes:)
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6773 ac_tool_warned=yes ;;
6774 esac
6775 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6776 fi
6777 else
6778 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6779 fi
6780
6781 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6783 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6784 if ${lt_cv_path_mainfest_tool+:} false; then :
6785 $as_echo_n "(cached) " >&6
6786 else
6787 lt_cv_path_mainfest_tool=no
6788 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6789 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6790 cat conftest.err >&5
6791 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6792 lt_cv_path_mainfest_tool=yes
6793 fi
6794 rm -f conftest*
6795 fi
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6797 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6798 if test yes != "$lt_cv_path_mainfest_tool"; then
6799 MANIFEST_TOOL=:
6800 fi
6801
6802
6803
6804
6805
6806
6807 case $host_os in
6808 rhapsody* | darwin*)
6809 if test -n "$ac_tool_prefix"; then
6810 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6811 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6813 $as_echo_n "checking for $ac_word... " >&6; }
6814 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6815 $as_echo_n "(cached) " >&6
6816 else
6817 if test -n "$DSYMUTIL"; then
6818 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6819 else
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6822 do
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6827 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 break 2
6830 fi
6831 done
6832 done
6833 IFS=$as_save_IFS
6834
6835 fi
6836 fi
6837 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6838 if test -n "$DSYMUTIL"; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6840 $as_echo "$DSYMUTIL" >&6; }
6841 else
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6843 $as_echo "no" >&6; }
6844 fi
6845
6846
6847 fi
6848 if test -z "$ac_cv_prog_DSYMUTIL"; then
6849 ac_ct_DSYMUTIL=$DSYMUTIL
6850 # Extract the first word of "dsymutil", so it can be a program name with args.
6851 set dummy dsymutil; ac_word=$2
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 if test -n "$ac_ct_DSYMUTIL"; then
6858 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6859 else
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6867 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 break 2
6870 fi
6871 done
6872 done
6873 IFS=$as_save_IFS
6874
6875 fi
6876 fi
6877 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6878 if test -n "$ac_ct_DSYMUTIL"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6880 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6881 else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 $as_echo "no" >&6; }
6884 fi
6885
6886 if test "x$ac_ct_DSYMUTIL" = x; then
6887 DSYMUTIL=":"
6888 else
6889 case $cross_compiling:$ac_tool_warned in
6890 yes:)
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6893 ac_tool_warned=yes ;;
6894 esac
6895 DSYMUTIL=$ac_ct_DSYMUTIL
6896 fi
6897 else
6898 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6899 fi
6900
6901 if test -n "$ac_tool_prefix"; then
6902 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6903 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if ${ac_cv_prog_NMEDIT+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 if test -n "$NMEDIT"; then
6910 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6919 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923 done
6924 done
6925 IFS=$as_save_IFS
6926
6927 fi
6928 fi
6929 NMEDIT=$ac_cv_prog_NMEDIT
6930 if test -n "$NMEDIT"; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6932 $as_echo "$NMEDIT" >&6; }
6933 else
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6936 fi
6937
6938
6939 fi
6940 if test -z "$ac_cv_prog_NMEDIT"; then
6941 ac_ct_NMEDIT=$NMEDIT
6942 # Extract the first word of "nmedit", so it can be a program name with args.
6943 set dummy nmedit; ac_word=$2
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 if test -n "$ac_ct_NMEDIT"; then
6950 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6959 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963 done
6964 done
6965 IFS=$as_save_IFS
6966
6967 fi
6968 fi
6969 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6970 if test -n "$ac_ct_NMEDIT"; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6972 $as_echo "$ac_ct_NMEDIT" >&6; }
6973 else
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6976 fi
6977
6978 if test "x$ac_ct_NMEDIT" = x; then
6979 NMEDIT=":"
6980 else
6981 case $cross_compiling:$ac_tool_warned in
6982 yes:)
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6985 ac_tool_warned=yes ;;
6986 esac
6987 NMEDIT=$ac_ct_NMEDIT
6988 fi
6989 else
6990 NMEDIT="$ac_cv_prog_NMEDIT"
6991 fi
6992
6993 if test -n "$ac_tool_prefix"; then
6994 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6995 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997 $as_echo_n "checking for $ac_word... " >&6; }
6998 if ${ac_cv_prog_LIPO+:} false; then :
6999 $as_echo_n "(cached) " >&6
7000 else
7001 if test -n "$LIPO"; then
7002 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7003 else
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 for as_dir in $PATH
7006 do
7007 IFS=$as_save_IFS
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7011 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 break 2
7014 fi
7015 done
7016 done
7017 IFS=$as_save_IFS
7018
7019 fi
7020 fi
7021 LIPO=$ac_cv_prog_LIPO
7022 if test -n "$LIPO"; then
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7024 $as_echo "$LIPO" >&6; }
7025 else
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027 $as_echo "no" >&6; }
7028 fi
7029
7030
7031 fi
7032 if test -z "$ac_cv_prog_LIPO"; then
7033 ac_ct_LIPO=$LIPO
7034 # Extract the first word of "lipo", so it can be a program name with args.
7035 set dummy lipo; ac_word=$2
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037 $as_echo_n "checking for $ac_word... " >&6; }
7038 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041 if test -n "$ac_ct_LIPO"; then
7042 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7043 else
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH
7046 do
7047 IFS=$as_save_IFS
7048 test -z "$as_dir" && as_dir=.
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7051 ac_cv_prog_ac_ct_LIPO="lipo"
7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 break 2
7054 fi
7055 done
7056 done
7057 IFS=$as_save_IFS
7058
7059 fi
7060 fi
7061 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7062 if test -n "$ac_ct_LIPO"; then
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7064 $as_echo "$ac_ct_LIPO" >&6; }
7065 else
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067 $as_echo "no" >&6; }
7068 fi
7069
7070 if test "x$ac_ct_LIPO" = x; then
7071 LIPO=":"
7072 else
7073 case $cross_compiling:$ac_tool_warned in
7074 yes:)
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077 ac_tool_warned=yes ;;
7078 esac
7079 LIPO=$ac_ct_LIPO
7080 fi
7081 else
7082 LIPO="$ac_cv_prog_LIPO"
7083 fi
7084
7085 if test -n "$ac_tool_prefix"; then
7086 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7087 set dummy ${ac_tool_prefix}otool; ac_word=$2
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7089 $as_echo_n "checking for $ac_word... " >&6; }
7090 if ${ac_cv_prog_OTOOL+:} false; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093 if test -n "$OTOOL"; then
7094 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7095 else
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099 IFS=$as_save_IFS
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7103 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 break 2
7106 fi
7107 done
7108 done
7109 IFS=$as_save_IFS
7110
7111 fi
7112 fi
7113 OTOOL=$ac_cv_prog_OTOOL
7114 if test -n "$OTOOL"; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7116 $as_echo "$OTOOL" >&6; }
7117 else
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7120 fi
7121
7122
7123 fi
7124 if test -z "$ac_cv_prog_OTOOL"; then
7125 ac_ct_OTOOL=$OTOOL
7126 # Extract the first word of "otool", so it can be a program name with args.
7127 set dummy otool; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7131 $as_echo_n "(cached) " >&6
7132 else
7133 if test -n "$ac_ct_OTOOL"; then
7134 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7143 ac_cv_prog_ac_ct_OTOOL="otool"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7146 fi
7147 done
7148 done
7149 IFS=$as_save_IFS
7150
7151 fi
7152 fi
7153 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7154 if test -n "$ac_ct_OTOOL"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7156 $as_echo "$ac_ct_OTOOL" >&6; }
7157 else
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7161
7162 if test "x$ac_ct_OTOOL" = x; then
7163 OTOOL=":"
7164 else
7165 case $cross_compiling:$ac_tool_warned in
7166 yes:)
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7169 ac_tool_warned=yes ;;
7170 esac
7171 OTOOL=$ac_ct_OTOOL
7172 fi
7173 else
7174 OTOOL="$ac_cv_prog_OTOOL"
7175 fi
7176
7177 if test -n "$ac_tool_prefix"; then
7178 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7179 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if ${ac_cv_prog_OTOOL64+:} false; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 if test -n "$OTOOL64"; then
7186 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7195 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199 done
7200 done
7201 IFS=$as_save_IFS
7202
7203 fi
7204 fi
7205 OTOOL64=$ac_cv_prog_OTOOL64
7206 if test -n "$OTOOL64"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7208 $as_echo "$OTOOL64" >&6; }
7209 else
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7212 fi
7213
7214
7215 fi
7216 if test -z "$ac_cv_prog_OTOOL64"; then
7217 ac_ct_OTOOL64=$OTOOL64
7218 # Extract the first word of "otool64", so it can be a program name with args.
7219 set dummy otool64; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7225 if test -n "$ac_ct_OTOOL64"; then
7226 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7227 else
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235 ac_cv_prog_ac_ct_OTOOL64="otool64"
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239 done
7240 done
7241 IFS=$as_save_IFS
7242
7243 fi
7244 fi
7245 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7246 if test -n "$ac_ct_OTOOL64"; then
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7248 $as_echo "$ac_ct_OTOOL64" >&6; }
7249 else
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7252 fi
7253
7254 if test "x$ac_ct_OTOOL64" = x; then
7255 OTOOL64=":"
7256 else
7257 case $cross_compiling:$ac_tool_warned in
7258 yes:)
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7261 ac_tool_warned=yes ;;
7262 esac
7263 OTOOL64=$ac_ct_OTOOL64
7264 fi
7265 else
7266 OTOOL64="$ac_cv_prog_OTOOL64"
7267 fi
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7296 $as_echo_n "checking for -single_module linker flag... " >&6; }
7297 if ${lt_cv_apple_cc_single_mod+:} false; then :
7298 $as_echo_n "(cached) " >&6
7299 else
7300 lt_cv_apple_cc_single_mod=no
7301 if test -z "$LT_MULTI_MODULE"; then
7302 # By default we will add the -single_module flag. You can override
7303 # by either setting the environment variable LT_MULTI_MODULE
7304 # non-empty at configure time, or by adding -multi_module to the
7305 # link flags.
7306 rm -rf libconftest.dylib*
7307 echo "int foo(void){return 1;}" > conftest.c
7308 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7309 -dynamiclib -Wl,-single_module conftest.c" >&5
7310 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7311 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7312 _lt_result=$?
7313 # If there is a non-empty error log, and "single_module"
7314 # appears in it, assume the flag caused a linker warning
7315 if test -s conftest.err && $GREP single_module conftest.err; then
7316 cat conftest.err >&5
7317 # Otherwise, if the output was created with a 0 exit code from
7318 # the compiler, it worked.
7319 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7320 lt_cv_apple_cc_single_mod=yes
7321 else
7322 cat conftest.err >&5
7323 fi
7324 rm -rf libconftest.dylib*
7325 rm -f conftest.*
7326 fi
7327 fi
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7329 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7330
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7332 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7333 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7334 $as_echo_n "(cached) " >&6
7335 else
7336 lt_cv_ld_exported_symbols_list=no
7337 save_LDFLAGS=$LDFLAGS
7338 echo "_main" > conftest.sym
7339 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7342
7343 int
7344 main ()
7345 {
7346
7347 ;
7348 return 0;
7349 }
7350 _ACEOF
7351 if ac_fn_c_try_link "$LINENO"; then :
7352 lt_cv_ld_exported_symbols_list=yes
7353 else
7354 lt_cv_ld_exported_symbols_list=no
7355 fi
7356 rm -f core conftest.err conftest.$ac_objext \
7357 conftest$ac_exeext conftest.$ac_ext
7358 LDFLAGS=$save_LDFLAGS
7359
7360 fi
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7362 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7363
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7365 $as_echo_n "checking for -force_load linker flag... " >&6; }
7366 if ${lt_cv_ld_force_load+:} false; then :
7367 $as_echo_n "(cached) " >&6
7368 else
7369 lt_cv_ld_force_load=no
7370 cat > conftest.c << _LT_EOF
7371 int forced_loaded() { return 2;}
7372 _LT_EOF
7373 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7374 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7375 echo "$AR cru libconftest.a conftest.o" >&5
7376 $AR cru libconftest.a conftest.o 2>&5
7377 echo "$RANLIB libconftest.a" >&5
7378 $RANLIB libconftest.a 2>&5
7379 cat > conftest.c << _LT_EOF
7380 int main() { return 0;}
7381 _LT_EOF
7382 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7383 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7384 _lt_result=$?
7385 if test -s conftest.err && $GREP force_load conftest.err; then
7386 cat conftest.err >&5
7387 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7388 lt_cv_ld_force_load=yes
7389 else
7390 cat conftest.err >&5
7391 fi
7392 rm -f conftest.err libconftest.a conftest conftest.c
7393 rm -rf conftest.dSYM
7394
7395 fi
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7397 $as_echo "$lt_cv_ld_force_load" >&6; }
7398 case $host_os in
7399 rhapsody* | darwin1.[012])
7400 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7401 darwin1.*)
7402 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7403 darwin*) # darwin 5.x on
7404 # if running on 10.5 or later, the deployment target defaults
7405 # to the OS version, if on x86, and 10.4, the deployment
7406 # target defaults to 10.4. Don't you love it?
7407 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7408 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7409 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7410 10.[012][,.]*)
7411 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7412 10.*)
7413 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7414 esac
7415 ;;
7416 esac
7417 if test yes = "$lt_cv_apple_cc_single_mod"; then
7418 _lt_dar_single_mod='$single_module'
7419 fi
7420 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7421 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7422 else
7423 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7424 fi
7425 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7426 _lt_dsymutil='~$DSYMUTIL $lib || :'
7427 else
7428 _lt_dsymutil=
7429 fi
7430 ;;
7431 esac
7432
7433 # func_munge_path_list VARIABLE PATH
7434 # -----------------------------------
7435 # VARIABLE is name of variable containing _space_ separated list of
7436 # directories to be munged by the contents of PATH, which is string
7437 # having a format:
7438 # "DIR[:DIR]:"
7439 # string "DIR[ DIR]" will be prepended to VARIABLE
7440 # ":DIR[:DIR]"
7441 # string "DIR[ DIR]" will be appended to VARIABLE
7442 # "DIRP[:DIRP]::[DIRA:]DIRA"
7443 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7444 # "DIRA[ DIRA]" will be appended to VARIABLE
7445 # "DIR[:DIR]"
7446 # VARIABLE will be replaced by "DIR[ DIR]"
7447 func_munge_path_list ()
7448 {
7449 case x$2 in
7450 x)
7451 ;;
7452 *:)
7453 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7454 ;;
7455 x:*)
7456 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7457 ;;
7458 *::*)
7459 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7460 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7461 ;;
7462 *)
7463 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7464 ;;
7465 esac
7466 }
7467
7468 ac_ext=c
7469 ac_cpp='$CPP $CPPFLAGS'
7470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7474 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7475 # On Suns, sometimes $CPP names a directory.
7476 if test -n "$CPP" && test -d "$CPP"; then
7477 CPP=
7478 fi
7479 if test -z "$CPP"; then
7480 if ${ac_cv_prog_CPP+:} false; then :
7481 $as_echo_n "(cached) " >&6
7482 else
7483 # Double quotes because CPP needs to be expanded
7484 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7485 do
7486 ac_preproc_ok=false
7487 for ac_c_preproc_warn_flag in '' yes
7488 do
7489 # Use a header file that comes with gcc, so configuring glibc
7490 # with a fresh cross-compiler works.
7491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7492 # <limits.h> exists even on freestanding compilers.
7493 # On the NeXT, cc -E runs the code through the compiler's parser,
7494 # not just through cpp. "Syntax error" is here to catch this case.
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497 #ifdef __STDC__
7498 # include <limits.h>
7499 #else
7500 # include <assert.h>
7501 #endif
7502 Syntax error
7503 _ACEOF
7504 if ac_fn_c_try_cpp "$LINENO"; then :
7505
7506 else
7507 # Broken: fails on valid input.
7508 continue
7509 fi
7510 rm -f conftest.err conftest.i conftest.$ac_ext
7511
7512 # OK, works on sane cases. Now check whether nonexistent headers
7513 # can be detected and how.
7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h. */
7516 #include <ac_nonexistent.h>
7517 _ACEOF
7518 if ac_fn_c_try_cpp "$LINENO"; then :
7519 # Broken: success on invalid input.
7520 continue
7521 else
7522 # Passes both tests.
7523 ac_preproc_ok=:
7524 break
7525 fi
7526 rm -f conftest.err conftest.i conftest.$ac_ext
7527
7528 done
7529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7530 rm -f conftest.i conftest.err conftest.$ac_ext
7531 if $ac_preproc_ok; then :
7532 break
7533 fi
7534
7535 done
7536 ac_cv_prog_CPP=$CPP
7537
7538 fi
7539 CPP=$ac_cv_prog_CPP
7540 else
7541 ac_cv_prog_CPP=$CPP
7542 fi
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7544 $as_echo "$CPP" >&6; }
7545 ac_preproc_ok=false
7546 for ac_c_preproc_warn_flag in '' yes
7547 do
7548 # Use a header file that comes with gcc, so configuring glibc
7549 # with a fresh cross-compiler works.
7550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7551 # <limits.h> exists even on freestanding compilers.
7552 # On the NeXT, cc -E runs the code through the compiler's parser,
7553 # not just through cpp. "Syntax error" is here to catch this case.
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7556 #ifdef __STDC__
7557 # include <limits.h>
7558 #else
7559 # include <assert.h>
7560 #endif
7561 Syntax error
7562 _ACEOF
7563 if ac_fn_c_try_cpp "$LINENO"; then :
7564
7565 else
7566 # Broken: fails on valid input.
7567 continue
7568 fi
7569 rm -f conftest.err conftest.i conftest.$ac_ext
7570
7571 # OK, works on sane cases. Now check whether nonexistent headers
7572 # can be detected and how.
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7575 #include <ac_nonexistent.h>
7576 _ACEOF
7577 if ac_fn_c_try_cpp "$LINENO"; then :
7578 # Broken: success on invalid input.
7579 continue
7580 else
7581 # Passes both tests.
7582 ac_preproc_ok=:
7583 break
7584 fi
7585 rm -f conftest.err conftest.i conftest.$ac_ext
7586
7587 done
7588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7589 rm -f conftest.i conftest.err conftest.$ac_ext
7590 if $ac_preproc_ok; then :
7591
7592 else
7593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7595 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7596 See \`config.log' for more details" "$LINENO" 5; }
7597 fi
7598
7599 ac_ext=c
7600 ac_cpp='$CPP $CPPFLAGS'
7601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7604
7605
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7607 $as_echo_n "checking for ANSI C header files... " >&6; }
7608 if ${ac_cv_header_stdc+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612 /* end confdefs.h. */
7613 #include <stdlib.h>
7614 #include <stdarg.h>
7615 #include <string.h>
7616 #include <float.h>
7617
7618 int
7619 main ()
7620 {
7621
7622 ;
7623 return 0;
7624 }
7625 _ACEOF
7626 if ac_fn_c_try_compile "$LINENO"; then :
7627 ac_cv_header_stdc=yes
7628 else
7629 ac_cv_header_stdc=no
7630 fi
7631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7632
7633 if test $ac_cv_header_stdc = yes; then
7634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7637 #include <string.h>
7638
7639 _ACEOF
7640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7641 $EGREP "memchr" >/dev/null 2>&1; then :
7642
7643 else
7644 ac_cv_header_stdc=no
7645 fi
7646 rm -f conftest*
7647
7648 fi
7649
7650 if test $ac_cv_header_stdc = yes; then
7651 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653 /* end confdefs.h. */
7654 #include <stdlib.h>
7655
7656 _ACEOF
7657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7658 $EGREP "free" >/dev/null 2>&1; then :
7659
7660 else
7661 ac_cv_header_stdc=no
7662 fi
7663 rm -f conftest*
7664
7665 fi
7666
7667 if test $ac_cv_header_stdc = yes; then
7668 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7669 if test "$cross_compiling" = yes; then :
7670 :
7671 else
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7674 #include <ctype.h>
7675 #include <stdlib.h>
7676 #if ((' ' & 0x0FF) == 0x020)
7677 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7678 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7679 #else
7680 # define ISLOWER(c) \
7681 (('a' <= (c) && (c) <= 'i') \
7682 || ('j' <= (c) && (c) <= 'r') \
7683 || ('s' <= (c) && (c) <= 'z'))
7684 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7685 #endif
7686
7687 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7688 int
7689 main ()
7690 {
7691 int i;
7692 for (i = 0; i < 256; i++)
7693 if (XOR (islower (i), ISLOWER (i))
7694 || toupper (i) != TOUPPER (i))
7695 return 2;
7696 return 0;
7697 }
7698 _ACEOF
7699 if ac_fn_c_try_run "$LINENO"; then :
7700
7701 else
7702 ac_cv_header_stdc=no
7703 fi
7704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7705 conftest.$ac_objext conftest.beam conftest.$ac_ext
7706 fi
7707
7708 fi
7709 fi
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7711 $as_echo "$ac_cv_header_stdc" >&6; }
7712 if test $ac_cv_header_stdc = yes; then
7713
7714 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7715
7716 fi
7717
7718 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7719 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7720 inttypes.h stdint.h unistd.h
7721 do :
7722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7723 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7724 "
7725 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7726 cat >>confdefs.h <<_ACEOF
7727 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7728 _ACEOF
7729
7730 fi
7731
7732 done
7733
7734
7735 for ac_header in dlfcn.h
7736 do :
7737 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7738 "
7739 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7740 cat >>confdefs.h <<_ACEOF
7741 #define HAVE_DLFCN_H 1
7742 _ACEOF
7743
7744 fi
7745
7746 done
7747
7748
7749
7750
7751
7752 # Set options
7753
7754
7755
7756 enable_dlopen=no
7757
7758
7759 enable_win32_dll=no
7760
7761
7762 # Check whether --enable-shared was given.
7763 if test "${enable_shared+set}" = set; then :
7764 enableval=$enable_shared; p=${PACKAGE-default}
7765 case $enableval in
7766 yes) enable_shared=yes ;;
7767 no) enable_shared=no ;;
7768 *)
7769 enable_shared=no
7770 # Look at the argument we got. We use all the common list separators.
7771 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7772 for pkg in $enableval; do
7773 IFS=$lt_save_ifs
7774 if test "X$pkg" = "X$p"; then
7775 enable_shared=yes
7776 fi
7777 done
7778 IFS=$lt_save_ifs
7779 ;;
7780 esac
7781 else
7782 enable_shared=yes
7783 fi
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793 # Check whether --enable-static was given.
7794 if test "${enable_static+set}" = set; then :
7795 enableval=$enable_static; p=${PACKAGE-default}
7796 case $enableval in
7797 yes) enable_static=yes ;;
7798 no) enable_static=no ;;
7799 *)
7800 enable_static=no
7801 # Look at the argument we got. We use all the common list separators.
7802 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7803 for pkg in $enableval; do
7804 IFS=$lt_save_ifs
7805 if test "X$pkg" = "X$p"; then
7806 enable_static=yes
7807 fi
7808 done
7809 IFS=$lt_save_ifs
7810 ;;
7811 esac
7812 else
7813 enable_static=yes
7814 fi
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825 # Check whether --with-pic was given.
7826 if test "${with_pic+set}" = set; then :
7827 withval=$with_pic; lt_p=${PACKAGE-default}
7828 case $withval in
7829 yes|no) pic_mode=$withval ;;
7830 *)
7831 pic_mode=default
7832 # Look at the argument we got. We use all the common list separators.
7833 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7834 for lt_pkg in $withval; do
7835 IFS=$lt_save_ifs
7836 if test "X$lt_pkg" = "X$lt_p"; then
7837 pic_mode=yes
7838 fi
7839 done
7840 IFS=$lt_save_ifs
7841 ;;
7842 esac
7843 else
7844 pic_mode=default
7845 fi
7846
7847
7848
7849
7850
7851
7852
7853
7854 # Check whether --enable-fast-install was given.
7855 if test "${enable_fast_install+set}" = set; then :
7856 enableval=$enable_fast_install; p=${PACKAGE-default}
7857 case $enableval in
7858 yes) enable_fast_install=yes ;;
7859 no) enable_fast_install=no ;;
7860 *)
7861 enable_fast_install=no
7862 # Look at the argument we got. We use all the common list separators.
7863 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7864 for pkg in $enableval; do
7865 IFS=$lt_save_ifs
7866 if test "X$pkg" = "X$p"; then
7867 enable_fast_install=yes
7868 fi
7869 done
7870 IFS=$lt_save_ifs
7871 ;;
7872 esac
7873 else
7874 enable_fast_install=yes
7875 fi
7876
7877
7878
7879
7880
7881
7882
7883
7884 shared_archive_member_spec=
7885 case $host,$enable_shared in
7886 power*-*-aix[5-9]*,yes)
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7888 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7889
7890 # Check whether --with-aix-soname was given.
7891 if test "${with_aix_soname+set}" = set; then :
7892 withval=$with_aix_soname; case $withval in
7893 aix|svr4|both)
7894 ;;
7895 *)
7896 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7897 ;;
7898 esac
7899 lt_cv_with_aix_soname=$with_aix_soname
7900 else
7901 if ${lt_cv_with_aix_soname+:} false; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 lt_cv_with_aix_soname=aix
7905 fi
7906
7907 with_aix_soname=$lt_cv_with_aix_soname
7908 fi
7909
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7911 $as_echo "$with_aix_soname" >&6; }
7912 if test aix != "$with_aix_soname"; then
7913 # For the AIX way of multilib, we name the shared archive member
7914 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7915 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7916 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7917 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7918 if test 64 = "${OBJECT_MODE-32}"; then
7919 shared_archive_member_spec=shr_64
7920 else
7921 shared_archive_member_spec=shr
7922 fi
7923 fi
7924 ;;
7925 *)
7926 with_aix_soname=aix
7927 ;;
7928 esac
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939 # This can be used to rebuild libtool when needed
7940 LIBTOOL_DEPS=$ltmain
7941
7942 # Always use our own libtool.
7943 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974 test -z "$LN_S" && LN_S="ln -s"
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989 if test -n "${ZSH_VERSION+set}"; then
7990 setopt NO_GLOB_SUBST
7991 fi
7992
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7994 $as_echo_n "checking for objdir... " >&6; }
7995 if ${lt_cv_objdir+:} false; then :
7996 $as_echo_n "(cached) " >&6
7997 else
7998 rm -f .libs 2>/dev/null
7999 mkdir .libs 2>/dev/null
8000 if test -d .libs; then
8001 lt_cv_objdir=.libs
8002 else
8003 # MS-DOS does not allow filenames that begin with a dot.
8004 lt_cv_objdir=_libs
8005 fi
8006 rmdir .libs 2>/dev/null
8007 fi
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8009 $as_echo "$lt_cv_objdir" >&6; }
8010 objdir=$lt_cv_objdir
8011
8012
8013
8014
8015
8016 cat >>confdefs.h <<_ACEOF
8017 #define LT_OBJDIR "$lt_cv_objdir/"
8018 _ACEOF
8019
8020
8021
8022
8023 case $host_os in
8024 aix3*)
8025 # AIX sometimes has problems with the GCC collect2 program. For some
8026 # reason, if we set the COLLECT_NAMES environment variable, the problems
8027 # vanish in a puff of smoke.
8028 if test set != "${COLLECT_NAMES+set}"; then
8029 COLLECT_NAMES=
8030 export COLLECT_NAMES
8031 fi
8032 ;;
8033 esac
8034
8035 # Global variables:
8036 ofile=libtool
8037 can_build_shared=yes
8038
8039 # All known linkers require a '.a' archive for static linking (except MSVC,
8040 # which needs '.lib').
8041 libext=a
8042
8043 with_gnu_ld=$lt_cv_prog_gnu_ld
8044
8045 old_CC=$CC
8046 old_CFLAGS=$CFLAGS
8047
8048 # Set sane defaults for various variables
8049 test -z "$CC" && CC=cc
8050 test -z "$LTCC" && LTCC=$CC
8051 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8052 test -z "$LD" && LD=ld
8053 test -z "$ac_objext" && ac_objext=o
8054
8055 func_cc_basename $compiler
8056 cc_basename=$func_cc_basename_result
8057
8058
8059 # Only perform the check for file, if the check method requires it
8060 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8061 case $deplibs_check_method in
8062 file_magic*)
8063 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8065 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8066 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8067 $as_echo_n "(cached) " >&6
8068 else
8069 case $MAGIC_CMD in
8070 [\\/*] | ?:[\\/]*)
8071 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8072 ;;
8073 *)
8074 lt_save_MAGIC_CMD=$MAGIC_CMD
8075 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8076 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8077 for ac_dir in $ac_dummy; do
8078 IFS=$lt_save_ifs
8079 test -z "$ac_dir" && ac_dir=.
8080 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8081 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8082 if test -n "$file_magic_test_file"; then
8083 case $deplibs_check_method in
8084 "file_magic "*)
8085 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8086 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8087 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8088 $EGREP "$file_magic_regex" > /dev/null; then
8089 :
8090 else
8091 cat <<_LT_EOF 1>&2
8092
8093 *** Warning: the command libtool uses to detect shared libraries,
8094 *** $file_magic_cmd, produces output that libtool cannot recognize.
8095 *** The result is that libtool may fail to recognize shared libraries
8096 *** as such. This will affect the creation of libtool libraries that
8097 *** depend on shared libraries, but programs linked with such libtool
8098 *** libraries will work regardless of this problem. Nevertheless, you
8099 *** may want to report the problem to your system manager and/or to
8100 *** bug-libtool@gnu.org
8101
8102 _LT_EOF
8103 fi ;;
8104 esac
8105 fi
8106 break
8107 fi
8108 done
8109 IFS=$lt_save_ifs
8110 MAGIC_CMD=$lt_save_MAGIC_CMD
8111 ;;
8112 esac
8113 fi
8114
8115 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8116 if test -n "$MAGIC_CMD"; then
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8118 $as_echo "$MAGIC_CMD" >&6; }
8119 else
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121 $as_echo "no" >&6; }
8122 fi
8123
8124
8125
8126
8127
8128 if test -z "$lt_cv_path_MAGIC_CMD"; then
8129 if test -n "$ac_tool_prefix"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8131 $as_echo_n "checking for file... " >&6; }
8132 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 case $MAGIC_CMD in
8136 [\\/*] | ?:[\\/]*)
8137 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8138 ;;
8139 *)
8140 lt_save_MAGIC_CMD=$MAGIC_CMD
8141 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8142 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8143 for ac_dir in $ac_dummy; do
8144 IFS=$lt_save_ifs
8145 test -z "$ac_dir" && ac_dir=.
8146 if test -f "$ac_dir/file"; then
8147 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8148 if test -n "$file_magic_test_file"; then
8149 case $deplibs_check_method in
8150 "file_magic "*)
8151 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8152 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8153 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8154 $EGREP "$file_magic_regex" > /dev/null; then
8155 :
8156 else
8157 cat <<_LT_EOF 1>&2
8158
8159 *** Warning: the command libtool uses to detect shared libraries,
8160 *** $file_magic_cmd, produces output that libtool cannot recognize.
8161 *** The result is that libtool may fail to recognize shared libraries
8162 *** as such. This will affect the creation of libtool libraries that
8163 *** depend on shared libraries, but programs linked with such libtool
8164 *** libraries will work regardless of this problem. Nevertheless, you
8165 *** may want to report the problem to your system manager and/or to
8166 *** bug-libtool@gnu.org
8167
8168 _LT_EOF
8169 fi ;;
8170 esac
8171 fi
8172 break
8173 fi
8174 done
8175 IFS=$lt_save_ifs
8176 MAGIC_CMD=$lt_save_MAGIC_CMD
8177 ;;
8178 esac
8179 fi
8180
8181 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8182 if test -n "$MAGIC_CMD"; then
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8184 $as_echo "$MAGIC_CMD" >&6; }
8185 else
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187 $as_echo "no" >&6; }
8188 fi
8189
8190
8191 else
8192 MAGIC_CMD=:
8193 fi
8194 fi
8195
8196 fi
8197 ;;
8198 esac
8199
8200 # Use C for the default configuration in the libtool script
8201
8202 lt_save_CC=$CC
8203 ac_ext=c
8204 ac_cpp='$CPP $CPPFLAGS'
8205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8208
8209
8210 # Source file extension for C test sources.
8211 ac_ext=c
8212
8213 # Object file extension for compiled C test sources.
8214 objext=o
8215 objext=$objext
8216
8217 # Code to be used in simple compile tests
8218 lt_simple_compile_test_code="int some_variable = 0;"
8219
8220 # Code to be used in simple link tests
8221 lt_simple_link_test_code='int main(){return(0);}'
8222
8223
8224
8225
8226
8227
8228
8229 # If no C compiler was specified, use CC.
8230 LTCC=${LTCC-"$CC"}
8231
8232 # If no C compiler flags were specified, use CFLAGS.
8233 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8234
8235 # Allow CC to be a program name with arguments.
8236 compiler=$CC
8237
8238 # Save the default compiler, since it gets overwritten when the other
8239 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8240 compiler_DEFAULT=$CC
8241
8242 # save warnings/boilerplate of simple test code
8243 ac_outfile=conftest.$ac_objext
8244 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8245 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8246 _lt_compiler_boilerplate=`cat conftest.err`
8247 $RM conftest*
8248
8249 ac_outfile=conftest.$ac_objext
8250 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8251 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8252 _lt_linker_boilerplate=`cat conftest.err`
8253 $RM -r conftest*
8254
8255
8256 if test -n "$compiler"; then
8257
8258 lt_prog_compiler_no_builtin_flag=
8259
8260 if test yes = "$GCC"; then
8261 case $cc_basename in
8262 nvcc*)
8263 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8264 *)
8265 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8266 esac
8267
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8269 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8270 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 lt_cv_prog_compiler_rtti_exceptions=no
8274 ac_outfile=conftest.$ac_objext
8275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8276 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8277 # Insert the option either (1) after the last *FLAGS variable, or
8278 # (2) before a word containing "conftest.", or (3) at the end.
8279 # Note that $ac_compile itself does not contain backslashes and begins
8280 # with a dollar sign (not a hyphen), so the echo should work correctly.
8281 # The option is referenced via a variable to avoid confusing sed.
8282 lt_compile=`echo "$ac_compile" | $SED \
8283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8285 -e 's:$: $lt_compiler_flag:'`
8286 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8287 (eval "$lt_compile" 2>conftest.err)
8288 ac_status=$?
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 if (exit $ac_status) && test -s "$ac_outfile"; then
8292 # The compiler can only warn and ignore the option if not recognized
8293 # So say no if there are warnings other than the usual output.
8294 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8296 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8297 lt_cv_prog_compiler_rtti_exceptions=yes
8298 fi
8299 fi
8300 $RM conftest*
8301
8302 fi
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8304 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8305
8306 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8307 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8308 else
8309 :
8310 fi
8311
8312 fi
8313
8314
8315
8316
8317
8318
8319 lt_prog_compiler_wl=
8320 lt_prog_compiler_pic=
8321 lt_prog_compiler_static=
8322
8323
8324 if test yes = "$GCC"; then
8325 lt_prog_compiler_wl='-Wl,'
8326 lt_prog_compiler_static='-static'
8327
8328 case $host_os in
8329 aix*)
8330 # All AIX code is PIC.
8331 if test ia64 = "$host_cpu"; then
8332 # AIX 5 now supports IA64 processor
8333 lt_prog_compiler_static='-Bstatic'
8334 fi
8335 lt_prog_compiler_pic='-fPIC'
8336 ;;
8337
8338 amigaos*)
8339 case $host_cpu in
8340 powerpc)
8341 # see comment about AmigaOS4 .so support
8342 lt_prog_compiler_pic='-fPIC'
8343 ;;
8344 m68k)
8345 # FIXME: we need at least 68020 code to build shared libraries, but
8346 # adding the '-m68020' flag to GCC prevents building anything better,
8347 # like '-m68040'.
8348 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8349 ;;
8350 esac
8351 ;;
8352
8353 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8354 # PIC is the default for these OSes.
8355 ;;
8356
8357 mingw* | cygwin* | pw32* | os2* | cegcc*)
8358 # This hack is so that the source file can tell whether it is being
8359 # built for inclusion in a dll (and should export symbols for example).
8360 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8361 # (--disable-auto-import) libraries
8362 lt_prog_compiler_pic='-DDLL_EXPORT'
8363 case $host_os in
8364 os2*)
8365 lt_prog_compiler_static='$wl-static'
8366 ;;
8367 esac
8368 ;;
8369
8370 darwin* | rhapsody*)
8371 # PIC is the default on this platform
8372 # Common symbols not allowed in MH_DYLIB files
8373 lt_prog_compiler_pic='-fno-common'
8374 ;;
8375
8376 haiku*)
8377 # PIC is the default for Haiku.
8378 # The "-static" flag exists, but is broken.
8379 lt_prog_compiler_static=
8380 ;;
8381
8382 hpux*)
8383 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8384 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8385 # sets the default TLS model and affects inlining.
8386 case $host_cpu in
8387 hppa*64*)
8388 # +Z the default
8389 ;;
8390 *)
8391 lt_prog_compiler_pic='-fPIC'
8392 ;;
8393 esac
8394 ;;
8395
8396 interix[3-9]*)
8397 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8398 # Instead, we relocate shared libraries at runtime.
8399 ;;
8400
8401 msdosdjgpp*)
8402 # Just because we use GCC doesn't mean we suddenly get shared libraries
8403 # on systems that don't support them.
8404 lt_prog_compiler_can_build_shared=no
8405 enable_shared=no
8406 ;;
8407
8408 *nto* | *qnx*)
8409 # QNX uses GNU C++, but need to define -shared option too, otherwise
8410 # it will coredump.
8411 lt_prog_compiler_pic='-fPIC -shared'
8412 ;;
8413
8414 sysv4*MP*)
8415 if test -d /usr/nec; then
8416 lt_prog_compiler_pic=-Kconform_pic
8417 fi
8418 ;;
8419
8420 *)
8421 lt_prog_compiler_pic='-fPIC'
8422 ;;
8423 esac
8424
8425 case $cc_basename in
8426 nvcc*) # Cuda Compiler Driver 2.2
8427 lt_prog_compiler_wl='-Xlinker '
8428 if test -n "$lt_prog_compiler_pic"; then
8429 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8430 fi
8431 ;;
8432 esac
8433 else
8434 # PORTME Check for flag to pass linker flags through the system compiler.
8435 case $host_os in
8436 aix*)
8437 lt_prog_compiler_wl='-Wl,'
8438 if test ia64 = "$host_cpu"; then
8439 # AIX 5 now supports IA64 processor
8440 lt_prog_compiler_static='-Bstatic'
8441 else
8442 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8443 fi
8444 ;;
8445
8446 darwin* | rhapsody*)
8447 # PIC is the default on this platform
8448 # Common symbols not allowed in MH_DYLIB files
8449 lt_prog_compiler_pic='-fno-common'
8450 case $cc_basename in
8451 nagfor*)
8452 # NAG Fortran compiler
8453 lt_prog_compiler_wl='-Wl,-Wl,,'
8454 lt_prog_compiler_pic='-PIC'
8455 lt_prog_compiler_static='-Bstatic'
8456 ;;
8457 esac
8458 ;;
8459
8460 mingw* | cygwin* | pw32* | os2* | cegcc*)
8461 # This hack is so that the source file can tell whether it is being
8462 # built for inclusion in a dll (and should export symbols for example).
8463 lt_prog_compiler_pic='-DDLL_EXPORT'
8464 case $host_os in
8465 os2*)
8466 lt_prog_compiler_static='$wl-static'
8467 ;;
8468 esac
8469 ;;
8470
8471 hpux9* | hpux10* | hpux11*)
8472 lt_prog_compiler_wl='-Wl,'
8473 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8474 # not for PA HP-UX.
8475 case $host_cpu in
8476 hppa*64*|ia64*)
8477 # +Z the default
8478 ;;
8479 *)
8480 lt_prog_compiler_pic='+Z'
8481 ;;
8482 esac
8483 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8484 lt_prog_compiler_static='$wl-a ${wl}archive'
8485 ;;
8486
8487 irix5* | irix6* | nonstopux*)
8488 lt_prog_compiler_wl='-Wl,'
8489 # PIC (with -KPIC) is the default.
8490 lt_prog_compiler_static='-non_shared'
8491 ;;
8492
8493 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8494 case $cc_basename in
8495 # old Intel for x86_64, which still supported -KPIC.
8496 ecc*)
8497 lt_prog_compiler_wl='-Wl,'
8498 lt_prog_compiler_pic='-KPIC'
8499 lt_prog_compiler_static='-static'
8500 ;;
8501 # icc used to be incompatible with GCC.
8502 # ICC 10 doesn't accept -KPIC any more.
8503 icc* | ifort*)
8504 lt_prog_compiler_wl='-Wl,'
8505 lt_prog_compiler_pic='-fPIC'
8506 lt_prog_compiler_static='-static'
8507 ;;
8508 # Lahey Fortran 8.1.
8509 lf95*)
8510 lt_prog_compiler_wl='-Wl,'
8511 lt_prog_compiler_pic='--shared'
8512 lt_prog_compiler_static='--static'
8513 ;;
8514 nagfor*)
8515 # NAG Fortran compiler
8516 lt_prog_compiler_wl='-Wl,-Wl,,'
8517 lt_prog_compiler_pic='-PIC'
8518 lt_prog_compiler_static='-Bstatic'
8519 ;;
8520 tcc*)
8521 # Fabrice Bellard et al's Tiny C Compiler
8522 lt_prog_compiler_wl='-Wl,'
8523 lt_prog_compiler_pic='-fPIC'
8524 lt_prog_compiler_static='-static'
8525 ;;
8526 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8527 # Portland Group compilers (*not* the Pentium gcc compiler,
8528 # which looks to be a dead project)
8529 lt_prog_compiler_wl='-Wl,'
8530 lt_prog_compiler_pic='-fpic'
8531 lt_prog_compiler_static='-Bstatic'
8532 ;;
8533 ccc*)
8534 lt_prog_compiler_wl='-Wl,'
8535 # All Alpha code is PIC.
8536 lt_prog_compiler_static='-non_shared'
8537 ;;
8538 xl* | bgxl* | bgf* | mpixl*)
8539 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_pic='-qpic'
8542 lt_prog_compiler_static='-qstaticlink'
8543 ;;
8544 *)
8545 case `$CC -V 2>&1 | sed 5q` in
8546 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8547 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8548 lt_prog_compiler_pic='-KPIC'
8549 lt_prog_compiler_static='-Bstatic'
8550 lt_prog_compiler_wl=''
8551 ;;
8552 *Sun\ F* | *Sun*Fortran*)
8553 lt_prog_compiler_pic='-KPIC'
8554 lt_prog_compiler_static='-Bstatic'
8555 lt_prog_compiler_wl='-Qoption ld '
8556 ;;
8557 *Sun\ C*)
8558 # Sun C 5.9
8559 lt_prog_compiler_pic='-KPIC'
8560 lt_prog_compiler_static='-Bstatic'
8561 lt_prog_compiler_wl='-Wl,'
8562 ;;
8563 *Intel*\ [CF]*Compiler*)
8564 lt_prog_compiler_wl='-Wl,'
8565 lt_prog_compiler_pic='-fPIC'
8566 lt_prog_compiler_static='-static'
8567 ;;
8568 *Portland\ Group*)
8569 lt_prog_compiler_wl='-Wl,'
8570 lt_prog_compiler_pic='-fpic'
8571 lt_prog_compiler_static='-Bstatic'
8572 ;;
8573 esac
8574 ;;
8575 esac
8576 ;;
8577
8578 newsos6)
8579 lt_prog_compiler_pic='-KPIC'
8580 lt_prog_compiler_static='-Bstatic'
8581 ;;
8582
8583 *nto* | *qnx*)
8584 # QNX uses GNU C++, but need to define -shared option too, otherwise
8585 # it will coredump.
8586 lt_prog_compiler_pic='-fPIC -shared'
8587 ;;
8588
8589 osf3* | osf4* | osf5*)
8590 lt_prog_compiler_wl='-Wl,'
8591 # All OSF/1 code is PIC.
8592 lt_prog_compiler_static='-non_shared'
8593 ;;
8594
8595 rdos*)
8596 lt_prog_compiler_static='-non_shared'
8597 ;;
8598
8599 solaris*)
8600 lt_prog_compiler_pic='-KPIC'
8601 lt_prog_compiler_static='-Bstatic'
8602 case $cc_basename in
8603 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8604 lt_prog_compiler_wl='-Qoption ld ';;
8605 *)
8606 lt_prog_compiler_wl='-Wl,';;
8607 esac
8608 ;;
8609
8610 sunos4*)
8611 lt_prog_compiler_wl='-Qoption ld '
8612 lt_prog_compiler_pic='-PIC'
8613 lt_prog_compiler_static='-Bstatic'
8614 ;;
8615
8616 sysv4 | sysv4.2uw2* | sysv4.3*)
8617 lt_prog_compiler_wl='-Wl,'
8618 lt_prog_compiler_pic='-KPIC'
8619 lt_prog_compiler_static='-Bstatic'
8620 ;;
8621
8622 sysv4*MP*)
8623 if test -d /usr/nec; then
8624 lt_prog_compiler_pic='-Kconform_pic'
8625 lt_prog_compiler_static='-Bstatic'
8626 fi
8627 ;;
8628
8629 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8630 lt_prog_compiler_wl='-Wl,'
8631 lt_prog_compiler_pic='-KPIC'
8632 lt_prog_compiler_static='-Bstatic'
8633 ;;
8634
8635 unicos*)
8636 lt_prog_compiler_wl='-Wl,'
8637 lt_prog_compiler_can_build_shared=no
8638 ;;
8639
8640 uts4*)
8641 lt_prog_compiler_pic='-pic'
8642 lt_prog_compiler_static='-Bstatic'
8643 ;;
8644
8645 *)
8646 lt_prog_compiler_can_build_shared=no
8647 ;;
8648 esac
8649 fi
8650
8651 case $host_os in
8652 # For platforms that do not support PIC, -DPIC is meaningless:
8653 *djgpp*)
8654 lt_prog_compiler_pic=
8655 ;;
8656 *)
8657 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8658 ;;
8659 esac
8660
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8662 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8663 if ${lt_cv_prog_compiler_pic+:} false; then :
8664 $as_echo_n "(cached) " >&6
8665 else
8666 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8667 fi
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8669 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8670 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8671
8672 #
8673 # Check to make sure the PIC flag actually works.
8674 #
8675 if test -n "$lt_prog_compiler_pic"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8677 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8678 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8679 $as_echo_n "(cached) " >&6
8680 else
8681 lt_cv_prog_compiler_pic_works=no
8682 ac_outfile=conftest.$ac_objext
8683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8684 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8685 # Insert the option either (1) after the last *FLAGS variable, or
8686 # (2) before a word containing "conftest.", or (3) at the end.
8687 # Note that $ac_compile itself does not contain backslashes and begins
8688 # with a dollar sign (not a hyphen), so the echo should work correctly.
8689 # The option is referenced via a variable to avoid confusing sed.
8690 lt_compile=`echo "$ac_compile" | $SED \
8691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8693 -e 's:$: $lt_compiler_flag:'`
8694 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8695 (eval "$lt_compile" 2>conftest.err)
8696 ac_status=$?
8697 cat conftest.err >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 if (exit $ac_status) && test -s "$ac_outfile"; then
8700 # The compiler can only warn and ignore the option if not recognized
8701 # So say no if there are warnings other than the usual output.
8702 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8704 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8705 lt_cv_prog_compiler_pic_works=yes
8706 fi
8707 fi
8708 $RM conftest*
8709
8710 fi
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8712 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8713
8714 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8715 case $lt_prog_compiler_pic in
8716 "" | " "*) ;;
8717 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8718 esac
8719 else
8720 lt_prog_compiler_pic=
8721 lt_prog_compiler_can_build_shared=no
8722 fi
8723
8724 fi
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736 #
8737 # Check to make sure the static flag actually works.
8738 #
8739 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8741 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8742 if ${lt_cv_prog_compiler_static_works+:} false; then :
8743 $as_echo_n "(cached) " >&6
8744 else
8745 lt_cv_prog_compiler_static_works=no
8746 save_LDFLAGS=$LDFLAGS
8747 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8748 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8750 # The linker can only warn and ignore the option if not recognized
8751 # So say no if there are warnings
8752 if test -s conftest.err; then
8753 # Append any errors to the config.log.
8754 cat conftest.err 1>&5
8755 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8757 if diff conftest.exp conftest.er2 >/dev/null; then
8758 lt_cv_prog_compiler_static_works=yes
8759 fi
8760 else
8761 lt_cv_prog_compiler_static_works=yes
8762 fi
8763 fi
8764 $RM -r conftest*
8765 LDFLAGS=$save_LDFLAGS
8766
8767 fi
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8769 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8770
8771 if test yes = "$lt_cv_prog_compiler_static_works"; then
8772 :
8773 else
8774 lt_prog_compiler_static=
8775 fi
8776
8777
8778
8779
8780
8781
8782
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8784 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8785 if ${lt_cv_prog_compiler_c_o+:} false; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 lt_cv_prog_compiler_c_o=no
8789 $RM -r conftest 2>/dev/null
8790 mkdir conftest
8791 cd conftest
8792 mkdir out
8793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8794
8795 lt_compiler_flag="-o out/conftest2.$ac_objext"
8796 # Insert the option either (1) after the last *FLAGS variable, or
8797 # (2) before a word containing "conftest.", or (3) at the end.
8798 # Note that $ac_compile itself does not contain backslashes and begins
8799 # with a dollar sign (not a hyphen), so the echo should work correctly.
8800 lt_compile=`echo "$ac_compile" | $SED \
8801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8803 -e 's:$: $lt_compiler_flag:'`
8804 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8805 (eval "$lt_compile" 2>out/conftest.err)
8806 ac_status=$?
8807 cat out/conftest.err >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8810 then
8811 # The compiler can only warn and ignore the option if not recognized
8812 # So say no if there are warnings
8813 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8814 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8815 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8816 lt_cv_prog_compiler_c_o=yes
8817 fi
8818 fi
8819 chmod u+w . 2>&5
8820 $RM conftest*
8821 # SGI C++ compiler will create directory out/ii_files/ for
8822 # template instantiation
8823 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8824 $RM out/* && rmdir out
8825 cd ..
8826 $RM -r conftest
8827 $RM conftest*
8828
8829 fi
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8831 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8832
8833
8834
8835
8836
8837
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8839 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8840 if ${lt_cv_prog_compiler_c_o+:} false; then :
8841 $as_echo_n "(cached) " >&6
8842 else
8843 lt_cv_prog_compiler_c_o=no
8844 $RM -r conftest 2>/dev/null
8845 mkdir conftest
8846 cd conftest
8847 mkdir out
8848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8849
8850 lt_compiler_flag="-o out/conftest2.$ac_objext"
8851 # Insert the option either (1) after the last *FLAGS variable, or
8852 # (2) before a word containing "conftest.", or (3) at the end.
8853 # Note that $ac_compile itself does not contain backslashes and begins
8854 # with a dollar sign (not a hyphen), so the echo should work correctly.
8855 lt_compile=`echo "$ac_compile" | $SED \
8856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8858 -e 's:$: $lt_compiler_flag:'`
8859 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8860 (eval "$lt_compile" 2>out/conftest.err)
8861 ac_status=$?
8862 cat out/conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8865 then
8866 # The compiler can only warn and ignore the option if not recognized
8867 # So say no if there are warnings
8868 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8869 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8870 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8871 lt_cv_prog_compiler_c_o=yes
8872 fi
8873 fi
8874 chmod u+w . 2>&5
8875 $RM conftest*
8876 # SGI C++ compiler will create directory out/ii_files/ for
8877 # template instantiation
8878 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8879 $RM out/* && rmdir out
8880 cd ..
8881 $RM -r conftest
8882 $RM conftest*
8883
8884 fi
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8886 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8887
8888
8889
8890
8891 hard_links=nottested
8892 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8893 # do not overwrite the value of need_locks provided by the user
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8895 $as_echo_n "checking if we can lock with hard links... " >&6; }
8896 hard_links=yes
8897 $RM conftest*
8898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8899 touch conftest.a
8900 ln conftest.a conftest.b 2>&5 || hard_links=no
8901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8903 $as_echo "$hard_links" >&6; }
8904 if test no = "$hard_links"; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8906 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8907 need_locks=warn
8908 fi
8909 else
8910 need_locks=no
8911 fi
8912
8913
8914
8915
8916
8917
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8919 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8920
8921 runpath_var=
8922 allow_undefined_flag=
8923 always_export_symbols=no
8924 archive_cmds=
8925 archive_expsym_cmds=
8926 compiler_needs_object=no
8927 enable_shared_with_static_runtimes=no
8928 export_dynamic_flag_spec=
8929 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8930 hardcode_automatic=no
8931 hardcode_direct=no
8932 hardcode_direct_absolute=no
8933 hardcode_libdir_flag_spec=
8934 hardcode_libdir_separator=
8935 hardcode_minus_L=no
8936 hardcode_shlibpath_var=unsupported
8937 inherit_rpath=no
8938 link_all_deplibs=unknown
8939 module_cmds=
8940 module_expsym_cmds=
8941 old_archive_from_new_cmds=
8942 old_archive_from_expsyms_cmds=
8943 thread_safe_flag_spec=
8944 whole_archive_flag_spec=
8945 # include_expsyms should be a list of space-separated symbols to be *always*
8946 # included in the symbol list
8947 include_expsyms=
8948 # exclude_expsyms can be an extended regexp of symbols to exclude
8949 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8950 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8951 # as well as any symbol that contains 'd'.
8952 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8953 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8954 # platforms (ab)use it in PIC code, but their linkers get confused if
8955 # the symbol is explicitly referenced. Since portable code cannot
8956 # rely on this symbol name, it's probably fine to never include it in
8957 # preloaded symbol tables.
8958 # Exclude shared library initialization/finalization symbols.
8959 extract_expsyms_cmds=
8960
8961 case $host_os in
8962 cygwin* | mingw* | pw32* | cegcc*)
8963 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8964 # When not using gcc, we currently assume that we are using
8965 # Microsoft Visual C++.
8966 if test yes != "$GCC"; then
8967 with_gnu_ld=no
8968 fi
8969 ;;
8970 interix*)
8971 # we just hope/assume this is gcc and not c89 (= MSVC++)
8972 with_gnu_ld=yes
8973 ;;
8974 openbsd* | bitrig*)
8975 with_gnu_ld=no
8976 ;;
8977 esac
8978
8979 ld_shlibs=yes
8980
8981 # On some targets, GNU ld is compatible enough with the native linker
8982 # that we're better off using the native interface for both.
8983 lt_use_gnu_ld_interface=no
8984 if test yes = "$with_gnu_ld"; then
8985 case $host_os in
8986 aix*)
8987 # The AIX port of GNU ld has always aspired to compatibility
8988 # with the native linker. However, as the warning in the GNU ld
8989 # block says, versions before 2.19.5* couldn't really create working
8990 # shared libraries, regardless of the interface used.
8991 case `$LD -v 2>&1` in
8992 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8993 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8994 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8995 *)
8996 lt_use_gnu_ld_interface=yes
8997 ;;
8998 esac
8999 ;;
9000 *)
9001 lt_use_gnu_ld_interface=yes
9002 ;;
9003 esac
9004 fi
9005
9006 if test yes = "$lt_use_gnu_ld_interface"; then
9007 # If archive_cmds runs LD, not CC, wlarc should be empty
9008 wlarc='$wl'
9009
9010 # Set some defaults for GNU ld with shared library support. These
9011 # are reset later if shared libraries are not supported. Putting them
9012 # here allows them to be overridden if necessary.
9013 runpath_var=LD_RUN_PATH
9014 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9015 export_dynamic_flag_spec='$wl--export-dynamic'
9016 # ancient GNU ld didn't support --whole-archive et. al.
9017 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9018 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9019 else
9020 whole_archive_flag_spec=
9021 fi
9022 supports_anon_versioning=no
9023 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9024 *GNU\ gold*) supports_anon_versioning=yes ;;
9025 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9026 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9027 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9028 *\ 2.11.*) ;; # other 2.11 versions
9029 *) supports_anon_versioning=yes ;;
9030 esac
9031
9032 # See if GNU ld supports shared libraries.
9033 case $host_os in
9034 aix[3-9]*)
9035 # On AIX/PPC, the GNU linker is very broken
9036 if test ia64 != "$host_cpu"; then
9037 ld_shlibs=no
9038 cat <<_LT_EOF 1>&2
9039
9040 *** Warning: the GNU linker, at least up to release 2.19, is reported
9041 *** to be unable to reliably create shared libraries on AIX.
9042 *** Therefore, libtool is disabling shared libraries support. If you
9043 *** really care for shared libraries, you may want to install binutils
9044 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9045 *** You will then need to restart the configuration process.
9046
9047 _LT_EOF
9048 fi
9049 ;;
9050
9051 amigaos*)
9052 case $host_cpu in
9053 powerpc)
9054 # see comment about AmigaOS4 .so support
9055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9056 archive_expsym_cmds=''
9057 ;;
9058 m68k)
9059 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)'
9060 hardcode_libdir_flag_spec='-L$libdir'
9061 hardcode_minus_L=yes
9062 ;;
9063 esac
9064 ;;
9065
9066 beos*)
9067 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9068 allow_undefined_flag=unsupported
9069 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9070 # support --undefined. This deserves some investigation. FIXME
9071 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9072 else
9073 ld_shlibs=no
9074 fi
9075 ;;
9076
9077 cygwin* | mingw* | pw32* | cegcc*)
9078 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9079 # as there is no search path for DLLs.
9080 hardcode_libdir_flag_spec='-L$libdir'
9081 export_dynamic_flag_spec='$wl--export-all-symbols'
9082 allow_undefined_flag=unsupported
9083 always_export_symbols=no
9084 enable_shared_with_static_runtimes=yes
9085 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'
9086 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9087
9088 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9090 # If the export-symbols file already is a .def file, use it as
9091 # is; otherwise, prepend EXPORTS...
9092 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9093 cp $export_symbols $output_objdir/$soname.def;
9094 else
9095 echo EXPORTS > $output_objdir/$soname.def;
9096 cat $export_symbols >> $output_objdir/$soname.def;
9097 fi~
9098 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9099 else
9100 ld_shlibs=no
9101 fi
9102 ;;
9103
9104 haiku*)
9105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9106 link_all_deplibs=yes
9107 ;;
9108
9109 os2*)
9110 hardcode_libdir_flag_spec='-L$libdir'
9111 hardcode_minus_L=yes
9112 allow_undefined_flag=unsupported
9113 shrext_cmds=.dll
9114 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9115 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9116 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9117 $ECHO EXPORTS >> $output_objdir/$libname.def~
9118 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9119 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9120 emximp -o $lib $output_objdir/$libname.def'
9121 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9122 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9123 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9124 $ECHO EXPORTS >> $output_objdir/$libname.def~
9125 prefix_cmds="$SED"~
9126 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9127 prefix_cmds="$prefix_cmds -e 1d";
9128 fi~
9129 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9130 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9131 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9132 emximp -o $lib $output_objdir/$libname.def'
9133 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9134 enable_shared_with_static_runtimes=yes
9135 ;;
9136
9137 interix[3-9]*)
9138 hardcode_direct=no
9139 hardcode_shlibpath_var=no
9140 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9141 export_dynamic_flag_spec='$wl-E'
9142 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9143 # Instead, shared libraries are loaded at an image base (0x10000000 by
9144 # default) and relocated if they conflict, which is a slow very memory
9145 # consuming and fragmenting process. To avoid this, we pick a random,
9146 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9147 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9148 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9149 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'
9150 ;;
9151
9152 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9153 tmp_diet=no
9154 if test linux-dietlibc = "$host_os"; then
9155 case $cc_basename in
9156 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9157 esac
9158 fi
9159 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9160 && test no = "$tmp_diet"
9161 then
9162 tmp_addflag=' $pic_flag'
9163 tmp_sharedflag='-shared'
9164 case $cc_basename,$host_cpu in
9165 pgcc*) # Portland Group C compiler
9166 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'
9167 tmp_addflag=' $pic_flag'
9168 ;;
9169 pgf77* | pgf90* | pgf95* | pgfortran*)
9170 # Portland Group f77 and f90 compilers
9171 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'
9172 tmp_addflag=' $pic_flag -Mnomain' ;;
9173 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9174 tmp_addflag=' -i_dynamic' ;;
9175 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9176 tmp_addflag=' -i_dynamic -nofor_main' ;;
9177 ifc* | ifort*) # Intel Fortran compiler
9178 tmp_addflag=' -nofor_main' ;;
9179 lf95*) # Lahey Fortran 8.1
9180 whole_archive_flag_spec=
9181 tmp_sharedflag='--shared' ;;
9182 nagfor*) # NAGFOR 5.3
9183 tmp_sharedflag='-Wl,-shared' ;;
9184 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9185 tmp_sharedflag='-qmkshrobj'
9186 tmp_addflag= ;;
9187 nvcc*) # Cuda Compiler Driver 2.2
9188 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'
9189 compiler_needs_object=yes
9190 ;;
9191 esac
9192 case `$CC -V 2>&1 | sed 5q` in
9193 *Sun\ C*) # Sun C 5.9
9194 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'
9195 compiler_needs_object=yes
9196 tmp_sharedflag='-G' ;;
9197 *Sun\ F*) # Sun Fortran 8.3
9198 tmp_sharedflag='-G' ;;
9199 esac
9200 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9201
9202 if test yes = "$supports_anon_versioning"; then
9203 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9204 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9205 echo "local: *; };" >> $output_objdir/$libname.ver~
9206 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9207 fi
9208
9209 case $cc_basename in
9210 tcc*)
9211 export_dynamic_flag_spec='-rdynamic'
9212 ;;
9213 xlf* | bgf* | bgxlf* | mpixlf*)
9214 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9215 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9216 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9217 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9218 if test yes = "$supports_anon_versioning"; then
9219 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9220 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9221 echo "local: *; };" >> $output_objdir/$libname.ver~
9222 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9223 fi
9224 ;;
9225 esac
9226 else
9227 ld_shlibs=no
9228 fi
9229 ;;
9230
9231 netbsd*)
9232 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9233 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9234 wlarc=
9235 else
9236 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9237 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9238 fi
9239 ;;
9240
9241 solaris*)
9242 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9243 ld_shlibs=no
9244 cat <<_LT_EOF 1>&2
9245
9246 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9247 *** create shared libraries on Solaris systems. Therefore, libtool
9248 *** is disabling shared libraries support. We urge you to upgrade GNU
9249 *** binutils to release 2.9.1 or newer. Another option is to modify
9250 *** your PATH or compiler configuration so that the native linker is
9251 *** used, and then restart.
9252
9253 _LT_EOF
9254 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9255 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9256 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9257 else
9258 ld_shlibs=no
9259 fi
9260 ;;
9261
9262 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9263 case `$LD -v 2>&1` in
9264 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9265 ld_shlibs=no
9266 cat <<_LT_EOF 1>&2
9267
9268 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9269 *** reliably create shared libraries on SCO systems. Therefore, libtool
9270 *** is disabling shared libraries support. We urge you to upgrade GNU
9271 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9272 *** your PATH or compiler configuration so that the native linker is
9273 *** used, and then restart.
9274
9275 _LT_EOF
9276 ;;
9277 *)
9278 # For security reasons, it is highly recommended that you always
9279 # use absolute paths for naming shared libraries, and exclude the
9280 # DT_RUNPATH tag from executables and libraries. But doing so
9281 # requires that you compile everything twice, which is a pain.
9282 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9283 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9285 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9286 else
9287 ld_shlibs=no
9288 fi
9289 ;;
9290 esac
9291 ;;
9292
9293 sunos4*)
9294 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9295 wlarc=
9296 hardcode_direct=yes
9297 hardcode_shlibpath_var=no
9298 ;;
9299
9300 *)
9301 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9302 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9303 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9304 else
9305 ld_shlibs=no
9306 fi
9307 ;;
9308 esac
9309
9310 if test no = "$ld_shlibs"; then
9311 runpath_var=
9312 hardcode_libdir_flag_spec=
9313 export_dynamic_flag_spec=
9314 whole_archive_flag_spec=
9315 fi
9316 else
9317 # PORTME fill in a description of your system's linker (not GNU ld)
9318 case $host_os in
9319 aix3*)
9320 allow_undefined_flag=unsupported
9321 always_export_symbols=yes
9322 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'
9323 # Note: this linker hardcodes the directories in LIBPATH if there
9324 # are no directories specified by -L.
9325 hardcode_minus_L=yes
9326 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9327 # Neither direct hardcoding nor static linking is supported with a
9328 # broken collect2.
9329 hardcode_direct=unsupported
9330 fi
9331 ;;
9332
9333 aix[4-9]*)
9334 if test ia64 = "$host_cpu"; then
9335 # On IA64, the linker does run time linking by default, so we don't
9336 # have to do anything special.
9337 aix_use_runtimelinking=no
9338 exp_sym_flag='-Bexport'
9339 no_entry_flag=
9340 else
9341 # If we're using GNU nm, then we don't want the "-C" option.
9342 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9343 # Without the "-l" option, or with the "-B" option, AIX nm treats
9344 # weak defined symbols like other global defined symbols, whereas
9345 # GNU nm marks them as "W".
9346 # While the 'weak' keyword is ignored in the Export File, we need
9347 # it in the Import File for the 'aix-soname' feature, so we have
9348 # to replace the "-B" option with "-P" for AIX nm.
9349 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9350 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9351 else
9352 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9353 fi
9354 aix_use_runtimelinking=no
9355
9356 # Test if we are trying to use run time linking or normal
9357 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9358 # have runtime linking enabled, and use it for executables.
9359 # For shared libraries, we enable/disable runtime linking
9360 # depending on the kind of the shared library created -
9361 # when "with_aix_soname,aix_use_runtimelinking" is:
9362 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9363 # "aix,yes" lib.so shared, rtl:yes, for executables
9364 # lib.a static archive
9365 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9366 # lib.a(lib.so.V) shared, rtl:no, for executables
9367 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9368 # lib.a(lib.so.V) shared, rtl:no
9369 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9370 # lib.a static archive
9371 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9372 for ld_flag in $LDFLAGS; do
9373 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9374 aix_use_runtimelinking=yes
9375 break
9376 fi
9377 done
9378 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9379 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9380 # so we don't have lib.a shared libs to link our executables.
9381 # We have to force runtime linking in this case.
9382 aix_use_runtimelinking=yes
9383 LDFLAGS="$LDFLAGS -Wl,-brtl"
9384 fi
9385 ;;
9386 esac
9387
9388 exp_sym_flag='-bexport'
9389 no_entry_flag='-bnoentry'
9390 fi
9391
9392 # When large executables or shared objects are built, AIX ld can
9393 # have problems creating the table of contents. If linking a library
9394 # or program results in "error TOC overflow" add -mminimal-toc to
9395 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9396 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9397
9398 archive_cmds=''
9399 hardcode_direct=yes
9400 hardcode_direct_absolute=yes
9401 hardcode_libdir_separator=':'
9402 link_all_deplibs=yes
9403 file_list_spec='$wl-f,'
9404 case $with_aix_soname,$aix_use_runtimelinking in
9405 aix,*) ;; # traditional, no import file
9406 svr4,* | *,yes) # use import file
9407 # The Import File defines what to hardcode.
9408 hardcode_direct=no
9409 hardcode_direct_absolute=no
9410 ;;
9411 esac
9412
9413 if test yes = "$GCC"; then
9414 case $host_os in aix4.[012]|aix4.[012].*)
9415 # We only want to do this on AIX 4.2 and lower, the check
9416 # below for broken collect2 doesn't work under 4.3+
9417 collect2name=`$CC -print-prog-name=collect2`
9418 if test -f "$collect2name" &&
9419 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9420 then
9421 # We have reworked collect2
9422 :
9423 else
9424 # We have old collect2
9425 hardcode_direct=unsupported
9426 # It fails to find uninstalled libraries when the uninstalled
9427 # path is not listed in the libpath. Setting hardcode_minus_L
9428 # to unsupported forces relinking
9429 hardcode_minus_L=yes
9430 hardcode_libdir_flag_spec='-L$libdir'
9431 hardcode_libdir_separator=
9432 fi
9433 ;;
9434 esac
9435 shared_flag='-shared'
9436 if test yes = "$aix_use_runtimelinking"; then
9437 shared_flag="$shared_flag "'$wl-G'
9438 fi
9439 # Need to ensure runtime linking is disabled for the traditional
9440 # shared library, or the linker may eventually find shared libraries
9441 # /with/ Import File - we do not want to mix them.
9442 shared_flag_aix='-shared'
9443 shared_flag_svr4='-shared $wl-G'
9444 else
9445 # not using gcc
9446 if test ia64 = "$host_cpu"; then
9447 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9448 # chokes on -Wl,-G. The following line is correct:
9449 shared_flag='-G'
9450 else
9451 if test yes = "$aix_use_runtimelinking"; then
9452 shared_flag='$wl-G'
9453 else
9454 shared_flag='$wl-bM:SRE'
9455 fi
9456 shared_flag_aix='$wl-bM:SRE'
9457 shared_flag_svr4='$wl-G'
9458 fi
9459 fi
9460
9461 export_dynamic_flag_spec='$wl-bexpall'
9462 # It seems that -bexpall does not export symbols beginning with
9463 # underscore (_), so it is better to generate a list of symbols to export.
9464 always_export_symbols=yes
9465 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9466 # Warning - without using the other runtime loading flags (-brtl),
9467 # -berok will link without error, but may produce a broken library.
9468 allow_undefined_flag='-berok'
9469 # Determine the default libpath from the value encoded in an
9470 # empty executable.
9471 if test set = "${lt_cv_aix_libpath+set}"; then
9472 aix_libpath=$lt_cv_aix_libpath
9473 else
9474 if ${lt_cv_aix_libpath_+:} false; then :
9475 $as_echo_n "(cached) " >&6
9476 else
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479
9480 int
9481 main ()
9482 {
9483
9484 ;
9485 return 0;
9486 }
9487 _ACEOF
9488 if ac_fn_c_try_link "$LINENO"; then :
9489
9490 lt_aix_libpath_sed='
9491 /Import File Strings/,/^$/ {
9492 /^0/ {
9493 s/^0 *\([^ ]*\) *$/\1/
9494 p
9495 }
9496 }'
9497 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9498 # Check for a 64-bit object if we didn't find anything.
9499 if test -z "$lt_cv_aix_libpath_"; then
9500 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9501 fi
9502 fi
9503 rm -f core conftest.err conftest.$ac_objext \
9504 conftest$ac_exeext conftest.$ac_ext
9505 if test -z "$lt_cv_aix_libpath_"; then
9506 lt_cv_aix_libpath_=/usr/lib:/lib
9507 fi
9508
9509 fi
9510
9511 aix_libpath=$lt_cv_aix_libpath_
9512 fi
9513
9514 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9515 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9516 else
9517 if test ia64 = "$host_cpu"; then
9518 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9519 allow_undefined_flag="-z nodefs"
9520 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"
9521 else
9522 # Determine the default libpath from the value encoded in an
9523 # empty executable.
9524 if test set = "${lt_cv_aix_libpath+set}"; then
9525 aix_libpath=$lt_cv_aix_libpath
9526 else
9527 if ${lt_cv_aix_libpath_+:} false; then :
9528 $as_echo_n "(cached) " >&6
9529 else
9530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h. */
9532
9533 int
9534 main ()
9535 {
9536
9537 ;
9538 return 0;
9539 }
9540 _ACEOF
9541 if ac_fn_c_try_link "$LINENO"; then :
9542
9543 lt_aix_libpath_sed='
9544 /Import File Strings/,/^$/ {
9545 /^0/ {
9546 s/^0 *\([^ ]*\) *$/\1/
9547 p
9548 }
9549 }'
9550 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9551 # Check for a 64-bit object if we didn't find anything.
9552 if test -z "$lt_cv_aix_libpath_"; then
9553 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9554 fi
9555 fi
9556 rm -f core conftest.err conftest.$ac_objext \
9557 conftest$ac_exeext conftest.$ac_ext
9558 if test -z "$lt_cv_aix_libpath_"; then
9559 lt_cv_aix_libpath_=/usr/lib:/lib
9560 fi
9561
9562 fi
9563
9564 aix_libpath=$lt_cv_aix_libpath_
9565 fi
9566
9567 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9568 # Warning - without using the other run time loading flags,
9569 # -berok will link without error, but may produce a broken library.
9570 no_undefined_flag=' $wl-bernotok'
9571 allow_undefined_flag=' $wl-berok'
9572 if test yes = "$with_gnu_ld"; then
9573 # We only use this code for GNU lds that support --whole-archive.
9574 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9575 else
9576 # Exported symbols can be pulled into shared objects from archives
9577 whole_archive_flag_spec='$convenience'
9578 fi
9579 archive_cmds_need_lc=yes
9580 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9581 # -brtl affects multiple linker settings, -berok does not and is overridden later
9582 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9583 if test svr4 != "$with_aix_soname"; then
9584 # This is similar to how AIX traditionally builds its shared libraries.
9585 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9586 fi
9587 if test aix != "$with_aix_soname"; then
9588 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9589 else
9590 # used by -dlpreopen to get the symbols
9591 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9592 fi
9593 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9594 fi
9595 fi
9596 ;;
9597
9598 amigaos*)
9599 case $host_cpu in
9600 powerpc)
9601 # see comment about AmigaOS4 .so support
9602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9603 archive_expsym_cmds=''
9604 ;;
9605 m68k)
9606 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)'
9607 hardcode_libdir_flag_spec='-L$libdir'
9608 hardcode_minus_L=yes
9609 ;;
9610 esac
9611 ;;
9612
9613 bsdi[45]*)
9614 export_dynamic_flag_spec=-rdynamic
9615 ;;
9616
9617 cygwin* | mingw* | pw32* | cegcc*)
9618 # When not using gcc, we currently assume that we are using
9619 # Microsoft Visual C++.
9620 # hardcode_libdir_flag_spec is actually meaningless, as there is
9621 # no search path for DLLs.
9622 case $cc_basename in
9623 cl*)
9624 # Native MSVC
9625 hardcode_libdir_flag_spec=' '
9626 allow_undefined_flag=unsupported
9627 always_export_symbols=yes
9628 file_list_spec='@'
9629 # Tell ltmain to make .lib files, not .a files.
9630 libext=lib
9631 # Tell ltmain to make .dll files, not .so files.
9632 shrext_cmds=.dll
9633 # FIXME: Setting linknames here is a bad hack.
9634 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9635 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9636 cp "$export_symbols" "$output_objdir/$soname.def";
9637 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9638 else
9639 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9640 fi~
9641 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9642 linknames='
9643 # The linker will not automatically build a static lib if we build a DLL.
9644 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9645 enable_shared_with_static_runtimes=yes
9646 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9647 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9648 # Don't use ranlib
9649 old_postinstall_cmds='chmod 644 $oldlib'
9650 postlink_cmds='lt_outputfile="@OUTPUT@"~
9651 lt_tool_outputfile="@TOOL_OUTPUT@"~
9652 case $lt_outputfile in
9653 *.exe|*.EXE) ;;
9654 *)
9655 lt_outputfile=$lt_outputfile.exe
9656 lt_tool_outputfile=$lt_tool_outputfile.exe
9657 ;;
9658 esac~
9659 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9660 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9661 $RM "$lt_outputfile.manifest";
9662 fi'
9663 ;;
9664 *)
9665 # Assume MSVC wrapper
9666 hardcode_libdir_flag_spec=' '
9667 allow_undefined_flag=unsupported
9668 # Tell ltmain to make .lib files, not .a files.
9669 libext=lib
9670 # Tell ltmain to make .dll files, not .so files.
9671 shrext_cmds=.dll
9672 # FIXME: Setting linknames here is a bad hack.
9673 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9674 # The linker will automatically build a .lib file if we build a DLL.
9675 old_archive_from_new_cmds='true'
9676 # FIXME: Should let the user specify the lib program.
9677 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9678 enable_shared_with_static_runtimes=yes
9679 ;;
9680 esac
9681 ;;
9682
9683 darwin* | rhapsody*)
9684
9685
9686 archive_cmds_need_lc=no
9687 hardcode_direct=no
9688 hardcode_automatic=yes
9689 hardcode_shlibpath_var=unsupported
9690 if test yes = "$lt_cv_ld_force_load"; then
9691 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\"`'
9692
9693 else
9694 whole_archive_flag_spec=''
9695 fi
9696 link_all_deplibs=yes
9697 allow_undefined_flag=$_lt_dar_allow_undefined
9698 case $cc_basename in
9699 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9700 *) _lt_dar_can_shared=$GCC ;;
9701 esac
9702 if test yes = "$_lt_dar_can_shared"; then
9703 output_verbose_link_cmd=func_echo_all
9704 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9705 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9706 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"
9707 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"
9708
9709 else
9710 ld_shlibs=no
9711 fi
9712
9713 ;;
9714
9715 dgux*)
9716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9717 hardcode_libdir_flag_spec='-L$libdir'
9718 hardcode_shlibpath_var=no
9719 ;;
9720
9721 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9722 # support. Future versions do this automatically, but an explicit c++rt0.o
9723 # does not break anything, and helps significantly (at the cost of a little
9724 # extra space).
9725 freebsd2.2*)
9726 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9727 hardcode_libdir_flag_spec='-R$libdir'
9728 hardcode_direct=yes
9729 hardcode_shlibpath_var=no
9730 ;;
9731
9732 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9733 freebsd2.*)
9734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9735 hardcode_direct=yes
9736 hardcode_minus_L=yes
9737 hardcode_shlibpath_var=no
9738 ;;
9739
9740 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9741 freebsd* | dragonfly*)
9742 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9743 hardcode_libdir_flag_spec='-R$libdir'
9744 hardcode_direct=yes
9745 hardcode_shlibpath_var=no
9746 ;;
9747
9748 hpux9*)
9749 if test yes = "$GCC"; then
9750 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9751 else
9752 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9753 fi
9754 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9755 hardcode_libdir_separator=:
9756 hardcode_direct=yes
9757
9758 # hardcode_minus_L: Not really in the search PATH,
9759 # but as the default location of the library.
9760 hardcode_minus_L=yes
9761 export_dynamic_flag_spec='$wl-E'
9762 ;;
9763
9764 hpux10*)
9765 if test yes,no = "$GCC,$with_gnu_ld"; then
9766 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9767 else
9768 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9769 fi
9770 if test no = "$with_gnu_ld"; then
9771 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9772 hardcode_libdir_separator=:
9773 hardcode_direct=yes
9774 hardcode_direct_absolute=yes
9775 export_dynamic_flag_spec='$wl-E'
9776 # hardcode_minus_L: Not really in the search PATH,
9777 # but as the default location of the library.
9778 hardcode_minus_L=yes
9779 fi
9780 ;;
9781
9782 hpux11*)
9783 if test yes,no = "$GCC,$with_gnu_ld"; then
9784 case $host_cpu in
9785 hppa*64*)
9786 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9787 ;;
9788 ia64*)
9789 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9790 ;;
9791 *)
9792 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9793 ;;
9794 esac
9795 else
9796 case $host_cpu in
9797 hppa*64*)
9798 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9799 ;;
9800 ia64*)
9801 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9802 ;;
9803 *)
9804
9805 # Older versions of the 11.00 compiler do not understand -b yet
9806 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9808 $as_echo_n "checking if $CC understands -b... " >&6; }
9809 if ${lt_cv_prog_compiler__b+:} false; then :
9810 $as_echo_n "(cached) " >&6
9811 else
9812 lt_cv_prog_compiler__b=no
9813 save_LDFLAGS=$LDFLAGS
9814 LDFLAGS="$LDFLAGS -b"
9815 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9816 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9817 # The linker can only warn and ignore the option if not recognized
9818 # So say no if there are warnings
9819 if test -s conftest.err; then
9820 # Append any errors to the config.log.
9821 cat conftest.err 1>&5
9822 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9824 if diff conftest.exp conftest.er2 >/dev/null; then
9825 lt_cv_prog_compiler__b=yes
9826 fi
9827 else
9828 lt_cv_prog_compiler__b=yes
9829 fi
9830 fi
9831 $RM -r conftest*
9832 LDFLAGS=$save_LDFLAGS
9833
9834 fi
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9836 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9837
9838 if test yes = "$lt_cv_prog_compiler__b"; then
9839 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9840 else
9841 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9842 fi
9843
9844 ;;
9845 esac
9846 fi
9847 if test no = "$with_gnu_ld"; then
9848 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9849 hardcode_libdir_separator=:
9850
9851 case $host_cpu in
9852 hppa*64*|ia64*)
9853 hardcode_direct=no
9854 hardcode_shlibpath_var=no
9855 ;;
9856 *)
9857 hardcode_direct=yes
9858 hardcode_direct_absolute=yes
9859 export_dynamic_flag_spec='$wl-E'
9860
9861 # hardcode_minus_L: Not really in the search PATH,
9862 # but as the default location of the library.
9863 hardcode_minus_L=yes
9864 ;;
9865 esac
9866 fi
9867 ;;
9868
9869 irix5* | irix6* | nonstopux*)
9870 if test yes = "$GCC"; then
9871 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'
9872 # Try to use the -exported_symbol ld option, if it does not
9873 # work, assume that -exports_file does not work either and
9874 # implicitly export all symbols.
9875 # This should be the same for all languages, so no per-tag cache variable.
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9877 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9878 if ${lt_cv_irix_exported_symbol+:} false; then :
9879 $as_echo_n "(cached) " >&6
9880 else
9881 save_LDFLAGS=$LDFLAGS
9882 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h. */
9885 int foo (void) { return 0; }
9886 _ACEOF
9887 if ac_fn_c_try_link "$LINENO"; then :
9888 lt_cv_irix_exported_symbol=yes
9889 else
9890 lt_cv_irix_exported_symbol=no
9891 fi
9892 rm -f core conftest.err conftest.$ac_objext \
9893 conftest$ac_exeext conftest.$ac_ext
9894 LDFLAGS=$save_LDFLAGS
9895 fi
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9897 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9898 if test yes = "$lt_cv_irix_exported_symbol"; then
9899 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'
9900 fi
9901 else
9902 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'
9903 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'
9904 fi
9905 archive_cmds_need_lc='no'
9906 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9907 hardcode_libdir_separator=:
9908 inherit_rpath=yes
9909 link_all_deplibs=yes
9910 ;;
9911
9912 linux*)
9913 case $cc_basename in
9914 tcc*)
9915 # Fabrice Bellard et al's Tiny C Compiler
9916 ld_shlibs=yes
9917 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9918 ;;
9919 esac
9920 ;;
9921
9922 netbsd*)
9923 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9924 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9925 else
9926 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9927 fi
9928 hardcode_libdir_flag_spec='-R$libdir'
9929 hardcode_direct=yes
9930 hardcode_shlibpath_var=no
9931 ;;
9932
9933 newsos6)
9934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9935 hardcode_direct=yes
9936 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9937 hardcode_libdir_separator=:
9938 hardcode_shlibpath_var=no
9939 ;;
9940
9941 *nto* | *qnx*)
9942 ;;
9943
9944 openbsd* | bitrig*)
9945 if test -f /usr/libexec/ld.so; then
9946 hardcode_direct=yes
9947 hardcode_shlibpath_var=no
9948 hardcode_direct_absolute=yes
9949 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9950 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9951 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9952 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9953 export_dynamic_flag_spec='$wl-E'
9954 else
9955 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9956 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9957 fi
9958 else
9959 ld_shlibs=no
9960 fi
9961 ;;
9962
9963 os2*)
9964 hardcode_libdir_flag_spec='-L$libdir'
9965 hardcode_minus_L=yes
9966 allow_undefined_flag=unsupported
9967 shrext_cmds=.dll
9968 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9969 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9970 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9971 $ECHO EXPORTS >> $output_objdir/$libname.def~
9972 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9973 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9974 emximp -o $lib $output_objdir/$libname.def'
9975 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9976 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9977 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9978 $ECHO EXPORTS >> $output_objdir/$libname.def~
9979 prefix_cmds="$SED"~
9980 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9981 prefix_cmds="$prefix_cmds -e 1d";
9982 fi~
9983 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9984 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9985 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9986 emximp -o $lib $output_objdir/$libname.def'
9987 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9988 enable_shared_with_static_runtimes=yes
9989 ;;
9990
9991 osf3*)
9992 if test yes = "$GCC"; then
9993 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9994 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'
9995 else
9996 allow_undefined_flag=' -expect_unresolved \*'
9997 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'
9998 fi
9999 archive_cmds_need_lc='no'
10000 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10001 hardcode_libdir_separator=:
10002 ;;
10003
10004 osf4* | osf5*) # as osf3* with the addition of -msym flag
10005 if test yes = "$GCC"; then
10006 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10007 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'
10008 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10009 else
10010 allow_undefined_flag=' -expect_unresolved \*'
10011 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'
10012 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~
10013 $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'
10014
10015 # Both c and cxx compiler support -rpath directly
10016 hardcode_libdir_flag_spec='-rpath $libdir'
10017 fi
10018 archive_cmds_need_lc='no'
10019 hardcode_libdir_separator=:
10020 ;;
10021
10022 solaris*)
10023 no_undefined_flag=' -z defs'
10024 if test yes = "$GCC"; then
10025 wlarc='$wl'
10026 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10027 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10028 $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'
10029 else
10030 case `$CC -V 2>&1` in
10031 *"Compilers 5.0"*)
10032 wlarc=''
10033 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10034 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10035 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10036 ;;
10037 *)
10038 wlarc='$wl'
10039 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10040 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10041 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10042 ;;
10043 esac
10044 fi
10045 hardcode_libdir_flag_spec='-R$libdir'
10046 hardcode_shlibpath_var=no
10047 case $host_os in
10048 solaris2.[0-5] | solaris2.[0-5].*) ;;
10049 *)
10050 # The compiler driver will combine and reorder linker options,
10051 # but understands '-z linker_flag'. GCC discards it without '$wl',
10052 # but is careful enough not to reorder.
10053 # Supported since Solaris 2.6 (maybe 2.5.1?)
10054 if test yes = "$GCC"; then
10055 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10056 else
10057 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10058 fi
10059 ;;
10060 esac
10061 link_all_deplibs=yes
10062 ;;
10063
10064 sunos4*)
10065 if test sequent = "$host_vendor"; then
10066 # Use $CC to link under sequent, because it throws in some extra .o
10067 # files that make .init and .fini sections work.
10068 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10069 else
10070 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10071 fi
10072 hardcode_libdir_flag_spec='-L$libdir'
10073 hardcode_direct=yes
10074 hardcode_minus_L=yes
10075 hardcode_shlibpath_var=no
10076 ;;
10077
10078 sysv4)
10079 case $host_vendor in
10080 sni)
10081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10082 hardcode_direct=yes # is this really true???
10083 ;;
10084 siemens)
10085 ## LD is ld it makes a PLAMLIB
10086 ## CC just makes a GrossModule.
10087 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10088 reload_cmds='$CC -r -o $output$reload_objs'
10089 hardcode_direct=no
10090 ;;
10091 motorola)
10092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10093 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10094 ;;
10095 esac
10096 runpath_var='LD_RUN_PATH'
10097 hardcode_shlibpath_var=no
10098 ;;
10099
10100 sysv4.3*)
10101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102 hardcode_shlibpath_var=no
10103 export_dynamic_flag_spec='-Bexport'
10104 ;;
10105
10106 sysv4*MP*)
10107 if test -d /usr/nec; then
10108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10109 hardcode_shlibpath_var=no
10110 runpath_var=LD_RUN_PATH
10111 hardcode_runpath_var=yes
10112 ld_shlibs=yes
10113 fi
10114 ;;
10115
10116 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10117 no_undefined_flag='$wl-z,text'
10118 archive_cmds_need_lc=no
10119 hardcode_shlibpath_var=no
10120 runpath_var='LD_RUN_PATH'
10121
10122 if test yes = "$GCC"; then
10123 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10124 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125 else
10126 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10127 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10128 fi
10129 ;;
10130
10131 sysv5* | sco3.2v5* | sco5v6*)
10132 # Note: We CANNOT use -z defs as we might desire, because we do not
10133 # link with -lc, and that would cause any symbols used from libc to
10134 # always be unresolved, which means just about no library would
10135 # ever link correctly. If we're not using GNU ld we use -z text
10136 # though, which does catch some bad symbols but isn't as heavy-handed
10137 # as -z defs.
10138 no_undefined_flag='$wl-z,text'
10139 allow_undefined_flag='$wl-z,nodefs'
10140 archive_cmds_need_lc=no
10141 hardcode_shlibpath_var=no
10142 hardcode_libdir_flag_spec='$wl-R,$libdir'
10143 hardcode_libdir_separator=':'
10144 link_all_deplibs=yes
10145 export_dynamic_flag_spec='$wl-Bexport'
10146 runpath_var='LD_RUN_PATH'
10147
10148 if test yes = "$GCC"; then
10149 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10150 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10151 else
10152 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154 fi
10155 ;;
10156
10157 uts4*)
10158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10159 hardcode_libdir_flag_spec='-L$libdir'
10160 hardcode_shlibpath_var=no
10161 ;;
10162
10163 *)
10164 ld_shlibs=no
10165 ;;
10166 esac
10167
10168 if test sni = "$host_vendor"; then
10169 case $host in
10170 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10171 export_dynamic_flag_spec='$wl-Blargedynsym'
10172 ;;
10173 esac
10174 fi
10175 fi
10176
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10178 $as_echo "$ld_shlibs" >&6; }
10179 test no = "$ld_shlibs" && can_build_shared=no
10180
10181 with_gnu_ld=$with_gnu_ld
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197 #
10198 # Do we need to explicitly link libc?
10199 #
10200 case "x$archive_cmds_need_lc" in
10201 x|xyes)
10202 # Assume -lc should be added
10203 archive_cmds_need_lc=yes
10204
10205 if test yes,yes = "$GCC,$enable_shared"; then
10206 case $archive_cmds in
10207 *'~'*)
10208 # FIXME: we may have to deal with multi-command sequences.
10209 ;;
10210 '$CC '*)
10211 # Test whether the compiler implicitly links with -lc since on some
10212 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10213 # to ld, don't add -lc before -lgcc.
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10215 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10216 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10217 $as_echo_n "(cached) " >&6
10218 else
10219 $RM conftest*
10220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10221
10222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10223 (eval $ac_compile) 2>&5
10224 ac_status=$?
10225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10226 test $ac_status = 0; } 2>conftest.err; then
10227 soname=conftest
10228 lib=conftest
10229 libobjs=conftest.$ac_objext
10230 deplibs=
10231 wl=$lt_prog_compiler_wl
10232 pic_flag=$lt_prog_compiler_pic
10233 compiler_flags=-v
10234 linker_flags=-v
10235 verstring=
10236 output_objdir=.
10237 libname=conftest
10238 lt_save_allow_undefined_flag=$allow_undefined_flag
10239 allow_undefined_flag=
10240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10241 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10242 ac_status=$?
10243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10244 test $ac_status = 0; }
10245 then
10246 lt_cv_archive_cmds_need_lc=no
10247 else
10248 lt_cv_archive_cmds_need_lc=yes
10249 fi
10250 allow_undefined_flag=$lt_save_allow_undefined_flag
10251 else
10252 cat conftest.err 1>&5
10253 fi
10254 $RM conftest*
10255
10256 fi
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10258 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10259 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10260 ;;
10261 esac
10262 fi
10263 ;;
10264 esac
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10418 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10419
10420 if test yes = "$GCC"; then
10421 case $host_os in
10422 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10423 *) lt_awk_arg='/^libraries:/' ;;
10424 esac
10425 case $host_os in
10426 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10427 *) lt_sed_strip_eq='s|=/|/|g' ;;
10428 esac
10429 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10430 case $lt_search_path_spec in
10431 *\;*)
10432 # if the path contains ";" then we assume it to be the separator
10433 # otherwise default to the standard path separator (i.e. ":") - it is
10434 # assumed that no part of a normal pathname contains ";" but that should
10435 # okay in the real world where ";" in dirpaths is itself problematic.
10436 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10437 ;;
10438 *)
10439 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10440 ;;
10441 esac
10442 # Ok, now we have the path, separated by spaces, we can step through it
10443 # and add multilib dir if necessary...
10444 lt_tmp_lt_search_path_spec=
10445 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10446 # ...but if some path component already ends with the multilib dir we assume
10447 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10448 case "$lt_multi_os_dir; $lt_search_path_spec " in
10449 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10450 lt_multi_os_dir=
10451 ;;
10452 esac
10453 for lt_sys_path in $lt_search_path_spec; do
10454 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10455 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10456 elif test -n "$lt_multi_os_dir"; then
10457 test -d "$lt_sys_path" && \
10458 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10459 fi
10460 done
10461 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10462 BEGIN {RS = " "; FS = "/|\n";} {
10463 lt_foo = "";
10464 lt_count = 0;
10465 for (lt_i = NF; lt_i > 0; lt_i--) {
10466 if ($lt_i != "" && $lt_i != ".") {
10467 if ($lt_i == "..") {
10468 lt_count++;
10469 } else {
10470 if (lt_count == 0) {
10471 lt_foo = "/" $lt_i lt_foo;
10472 } else {
10473 lt_count--;
10474 }
10475 }
10476 }
10477 }
10478 if (lt_foo != "") { lt_freq[lt_foo]++; }
10479 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10480 }'`
10481 # AWK program above erroneously prepends '/' to C:/dos/paths
10482 # for these hosts.
10483 case $host_os in
10484 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10485 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10486 esac
10487 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10488 else
10489 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10490 fi
10491 library_names_spec=
10492 libname_spec='lib$name'
10493 soname_spec=
10494 shrext_cmds=.so
10495 postinstall_cmds=
10496 postuninstall_cmds=
10497 finish_cmds=
10498 finish_eval=
10499 shlibpath_var=
10500 shlibpath_overrides_runpath=unknown
10501 version_type=none
10502 dynamic_linker="$host_os ld.so"
10503 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10504 need_lib_prefix=unknown
10505 hardcode_into_libs=no
10506
10507 # when you set need_version to no, make sure it does not cause -set_version
10508 # flags to be left without arguments
10509 need_version=unknown
10510
10511
10512
10513 case $host_os in
10514 aix3*)
10515 version_type=linux # correct to gnu/linux during the next big refactor
10516 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10517 shlibpath_var=LIBPATH
10518
10519 # AIX 3 has no versioning support, so we append a major version to the name.
10520 soname_spec='$libname$release$shared_ext$major'
10521 ;;
10522
10523 aix[4-9]*)
10524 version_type=linux # correct to gnu/linux during the next big refactor
10525 need_lib_prefix=no
10526 need_version=no
10527 hardcode_into_libs=yes
10528 if test ia64 = "$host_cpu"; then
10529 # AIX 5 supports IA64
10530 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10531 shlibpath_var=LD_LIBRARY_PATH
10532 else
10533 # With GCC up to 2.95.x, collect2 would create an import file
10534 # for dependence libraries. The import file would start with
10535 # the line '#! .'. This would cause the generated library to
10536 # depend on '.', always an invalid library. This was fixed in
10537 # development snapshots of GCC prior to 3.0.
10538 case $host_os in
10539 aix4 | aix4.[01] | aix4.[01].*)
10540 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10541 echo ' yes '
10542 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10543 :
10544 else
10545 can_build_shared=no
10546 fi
10547 ;;
10548 esac
10549 # Using Import Files as archive members, it is possible to support
10550 # filename-based versioning of shared library archives on AIX. While
10551 # this would work for both with and without runtime linking, it will
10552 # prevent static linking of such archives. So we do filename-based
10553 # shared library versioning with .so extension only, which is used
10554 # when both runtime linking and shared linking is enabled.
10555 # Unfortunately, runtime linking may impact performance, so we do
10556 # not want this to be the default eventually. Also, we use the
10557 # versioned .so libs for executables only if there is the -brtl
10558 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10559 # To allow for filename-based versioning support, we need to create
10560 # libNAME.so.V as an archive file, containing:
10561 # *) an Import File, referring to the versioned filename of the
10562 # archive as well as the shared archive member, telling the
10563 # bitwidth (32 or 64) of that shared object, and providing the
10564 # list of exported symbols of that shared object, eventually
10565 # decorated with the 'weak' keyword
10566 # *) the shared object with the F_LOADONLY flag set, to really avoid
10567 # it being seen by the linker.
10568 # At run time we better use the real file rather than another symlink,
10569 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10570
10571 case $with_aix_soname,$aix_use_runtimelinking in
10572 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10573 # soname into executable. Probably we can add versioning support to
10574 # collect2, so additional links can be useful in future.
10575 aix,yes) # traditional libtool
10576 dynamic_linker='AIX unversionable lib.so'
10577 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10578 # instead of lib<name>.a to let people know that these are not
10579 # typical AIX shared libraries.
10580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10581 ;;
10582 aix,no) # traditional AIX only
10583 dynamic_linker='AIX lib.a(lib.so.V)'
10584 # We preserve .a as extension for shared libraries through AIX4.2
10585 # and later when we are not doing run time linking.
10586 library_names_spec='$libname$release.a $libname.a'
10587 soname_spec='$libname$release$shared_ext$major'
10588 ;;
10589 svr4,*) # full svr4 only
10590 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10591 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10592 # We do not specify a path in Import Files, so LIBPATH fires.
10593 shlibpath_overrides_runpath=yes
10594 ;;
10595 *,yes) # both, prefer svr4
10596 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10597 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10598 # unpreferred sharedlib libNAME.a needs extra handling
10599 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10600 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10601 # We do not specify a path in Import Files, so LIBPATH fires.
10602 shlibpath_overrides_runpath=yes
10603 ;;
10604 *,no) # both, prefer aix
10605 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10606 library_names_spec='$libname$release.a $libname.a'
10607 soname_spec='$libname$release$shared_ext$major'
10608 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10609 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10610 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10611 ;;
10612 esac
10613 shlibpath_var=LIBPATH
10614 fi
10615 ;;
10616
10617 amigaos*)
10618 case $host_cpu in
10619 powerpc)
10620 # Since July 2007 AmigaOS4 officially supports .so libraries.
10621 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10623 ;;
10624 m68k)
10625 library_names_spec='$libname.ixlibrary $libname.a'
10626 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10627 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10628 ;;
10629 esac
10630 ;;
10631
10632 beos*)
10633 library_names_spec='$libname$shared_ext'
10634 dynamic_linker="$host_os ld.so"
10635 shlibpath_var=LIBRARY_PATH
10636 ;;
10637
10638 bsdi[45]*)
10639 version_type=linux # correct to gnu/linux during the next big refactor
10640 need_version=no
10641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10642 soname_spec='$libname$release$shared_ext$major'
10643 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10644 shlibpath_var=LD_LIBRARY_PATH
10645 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10646 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10647 # the default ld.so.conf also contains /usr/contrib/lib and
10648 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10649 # libtool to hard-code these into programs
10650 ;;
10651
10652 cygwin* | mingw* | pw32* | cegcc*)
10653 version_type=windows
10654 shrext_cmds=.dll
10655 need_version=no
10656 need_lib_prefix=no
10657
10658 case $GCC,$cc_basename in
10659 yes,*)
10660 # gcc
10661 library_names_spec='$libname.dll.a'
10662 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10663 postinstall_cmds='base_file=`basename \$file`~
10664 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10665 dldir=$destdir/`dirname \$dlpath`~
10666 test -d \$dldir || mkdir -p \$dldir~
10667 $install_prog $dir/$dlname \$dldir/$dlname~
10668 chmod a+x \$dldir/$dlname~
10669 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10670 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10671 fi'
10672 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10673 dlpath=$dir/\$dldll~
10674 $RM \$dlpath'
10675 shlibpath_overrides_runpath=yes
10676
10677 case $host_os in
10678 cygwin*)
10679 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10680 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10681
10682 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10683 ;;
10684 mingw* | cegcc*)
10685 # MinGW DLLs use traditional 'lib' prefix
10686 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10687 ;;
10688 pw32*)
10689 # pw32 DLLs use 'pw' prefix rather than 'lib'
10690 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10691 ;;
10692 esac
10693 dynamic_linker='Win32 ld.exe'
10694 ;;
10695
10696 *,cl*)
10697 # Native MSVC
10698 libname_spec='$name'
10699 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10700 library_names_spec='$libname.dll.lib'
10701
10702 case $build_os in
10703 mingw*)
10704 sys_lib_search_path_spec=
10705 lt_save_ifs=$IFS
10706 IFS=';'
10707 for lt_path in $LIB
10708 do
10709 IFS=$lt_save_ifs
10710 # Let DOS variable expansion print the short 8.3 style file name.
10711 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10712 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10713 done
10714 IFS=$lt_save_ifs
10715 # Convert to MSYS style.
10716 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10717 ;;
10718 cygwin*)
10719 # Convert to unix form, then to dos form, then back to unix form
10720 # but this time dos style (no spaces!) so that the unix form looks
10721 # like /cygdrive/c/PROGRA~1:/cygdr...
10722 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10723 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10724 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10725 ;;
10726 *)
10727 sys_lib_search_path_spec=$LIB
10728 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10729 # It is most probably a Windows format PATH.
10730 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10731 else
10732 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10733 fi
10734 # FIXME: find the short name or the path components, as spaces are
10735 # common. (e.g. "Program Files" -> "PROGRA~1")
10736 ;;
10737 esac
10738
10739 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10740 postinstall_cmds='base_file=`basename \$file`~
10741 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10742 dldir=$destdir/`dirname \$dlpath`~
10743 test -d \$dldir || mkdir -p \$dldir~
10744 $install_prog $dir/$dlname \$dldir/$dlname'
10745 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10746 dlpath=$dir/\$dldll~
10747 $RM \$dlpath'
10748 shlibpath_overrides_runpath=yes
10749 dynamic_linker='Win32 link.exe'
10750 ;;
10751
10752 *)
10753 # Assume MSVC wrapper
10754 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10755 dynamic_linker='Win32 ld.exe'
10756 ;;
10757 esac
10758 # FIXME: first we should search . and the directory the executable is in
10759 shlibpath_var=PATH
10760 ;;
10761
10762 darwin* | rhapsody*)
10763 dynamic_linker="$host_os dyld"
10764 version_type=darwin
10765 need_lib_prefix=no
10766 need_version=no
10767 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10768 soname_spec='$libname$release$major$shared_ext'
10769 shlibpath_overrides_runpath=yes
10770 shlibpath_var=DYLD_LIBRARY_PATH
10771 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10772
10773 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10774 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10775 ;;
10776
10777 dgux*)
10778 version_type=linux # correct to gnu/linux during the next big refactor
10779 need_lib_prefix=no
10780 need_version=no
10781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10782 soname_spec='$libname$release$shared_ext$major'
10783 shlibpath_var=LD_LIBRARY_PATH
10784 ;;
10785
10786 freebsd* | dragonfly*)
10787 # DragonFly does not have aout. When/if they implement a new
10788 # versioning mechanism, adjust this.
10789 if test -x /usr/bin/objformat; then
10790 objformat=`/usr/bin/objformat`
10791 else
10792 case $host_os in
10793 freebsd[23].*) objformat=aout ;;
10794 *) objformat=elf ;;
10795 esac
10796 fi
10797 version_type=freebsd-$objformat
10798 case $version_type in
10799 freebsd-elf*)
10800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10801 soname_spec='$libname$release$shared_ext$major'
10802 need_version=no
10803 need_lib_prefix=no
10804 ;;
10805 freebsd-*)
10806 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10807 need_version=yes
10808 ;;
10809 esac
10810 shlibpath_var=LD_LIBRARY_PATH
10811 case $host_os in
10812 freebsd2.*)
10813 shlibpath_overrides_runpath=yes
10814 ;;
10815 freebsd3.[01]* | freebsdelf3.[01]*)
10816 shlibpath_overrides_runpath=yes
10817 hardcode_into_libs=yes
10818 ;;
10819 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10820 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10821 shlibpath_overrides_runpath=no
10822 hardcode_into_libs=yes
10823 ;;
10824 *) # from 4.6 on, and DragonFly
10825 shlibpath_overrides_runpath=yes
10826 hardcode_into_libs=yes
10827 ;;
10828 esac
10829 ;;
10830
10831 haiku*)
10832 version_type=linux # correct to gnu/linux during the next big refactor
10833 need_lib_prefix=no
10834 need_version=no
10835 dynamic_linker="$host_os runtime_loader"
10836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10837 soname_spec='$libname$release$shared_ext$major'
10838 shlibpath_var=LIBRARY_PATH
10839 shlibpath_overrides_runpath=no
10840 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10841 hardcode_into_libs=yes
10842 ;;
10843
10844 hpux9* | hpux10* | hpux11*)
10845 # Give a soname corresponding to the major version so that dld.sl refuses to
10846 # link against other versions.
10847 version_type=sunos
10848 need_lib_prefix=no
10849 need_version=no
10850 case $host_cpu in
10851 ia64*)
10852 shrext_cmds='.so'
10853 hardcode_into_libs=yes
10854 dynamic_linker="$host_os dld.so"
10855 shlibpath_var=LD_LIBRARY_PATH
10856 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10858 soname_spec='$libname$release$shared_ext$major'
10859 if test 32 = "$HPUX_IA64_MODE"; then
10860 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10861 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10862 else
10863 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10864 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10865 fi
10866 ;;
10867 hppa*64*)
10868 shrext_cmds='.sl'
10869 hardcode_into_libs=yes
10870 dynamic_linker="$host_os dld.sl"
10871 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10872 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10874 soname_spec='$libname$release$shared_ext$major'
10875 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10877 ;;
10878 *)
10879 shrext_cmds='.sl'
10880 dynamic_linker="$host_os dld.sl"
10881 shlibpath_var=SHLIB_PATH
10882 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10883 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10884 soname_spec='$libname$release$shared_ext$major'
10885 ;;
10886 esac
10887 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10888 postinstall_cmds='chmod 555 $lib'
10889 # or fails outright, so override atomically:
10890 install_override_mode=555
10891 ;;
10892
10893 interix[3-9]*)
10894 version_type=linux # correct to gnu/linux during the next big refactor
10895 need_lib_prefix=no
10896 need_version=no
10897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10898 soname_spec='$libname$release$shared_ext$major'
10899 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10900 shlibpath_var=LD_LIBRARY_PATH
10901 shlibpath_overrides_runpath=no
10902 hardcode_into_libs=yes
10903 ;;
10904
10905 irix5* | irix6* | nonstopux*)
10906 case $host_os in
10907 nonstopux*) version_type=nonstopux ;;
10908 *)
10909 if test yes = "$lt_cv_prog_gnu_ld"; then
10910 version_type=linux # correct to gnu/linux during the next big refactor
10911 else
10912 version_type=irix
10913 fi ;;
10914 esac
10915 need_lib_prefix=no
10916 need_version=no
10917 soname_spec='$libname$release$shared_ext$major'
10918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10919 case $host_os in
10920 irix5* | nonstopux*)
10921 libsuff= shlibsuff=
10922 ;;
10923 *)
10924 case $LD in # libtool.m4 will add one of these switches to LD
10925 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10926 libsuff= shlibsuff= libmagic=32-bit;;
10927 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10928 libsuff=32 shlibsuff=N32 libmagic=N32;;
10929 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10930 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10931 *) libsuff= shlibsuff= libmagic=never-match;;
10932 esac
10933 ;;
10934 esac
10935 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10936 shlibpath_overrides_runpath=no
10937 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10938 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10939 hardcode_into_libs=yes
10940 ;;
10941
10942 # No shared lib support for Linux oldld, aout, or coff.
10943 linux*oldld* | linux*aout* | linux*coff*)
10944 dynamic_linker=no
10945 ;;
10946
10947 linux*android*)
10948 version_type=none # Android doesn't support versioned libraries.
10949 need_lib_prefix=no
10950 need_version=no
10951 library_names_spec='$libname$release$shared_ext'
10952 soname_spec='$libname$release$shared_ext'
10953 finish_cmds=
10954 shlibpath_var=LD_LIBRARY_PATH
10955 shlibpath_overrides_runpath=yes
10956
10957 # This implies no fast_install, which is unacceptable.
10958 # Some rework will be needed to allow for fast_install
10959 # before this can be enabled.
10960 hardcode_into_libs=yes
10961
10962 dynamic_linker='Android linker'
10963 # Don't embed -rpath directories since the linker doesn't support them.
10964 hardcode_libdir_flag_spec='-L$libdir'
10965 ;;
10966
10967 # This must be glibc/ELF.
10968 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10969 version_type=linux # correct to gnu/linux during the next big refactor
10970 need_lib_prefix=no
10971 need_version=no
10972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10973 soname_spec='$libname$release$shared_ext$major'
10974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10975 shlibpath_var=LD_LIBRARY_PATH
10976 shlibpath_overrides_runpath=no
10977
10978 # Some binutils ld are patched to set DT_RUNPATH
10979 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10980 $as_echo_n "(cached) " >&6
10981 else
10982 lt_cv_shlibpath_overrides_runpath=no
10983 save_LDFLAGS=$LDFLAGS
10984 save_libdir=$libdir
10985 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10986 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10989
10990 int
10991 main ()
10992 {
10993
10994 ;
10995 return 0;
10996 }
10997 _ACEOF
10998 if ac_fn_c_try_link "$LINENO"; then :
10999 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11000 lt_cv_shlibpath_overrides_runpath=yes
11001 fi
11002 fi
11003 rm -f core conftest.err conftest.$ac_objext \
11004 conftest$ac_exeext conftest.$ac_ext
11005 LDFLAGS=$save_LDFLAGS
11006 libdir=$save_libdir
11007
11008 fi
11009
11010 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11011
11012 # This implies no fast_install, which is unacceptable.
11013 # Some rework will be needed to allow for fast_install
11014 # before this can be enabled.
11015 hardcode_into_libs=yes
11016
11017 # Add ABI-specific directories to the system library path.
11018 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11019
11020 # Ideally, we could use ldconfig to report *all* directores which are
11021 # searched for libraries, however this is still not possible. Aside from not
11022 # being certain /sbin/ldconfig is available, command
11023 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11024 # even though it is searched at run-time. Try to do the best guess by
11025 # appending ld.so.conf contents (and includes) to the search path.
11026 if test -f /etc/ld.so.conf; then
11027 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' ' '`
11028 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11029 fi
11030
11031 # We used to test for /lib/ld.so.1 and disable shared libraries on
11032 # powerpc, because MkLinux only supported shared libraries with the
11033 # GNU dynamic linker. Since this was broken with cross compilers,
11034 # most powerpc-linux boxes support dynamic linking these days and
11035 # people can always --disable-shared, the test was removed, and we
11036 # assume the GNU/Linux dynamic linker is in use.
11037 dynamic_linker='GNU/Linux ld.so'
11038 ;;
11039
11040 netbsd*)
11041 version_type=sunos
11042 need_lib_prefix=no
11043 need_version=no
11044 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11045 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11047 dynamic_linker='NetBSD (a.out) ld.so'
11048 else
11049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11050 soname_spec='$libname$release$shared_ext$major'
11051 dynamic_linker='NetBSD ld.elf_so'
11052 fi
11053 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=yes
11055 hardcode_into_libs=yes
11056 ;;
11057
11058 newsos6)
11059 version_type=linux # correct to gnu/linux during the next big refactor
11060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11061 shlibpath_var=LD_LIBRARY_PATH
11062 shlibpath_overrides_runpath=yes
11063 ;;
11064
11065 *nto* | *qnx*)
11066 version_type=qnx
11067 need_lib_prefix=no
11068 need_version=no
11069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11070 soname_spec='$libname$release$shared_ext$major'
11071 shlibpath_var=LD_LIBRARY_PATH
11072 shlibpath_overrides_runpath=no
11073 hardcode_into_libs=yes
11074 dynamic_linker='ldqnx.so'
11075 ;;
11076
11077 openbsd* | bitrig*)
11078 version_type=sunos
11079 sys_lib_dlsearch_path_spec=/usr/lib
11080 need_lib_prefix=no
11081 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11082 need_version=no
11083 else
11084 need_version=yes
11085 fi
11086 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11088 shlibpath_var=LD_LIBRARY_PATH
11089 shlibpath_overrides_runpath=yes
11090 ;;
11091
11092 os2*)
11093 libname_spec='$name'
11094 version_type=windows
11095 shrext_cmds=.dll
11096 need_version=no
11097 need_lib_prefix=no
11098 # OS/2 can only load a DLL with a base name of 8 characters or less.
11099 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11100 v=$($ECHO $release$versuffix | tr -d .-);
11101 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11102 $ECHO $n$v`$shared_ext'
11103 library_names_spec='${libname}_dll.$libext'
11104 dynamic_linker='OS/2 ld.exe'
11105 shlibpath_var=BEGINLIBPATH
11106 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11108 postinstall_cmds='base_file=`basename \$file`~
11109 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11110 dldir=$destdir/`dirname \$dlpath`~
11111 test -d \$dldir || mkdir -p \$dldir~
11112 $install_prog $dir/$dlname \$dldir/$dlname~
11113 chmod a+x \$dldir/$dlname~
11114 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11115 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11116 fi'
11117 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11118 dlpath=$dir/\$dldll~
11119 $RM \$dlpath'
11120 ;;
11121
11122 osf3* | osf4* | osf5*)
11123 version_type=osf
11124 need_lib_prefix=no
11125 need_version=no
11126 soname_spec='$libname$release$shared_ext$major'
11127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11128 shlibpath_var=LD_LIBRARY_PATH
11129 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11130 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11131 ;;
11132
11133 rdos*)
11134 dynamic_linker=no
11135 ;;
11136
11137 solaris*)
11138 version_type=linux # correct to gnu/linux during the next big refactor
11139 need_lib_prefix=no
11140 need_version=no
11141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11142 soname_spec='$libname$release$shared_ext$major'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 shlibpath_overrides_runpath=yes
11145 hardcode_into_libs=yes
11146 # ldd complains unless libraries are executable
11147 postinstall_cmds='chmod +x $lib'
11148 ;;
11149
11150 sunos4*)
11151 version_type=sunos
11152 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11153 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 shlibpath_overrides_runpath=yes
11156 if test yes = "$with_gnu_ld"; then
11157 need_lib_prefix=no
11158 fi
11159 need_version=yes
11160 ;;
11161
11162 sysv4 | sysv4.3*)
11163 version_type=linux # correct to gnu/linux during the next big refactor
11164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11165 soname_spec='$libname$release$shared_ext$major'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 case $host_vendor in
11168 sni)
11169 shlibpath_overrides_runpath=no
11170 need_lib_prefix=no
11171 runpath_var=LD_RUN_PATH
11172 ;;
11173 siemens)
11174 need_lib_prefix=no
11175 ;;
11176 motorola)
11177 need_lib_prefix=no
11178 need_version=no
11179 shlibpath_overrides_runpath=no
11180 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11181 ;;
11182 esac
11183 ;;
11184
11185 sysv4*MP*)
11186 if test -d /usr/nec; then
11187 version_type=linux # correct to gnu/linux during the next big refactor
11188 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11189 soname_spec='$libname$shared_ext.$major'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 fi
11192 ;;
11193
11194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11195 version_type=sco
11196 need_lib_prefix=no
11197 need_version=no
11198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11199 soname_spec='$libname$release$shared_ext$major'
11200 shlibpath_var=LD_LIBRARY_PATH
11201 shlibpath_overrides_runpath=yes
11202 hardcode_into_libs=yes
11203 if test yes = "$with_gnu_ld"; then
11204 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11205 else
11206 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11207 case $host_os in
11208 sco3.2v5*)
11209 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11210 ;;
11211 esac
11212 fi
11213 sys_lib_dlsearch_path_spec='/usr/lib'
11214 ;;
11215
11216 tpf*)
11217 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11218 version_type=linux # correct to gnu/linux during the next big refactor
11219 need_lib_prefix=no
11220 need_version=no
11221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 shlibpath_overrides_runpath=no
11224 hardcode_into_libs=yes
11225 ;;
11226
11227 uts4*)
11228 version_type=linux # correct to gnu/linux during the next big refactor
11229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11230 soname_spec='$libname$release$shared_ext$major'
11231 shlibpath_var=LD_LIBRARY_PATH
11232 ;;
11233
11234 *)
11235 dynamic_linker=no
11236 ;;
11237 esac
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11239 $as_echo "$dynamic_linker" >&6; }
11240 test no = "$dynamic_linker" && can_build_shared=no
11241
11242 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11243 if test yes = "$GCC"; then
11244 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11245 fi
11246
11247 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11248 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11249 fi
11250
11251 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11252 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11253 fi
11254
11255 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11256 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11257
11258 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11259 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11260
11261 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11262 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11361 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11362 hardcode_action=
11363 if test -n "$hardcode_libdir_flag_spec" ||
11364 test -n "$runpath_var" ||
11365 test yes = "$hardcode_automatic"; then
11366
11367 # We can hardcode non-existent directories.
11368 if test no != "$hardcode_direct" &&
11369 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11370 # have to relink, otherwise we might link with an installed library
11371 # when we should be linking with a yet-to-be-installed one
11372 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11373 test no != "$hardcode_minus_L"; then
11374 # Linking always hardcodes the temporary library directory.
11375 hardcode_action=relink
11376 else
11377 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11378 hardcode_action=immediate
11379 fi
11380 else
11381 # We cannot hardcode anything, or else we can only hardcode existing
11382 # directories.
11383 hardcode_action=unsupported
11384 fi
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11386 $as_echo "$hardcode_action" >&6; }
11387
11388 if test relink = "$hardcode_action" ||
11389 test yes = "$inherit_rpath"; then
11390 # Fast installation is not supported
11391 enable_fast_install=no
11392 elif test yes = "$shlibpath_overrides_runpath" ||
11393 test no = "$enable_shared"; then
11394 # Fast installation is not necessary
11395 enable_fast_install=needless
11396 fi
11397
11398
11399
11400
11401
11402
11403 if test yes != "$enable_dlopen"; then
11404 enable_dlopen=unknown
11405 enable_dlopen_self=unknown
11406 enable_dlopen_self_static=unknown
11407 else
11408 lt_cv_dlopen=no
11409 lt_cv_dlopen_libs=
11410
11411 case $host_os in
11412 beos*)
11413 lt_cv_dlopen=load_add_on
11414 lt_cv_dlopen_libs=
11415 lt_cv_dlopen_self=yes
11416 ;;
11417
11418 mingw* | pw32* | cegcc*)
11419 lt_cv_dlopen=LoadLibrary
11420 lt_cv_dlopen_libs=
11421 ;;
11422
11423 cygwin*)
11424 lt_cv_dlopen=dlopen
11425 lt_cv_dlopen_libs=
11426 ;;
11427
11428 darwin*)
11429 # if libdl is installed we need to link against it
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11431 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11432 if ${ac_cv_lib_dl_dlopen+:} false; then :
11433 $as_echo_n "(cached) " >&6
11434 else
11435 ac_check_lib_save_LIBS=$LIBS
11436 LIBS="-ldl $LIBS"
11437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h. */
11439
11440 /* Override any GCC internal prototype to avoid an error.
11441 Use char because int might match the return type of a GCC
11442 builtin and then its argument prototype would still apply. */
11443 #ifdef __cplusplus
11444 extern "C"
11445 #endif
11446 char dlopen ();
11447 int
11448 main ()
11449 {
11450 return dlopen ();
11451 ;
11452 return 0;
11453 }
11454 _ACEOF
11455 if ac_fn_c_try_link "$LINENO"; then :
11456 ac_cv_lib_dl_dlopen=yes
11457 else
11458 ac_cv_lib_dl_dlopen=no
11459 fi
11460 rm -f core conftest.err conftest.$ac_objext \
11461 conftest$ac_exeext conftest.$ac_ext
11462 LIBS=$ac_check_lib_save_LIBS
11463 fi
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11465 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11466 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11467 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11468 else
11469
11470 lt_cv_dlopen=dyld
11471 lt_cv_dlopen_libs=
11472 lt_cv_dlopen_self=yes
11473
11474 fi
11475
11476 ;;
11477
11478 tpf*)
11479 # Don't try to run any link tests for TPF. We know it's impossible
11480 # because TPF is a cross-compiler, and we know how we open DSOs.
11481 lt_cv_dlopen=dlopen
11482 lt_cv_dlopen_libs=
11483 lt_cv_dlopen_self=no
11484 ;;
11485
11486 *)
11487 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11488 if test "x$ac_cv_func_shl_load" = xyes; then :
11489 lt_cv_dlopen=shl_load
11490 else
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11492 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11493 if ${ac_cv_lib_dld_shl_load+:} false; then :
11494 $as_echo_n "(cached) " >&6
11495 else
11496 ac_check_lib_save_LIBS=$LIBS
11497 LIBS="-ldld $LIBS"
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h. */
11500
11501 /* Override any GCC internal prototype to avoid an error.
11502 Use char because int might match the return type of a GCC
11503 builtin and then its argument prototype would still apply. */
11504 #ifdef __cplusplus
11505 extern "C"
11506 #endif
11507 char shl_load ();
11508 int
11509 main ()
11510 {
11511 return shl_load ();
11512 ;
11513 return 0;
11514 }
11515 _ACEOF
11516 if ac_fn_c_try_link "$LINENO"; then :
11517 ac_cv_lib_dld_shl_load=yes
11518 else
11519 ac_cv_lib_dld_shl_load=no
11520 fi
11521 rm -f core conftest.err conftest.$ac_objext \
11522 conftest$ac_exeext conftest.$ac_ext
11523 LIBS=$ac_check_lib_save_LIBS
11524 fi
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11526 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11527 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11528 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11529 else
11530 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11531 if test "x$ac_cv_func_dlopen" = xyes; then :
11532 lt_cv_dlopen=dlopen
11533 else
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11535 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11536 if ${ac_cv_lib_dl_dlopen+:} false; then :
11537 $as_echo_n "(cached) " >&6
11538 else
11539 ac_check_lib_save_LIBS=$LIBS
11540 LIBS="-ldl $LIBS"
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11543
11544 /* Override any GCC internal prototype to avoid an error.
11545 Use char because int might match the return type of a GCC
11546 builtin and then its argument prototype would still apply. */
11547 #ifdef __cplusplus
11548 extern "C"
11549 #endif
11550 char dlopen ();
11551 int
11552 main ()
11553 {
11554 return dlopen ();
11555 ;
11556 return 0;
11557 }
11558 _ACEOF
11559 if ac_fn_c_try_link "$LINENO"; then :
11560 ac_cv_lib_dl_dlopen=yes
11561 else
11562 ac_cv_lib_dl_dlopen=no
11563 fi
11564 rm -f core conftest.err conftest.$ac_objext \
11565 conftest$ac_exeext conftest.$ac_ext
11566 LIBS=$ac_check_lib_save_LIBS
11567 fi
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11569 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11570 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11571 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11572 else
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11574 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11575 if ${ac_cv_lib_svld_dlopen+:} false; then :
11576 $as_echo_n "(cached) " >&6
11577 else
11578 ac_check_lib_save_LIBS=$LIBS
11579 LIBS="-lsvld $LIBS"
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11582
11583 /* Override any GCC internal prototype to avoid an error.
11584 Use char because int might match the return type of a GCC
11585 builtin and then its argument prototype would still apply. */
11586 #ifdef __cplusplus
11587 extern "C"
11588 #endif
11589 char dlopen ();
11590 int
11591 main ()
11592 {
11593 return dlopen ();
11594 ;
11595 return 0;
11596 }
11597 _ACEOF
11598 if ac_fn_c_try_link "$LINENO"; then :
11599 ac_cv_lib_svld_dlopen=yes
11600 else
11601 ac_cv_lib_svld_dlopen=no
11602 fi
11603 rm -f core conftest.err conftest.$ac_objext \
11604 conftest$ac_exeext conftest.$ac_ext
11605 LIBS=$ac_check_lib_save_LIBS
11606 fi
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11608 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11609 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11610 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11611 else
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11613 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11614 if ${ac_cv_lib_dld_dld_link+:} false; then :
11615 $as_echo_n "(cached) " >&6
11616 else
11617 ac_check_lib_save_LIBS=$LIBS
11618 LIBS="-ldld $LIBS"
11619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620 /* end confdefs.h. */
11621
11622 /* Override any GCC internal prototype to avoid an error.
11623 Use char because int might match the return type of a GCC
11624 builtin and then its argument prototype would still apply. */
11625 #ifdef __cplusplus
11626 extern "C"
11627 #endif
11628 char dld_link ();
11629 int
11630 main ()
11631 {
11632 return dld_link ();
11633 ;
11634 return 0;
11635 }
11636 _ACEOF
11637 if ac_fn_c_try_link "$LINENO"; then :
11638 ac_cv_lib_dld_dld_link=yes
11639 else
11640 ac_cv_lib_dld_dld_link=no
11641 fi
11642 rm -f core conftest.err conftest.$ac_objext \
11643 conftest$ac_exeext conftest.$ac_ext
11644 LIBS=$ac_check_lib_save_LIBS
11645 fi
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11647 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11648 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11649 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11650 fi
11651
11652
11653 fi
11654
11655
11656 fi
11657
11658
11659 fi
11660
11661
11662 fi
11663
11664
11665 fi
11666
11667 ;;
11668 esac
11669
11670 if test no = "$lt_cv_dlopen"; then
11671 enable_dlopen=no
11672 else
11673 enable_dlopen=yes
11674 fi
11675
11676 case $lt_cv_dlopen in
11677 dlopen)
11678 save_CPPFLAGS=$CPPFLAGS
11679 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11680
11681 save_LDFLAGS=$LDFLAGS
11682 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11683
11684 save_LIBS=$LIBS
11685 LIBS="$lt_cv_dlopen_libs $LIBS"
11686
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11688 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11689 if ${lt_cv_dlopen_self+:} false; then :
11690 $as_echo_n "(cached) " >&6
11691 else
11692 if test yes = "$cross_compiling"; then :
11693 lt_cv_dlopen_self=cross
11694 else
11695 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11696 lt_status=$lt_dlunknown
11697 cat > conftest.$ac_ext <<_LT_EOF
11698 #line $LINENO "configure"
11699 #include "confdefs.h"
11700
11701 #if HAVE_DLFCN_H
11702 #include <dlfcn.h>
11703 #endif
11704
11705 #include <stdio.h>
11706
11707 #ifdef RTLD_GLOBAL
11708 # define LT_DLGLOBAL RTLD_GLOBAL
11709 #else
11710 # ifdef DL_GLOBAL
11711 # define LT_DLGLOBAL DL_GLOBAL
11712 # else
11713 # define LT_DLGLOBAL 0
11714 # endif
11715 #endif
11716
11717 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11718 find out it does not work in some platform. */
11719 #ifndef LT_DLLAZY_OR_NOW
11720 # ifdef RTLD_LAZY
11721 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11722 # else
11723 # ifdef DL_LAZY
11724 # define LT_DLLAZY_OR_NOW DL_LAZY
11725 # else
11726 # ifdef RTLD_NOW
11727 # define LT_DLLAZY_OR_NOW RTLD_NOW
11728 # else
11729 # ifdef DL_NOW
11730 # define LT_DLLAZY_OR_NOW DL_NOW
11731 # else
11732 # define LT_DLLAZY_OR_NOW 0
11733 # endif
11734 # endif
11735 # endif
11736 # endif
11737 #endif
11738
11739 /* When -fvisibility=hidden is used, assume the code has been annotated
11740 correspondingly for the symbols needed. */
11741 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11742 int fnord () __attribute__((visibility("default")));
11743 #endif
11744
11745 int fnord () { return 42; }
11746 int main ()
11747 {
11748 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11749 int status = $lt_dlunknown;
11750
11751 if (self)
11752 {
11753 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11754 else
11755 {
11756 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11757 else puts (dlerror ());
11758 }
11759 /* dlclose (self); */
11760 }
11761 else
11762 puts (dlerror ());
11763
11764 return status;
11765 }
11766 _LT_EOF
11767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11768 (eval $ac_link) 2>&5
11769 ac_status=$?
11770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11771 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11772 (./conftest; exit; ) >&5 2>/dev/null
11773 lt_status=$?
11774 case x$lt_status in
11775 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11776 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11777 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11778 esac
11779 else :
11780 # compilation failed
11781 lt_cv_dlopen_self=no
11782 fi
11783 fi
11784 rm -fr conftest*
11785
11786
11787 fi
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11789 $as_echo "$lt_cv_dlopen_self" >&6; }
11790
11791 if test yes = "$lt_cv_dlopen_self"; then
11792 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11794 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11795 if ${lt_cv_dlopen_self_static+:} false; then :
11796 $as_echo_n "(cached) " >&6
11797 else
11798 if test yes = "$cross_compiling"; then :
11799 lt_cv_dlopen_self_static=cross
11800 else
11801 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11802 lt_status=$lt_dlunknown
11803 cat > conftest.$ac_ext <<_LT_EOF
11804 #line $LINENO "configure"
11805 #include "confdefs.h"
11806
11807 #if HAVE_DLFCN_H
11808 #include <dlfcn.h>
11809 #endif
11810
11811 #include <stdio.h>
11812
11813 #ifdef RTLD_GLOBAL
11814 # define LT_DLGLOBAL RTLD_GLOBAL
11815 #else
11816 # ifdef DL_GLOBAL
11817 # define LT_DLGLOBAL DL_GLOBAL
11818 # else
11819 # define LT_DLGLOBAL 0
11820 # endif
11821 #endif
11822
11823 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11824 find out it does not work in some platform. */
11825 #ifndef LT_DLLAZY_OR_NOW
11826 # ifdef RTLD_LAZY
11827 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11828 # else
11829 # ifdef DL_LAZY
11830 # define LT_DLLAZY_OR_NOW DL_LAZY
11831 # else
11832 # ifdef RTLD_NOW
11833 # define LT_DLLAZY_OR_NOW RTLD_NOW
11834 # else
11835 # ifdef DL_NOW
11836 # define LT_DLLAZY_OR_NOW DL_NOW
11837 # else
11838 # define LT_DLLAZY_OR_NOW 0
11839 # endif
11840 # endif
11841 # endif
11842 # endif
11843 #endif
11844
11845 /* When -fvisibility=hidden is used, assume the code has been annotated
11846 correspondingly for the symbols needed. */
11847 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11848 int fnord () __attribute__((visibility("default")));
11849 #endif
11850
11851 int fnord () { return 42; }
11852 int main ()
11853 {
11854 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11855 int status = $lt_dlunknown;
11856
11857 if (self)
11858 {
11859 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11860 else
11861 {
11862 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11863 else puts (dlerror ());
11864 }
11865 /* dlclose (self); */
11866 }
11867 else
11868 puts (dlerror ());
11869
11870 return status;
11871 }
11872 _LT_EOF
11873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11874 (eval $ac_link) 2>&5
11875 ac_status=$?
11876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11877 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11878 (./conftest; exit; ) >&5 2>/dev/null
11879 lt_status=$?
11880 case x$lt_status in
11881 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11882 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11883 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11884 esac
11885 else :
11886 # compilation failed
11887 lt_cv_dlopen_self_static=no
11888 fi
11889 fi
11890 rm -fr conftest*
11891
11892
11893 fi
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11895 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11896 fi
11897
11898 CPPFLAGS=$save_CPPFLAGS
11899 LDFLAGS=$save_LDFLAGS
11900 LIBS=$save_LIBS
11901 ;;
11902 esac
11903
11904 case $lt_cv_dlopen_self in
11905 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11906 *) enable_dlopen_self=unknown ;;
11907 esac
11908
11909 case $lt_cv_dlopen_self_static in
11910 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11911 *) enable_dlopen_self_static=unknown ;;
11912 esac
11913 fi
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931 striplib=
11932 old_striplib=
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11934 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11935 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11936 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11937 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11939 $as_echo "yes" >&6; }
11940 else
11941 # FIXME - insert some real tests, host_os isn't really good enough
11942 case $host_os in
11943 darwin*)
11944 if test -n "$STRIP"; then
11945 striplib="$STRIP -x"
11946 old_striplib="$STRIP -S"
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11948 $as_echo "yes" >&6; }
11949 else
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951 $as_echo "no" >&6; }
11952 fi
11953 ;;
11954 *)
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956 $as_echo "no" >&6; }
11957 ;;
11958 esac
11959 fi
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972 # Report what library types will actually be built
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11974 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11976 $as_echo "$can_build_shared" >&6; }
11977
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11979 $as_echo_n "checking whether to build shared libraries... " >&6; }
11980 test no = "$can_build_shared" && enable_shared=no
11981
11982 # On AIX, shared libraries and static libraries use the same namespace, and
11983 # are all built from PIC.
11984 case $host_os in
11985 aix3*)
11986 test yes = "$enable_shared" && enable_static=no
11987 if test -n "$RANLIB"; then
11988 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11989 postinstall_cmds='$RANLIB $lib'
11990 fi
11991 ;;
11992
11993 aix[4-9]*)
11994 if test ia64 != "$host_cpu"; then
11995 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11996 yes,aix,yes) ;; # shared object as lib.so file only
11997 yes,svr4,*) ;; # shared object as lib.so archive member only
11998 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11999 esac
12000 fi
12001 ;;
12002 esac
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12004 $as_echo "$enable_shared" >&6; }
12005
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12007 $as_echo_n "checking whether to build static libraries... " >&6; }
12008 # Make sure either enable_shared or enable_static is yes.
12009 test yes = "$enable_shared" || enable_static=yes
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12011 $as_echo "$enable_static" >&6; }
12012
12013
12014
12015
12016 fi
12017 ac_ext=c
12018 ac_cpp='$CPP $CPPFLAGS'
12019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12022
12023 CC=$lt_save_CC
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039 ac_config_commands="$ac_config_commands libtool"
12040
12041
12042
12043
12044 # Only expand once:
12045
12046
12047 for ac_prog in perl5 perl
12048 do
12049 # Extract the first word of "$ac_prog", so it can be a program name with args.
12050 set dummy $ac_prog; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if ${ac_cv_path_PERL+:} false; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 case $PERL in
12057 [\\/]* | ?:[\\/]*)
12058 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12059 ;;
12060 *)
12061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in $LPATH
12063 do
12064 IFS=$as_save_IFS
12065 test -z "$as_dir" && as_dir=.
12066 for ac_exec_ext in '' $ac_executable_extensions; do
12067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12068 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12070 break 2
12071 fi
12072 done
12073 done
12074 IFS=$as_save_IFS
12075
12076 ;;
12077 esac
12078 fi
12079 PERL=$ac_cv_path_PERL
12080 if test -n "$PERL"; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12082 $as_echo "$PERL" >&6; }
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085 $as_echo "no" >&6; }
12086 fi
12087
12088
12089 test -n "$PERL" && break
12090 done
12091 test -n "$PERL" || PERL="perl"
12092
12093
12094 if test "$PERL" = "perl"
12095 then
12096 as_fn_error $? "Perl not found." "$LINENO" 5
12097 fi
12098
12099 if test "$GCC" = "yes"
12100 then
12101 CFLAGS="$CFLAGS -Wall"
12102 fi
12103
12104 CFLAGS="$CFLAGS -I.. -I${srcdir}/.. -I../libs -I${srcdir}/../libs"
12105
12106
12107
12108 # Check whether --with-userdb was given.
12109 if test "${with_userdb+set}" = set; then :
12110 withval=$with_userdb; userdb="$withval"
12111 else
12112 userdb="/etc/userdb"
12113 fi
12114
12115
12116 USERDB="`echo $userdb | tr 'a-z' 'A-Z'`"
12117
12118
12119
12120 # Check whether --with-userdbmandir was given.
12121 if test "${with_userdbmandir+set}" = set; then :
12122 withval=$with_userdbmandir; mandir="$withval"
12123 fi
12124
12125
12126
12127 # Check whether --with-userdbtmpdir was given.
12128 if test "${with_userdbtmpdir+set}" = set; then :
12129 withval=$with_userdbtmpdir; tmpdir="$withval"
12130 else
12131 tmpdir=""
12132 fi
12133
12134
12135
12136
12137 if test "$tmpdir" = ""
12138 then
12139 tmpdir=`echo "$userdb" | sed 's/\/[^\/]*$//'`
12140 fi
12141
12142
12143
12144
12145
12146
12147
12148 # Check whether --with-makedatprog was given.
12149 if test "${with_makedatprog+set}" = set; then :
12150 withval=$with_makedatprog; makedat="$withval"
12151 else
12152 makedat="$bindir/makedat"
12153 fi
12154
12155
12156
12157 if test -d ${srcdir}/../libs/md5
12158 then
12159
12160 cat >>confdefs.h <<_ACEOF
12161 #define HAVE_MD5 1
12162 _ACEOF
12163
12164 MD5LIB=../libs/md5/libmd5.la
12165 else
12166 MD5LIB=""
12167 fi
12168
12169
12170 if test -d ${srcdir}/../libs/sha1
12171 then
12172 SHA1LIB=../libs/sha1/libsha1.la
12173 else
12174 SHA1LIB=""
12175 fi
12176
12177
12178 if test -d ${srcdir}/../libs/libhmac
12179 then
12180
12181 cat >>confdefs.h <<_ACEOF
12182 #define HAVE_HMAC 1
12183 _ACEOF
12184
12185 HMACLIB=../libs/libhmac/libhmac.la
12186 else
12187 HMACLIB=""
12188 fi
12189
12190
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12192 $as_echo_n "checking for ANSI C header files... " >&6; }
12193 if ${ac_cv_header_stdc+:} false; then :
12194 $as_echo_n "(cached) " >&6
12195 else
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h. */
12198 #include <stdlib.h>
12199 #include <stdarg.h>
12200 #include <string.h>
12201 #include <float.h>
12202
12203 int
12204 main ()
12205 {
12206
12207 ;
12208 return 0;
12209 }
12210 _ACEOF
12211 if ac_fn_c_try_compile "$LINENO"; then :
12212 ac_cv_header_stdc=yes
12213 else
12214 ac_cv_header_stdc=no
12215 fi
12216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12217
12218 if test $ac_cv_header_stdc = yes; then
12219 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12221 /* end confdefs.h. */
12222 #include <string.h>
12223
12224 _ACEOF
12225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12226 $EGREP "memchr" >/dev/null 2>&1; then :
12227
12228 else
12229 ac_cv_header_stdc=no
12230 fi
12231 rm -f conftest*
12232
12233 fi
12234
12235 if test $ac_cv_header_stdc = yes; then
12236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12239 #include <stdlib.h>
12240
12241 _ACEOF
12242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12243 $EGREP "free" >/dev/null 2>&1; then :
12244
12245 else
12246 ac_cv_header_stdc=no
12247 fi
12248 rm -f conftest*
12249
12250 fi
12251
12252 if test $ac_cv_header_stdc = yes; then
12253 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12254 if test "$cross_compiling" = yes; then :
12255 :
12256 else
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12259 #include <ctype.h>
12260 #include <stdlib.h>
12261 #if ((' ' & 0x0FF) == 0x020)
12262 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12263 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12264 #else
12265 # define ISLOWER(c) \
12266 (('a' <= (c) && (c) <= 'i') \
12267 || ('j' <= (c) && (c) <= 'r') \
12268 || ('s' <= (c) && (c) <= 'z'))
12269 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12270 #endif
12271
12272 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12273 int
12274 main ()
12275 {
12276 int i;
12277 for (i = 0; i < 256; i++)
12278 if (XOR (islower (i), ISLOWER (i))
12279 || toupper (i) != TOUPPER (i))
12280 return 2;
12281 return 0;
12282 }
12283 _ACEOF
12284 if ac_fn_c_try_run "$LINENO"; then :
12285
12286 else
12287 ac_cv_header_stdc=no
12288 fi
12289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12290 conftest.$ac_objext conftest.beam conftest.$ac_ext
12291 fi
12292
12293 fi
12294 fi
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12296 $as_echo "$ac_cv_header_stdc" >&6; }
12297 if test $ac_cv_header_stdc = yes; then
12298
12299 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12300
12301 fi
12302
12303 for ac_header in sys/stat.h sys/time.h unistd.h fcntl.h termios.h crypt.h
12304 do :
12305 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12306 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12307 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12308 cat >>confdefs.h <<_ACEOF
12309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12310 _ACEOF
12311
12312 fi
12313
12314 done
12315
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12317 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12318 if ${ac_cv_header_time+:} false; then :
12319 $as_echo_n "(cached) " >&6
12320 else
12321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12322 /* end confdefs.h. */
12323 #include <sys/types.h>
12324 #include <sys/time.h>
12325 #include <time.h>
12326
12327 int
12328 main ()
12329 {
12330 if ((struct tm *) 0)
12331 return 0;
12332 ;
12333 return 0;
12334 }
12335 _ACEOF
12336 if ac_fn_c_try_compile "$LINENO"; then :
12337 ac_cv_header_time=yes
12338 else
12339 ac_cv_header_time=no
12340 fi
12341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342 fi
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12344 $as_echo "$ac_cv_header_time" >&6; }
12345 if test $ac_cv_header_time = yes; then
12346
12347 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12348
12349 fi
12350
12351
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12353 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12354 if ${ac_cv_c_const+:} false; then :
12355 $as_echo_n "(cached) " >&6
12356 else
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12359
12360 int
12361 main ()
12362 {
12363
12364 #ifndef __cplusplus
12365 /* Ultrix mips cc rejects this sort of thing. */
12366 typedef int charset[2];
12367 const charset cs = { 0, 0 };
12368 /* SunOS 4.1.1 cc rejects this. */
12369 char const *const *pcpcc;
12370 char **ppc;
12371 /* NEC SVR4.0.2 mips cc rejects this. */
12372 struct point {int x, y;};
12373 static struct point const zero = {0,0};
12374 /* AIX XL C 1.02.0.0 rejects this.
12375 It does not let you subtract one const X* pointer from another in
12376 an arm of an if-expression whose if-part is not a constant
12377 expression */
12378 const char *g = "string";
12379 pcpcc = &g + (g ? g-g : 0);
12380 /* HPUX 7.0 cc rejects these. */
12381 ++pcpcc;
12382 ppc = (char**) pcpcc;
12383 pcpcc = (char const *const *) ppc;
12384 { /* SCO 3.2v4 cc rejects this sort of thing. */
12385 char tx;
12386 char *t = &tx;
12387 char const *s = 0 ? (char *) 0 : (char const *) 0;
12388
12389 *t++ = 0;
12390 if (s) return 0;
12391 }
12392 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12393 int x[] = {25, 17};
12394 const int *foo = &x[0];
12395 ++foo;
12396 }
12397 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12398 typedef const int *iptr;
12399 iptr p = 0;
12400 ++p;
12401 }
12402 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12403 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12404 struct s { int j; const int *ap[3]; } bx;
12405 struct s *b = &bx; b->j = 5;
12406 }
12407 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12408 const int foo = 10;
12409 if (!foo) return 0;
12410 }
12411 return !cs[0] && !zero.x;
12412 #endif
12413
12414 ;
12415 return 0;
12416 }
12417 _ACEOF
12418 if ac_fn_c_try_compile "$LINENO"; then :
12419 ac_cv_c_const=yes
12420 else
12421 ac_cv_c_const=no
12422 fi
12423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424 fi
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12426 $as_echo "$ac_cv_c_const" >&6; }
12427 if test $ac_cv_c_const = no; then
12428
12429 $as_echo "#define const /**/" >>confdefs.h
12430
12431 fi
12432
12433 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12434 if test "x$ac_cv_type_pid_t" = xyes; then :
12435
12436 else
12437
12438 cat >>confdefs.h <<_ACEOF
12439 #define pid_t int
12440 _ACEOF
12441
12442 fi
12443
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12445 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12446 if ${ac_cv_type_uid_t+:} false; then :
12447 $as_echo_n "(cached) " >&6
12448 else
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12451 #include <sys/types.h>
12452
12453 _ACEOF
12454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12455 $EGREP "uid_t" >/dev/null 2>&1; then :
12456 ac_cv_type_uid_t=yes
12457 else
12458 ac_cv_type_uid_t=no
12459 fi
12460 rm -f conftest*
12461
12462 fi
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12464 $as_echo "$ac_cv_type_uid_t" >&6; }
12465 if test $ac_cv_type_uid_t = no; then
12466
12467 $as_echo "#define uid_t int" >>confdefs.h
12468
12469
12470 $as_echo "#define gid_t int" >>confdefs.h
12471
12472 fi
12473
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12475 $as_echo_n "checking return type of signal handlers... " >&6; }
12476 if ${ac_cv_type_signal+:} false; then :
12477 $as_echo_n "(cached) " >&6
12478 else
12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480 /* end confdefs.h. */
12481 #include <sys/types.h>
12482 #include <signal.h>
12483
12484 int
12485 main ()
12486 {
12487 return *(signal (0, 0)) (0) == 1;
12488 ;
12489 return 0;
12490 }
12491 _ACEOF
12492 if ac_fn_c_try_compile "$LINENO"; then :
12493 ac_cv_type_signal=int
12494 else
12495 ac_cv_type_signal=void
12496 fi
12497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12498 fi
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12500 $as_echo "$ac_cv_type_signal" >&6; }
12501
12502 cat >>confdefs.h <<_ACEOF
12503 #define RETSIGTYPE $ac_cv_type_signal
12504 _ACEOF
12505
12506
12507 # Check whether --enable-largefile was given.
12508 if test "${enable_largefile+set}" = set; then :
12509 enableval=$enable_largefile;
12510 fi
12511
12512 if test "$enable_largefile" != no; then
12513
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12515 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12516 if ${ac_cv_sys_largefile_CC+:} false; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 ac_cv_sys_largefile_CC=no
12520 if test "$GCC" != yes; then
12521 ac_save_CC=$CC
12522 while :; do
12523 # IRIX 6.2 and later do not support large files by default,
12524 # so use the C compiler's -n32 option if that helps.
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12527 #include <sys/types.h>
12528 /* Check that off_t can represent 2**63 - 1 correctly.
12529 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12530 since some C++ compilers masquerading as C compilers
12531 incorrectly reject 9223372036854775807. */
12532 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12533 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12534 && LARGE_OFF_T % 2147483647 == 1)
12535 ? 1 : -1];
12536 int
12537 main ()
12538 {
12539
12540 ;
12541 return 0;
12542 }
12543 _ACEOF
12544 if ac_fn_c_try_compile "$LINENO"; then :
12545 break
12546 fi
12547 rm -f core conftest.err conftest.$ac_objext
12548 CC="$CC -n32"
12549 if ac_fn_c_try_compile "$LINENO"; then :
12550 ac_cv_sys_largefile_CC=' -n32'; break
12551 fi
12552 rm -f core conftest.err conftest.$ac_objext
12553 break
12554 done
12555 CC=$ac_save_CC
12556 rm -f conftest.$ac_ext
12557 fi
12558 fi
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12560 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12561 if test "$ac_cv_sys_largefile_CC" != no; then
12562 CC=$CC$ac_cv_sys_largefile_CC
12563 fi
12564
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12566 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12567 if ${ac_cv_sys_file_offset_bits+:} false; then :
12568 $as_echo_n "(cached) " >&6
12569 else
12570 while :; do
12571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12573 #include <sys/types.h>
12574 /* Check that off_t can represent 2**63 - 1 correctly.
12575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12576 since some C++ compilers masquerading as C compilers
12577 incorrectly reject 9223372036854775807. */
12578 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12580 && LARGE_OFF_T % 2147483647 == 1)
12581 ? 1 : -1];
12582 int
12583 main ()
12584 {
12585
12586 ;
12587 return 0;
12588 }
12589 _ACEOF
12590 if ac_fn_c_try_compile "$LINENO"; then :
12591 ac_cv_sys_file_offset_bits=no; break
12592 fi
12593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596 #define _FILE_OFFSET_BITS 64
12597 #include <sys/types.h>
12598 /* Check that off_t can represent 2**63 - 1 correctly.
12599 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12600 since some C++ compilers masquerading as C compilers
12601 incorrectly reject 9223372036854775807. */
12602 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12603 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12604 && LARGE_OFF_T % 2147483647 == 1)
12605 ? 1 : -1];
12606 int
12607 main ()
12608 {
12609
12610 ;
12611 return 0;
12612 }
12613 _ACEOF
12614 if ac_fn_c_try_compile "$LINENO"; then :
12615 ac_cv_sys_file_offset_bits=64; break
12616 fi
12617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12618 ac_cv_sys_file_offset_bits=unknown
12619 break
12620 done
12621 fi
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12623 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12624 case $ac_cv_sys_file_offset_bits in #(
12625 no | unknown) ;;
12626 *)
12627 cat >>confdefs.h <<_ACEOF
12628 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12629 _ACEOF
12630 ;;
12631 esac
12632 rm -rf conftest*
12633 if test $ac_cv_sys_file_offset_bits = unknown; then
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12635 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12636 if ${ac_cv_sys_large_files+:} false; then :
12637 $as_echo_n "(cached) " >&6
12638 else
12639 while :; do
12640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641 /* end confdefs.h. */
12642 #include <sys/types.h>
12643 /* Check that off_t can represent 2**63 - 1 correctly.
12644 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12645 since some C++ compilers masquerading as C compilers
12646 incorrectly reject 9223372036854775807. */
12647 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12648 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12649 && LARGE_OFF_T % 2147483647 == 1)
12650 ? 1 : -1];
12651 int
12652 main ()
12653 {
12654
12655 ;
12656 return 0;
12657 }
12658 _ACEOF
12659 if ac_fn_c_try_compile "$LINENO"; then :
12660 ac_cv_sys_large_files=no; break
12661 fi
12662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h. */
12665 #define _LARGE_FILES 1
12666 #include <sys/types.h>
12667 /* Check that off_t can represent 2**63 - 1 correctly.
12668 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12669 since some C++ compilers masquerading as C compilers
12670 incorrectly reject 9223372036854775807. */
12671 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12672 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12673 && LARGE_OFF_T % 2147483647 == 1)
12674 ? 1 : -1];
12675 int
12676 main ()
12677 {
12678
12679 ;
12680 return 0;
12681 }
12682 _ACEOF
12683 if ac_fn_c_try_compile "$LINENO"; then :
12684 ac_cv_sys_large_files=1; break
12685 fi
12686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12687 ac_cv_sys_large_files=unknown
12688 break
12689 done
12690 fi
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12692 $as_echo "$ac_cv_sys_large_files" >&6; }
12693 case $ac_cv_sys_large_files in #(
12694 no | unknown) ;;
12695 *)
12696 cat >>confdefs.h <<_ACEOF
12697 #define _LARGE_FILES $ac_cv_sys_large_files
12698 _ACEOF
12699 ;;
12700 esac
12701 rm -rf conftest*
12702 fi
12703
12704
12705 fi
12706
12707
12708
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12710 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
12711 if ${ac_cv_lib_crypt_crypt+:} false; then :
12712 $as_echo_n "(cached) " >&6
12713 else
12714 ac_check_lib_save_LIBS=$LIBS
12715 LIBS="-lcrypt $LIBS"
12716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717 /* end confdefs.h. */
12718
12719 /* Override any GCC internal prototype to avoid an error.
12720 Use char because int might match the return type of a GCC
12721 builtin and then its argument prototype would still apply. */
12722 #ifdef __cplusplus
12723 extern "C"
12724 #endif
12725 char crypt ();
12726 int
12727 main ()
12728 {
12729 return crypt ();
12730 ;
12731 return 0;
12732 }
12733 _ACEOF
12734 if ac_fn_c_try_link "$LINENO"; then :
12735 ac_cv_lib_crypt_crypt=yes
12736 else
12737 ac_cv_lib_crypt_crypt=no
12738 fi
12739 rm -f core conftest.err conftest.$ac_objext \
12740 conftest$ac_exeext conftest.$ac_ext
12741 LIBS=$ac_check_lib_save_LIBS
12742 fi
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12744 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12745 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12746 CRYPTLIBS="-lcrypt"
12747 fi
12748
12749 saveLIBS="$LIBS"
12750 LIBS="$CRYPTLIBS $LIBS"
12751 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
12752 if test "x$ac_cv_func_crypt" = xyes; then :
12753
12754 cat >>confdefs.h <<_ACEOF
12755 #define HAVE_CRYPT 1
12756 _ACEOF
12757
12758 fi
12759
12760 LIBS="$saveLIBS"
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt() prototype" >&5
12762 $as_echo_n "checking for crypt() prototype... " >&6; }
12763 if ${userdb_cv_NEED_CRYPT_PROTOTYPE+:} false; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12767 /* end confdefs.h. */
12768
12769 #if HAVE_CRYPT_H
12770 #include <crypt.h>
12771 #endif
12772 #if HAVE_UNISTD_H
12773 #include <unistd.h>
12774 #endif
12775 int crypt(int, int);
12776
12777
12778 int
12779 main ()
12780 {
12781
12782 ;
12783 return 0;
12784 }
12785 _ACEOF
12786 if ac_fn_c_try_compile "$LINENO"; then :
12787 userdb_cv_NEED_CRYPT_PROTOTYPE=1
12788 else
12789 userdb_cv_NEED_CRYPT_PROTOTYPE=0
12790 fi
12791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12792
12793
12794 fi
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
12796 $as_echo "$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
12797
12798
12799 cat >>confdefs.h <<_ACEOF
12800 #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
12801 _ACEOF
12802
12803
12804
12805 for ac_func in isatty gettimeofday
12806 do :
12807 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12808 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12809 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12810 cat >>confdefs.h <<_ACEOF
12811 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12812 _ACEOF
12813
12814 fi
12815 done
12816
12817
12818
12819 # Check whether --with-random was given.
12820 if test "${with_random+set}" = set; then :
12821 withval=$with_random; random="$withval"
12822 else
12823 random="y"
12824 fi
12825
12826
12827 case "$random" in
12828 /*)
12829 ;;
12830 y*|1*)
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random source" >&5
12832 $as_echo_n "checking for random source... " >&6; }
12833 if ${userdb_cv_RANDOM+:} false; then :
12834 $as_echo_n "(cached) " >&6
12835 else
12836 if test -c /dev/urandom
12837 then
12838 userdb_cv_RANDOM=/dev/urandom
12839 else
12840 if test -c /dev/random
12841 then
12842 userdb_cv_RANDOM=/dev/random
12843 else
12844 userdb_cv_RANDOM="none"
12845 fi
12846 fi
12847
12848 fi
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $userdb_cv_RANDOM" >&5
12850 $as_echo "$userdb_cv_RANDOM" >&6; }
12851 random="$userdb_cv_RANDOM"
12852 ;;
12853 *)
12854 random="none"
12855 ;;
12856 esac
12857
12858 if test "$random" != "none"
12859 then
12860
12861 cat >>confdefs.h <<_ACEOF
12862 #define RANDOM "$random"
12863 _ACEOF
12864
12865 fi
12866
12867 if test -d ${srcdir}/../libs/docbook; then
12868 HAVE_SGML_TRUE=
12869 HAVE_SGML_FALSE='#'
12870 else
12871 HAVE_SGML_TRUE='#'
12872 HAVE_SGML_FALSE=
12873 fi
12874
12875
12876 ac_config_files="$ac_config_files Makefile userdb.pl makeuserdb pw2userdb"
12877
12878 cat >confcache <<\_ACEOF
12879 # This file is a shell script that caches the results of configure
12880 # tests run on this system so they can be shared between configure
12881 # scripts and configure runs, see configure's option --config-cache.
12882 # It is not useful on other systems. If it contains results you don't
12883 # want to keep, you may remove or edit it.
12884 #
12885 # config.status only pays attention to the cache file if you give it
12886 # the --recheck option to rerun configure.
12887 #
12888 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12889 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12890 # following values.
12891
12892 _ACEOF
12893
12894 # The following way of writing the cache mishandles newlines in values,
12895 # but we know of no workaround that is simple, portable, and efficient.
12896 # So, we kill variables containing newlines.
12897 # Ultrix sh set writes to stderr and can't be redirected directly,
12898 # and sets the high bit in the cache file unless we assign to the vars.
12899 (
12900 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12901 eval ac_val=\$$ac_var
12902 case $ac_val in #(
12903 *${as_nl}*)
12904 case $ac_var in #(
12905 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12906 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12907 esac
12908 case $ac_var in #(
12909 _ | IFS | as_nl) ;; #(
12910 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12911 *) { eval $ac_var=; unset $ac_var;} ;;
12912 esac ;;
12913 esac
12914 done
12915
12916 (set) 2>&1 |
12917 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12918 *${as_nl}ac_space=\ *)
12919 # `set' does not quote correctly, so add quotes: double-quote
12920 # substitution turns \\\\ into \\, and sed turns \\ into \.
12921 sed -n \
12922 "s/'/'\\\\''/g;
12923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12924 ;; #(
12925 *)
12926 # `set' quotes correctly as required by POSIX, so do not add quotes.
12927 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12928 ;;
12929 esac |
12930 sort
12931 ) |
12932 sed '
12933 /^ac_cv_env_/b end
12934 t clear
12935 :clear
12936 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12937 t end
12938 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12939 :end' >>confcache
12940 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12941 if test -w "$cache_file"; then
12942 if test "x$cache_file" != "x/dev/null"; then
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12944 $as_echo "$as_me: updating cache $cache_file" >&6;}
12945 if test ! -f "$cache_file" || test -h "$cache_file"; then
12946 cat confcache >"$cache_file"
12947 else
12948 case $cache_file in #(
12949 */* | ?:*)
12950 mv -f confcache "$cache_file"$$ &&
12951 mv -f "$cache_file"$$ "$cache_file" ;; #(
12952 *)
12953 mv -f confcache "$cache_file" ;;
12954 esac
12955 fi
12956 fi
12957 else
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12959 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12960 fi
12961 fi
12962 rm -f confcache
12963
12964 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12965 # Let make expand exec_prefix.
12966 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12967
12968 DEFS=-DHAVE_CONFIG_H
12969
12970 ac_libobjs=
12971 ac_ltlibobjs=
12972 U=
12973 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12974 # 1. Remove the extension, and $U if already installed.
12975 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12976 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12977 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12978 # will be set to the directory where LIBOBJS objects are built.
12979 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12980 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12981 done
12982 LIBOBJS=$ac_libobjs
12983
12984 LTLIBOBJS=$ac_ltlibobjs
12985
12986
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12988 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12989 if test -n "$am_sleep_pid"; then
12990 # Hide warnings about reused PIDs.
12991 wait $am_sleep_pid 2>/dev/null
12992 fi
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12994 $as_echo "done" >&6; }
12995 if test -n "$EXEEXT"; then
12996 am__EXEEXT_TRUE=
12997 am__EXEEXT_FALSE='#'
12998 else
12999 am__EXEEXT_TRUE='#'
13000 am__EXEEXT_FALSE=
13001 fi
13002
13003 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13004 as_fn_error $? "conditional \"AMDEP\" was never defined.
13005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13006 fi
13007 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13008 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13010 fi
13011 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
13012 as_fn_error $? "conditional \"HAVE_SGML\" was never defined.
13013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13014 fi
13015
13016 : "${CONFIG_STATUS=./config.status}"
13017 ac_write_fail=0
13018 ac_clean_files_save=$ac_clean_files
13019 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13021 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13022 as_write_fail=0
13023 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13024 #! $SHELL
13025 # Generated by $as_me.
13026 # Run this file to recreate the current configuration.
13027 # Compiler output produced by configure, useful for debugging
13028 # configure, is in config.log if it exists.
13029
13030 debug=false
13031 ac_cs_recheck=false
13032 ac_cs_silent=false
13033
13034 SHELL=\${CONFIG_SHELL-$SHELL}
13035 export SHELL
13036 _ASEOF
13037 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13038 ## -------------------- ##
13039 ## M4sh Initialization. ##
13040 ## -------------------- ##
13041
13042 # Be more Bourne compatible
13043 DUALCASE=1; export DUALCASE # for MKS sh
13044 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13045 emulate sh
13046 NULLCMD=:
13047 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13048 # is contrary to our usage. Disable this feature.
13049 alias -g '${1+"$@"}'='"$@"'
13050 setopt NO_GLOB_SUBST
13051 else
13052 case `(set -o) 2>/dev/null` in #(
13053 *posix*) :
13054 set -o posix ;; #(
13055 *) :
13056 ;;
13057 esac
13058 fi
13059
13060
13061 as_nl='
13062 '
13063 export as_nl
13064 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13065 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13066 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13067 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13068 # Prefer a ksh shell builtin over an external printf program on Solaris,
13069 # but without wasting forks for bash or zsh.
13070 if test -z "$BASH_VERSION$ZSH_VERSION" \
13071 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13072 as_echo='print -r --'
13073 as_echo_n='print -rn --'
13074 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13075 as_echo='printf %s\n'
13076 as_echo_n='printf %s'
13077 else
13078 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13079 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13080 as_echo_n='/usr/ucb/echo -n'
13081 else
13082 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13083 as_echo_n_body='eval
13084 arg=$1;
13085 case $arg in #(
13086 *"$as_nl"*)
13087 expr "X$arg" : "X\\(.*\\)$as_nl";
13088 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13089 esac;
13090 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13091 '
13092 export as_echo_n_body
13093 as_echo_n='sh -c $as_echo_n_body as_echo'
13094 fi
13095 export as_echo_body
13096 as_echo='sh -c $as_echo_body as_echo'
13097 fi
13098
13099 # The user is always right.
13100 if test "${PATH_SEPARATOR+set}" != set; then
13101 PATH_SEPARATOR=:
13102 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13103 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13104 PATH_SEPARATOR=';'
13105 }
13106 fi
13107
13108
13109 # IFS
13110 # We need space, tab and new line, in precisely that order. Quoting is
13111 # there to prevent editors from complaining about space-tab.
13112 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13113 # splitting by setting IFS to empty value.)
13114 IFS=" "" $as_nl"
13115
13116 # Find who we are. Look in the path if we contain no directory separator.
13117 as_myself=
13118 case $0 in #((
13119 *[\\/]* ) as_myself=$0 ;;
13120 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13121 for as_dir in $PATH
13122 do
13123 IFS=$as_save_IFS
13124 test -z "$as_dir" && as_dir=.
13125 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13126 done
13127 IFS=$as_save_IFS
13128
13129 ;;
13130 esac
13131 # We did not find ourselves, most probably we were run as `sh COMMAND'
13132 # in which case we are not to be found in the path.
13133 if test "x$as_myself" = x; then
13134 as_myself=$0
13135 fi
13136 if test ! -f "$as_myself"; then
13137 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13138 exit 1
13139 fi
13140
13141 # Unset variables that we do not need and which cause bugs (e.g. in
13142 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13143 # suppresses any "Segmentation fault" message there. '((' could
13144 # trigger a bug in pdksh 5.2.14.
13145 for as_var in BASH_ENV ENV MAIL MAILPATH
13146 do eval test x\${$as_var+set} = xset \
13147 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13148 done
13149 PS1='$ '
13150 PS2='> '
13151 PS4='+ '
13152
13153 # NLS nuisances.
13154 LC_ALL=C
13155 export LC_ALL
13156 LANGUAGE=C
13157 export LANGUAGE
13158
13159 # CDPATH.
13160 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13161
13162
13163 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13164 # ----------------------------------------
13165 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13166 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13167 # script with STATUS, using 1 if that was 0.
13168 as_fn_error ()
13169 {
13170 as_status=$1; test $as_status -eq 0 && as_status=1
13171 if test "$4"; then
13172 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13173 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13174 fi
13175 $as_echo "$as_me: error: $2" >&2
13176 as_fn_exit $as_status
13177 } # as_fn_error
13178
13179
13180 # as_fn_set_status STATUS
13181 # -----------------------
13182 # Set $? to STATUS, without forking.
13183 as_fn_set_status ()
13184 {
13185 return $1
13186 } # as_fn_set_status
13187
13188 # as_fn_exit STATUS
13189 # -----------------
13190 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13191 as_fn_exit ()
13192 {
13193 set +e
13194 as_fn_set_status $1
13195 exit $1
13196 } # as_fn_exit
13197
13198 # as_fn_unset VAR
13199 # ---------------
13200 # Portably unset VAR.
13201 as_fn_unset ()
13202 {
13203 { eval $1=; unset $1;}
13204 }
13205 as_unset=as_fn_unset
13206 # as_fn_append VAR VALUE
13207 # ----------------------
13208 # Append the text in VALUE to the end of the definition contained in VAR. Take
13209 # advantage of any shell optimizations that allow amortized linear growth over
13210 # repeated appends, instead of the typical quadratic growth present in naive
13211 # implementations.
13212 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13213 eval 'as_fn_append ()
13214 {
13215 eval $1+=\$2
13216 }'
13217 else
13218 as_fn_append ()
13219 {
13220 eval $1=\$$1\$2
13221 }
13222 fi # as_fn_append
13223
13224 # as_fn_arith ARG...
13225 # ------------------
13226 # Perform arithmetic evaluation on the ARGs, and store the result in the
13227 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13228 # must be portable across $(()) and expr.
13229 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13230 eval 'as_fn_arith ()
13231 {
13232 as_val=$(( $* ))
13233 }'
13234 else
13235 as_fn_arith ()
13236 {
13237 as_val=`expr "$@" || test $? -eq 1`
13238 }
13239 fi # as_fn_arith
13240
13241
13242 if expr a : '\(a\)' >/dev/null 2>&1 &&
13243 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13244 as_expr=expr
13245 else
13246 as_expr=false
13247 fi
13248
13249 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13250 as_basename=basename
13251 else
13252 as_basename=false
13253 fi
13254
13255 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13256 as_dirname=dirname
13257 else
13258 as_dirname=false
13259 fi
13260
13261 as_me=`$as_basename -- "$0" ||
13262 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13263 X"$0" : 'X\(//\)$' \| \
13264 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13265 $as_echo X/"$0" |
13266 sed '/^.*\/\([^/][^/]*\)\/*$/{
13267 s//\1/
13268 q
13269 }
13270 /^X\/\(\/\/\)$/{
13271 s//\1/
13272 q
13273 }
13274 /^X\/\(\/\).*/{
13275 s//\1/
13276 q
13277 }
13278 s/.*/./; q'`
13279
13280 # Avoid depending upon Character Ranges.
13281 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13282 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13283 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13284 as_cr_digits='0123456789'
13285 as_cr_alnum=$as_cr_Letters$as_cr_digits
13286
13287 ECHO_C= ECHO_N= ECHO_T=
13288 case `echo -n x` in #(((((
13289 -n*)
13290 case `echo 'xy\c'` in
13291 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13292 xy) ECHO_C='\c';;
13293 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13294 ECHO_T=' ';;
13295 esac;;
13296 *)
13297 ECHO_N='-n';;
13298 esac
13299
13300 rm -f conf$$ conf$$.exe conf$$.file
13301 if test -d conf$$.dir; then
13302 rm -f conf$$.dir/conf$$.file
13303 else
13304 rm -f conf$$.dir
13305 mkdir conf$$.dir 2>/dev/null
13306 fi
13307 if (echo >conf$$.file) 2>/dev/null; then
13308 if ln -s conf$$.file conf$$ 2>/dev/null; then
13309 as_ln_s='ln -s'
13310 # ... but there are two gotchas:
13311 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13312 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13313 # In both cases, we have to default to `cp -pR'.
13314 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13315 as_ln_s='cp -pR'
13316 elif ln conf$$.file conf$$ 2>/dev/null; then
13317 as_ln_s=ln
13318 else
13319 as_ln_s='cp -pR'
13320 fi
13321 else
13322 as_ln_s='cp -pR'
13323 fi
13324 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13325 rmdir conf$$.dir 2>/dev/null
13326
13327
13328 # as_fn_mkdir_p
13329 # -------------
13330 # Create "$as_dir" as a directory, including parents if necessary.
13331 as_fn_mkdir_p ()
13332 {
13333
13334 case $as_dir in #(
13335 -*) as_dir=./$as_dir;;
13336 esac
13337 test -d "$as_dir" || eval $as_mkdir_p || {
13338 as_dirs=
13339 while :; do
13340 case $as_dir in #(
13341 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13342 *) as_qdir=$as_dir;;
13343 esac
13344 as_dirs="'$as_qdir' $as_dirs"
13345 as_dir=`$as_dirname -- "$as_dir" ||
13346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13347 X"$as_dir" : 'X\(//\)[^/]' \| \
13348 X"$as_dir" : 'X\(//\)$' \| \
13349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13350 $as_echo X"$as_dir" |
13351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13352 s//\1/
13353 q
13354 }
13355 /^X\(\/\/\)[^/].*/{
13356 s//\1/
13357 q
13358 }
13359 /^X\(\/\/\)$/{
13360 s//\1/
13361 q
13362 }
13363 /^X\(\/\).*/{
13364 s//\1/
13365 q
13366 }
13367 s/.*/./; q'`
13368 test -d "$as_dir" && break
13369 done
13370 test -z "$as_dirs" || eval "mkdir $as_dirs"
13371 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13372
13373
13374 } # as_fn_mkdir_p
13375 if mkdir -p . 2>/dev/null; then
13376 as_mkdir_p='mkdir -p "$as_dir"'
13377 else
13378 test -d ./-p && rmdir ./-p
13379 as_mkdir_p=false
13380 fi
13381
13382
13383 # as_fn_executable_p FILE
13384 # -----------------------
13385 # Test if FILE is an executable regular file.
13386 as_fn_executable_p ()
13387 {
13388 test -f "$1" && test -x "$1"
13389 } # as_fn_executable_p
13390 as_test_x='test -x'
13391 as_executable_p=as_fn_executable_p
13392
13393 # Sed expression to map a string onto a valid CPP name.
13394 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13395
13396 # Sed expression to map a string onto a valid variable name.
13397 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13398
13399
13400 exec 6>&1
13401 ## ----------------------------------- ##
13402 ## Main body of $CONFIG_STATUS script. ##
13403 ## ----------------------------------- ##
13404 _ASEOF
13405 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13406
13407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13408 # Save the log message, to keep $0 and so on meaningful, and to
13409 # report actual input values of CONFIG_FILES etc. instead of their
13410 # values after options handling.
13411 ac_log="
13412 This file was extended by libuserdb $as_me 0.10, which was
13413 generated by GNU Autoconf 2.69. Invocation command line was
13414
13415 CONFIG_FILES = $CONFIG_FILES
13416 CONFIG_HEADERS = $CONFIG_HEADERS
13417 CONFIG_LINKS = $CONFIG_LINKS
13418 CONFIG_COMMANDS = $CONFIG_COMMANDS
13419 $ $0 $@
13420
13421 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13422 "
13423
13424 _ACEOF
13425
13426 case $ac_config_files in *"
13427 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13428 esac
13429
13430 case $ac_config_headers in *"
13431 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13432 esac
13433
13434
13435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13436 # Files that config.status was made for.
13437 config_files="$ac_config_files"
13438 config_headers="$ac_config_headers"
13439 config_commands="$ac_config_commands"
13440
13441 _ACEOF
13442
13443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13444 ac_cs_usage="\
13445 \`$as_me' instantiates files and other configuration actions
13446 from templates according to the current configuration. Unless the files
13447 and actions are specified as TAGs, all are instantiated by default.
13448
13449 Usage: $0 [OPTION]... [TAG]...
13450
13451 -h, --help print this help, then exit
13452 -V, --version print version number and configuration settings, then exit
13453 --config print configuration, then exit
13454 -q, --quiet, --silent
13455 do not print progress messages
13456 -d, --debug don't remove temporary files
13457 --recheck update $as_me by reconfiguring in the same conditions
13458 --file=FILE[:TEMPLATE]
13459 instantiate the configuration file FILE
13460 --header=FILE[:TEMPLATE]
13461 instantiate the configuration header FILE
13462
13463 Configuration files:
13464 $config_files
13465
13466 Configuration headers:
13467 $config_headers
13468
13469 Configuration commands:
13470 $config_commands
13471
13472 Report bugs to <courier-users@lists.sourceforge.net>."
13473
13474 _ACEOF
13475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13476 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13477 ac_cs_version="\\
13478 libuserdb config.status 0.10
13479 configured by $0, generated by GNU Autoconf 2.69,
13480 with options \\"\$ac_cs_config\\"
13481
13482 Copyright (C) 2012 Free Software Foundation, Inc.
13483 This config.status script is free software; the Free Software Foundation
13484 gives unlimited permission to copy, distribute and modify it."
13485
13486 ac_pwd='$ac_pwd'
13487 srcdir='$srcdir'
13488 INSTALL='$INSTALL'
13489 MKDIR_P='$MKDIR_P'
13490 AWK='$AWK'
13491 test -n "\$AWK" || AWK=awk
13492 _ACEOF
13493
13494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13495 # The default lists apply if the user does not specify any file.
13496 ac_need_defaults=:
13497 while test $# != 0
13498 do
13499 case $1 in
13500 --*=?*)
13501 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13502 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13503 ac_shift=:
13504 ;;
13505 --*=)
13506 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13507 ac_optarg=
13508 ac_shift=:
13509 ;;
13510 *)
13511 ac_option=$1
13512 ac_optarg=$2
13513 ac_shift=shift
13514 ;;
13515 esac
13516
13517 case $ac_option in
13518 # Handling of the options.
13519 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13520 ac_cs_recheck=: ;;
13521 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13522 $as_echo "$ac_cs_version"; exit ;;
13523 --config | --confi | --conf | --con | --co | --c )
13524 $as_echo "$ac_cs_config"; exit ;;
13525 --debug | --debu | --deb | --de | --d | -d )
13526 debug=: ;;
13527 --file | --fil | --fi | --f )
13528 $ac_shift
13529 case $ac_optarg in
13530 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13531 '') as_fn_error $? "missing file argument" ;;
13532 esac
13533 as_fn_append CONFIG_FILES " '$ac_optarg'"
13534 ac_need_defaults=false;;
13535 --header | --heade | --head | --hea )
13536 $ac_shift
13537 case $ac_optarg in
13538 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13539 esac
13540 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13541 ac_need_defaults=false;;
13542 --he | --h)
13543 # Conflict between --help and --header
13544 as_fn_error $? "ambiguous option: \`$1'
13545 Try \`$0 --help' for more information.";;
13546 --help | --hel | -h )
13547 $as_echo "$ac_cs_usage"; exit ;;
13548 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13549 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13550 ac_cs_silent=: ;;
13551
13552 # This is an error.
13553 -*) as_fn_error $? "unrecognized option: \`$1'
13554 Try \`$0 --help' for more information." ;;
13555
13556 *) as_fn_append ac_config_targets " $1"
13557 ac_need_defaults=false ;;
13558
13559 esac
13560 shift
13561 done
13562
13563 ac_configure_extra_args=
13564
13565 if $ac_cs_silent; then
13566 exec 6>/dev/null
13567 ac_configure_extra_args="$ac_configure_extra_args --silent"
13568 fi
13569
13570 _ACEOF
13571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13572 if \$ac_cs_recheck; then
13573 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13574 shift
13575 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13576 CONFIG_SHELL='$SHELL'
13577 export CONFIG_SHELL
13578 exec "\$@"
13579 fi
13580
13581 _ACEOF
13582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13583 exec 5>>config.log
13584 {
13585 echo
13586 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13587 ## Running $as_me. ##
13588 _ASBOX
13589 $as_echo "$ac_log"
13590 } >&5
13591
13592 _ACEOF
13593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13594 #
13595 # INIT-COMMANDS
13596 #
13597 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13598
13599
13600 # The HP-UX ksh and POSIX shell print the target directory to stdout
13601 # if CDPATH is set.
13602 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13603
13604 sed_quote_subst='$sed_quote_subst'
13605 double_quote_subst='$double_quote_subst'
13606 delay_variable_subst='$delay_variable_subst'
13607 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13608 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13609 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13610 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13611 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13612 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13613 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13614 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13615 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13616 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13617 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13618 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13619 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13620 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13621 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13622 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13623 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13624 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13625 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13626 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13627 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13628 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13629 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13630 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13631 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13632 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13633 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13634 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13635 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13636 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13637 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13638 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13639 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13640 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13641 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13642 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13643 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13644 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13645 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13646 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13647 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13648 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13649 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13650 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13651 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13652 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13653 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13654 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13655 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13656 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13657 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13658 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13659 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13660 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13661 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13662 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13663 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13664 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13665 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"`'
13666 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13667 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13668 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13669 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13670 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13671 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13672 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13673 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13674 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13675 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13676 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13677 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13678 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13679 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13680 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13681 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13682 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13683 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13684 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13685 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13686 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13687 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13688 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13689 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13690 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13691 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13692 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13693 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13694 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13695 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13696 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13697 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13698 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13699 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13700 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13701 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13702 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13703 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13704 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13705 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13706 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13707 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13708 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13709 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13710 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13711 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13712 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13713 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13714 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13715 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13716 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13717 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13718 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13719 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13720 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13721 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13722 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13723 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13724 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13725 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13726 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13727 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13728 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13729 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13730 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13731 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13732 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13733 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13734 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13735 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13736 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13737 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13738 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13739 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13740 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13741 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13742
13743 LTCC='$LTCC'
13744 LTCFLAGS='$LTCFLAGS'
13745 compiler='$compiler_DEFAULT'
13746
13747 # A function that is used when there is no print builtin or printf.
13748 func_fallback_echo ()
13749 {
13750 eval 'cat <<_LTECHO_EOF
13751 \$1
13752 _LTECHO_EOF'
13753 }
13754
13755 # Quote evaled strings.
13756 for var in SHELL \
13757 ECHO \
13758 PATH_SEPARATOR \
13759 SED \
13760 GREP \
13761 EGREP \
13762 FGREP \
13763 LD \
13764 NM \
13765 LN_S \
13766 lt_SP2NL \
13767 lt_NL2SP \
13768 reload_flag \
13769 OBJDUMP \
13770 deplibs_check_method \
13771 file_magic_cmd \
13772 file_magic_glob \
13773 want_nocaseglob \
13774 DLLTOOL \
13775 sharedlib_from_linklib_cmd \
13776 AR \
13777 AR_FLAGS \
13778 archiver_list_spec \
13779 STRIP \
13780 RANLIB \
13781 CC \
13782 CFLAGS \
13783 compiler \
13784 lt_cv_sys_global_symbol_pipe \
13785 lt_cv_sys_global_symbol_to_cdecl \
13786 lt_cv_sys_global_symbol_to_import \
13787 lt_cv_sys_global_symbol_to_c_name_address \
13788 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13789 lt_cv_nm_interface \
13790 nm_file_list_spec \
13791 lt_cv_truncate_bin \
13792 lt_prog_compiler_no_builtin_flag \
13793 lt_prog_compiler_pic \
13794 lt_prog_compiler_wl \
13795 lt_prog_compiler_static \
13796 lt_cv_prog_compiler_c_o \
13797 need_locks \
13798 MANIFEST_TOOL \
13799 DSYMUTIL \
13800 NMEDIT \
13801 LIPO \
13802 OTOOL \
13803 OTOOL64 \
13804 shrext_cmds \
13805 export_dynamic_flag_spec \
13806 whole_archive_flag_spec \
13807 compiler_needs_object \
13808 with_gnu_ld \
13809 allow_undefined_flag \
13810 no_undefined_flag \
13811 hardcode_libdir_flag_spec \
13812 hardcode_libdir_separator \
13813 exclude_expsyms \
13814 include_expsyms \
13815 file_list_spec \
13816 variables_saved_for_relink \
13817 libname_spec \
13818 library_names_spec \
13819 soname_spec \
13820 install_override_mode \
13821 finish_eval \
13822 old_striplib \
13823 striplib; do
13824 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13825 *[\\\\\\\`\\"\\\$]*)
13826 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13827 ;;
13828 *)
13829 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13830 ;;
13831 esac
13832 done
13833
13834 # Double-quote double-evaled strings.
13835 for var in reload_cmds \
13836 old_postinstall_cmds \
13837 old_postuninstall_cmds \
13838 old_archive_cmds \
13839 extract_expsyms_cmds \
13840 old_archive_from_new_cmds \
13841 old_archive_from_expsyms_cmds \
13842 archive_cmds \
13843 archive_expsym_cmds \
13844 module_cmds \
13845 module_expsym_cmds \
13846 export_symbols_cmds \
13847 prelink_cmds \
13848 postlink_cmds \
13849 postinstall_cmds \
13850 postuninstall_cmds \
13851 finish_cmds \
13852 sys_lib_search_path_spec \
13853 configure_time_dlsearch_path \
13854 configure_time_lt_sys_library_path; do
13855 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13856 *[\\\\\\\`\\"\\\$]*)
13857 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13858 ;;
13859 *)
13860 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13861 ;;
13862 esac
13863 done
13864
13865 ac_aux_dir='$ac_aux_dir'
13866
13867 # See if we are running on zsh, and set the options that allow our
13868 # commands through without removal of \ escapes INIT.
13869 if test -n "\${ZSH_VERSION+set}"; then
13870 setopt NO_GLOB_SUBST
13871 fi
13872
13873
13874 PACKAGE='$PACKAGE'
13875 VERSION='$VERSION'
13876 RM='$RM'
13877 ofile='$ofile'
13878
13879
13880
13881
13882 _ACEOF
13883
13884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13885
13886 # Handling of arguments.
13887 for ac_config_target in $ac_config_targets
13888 do
13889 case $ac_config_target in
13890 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13891 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13892 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13893 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13894 "userdb.pl") CONFIG_FILES="$CONFIG_FILES userdb.pl" ;;
13895 "makeuserdb") CONFIG_FILES="$CONFIG_FILES makeuserdb" ;;
13896 "pw2userdb") CONFIG_FILES="$CONFIG_FILES pw2userdb" ;;
13897
13898 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13899 esac
13900 done
13901
13902
13903 # If the user did not use the arguments to specify the items to instantiate,
13904 # then the envvar interface is used. Set only those that are not.
13905 # We use the long form for the default assignment because of an extremely
13906 # bizarre bug on SunOS 4.1.3.
13907 if $ac_need_defaults; then
13908 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13909 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13910 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13911 fi
13912
13913 # Have a temporary directory for convenience. Make it in the build tree
13914 # simply because there is no reason against having it here, and in addition,
13915 # creating and moving files from /tmp can sometimes cause problems.
13916 # Hook for its removal unless debugging.
13917 # Note that there is a small window in which the directory will not be cleaned:
13918 # after its creation but before its name has been assigned to `$tmp'.
13919 $debug ||
13920 {
13921 tmp= ac_tmp=
13922 trap 'exit_status=$?
13923 : "${ac_tmp:=$tmp}"
13924 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13925 ' 0
13926 trap 'as_fn_exit 1' 1 2 13 15
13927 }
13928 # Create a (secure) tmp directory for tmp files.
13929
13930 {
13931 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13932 test -d "$tmp"
13933 } ||
13934 {
13935 tmp=./conf$$-$RANDOM
13936 (umask 077 && mkdir "$tmp")
13937 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13938 ac_tmp=$tmp
13939
13940 # Set up the scripts for CONFIG_FILES section.
13941 # No need to generate them if there are no CONFIG_FILES.
13942 # This happens for instance with `./config.status config.h'.
13943 if test -n "$CONFIG_FILES"; then
13944
13945
13946 ac_cr=`echo X | tr X '\015'`
13947 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13948 # But we know of no other shell where ac_cr would be empty at this
13949 # point, so we can use a bashism as a fallback.
13950 if test "x$ac_cr" = x; then
13951 eval ac_cr=\$\'\\r\'
13952 fi
13953 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13954 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13955 ac_cs_awk_cr='\\r'
13956 else
13957 ac_cs_awk_cr=$ac_cr
13958 fi
13959
13960 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13961 _ACEOF
13962
13963
13964 {
13965 echo "cat >conf$$subs.awk <<_ACEOF" &&
13966 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13967 echo "_ACEOF"
13968 } >conf$$subs.sh ||
13969 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13970 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13971 ac_delim='%!_!# '
13972 for ac_last_try in false false false false false :; do
13973 . ./conf$$subs.sh ||
13974 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13975
13976 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13977 if test $ac_delim_n = $ac_delim_num; then
13978 break
13979 elif $ac_last_try; then
13980 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13981 else
13982 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13983 fi
13984 done
13985 rm -f conf$$subs.sh
13986
13987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13988 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13989 _ACEOF
13990 sed -n '
13991 h
13992 s/^/S["/; s/!.*/"]=/
13993 p
13994 g
13995 s/^[^!]*!//
13996 :repl
13997 t repl
13998 s/'"$ac_delim"'$//
13999 t delim
14000 :nl
14001 h
14002 s/\(.\{148\}\)..*/\1/
14003 t more1
14004 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14005 p
14006 n
14007 b repl
14008 :more1
14009 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14010 p
14011 g
14012 s/.\{148\}//
14013 t nl
14014 :delim
14015 h
14016 s/\(.\{148\}\)..*/\1/
14017 t more2
14018 s/["\\]/\\&/g; s/^/"/; s/$/"/
14019 p
14020 b
14021 :more2
14022 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14023 p
14024 g
14025 s/.\{148\}//
14026 t delim
14027 ' <conf$$subs.awk | sed '
14028 /^[^""]/{
14029 N
14030 s/\n//
14031 }
14032 ' >>$CONFIG_STATUS || ac_write_fail=1
14033 rm -f conf$$subs.awk
14034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14035 _ACAWK
14036 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14037 for (key in S) S_is_set[key] = 1
14038 FS = "\a"
14039
14040 }
14041 {
14042 line = $ 0
14043 nfields = split(line, field, "@")
14044 substed = 0
14045 len = length(field[1])
14046 for (i = 2; i < nfields; i++) {
14047 key = field[i]
14048 keylen = length(key)
14049 if (S_is_set[key]) {
14050 value = S[key]
14051 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14052 len += length(value) + length(field[++i])
14053 substed = 1
14054 } else
14055 len += 1 + keylen
14056 }
14057
14058 print line
14059 }
14060
14061 _ACAWK
14062 _ACEOF
14063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14064 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14065 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14066 else
14067 cat
14068 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14069 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14070 _ACEOF
14071
14072 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14073 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14074 # trailing colons and then remove the whole line if VPATH becomes empty
14075 # (actually we leave an empty line to preserve line numbers).
14076 if test "x$srcdir" = x.; then
14077 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14078 h
14079 s///
14080 s/^/:/
14081 s/[ ]*$/:/
14082 s/:\$(srcdir):/:/g
14083 s/:\${srcdir}:/:/g
14084 s/:@srcdir@:/:/g
14085 s/^:*//
14086 s/:*$//
14087 x
14088 s/\(=[ ]*\).*/\1/
14089 G
14090 s/\n//
14091 s/^[^=]*=[ ]*$//
14092 }'
14093 fi
14094
14095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14096 fi # test -n "$CONFIG_FILES"
14097
14098 # Set up the scripts for CONFIG_HEADERS section.
14099 # No need to generate them if there are no CONFIG_HEADERS.
14100 # This happens for instance with `./config.status Makefile'.
14101 if test -n "$CONFIG_HEADERS"; then
14102 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14103 BEGIN {
14104 _ACEOF
14105
14106 # Transform confdefs.h into an awk script `defines.awk', embedded as
14107 # here-document in config.status, that substitutes the proper values into
14108 # config.h.in to produce config.h.
14109
14110 # Create a delimiter string that does not exist in confdefs.h, to ease
14111 # handling of long lines.
14112 ac_delim='%!_!# '
14113 for ac_last_try in false false :; do
14114 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14115 if test -z "$ac_tt"; then
14116 break
14117 elif $ac_last_try; then
14118 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14119 else
14120 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14121 fi
14122 done
14123
14124 # For the awk script, D is an array of macro values keyed by name,
14125 # likewise P contains macro parameters if any. Preserve backslash
14126 # newline sequences.
14127
14128 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14129 sed -n '
14130 s/.\{148\}/&'"$ac_delim"'/g
14131 t rset
14132 :rset
14133 s/^[ ]*#[ ]*define[ ][ ]*/ /
14134 t def
14135 d
14136 :def
14137 s/\\$//
14138 t bsnl
14139 s/["\\]/\\&/g
14140 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14141 D["\1"]=" \3"/p
14142 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14143 d
14144 :bsnl
14145 s/["\\]/\\&/g
14146 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14147 D["\1"]=" \3\\\\\\n"\\/p
14148 t cont
14149 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14150 t cont
14151 d
14152 :cont
14153 n
14154 s/.\{148\}/&'"$ac_delim"'/g
14155 t clear
14156 :clear
14157 s/\\$//
14158 t bsnlc
14159 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14160 d
14161 :bsnlc
14162 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14163 b cont
14164 ' <confdefs.h | sed '
14165 s/'"$ac_delim"'/"\\\
14166 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14167
14168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14169 for (key in D) D_is_set[key] = 1
14170 FS = "\a"
14171 }
14172 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14173 line = \$ 0
14174 split(line, arg, " ")
14175 if (arg[1] == "#") {
14176 defundef = arg[2]
14177 mac1 = arg[3]
14178 } else {
14179 defundef = substr(arg[1], 2)
14180 mac1 = arg[2]
14181 }
14182 split(mac1, mac2, "(") #)
14183 macro = mac2[1]
14184 prefix = substr(line, 1, index(line, defundef) - 1)
14185 if (D_is_set[macro]) {
14186 # Preserve the white space surrounding the "#".
14187 print prefix "define", macro P[macro] D[macro]
14188 next
14189 } else {
14190 # Replace #undef with comments. This is necessary, for example,
14191 # in the case of _POSIX_SOURCE, which is predefined and required
14192 # on some systems where configure will not decide to define it.
14193 if (defundef == "undef") {
14194 print "/*", prefix defundef, macro, "*/"
14195 next
14196 }
14197 }
14198 }
14199 { print }
14200 _ACAWK
14201 _ACEOF
14202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14203 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14204 fi # test -n "$CONFIG_HEADERS"
14205
14206
14207 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14208 shift
14209 for ac_tag
14210 do
14211 case $ac_tag in
14212 :[FHLC]) ac_mode=$ac_tag; continue;;
14213 esac
14214 case $ac_mode$ac_tag in
14215 :[FHL]*:*);;
14216 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14217 :[FH]-) ac_tag=-:-;;
14218 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14219 esac
14220 ac_save_IFS=$IFS
14221 IFS=:
14222 set x $ac_tag
14223 IFS=$ac_save_IFS
14224 shift
14225 ac_file=$1
14226 shift
14227
14228 case $ac_mode in
14229 :L) ac_source=$1;;
14230 :[FH])
14231 ac_file_inputs=
14232 for ac_f
14233 do
14234 case $ac_f in
14235 -) ac_f="$ac_tmp/stdin";;
14236 *) # Look for the file first in the build tree, then in the source tree
14237 # (if the path is not absolute). The absolute path cannot be DOS-style,
14238 # because $ac_f cannot contain `:'.
14239 test -f "$ac_f" ||
14240 case $ac_f in
14241 [\\/$]*) false;;
14242 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14243 esac ||
14244 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14245 esac
14246 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14247 as_fn_append ac_file_inputs " '$ac_f'"
14248 done
14249
14250 # Let's still pretend it is `configure' which instantiates (i.e., don't
14251 # use $as_me), people would be surprised to read:
14252 # /* config.h. Generated by config.status. */
14253 configure_input='Generated from '`
14254 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14255 `' by configure.'
14256 if test x"$ac_file" != x-; then
14257 configure_input="$ac_file. $configure_input"
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14259 $as_echo "$as_me: creating $ac_file" >&6;}
14260 fi
14261 # Neutralize special characters interpreted by sed in replacement strings.
14262 case $configure_input in #(
14263 *\&* | *\|* | *\\* )
14264 ac_sed_conf_input=`$as_echo "$configure_input" |
14265 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14266 *) ac_sed_conf_input=$configure_input;;
14267 esac
14268
14269 case $ac_tag in
14270 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14271 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14272 esac
14273 ;;
14274 esac
14275
14276 ac_dir=`$as_dirname -- "$ac_file" ||
14277 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14278 X"$ac_file" : 'X\(//\)[^/]' \| \
14279 X"$ac_file" : 'X\(//\)$' \| \
14280 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14281 $as_echo X"$ac_file" |
14282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14283 s//\1/
14284 q
14285 }
14286 /^X\(\/\/\)[^/].*/{
14287 s//\1/
14288 q
14289 }
14290 /^X\(\/\/\)$/{
14291 s//\1/
14292 q
14293 }
14294 /^X\(\/\).*/{
14295 s//\1/
14296 q
14297 }
14298 s/.*/./; q'`
14299 as_dir="$ac_dir"; as_fn_mkdir_p
14300 ac_builddir=.
14301
14302 case "$ac_dir" in
14303 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14304 *)
14305 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14306 # A ".." for each directory in $ac_dir_suffix.
14307 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14308 case $ac_top_builddir_sub in
14309 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14310 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14311 esac ;;
14312 esac
14313 ac_abs_top_builddir=$ac_pwd
14314 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14315 # for backward compatibility:
14316 ac_top_builddir=$ac_top_build_prefix
14317
14318 case $srcdir in
14319 .) # We are building in place.
14320 ac_srcdir=.
14321 ac_top_srcdir=$ac_top_builddir_sub
14322 ac_abs_top_srcdir=$ac_pwd ;;
14323 [\\/]* | ?:[\\/]* ) # Absolute name.
14324 ac_srcdir=$srcdir$ac_dir_suffix;
14325 ac_top_srcdir=$srcdir
14326 ac_abs_top_srcdir=$srcdir ;;
14327 *) # Relative name.
14328 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14329 ac_top_srcdir=$ac_top_build_prefix$srcdir
14330 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14331 esac
14332 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14333
14334
14335 case $ac_mode in
14336 :F)
14337 #
14338 # CONFIG_FILE
14339 #
14340
14341 case $INSTALL in
14342 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14343 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14344 esac
14345 ac_MKDIR_P=$MKDIR_P
14346 case $MKDIR_P in
14347 [\\/$]* | ?:[\\/]* ) ;;
14348 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14349 esac
14350 _ACEOF
14351
14352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14353 # If the template does not know about datarootdir, expand it.
14354 # FIXME: This hack should be removed a few years after 2.60.
14355 ac_datarootdir_hack=; ac_datarootdir_seen=
14356 ac_sed_dataroot='
14357 /datarootdir/ {
14358 p
14359 q
14360 }
14361 /@datadir@/p
14362 /@docdir@/p
14363 /@infodir@/p
14364 /@localedir@/p
14365 /@mandir@/p'
14366 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14367 *datarootdir*) ac_datarootdir_seen=yes;;
14368 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14370 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14371 _ACEOF
14372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14373 ac_datarootdir_hack='
14374 s&@datadir@&$datadir&g
14375 s&@docdir@&$docdir&g
14376 s&@infodir@&$infodir&g
14377 s&@localedir@&$localedir&g
14378 s&@mandir@&$mandir&g
14379 s&\\\${datarootdir}&$datarootdir&g' ;;
14380 esac
14381 _ACEOF
14382
14383 # Neutralize VPATH when `$srcdir' = `.'.
14384 # Shell code in configure.ac might set extrasub.
14385 # FIXME: do we really want to maintain this feature?
14386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14387 ac_sed_extra="$ac_vpsub
14388 $extrasub
14389 _ACEOF
14390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14391 :t
14392 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14393 s|@configure_input@|$ac_sed_conf_input|;t t
14394 s&@top_builddir@&$ac_top_builddir_sub&;t t
14395 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14396 s&@srcdir@&$ac_srcdir&;t t
14397 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14398 s&@top_srcdir@&$ac_top_srcdir&;t t
14399 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14400 s&@builddir@&$ac_builddir&;t t
14401 s&@abs_builddir@&$ac_abs_builddir&;t t
14402 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14403 s&@INSTALL@&$ac_INSTALL&;t t
14404 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14405 $ac_datarootdir_hack
14406 "
14407 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14408 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14409
14410 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14411 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14412 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14413 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14415 which seems to be undefined. Please make sure it is defined" >&5
14416 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14417 which seems to be undefined. Please make sure it is defined" >&2;}
14418
14419 rm -f "$ac_tmp/stdin"
14420 case $ac_file in
14421 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14422 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14423 esac \
14424 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14425 ;;
14426 :H)
14427 #
14428 # CONFIG_HEADER
14429 #
14430 if test x"$ac_file" != x-; then
14431 {
14432 $as_echo "/* $configure_input */" \
14433 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14434 } >"$ac_tmp/config.h" \
14435 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14436 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14438 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14439 else
14440 rm -f "$ac_file"
14441 mv "$ac_tmp/config.h" "$ac_file" \
14442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14443 fi
14444 else
14445 $as_echo "/* $configure_input */" \
14446 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14447 || as_fn_error $? "could not create -" "$LINENO" 5
14448 fi
14449 # Compute "$ac_file"'s index in $config_headers.
14450 _am_arg="$ac_file"
14451 _am_stamp_count=1
14452 for _am_header in $config_headers :; do
14453 case $_am_header in
14454 $_am_arg | $_am_arg:* )
14455 break ;;
14456 * )
14457 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14458 esac
14459 done
14460 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14461 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14462 X"$_am_arg" : 'X\(//\)[^/]' \| \
14463 X"$_am_arg" : 'X\(//\)$' \| \
14464 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14465 $as_echo X"$_am_arg" |
14466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14467 s//\1/
14468 q
14469 }
14470 /^X\(\/\/\)[^/].*/{
14471 s//\1/
14472 q
14473 }
14474 /^X\(\/\/\)$/{
14475 s//\1/
14476 q
14477 }
14478 /^X\(\/\).*/{
14479 s//\1/
14480 q
14481 }
14482 s/.*/./; q'`/stamp-h$_am_stamp_count
14483 ;;
14484
14485 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14486 $as_echo "$as_me: executing $ac_file commands" >&6;}
14487 ;;
14488 esac
14489
14490
14491 case $ac_file$ac_mode in
14492 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14493 # Older Autoconf quotes --file arguments for eval, but not when files
14494 # are listed without --file. Let's play safe and only enable the eval
14495 # if we detect the quoting.
14496 case $CONFIG_FILES in
14497 *\'*) eval set x "$CONFIG_FILES" ;;
14498 *) set x $CONFIG_FILES ;;
14499 esac
14500 shift
14501 for mf
14502 do
14503 # Strip MF so we end up with the name of the file.
14504 mf=`echo "$mf" | sed -e 's/:.*$//'`
14505 # Check whether this is an Automake generated Makefile or not.
14506 # We used to match only the files named 'Makefile.in', but
14507 # some people rename them; so instead we look at the file content.
14508 # Grep'ing the first line is not enough: some people post-process
14509 # each Makefile.in and add a new line on top of each file to say so.
14510 # Grep'ing the whole file is not good either: AIX grep has a line
14511 # limit of 2048, but all sed's we know have understand at least 4000.
14512 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14513 dirpart=`$as_dirname -- "$mf" ||
14514 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14515 X"$mf" : 'X\(//\)[^/]' \| \
14516 X"$mf" : 'X\(//\)$' \| \
14517 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14518 $as_echo X"$mf" |
14519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14520 s//\1/
14521 q
14522 }
14523 /^X\(\/\/\)[^/].*/{
14524 s//\1/
14525 q
14526 }
14527 /^X\(\/\/\)$/{
14528 s//\1/
14529 q
14530 }
14531 /^X\(\/\).*/{
14532 s//\1/
14533 q
14534 }
14535 s/.*/./; q'`
14536 else
14537 continue
14538 fi
14539 # Extract the definition of DEPDIR, am__include, and am__quote
14540 # from the Makefile without running 'make'.
14541 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14542 test -z "$DEPDIR" && continue
14543 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14544 test -z "$am__include" && continue
14545 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14546 # Find all dependency output files, they are included files with
14547 # $(DEPDIR) in their names. We invoke sed twice because it is the
14548 # simplest approach to changing $(DEPDIR) to its actual value in the
14549 # expansion.
14550 for file in `sed -n "
14551 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14552 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14553 # Make sure the directory exists.
14554 test -f "$dirpart/$file" && continue
14555 fdir=`$as_dirname -- "$file" ||
14556 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14557 X"$file" : 'X\(//\)[^/]' \| \
14558 X"$file" : 'X\(//\)$' \| \
14559 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14560 $as_echo X"$file" |
14561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14562 s//\1/
14563 q
14564 }
14565 /^X\(\/\/\)[^/].*/{
14566 s//\1/
14567 q
14568 }
14569 /^X\(\/\/\)$/{
14570 s//\1/
14571 q
14572 }
14573 /^X\(\/\).*/{
14574 s//\1/
14575 q
14576 }
14577 s/.*/./; q'`
14578 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14579 # echo "creating $dirpart/$file"
14580 echo '# dummy' > "$dirpart/$file"
14581 done
14582 done
14583 }
14584 ;;
14585 "libtool":C)
14586
14587 # See if we are running on zsh, and set the options that allow our
14588 # commands through without removal of \ escapes.
14589 if test -n "${ZSH_VERSION+set}"; then
14590 setopt NO_GLOB_SUBST
14591 fi
14592
14593 cfgfile=${ofile}T
14594 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14595 $RM "$cfgfile"
14596
14597 cat <<_LT_EOF >> "$cfgfile"
14598 #! $SHELL
14599 # Generated automatically by $as_me ($PACKAGE) $VERSION
14600 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14601 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14602
14603 # Provide generalized library-building support services.
14604 # Written by Gordon Matzigkeit, 1996
14605
14606 # Copyright (C) 2014 Free Software Foundation, Inc.
14607 # This is free software; see the source for copying conditions. There is NO
14608 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14609
14610 # GNU Libtool is free software; you can redistribute it and/or modify
14611 # it under the terms of the GNU General Public License as published by
14612 # the Free Software Foundation; either version 2 of of the License, or
14613 # (at your option) any later version.
14614 #
14615 # As a special exception to the GNU General Public License, if you
14616 # distribute this file as part of a program or library that is built
14617 # using GNU Libtool, you may include this file under the same
14618 # distribution terms that you use for the rest of that program.
14619 #
14620 # GNU Libtool is distributed in the hope that it will be useful, but
14621 # WITHOUT ANY WARRANTY; without even the implied warranty of
14622 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14623 # GNU General Public License for more details.
14624 #
14625 # You should have received a copy of the GNU General Public License
14626 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14627
14628
14629 # The names of the tagged configurations supported by this script.
14630 available_tags=''
14631
14632 # Configured defaults for sys_lib_dlsearch_path munging.
14633 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14634
14635 # ### BEGIN LIBTOOL CONFIG
14636
14637 # Which release of libtool.m4 was used?
14638 macro_version=$macro_version
14639 macro_revision=$macro_revision
14640
14641 # Whether or not to build shared libraries.
14642 build_libtool_libs=$enable_shared
14643
14644 # Whether or not to build static libraries.
14645 build_old_libs=$enable_static
14646
14647 # What type of objects to build.
14648 pic_mode=$pic_mode
14649
14650 # Whether or not to optimize for fast installation.
14651 fast_install=$enable_fast_install
14652
14653 # Shared archive member basename,for filename based shared library versioning on AIX.
14654 shared_archive_member_spec=$shared_archive_member_spec
14655
14656 # Shell to use when invoking shell scripts.
14657 SHELL=$lt_SHELL
14658
14659 # An echo program that protects backslashes.
14660 ECHO=$lt_ECHO
14661
14662 # The PATH separator for the build system.
14663 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14664
14665 # The host system.
14666 host_alias=$host_alias
14667 host=$host
14668 host_os=$host_os
14669
14670 # The build system.
14671 build_alias=$build_alias
14672 build=$build
14673 build_os=$build_os
14674
14675 # A sed program that does not truncate output.
14676 SED=$lt_SED
14677
14678 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14679 Xsed="\$SED -e 1s/^X//"
14680
14681 # A grep program that handles long lines.
14682 GREP=$lt_GREP
14683
14684 # An ERE matcher.
14685 EGREP=$lt_EGREP
14686
14687 # A literal string matcher.
14688 FGREP=$lt_FGREP
14689
14690 # A BSD- or MS-compatible name lister.
14691 NM=$lt_NM
14692
14693 # Whether we need soft or hard links.
14694 LN_S=$lt_LN_S
14695
14696 # What is the maximum length of a command?
14697 max_cmd_len=$max_cmd_len
14698
14699 # Object file suffix (normally "o").
14700 objext=$ac_objext
14701
14702 # Executable file suffix (normally "").
14703 exeext=$exeext
14704
14705 # whether the shell understands "unset".
14706 lt_unset=$lt_unset
14707
14708 # turn spaces into newlines.
14709 SP2NL=$lt_lt_SP2NL
14710
14711 # turn newlines into spaces.
14712 NL2SP=$lt_lt_NL2SP
14713
14714 # convert \$build file names to \$host format.
14715 to_host_file_cmd=$lt_cv_to_host_file_cmd
14716
14717 # convert \$build files to toolchain format.
14718 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14719
14720 # An object symbol dumper.
14721 OBJDUMP=$lt_OBJDUMP
14722
14723 # Method to check whether dependent libraries are shared objects.
14724 deplibs_check_method=$lt_deplibs_check_method
14725
14726 # Command to use when deplibs_check_method = "file_magic".
14727 file_magic_cmd=$lt_file_magic_cmd
14728
14729 # How to find potential files when deplibs_check_method = "file_magic".
14730 file_magic_glob=$lt_file_magic_glob
14731
14732 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14733 want_nocaseglob=$lt_want_nocaseglob
14734
14735 # DLL creation program.
14736 DLLTOOL=$lt_DLLTOOL
14737
14738 # Command to associate shared and link libraries.
14739 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14740
14741 # The archiver.
14742 AR=$lt_AR
14743
14744 # Flags to create an archive.
14745 AR_FLAGS=$lt_AR_FLAGS
14746
14747 # How to feed a file listing to the archiver.
14748 archiver_list_spec=$lt_archiver_list_spec
14749
14750 # A symbol stripping program.
14751 STRIP=$lt_STRIP
14752
14753 # Commands used to install an old-style archive.
14754 RANLIB=$lt_RANLIB
14755 old_postinstall_cmds=$lt_old_postinstall_cmds
14756 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14757
14758 # Whether to use a lock for old archive extraction.
14759 lock_old_archive_extraction=$lock_old_archive_extraction
14760
14761 # A C compiler.
14762 LTCC=$lt_CC
14763
14764 # LTCC compiler flags.
14765 LTCFLAGS=$lt_CFLAGS
14766
14767 # Take the output of nm and produce a listing of raw symbols and C names.
14768 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14769
14770 # Transform the output of nm in a proper C declaration.
14771 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14772
14773 # Transform the output of nm into a list of symbols to manually relocate.
14774 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14775
14776 # Transform the output of nm in a C name address pair.
14777 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14778
14779 # Transform the output of nm in a C name address pair when lib prefix is needed.
14780 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14781
14782 # The name lister interface.
14783 nm_interface=$lt_lt_cv_nm_interface
14784
14785 # Specify filename containing input files for \$NM.
14786 nm_file_list_spec=$lt_nm_file_list_spec
14787
14788 # The root where to search for dependent libraries,and where our libraries should be installed.
14789 lt_sysroot=$lt_sysroot
14790
14791 # Command to truncate a binary pipe.
14792 lt_truncate_bin=$lt_lt_cv_truncate_bin
14793
14794 # The name of the directory that contains temporary libtool files.
14795 objdir=$objdir
14796
14797 # Used to examine libraries when file_magic_cmd begins with "file".
14798 MAGIC_CMD=$MAGIC_CMD
14799
14800 # Must we lock files when doing compilation?
14801 need_locks=$lt_need_locks
14802
14803 # Manifest tool.
14804 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14805
14806 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14807 DSYMUTIL=$lt_DSYMUTIL
14808
14809 # Tool to change global to local symbols on Mac OS X.
14810 NMEDIT=$lt_NMEDIT
14811
14812 # Tool to manipulate fat objects and archives on Mac OS X.
14813 LIPO=$lt_LIPO
14814
14815 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14816 OTOOL=$lt_OTOOL
14817
14818 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14819 OTOOL64=$lt_OTOOL64
14820
14821 # Old archive suffix (normally "a").
14822 libext=$libext
14823
14824 # Shared library suffix (normally ".so").
14825 shrext_cmds=$lt_shrext_cmds
14826
14827 # The commands to extract the exported symbol list from a shared archive.
14828 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14829
14830 # Variables whose values should be saved in libtool wrapper scripts and
14831 # restored at link time.
14832 variables_saved_for_relink=$lt_variables_saved_for_relink
14833
14834 # Do we need the "lib" prefix for modules?
14835 need_lib_prefix=$need_lib_prefix
14836
14837 # Do we need a version for libraries?
14838 need_version=$need_version
14839
14840 # Library versioning type.
14841 version_type=$version_type
14842
14843 # Shared library runtime path variable.
14844 runpath_var=$runpath_var
14845
14846 # Shared library path variable.
14847 shlibpath_var=$shlibpath_var
14848
14849 # Is shlibpath searched before the hard-coded library search path?
14850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14851
14852 # Format of library name prefix.
14853 libname_spec=$lt_libname_spec
14854
14855 # List of archive names. First name is the real one, the rest are links.
14856 # The last name is the one that the linker finds with -lNAME
14857 library_names_spec=$lt_library_names_spec
14858
14859 # The coded name of the library, if different from the real name.
14860 soname_spec=$lt_soname_spec
14861
14862 # Permission mode override for installation of shared libraries.
14863 install_override_mode=$lt_install_override_mode
14864
14865 # Command to use after installation of a shared archive.
14866 postinstall_cmds=$lt_postinstall_cmds
14867
14868 # Command to use after uninstallation of a shared archive.
14869 postuninstall_cmds=$lt_postuninstall_cmds
14870
14871 # Commands used to finish a libtool library installation in a directory.
14872 finish_cmds=$lt_finish_cmds
14873
14874 # As "finish_cmds", except a single script fragment to be evaled but
14875 # not shown.
14876 finish_eval=$lt_finish_eval
14877
14878 # Whether we should hardcode library paths into libraries.
14879 hardcode_into_libs=$hardcode_into_libs
14880
14881 # Compile-time system search path for libraries.
14882 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14883
14884 # Detected run-time system search path for libraries.
14885 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14886
14887 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14888 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14889
14890 # Whether dlopen is supported.
14891 dlopen_support=$enable_dlopen
14892
14893 # Whether dlopen of programs is supported.
14894 dlopen_self=$enable_dlopen_self
14895
14896 # Whether dlopen of statically linked programs is supported.
14897 dlopen_self_static=$enable_dlopen_self_static
14898
14899 # Commands to strip libraries.
14900 old_striplib=$lt_old_striplib
14901 striplib=$lt_striplib
14902
14903
14904 # The linker used to build libraries.
14905 LD=$lt_LD
14906
14907 # How to create reloadable object files.
14908 reload_flag=$lt_reload_flag
14909 reload_cmds=$lt_reload_cmds
14910
14911 # Commands used to build an old-style archive.
14912 old_archive_cmds=$lt_old_archive_cmds
14913
14914 # A language specific compiler.
14915 CC=$lt_compiler
14916
14917 # Is the compiler the GNU compiler?
14918 with_gcc=$GCC
14919
14920 # Compiler flag to turn off builtin functions.
14921 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14922
14923 # Additional compiler flags for building library objects.
14924 pic_flag=$lt_lt_prog_compiler_pic
14925
14926 # How to pass a linker flag through the compiler.
14927 wl=$lt_lt_prog_compiler_wl
14928
14929 # Compiler flag to prevent dynamic linking.
14930 link_static_flag=$lt_lt_prog_compiler_static
14931
14932 # Does compiler simultaneously support -c and -o options?
14933 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14934
14935 # Whether or not to add -lc for building shared libraries.
14936 build_libtool_need_lc=$archive_cmds_need_lc
14937
14938 # Whether or not to disallow shared libs when runtime libs are static.
14939 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14940
14941 # Compiler flag to allow reflexive dlopens.
14942 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14943
14944 # Compiler flag to generate shared objects directly from archives.
14945 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14946
14947 # Whether the compiler copes with passing no objects directly.
14948 compiler_needs_object=$lt_compiler_needs_object
14949
14950 # Create an old-style archive from a shared archive.
14951 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14952
14953 # Create a temporary old-style archive to link instead of a shared archive.
14954 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14955
14956 # Commands used to build a shared archive.
14957 archive_cmds=$lt_archive_cmds
14958 archive_expsym_cmds=$lt_archive_expsym_cmds
14959
14960 # Commands used to build a loadable module if different from building
14961 # a shared archive.
14962 module_cmds=$lt_module_cmds
14963 module_expsym_cmds=$lt_module_expsym_cmds
14964
14965 # Whether we are building with GNU ld or not.
14966 with_gnu_ld=$lt_with_gnu_ld
14967
14968 # Flag that allows shared libraries with undefined symbols to be built.
14969 allow_undefined_flag=$lt_allow_undefined_flag
14970
14971 # Flag that enforces no undefined symbols.
14972 no_undefined_flag=$lt_no_undefined_flag
14973
14974 # Flag to hardcode \$libdir into a binary during linking.
14975 # This must work even if \$libdir does not exist
14976 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14977
14978 # Whether we need a single "-rpath" flag with a separated argument.
14979 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14980
14981 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14982 # DIR into the resulting binary.
14983 hardcode_direct=$hardcode_direct
14984
14985 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14986 # DIR into the resulting binary and the resulting library dependency is
14987 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14988 # library is relocated.
14989 hardcode_direct_absolute=$hardcode_direct_absolute
14990
14991 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14992 # into the resulting binary.
14993 hardcode_minus_L=$hardcode_minus_L
14994
14995 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14996 # into the resulting binary.
14997 hardcode_shlibpath_var=$hardcode_shlibpath_var
14998
14999 # Set to "yes" if building a shared library automatically hardcodes DIR
15000 # into the library and all subsequent libraries and executables linked
15001 # against it.
15002 hardcode_automatic=$hardcode_automatic
15003
15004 # Set to yes if linker adds runtime paths of dependent libraries
15005 # to runtime path list.
15006 inherit_rpath=$inherit_rpath
15007
15008 # Whether libtool must link a program against all its dependency libraries.
15009 link_all_deplibs=$link_all_deplibs
15010
15011 # Set to "yes" if exported symbols are required.
15012 always_export_symbols=$always_export_symbols
15013
15014 # The commands to list exported symbols.
15015 export_symbols_cmds=$lt_export_symbols_cmds
15016
15017 # Symbols that should not be listed in the preloaded symbols.
15018 exclude_expsyms=$lt_exclude_expsyms
15019
15020 # Symbols that must always be exported.
15021 include_expsyms=$lt_include_expsyms
15022
15023 # Commands necessary for linking programs (against libraries) with templates.
15024 prelink_cmds=$lt_prelink_cmds
15025
15026 # Commands necessary for finishing linking programs.
15027 postlink_cmds=$lt_postlink_cmds
15028
15029 # Specify filename containing input files.
15030 file_list_spec=$lt_file_list_spec
15031
15032 # How to hardcode a shared library path into an executable.
15033 hardcode_action=$hardcode_action
15034
15035 # ### END LIBTOOL CONFIG
15036
15037 _LT_EOF
15038
15039 cat <<'_LT_EOF' >> "$cfgfile"
15040
15041 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15042
15043 # func_munge_path_list VARIABLE PATH
15044 # -----------------------------------
15045 # VARIABLE is name of variable containing _space_ separated list of
15046 # directories to be munged by the contents of PATH, which is string
15047 # having a format:
15048 # "DIR[:DIR]:"
15049 # string "DIR[ DIR]" will be prepended to VARIABLE
15050 # ":DIR[:DIR]"
15051 # string "DIR[ DIR]" will be appended to VARIABLE
15052 # "DIRP[:DIRP]::[DIRA:]DIRA"
15053 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15054 # "DIRA[ DIRA]" will be appended to VARIABLE
15055 # "DIR[:DIR]"
15056 # VARIABLE will be replaced by "DIR[ DIR]"
15057 func_munge_path_list ()
15058 {
15059 case x$2 in
15060 x)
15061 ;;
15062 *:)
15063 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15064 ;;
15065 x:*)
15066 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15067 ;;
15068 *::*)
15069 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15070 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15071 ;;
15072 *)
15073 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15074 ;;
15075 esac
15076 }
15077
15078
15079 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15080 func_cc_basename ()
15081 {
15082 for cc_temp in $*""; do
15083 case $cc_temp in
15084 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15085 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15086 \-*) ;;
15087 *) break;;
15088 esac
15089 done
15090 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15091 }
15092
15093
15094 # ### END FUNCTIONS SHARED WITH CONFIGURE
15095
15096 _LT_EOF
15097
15098 case $host_os in
15099 aix3*)
15100 cat <<\_LT_EOF >> "$cfgfile"
15101 # AIX sometimes has problems with the GCC collect2 program. For some
15102 # reason, if we set the COLLECT_NAMES environment variable, the problems
15103 # vanish in a puff of smoke.
15104 if test set != "${COLLECT_NAMES+set}"; then
15105 COLLECT_NAMES=
15106 export COLLECT_NAMES
15107 fi
15108 _LT_EOF
15109 ;;
15110 esac
15111
15112
15113 ltmain=$ac_aux_dir/ltmain.sh
15114
15115
15116 # We use sed instead of cat because bash on DJGPP gets confused if
15117 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15118 # text mode, it properly converts lines to CR/LF. This bash problem
15119 # is reportedly fixed, but why not run on old versions too?
15120 sed '$q' "$ltmain" >> "$cfgfile" \
15121 || (rm -f "$cfgfile"; exit 1)
15122
15123 mv -f "$cfgfile" "$ofile" ||
15124 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15125 chmod +x "$ofile"
15126
15127 ;;
15128
15129 esac
15130 done # for ac_tag
15131
15132
15133 as_fn_exit 0
15134 _ACEOF
15135 ac_clean_files=$ac_clean_files_save
15136
15137 test $ac_write_fail = 0 ||
15138 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15139
15140
15141 # configure is writing to config.log, and then calls config.status.
15142 # config.status does its own redirection, appending to config.log.
15143 # Unfortunately, on DOS this fails, as config.log is still kept open
15144 # by configure, so config.status won't be able to write to it; its
15145 # output is simply discarded. So we exec the FD to /dev/null,
15146 # effectively closing config.log, so it can be properly (re)opened and
15147 # appended to by config.status. When coming back to configure, we
15148 # need to make the FD available again.
15149 if test "$no_create" != yes; then
15150 ac_cs_success=:
15151 ac_config_status_args=
15152 test "$silent" = yes &&
15153 ac_config_status_args="$ac_config_status_args --quiet"
15154 exec 5>/dev/null
15155 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15156 exec 5>>config.log
15157 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15158 # would make configure fail if this is the last instruction.
15159 $ac_cs_success || as_fn_exit 1
15160 fi
15161 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15163 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15164 fi
15165