Import Upstream version 0.66.4
[hcoop/debian/courier-authlib.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for courier-authlib 0.66.4.
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 lt_ltdl_dir='libltdl'
570
571 lt_dlopen_dir=$lt_ltdl_dir
572
573
574 test -n "$DJDIR" || exec 7<&0 </dev/null
575 exec 6>&1
576
577 # Name of the host.
578 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
579 # so uname gets run too.
580 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581
582 #
583 # Initializations.
584 #
585 ac_default_prefix=/usr/local
586 ac_clean_files=
587 ac_config_libobj_dir=.
588 LIBOBJS=
589 cross_compiling=no
590 subdirs=
591 MFLAGS=
592 MAKEFLAGS=
593
594 # Identity of this package.
595 PACKAGE_NAME='courier-authlib'
596 PACKAGE_TARNAME='courier-authlib'
597 PACKAGE_VERSION='0.66.4'
598 PACKAGE_STRING='courier-authlib 0.66.4'
599 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
600 PACKAGE_URL=''
601
602 ac_unique_file="courierauth.h"
603 # Factoring default headers for most tests.
604 ac_includes_default="\
605 #include <stdio.h>
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
608 #endif
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
611 #endif
612 #ifdef STDC_HEADERS
613 # include <stdlib.h>
614 # include <stddef.h>
615 #else
616 # ifdef HAVE_STDLIB_H
617 # include <stdlib.h>
618 # endif
619 #endif
620 #ifdef HAVE_STRING_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 # include <memory.h>
623 # endif
624 # include <string.h>
625 #endif
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_UNISTD_H
636 # include <unistd.h>
637 #endif"
638
639 enable_option_checking=no
640 ac_subst_vars='ltdl_LTLIBOBJS
641 ltdl_LIBOBJS
642 am__EXEEXT_FALSE
643 am__EXEEXT_TRUE
644 LTLIBOBJS
645 LIBOBJS
646 HAVE_SGML_FALSE
647 HAVE_SGML_TRUE
648 REPOSITORY
649 mailgroup
650 mailuser
651 LIBM
652 authdaemonvar
653 authdaemonrc
654 CRYPTLIBS
655 LIBAUTHPIPE
656 HAVE_PIPE_FALSE
657 HAVE_PIPE_TRUE
658 authProg
659 LIBAUTHCUSTOM
660 HAVE_CUSTOM_FALSE
661 HAVE_CUSTOM_TRUE
662 HAVE_AUTHSQLITE_FALSE
663 HAVE_AUTHSQLITE_TRUE
664 LIBAUTHSQLITE
665 SQLITE_LIBS
666 authsqliterc
667 HAVE_AUTHMYSQL_FALSE
668 HAVE_AUTHMYSQL_TRUE
669 MYSQL_LIBS
670 LIBAUTHMYSQL
671 MYSQL_CONFIG
672 authmysqlrc
673 HAVE_AUTHPGSQL_FALSE
674 HAVE_AUTHPGSQL_TRUE
675 LIBAUTHPGSQL
676 PGSQL_LIBS
677 PG_CONFIG
678 authpgsqlrc
679 LIBAUTHPWD
680 LIBAUTHSHADOW
681 SHADOWLIBS
682 HAVE_LDAP_FALSE
683 HAVE_LDAP_TRUE
684 LIBAUTHLDAP
685 LDAPLIBS
686 authldaprc
687 LIBAUTHPAM
688 AUTHPAMCRYPT
689 LIBDL
690 userdb
691 LIBAUTHUSERDB
692 LIBDB
693 LIBGDBM
694 dblibrary
695 USE_DB
696 USE_GDBM
697 NETLIBS
698 PASSWD
699 EXPECT
700 COURIERCONFIG
701 PERL
702 LTDLOPEN
703 LT_CONFIG_H
704 subdirs
705 CONVENIENCE_LTDL_FALSE
706 CONVENIENCE_LTDL_TRUE
707 INSTALL_LTDL_FALSE
708 INSTALL_LTDL_TRUE
709 LT_ARGZ_H
710 sys_symbol_underscore
711 LIBADD_DL
712 LT_DLPREOPEN
713 LIBADD_DLD_LINK
714 LIBADD_SHL_LOAD
715 LIBADD_DLOPEN
716 LT_DLLOADERS
717 INCLTDL
718 LTDLINCL
719 LTDLDEPS
720 LIBLTDL
721 LT_SYS_LIBRARY_PATH
722 OTOOL64
723 OTOOL
724 LIPO
725 NMEDIT
726 DSYMUTIL
727 MANIFEST_TOOL
728 RANLIB
729 ac_ct_AR
730 AR
731 DLLTOOL
732 OBJDUMP
733 NM
734 ac_ct_DUMPBIN
735 DUMPBIN
736 LD
737 FGREP
738 EGREP
739 GREP
740 SED
741 host_os
742 host_vendor
743 host_cpu
744 host
745 build_os
746 build_vendor
747 build_cpu
748 build
749 LIBTOOL
750 SYSCONFTOOL
751 SYSCONFTOOL_PERL
752 LN_S
753 CPP
754 am__fastdepCC_FALSE
755 am__fastdepCC_TRUE
756 CCDEPMODE
757 am__nodep
758 AMDEPBACKSLASH
759 AMDEP_FALSE
760 AMDEP_TRUE
761 am__quote
762 am__include
763 DEPDIR
764 OBJEXT
765 EXEEXT
766 ac_ct_CC
767 CPPFLAGS
768 LDFLAGS
769 CFLAGS
770 CC
771 AM_BACKSLASH
772 AM_DEFAULT_VERBOSITY
773 AM_DEFAULT_V
774 AM_V
775 am__untar
776 am__tar
777 AMTAR
778 am__leading_dot
779 SET_MAKE
780 AWK
781 mkdir_p
782 MKDIR_P
783 INSTALL_STRIP_PROGRAM
784 STRIP
785 install_sh
786 MAKEINFO
787 AUTOHEADER
788 AUTOMAKE
789 AUTOCONF
790 ACLOCAL
791 VERSION
792 PACKAGE
793 CYGPATH_W
794 am__isrc
795 INSTALL_DATA
796 INSTALL_SCRIPT
797 INSTALL_PROGRAM
798 target_alias
799 host_alias
800 build_alias
801 LIBS
802 ECHO_T
803 ECHO_N
804 ECHO_C
805 DEFS
806 mandir
807 localedir
808 libdir
809 psdir
810 pdfdir
811 dvidir
812 htmldir
813 infodir
814 docdir
815 oldincludedir
816 includedir
817 localstatedir
818 sharedstatedir
819 sysconfdir
820 datadir
821 datarootdir
822 libexecdir
823 sbindir
824 bindir
825 program_transform_name
826 prefix
827 exec_prefix
828 PACKAGE_URL
829 PACKAGE_BUGREPORT
830 PACKAGE_STRING
831 PACKAGE_VERSION
832 PACKAGE_TARNAME
833 PACKAGE_NAME
834 PATH_SEPARATOR
835 SHELL'
836 ac_subst_files=''
837 ac_user_opts='
838 enable_option_checking
839 enable_silent_rules
840 enable_dependency_tracking
841 enable_shared
842 enable_static
843 with_pic
844 enable_fast_install
845 with_aix_soname
846 with_gnu_ld
847 with_sysroot
848 enable_libtool_lock
849 with_included_ltdl
850 with_ltdl_include
851 with_ltdl_lib
852 enable_ltdl_install
853 with_pkgconfdir
854 with_db
855 with_authuserdb
856 with_makedatprog
857 with_userdb
858 with_authpam
859 with_authpam_libraries
860 with_authldap
861 with_authldaprc
862 with_authpwd
863 with_authshadow
864 with_authpgsqlrc
865 with_authpgsql
866 with_pgsql_libs
867 with_pgsql_includes
868 with_authmysqlrc
869 with_authmysql
870 with_mysql_libs
871 with_mysql_includes
872 with_authsqliterc
873 with_authsqlite
874 with_sqlite_libs
875 with_sqlite_includes
876 with_authcustom
877 with_pipeprog
878 with_authpipe
879 with_authdaemonrc
880 with_authdaemonvar
881 with_mailuser
882 with_mailgroup
883 with_stdheaderdir
884 with_repository
885 '
886 ac_precious_vars='build_alias
887 host_alias
888 target_alias
889 CC
890 CFLAGS
891 LDFLAGS
892 LIBS
893 CPPFLAGS
894 CPP
895 LT_SYS_LIBRARY_PATH'
896 ac_subdirs_all='libltdl
897 libs/bdbobj libs/gdbmobj libs/md5 libs/sha1 libs/libhmac libs/numlib libs/makedat userdb libs/rfc822 libs/random128 libs/liblock liblog'
898
899 # Initialize some variables set by options.
900 ac_init_help=
901 ac_init_version=false
902 ac_unrecognized_opts=
903 ac_unrecognized_sep=
904 # The variables have the same names as the options, with
905 # dashes changed to underlines.
906 cache_file=/dev/null
907 exec_prefix=NONE
908 no_create=
909 no_recursion=
910 prefix=NONE
911 program_prefix=NONE
912 program_suffix=NONE
913 program_transform_name=s,x,x,
914 silent=
915 site=
916 srcdir=
917 verbose=
918 x_includes=NONE
919 x_libraries=NONE
920
921 # Installation directory options.
922 # These are left unexpanded so users can "make install exec_prefix=/foo"
923 # and all the variables that are supposed to be based on exec_prefix
924 # by default will actually change.
925 # Use braces instead of parens because sh, perl, etc. also accept them.
926 # (The list follows the same order as the GNU Coding Standards.)
927 bindir='${exec_prefix}/bin'
928 sbindir='${exec_prefix}/sbin'
929 libexecdir='${exec_prefix}/libexec'
930 datarootdir='${prefix}/share'
931 datadir='${datarootdir}'
932 sysconfdir='${prefix}/etc'
933 sharedstatedir='${prefix}/com'
934 localstatedir='${prefix}/var'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938 infodir='${datarootdir}/info'
939 htmldir='${docdir}'
940 dvidir='${docdir}'
941 pdfdir='${docdir}'
942 psdir='${docdir}'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
946
947 ac_prev=
948 ac_dashdash=
949 for ac_option
950 do
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
953 eval $ac_prev=\$ac_option
954 ac_prev=
955 continue
956 fi
957
958 case $ac_option in
959 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 *=) ac_optarg= ;;
961 *) ac_optarg=yes ;;
962 esac
963
964 # Accept the important Cygnus configure options, so we can diagnose typos.
965
966 case $ac_dashdash$ac_option in
967 --)
968 ac_dashdash=yes ;;
969
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 bindir=$ac_optarg ;;
974
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
979
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
986
987 --config-cache | -C)
988 cache_file=config.cache ;;
989
990 -datadir | --datadir | --datadi | --datad)
991 ac_prev=datadir ;;
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
994
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1001
1002 -disable-* | --disable-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 as_fn_error $? "invalid feature name: $ac_useropt"
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1010 *"
1011 "enable_$ac_useropt"
1012 "*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1015 esac
1016 eval enable_$ac_useropt=no ;;
1017
1018 -docdir | --docdir | --docdi | --doc | --do)
1019 ac_prev=docdir ;;
1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021 docdir=$ac_optarg ;;
1022
1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 ac_prev=dvidir ;;
1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026 dvidir=$ac_optarg ;;
1027
1028 -enable-* | --enable-*)
1029 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error $? "invalid feature name: $ac_useropt"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1036 *"
1037 "enable_$ac_useropt"
1038 "*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1041 esac
1042 eval enable_$ac_useropt=\$ac_optarg ;;
1043
1044 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046 | --exec | --exe | --ex)
1047 ac_prev=exec_prefix ;;
1048 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050 | --exec=* | --exe=* | --ex=*)
1051 exec_prefix=$ac_optarg ;;
1052
1053 -gas | --gas | --ga | --g)
1054 # Obsolete; use --with-gas.
1055 with_gas=yes ;;
1056
1057 -help | --help | --hel | --he | -h)
1058 ac_init_help=long ;;
1059 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060 ac_init_help=recursive ;;
1061 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062 ac_init_help=short ;;
1063
1064 -host | --host | --hos | --ho)
1065 ac_prev=host_alias ;;
1066 -host=* | --host=* | --hos=* | --ho=*)
1067 host_alias=$ac_optarg ;;
1068
1069 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070 ac_prev=htmldir ;;
1071 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072 | --ht=*)
1073 htmldir=$ac_optarg ;;
1074
1075 -includedir | --includedir | --includedi | --included | --include \
1076 | --includ | --inclu | --incl | --inc)
1077 ac_prev=includedir ;;
1078 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079 | --includ=* | --inclu=* | --incl=* | --inc=*)
1080 includedir=$ac_optarg ;;
1081
1082 -infodir | --infodir | --infodi | --infod | --info | --inf)
1083 ac_prev=infodir ;;
1084 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085 infodir=$ac_optarg ;;
1086
1087 -libdir | --libdir | --libdi | --libd)
1088 ac_prev=libdir ;;
1089 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090 libdir=$ac_optarg ;;
1091
1092 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093 | --libexe | --libex | --libe)
1094 ac_prev=libexecdir ;;
1095 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096 | --libexe=* | --libex=* | --libe=*)
1097 libexecdir=$ac_optarg ;;
1098
1099 -localedir | --localedir | --localedi | --localed | --locale)
1100 ac_prev=localedir ;;
1101 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102 localedir=$ac_optarg ;;
1103
1104 -localstatedir | --localstatedir | --localstatedi | --localstated \
1105 | --localstate | --localstat | --localsta | --localst | --locals)
1106 ac_prev=localstatedir ;;
1107 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109 localstatedir=$ac_optarg ;;
1110
1111 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112 ac_prev=mandir ;;
1113 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114 mandir=$ac_optarg ;;
1115
1116 -nfp | --nfp | --nf)
1117 # Obsolete; use --without-fp.
1118 with_fp=no ;;
1119
1120 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121 | --no-cr | --no-c | -n)
1122 no_create=yes ;;
1123
1124 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126 no_recursion=yes ;;
1127
1128 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130 | --oldin | --oldi | --old | --ol | --o)
1131 ac_prev=oldincludedir ;;
1132 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135 oldincludedir=$ac_optarg ;;
1136
1137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138 ac_prev=prefix ;;
1139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140 prefix=$ac_optarg ;;
1141
1142 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143 | --program-pre | --program-pr | --program-p)
1144 ac_prev=program_prefix ;;
1145 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147 program_prefix=$ac_optarg ;;
1148
1149 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150 | --program-suf | --program-su | --program-s)
1151 ac_prev=program_suffix ;;
1152 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154 program_suffix=$ac_optarg ;;
1155
1156 -program-transform-name | --program-transform-name \
1157 | --program-transform-nam | --program-transform-na \
1158 | --program-transform-n | --program-transform- \
1159 | --program-transform | --program-transfor \
1160 | --program-transfo | --program-transf \
1161 | --program-trans | --program-tran \
1162 | --progr-tra | --program-tr | --program-t)
1163 ac_prev=program_transform_name ;;
1164 -program-transform-name=* | --program-transform-name=* \
1165 | --program-transform-nam=* | --program-transform-na=* \
1166 | --program-transform-n=* | --program-transform-=* \
1167 | --program-transform=* | --program-transfor=* \
1168 | --program-transfo=* | --program-transf=* \
1169 | --program-trans=* | --program-tran=* \
1170 | --progr-tra=* | --program-tr=* | --program-t=*)
1171 program_transform_name=$ac_optarg ;;
1172
1173 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174 ac_prev=pdfdir ;;
1175 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176 pdfdir=$ac_optarg ;;
1177
1178 -psdir | --psdir | --psdi | --psd | --ps)
1179 ac_prev=psdir ;;
1180 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181 psdir=$ac_optarg ;;
1182
1183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184 | -silent | --silent | --silen | --sile | --sil)
1185 silent=yes ;;
1186
1187 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188 ac_prev=sbindir ;;
1189 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190 | --sbi=* | --sb=*)
1191 sbindir=$ac_optarg ;;
1192
1193 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195 | --sharedst | --shareds | --shared | --share | --shar \
1196 | --sha | --sh)
1197 ac_prev=sharedstatedir ;;
1198 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201 | --sha=* | --sh=*)
1202 sharedstatedir=$ac_optarg ;;
1203
1204 -site | --site | --sit)
1205 ac_prev=site ;;
1206 -site=* | --site=* | --sit=*)
1207 site=$ac_optarg ;;
1208
1209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210 ac_prev=srcdir ;;
1211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212 srcdir=$ac_optarg ;;
1213
1214 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215 | --syscon | --sysco | --sysc | --sys | --sy)
1216 ac_prev=sysconfdir ;;
1217 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219 sysconfdir=$ac_optarg ;;
1220
1221 -target | --target | --targe | --targ | --tar | --ta | --t)
1222 ac_prev=target_alias ;;
1223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224 target_alias=$ac_optarg ;;
1225
1226 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 verbose=yes ;;
1228
1229 -version | --version | --versio | --versi | --vers | -V)
1230 ac_init_version=: ;;
1231
1232 -with-* | --with-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error $? "invalid package name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1240 *"
1241 "with_$ac_useropt"
1242 "*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=\$ac_optarg ;;
1247
1248 -without-* | --without-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error $? "invalid package name: $ac_useropt"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1256 *"
1257 "with_$ac_useropt"
1258 "*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=no ;;
1263
1264 --x)
1265 # Obsolete; use --with-x.
1266 with_x=yes ;;
1267
1268 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269 | --x-incl | --x-inc | --x-in | --x-i)
1270 ac_prev=x_includes ;;
1271 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273 x_includes=$ac_optarg ;;
1274
1275 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277 ac_prev=x_libraries ;;
1278 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280 x_libraries=$ac_optarg ;;
1281
1282 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1283 Try \`$0 --help' for more information"
1284 ;;
1285
1286 *=*)
1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288 # Reject names that are not valid shell variable names.
1289 case $ac_envvar in #(
1290 '' | [0-9]* | *[!_$as_cr_alnum]* )
1291 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1292 esac
1293 eval $ac_envvar=\$ac_optarg
1294 export $ac_envvar ;;
1295
1296 *)
1297 # FIXME: should be removed in autoconf 3.0.
1298 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1302 ;;
1303
1304 esac
1305 done
1306
1307 if test -n "$ac_prev"; then
1308 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309 as_fn_error $? "missing argument to $ac_option"
1310 fi
1311
1312 if test -n "$ac_unrecognized_opts"; then
1313 case $enable_option_checking in
1314 no) ;;
1315 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1316 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1317 esac
1318 fi
1319
1320 # Check all directory arguments for consistency.
1321 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322 datadir sysconfdir sharedstatedir localstatedir includedir \
1323 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324 libdir localedir mandir
1325 do
1326 eval ac_val=\$$ac_var
1327 # Remove trailing slashes.
1328 case $ac_val in
1329 */ )
1330 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1331 eval $ac_var=\$ac_val;;
1332 esac
1333 # Be sure to have absolute directory names.
1334 case $ac_val in
1335 [\\/$]* | ?:[\\/]* ) continue;;
1336 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1337 esac
1338 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1339 done
1340
1341 # There might be people who depend on the old broken behavior: `$host'
1342 # used to hold the argument of --host etc.
1343 # FIXME: To remove some day.
1344 build=$build_alias
1345 host=$host_alias
1346 target=$target_alias
1347
1348 # FIXME: To remove some day.
1349 if test "x$host_alias" != x; then
1350 if test "x$build_alias" = x; then
1351 cross_compiling=maybe
1352 elif test "x$build_alias" != "x$host_alias"; then
1353 cross_compiling=yes
1354 fi
1355 fi
1356
1357 ac_tool_prefix=
1358 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1359
1360 test "$silent" = yes && exec 6>/dev/null
1361
1362
1363 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1364 ac_ls_di=`ls -di .` &&
1365 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1366 as_fn_error $? "working directory cannot be determined"
1367 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1368 as_fn_error $? "pwd does not report name of working directory"
1369
1370
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373 ac_srcdir_defaulted=yes
1374 # Try the directory containing this script, then the parent directory.
1375 ac_confdir=`$as_dirname -- "$as_myself" ||
1376 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377 X"$as_myself" : 'X\(//\)[^/]' \| \
1378 X"$as_myself" : 'X\(//\)$' \| \
1379 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1380 $as_echo X"$as_myself" |
1381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382 s//\1/
1383 q
1384 }
1385 /^X\(\/\/\)[^/].*/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\/\)$/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\).*/{
1394 s//\1/
1395 q
1396 }
1397 s/.*/./; q'`
1398 srcdir=$ac_confdir
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 srcdir=..
1401 fi
1402 else
1403 ac_srcdir_defaulted=no
1404 fi
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1408 fi
1409 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410 ac_abs_confdir=`(
1411 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1412 pwd)`
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 srcdir=.
1416 fi
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1420 case $srcdir in
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 esac
1423 for ac_var in $ac_precious_vars; do
1424 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_env_${ac_var}_value=\$${ac_var}
1426 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428 done
1429
1430 #
1431 # Report the --help message.
1432 #
1433 if test "$ac_init_help" = "long"; then
1434 # Omit some internal or obsolete options to make the list less imposing.
1435 # This message is too long to be a string in the A/UX 3.1 sh.
1436 cat <<_ACEOF
1437 \`configure' configures courier-authlib 0.66.4 to adapt to many kinds of systems.
1438
1439 Usage: $0 [OPTION]... [VAR=VALUE]...
1440
1441 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442 VAR=VALUE. See below for descriptions of some of the useful variables.
1443
1444 Defaults for the options are specified in brackets.
1445
1446 Configuration:
1447 -h, --help display this help and exit
1448 --help=short display options specific to this package
1449 --help=recursive display the short help of all the included packages
1450 -V, --version display version information and exit
1451 -q, --quiet, --silent do not print \`checking ...' messages
1452 --cache-file=FILE cache test results in FILE [disabled]
1453 -C, --config-cache alias for \`--cache-file=config.cache'
1454 -n, --no-create do not create output files
1455 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1456
1457 Installation directories:
1458 --prefix=PREFIX install architecture-independent files in PREFIX
1459 [$ac_default_prefix]
1460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 [PREFIX]
1462
1463 By default, \`make install' will install all the files in
1464 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1465 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466 for instance \`--prefix=\$HOME'.
1467
1468 For better control, use the options below.
1469
1470 Fine tuning of the installation directories:
1471 --bindir=DIR user executables [EPREFIX/bin]
1472 --sbindir=DIR system admin executables [EPREFIX/sbin]
1473 --libexecdir=DIR program executables [EPREFIX/libexec]
1474 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1475 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1476 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root [DATAROOTDIR/doc/courier-authlib]
1486 --htmldir=DIR html documentation [DOCDIR]
1487 --dvidir=DIR dvi documentation [DOCDIR]
1488 --pdfdir=DIR pdf documentation [DOCDIR]
1489 --psdir=DIR ps documentation [DOCDIR]
1490 _ACEOF
1491
1492 cat <<\_ACEOF
1493
1494 Program names:
1495 --program-prefix=PREFIX prepend PREFIX to installed program names
1496 --program-suffix=SUFFIX append SUFFIX to installed program names
1497 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1498
1499 System types:
1500 --build=BUILD configure for building on BUILD [guessed]
1501 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1502 _ACEOF
1503 fi
1504
1505 if test -n "$ac_init_help"; then
1506 case $ac_init_help in
1507 short | recursive ) echo "Configuration of courier-authlib 0.66.4:";;
1508 esac
1509 cat <<\_ACEOF
1510
1511 Optional Features:
1512 --disable-option-checking ignore unrecognized --enable/--with options
1513 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1514 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1515 --enable-silent-rules less verbose build output (undo: "make V=1")
1516 --disable-silent-rules verbose build output (undo: "make V=0")
1517 --enable-dependency-tracking
1518 do not reject slow dependency extractors
1519 --disable-dependency-tracking
1520 speeds up one-time build
1521 --enable-shared[=PKGS] build shared libraries [default=yes]
1522 --enable-static[=PKGS] build static libraries [default=yes]
1523 --enable-fast-install[=PKGS]
1524 optimize for fast installation [default=yes]
1525 --disable-libtool-lock avoid locking (might break parallel builds)
1526 --enable-ltdl-install install libltdl
1527
1528 Optional Packages:
1529 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1530 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1531 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1532 both]
1533 --with-aix-soname=aix|svr4|both
1534 shared library versioning (aka "SONAME") variant to
1535 provide on AIX, [default=aix].
1536 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1537 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1538 compiler's sysroot if not specified).
1539 --with-included-ltdl use the GNU ltdl sources included here
1540 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1541 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1542 --with-pkgconfdir=d Install config files in directory
1543 --with-db=gdbm Use the GDBM library.
1544 --with-db=db Use the libdb.a library.
1545 --without-authuserdb Do not include the authuserdb module
1546
1547
1548 --without-authpam Do not include the authpam module
1549 --with-authpam-libraries="libs" Link 'libs' with authpam, this may be
1550 required for FreeBSD 3.3
1551 --without-authldap Do not include the authldap module
1552 --with-authldaprc=filename Expect to find authldaprc here
1553 --without-authpwd Do not include the authpwd module
1554 --without-authshadow Do not include the authshadow module
1555 --with-authpgsqlrc=filename Expect to find authpgsql here
1556 --without-authpgsql Do not include the authpgsql module
1557 --with-pgsql-libs=DIR Look for pgsql libs in this dir
1558 --with-pgsql-includes=DIR Look for pgsql includes in this dir
1559 --with-authmysqlrc=filename Expect to find authmysql here
1560 --without-authmysql Do not include the authmysql module
1561 --with-mysql-libs=DIR Look for mysql libs in this dir
1562 --with-mysql-includes=DIR Look for mysql includes in this dir
1563 --with-authsqliterc=filename Expect to find authmysql here
1564 --without-authsqlite Do not include the authsqlite module
1565 --with-sqlite-libs=DIR Look for sqlite libs in this dir
1566 --with-sqlite-includes=DIR Look for sqlite includes in this dir
1567 --without-authcustom Do not include the authcustom module
1568 --with-pipeprog=filename Expect to find the pipe-prog here
1569 --without-authpipe Do not include the authpipe module
1570 --with-authdaemonrc=filename Expect to find authdaemonrc here
1571 --with-authdaemonvar=directory Directory where authdaemon.pid and
1572 the listening socket is created
1573 --with-mailuser=user Specify mail user name (defaults to
1574 courier, daemon, admin, bin, or root)
1575 --with-mailgroup=group Specify mail group name (defaults to courier,
1576 daemon, sys, adm, or root)
1577 --without-stdheaderdir Header files will be installed into a directory
1578 not in the compiler's default search path.
1579
1580 Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 LIBS libraries to pass to the linker, e.g. -l<library>
1586 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1588 CPP C preprocessor
1589 LT_SYS_LIBRARY_PATH
1590 User-defined run-time library search path.
1591
1592 Use these variables to override the choices made by `configure' or to help
1593 it to find libraries and programs with nonstandard names/locations.
1594
1595 Report bugs to <courier-users@lists.sourceforge.net>.
1596 _ACEOF
1597 ac_status=$?
1598 fi
1599
1600 if test "$ac_init_help" = "recursive"; then
1601 # If there are subdirs, report their specific --help.
1602 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603 test -d "$ac_dir" ||
1604 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605 continue
1606 ac_builddir=.
1607
1608 case "$ac_dir" in
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 *)
1611 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 esac ;;
1618 esac
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1623
1624 case $srcdir in
1625 .) # We are building in place.
1626 ac_srcdir=.
1627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
1630 ac_srcdir=$srcdir$ac_dir_suffix;
1631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1633 *) # Relative name.
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 esac
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure" --help=recursive
1648 else
1649 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 fi || ac_status=$?
1651 cd "$ac_pwd" || { ac_status=$?; break; }
1652 done
1653 fi
1654
1655 test -n "$ac_init_help" && exit $ac_status
1656 if $ac_init_version; then
1657 cat <<\_ACEOF
1658 courier-authlib configure 0.66.4
1659 generated by GNU Autoconf 2.69
1660
1661 Copyright (C) 2012 Free Software Foundation, Inc.
1662 This configure script is free software; the Free Software Foundation
1663 gives unlimited permission to copy, distribute and modify it.
1664 _ACEOF
1665 exit
1666 fi
1667
1668 ## ------------------------ ##
1669 ## Autoconf initialization. ##
1670 ## ------------------------ ##
1671
1672 # ac_fn_c_try_compile LINENO
1673 # --------------------------
1674 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1675 ac_fn_c_try_compile ()
1676 {
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 rm -f conftest.$ac_objext
1679 if { { ac_try="$ac_compile"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_compile") 2>conftest.err
1687 ac_status=$?
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1692 fi
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && {
1695 test -z "$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 } && test -s conftest.$ac_objext; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1
1704 fi
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_compile
1709
1710 # ac_fn_c_try_cpp LINENO
1711 # ----------------------
1712 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_cpp ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_cpp conftest.$ac_ext"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } > conftest.i && {
1732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=1
1741 fi
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_cpp
1746
1747 # ac_fn_c_try_link LINENO
1748 # -----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_c_try_link ()
1751 {
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext conftest$ac_exeext
1754 if { { ac_try="$ac_link"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_link") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1767 fi
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest$ac_exeext && {
1773 test "$cross_compiling" = yes ||
1774 test -x conftest$ac_exeext
1775 }; then :
1776 ac_retval=0
1777 else
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781 ac_retval=1
1782 fi
1783 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1784 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1785 # interfere with the next link command; also delete a directory that is
1786 # left behind by Apple's compiler. We do this before executing the actions.
1787 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789 as_fn_set_status $ac_retval
1790
1791 } # ac_fn_c_try_link
1792
1793 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1794 # -------------------------------------------------------
1795 # Tests whether HEADER exists and can be compiled using the include files in
1796 # INCLUDES, setting the cache variable VAR accordingly.
1797 ac_fn_c_check_header_compile ()
1798 {
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803 $as_echo_n "(cached) " >&6
1804 else
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 $4
1808 #include <$2>
1809 _ACEOF
1810 if ac_fn_c_try_compile "$LINENO"; then :
1811 eval "$3=yes"
1812 else
1813 eval "$3=no"
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 fi
1817 eval ac_res=\$$3
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822 } # ac_fn_c_check_header_compile
1823
1824 # ac_fn_c_try_run LINENO
1825 # ----------------------
1826 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1827 # that executables *can* be run.
1828 ac_fn_c_try_run ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if { { ac_try="$ac_link"
1832 case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_link") 2>&5
1839 ac_status=$?
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1842 { { case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_try") 2>&5
1849 ac_status=$?
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; }; }; then :
1852 ac_retval=0
1853 else
1854 $as_echo "$as_me: program exited with status $ac_status" >&5
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1857
1858 ac_retval=$ac_status
1859 fi
1860 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 as_fn_set_status $ac_retval
1863
1864 } # ac_fn_c_try_run
1865
1866 # ac_fn_c_check_func LINENO FUNC VAR
1867 # ----------------------------------
1868 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1869 ac_fn_c_check_func ()
1870 {
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval \${$3+:} false; then :
1875 $as_echo_n "(cached) " >&6
1876 else
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1879 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1881 #define $2 innocuous_$2
1882
1883 /* System header to define __stub macros and hopefully few prototypes,
1884 which can conflict with char $2 (); below.
1885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1886 <limits.h> exists even on freestanding compilers. */
1887
1888 #ifdef __STDC__
1889 # include <limits.h>
1890 #else
1891 # include <assert.h>
1892 #endif
1893
1894 #undef $2
1895
1896 /* Override any GCC internal prototype to avoid an error.
1897 Use char because int might match the return type of a GCC
1898 builtin and then its argument prototype would still apply. */
1899 #ifdef __cplusplus
1900 extern "C"
1901 #endif
1902 char $2 ();
1903 /* The GNU C library defines this for functions which it implements
1904 to always fail with ENOSYS. Some functions are actually named
1905 something starting with __ and the normal name is an alias. */
1906 #if defined __stub_$2 || defined __stub___$2
1907 choke me
1908 #endif
1909
1910 int
1911 main ()
1912 {
1913 return $2 ();
1914 ;
1915 return 0;
1916 }
1917 _ACEOF
1918 if ac_fn_c_try_link "$LINENO"; then :
1919 eval "$3=yes"
1920 else
1921 eval "$3=no"
1922 fi
1923 rm -f core conftest.err conftest.$ac_objext \
1924 conftest$ac_exeext conftest.$ac_ext
1925 fi
1926 eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931 } # ac_fn_c_check_func
1932
1933 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1934 # ---------------------------------------------
1935 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1936 # accordingly.
1937 ac_fn_c_check_decl ()
1938 {
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 as_decl_name=`echo $2|sed 's/ *(.*//'`
1941 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1943 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1944 if eval \${$3+:} false; then :
1945 $as_echo_n "(cached) " >&6
1946 else
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1949 $4
1950 int
1951 main ()
1952 {
1953 #ifndef $as_decl_name
1954 #ifdef __cplusplus
1955 (void) $as_decl_use;
1956 #else
1957 (void) $as_decl_name;
1958 #endif
1959 #endif
1960
1961 ;
1962 return 0;
1963 }
1964 _ACEOF
1965 if ac_fn_c_try_compile "$LINENO"; then :
1966 eval "$3=yes"
1967 else
1968 eval "$3=no"
1969 fi
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 fi
1972 eval ac_res=\$$3
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976
1977 } # ac_fn_c_check_decl
1978
1979 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1980 # -------------------------------------------
1981 # Tests whether TYPE exists after having included INCLUDES, setting cache
1982 # variable VAR accordingly.
1983 ac_fn_c_check_type ()
1984 {
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if eval \${$3+:} false; then :
1989 $as_echo_n "(cached) " >&6
1990 else
1991 eval "$3=no"
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1994 $4
1995 int
1996 main ()
1997 {
1998 if (sizeof ($2))
1999 return 0;
2000 ;
2001 return 0;
2002 }
2003 _ACEOF
2004 if ac_fn_c_try_compile "$LINENO"; then :
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2007 $4
2008 int
2009 main ()
2010 {
2011 if (sizeof (($2)))
2012 return 0;
2013 ;
2014 return 0;
2015 }
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018
2019 else
2020 eval "$3=yes"
2021 fi
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 fi
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 fi
2026 eval ac_res=\$$3
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030
2031 } # ac_fn_c_check_type
2032
2033 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2034 # -------------------------------------------------------
2035 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2036 # the include files in INCLUDES and setting the cache variable VAR
2037 # accordingly.
2038 ac_fn_c_check_header_mongrel ()
2039 {
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 if eval \${$3+:} false; then :
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if eval \${$3+:} false; then :
2045 $as_echo_n "(cached) " >&6
2046 fi
2047 eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 else
2051 # Is the header compilable?
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2053 $as_echo_n "checking $2 usability... " >&6; }
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2056 $4
2057 #include <$2>
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060 ac_header_compiler=yes
2061 else
2062 ac_header_compiler=no
2063 fi
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2066 $as_echo "$ac_header_compiler" >&6; }
2067
2068 # Is the header present?
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2070 $as_echo_n "checking $2 presence... " >&6; }
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2073 #include <$2>
2074 _ACEOF
2075 if ac_fn_c_try_cpp "$LINENO"; then :
2076 ac_header_preproc=yes
2077 else
2078 ac_header_preproc=no
2079 fi
2080 rm -f conftest.err conftest.i conftest.$ac_ext
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2082 $as_echo "$ac_header_preproc" >&6; }
2083
2084 # So? What about this header?
2085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2086 yes:no: )
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2088 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2090 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2091 ;;
2092 no:yes:* )
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2094 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2096 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2098 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2100 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2102 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2103 ( $as_echo "## -------------------------------------------------- ##
2104 ## Report this to courier-users@lists.sourceforge.net ##
2105 ## -------------------------------------------------- ##"
2106 ) | sed "s/^/$as_me: WARNING: /" >&2
2107 ;;
2108 esac
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2110 $as_echo_n "checking for $2... " >&6; }
2111 if eval \${$3+:} false; then :
2112 $as_echo_n "(cached) " >&6
2113 else
2114 eval "$3=\$ac_header_compiler"
2115 fi
2116 eval ac_res=\$$3
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 fi
2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121
2122 } # ac_fn_c_check_header_mongrel
2123 cat >config.log <<_ACEOF
2124 This file contains any messages produced by compilers while
2125 running configure, to aid debugging if configure makes a mistake.
2126
2127 It was created by courier-authlib $as_me 0.66.4, which was
2128 generated by GNU Autoconf 2.69. Invocation command line was
2129
2130 $ $0 $@
2131
2132 _ACEOF
2133 exec 5>>config.log
2134 {
2135 cat <<_ASUNAME
2136 ## --------- ##
2137 ## Platform. ##
2138 ## --------- ##
2139
2140 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2141 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2142 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2143 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2144 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2145
2146 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2147 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2148
2149 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2150 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2151 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2152 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2153 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2154 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2155 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2156
2157 _ASUNAME
2158
2159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 for as_dir in $PATH
2161 do
2162 IFS=$as_save_IFS
2163 test -z "$as_dir" && as_dir=.
2164 $as_echo "PATH: $as_dir"
2165 done
2166 IFS=$as_save_IFS
2167
2168 } >&5
2169
2170 cat >&5 <<_ACEOF
2171
2172
2173 ## ----------- ##
2174 ## Core tests. ##
2175 ## ----------- ##
2176
2177 _ACEOF
2178
2179
2180 # Keep a trace of the command line.
2181 # Strip out --no-create and --no-recursion so they do not pile up.
2182 # Strip out --silent because we don't want to record it for future runs.
2183 # Also quote any args containing shell meta-characters.
2184 # Make two passes to allow for proper duplicate-argument suppression.
2185 ac_configure_args=
2186 ac_configure_args0=
2187 ac_configure_args1=
2188 ac_must_keep_next=false
2189 for ac_pass in 1 2
2190 do
2191 for ac_arg
2192 do
2193 case $ac_arg in
2194 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2196 | -silent | --silent | --silen | --sile | --sil)
2197 continue ;;
2198 *\'*)
2199 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2200 esac
2201 case $ac_pass in
2202 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2203 2)
2204 as_fn_append ac_configure_args1 " '$ac_arg'"
2205 if test $ac_must_keep_next = true; then
2206 ac_must_keep_next=false # Got value, back to normal.
2207 else
2208 case $ac_arg in
2209 *=* | --config-cache | -C | -disable-* | --disable-* \
2210 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2211 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2212 | -with-* | --with-* | -without-* | --without-* | --x)
2213 case "$ac_configure_args0 " in
2214 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2215 esac
2216 ;;
2217 -* ) ac_must_keep_next=true ;;
2218 esac
2219 fi
2220 as_fn_append ac_configure_args " '$ac_arg'"
2221 ;;
2222 esac
2223 done
2224 done
2225 { ac_configure_args0=; unset ac_configure_args0;}
2226 { ac_configure_args1=; unset ac_configure_args1;}
2227
2228 # When interrupted or exit'd, cleanup temporary files, and complete
2229 # config.log. We remove comments because anyway the quotes in there
2230 # would cause problems or look ugly.
2231 # WARNING: Use '\'' to represent an apostrophe within the trap.
2232 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2233 trap 'exit_status=$?
2234 # Save into config.log some information that might help in debugging.
2235 {
2236 echo
2237
2238 $as_echo "## ---------------- ##
2239 ## Cache variables. ##
2240 ## ---------------- ##"
2241 echo
2242 # The following way of writing the cache mishandles newlines in values,
2243 (
2244 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2245 eval ac_val=\$$ac_var
2246 case $ac_val in #(
2247 *${as_nl}*)
2248 case $ac_var in #(
2249 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2250 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2251 esac
2252 case $ac_var in #(
2253 _ | IFS | as_nl) ;; #(
2254 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2255 *) { eval $ac_var=; unset $ac_var;} ;;
2256 esac ;;
2257 esac
2258 done
2259 (set) 2>&1 |
2260 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2261 *${as_nl}ac_space=\ *)
2262 sed -n \
2263 "s/'\''/'\''\\\\'\'''\''/g;
2264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2265 ;; #(
2266 *)
2267 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2268 ;;
2269 esac |
2270 sort
2271 )
2272 echo
2273
2274 $as_echo "## ----------------- ##
2275 ## Output variables. ##
2276 ## ----------------- ##"
2277 echo
2278 for ac_var in $ac_subst_vars
2279 do
2280 eval ac_val=\$$ac_var
2281 case $ac_val in
2282 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2283 esac
2284 $as_echo "$ac_var='\''$ac_val'\''"
2285 done | sort
2286 echo
2287
2288 if test -n "$ac_subst_files"; then
2289 $as_echo "## ------------------- ##
2290 ## File substitutions. ##
2291 ## ------------------- ##"
2292 echo
2293 for ac_var in $ac_subst_files
2294 do
2295 eval ac_val=\$$ac_var
2296 case $ac_val in
2297 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2298 esac
2299 $as_echo "$ac_var='\''$ac_val'\''"
2300 done | sort
2301 echo
2302 fi
2303
2304 if test -s confdefs.h; then
2305 $as_echo "## ----------- ##
2306 ## confdefs.h. ##
2307 ## ----------- ##"
2308 echo
2309 cat confdefs.h
2310 echo
2311 fi
2312 test "$ac_signal" != 0 &&
2313 $as_echo "$as_me: caught signal $ac_signal"
2314 $as_echo "$as_me: exit $exit_status"
2315 } >&5
2316 rm -f core *.core core.conftest.* &&
2317 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2318 exit $exit_status
2319 ' 0
2320 for ac_signal in 1 2 13 15; do
2321 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2322 done
2323 ac_signal=0
2324
2325 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2326 rm -f -r conftest* confdefs.h
2327
2328 $as_echo "/* confdefs.h */" > confdefs.h
2329
2330 # Predefined preprocessor variables.
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_NAME "$PACKAGE_NAME"
2334 _ACEOF
2335
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2338 _ACEOF
2339
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2342 _ACEOF
2343
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_STRING "$PACKAGE_STRING"
2346 _ACEOF
2347
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2350 _ACEOF
2351
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_URL "$PACKAGE_URL"
2354 _ACEOF
2355
2356
2357 # Let the site file select an alternate cache file if it wants to.
2358 # Prefer an explicitly selected file to automatically selected ones.
2359 ac_site_file1=NONE
2360 ac_site_file2=NONE
2361 if test -n "$CONFIG_SITE"; then
2362 # We do not want a PATH search for config.site.
2363 case $CONFIG_SITE in #((
2364 -*) ac_site_file1=./$CONFIG_SITE;;
2365 */*) ac_site_file1=$CONFIG_SITE;;
2366 *) ac_site_file1=./$CONFIG_SITE;;
2367 esac
2368 elif test "x$prefix" != xNONE; then
2369 ac_site_file1=$prefix/share/config.site
2370 ac_site_file2=$prefix/etc/config.site
2371 else
2372 ac_site_file1=$ac_default_prefix/share/config.site
2373 ac_site_file2=$ac_default_prefix/etc/config.site
2374 fi
2375 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2376 do
2377 test "x$ac_site_file" = xNONE && continue
2378 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2380 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2381 sed 's/^/| /' "$ac_site_file" >&5
2382 . "$ac_site_file" \
2383 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2385 as_fn_error $? "failed to load site script $ac_site_file
2386 See \`config.log' for more details" "$LINENO" 5; }
2387 fi
2388 done
2389
2390 if test -r "$cache_file"; then
2391 # Some versions of bash will fail to source /dev/null (special files
2392 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2393 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2395 $as_echo "$as_me: loading cache $cache_file" >&6;}
2396 case $cache_file in
2397 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2398 *) . "./$cache_file";;
2399 esac
2400 fi
2401 else
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2403 $as_echo "$as_me: creating cache $cache_file" >&6;}
2404 >$cache_file
2405 fi
2406
2407 # Check that the precious variables saved in the cache have kept the same
2408 # value.
2409 ac_cache_corrupted=false
2410 for ac_var in $ac_precious_vars; do
2411 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2412 eval ac_new_set=\$ac_env_${ac_var}_set
2413 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2414 eval ac_new_val=\$ac_env_${ac_var}_value
2415 case $ac_old_set,$ac_new_set in
2416 set,)
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2418 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2419 ac_cache_corrupted=: ;;
2420 ,set)
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2422 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2423 ac_cache_corrupted=: ;;
2424 ,);;
2425 *)
2426 if test "x$ac_old_val" != "x$ac_new_val"; then
2427 # differences in whitespace do not lead to failure.
2428 ac_old_val_w=`echo x $ac_old_val`
2429 ac_new_val_w=`echo x $ac_new_val`
2430 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2432 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2433 ac_cache_corrupted=:
2434 else
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2436 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2437 eval $ac_var=\$ac_old_val
2438 fi
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2440 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2442 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2443 fi;;
2444 esac
2445 # Pass precious variables to config.status.
2446 if test "$ac_new_set" = set; then
2447 case $ac_new_val in
2448 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2449 *) ac_arg=$ac_var=$ac_new_val ;;
2450 esac
2451 case " $ac_configure_args " in
2452 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2453 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2454 esac
2455 fi
2456 done
2457 if $ac_cache_corrupted; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2461 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2462 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2463 fi
2464 ## -------------------- ##
2465 ## Main body of script. ##
2466 ## -------------------- ##
2467
2468 ac_ext=c
2469 ac_cpp='$CPP $CPPFLAGS'
2470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2473
2474
2475
2476
2477
2478 am__api_version='1.15'
2479
2480 ac_aux_dir=
2481 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2482 if test -f "$ac_dir/install-sh"; then
2483 ac_aux_dir=$ac_dir
2484 ac_install_sh="$ac_aux_dir/install-sh -c"
2485 break
2486 elif test -f "$ac_dir/install.sh"; then
2487 ac_aux_dir=$ac_dir
2488 ac_install_sh="$ac_aux_dir/install.sh -c"
2489 break
2490 elif test -f "$ac_dir/shtool"; then
2491 ac_aux_dir=$ac_dir
2492 ac_install_sh="$ac_aux_dir/shtool install -c"
2493 break
2494 fi
2495 done
2496 if test -z "$ac_aux_dir"; then
2497 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2498 fi
2499
2500 # These three variables are undocumented and unsupported,
2501 # and are intended to be withdrawn in a future Autoconf release.
2502 # They can cause serious problems if a builder's source tree is in a directory
2503 # whose full name contains unusual characters.
2504 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2505 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2506 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2507
2508
2509 # Find a good install program. We prefer a C program (faster),
2510 # so one script is as good as another. But avoid the broken or
2511 # incompatible versions:
2512 # SysV /etc/install, /usr/sbin/install
2513 # SunOS /usr/etc/install
2514 # IRIX /sbin/install
2515 # AIX /bin/install
2516 # AmigaOS /C/install, which installs bootblocks on floppy discs
2517 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2518 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2519 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2520 # OS/2's system install, which has a completely different semantic
2521 # ./install, which can be erroneously created by make from ./install.sh.
2522 # Reject install programs that cannot install multiple files.
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2524 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2525 if test -z "$INSTALL"; then
2526 if ${ac_cv_path_install+:} false; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2531 do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 # Account for people who put trailing slashes in PATH elements.
2535 case $as_dir/ in #((
2536 ./ | .// | /[cC]/* | \
2537 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2538 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2539 /usr/ucb/* ) ;;
2540 *)
2541 # OSF1 and SCO ODT 3.0 have their own names for install.
2542 # Don't use installbsd from OSF since it installs stuff as root
2543 # by default.
2544 for ac_prog in ginstall scoinst install; do
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2547 if test $ac_prog = install &&
2548 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2549 # AIX install. It has an incompatible calling convention.
2550 :
2551 elif test $ac_prog = install &&
2552 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2553 # program-specific install script used by HP pwplus--don't use.
2554 :
2555 else
2556 rm -rf conftest.one conftest.two conftest.dir
2557 echo one > conftest.one
2558 echo two > conftest.two
2559 mkdir conftest.dir
2560 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2561 test -s conftest.one && test -s conftest.two &&
2562 test -s conftest.dir/conftest.one &&
2563 test -s conftest.dir/conftest.two
2564 then
2565 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2566 break 3
2567 fi
2568 fi
2569 fi
2570 done
2571 done
2572 ;;
2573 esac
2574
2575 done
2576 IFS=$as_save_IFS
2577
2578 rm -rf conftest.one conftest.two conftest.dir
2579
2580 fi
2581 if test "${ac_cv_path_install+set}" = set; then
2582 INSTALL=$ac_cv_path_install
2583 else
2584 # As a last resort, use the slow shell script. Don't cache a
2585 # value for INSTALL within a source directory, because that will
2586 # break other packages using the cache if that directory is
2587 # removed, or if the value is a relative name.
2588 INSTALL=$ac_install_sh
2589 fi
2590 fi
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2592 $as_echo "$INSTALL" >&6; }
2593
2594 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2595 # It thinks the first close brace ends the variable substitution.
2596 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2597
2598 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2599
2600 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2601
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2603 $as_echo_n "checking whether build environment is sane... " >&6; }
2604 # Reject unsafe characters in $srcdir or the absolute working directory
2605 # name. Accept space and tab only in the latter.
2606 am_lf='
2607 '
2608 case `pwd` in
2609 *[\\\"\#\$\&\'\`$am_lf]*)
2610 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2611 esac
2612 case $srcdir in
2613 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2614 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2615 esac
2616
2617 # Do 'set' in a subshell so we don't clobber the current shell's
2618 # arguments. Must try -L first in case configure is actually a
2619 # symlink; some systems play weird games with the mod time of symlinks
2620 # (eg FreeBSD returns the mod time of the symlink's containing
2621 # directory).
2622 if (
2623 am_has_slept=no
2624 for am_try in 1 2; do
2625 echo "timestamp, slept: $am_has_slept" > conftest.file
2626 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2627 if test "$*" = "X"; then
2628 # -L didn't work.
2629 set X `ls -t "$srcdir/configure" conftest.file`
2630 fi
2631 if test "$*" != "X $srcdir/configure conftest.file" \
2632 && test "$*" != "X conftest.file $srcdir/configure"; then
2633
2634 # If neither matched, then we have a broken ls. This can happen
2635 # if, for instance, CONFIG_SHELL is bash and it inherits a
2636 # broken ls alias from the environment. This has actually
2637 # happened. Such a system could not be considered "sane".
2638 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2639 alias in your environment" "$LINENO" 5
2640 fi
2641 if test "$2" = conftest.file || test $am_try -eq 2; then
2642 break
2643 fi
2644 # Just in case.
2645 sleep 1
2646 am_has_slept=yes
2647 done
2648 test "$2" = conftest.file
2649 )
2650 then
2651 # Ok.
2652 :
2653 else
2654 as_fn_error $? "newly created file is older than distributed files!
2655 Check your system clock" "$LINENO" 5
2656 fi
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2658 $as_echo "yes" >&6; }
2659 # If we didn't sleep, we still need to ensure time stamps of config.status and
2660 # generated files are strictly newer.
2661 am_sleep_pid=
2662 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2663 ( sleep 1 ) &
2664 am_sleep_pid=$!
2665 fi
2666
2667 rm -f conftest.file
2668
2669 test "$program_prefix" != NONE &&
2670 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2671 # Use a double $ so make ignores it.
2672 test "$program_suffix" != NONE &&
2673 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2674 # Double any \ or $.
2675 # By default was `s,x,x', remove it if useless.
2676 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2677 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2678
2679 # Expand $ac_aux_dir to an absolute path.
2680 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2681
2682 if test x"${MISSING+set}" != xset; then
2683 case $am_aux_dir in
2684 *\ * | *\ *)
2685 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2686 *)
2687 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2688 esac
2689 fi
2690 # Use eval to expand $SHELL
2691 if eval "$MISSING --is-lightweight"; then
2692 am_missing_run="$MISSING "
2693 else
2694 am_missing_run=
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2696 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2697 fi
2698
2699 if test x"${install_sh+set}" != xset; then
2700 case $am_aux_dir in
2701 *\ * | *\ *)
2702 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2703 *)
2704 install_sh="\${SHELL} $am_aux_dir/install-sh"
2705 esac
2706 fi
2707
2708 # Installed binaries are usually stripped using 'strip' when the user
2709 # run "make install-strip". However 'strip' might not be the right
2710 # tool to use in cross-compilation environments, therefore Automake
2711 # will honor the 'STRIP' environment variable to overrule this program.
2712 if test "$cross_compiling" != no; then
2713 if test -n "$ac_tool_prefix"; then
2714 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2715 set dummy ${ac_tool_prefix}strip; ac_word=$2
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if ${ac_cv_prog_STRIP+:} false; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 if test -n "$STRIP"; then
2722 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2723 else
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 for as_dir in $PATH
2726 do
2727 IFS=$as_save_IFS
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2731 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733 break 2
2734 fi
2735 done
2736 done
2737 IFS=$as_save_IFS
2738
2739 fi
2740 fi
2741 STRIP=$ac_cv_prog_STRIP
2742 if test -n "$STRIP"; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2744 $as_echo "$STRIP" >&6; }
2745 else
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 $as_echo "no" >&6; }
2748 fi
2749
2750
2751 fi
2752 if test -z "$ac_cv_prog_STRIP"; then
2753 ac_ct_STRIP=$STRIP
2754 # Extract the first word of "strip", so it can be a program name with args.
2755 set dummy strip; ac_word=$2
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 if test -n "$ac_ct_STRIP"; then
2762 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2763 else
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2766 do
2767 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2771 ac_cv_prog_ac_ct_STRIP="strip"
2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 break 2
2774 fi
2775 done
2776 done
2777 IFS=$as_save_IFS
2778
2779 fi
2780 fi
2781 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2782 if test -n "$ac_ct_STRIP"; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2784 $as_echo "$ac_ct_STRIP" >&6; }
2785 else
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787 $as_echo "no" >&6; }
2788 fi
2789
2790 if test "x$ac_ct_STRIP" = x; then
2791 STRIP=":"
2792 else
2793 case $cross_compiling:$ac_tool_warned in
2794 yes:)
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2797 ac_tool_warned=yes ;;
2798 esac
2799 STRIP=$ac_ct_STRIP
2800 fi
2801 else
2802 STRIP="$ac_cv_prog_STRIP"
2803 fi
2804
2805 fi
2806 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2807
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2809 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2810 if test -z "$MKDIR_P"; then
2811 if ${ac_cv_path_mkdir+:} false; then :
2812 $as_echo_n "(cached) " >&6
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2816 do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_prog in mkdir gmkdir; do
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2822 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2823 'mkdir (GNU coreutils) '* | \
2824 'mkdir (coreutils) '* | \
2825 'mkdir (fileutils) '4.1*)
2826 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2827 break 3;;
2828 esac
2829 done
2830 done
2831 done
2832 IFS=$as_save_IFS
2833
2834 fi
2835
2836 test -d ./--version && rmdir ./--version
2837 if test "${ac_cv_path_mkdir+set}" = set; then
2838 MKDIR_P="$ac_cv_path_mkdir -p"
2839 else
2840 # As a last resort, use the slow shell script. Don't cache a
2841 # value for MKDIR_P within a source directory, because that will
2842 # break other packages using the cache if that directory is
2843 # removed, or if the value is a relative name.
2844 MKDIR_P="$ac_install_sh -d"
2845 fi
2846 fi
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2848 $as_echo "$MKDIR_P" >&6; }
2849
2850 for ac_prog in gawk mawk nawk awk
2851 do
2852 # Extract the first word of "$ac_prog", so it can be a program name with args.
2853 set dummy $ac_prog; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if ${ac_cv_prog_AWK+:} false; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 if test -n "$AWK"; then
2860 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2864 do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 ac_cv_prog_AWK="$ac_prog"
2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2872 fi
2873 done
2874 done
2875 IFS=$as_save_IFS
2876
2877 fi
2878 fi
2879 AWK=$ac_cv_prog_AWK
2880 if test -n "$AWK"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2882 $as_echo "$AWK" >&6; }
2883 else
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886 fi
2887
2888
2889 test -n "$AWK" && break
2890 done
2891
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2893 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2894 set x ${MAKE-make}
2895 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2896 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 cat >conftest.make <<\_ACEOF
2900 SHELL = /bin/sh
2901 all:
2902 @echo '@@@%%%=$(MAKE)=@@@%%%'
2903 _ACEOF
2904 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2905 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2906 *@@@%%%=?*=@@@%%%*)
2907 eval ac_cv_prog_make_${ac_make}_set=yes;;
2908 *)
2909 eval ac_cv_prog_make_${ac_make}_set=no;;
2910 esac
2911 rm -f conftest.make
2912 fi
2913 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2915 $as_echo "yes" >&6; }
2916 SET_MAKE=
2917 else
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2920 SET_MAKE="MAKE=${MAKE-make}"
2921 fi
2922
2923 rm -rf .tst 2>/dev/null
2924 mkdir .tst 2>/dev/null
2925 if test -d .tst; then
2926 am__leading_dot=.
2927 else
2928 am__leading_dot=_
2929 fi
2930 rmdir .tst 2>/dev/null
2931
2932 # Check whether --enable-silent-rules was given.
2933 if test "${enable_silent_rules+set}" = set; then :
2934 enableval=$enable_silent_rules;
2935 fi
2936
2937 case $enable_silent_rules in # (((
2938 yes) AM_DEFAULT_VERBOSITY=0;;
2939 no) AM_DEFAULT_VERBOSITY=1;;
2940 *) AM_DEFAULT_VERBOSITY=1;;
2941 esac
2942 am_make=${MAKE-make}
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2944 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2945 if ${am_cv_make_support_nested_variables+:} false; then :
2946 $as_echo_n "(cached) " >&6
2947 else
2948 if $as_echo 'TRUE=$(BAR$(V))
2949 BAR0=false
2950 BAR1=true
2951 V=1
2952 am__doit:
2953 @$(TRUE)
2954 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2955 am_cv_make_support_nested_variables=yes
2956 else
2957 am_cv_make_support_nested_variables=no
2958 fi
2959 fi
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2961 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2962 if test $am_cv_make_support_nested_variables = yes; then
2963 AM_V='$(V)'
2964 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2965 else
2966 AM_V=$AM_DEFAULT_VERBOSITY
2967 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2968 fi
2969 AM_BACKSLASH='\'
2970
2971 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2972 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2973 # is not polluted with repeated "-I."
2974 am__isrc=' -I$(srcdir)'
2975 # test to see if srcdir already configured
2976 if test -f $srcdir/config.status; then
2977 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2978 fi
2979 fi
2980
2981 # test whether we have cygpath
2982 if test -z "$CYGPATH_W"; then
2983 if (cygpath --version) >/dev/null 2>/dev/null; then
2984 CYGPATH_W='cygpath -w'
2985 else
2986 CYGPATH_W=echo
2987 fi
2988 fi
2989
2990
2991 # Define the identity of the package.
2992 PACKAGE='courier-authlib'
2993 VERSION='0.66.4'
2994
2995
2996 cat >>confdefs.h <<_ACEOF
2997 #define PACKAGE "$PACKAGE"
2998 _ACEOF
2999
3000
3001 cat >>confdefs.h <<_ACEOF
3002 #define VERSION "$VERSION"
3003 _ACEOF
3004
3005 # Some tools Automake needs.
3006
3007 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3008
3009
3010 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3011
3012
3013 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3014
3015
3016 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3017
3018
3019 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3020
3021 # For better backward compatibility. To be removed once Automake 1.9.x
3022 # dies out for good. For more background, see:
3023 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3024 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3025 mkdir_p='$(MKDIR_P)'
3026
3027 # We need awk for the "check" target (and possibly the TAP driver). The
3028 # system "awk" is bad on some platforms.
3029 # Always define AMTAR for backward compatibility. Yes, it's still used
3030 # in the wild :-( We should find a proper way to deprecate it ...
3031 AMTAR='$${TAR-tar}'
3032
3033
3034 # We'll loop over all known methods to create a tar archive until one works.
3035 _am_tools='gnutar pax cpio none'
3036
3037 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3038
3039
3040
3041
3042
3043
3044 # POSIX will say in a future version that running "rm -f" with no argument
3045 # is OK; and we want to be able to make that assumption in our Makefile
3046 # recipes. So use an aggressive probe to check that the usage we want is
3047 # actually supported "in the wild" to an acceptable degree.
3048 # See automake bug#10828.
3049 # To make any issue more visible, cause the running configure to be aborted
3050 # by default if the 'rm' program in use doesn't match our expectations; the
3051 # user can still override this though.
3052 if rm -f && rm -fr && rm -rf; then : OK; else
3053 cat >&2 <<'END'
3054 Oops!
3055
3056 Your 'rm' program seems unable to run without file operands specified
3057 on the command line, even when the '-f' option is present. This is contrary
3058 to the behaviour of most rm programs out there, and not conforming with
3059 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3060
3061 Please tell bug-automake@gnu.org about your system, including the value
3062 of your $PATH and any error possibly output before this message. This
3063 can help us improve future automake versions.
3064
3065 END
3066 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3067 echo 'Configuration will proceed anyway, since you have set the' >&2
3068 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3069 echo >&2
3070 else
3071 cat >&2 <<'END'
3072 Aborting the configuration process, to ensure you take notice of the issue.
3073
3074 You can download and install GNU coreutils to get an 'rm' implementation
3075 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3076
3077 If you want to complete the configuration process using your problematic
3078 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3079 to "yes", and re-run configure.
3080
3081 END
3082 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3083 fi
3084 fi
3085
3086 ac_config_headers="$ac_config_headers courier_auth_config.h"
3087
3088 >confdefs.h # Kill PACKAGE_ macros
3089
3090 LPATH="$PATH:/usr/local/bin"
3091
3092 for ac_prog in gawk mawk nawk awk
3093 do
3094 # Extract the first word of "$ac_prog", so it can be a program name with args.
3095 set dummy $ac_prog; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if ${ac_cv_prog_AWK+:} false; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 if test -n "$AWK"; then
3102 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_AWK="$ac_prog"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3114 fi
3115 done
3116 done
3117 IFS=$as_save_IFS
3118
3119 fi
3120 fi
3121 AWK=$ac_cv_prog_AWK
3122 if test -n "$AWK"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3124 $as_echo "$AWK" >&6; }
3125 else
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3128 fi
3129
3130
3131 test -n "$AWK" && break
3132 done
3133
3134 ac_ext=c
3135 ac_cpp='$CPP $CPPFLAGS'
3136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3139 if test -n "$ac_tool_prefix"; then
3140 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if ${ac_cv_prog_CC+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 if test -n "$CC"; then
3148 ac_cv_prog_CC="$CC" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3160 fi
3161 done
3162 done
3163 IFS=$as_save_IFS
3164
3165 fi
3166 fi
3167 CC=$ac_cv_prog_CC
3168 if test -n "$CC"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170 $as_echo "$CC" >&6; }
3171 else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3174 fi
3175
3176
3177 fi
3178 if test -z "$ac_cv_prog_CC"; then
3179 ac_ct_CC=$CC
3180 # Extract the first word of "gcc", so it can be a program name with args.
3181 set dummy gcc; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 if test -n "$ac_ct_CC"; then
3188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_ac_ct_CC="gcc"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3208 if test -n "$ac_ct_CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3210 $as_echo "$ac_ct_CC" >&6; }
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216 if test "x$ac_ct_CC" = x; then
3217 CC=""
3218 else
3219 case $cross_compiling:$ac_tool_warned in
3220 yes:)
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3224 esac
3225 CC=$ac_ct_CC
3226 fi
3227 else
3228 CC="$ac_cv_prog_CC"
3229 fi
3230
3231 if test -z "$CC"; then
3232 if test -n "$ac_tool_prefix"; then
3233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3234 set dummy ${ac_tool_prefix}cc; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_CC+:} false; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246 IFS=$as_save_IFS
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250 ac_cv_prog_CC="${ac_tool_prefix}cc"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 break 2
3253 fi
3254 done
3255 done
3256 IFS=$as_save_IFS
3257
3258 fi
3259 fi
3260 CC=$ac_cv_prog_CC
3261 if test -n "$CC"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263 $as_echo "$CC" >&6; }
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 fi
3268
3269
3270 fi
3271 fi
3272 if test -z "$CC"; then
3273 # Extract the first word of "cc", so it can be a program name with args.
3274 set dummy cc; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_CC+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279 else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 ac_prog_rejected=no
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3292 ac_prog_rejected=yes
3293 continue
3294 fi
3295 ac_cv_prog_CC="cc"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3298 fi
3299 done
3300 done
3301 IFS=$as_save_IFS
3302
3303 if test $ac_prog_rejected = yes; then
3304 # We found a bogon in the path, so make sure we never use it.
3305 set dummy $ac_cv_prog_CC
3306 shift
3307 if test $# != 0; then
3308 # We chose a different compiler from the bogus one.
3309 # However, it has the same basename, so the bogon will be chosen
3310 # first if we set CC to just the basename; use the full file name.
3311 shift
3312 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3313 fi
3314 fi
3315 fi
3316 fi
3317 CC=$ac_cv_prog_CC
3318 if test -n "$CC"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320 $as_echo "$CC" >&6; }
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 fi
3325
3326
3327 fi
3328 if test -z "$CC"; then
3329 if test -n "$ac_tool_prefix"; then
3330 for ac_prog in cl.exe
3331 do
3332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_prog_CC+:} false; then :
3337 $as_echo_n "(cached) " >&6
3338 else
3339 if test -n "$CC"; then
3340 ac_cv_prog_CC="$CC" # Let the user override the test.
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3344 do
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 break 2
3352 fi
3353 done
3354 done
3355 IFS=$as_save_IFS
3356
3357 fi
3358 fi
3359 CC=$ac_cv_prog_CC
3360 if test -n "$CC"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3362 $as_echo "$CC" >&6; }
3363 else
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366 fi
3367
3368
3369 test -n "$CC" && break
3370 done
3371 fi
3372 if test -z "$CC"; then
3373 ac_ct_CC=$CC
3374 for ac_prog in cl.exe
3375 do
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383 if test -n "$ac_ct_CC"; then
3384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_ac_ct_CC="$ac_prog"
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 break 2
3396 fi
3397 done
3398 done
3399 IFS=$as_save_IFS
3400
3401 fi
3402 fi
3403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3404 if test -n "$ac_ct_CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3406 $as_echo "$ac_ct_CC" >&6; }
3407 else
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3410 fi
3411
3412
3413 test -n "$ac_ct_CC" && break
3414 done
3415
3416 if test "x$ac_ct_CC" = x; then
3417 CC=""
3418 else
3419 case $cross_compiling:$ac_tool_warned in
3420 yes:)
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3423 ac_tool_warned=yes ;;
3424 esac
3425 CC=$ac_ct_CC
3426 fi
3427 fi
3428
3429 fi
3430
3431
3432 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434 as_fn_error $? "no acceptable C compiler found in \$PATH
3435 See \`config.log' for more details" "$LINENO" 5; }
3436
3437 # Provide some information about the compiler.
3438 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3439 set X $ac_compile
3440 ac_compiler=$2
3441 for ac_option in --version -v -V -qversion; do
3442 { { ac_try="$ac_compiler $ac_option >&5"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3450 ac_status=$?
3451 if test -s conftest.err; then
3452 sed '10a\
3453 ... rest of stderr output deleted ...
3454 10q' conftest.err >conftest.er1
3455 cat conftest.er1 >&5
3456 fi
3457 rm -f conftest.er1 conftest.err
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }
3460 done
3461
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3464
3465 int
3466 main ()
3467 {
3468
3469 ;
3470 return 0;
3471 }
3472 _ACEOF
3473 ac_clean_files_save=$ac_clean_files
3474 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3475 # Try to create an executable without -o first, disregard a.out.
3476 # It will help us diagnose broken compilers, and finding out an intuition
3477 # of exeext.
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3479 $as_echo_n "checking whether the C compiler works... " >&6; }
3480 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3481
3482 # The possible output files:
3483 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3484
3485 ac_rmfiles=
3486 for ac_file in $ac_files
3487 do
3488 case $ac_file in
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3490 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3491 esac
3492 done
3493 rm -f $ac_rmfiles
3494
3495 if { { ac_try="$ac_link_default"
3496 case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499 esac
3500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501 $as_echo "$ac_try_echo"; } >&5
3502 (eval "$ac_link_default") 2>&5
3503 ac_status=$?
3504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505 test $ac_status = 0; }; then :
3506 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3507 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3508 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3509 # so that the user can short-circuit this test for compilers unknown to
3510 # Autoconf.
3511 for ac_file in $ac_files ''
3512 do
3513 test -f "$ac_file" || continue
3514 case $ac_file in
3515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3516 ;;
3517 [ab].out )
3518 # We found the default executable, but exeext='' is most
3519 # certainly right.
3520 break;;
3521 *.* )
3522 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3523 then :; else
3524 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3525 fi
3526 # We set ac_cv_exeext here because the later test for it is not
3527 # safe: cross compilers may not add the suffix if given an `-o'
3528 # argument, so we may need to know it at that point already.
3529 # Even if this section looks crufty: it has the advantage of
3530 # actually working.
3531 break;;
3532 * )
3533 break;;
3534 esac
3535 done
3536 test "$ac_cv_exeext" = no && ac_cv_exeext=
3537
3538 else
3539 ac_file=''
3540 fi
3541 if test -z "$ac_file"; then :
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3544 $as_echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549 as_fn_error 77 "C compiler cannot create executables
3550 See \`config.log' for more details" "$LINENO" 5; }
3551 else
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3553 $as_echo "yes" >&6; }
3554 fi
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3556 $as_echo_n "checking for C compiler default output file name... " >&6; }
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3558 $as_echo "$ac_file" >&6; }
3559 ac_exeext=$ac_cv_exeext
3560
3561 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3562 ac_clean_files=$ac_clean_files_save
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3564 $as_echo_n "checking for suffix of executables... " >&6; }
3565 if { { ac_try="$ac_link"
3566 case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569 esac
3570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571 $as_echo "$ac_try_echo"; } >&5
3572 (eval "$ac_link") 2>&5
3573 ac_status=$?
3574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575 test $ac_status = 0; }; then :
3576 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3577 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3578 # work properly (i.e., refer to `conftest.exe'), while it won't with
3579 # `rm'.
3580 for ac_file in conftest.exe conftest conftest.*; do
3581 test -f "$ac_file" || continue
3582 case $ac_file in
3583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3584 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3585 break;;
3586 * ) break;;
3587 esac
3588 done
3589 else
3590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3592 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3593 See \`config.log' for more details" "$LINENO" 5; }
3594 fi
3595 rm -f conftest conftest$ac_cv_exeext
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3597 $as_echo "$ac_cv_exeext" >&6; }
3598
3599 rm -f conftest.$ac_ext
3600 EXEEXT=$ac_cv_exeext
3601 ac_exeext=$EXEEXT
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3604 #include <stdio.h>
3605 int
3606 main ()
3607 {
3608 FILE *f = fopen ("conftest.out", "w");
3609 return ferror (f) || fclose (f) != 0;
3610
3611 ;
3612 return 0;
3613 }
3614 _ACEOF
3615 ac_clean_files="$ac_clean_files conftest.out"
3616 # Check that the compiler produces executables we can run. If not, either
3617 # the compiler is broken, or we cross compile.
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3619 $as_echo_n "checking whether we are cross compiling... " >&6; }
3620 if test "$cross_compiling" != yes; then
3621 { { ac_try="$ac_link"
3622 case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625 esac
3626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627 $as_echo "$ac_try_echo"; } >&5
3628 (eval "$ac_link") 2>&5
3629 ac_status=$?
3630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3631 test $ac_status = 0; }
3632 if { ac_try='./conftest$ac_cv_exeext'
3633 { { case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639 (eval "$ac_try") 2>&5
3640 ac_status=$?
3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642 test $ac_status = 0; }; }; then
3643 cross_compiling=no
3644 else
3645 if test "$cross_compiling" = maybe; then
3646 cross_compiling=yes
3647 else
3648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650 as_fn_error $? "cannot run C compiled programs.
3651 If you meant to cross compile, use \`--host'.
3652 See \`config.log' for more details" "$LINENO" 5; }
3653 fi
3654 fi
3655 fi
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3657 $as_echo "$cross_compiling" >&6; }
3658
3659 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3660 ac_clean_files=$ac_clean_files_save
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3662 $as_echo_n "checking for suffix of object files... " >&6; }
3663 if ${ac_cv_objext+:} false; then :
3664 $as_echo_n "(cached) " >&6
3665 else
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3668
3669 int
3670 main ()
3671 {
3672
3673 ;
3674 return 0;
3675 }
3676 _ACEOF
3677 rm -f conftest.o conftest.obj
3678 if { { ac_try="$ac_compile"
3679 case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682 esac
3683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684 $as_echo "$ac_try_echo"; } >&5
3685 (eval "$ac_compile") 2>&5
3686 ac_status=$?
3687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688 test $ac_status = 0; }; then :
3689 for ac_file in conftest.o conftest.obj conftest.*; do
3690 test -f "$ac_file" || continue;
3691 case $ac_file in
3692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3693 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3694 break;;
3695 esac
3696 done
3697 else
3698 $as_echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3700
3701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3703 as_fn_error $? "cannot compute suffix of object files: cannot compile
3704 See \`config.log' for more details" "$LINENO" 5; }
3705 fi
3706 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3707 fi
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3709 $as_echo "$ac_cv_objext" >&6; }
3710 OBJEXT=$ac_cv_objext
3711 ac_objext=$OBJEXT
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3713 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3714 if ${ac_cv_c_compiler_gnu+:} false; then :
3715 $as_echo_n "(cached) " >&6
3716 else
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3719
3720 int
3721 main ()
3722 {
3723 #ifndef __GNUC__
3724 choke me
3725 #endif
3726
3727 ;
3728 return 0;
3729 }
3730 _ACEOF
3731 if ac_fn_c_try_compile "$LINENO"; then :
3732 ac_compiler_gnu=yes
3733 else
3734 ac_compiler_gnu=no
3735 fi
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3738
3739 fi
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3741 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3742 if test $ac_compiler_gnu = yes; then
3743 GCC=yes
3744 else
3745 GCC=
3746 fi
3747 ac_test_CFLAGS=${CFLAGS+set}
3748 ac_save_CFLAGS=$CFLAGS
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3750 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3751 if ${ac_cv_prog_cc_g+:} false; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 ac_save_c_werror_flag=$ac_c_werror_flag
3755 ac_c_werror_flag=yes
3756 ac_cv_prog_cc_g=no
3757 CFLAGS="-g"
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3760
3761 int
3762 main ()
3763 {
3764
3765 ;
3766 return 0;
3767 }
3768 _ACEOF
3769 if ac_fn_c_try_compile "$LINENO"; then :
3770 ac_cv_prog_cc_g=yes
3771 else
3772 CFLAGS=""
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3775
3776 int
3777 main ()
3778 {
3779
3780 ;
3781 return 0;
3782 }
3783 _ACEOF
3784 if ac_fn_c_try_compile "$LINENO"; then :
3785
3786 else
3787 ac_c_werror_flag=$ac_save_c_werror_flag
3788 CFLAGS="-g"
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3791
3792 int
3793 main ()
3794 {
3795
3796 ;
3797 return 0;
3798 }
3799 _ACEOF
3800 if ac_fn_c_try_compile "$LINENO"; then :
3801 ac_cv_prog_cc_g=yes
3802 fi
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 fi
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 fi
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 ac_c_werror_flag=$ac_save_c_werror_flag
3809 fi
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3811 $as_echo "$ac_cv_prog_cc_g" >&6; }
3812 if test "$ac_test_CFLAGS" = set; then
3813 CFLAGS=$ac_save_CFLAGS
3814 elif test $ac_cv_prog_cc_g = yes; then
3815 if test "$GCC" = yes; then
3816 CFLAGS="-g -O2"
3817 else
3818 CFLAGS="-g"
3819 fi
3820 else
3821 if test "$GCC" = yes; then
3822 CFLAGS="-O2"
3823 else
3824 CFLAGS=
3825 fi
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3828 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3829 if ${ac_cv_prog_cc_c89+:} false; then :
3830 $as_echo_n "(cached) " >&6
3831 else
3832 ac_cv_prog_cc_c89=no
3833 ac_save_CC=$CC
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836 #include <stdarg.h>
3837 #include <stdio.h>
3838 struct stat;
3839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3840 struct buf { int x; };
3841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3842 static char *e (p, i)
3843 char **p;
3844 int i;
3845 {
3846 return p[i];
3847 }
3848 static char *f (char * (*g) (char **, int), char **p, ...)
3849 {
3850 char *s;
3851 va_list v;
3852 va_start (v,p);
3853 s = g (p, va_arg (v,int));
3854 va_end (v);
3855 return s;
3856 }
3857
3858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3859 function prototypes and stuff, but not '\xHH' hex character constants.
3860 These don't provoke an error unfortunately, instead are silently treated
3861 as 'x'. The following induces an error, until -std is added to get
3862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3863 array size at least. It's necessary to write '\x00'==0 to get something
3864 that's true only with -std. */
3865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3866
3867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3868 inside strings and character constants. */
3869 #define FOO(x) 'x'
3870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3871
3872 int test (int i, double x);
3873 struct s1 {int (*f) (int a);};
3874 struct s2 {int (*f) (double a);};
3875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3876 int argc;
3877 char **argv;
3878 int
3879 main ()
3880 {
3881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3882 ;
3883 return 0;
3884 }
3885 _ACEOF
3886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3888 do
3889 CC="$ac_save_CC $ac_arg"
3890 if ac_fn_c_try_compile "$LINENO"; then :
3891 ac_cv_prog_cc_c89=$ac_arg
3892 fi
3893 rm -f core conftest.err conftest.$ac_objext
3894 test "x$ac_cv_prog_cc_c89" != "xno" && break
3895 done
3896 rm -f conftest.$ac_ext
3897 CC=$ac_save_CC
3898
3899 fi
3900 # AC_CACHE_VAL
3901 case "x$ac_cv_prog_cc_c89" in
3902 x)
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3904 $as_echo "none needed" >&6; } ;;
3905 xno)
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3907 $as_echo "unsupported" >&6; } ;;
3908 *)
3909 CC="$CC $ac_cv_prog_cc_c89"
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3911 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3912 esac
3913 if test "x$ac_cv_prog_cc_c89" != xno; then :
3914
3915 fi
3916
3917 ac_ext=c
3918 ac_cpp='$CPP $CPPFLAGS'
3919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922
3923 ac_ext=c
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3929 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3930 if ${am_cv_prog_cc_c_o+:} false; then :
3931 $as_echo_n "(cached) " >&6
3932 else
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3935
3936 int
3937 main ()
3938 {
3939
3940 ;
3941 return 0;
3942 }
3943 _ACEOF
3944 # Make sure it works both with $CC and with simple cc.
3945 # Following AC_PROG_CC_C_O, we do the test twice because some
3946 # compilers refuse to overwrite an existing .o file with -o,
3947 # though they will create one.
3948 am_cv_prog_cc_c_o=yes
3949 for am_i in 1 2; do
3950 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3951 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3952 ac_status=$?
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); } \
3955 && test -f conftest2.$ac_objext; then
3956 : OK
3957 else
3958 am_cv_prog_cc_c_o=no
3959 break
3960 fi
3961 done
3962 rm -f core conftest*
3963 unset am_i
3964 fi
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3966 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3967 if test "$am_cv_prog_cc_c_o" != yes; then
3968 # Losing compiler, so override with the script.
3969 # FIXME: It is wrong to rewrite CC.
3970 # But if we don't then we get into trouble of one sort or another.
3971 # A longer-term fix would be to have automake use am__CC in this case,
3972 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3973 CC="$am_aux_dir/compile $CC"
3974 fi
3975 ac_ext=c
3976 ac_cpp='$CPP $CPPFLAGS'
3977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980
3981 DEPDIR="${am__leading_dot}deps"
3982
3983 ac_config_commands="$ac_config_commands depfiles"
3984
3985
3986 am_make=${MAKE-make}
3987 cat > confinc << 'END'
3988 am__doit:
3989 @echo this is the am__doit target
3990 .PHONY: am__doit
3991 END
3992 # If we don't find an include directive, just comment out the code.
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3994 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3995 am__include="#"
3996 am__quote=
3997 _am_result=none
3998 # First try GNU make style include.
3999 echo "include confinc" > confmf
4000 # Ignore all kinds of additional output from 'make'.
4001 case `$am_make -s -f confmf 2> /dev/null` in #(
4002 *the\ am__doit\ target*)
4003 am__include=include
4004 am__quote=
4005 _am_result=GNU
4006 ;;
4007 esac
4008 # Now try BSD make style include.
4009 if test "$am__include" = "#"; then
4010 echo '.include "confinc"' > confmf
4011 case `$am_make -s -f confmf 2> /dev/null` in #(
4012 *the\ am__doit\ target*)
4013 am__include=.include
4014 am__quote="\""
4015 _am_result=BSD
4016 ;;
4017 esac
4018 fi
4019
4020
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4022 $as_echo "$_am_result" >&6; }
4023 rm -f confinc confmf
4024
4025 # Check whether --enable-dependency-tracking was given.
4026 if test "${enable_dependency_tracking+set}" = set; then :
4027 enableval=$enable_dependency_tracking;
4028 fi
4029
4030 if test "x$enable_dependency_tracking" != xno; then
4031 am_depcomp="$ac_aux_dir/depcomp"
4032 AMDEPBACKSLASH='\'
4033 am__nodep='_no'
4034 fi
4035 if test "x$enable_dependency_tracking" != xno; then
4036 AMDEP_TRUE=
4037 AMDEP_FALSE='#'
4038 else
4039 AMDEP_TRUE='#'
4040 AMDEP_FALSE=
4041 fi
4042
4043
4044
4045 depcc="$CC" am_compiler_list=
4046
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4048 $as_echo_n "checking dependency style of $depcc... " >&6; }
4049 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4050 $as_echo_n "(cached) " >&6
4051 else
4052 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4053 # We make a subdir and do the tests there. Otherwise we can end up
4054 # making bogus files that we don't know about and never remove. For
4055 # instance it was reported that on HP-UX the gcc test will end up
4056 # making a dummy file named 'D' -- because '-MD' means "put the output
4057 # in D".
4058 rm -rf conftest.dir
4059 mkdir conftest.dir
4060 # Copy depcomp to subdir because otherwise we won't find it if we're
4061 # using a relative directory.
4062 cp "$am_depcomp" conftest.dir
4063 cd conftest.dir
4064 # We will build objects and dependencies in a subdirectory because
4065 # it helps to detect inapplicable dependency modes. For instance
4066 # both Tru64's cc and ICC support -MD to output dependencies as a
4067 # side effect of compilation, but ICC will put the dependencies in
4068 # the current directory while Tru64 will put them in the object
4069 # directory.
4070 mkdir sub
4071
4072 am_cv_CC_dependencies_compiler_type=none
4073 if test "$am_compiler_list" = ""; then
4074 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4075 fi
4076 am__universal=false
4077 case " $depcc " in #(
4078 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4079 esac
4080
4081 for depmode in $am_compiler_list; do
4082 # Setup a source with many dependencies, because some compilers
4083 # like to wrap large dependency lists on column 80 (with \), and
4084 # we should not choose a depcomp mode which is confused by this.
4085 #
4086 # We need to recreate these files for each test, as the compiler may
4087 # overwrite some of them when testing with obscure command lines.
4088 # This happens at least with the AIX C compiler.
4089 : > sub/conftest.c
4090 for i in 1 2 3 4 5 6; do
4091 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4092 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4093 # Solaris 10 /bin/sh.
4094 echo '/* dummy */' > sub/conftst$i.h
4095 done
4096 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4097
4098 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4099 # mode. It turns out that the SunPro C++ compiler does not properly
4100 # handle '-M -o', and we need to detect this. Also, some Intel
4101 # versions had trouble with output in subdirs.
4102 am__obj=sub/conftest.${OBJEXT-o}
4103 am__minus_obj="-o $am__obj"
4104 case $depmode in
4105 gcc)
4106 # This depmode causes a compiler race in universal mode.
4107 test "$am__universal" = false || continue
4108 ;;
4109 nosideeffect)
4110 # After this tag, mechanisms are not by side-effect, so they'll
4111 # only be used when explicitly requested.
4112 if test "x$enable_dependency_tracking" = xyes; then
4113 continue
4114 else
4115 break
4116 fi
4117 ;;
4118 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4119 # This compiler won't grok '-c -o', but also, the minuso test has
4120 # not run yet. These depmodes are late enough in the game, and
4121 # so weak that their functioning should not be impacted.
4122 am__obj=conftest.${OBJEXT-o}
4123 am__minus_obj=
4124 ;;
4125 none) break ;;
4126 esac
4127 if depmode=$depmode \
4128 source=sub/conftest.c object=$am__obj \
4129 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4130 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4131 >/dev/null 2>conftest.err &&
4132 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4133 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4134 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4135 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4136 # icc doesn't choke on unknown options, it will just issue warnings
4137 # or remarks (even with -Werror). So we grep stderr for any message
4138 # that says an option was ignored or not supported.
4139 # When given -MP, icc 7.0 and 7.1 complain thusly:
4140 # icc: Command line warning: ignoring option '-M'; no argument required
4141 # The diagnosis changed in icc 8.0:
4142 # icc: Command line remark: option '-MP' not supported
4143 if (grep 'ignoring option' conftest.err ||
4144 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4145 am_cv_CC_dependencies_compiler_type=$depmode
4146 break
4147 fi
4148 fi
4149 done
4150
4151 cd ..
4152 rm -rf conftest.dir
4153 else
4154 am_cv_CC_dependencies_compiler_type=none
4155 fi
4156
4157 fi
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4159 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4160 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4161
4162 if
4163 test "x$enable_dependency_tracking" != xno \
4164 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4165 am__fastdepCC_TRUE=
4166 am__fastdepCC_FALSE='#'
4167 else
4168 am__fastdepCC_TRUE='#'
4169 am__fastdepCC_FALSE=
4170 fi
4171
4172
4173 ac_ext=c
4174 ac_cpp='$CPP $CPPFLAGS'
4175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4179 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4180 # On Suns, sometimes $CPP names a directory.
4181 if test -n "$CPP" && test -d "$CPP"; then
4182 CPP=
4183 fi
4184 if test -z "$CPP"; then
4185 if ${ac_cv_prog_CPP+:} false; then :
4186 $as_echo_n "(cached) " >&6
4187 else
4188 # Double quotes because CPP needs to be expanded
4189 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4190 do
4191 ac_preproc_ok=false
4192 for ac_c_preproc_warn_flag in '' yes
4193 do
4194 # Use a header file that comes with gcc, so configuring glibc
4195 # with a fresh cross-compiler works.
4196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4197 # <limits.h> exists even on freestanding compilers.
4198 # On the NeXT, cc -E runs the code through the compiler's parser,
4199 # not just through cpp. "Syntax error" is here to catch this case.
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202 #ifdef __STDC__
4203 # include <limits.h>
4204 #else
4205 # include <assert.h>
4206 #endif
4207 Syntax error
4208 _ACEOF
4209 if ac_fn_c_try_cpp "$LINENO"; then :
4210
4211 else
4212 # Broken: fails on valid input.
4213 continue
4214 fi
4215 rm -f conftest.err conftest.i conftest.$ac_ext
4216
4217 # OK, works on sane cases. Now check whether nonexistent headers
4218 # can be detected and how.
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4221 #include <ac_nonexistent.h>
4222 _ACEOF
4223 if ac_fn_c_try_cpp "$LINENO"; then :
4224 # Broken: success on invalid input.
4225 continue
4226 else
4227 # Passes both tests.
4228 ac_preproc_ok=:
4229 break
4230 fi
4231 rm -f conftest.err conftest.i conftest.$ac_ext
4232
4233 done
4234 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4235 rm -f conftest.i conftest.err conftest.$ac_ext
4236 if $ac_preproc_ok; then :
4237 break
4238 fi
4239
4240 done
4241 ac_cv_prog_CPP=$CPP
4242
4243 fi
4244 CPP=$ac_cv_prog_CPP
4245 else
4246 ac_cv_prog_CPP=$CPP
4247 fi
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4249 $as_echo "$CPP" >&6; }
4250 ac_preproc_ok=false
4251 for ac_c_preproc_warn_flag in '' yes
4252 do
4253 # Use a header file that comes with gcc, so configuring glibc
4254 # with a fresh cross-compiler works.
4255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4256 # <limits.h> exists even on freestanding compilers.
4257 # On the NeXT, cc -E runs the code through the compiler's parser,
4258 # not just through cpp. "Syntax error" is here to catch this case.
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261 #ifdef __STDC__
4262 # include <limits.h>
4263 #else
4264 # include <assert.h>
4265 #endif
4266 Syntax error
4267 _ACEOF
4268 if ac_fn_c_try_cpp "$LINENO"; then :
4269
4270 else
4271 # Broken: fails on valid input.
4272 continue
4273 fi
4274 rm -f conftest.err conftest.i conftest.$ac_ext
4275
4276 # OK, works on sane cases. Now check whether nonexistent headers
4277 # can be detected and how.
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280 #include <ac_nonexistent.h>
4281 _ACEOF
4282 if ac_fn_c_try_cpp "$LINENO"; then :
4283 # Broken: success on invalid input.
4284 continue
4285 else
4286 # Passes both tests.
4287 ac_preproc_ok=:
4288 break
4289 fi
4290 rm -f conftest.err conftest.i conftest.$ac_ext
4291
4292 done
4293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4294 rm -f conftest.i conftest.err conftest.$ac_ext
4295 if $ac_preproc_ok; then :
4296
4297 else
4298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4300 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4301 See \`config.log' for more details" "$LINENO" 5; }
4302 fi
4303
4304 ac_ext=c
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309
4310
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4312 $as_echo_n "checking whether ln -s works... " >&6; }
4313 LN_S=$as_ln_s
4314 if test "$LN_S" = "ln -s"; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4316 $as_echo "yes" >&6; }
4317 else
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4319 $as_echo "no, using $LN_S" >&6; }
4320 fi
4321
4322
4323
4324 for ac_prog in perl5 perl
4325 do
4326 # Extract the first word of "$ac_prog", so it can be a program name with args.
4327 set dummy $ac_prog; ac_word=$2
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4329 $as_echo_n "checking for $ac_word... " >&6; }
4330 if ${ac_cv_path_SYSCONFTOOL_PERL+:} false; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333 case $SYSCONFTOOL_PERL in
4334 [\\/]* | ?:[\\/]*)
4335 ac_cv_path_SYSCONFTOOL_PERL="$SYSCONFTOOL_PERL" # Let the user override the test with a path.
4336 ;;
4337 *)
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4340 do
4341 IFS=$as_save_IFS
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345 ac_cv_path_SYSCONFTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
4346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 break 2
4348 fi
4349 done
4350 done
4351 IFS=$as_save_IFS
4352
4353 ;;
4354 esac
4355 fi
4356 SYSCONFTOOL_PERL=$ac_cv_path_SYSCONFTOOL_PERL
4357 if test -n "$SYSCONFTOOL_PERL"; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFTOOL_PERL" >&5
4359 $as_echo "$SYSCONFTOOL_PERL" >&6; }
4360 else
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4363 fi
4364
4365
4366 test -n "$SYSCONFTOOL_PERL" && break
4367 done
4368 test -n "$SYSCONFTOOL_PERL" || SYSCONFTOOL_PERL="perl"
4369
4370
4371 if test "$SYSCONFTOOL_PERL" = "perl"
4372 then
4373 as_fn_error $? "perl not found - please install perl" "$LINENO" 5
4374 fi
4375
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconftool..." >&5
4377 $as_echo_n "checking for sysconftool...... " >&6; }
4378 SYSCONFTOOL=""
4379 for sysconf_dir in $ac_aux_dir . .. ../..
4380 do
4381 if test -f $srcdir/$sysconf_dir/sysconftool
4382 then
4383 SYSCONFTOOL=$srcdir/$sysconf_dir/sysconftool
4384 break
4385 fi
4386 done
4387
4388 if test "$SYSCONFTOOL" = ""
4389 then
4390 as_fn_error $? "sysconftool missing - not in the package" "$LINENO" 5
4391 fi
4392
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFTOOL" >&5
4394 $as_echo "$SYSCONFTOOL" >&6; }
4395 SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL"
4396
4397
4398
4399 case `pwd` in
4400 *\ * | *\ *)
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4402 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4403 esac
4404
4405
4406
4407 macro_version='2.4.6'
4408 macro_revision='2.4.6'
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422 ltmain=$ac_aux_dir/ltmain.sh
4423
4424 # Make sure we can run config.sub.
4425 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4426 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4427
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4429 $as_echo_n "checking build system type... " >&6; }
4430 if ${ac_cv_build+:} false; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 ac_build_alias=$build_alias
4434 test "x$ac_build_alias" = x &&
4435 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4436 test "x$ac_build_alias" = x &&
4437 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4438 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4439 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4440
4441 fi
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4443 $as_echo "$ac_cv_build" >&6; }
4444 case $ac_cv_build in
4445 *-*-*) ;;
4446 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4447 esac
4448 build=$ac_cv_build
4449 ac_save_IFS=$IFS; IFS='-'
4450 set x $ac_cv_build
4451 shift
4452 build_cpu=$1
4453 build_vendor=$2
4454 shift; shift
4455 # Remember, the first character of IFS is used to create $*,
4456 # except with old shells:
4457 build_os=$*
4458 IFS=$ac_save_IFS
4459 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4460
4461
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4463 $as_echo_n "checking host system type... " >&6; }
4464 if ${ac_cv_host+:} false; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 if test "x$host_alias" = x; then
4468 ac_cv_host=$ac_cv_build
4469 else
4470 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4471 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4472 fi
4473
4474 fi
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4476 $as_echo "$ac_cv_host" >&6; }
4477 case $ac_cv_host in
4478 *-*-*) ;;
4479 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4480 esac
4481 host=$ac_cv_host
4482 ac_save_IFS=$IFS; IFS='-'
4483 set x $ac_cv_host
4484 shift
4485 host_cpu=$1
4486 host_vendor=$2
4487 shift; shift
4488 # Remember, the first character of IFS is used to create $*,
4489 # except with old shells:
4490 host_os=$*
4491 IFS=$ac_save_IFS
4492 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4493
4494
4495 # Backslashify metacharacters that are still active within
4496 # double-quoted strings.
4497 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4498
4499 # Same as above, but do not quote variable references.
4500 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4501
4502 # Sed substitution to delay expansion of an escaped shell variable in a
4503 # double_quote_subst'ed string.
4504 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4505
4506 # Sed substitution to delay expansion of an escaped single quote.
4507 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4508
4509 # Sed substitution to avoid accidental globbing in evaled expressions
4510 no_glob_subst='s/\*/\\\*/g'
4511
4512 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4513 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4514 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4515
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4517 $as_echo_n "checking how to print strings... " >&6; }
4518 # Test print first, because it will be a builtin if present.
4519 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4520 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4521 ECHO='print -r --'
4522 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4523 ECHO='printf %s\n'
4524 else
4525 # Use this function as a fallback that always works.
4526 func_fallback_echo ()
4527 {
4528 eval 'cat <<_LTECHO_EOF
4529 $1
4530 _LTECHO_EOF'
4531 }
4532 ECHO='func_fallback_echo'
4533 fi
4534
4535 # func_echo_all arg...
4536 # Invoke $ECHO with all args, space-separated.
4537 func_echo_all ()
4538 {
4539 $ECHO ""
4540 }
4541
4542 case $ECHO in
4543 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4544 $as_echo "printf" >&6; } ;;
4545 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4546 $as_echo "print -r" >&6; } ;;
4547 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4548 $as_echo "cat" >&6; } ;;
4549 esac
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4565 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4566 if ${ac_cv_path_SED+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4570 for ac_i in 1 2 3 4 5 6 7; do
4571 ac_script="$ac_script$as_nl$ac_script"
4572 done
4573 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4574 { ac_script=; unset ac_script;}
4575 if test -z "$SED"; then
4576 ac_path_SED_found=false
4577 # Loop through the user's path and test for each of PROGNAME-LIST
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4580 do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_prog in sed gsed; do
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4586 as_fn_executable_p "$ac_path_SED" || continue
4587 # Check for GNU ac_path_SED and select it if it is found.
4588 # Check for GNU $ac_path_SED
4589 case `"$ac_path_SED" --version 2>&1` in
4590 *GNU*)
4591 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4592 *)
4593 ac_count=0
4594 $as_echo_n 0123456789 >"conftest.in"
4595 while :
4596 do
4597 cat "conftest.in" "conftest.in" >"conftest.tmp"
4598 mv "conftest.tmp" "conftest.in"
4599 cp "conftest.in" "conftest.nl"
4600 $as_echo '' >> "conftest.nl"
4601 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4603 as_fn_arith $ac_count + 1 && ac_count=$as_val
4604 if test $ac_count -gt ${ac_path_SED_max-0}; then
4605 # Best one so far, save it but keep looking for a better one
4606 ac_cv_path_SED="$ac_path_SED"
4607 ac_path_SED_max=$ac_count
4608 fi
4609 # 10*(2^10) chars as input seems more than enough
4610 test $ac_count -gt 10 && break
4611 done
4612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4613 esac
4614
4615 $ac_path_SED_found && break 3
4616 done
4617 done
4618 done
4619 IFS=$as_save_IFS
4620 if test -z "$ac_cv_path_SED"; then
4621 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4622 fi
4623 else
4624 ac_cv_path_SED=$SED
4625 fi
4626
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4629 $as_echo "$ac_cv_path_SED" >&6; }
4630 SED="$ac_cv_path_SED"
4631 rm -f conftest.sed
4632
4633 test -z "$SED" && SED=sed
4634 Xsed="$SED -e 1s/^X//"
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4647 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4648 if ${ac_cv_path_GREP+:} false; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 if test -z "$GREP"; then
4652 ac_path_GREP_found=false
4653 # Loop through the user's path and test for each of PROGNAME-LIST
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4656 do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_prog in grep ggrep; do
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4662 as_fn_executable_p "$ac_path_GREP" || continue
4663 # Check for GNU ac_path_GREP and select it if it is found.
4664 # Check for GNU $ac_path_GREP
4665 case `"$ac_path_GREP" --version 2>&1` in
4666 *GNU*)
4667 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4668 *)
4669 ac_count=0
4670 $as_echo_n 0123456789 >"conftest.in"
4671 while :
4672 do
4673 cat "conftest.in" "conftest.in" >"conftest.tmp"
4674 mv "conftest.tmp" "conftest.in"
4675 cp "conftest.in" "conftest.nl"
4676 $as_echo 'GREP' >> "conftest.nl"
4677 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4679 as_fn_arith $ac_count + 1 && ac_count=$as_val
4680 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4681 # Best one so far, save it but keep looking for a better one
4682 ac_cv_path_GREP="$ac_path_GREP"
4683 ac_path_GREP_max=$ac_count
4684 fi
4685 # 10*(2^10) chars as input seems more than enough
4686 test $ac_count -gt 10 && break
4687 done
4688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4689 esac
4690
4691 $ac_path_GREP_found && break 3
4692 done
4693 done
4694 done
4695 IFS=$as_save_IFS
4696 if test -z "$ac_cv_path_GREP"; then
4697 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4698 fi
4699 else
4700 ac_cv_path_GREP=$GREP
4701 fi
4702
4703 fi
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4705 $as_echo "$ac_cv_path_GREP" >&6; }
4706 GREP="$ac_cv_path_GREP"
4707
4708
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4710 $as_echo_n "checking for egrep... " >&6; }
4711 if ${ac_cv_path_EGREP+:} false; then :
4712 $as_echo_n "(cached) " >&6
4713 else
4714 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4715 then ac_cv_path_EGREP="$GREP -E"
4716 else
4717 if test -z "$EGREP"; then
4718 ac_path_EGREP_found=false
4719 # Loop through the user's path and test for each of PROGNAME-LIST
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4722 do
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_prog in egrep; do
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4728 as_fn_executable_p "$ac_path_EGREP" || continue
4729 # Check for GNU ac_path_EGREP and select it if it is found.
4730 # Check for GNU $ac_path_EGREP
4731 case `"$ac_path_EGREP" --version 2>&1` in
4732 *GNU*)
4733 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4734 *)
4735 ac_count=0
4736 $as_echo_n 0123456789 >"conftest.in"
4737 while :
4738 do
4739 cat "conftest.in" "conftest.in" >"conftest.tmp"
4740 mv "conftest.tmp" "conftest.in"
4741 cp "conftest.in" "conftest.nl"
4742 $as_echo 'EGREP' >> "conftest.nl"
4743 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4744 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4745 as_fn_arith $ac_count + 1 && ac_count=$as_val
4746 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4747 # Best one so far, save it but keep looking for a better one
4748 ac_cv_path_EGREP="$ac_path_EGREP"
4749 ac_path_EGREP_max=$ac_count
4750 fi
4751 # 10*(2^10) chars as input seems more than enough
4752 test $ac_count -gt 10 && break
4753 done
4754 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4755 esac
4756
4757 $ac_path_EGREP_found && break 3
4758 done
4759 done
4760 done
4761 IFS=$as_save_IFS
4762 if test -z "$ac_cv_path_EGREP"; then
4763 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4764 fi
4765 else
4766 ac_cv_path_EGREP=$EGREP
4767 fi
4768
4769 fi
4770 fi
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4772 $as_echo "$ac_cv_path_EGREP" >&6; }
4773 EGREP="$ac_cv_path_EGREP"
4774
4775
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4777 $as_echo_n "checking for fgrep... " >&6; }
4778 if ${ac_cv_path_FGREP+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4782 then ac_cv_path_FGREP="$GREP -F"
4783 else
4784 if test -z "$FGREP"; then
4785 ac_path_FGREP_found=false
4786 # Loop through the user's path and test for each of PROGNAME-LIST
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4789 do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_prog in fgrep; do
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4795 as_fn_executable_p "$ac_path_FGREP" || continue
4796 # Check for GNU ac_path_FGREP and select it if it is found.
4797 # Check for GNU $ac_path_FGREP
4798 case `"$ac_path_FGREP" --version 2>&1` in
4799 *GNU*)
4800 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4801 *)
4802 ac_count=0
4803 $as_echo_n 0123456789 >"conftest.in"
4804 while :
4805 do
4806 cat "conftest.in" "conftest.in" >"conftest.tmp"
4807 mv "conftest.tmp" "conftest.in"
4808 cp "conftest.in" "conftest.nl"
4809 $as_echo 'FGREP' >> "conftest.nl"
4810 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4812 as_fn_arith $ac_count + 1 && ac_count=$as_val
4813 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4814 # Best one so far, save it but keep looking for a better one
4815 ac_cv_path_FGREP="$ac_path_FGREP"
4816 ac_path_FGREP_max=$ac_count
4817 fi
4818 # 10*(2^10) chars as input seems more than enough
4819 test $ac_count -gt 10 && break
4820 done
4821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4822 esac
4823
4824 $ac_path_FGREP_found && break 3
4825 done
4826 done
4827 done
4828 IFS=$as_save_IFS
4829 if test -z "$ac_cv_path_FGREP"; then
4830 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4831 fi
4832 else
4833 ac_cv_path_FGREP=$FGREP
4834 fi
4835
4836 fi
4837 fi
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4839 $as_echo "$ac_cv_path_FGREP" >&6; }
4840 FGREP="$ac_cv_path_FGREP"
4841
4842
4843 test -z "$GREP" && GREP=grep
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863 # Check whether --with-gnu-ld was given.
4864 if test "${with_gnu_ld+set}" = set; then :
4865 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4866 else
4867 with_gnu_ld=no
4868 fi
4869
4870 ac_prog=ld
4871 if test yes = "$GCC"; then
4872 # Check if gcc -print-prog-name=ld gives a path.
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4874 $as_echo_n "checking for ld used by $CC... " >&6; }
4875 case $host in
4876 *-*-mingw*)
4877 # gcc leaves a trailing carriage return, which upsets mingw
4878 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4879 *)
4880 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4881 esac
4882 case $ac_prog in
4883 # Accept absolute paths.
4884 [\\/]* | ?:[\\/]*)
4885 re_direlt='/[^/][^/]*/\.\./'
4886 # Canonicalize the pathname of ld
4887 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4888 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4889 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4890 done
4891 test -z "$LD" && LD=$ac_prog
4892 ;;
4893 "")
4894 # If it fails, then pretend we aren't using GCC.
4895 ac_prog=ld
4896 ;;
4897 *)
4898 # If it is relative, then search for the first ld in PATH.
4899 with_gnu_ld=unknown
4900 ;;
4901 esac
4902 elif test yes = "$with_gnu_ld"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4904 $as_echo_n "checking for GNU ld... " >&6; }
4905 else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4907 $as_echo_n "checking for non-GNU ld... " >&6; }
4908 fi
4909 if ${lt_cv_path_LD+:} false; then :
4910 $as_echo_n "(cached) " >&6
4911 else
4912 if test -z "$LD"; then
4913 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4914 for ac_dir in $PATH; do
4915 IFS=$lt_save_ifs
4916 test -z "$ac_dir" && ac_dir=.
4917 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4918 lt_cv_path_LD=$ac_dir/$ac_prog
4919 # Check to see if the program is GNU ld. I'd rather use --version,
4920 # but apparently some variants of GNU ld only accept -v.
4921 # Break only if it was the GNU/non-GNU ld that we prefer.
4922 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4923 *GNU* | *'with BFD'*)
4924 test no != "$with_gnu_ld" && break
4925 ;;
4926 *)
4927 test yes != "$with_gnu_ld" && break
4928 ;;
4929 esac
4930 fi
4931 done
4932 IFS=$lt_save_ifs
4933 else
4934 lt_cv_path_LD=$LD # Let the user override the test with a path.
4935 fi
4936 fi
4937
4938 LD=$lt_cv_path_LD
4939 if test -n "$LD"; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4941 $as_echo "$LD" >&6; }
4942 else
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 $as_echo "no" >&6; }
4945 fi
4946 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4948 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4949 if ${lt_cv_prog_gnu_ld+:} false; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4953 case `$LD -v 2>&1 </dev/null` in
4954 *GNU* | *'with BFD'*)
4955 lt_cv_prog_gnu_ld=yes
4956 ;;
4957 *)
4958 lt_cv_prog_gnu_ld=no
4959 ;;
4960 esac
4961 fi
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4963 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4964 with_gnu_ld=$lt_cv_prog_gnu_ld
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4975 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4976 if ${lt_cv_path_NM+:} false; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 if test -n "$NM"; then
4980 # Let the user override the test.
4981 lt_cv_path_NM=$NM
4982 else
4983 lt_nm_to_check=${ac_tool_prefix}nm
4984 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4985 lt_nm_to_check="$lt_nm_to_check nm"
4986 fi
4987 for lt_tmp_nm in $lt_nm_to_check; do
4988 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4989 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4990 IFS=$lt_save_ifs
4991 test -z "$ac_dir" && ac_dir=.
4992 tmp_nm=$ac_dir/$lt_tmp_nm
4993 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4994 # Check to see if the nm accepts a BSD-compat flag.
4995 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4996 # nm: unknown option "B" ignored
4997 # Tru64's nm complains that /dev/null is an invalid object file
4998 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4999 case $build_os in
5000 mingw*) lt_bad_file=conftest.nm/nofile ;;
5001 *) lt_bad_file=/dev/null ;;
5002 esac
5003 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5004 *$lt_bad_file* | *'Invalid file or object type'*)
5005 lt_cv_path_NM="$tmp_nm -B"
5006 break 2
5007 ;;
5008 *)
5009 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5010 */dev/null*)
5011 lt_cv_path_NM="$tmp_nm -p"
5012 break 2
5013 ;;
5014 *)
5015 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5016 continue # so that we can try to find one that supports BSD flags
5017 ;;
5018 esac
5019 ;;
5020 esac
5021 fi
5022 done
5023 IFS=$lt_save_ifs
5024 done
5025 : ${lt_cv_path_NM=no}
5026 fi
5027 fi
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5029 $as_echo "$lt_cv_path_NM" >&6; }
5030 if test no != "$lt_cv_path_NM"; then
5031 NM=$lt_cv_path_NM
5032 else
5033 # Didn't find any BSD compatible name lister, look for dumpbin.
5034 if test -n "$DUMPBIN"; then :
5035 # Let the user override the test.
5036 else
5037 if test -n "$ac_tool_prefix"; then
5038 for ac_prog in dumpbin "link -dump"
5039 do
5040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_prog_DUMPBIN+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 if test -n "$DUMPBIN"; then
5048 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5057 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5060 fi
5061 done
5062 done
5063 IFS=$as_save_IFS
5064
5065 fi
5066 fi
5067 DUMPBIN=$ac_cv_prog_DUMPBIN
5068 if test -n "$DUMPBIN"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5070 $as_echo "$DUMPBIN" >&6; }
5071 else
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5074 fi
5075
5076
5077 test -n "$DUMPBIN" && break
5078 done
5079 fi
5080 if test -z "$DUMPBIN"; then
5081 ac_ct_DUMPBIN=$DUMPBIN
5082 for ac_prog in dumpbin "link -dump"
5083 do
5084 # Extract the first word of "$ac_prog", so it can be a program name with args.
5085 set dummy $ac_prog; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 if test -n "$ac_ct_DUMPBIN"; then
5092 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5096 do
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5101 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5104 fi
5105 done
5106 done
5107 IFS=$as_save_IFS
5108
5109 fi
5110 fi
5111 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5112 if test -n "$ac_ct_DUMPBIN"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5114 $as_echo "$ac_ct_DUMPBIN" >&6; }
5115 else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5118 fi
5119
5120
5121 test -n "$ac_ct_DUMPBIN" && break
5122 done
5123
5124 if test "x$ac_ct_DUMPBIN" = x; then
5125 DUMPBIN=":"
5126 else
5127 case $cross_compiling:$ac_tool_warned in
5128 yes:)
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5131 ac_tool_warned=yes ;;
5132 esac
5133 DUMPBIN=$ac_ct_DUMPBIN
5134 fi
5135 fi
5136
5137 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5138 *COFF*)
5139 DUMPBIN="$DUMPBIN -symbols -headers"
5140 ;;
5141 *)
5142 DUMPBIN=:
5143 ;;
5144 esac
5145 fi
5146
5147 if test : != "$DUMPBIN"; then
5148 NM=$DUMPBIN
5149 fi
5150 fi
5151 test -z "$NM" && NM=nm
5152
5153
5154
5155
5156
5157
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5159 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5160 if ${lt_cv_nm_interface+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 lt_cv_nm_interface="BSD nm"
5164 echo "int some_variable = 0;" > conftest.$ac_ext
5165 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5166 (eval "$ac_compile" 2>conftest.err)
5167 cat conftest.err >&5
5168 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5169 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5170 cat conftest.err >&5
5171 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5172 cat conftest.out >&5
5173 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5174 lt_cv_nm_interface="MS dumpbin"
5175 fi
5176 rm -f conftest*
5177 fi
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5179 $as_echo "$lt_cv_nm_interface" >&6; }
5180
5181 # find the maximum length of command line arguments
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5183 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5184 if ${lt_cv_sys_max_cmd_len+:} false; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5187 i=0
5188 teststring=ABCD
5189
5190 case $build_os in
5191 msdosdjgpp*)
5192 # On DJGPP, this test can blow up pretty badly due to problems in libc
5193 # (any single argument exceeding 2000 bytes causes a buffer overrun
5194 # during glob expansion). Even if it were fixed, the result of this
5195 # check would be larger than it should be.
5196 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5197 ;;
5198
5199 gnu*)
5200 # Under GNU Hurd, this test is not required because there is
5201 # no limit to the length of command line arguments.
5202 # Libtool will interpret -1 as no limit whatsoever
5203 lt_cv_sys_max_cmd_len=-1;
5204 ;;
5205
5206 cygwin* | mingw* | cegcc*)
5207 # On Win9x/ME, this test blows up -- it succeeds, but takes
5208 # about 5 minutes as the teststring grows exponentially.
5209 # Worse, since 9x/ME are not pre-emptively multitasking,
5210 # you end up with a "frozen" computer, even though with patience
5211 # the test eventually succeeds (with a max line length of 256k).
5212 # Instead, let's just punt: use the minimum linelength reported by
5213 # all of the supported platforms: 8192 (on NT/2K/XP).
5214 lt_cv_sys_max_cmd_len=8192;
5215 ;;
5216
5217 mint*)
5218 # On MiNT this can take a long time and run out of memory.
5219 lt_cv_sys_max_cmd_len=8192;
5220 ;;
5221
5222 amigaos*)
5223 # On AmigaOS with pdksh, this test takes hours, literally.
5224 # So we just punt and use a minimum line length of 8192.
5225 lt_cv_sys_max_cmd_len=8192;
5226 ;;
5227
5228 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5229 # This has been around since 386BSD, at least. Likely further.
5230 if test -x /sbin/sysctl; then
5231 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5232 elif test -x /usr/sbin/sysctl; then
5233 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5234 else
5235 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5236 fi
5237 # And add a safety zone
5238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5239 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5240 ;;
5241
5242 interix*)
5243 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5244 lt_cv_sys_max_cmd_len=196608
5245 ;;
5246
5247 os2*)
5248 # The test takes a long time on OS/2.
5249 lt_cv_sys_max_cmd_len=8192
5250 ;;
5251
5252 osf*)
5253 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5254 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5255 # nice to cause kernel panics so lets avoid the loop below.
5256 # First set a reasonable default.
5257 lt_cv_sys_max_cmd_len=16384
5258 #
5259 if test -x /sbin/sysconfig; then
5260 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5261 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5262 esac
5263 fi
5264 ;;
5265 sco3.2v5*)
5266 lt_cv_sys_max_cmd_len=102400
5267 ;;
5268 sysv5* | sco5v6* | sysv4.2uw2*)
5269 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5270 if test -n "$kargmax"; then
5271 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5272 else
5273 lt_cv_sys_max_cmd_len=32768
5274 fi
5275 ;;
5276 *)
5277 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5278 if test -n "$lt_cv_sys_max_cmd_len" && \
5279 test undefined != "$lt_cv_sys_max_cmd_len"; then
5280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5282 else
5283 # Make teststring a little bigger before we do anything with it.
5284 # a 1K string should be a reasonable start.
5285 for i in 1 2 3 4 5 6 7 8; do
5286 teststring=$teststring$teststring
5287 done
5288 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5289 # If test is not a shell built-in, we'll probably end up computing a
5290 # maximum length that is only half of the actual maximum length, but
5291 # we can't tell.
5292 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5293 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5294 test 17 != "$i" # 1/2 MB should be enough
5295 do
5296 i=`expr $i + 1`
5297 teststring=$teststring$teststring
5298 done
5299 # Only check the string length outside the loop.
5300 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5301 teststring=
5302 # Add a significant safety factor because C++ compilers can tack on
5303 # massive amounts of additional arguments before passing them to the
5304 # linker. It appears as though 1/2 is a usable value.
5305 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5306 fi
5307 ;;
5308 esac
5309
5310 fi
5311
5312 if test -n "$lt_cv_sys_max_cmd_len"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5314 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5315 else
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5317 $as_echo "none" >&6; }
5318 fi
5319 max_cmd_len=$lt_cv_sys_max_cmd_len
5320
5321
5322
5323
5324
5325
5326 : ${CP="cp -f"}
5327 : ${MV="mv -f"}
5328 : ${RM="rm -f"}
5329
5330 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5331 lt_unset=unset
5332 else
5333 lt_unset=false
5334 fi
5335
5336
5337
5338
5339
5340 # test EBCDIC or ASCII
5341 case `echo X|tr X '\101'` in
5342 A) # ASCII based system
5343 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5344 lt_SP2NL='tr \040 \012'
5345 lt_NL2SP='tr \015\012 \040\040'
5346 ;;
5347 *) # EBCDIC based system
5348 lt_SP2NL='tr \100 \n'
5349 lt_NL2SP='tr \r\n \100\100'
5350 ;;
5351 esac
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5362 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5363 if ${lt_cv_to_host_file_cmd+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 case $host in
5367 *-*-mingw* )
5368 case $build in
5369 *-*-mingw* ) # actually msys
5370 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5371 ;;
5372 *-*-cygwin* )
5373 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5374 ;;
5375 * ) # otherwise, assume *nix
5376 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5377 ;;
5378 esac
5379 ;;
5380 *-*-cygwin* )
5381 case $build in
5382 *-*-mingw* ) # actually msys
5383 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5384 ;;
5385 *-*-cygwin* )
5386 lt_cv_to_host_file_cmd=func_convert_file_noop
5387 ;;
5388 * ) # otherwise, assume *nix
5389 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5390 ;;
5391 esac
5392 ;;
5393 * ) # unhandled hosts (and "normal" native builds)
5394 lt_cv_to_host_file_cmd=func_convert_file_noop
5395 ;;
5396 esac
5397
5398 fi
5399
5400 to_host_file_cmd=$lt_cv_to_host_file_cmd
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5402 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5403
5404
5405
5406
5407
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5409 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5410 if ${lt_cv_to_tool_file_cmd+:} false; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 #assume ordinary cross tools, or native build.
5414 lt_cv_to_tool_file_cmd=func_convert_file_noop
5415 case $host in
5416 *-*-mingw* )
5417 case $build in
5418 *-*-mingw* ) # actually msys
5419 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5420 ;;
5421 esac
5422 ;;
5423 esac
5424
5425 fi
5426
5427 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5429 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5430
5431
5432
5433
5434
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5436 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5437 if ${lt_cv_ld_reload_flag+:} false; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 lt_cv_ld_reload_flag='-r'
5441 fi
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5443 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5444 reload_flag=$lt_cv_ld_reload_flag
5445 case $reload_flag in
5446 "" | " "*) ;;
5447 *) reload_flag=" $reload_flag" ;;
5448 esac
5449 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5450 case $host_os in
5451 cygwin* | mingw* | pw32* | cegcc*)
5452 if test yes != "$GCC"; then
5453 reload_cmds=false
5454 fi
5455 ;;
5456 darwin*)
5457 if test yes = "$GCC"; then
5458 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5459 else
5460 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5461 fi
5462 ;;
5463 esac
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473 if test -n "$ac_tool_prefix"; then
5474 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5475 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5477 $as_echo_n "checking for $ac_word... " >&6; }
5478 if ${ac_cv_prog_OBJDUMP+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 if test -n "$OBJDUMP"; then
5482 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5483 else
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2
5494 fi
5495 done
5496 done
5497 IFS=$as_save_IFS
5498
5499 fi
5500 fi
5501 OBJDUMP=$ac_cv_prog_OBJDUMP
5502 if test -n "$OBJDUMP"; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5504 $as_echo "$OBJDUMP" >&6; }
5505 else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5508 fi
5509
5510
5511 fi
5512 if test -z "$ac_cv_prog_OBJDUMP"; then
5513 ac_ct_OBJDUMP=$OBJDUMP
5514 # Extract the first word of "objdump", so it can be a program name with args.
5515 set dummy objdump; ac_word=$2
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517 $as_echo_n "checking for $ac_word... " >&6; }
5518 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 if test -n "$ac_ct_OBJDUMP"; then
5522 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5523 else
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH
5526 do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2
5534 fi
5535 done
5536 done
5537 IFS=$as_save_IFS
5538
5539 fi
5540 fi
5541 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5542 if test -n "$ac_ct_OBJDUMP"; then
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5544 $as_echo "$ac_ct_OBJDUMP" >&6; }
5545 else
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547 $as_echo "no" >&6; }
5548 fi
5549
5550 if test "x$ac_ct_OBJDUMP" = x; then
5551 OBJDUMP="false"
5552 else
5553 case $cross_compiling:$ac_tool_warned in
5554 yes:)
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5557 ac_tool_warned=yes ;;
5558 esac
5559 OBJDUMP=$ac_ct_OBJDUMP
5560 fi
5561 else
5562 OBJDUMP="$ac_cv_prog_OBJDUMP"
5563 fi
5564
5565 test -z "$OBJDUMP" && OBJDUMP=objdump
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5576 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5577 if ${lt_cv_deplibs_check_method+:} false; then :
5578 $as_echo_n "(cached) " >&6
5579 else
5580 lt_cv_file_magic_cmd='$MAGIC_CMD'
5581 lt_cv_file_magic_test_file=
5582 lt_cv_deplibs_check_method='unknown'
5583 # Need to set the preceding variable on all platforms that support
5584 # interlibrary dependencies.
5585 # 'none' -- dependencies not supported.
5586 # 'unknown' -- same as none, but documents that we really don't know.
5587 # 'pass_all' -- all dependencies passed with no checks.
5588 # 'test_compile' -- check by making test program.
5589 # 'file_magic [[regex]]' -- check by looking for files in library path
5590 # that responds to the $file_magic_cmd with a given extended regex.
5591 # If you have 'file' or equivalent on your system and you're not sure
5592 # whether 'pass_all' will *always* work, you probably want this one.
5593
5594 case $host_os in
5595 aix[4-9]*)
5596 lt_cv_deplibs_check_method=pass_all
5597 ;;
5598
5599 beos*)
5600 lt_cv_deplibs_check_method=pass_all
5601 ;;
5602
5603 bsdi[45]*)
5604 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5605 lt_cv_file_magic_cmd='/usr/bin/file -L'
5606 lt_cv_file_magic_test_file=/shlib/libc.so
5607 ;;
5608
5609 cygwin*)
5610 # func_win32_libid is a shell function defined in ltmain.sh
5611 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5612 lt_cv_file_magic_cmd='func_win32_libid'
5613 ;;
5614
5615 mingw* | pw32*)
5616 # Base MSYS/MinGW do not provide the 'file' command needed by
5617 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5618 # unless we find 'file', for example because we are cross-compiling.
5619 if ( file / ) >/dev/null 2>&1; then
5620 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5621 lt_cv_file_magic_cmd='func_win32_libid'
5622 else
5623 # Keep this pattern in sync with the one in func_win32_libid.
5624 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5625 lt_cv_file_magic_cmd='$OBJDUMP -f'
5626 fi
5627 ;;
5628
5629 cegcc*)
5630 # use the weaker test based on 'objdump'. See mingw*.
5631 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5632 lt_cv_file_magic_cmd='$OBJDUMP -f'
5633 ;;
5634
5635 darwin* | rhapsody*)
5636 lt_cv_deplibs_check_method=pass_all
5637 ;;
5638
5639 freebsd* | dragonfly*)
5640 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5641 case $host_cpu in
5642 i*86 )
5643 # Not sure whether the presence of OpenBSD here was a mistake.
5644 # Let's accept both of them until this is cleared up.
5645 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5646 lt_cv_file_magic_cmd=/usr/bin/file
5647 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5648 ;;
5649 esac
5650 else
5651 lt_cv_deplibs_check_method=pass_all
5652 fi
5653 ;;
5654
5655 haiku*)
5656 lt_cv_deplibs_check_method=pass_all
5657 ;;
5658
5659 hpux10.20* | hpux11*)
5660 lt_cv_file_magic_cmd=/usr/bin/file
5661 case $host_cpu in
5662 ia64*)
5663 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5664 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5665 ;;
5666 hppa*64*)
5667 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]'
5668 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5669 ;;
5670 *)
5671 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5672 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5673 ;;
5674 esac
5675 ;;
5676
5677 interix[3-9]*)
5678 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5680 ;;
5681
5682 irix5* | irix6* | nonstopux*)
5683 case $LD in
5684 *-32|*"-32 ") libmagic=32-bit;;
5685 *-n32|*"-n32 ") libmagic=N32;;
5686 *-64|*"-64 ") libmagic=64-bit;;
5687 *) libmagic=never-match;;
5688 esac
5689 lt_cv_deplibs_check_method=pass_all
5690 ;;
5691
5692 # This must be glibc/ELF.
5693 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5694 lt_cv_deplibs_check_method=pass_all
5695 ;;
5696
5697 netbsd*)
5698 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5700 else
5701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5702 fi
5703 ;;
5704
5705 newos6*)
5706 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5707 lt_cv_file_magic_cmd=/usr/bin/file
5708 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5709 ;;
5710
5711 *nto* | *qnx*)
5712 lt_cv_deplibs_check_method=pass_all
5713 ;;
5714
5715 openbsd* | bitrig*)
5716 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5718 else
5719 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5720 fi
5721 ;;
5722
5723 osf3* | osf4* | osf5*)
5724 lt_cv_deplibs_check_method=pass_all
5725 ;;
5726
5727 rdos*)
5728 lt_cv_deplibs_check_method=pass_all
5729 ;;
5730
5731 solaris*)
5732 lt_cv_deplibs_check_method=pass_all
5733 ;;
5734
5735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5736 lt_cv_deplibs_check_method=pass_all
5737 ;;
5738
5739 sysv4 | sysv4.3*)
5740 case $host_vendor in
5741 motorola)
5742 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]'
5743 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5744 ;;
5745 ncr)
5746 lt_cv_deplibs_check_method=pass_all
5747 ;;
5748 sequent)
5749 lt_cv_file_magic_cmd='/bin/file'
5750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5751 ;;
5752 sni)
5753 lt_cv_file_magic_cmd='/bin/file'
5754 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5755 lt_cv_file_magic_test_file=/lib/libc.so
5756 ;;
5757 siemens)
5758 lt_cv_deplibs_check_method=pass_all
5759 ;;
5760 pc)
5761 lt_cv_deplibs_check_method=pass_all
5762 ;;
5763 esac
5764 ;;
5765
5766 tpf*)
5767 lt_cv_deplibs_check_method=pass_all
5768 ;;
5769 os2*)
5770 lt_cv_deplibs_check_method=pass_all
5771 ;;
5772 esac
5773
5774 fi
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5776 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5777
5778 file_magic_glob=
5779 want_nocaseglob=no
5780 if test "$build" = "$host"; then
5781 case $host_os in
5782 mingw* | pw32*)
5783 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5784 want_nocaseglob=yes
5785 else
5786 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5787 fi
5788 ;;
5789 esac
5790 fi
5791
5792 file_magic_cmd=$lt_cv_file_magic_cmd
5793 deplibs_check_method=$lt_cv_deplibs_check_method
5794 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817 if test -n "$ac_tool_prefix"; then
5818 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5819 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if ${ac_cv_prog_DLLTOOL+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 if test -n "$DLLTOOL"; then
5826 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839 done
5840 done
5841 IFS=$as_save_IFS
5842
5843 fi
5844 fi
5845 DLLTOOL=$ac_cv_prog_DLLTOOL
5846 if test -n "$DLLTOOL"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5848 $as_echo "$DLLTOOL" >&6; }
5849 else
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5852 fi
5853
5854
5855 fi
5856 if test -z "$ac_cv_prog_DLLTOOL"; then
5857 ac_ct_DLLTOOL=$DLLTOOL
5858 # Extract the first word of "dlltool", so it can be a program name with args.
5859 set dummy dlltool; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 if test -n "$ac_ct_DLLTOOL"; then
5866 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 break 2
5878 fi
5879 done
5880 done
5881 IFS=$as_save_IFS
5882
5883 fi
5884 fi
5885 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5886 if test -n "$ac_ct_DLLTOOL"; then
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5888 $as_echo "$ac_ct_DLLTOOL" >&6; }
5889 else
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5892 fi
5893
5894 if test "x$ac_ct_DLLTOOL" = x; then
5895 DLLTOOL="false"
5896 else
5897 case $cross_compiling:$ac_tool_warned in
5898 yes:)
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5901 ac_tool_warned=yes ;;
5902 esac
5903 DLLTOOL=$ac_ct_DLLTOOL
5904 fi
5905 else
5906 DLLTOOL="$ac_cv_prog_DLLTOOL"
5907 fi
5908
5909 test -z "$DLLTOOL" && DLLTOOL=dlltool
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5921 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5922 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 lt_cv_sharedlib_from_linklib_cmd='unknown'
5926
5927 case $host_os in
5928 cygwin* | mingw* | pw32* | cegcc*)
5929 # two different shell functions defined in ltmain.sh;
5930 # decide which one to use based on capabilities of $DLLTOOL
5931 case `$DLLTOOL --help 2>&1` in
5932 *--identify-strict*)
5933 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5934 ;;
5935 *)
5936 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5937 ;;
5938 esac
5939 ;;
5940 *)
5941 # fallback: assume linklib IS sharedlib
5942 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5943 ;;
5944 esac
5945
5946 fi
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5948 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5949 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5950 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5951
5952
5953
5954
5955
5956
5957
5958
5959 if test -n "$ac_tool_prefix"; then
5960 for ac_prog in ar
5961 do
5962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965 $as_echo_n "checking for $ac_word... " >&6; }
5966 if ${ac_cv_prog_AR+:} false; then :
5967 $as_echo_n "(cached) " >&6
5968 else
5969 if test -n "$AR"; then
5970 ac_cv_prog_AR="$AR" # Let the user override the test.
5971 else
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 for as_dir in $PATH
5974 do
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 break 2
5982 fi
5983 done
5984 done
5985 IFS=$as_save_IFS
5986
5987 fi
5988 fi
5989 AR=$ac_cv_prog_AR
5990 if test -n "$AR"; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5992 $as_echo "$AR" >&6; }
5993 else
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5996 fi
5997
5998
5999 test -n "$AR" && break
6000 done
6001 fi
6002 if test -z "$AR"; then
6003 ac_ct_AR=$AR
6004 for ac_prog in ar
6005 do
6006 # Extract the first word of "$ac_prog", so it can be a program name with args.
6007 set dummy $ac_prog; ac_word=$2
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009 $as_echo_n "checking for $ac_word... " >&6; }
6010 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 if test -n "$ac_ct_AR"; then
6014 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6015 else
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6018 do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023 ac_cv_prog_ac_ct_AR="$ac_prog"
6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 break 2
6026 fi
6027 done
6028 done
6029 IFS=$as_save_IFS
6030
6031 fi
6032 fi
6033 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6034 if test -n "$ac_ct_AR"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6036 $as_echo "$ac_ct_AR" >&6; }
6037 else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6040 fi
6041
6042
6043 test -n "$ac_ct_AR" && break
6044 done
6045
6046 if test "x$ac_ct_AR" = x; then
6047 AR="false"
6048 else
6049 case $cross_compiling:$ac_tool_warned in
6050 yes:)
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6053 ac_tool_warned=yes ;;
6054 esac
6055 AR=$ac_ct_AR
6056 fi
6057 fi
6058
6059 : ${AR=ar}
6060 : ${AR_FLAGS=cru}
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6073 $as_echo_n "checking for archiver @FILE support... " >&6; }
6074 if ${lt_cv_ar_at_file+:} false; then :
6075 $as_echo_n "(cached) " >&6
6076 else
6077 lt_cv_ar_at_file=no
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080
6081 int
6082 main ()
6083 {
6084
6085 ;
6086 return 0;
6087 }
6088 _ACEOF
6089 if ac_fn_c_try_compile "$LINENO"; then :
6090 echo conftest.$ac_objext > conftest.lst
6091 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6093 (eval $lt_ar_try) 2>&5
6094 ac_status=$?
6095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6096 test $ac_status = 0; }
6097 if test 0 -eq "$ac_status"; then
6098 # Ensure the archiver fails upon bogus file names.
6099 rm -f conftest.$ac_objext libconftest.a
6100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6101 (eval $lt_ar_try) 2>&5
6102 ac_status=$?
6103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6104 test $ac_status = 0; }
6105 if test 0 -ne "$ac_status"; then
6106 lt_cv_ar_at_file=@
6107 fi
6108 fi
6109 rm -f conftest.* libconftest.a
6110
6111 fi
6112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113
6114 fi
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6116 $as_echo "$lt_cv_ar_at_file" >&6; }
6117
6118 if test no = "$lt_cv_ar_at_file"; then
6119 archiver_list_spec=
6120 else
6121 archiver_list_spec=$lt_cv_ar_at_file
6122 fi
6123
6124
6125
6126
6127
6128
6129
6130 if test -n "$ac_tool_prefix"; then
6131 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6132 set dummy ${ac_tool_prefix}strip; ac_word=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if ${ac_cv_prog_STRIP+:} false; then :
6136 $as_echo_n "(cached) " >&6
6137 else
6138 if test -n "$STRIP"; then
6139 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6143 do
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 break 2
6151 fi
6152 done
6153 done
6154 IFS=$as_save_IFS
6155
6156 fi
6157 fi
6158 STRIP=$ac_cv_prog_STRIP
6159 if test -n "$STRIP"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6161 $as_echo "$STRIP" >&6; }
6162 else
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6165 fi
6166
6167
6168 fi
6169 if test -z "$ac_cv_prog_STRIP"; then
6170 ac_ct_STRIP=$STRIP
6171 # Extract the first word of "strip", so it can be a program name with args.
6172 set dummy strip; ac_word=$2
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174 $as_echo_n "checking for $ac_word... " >&6; }
6175 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 if test -n "$ac_ct_STRIP"; then
6179 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6180 else
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6183 do
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6188 ac_cv_prog_ac_ct_STRIP="strip"
6189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 break 2
6191 fi
6192 done
6193 done
6194 IFS=$as_save_IFS
6195
6196 fi
6197 fi
6198 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6199 if test -n "$ac_ct_STRIP"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6201 $as_echo "$ac_ct_STRIP" >&6; }
6202 else
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 $as_echo "no" >&6; }
6205 fi
6206
6207 if test "x$ac_ct_STRIP" = x; then
6208 STRIP=":"
6209 else
6210 case $cross_compiling:$ac_tool_warned in
6211 yes:)
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6214 ac_tool_warned=yes ;;
6215 esac
6216 STRIP=$ac_ct_STRIP
6217 fi
6218 else
6219 STRIP="$ac_cv_prog_STRIP"
6220 fi
6221
6222 test -z "$STRIP" && STRIP=:
6223
6224
6225
6226
6227
6228
6229 if test -n "$ac_tool_prefix"; then
6230 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6231 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233 $as_echo_n "checking for $ac_word... " >&6; }
6234 if ${ac_cv_prog_RANLIB+:} false; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 if test -n "$RANLIB"; then
6238 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6247 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 break 2
6250 fi
6251 done
6252 done
6253 IFS=$as_save_IFS
6254
6255 fi
6256 fi
6257 RANLIB=$ac_cv_prog_RANLIB
6258 if test -n "$RANLIB"; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6260 $as_echo "$RANLIB" >&6; }
6261 else
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6264 fi
6265
6266
6267 fi
6268 if test -z "$ac_cv_prog_RANLIB"; then
6269 ac_ct_RANLIB=$RANLIB
6270 # Extract the first word of "ranlib", so it can be a program name with args.
6271 set dummy ranlib; ac_word=$2
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6273 $as_echo_n "checking for $ac_word... " >&6; }
6274 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6275 $as_echo_n "(cached) " >&6
6276 else
6277 if test -n "$ac_ct_RANLIB"; then
6278 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6287 ac_cv_prog_ac_ct_RANLIB="ranlib"
6288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 break 2
6290 fi
6291 done
6292 done
6293 IFS=$as_save_IFS
6294
6295 fi
6296 fi
6297 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6298 if test -n "$ac_ct_RANLIB"; then
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6300 $as_echo "$ac_ct_RANLIB" >&6; }
6301 else
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303 $as_echo "no" >&6; }
6304 fi
6305
6306 if test "x$ac_ct_RANLIB" = x; then
6307 RANLIB=":"
6308 else
6309 case $cross_compiling:$ac_tool_warned in
6310 yes:)
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6313 ac_tool_warned=yes ;;
6314 esac
6315 RANLIB=$ac_ct_RANLIB
6316 fi
6317 else
6318 RANLIB="$ac_cv_prog_RANLIB"
6319 fi
6320
6321 test -z "$RANLIB" && RANLIB=:
6322
6323
6324
6325
6326
6327
6328 # Determine commands to create old-style static archives.
6329 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6330 old_postinstall_cmds='chmod 644 $oldlib'
6331 old_postuninstall_cmds=
6332
6333 if test -n "$RANLIB"; then
6334 case $host_os in
6335 bitrig* | openbsd*)
6336 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6337 ;;
6338 *)
6339 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6340 ;;
6341 esac
6342 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6343 fi
6344
6345 case $host_os in
6346 darwin*)
6347 lock_old_archive_extraction=yes ;;
6348 *)
6349 lock_old_archive_extraction=no ;;
6350 esac
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390 # If no C compiler was specified, use CC.
6391 LTCC=${LTCC-"$CC"}
6392
6393 # If no C compiler flags were specified, use CFLAGS.
6394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6395
6396 # Allow CC to be a program name with arguments.
6397 compiler=$CC
6398
6399
6400 # Check for command to grab the raw symbol name followed by C symbol from nm.
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6402 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6403 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406
6407 # These are sane defaults that work on at least a few old systems.
6408 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6409
6410 # Character class describing NM global symbol codes.
6411 symcode='[BCDEGRST]'
6412
6413 # Regexp to match symbols that can be accessed directly from C.
6414 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6415
6416 # Define system-specific variables.
6417 case $host_os in
6418 aix*)
6419 symcode='[BCDT]'
6420 ;;
6421 cygwin* | mingw* | pw32* | cegcc*)
6422 symcode='[ABCDGISTW]'
6423 ;;
6424 hpux*)
6425 if test ia64 = "$host_cpu"; then
6426 symcode='[ABCDEGRST]'
6427 fi
6428 ;;
6429 irix* | nonstopux*)
6430 symcode='[BCDEGRST]'
6431 ;;
6432 osf*)
6433 symcode='[BCDEGQRST]'
6434 ;;
6435 solaris*)
6436 symcode='[BDRT]'
6437 ;;
6438 sco3.2v5*)
6439 symcode='[DT]'
6440 ;;
6441 sysv4.2uw2*)
6442 symcode='[DT]'
6443 ;;
6444 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6445 symcode='[ABDT]'
6446 ;;
6447 sysv4)
6448 symcode='[DFNSTU]'
6449 ;;
6450 esac
6451
6452 # If we're using GNU nm, then use its standard symbol codes.
6453 case `$NM -V 2>&1` in
6454 *GNU* | *'with BFD'*)
6455 symcode='[ABCDGIRSTW]' ;;
6456 esac
6457
6458 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6459 # Gets list of data symbols to import.
6460 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6461 # Adjust the below global symbol transforms to fixup imported variables.
6462 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6463 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6464 lt_c_name_lib_hook="\
6465 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6466 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6467 else
6468 # Disable hooks by default.
6469 lt_cv_sys_global_symbol_to_import=
6470 lt_cdecl_hook=
6471 lt_c_name_hook=
6472 lt_c_name_lib_hook=
6473 fi
6474
6475 # Transform an extracted symbol line into a proper C declaration.
6476 # Some systems (esp. on ia64) link data and code symbols differently,
6477 # so use this general approach.
6478 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6479 $lt_cdecl_hook\
6480 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6481 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6482
6483 # Transform an extracted symbol line into symbol name and symbol address
6484 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6485 $lt_c_name_hook\
6486 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6487 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6488
6489 # Transform an extracted symbol line into symbol name with lib prefix and
6490 # symbol address.
6491 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6492 $lt_c_name_lib_hook\
6493 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6494 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6495 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6496
6497 # Handle CRLF in mingw tool chain
6498 opt_cr=
6499 case $build_os in
6500 mingw*)
6501 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6502 ;;
6503 esac
6504
6505 # Try without a prefix underscore, then with it.
6506 for ac_symprfx in "" "_"; do
6507
6508 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6509 symxfrm="\\1 $ac_symprfx\\2 \\2"
6510
6511 # Write the raw and C identifiers.
6512 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6513 # Fake it for dumpbin and say T for any non-static function,
6514 # D for any global variable and I for any imported variable.
6515 # Also find C++ and __fastcall symbols from MSVC++,
6516 # which start with @ or ?.
6517 lt_cv_sys_global_symbol_pipe="$AWK '"\
6518 " {last_section=section; section=\$ 3};"\
6519 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6520 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6521 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6522 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6523 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6524 " \$ 0!~/External *\|/{next};"\
6525 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6526 " {if(hide[section]) next};"\
6527 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6528 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6529 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6530 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6531 " ' prfx=^$ac_symprfx"
6532 else
6533 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6534 fi
6535 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6536
6537 # Check to see that the pipe works correctly.
6538 pipe_works=no
6539
6540 rm -f conftest*
6541 cat > conftest.$ac_ext <<_LT_EOF
6542 #ifdef __cplusplus
6543 extern "C" {
6544 #endif
6545 char nm_test_var;
6546 void nm_test_func(void);
6547 void nm_test_func(void){}
6548 #ifdef __cplusplus
6549 }
6550 #endif
6551 int main(){nm_test_var='a';nm_test_func();return(0);}
6552 _LT_EOF
6553
6554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6555 (eval $ac_compile) 2>&5
6556 ac_status=$?
6557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6558 test $ac_status = 0; }; then
6559 # Now try to grab the symbols.
6560 nlist=conftest.nm
6561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6562 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6563 ac_status=$?
6564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6565 test $ac_status = 0; } && test -s "$nlist"; then
6566 # Try sorting and uniquifying the output.
6567 if sort "$nlist" | uniq > "$nlist"T; then
6568 mv -f "$nlist"T "$nlist"
6569 else
6570 rm -f "$nlist"T
6571 fi
6572
6573 # Make sure that we snagged all the symbols we need.
6574 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6575 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6576 cat <<_LT_EOF > conftest.$ac_ext
6577 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6578 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6579 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6580 relocations are performed -- see ld's documentation on pseudo-relocs. */
6581 # define LT_DLSYM_CONST
6582 #elif defined __osf__
6583 /* This system does not cope well with relocations in const data. */
6584 # define LT_DLSYM_CONST
6585 #else
6586 # define LT_DLSYM_CONST const
6587 #endif
6588
6589 #ifdef __cplusplus
6590 extern "C" {
6591 #endif
6592
6593 _LT_EOF
6594 # Now generate the symbol file.
6595 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6596
6597 cat <<_LT_EOF >> conftest.$ac_ext
6598
6599 /* The mapping between symbol names and symbols. */
6600 LT_DLSYM_CONST struct {
6601 const char *name;
6602 void *address;
6603 }
6604 lt__PROGRAM__LTX_preloaded_symbols[] =
6605 {
6606 { "@PROGRAM@", (void *) 0 },
6607 _LT_EOF
6608 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6609 cat <<\_LT_EOF >> conftest.$ac_ext
6610 {0, (void *) 0}
6611 };
6612
6613 /* This works around a problem in FreeBSD linker */
6614 #ifdef FREEBSD_WORKAROUND
6615 static const void *lt_preloaded_setup() {
6616 return lt__PROGRAM__LTX_preloaded_symbols;
6617 }
6618 #endif
6619
6620 #ifdef __cplusplus
6621 }
6622 #endif
6623 _LT_EOF
6624 # Now try linking the two files.
6625 mv conftest.$ac_objext conftstm.$ac_objext
6626 lt_globsym_save_LIBS=$LIBS
6627 lt_globsym_save_CFLAGS=$CFLAGS
6628 LIBS=conftstm.$ac_objext
6629 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6631 (eval $ac_link) 2>&5
6632 ac_status=$?
6633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6634 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6635 pipe_works=yes
6636 fi
6637 LIBS=$lt_globsym_save_LIBS
6638 CFLAGS=$lt_globsym_save_CFLAGS
6639 else
6640 echo "cannot find nm_test_func in $nlist" >&5
6641 fi
6642 else
6643 echo "cannot find nm_test_var in $nlist" >&5
6644 fi
6645 else
6646 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6647 fi
6648 else
6649 echo "$progname: failed program was:" >&5
6650 cat conftest.$ac_ext >&5
6651 fi
6652 rm -rf conftest* conftst*
6653
6654 # Do not use the global_symbol_pipe unless it works.
6655 if test yes = "$pipe_works"; then
6656 break
6657 else
6658 lt_cv_sys_global_symbol_pipe=
6659 fi
6660 done
6661
6662 fi
6663
6664 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6665 lt_cv_sys_global_symbol_to_cdecl=
6666 fi
6667 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6669 $as_echo "failed" >&6; }
6670 else
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6672 $as_echo "ok" >&6; }
6673 fi
6674
6675 # Response file support.
6676 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6677 nm_file_list_spec='@'
6678 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6679 nm_file_list_spec='@'
6680 fi
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6719 $as_echo_n "checking for sysroot... " >&6; }
6720
6721 # Check whether --with-sysroot was given.
6722 if test "${with_sysroot+set}" = set; then :
6723 withval=$with_sysroot;
6724 else
6725 with_sysroot=no
6726 fi
6727
6728
6729 lt_sysroot=
6730 case $with_sysroot in #(
6731 yes)
6732 if test yes = "$GCC"; then
6733 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6734 fi
6735 ;; #(
6736 /*)
6737 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6738 ;; #(
6739 no|'')
6740 ;; #(
6741 *)
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6743 $as_echo "$with_sysroot" >&6; }
6744 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6745 ;;
6746 esac
6747
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6749 $as_echo "${lt_sysroot:-no}" >&6; }
6750
6751
6752
6753
6754
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6756 $as_echo_n "checking for a working dd... " >&6; }
6757 if ${ac_cv_path_lt_DD+:} false; then :
6758 $as_echo_n "(cached) " >&6
6759 else
6760 printf 0123456789abcdef0123456789abcdef >conftest.i
6761 cat conftest.i conftest.i >conftest2.i
6762 : ${lt_DD:=$DD}
6763 if test -z "$lt_DD"; then
6764 ac_path_lt_DD_found=false
6765 # Loop through the user's path and test for each of PROGNAME-LIST
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_prog in dd; do
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6774 as_fn_executable_p "$ac_path_lt_DD" || continue
6775 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6776 cmp -s conftest.i conftest.out \
6777 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6778 fi
6779 $ac_path_lt_DD_found && break 3
6780 done
6781 done
6782 done
6783 IFS=$as_save_IFS
6784 if test -z "$ac_cv_path_lt_DD"; then
6785 :
6786 fi
6787 else
6788 ac_cv_path_lt_DD=$lt_DD
6789 fi
6790
6791 rm -f conftest.i conftest2.i conftest.out
6792 fi
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6794 $as_echo "$ac_cv_path_lt_DD" >&6; }
6795
6796
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6798 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6799 if ${lt_cv_truncate_bin+:} false; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 printf 0123456789abcdef0123456789abcdef >conftest.i
6803 cat conftest.i conftest.i >conftest2.i
6804 lt_cv_truncate_bin=
6805 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6806 cmp -s conftest.i conftest.out \
6807 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6808 fi
6809 rm -f conftest.i conftest2.i conftest.out
6810 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6811 fi
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6813 $as_echo "$lt_cv_truncate_bin" >&6; }
6814
6815
6816
6817
6818
6819
6820
6821 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6822 func_cc_basename ()
6823 {
6824 for cc_temp in $*""; do
6825 case $cc_temp in
6826 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6827 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6828 \-*) ;;
6829 *) break;;
6830 esac
6831 done
6832 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6833 }
6834
6835 # Check whether --enable-libtool-lock was given.
6836 if test "${enable_libtool_lock+set}" = set; then :
6837 enableval=$enable_libtool_lock;
6838 fi
6839
6840 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6841
6842 # Some flags need to be propagated to the compiler or linker for good
6843 # libtool support.
6844 case $host in
6845 ia64-*-hpux*)
6846 # Find out what ABI is being produced by ac_compile, and set mode
6847 # options accordingly.
6848 echo 'int i;' > conftest.$ac_ext
6849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6850 (eval $ac_compile) 2>&5
6851 ac_status=$?
6852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6853 test $ac_status = 0; }; then
6854 case `/usr/bin/file conftest.$ac_objext` in
6855 *ELF-32*)
6856 HPUX_IA64_MODE=32
6857 ;;
6858 *ELF-64*)
6859 HPUX_IA64_MODE=64
6860 ;;
6861 esac
6862 fi
6863 rm -rf conftest*
6864 ;;
6865 *-*-irix6*)
6866 # Find out what ABI is being produced by ac_compile, and set linker
6867 # options accordingly.
6868 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6870 (eval $ac_compile) 2>&5
6871 ac_status=$?
6872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6873 test $ac_status = 0; }; then
6874 if test yes = "$lt_cv_prog_gnu_ld"; then
6875 case `/usr/bin/file conftest.$ac_objext` in
6876 *32-bit*)
6877 LD="${LD-ld} -melf32bsmip"
6878 ;;
6879 *N32*)
6880 LD="${LD-ld} -melf32bmipn32"
6881 ;;
6882 *64-bit*)
6883 LD="${LD-ld} -melf64bmip"
6884 ;;
6885 esac
6886 else
6887 case `/usr/bin/file conftest.$ac_objext` in
6888 *32-bit*)
6889 LD="${LD-ld} -32"
6890 ;;
6891 *N32*)
6892 LD="${LD-ld} -n32"
6893 ;;
6894 *64-bit*)
6895 LD="${LD-ld} -64"
6896 ;;
6897 esac
6898 fi
6899 fi
6900 rm -rf conftest*
6901 ;;
6902
6903 mips64*-*linux*)
6904 # Find out what ABI is being produced by ac_compile, and set linker
6905 # options accordingly.
6906 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6908 (eval $ac_compile) 2>&5
6909 ac_status=$?
6910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6911 test $ac_status = 0; }; then
6912 emul=elf
6913 case `/usr/bin/file conftest.$ac_objext` in
6914 *32-bit*)
6915 emul="${emul}32"
6916 ;;
6917 *64-bit*)
6918 emul="${emul}64"
6919 ;;
6920 esac
6921 case `/usr/bin/file conftest.$ac_objext` in
6922 *MSB*)
6923 emul="${emul}btsmip"
6924 ;;
6925 *LSB*)
6926 emul="${emul}ltsmip"
6927 ;;
6928 esac
6929 case `/usr/bin/file conftest.$ac_objext` in
6930 *N32*)
6931 emul="${emul}n32"
6932 ;;
6933 esac
6934 LD="${LD-ld} -m $emul"
6935 fi
6936 rm -rf conftest*
6937 ;;
6938
6939 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6940 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6941 # Find out what ABI is being produced by ac_compile, and set linker
6942 # options accordingly. Note that the listed cases only cover the
6943 # situations where additional linker options are needed (such as when
6944 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6945 # vice versa); the common cases where no linker options are needed do
6946 # not appear in the list.
6947 echo 'int i;' > conftest.$ac_ext
6948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6949 (eval $ac_compile) 2>&5
6950 ac_status=$?
6951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6952 test $ac_status = 0; }; then
6953 case `/usr/bin/file conftest.o` in
6954 *32-bit*)
6955 case $host in
6956 x86_64-*kfreebsd*-gnu)
6957 LD="${LD-ld} -m elf_i386_fbsd"
6958 ;;
6959 x86_64-*linux*)
6960 case `/usr/bin/file conftest.o` in
6961 *x86-64*)
6962 LD="${LD-ld} -m elf32_x86_64"
6963 ;;
6964 *)
6965 LD="${LD-ld} -m elf_i386"
6966 ;;
6967 esac
6968 ;;
6969 powerpc64le-*linux*)
6970 LD="${LD-ld} -m elf32lppclinux"
6971 ;;
6972 powerpc64-*linux*)
6973 LD="${LD-ld} -m elf32ppclinux"
6974 ;;
6975 s390x-*linux*)
6976 LD="${LD-ld} -m elf_s390"
6977 ;;
6978 sparc64-*linux*)
6979 LD="${LD-ld} -m elf32_sparc"
6980 ;;
6981 esac
6982 ;;
6983 *64-bit*)
6984 case $host in
6985 x86_64-*kfreebsd*-gnu)
6986 LD="${LD-ld} -m elf_x86_64_fbsd"
6987 ;;
6988 x86_64-*linux*)
6989 LD="${LD-ld} -m elf_x86_64"
6990 ;;
6991 powerpcle-*linux*)
6992 LD="${LD-ld} -m elf64lppc"
6993 ;;
6994 powerpc-*linux*)
6995 LD="${LD-ld} -m elf64ppc"
6996 ;;
6997 s390*-*linux*|s390*-*tpf*)
6998 LD="${LD-ld} -m elf64_s390"
6999 ;;
7000 sparc*-*linux*)
7001 LD="${LD-ld} -m elf64_sparc"
7002 ;;
7003 esac
7004 ;;
7005 esac
7006 fi
7007 rm -rf conftest*
7008 ;;
7009
7010 *-*-sco3.2v5*)
7011 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7012 SAVE_CFLAGS=$CFLAGS
7013 CFLAGS="$CFLAGS -belf"
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7015 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7016 if ${lt_cv_cc_needs_belf+:} false; then :
7017 $as_echo_n "(cached) " >&6
7018 else
7019 ac_ext=c
7020 ac_cpp='$CPP $CPPFLAGS'
7021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7024
7025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026 /* end confdefs.h. */
7027
7028 int
7029 main ()
7030 {
7031
7032 ;
7033 return 0;
7034 }
7035 _ACEOF
7036 if ac_fn_c_try_link "$LINENO"; then :
7037 lt_cv_cc_needs_belf=yes
7038 else
7039 lt_cv_cc_needs_belf=no
7040 fi
7041 rm -f core conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
7043 ac_ext=c
7044 ac_cpp='$CPP $CPPFLAGS'
7045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7048
7049 fi
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7051 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7052 if test yes != "$lt_cv_cc_needs_belf"; then
7053 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7054 CFLAGS=$SAVE_CFLAGS
7055 fi
7056 ;;
7057 *-*solaris*)
7058 # Find out what ABI is being produced by ac_compile, and set linker
7059 # options accordingly.
7060 echo 'int i;' > conftest.$ac_ext
7061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7062 (eval $ac_compile) 2>&5
7063 ac_status=$?
7064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7065 test $ac_status = 0; }; then
7066 case `/usr/bin/file conftest.o` in
7067 *64-bit*)
7068 case $lt_cv_prog_gnu_ld in
7069 yes*)
7070 case $host in
7071 i?86-*-solaris*|x86_64-*-solaris*)
7072 LD="${LD-ld} -m elf_x86_64"
7073 ;;
7074 sparc*-*-solaris*)
7075 LD="${LD-ld} -m elf64_sparc"
7076 ;;
7077 esac
7078 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7079 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7080 LD=${LD-ld}_sol2
7081 fi
7082 ;;
7083 *)
7084 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7085 LD="${LD-ld} -64"
7086 fi
7087 ;;
7088 esac
7089 ;;
7090 esac
7091 fi
7092 rm -rf conftest*
7093 ;;
7094 esac
7095
7096 need_locks=$enable_libtool_lock
7097
7098 if test -n "$ac_tool_prefix"; then
7099 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7100 set dummy ${ac_tool_prefix}mt; ac_word=$2
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102 $as_echo_n "checking for $ac_word... " >&6; }
7103 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7104 $as_echo_n "(cached) " >&6
7105 else
7106 if test -n "$MANIFEST_TOOL"; then
7107 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7108 else
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7116 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 break 2
7119 fi
7120 done
7121 done
7122 IFS=$as_save_IFS
7123
7124 fi
7125 fi
7126 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7127 if test -n "$MANIFEST_TOOL"; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7129 $as_echo "$MANIFEST_TOOL" >&6; }
7130 else
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7133 fi
7134
7135
7136 fi
7137 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7138 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7139 # Extract the first word of "mt", so it can be a program name with args.
7140 set dummy mt; ac_word=$2
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142 $as_echo_n "checking for $ac_word... " >&6; }
7143 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 if test -n "$ac_ct_MANIFEST_TOOL"; then
7147 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7148 else
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7151 do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7159 fi
7160 done
7161 done
7162 IFS=$as_save_IFS
7163
7164 fi
7165 fi
7166 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7167 if test -n "$ac_ct_MANIFEST_TOOL"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7169 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7170 else
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 $as_echo "no" >&6; }
7173 fi
7174
7175 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7176 MANIFEST_TOOL=":"
7177 else
7178 case $cross_compiling:$ac_tool_warned in
7179 yes:)
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7182 ac_tool_warned=yes ;;
7183 esac
7184 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7185 fi
7186 else
7187 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7188 fi
7189
7190 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7192 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7193 if ${lt_cv_path_mainfest_tool+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 lt_cv_path_mainfest_tool=no
7197 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7198 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7199 cat conftest.err >&5
7200 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7201 lt_cv_path_mainfest_tool=yes
7202 fi
7203 rm -f conftest*
7204 fi
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7206 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7207 if test yes != "$lt_cv_path_mainfest_tool"; then
7208 MANIFEST_TOOL=:
7209 fi
7210
7211
7212
7213
7214
7215
7216 case $host_os in
7217 rhapsody* | darwin*)
7218 if test -n "$ac_tool_prefix"; then
7219 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7220 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 if test -n "$DSYMUTIL"; then
7227 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7228 else
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 break 2
7239 fi
7240 done
7241 done
7242 IFS=$as_save_IFS
7243
7244 fi
7245 fi
7246 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7247 if test -n "$DSYMUTIL"; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7249 $as_echo "$DSYMUTIL" >&6; }
7250 else
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7253 fi
7254
7255
7256 fi
7257 if test -z "$ac_cv_prog_DSYMUTIL"; then
7258 ac_ct_DSYMUTIL=$DSYMUTIL
7259 # Extract the first word of "dsymutil", so it can be a program name with args.
7260 set dummy dsymutil; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266 if test -n "$ac_ct_DSYMUTIL"; then
7267 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 break 2
7279 fi
7280 done
7281 done
7282 IFS=$as_save_IFS
7283
7284 fi
7285 fi
7286 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7287 if test -n "$ac_ct_DSYMUTIL"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7289 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7290 else
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7293 fi
7294
7295 if test "x$ac_ct_DSYMUTIL" = x; then
7296 DSYMUTIL=":"
7297 else
7298 case $cross_compiling:$ac_tool_warned in
7299 yes:)
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7302 ac_tool_warned=yes ;;
7303 esac
7304 DSYMUTIL=$ac_ct_DSYMUTIL
7305 fi
7306 else
7307 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7308 fi
7309
7310 if test -n "$ac_tool_prefix"; then
7311 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7312 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if ${ac_cv_prog_NMEDIT+:} false; then :
7316 $as_echo_n "(cached) " >&6
7317 else
7318 if test -n "$NMEDIT"; then
7319 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7320 else
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7323 do
7324 IFS=$as_save_IFS
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 break 2
7331 fi
7332 done
7333 done
7334 IFS=$as_save_IFS
7335
7336 fi
7337 fi
7338 NMEDIT=$ac_cv_prog_NMEDIT
7339 if test -n "$NMEDIT"; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7341 $as_echo "$NMEDIT" >&6; }
7342 else
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7345 fi
7346
7347
7348 fi
7349 if test -z "$ac_cv_prog_NMEDIT"; then
7350 ac_ct_NMEDIT=$NMEDIT
7351 # Extract the first word of "nmedit", so it can be a program name with args.
7352 set dummy nmedit; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7356 $as_echo_n "(cached) " >&6
7357 else
7358 if test -n "$ac_ct_NMEDIT"; then
7359 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7360 else
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364 IFS=$as_save_IFS
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 break 2
7371 fi
7372 done
7373 done
7374 IFS=$as_save_IFS
7375
7376 fi
7377 fi
7378 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7379 if test -n "$ac_ct_NMEDIT"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7381 $as_echo "$ac_ct_NMEDIT" >&6; }
7382 else
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7385 fi
7386
7387 if test "x$ac_ct_NMEDIT" = x; then
7388 NMEDIT=":"
7389 else
7390 case $cross_compiling:$ac_tool_warned in
7391 yes:)
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7394 ac_tool_warned=yes ;;
7395 esac
7396 NMEDIT=$ac_ct_NMEDIT
7397 fi
7398 else
7399 NMEDIT="$ac_cv_prog_NMEDIT"
7400 fi
7401
7402 if test -n "$ac_tool_prefix"; then
7403 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7404 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406 $as_echo_n "checking for $ac_word... " >&6; }
7407 if ${ac_cv_prog_LIPO+:} false; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 if test -n "$LIPO"; then
7411 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7412 else
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7415 do
7416 IFS=$as_save_IFS
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 break 2
7423 fi
7424 done
7425 done
7426 IFS=$as_save_IFS
7427
7428 fi
7429 fi
7430 LIPO=$ac_cv_prog_LIPO
7431 if test -n "$LIPO"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7433 $as_echo "$LIPO" >&6; }
7434 else
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7437 fi
7438
7439
7440 fi
7441 if test -z "$ac_cv_prog_LIPO"; then
7442 ac_ct_LIPO=$LIPO
7443 # Extract the first word of "lipo", so it can be a program name with args.
7444 set dummy lipo; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450 if test -n "$ac_ct_LIPO"; then
7451 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460 ac_cv_prog_ac_ct_LIPO="lipo"
7461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 break 2
7463 fi
7464 done
7465 done
7466 IFS=$as_save_IFS
7467
7468 fi
7469 fi
7470 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7471 if test -n "$ac_ct_LIPO"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7473 $as_echo "$ac_ct_LIPO" >&6; }
7474 else
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7477 fi
7478
7479 if test "x$ac_ct_LIPO" = x; then
7480 LIPO=":"
7481 else
7482 case $cross_compiling:$ac_tool_warned in
7483 yes:)
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7486 ac_tool_warned=yes ;;
7487 esac
7488 LIPO=$ac_ct_LIPO
7489 fi
7490 else
7491 LIPO="$ac_cv_prog_LIPO"
7492 fi
7493
7494 if test -n "$ac_tool_prefix"; then
7495 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7496 set dummy ${ac_tool_prefix}otool; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_prog_OTOOL+:} false; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 if test -n "$OTOOL"; then
7503 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7504 else
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7507 do
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 break 2
7515 fi
7516 done
7517 done
7518 IFS=$as_save_IFS
7519
7520 fi
7521 fi
7522 OTOOL=$ac_cv_prog_OTOOL
7523 if test -n "$OTOOL"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7525 $as_echo "$OTOOL" >&6; }
7526 else
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7529 fi
7530
7531
7532 fi
7533 if test -z "$ac_cv_prog_OTOOL"; then
7534 ac_ct_OTOOL=$OTOOL
7535 # Extract the first word of "otool", so it can be a program name with args.
7536 set dummy otool; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7540 $as_echo_n "(cached) " >&6
7541 else
7542 if test -n "$ac_ct_OTOOL"; then
7543 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7544 else
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548 IFS=$as_save_IFS
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552 ac_cv_prog_ac_ct_OTOOL="otool"
7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 break 2
7555 fi
7556 done
7557 done
7558 IFS=$as_save_IFS
7559
7560 fi
7561 fi
7562 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7563 if test -n "$ac_ct_OTOOL"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7565 $as_echo "$ac_ct_OTOOL" >&6; }
7566 else
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7569 fi
7570
7571 if test "x$ac_ct_OTOOL" = x; then
7572 OTOOL=":"
7573 else
7574 case $cross_compiling:$ac_tool_warned in
7575 yes:)
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7578 ac_tool_warned=yes ;;
7579 esac
7580 OTOOL=$ac_ct_OTOOL
7581 fi
7582 else
7583 OTOOL="$ac_cv_prog_OTOOL"
7584 fi
7585
7586 if test -n "$ac_tool_prefix"; then
7587 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7588 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590 $as_echo_n "checking for $ac_word... " >&6; }
7591 if ${ac_cv_prog_OTOOL64+:} false; then :
7592 $as_echo_n "(cached) " >&6
7593 else
7594 if test -n "$OTOOL64"; then
7595 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7596 else
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7604 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 break 2
7607 fi
7608 done
7609 done
7610 IFS=$as_save_IFS
7611
7612 fi
7613 fi
7614 OTOOL64=$ac_cv_prog_OTOOL64
7615 if test -n "$OTOOL64"; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7617 $as_echo "$OTOOL64" >&6; }
7618 else
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7621 fi
7622
7623
7624 fi
7625 if test -z "$ac_cv_prog_OTOOL64"; then
7626 ac_ct_OTOOL64=$OTOOL64
7627 # Extract the first word of "otool64", so it can be a program name with args.
7628 set dummy otool64; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 if test -n "$ac_ct_OTOOL64"; then
7635 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7636 else
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7639 do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644 ac_cv_prog_ac_ct_OTOOL64="otool64"
7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 break 2
7647 fi
7648 done
7649 done
7650 IFS=$as_save_IFS
7651
7652 fi
7653 fi
7654 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7655 if test -n "$ac_ct_OTOOL64"; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7657 $as_echo "$ac_ct_OTOOL64" >&6; }
7658 else
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7661 fi
7662
7663 if test "x$ac_ct_OTOOL64" = x; then
7664 OTOOL64=":"
7665 else
7666 case $cross_compiling:$ac_tool_warned in
7667 yes:)
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7670 ac_tool_warned=yes ;;
7671 esac
7672 OTOOL64=$ac_ct_OTOOL64
7673 fi
7674 else
7675 OTOOL64="$ac_cv_prog_OTOOL64"
7676 fi
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7705 $as_echo_n "checking for -single_module linker flag... " >&6; }
7706 if ${lt_cv_apple_cc_single_mod+:} false; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709 lt_cv_apple_cc_single_mod=no
7710 if test -z "$LT_MULTI_MODULE"; then
7711 # By default we will add the -single_module flag. You can override
7712 # by either setting the environment variable LT_MULTI_MODULE
7713 # non-empty at configure time, or by adding -multi_module to the
7714 # link flags.
7715 rm -rf libconftest.dylib*
7716 echo "int foo(void){return 1;}" > conftest.c
7717 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7718 -dynamiclib -Wl,-single_module conftest.c" >&5
7719 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7720 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7721 _lt_result=$?
7722 # If there is a non-empty error log, and "single_module"
7723 # appears in it, assume the flag caused a linker warning
7724 if test -s conftest.err && $GREP single_module conftest.err; then
7725 cat conftest.err >&5
7726 # Otherwise, if the output was created with a 0 exit code from
7727 # the compiler, it worked.
7728 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7729 lt_cv_apple_cc_single_mod=yes
7730 else
7731 cat conftest.err >&5
7732 fi
7733 rm -rf libconftest.dylib*
7734 rm -f conftest.*
7735 fi
7736 fi
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7738 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7739
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7741 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7742 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7743 $as_echo_n "(cached) " >&6
7744 else
7745 lt_cv_ld_exported_symbols_list=no
7746 save_LDFLAGS=$LDFLAGS
7747 echo "_main" > conftest.sym
7748 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750 /* end confdefs.h. */
7751
7752 int
7753 main ()
7754 {
7755
7756 ;
7757 return 0;
7758 }
7759 _ACEOF
7760 if ac_fn_c_try_link "$LINENO"; then :
7761 lt_cv_ld_exported_symbols_list=yes
7762 else
7763 lt_cv_ld_exported_symbols_list=no
7764 fi
7765 rm -f core conftest.err conftest.$ac_objext \
7766 conftest$ac_exeext conftest.$ac_ext
7767 LDFLAGS=$save_LDFLAGS
7768
7769 fi
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7771 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7772
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7774 $as_echo_n "checking for -force_load linker flag... " >&6; }
7775 if ${lt_cv_ld_force_load+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 lt_cv_ld_force_load=no
7779 cat > conftest.c << _LT_EOF
7780 int forced_loaded() { return 2;}
7781 _LT_EOF
7782 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7783 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7784 echo "$AR cru libconftest.a conftest.o" >&5
7785 $AR cru libconftest.a conftest.o 2>&5
7786 echo "$RANLIB libconftest.a" >&5
7787 $RANLIB libconftest.a 2>&5
7788 cat > conftest.c << _LT_EOF
7789 int main() { return 0;}
7790 _LT_EOF
7791 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7792 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7793 _lt_result=$?
7794 if test -s conftest.err && $GREP force_load conftest.err; then
7795 cat conftest.err >&5
7796 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7797 lt_cv_ld_force_load=yes
7798 else
7799 cat conftest.err >&5
7800 fi
7801 rm -f conftest.err libconftest.a conftest conftest.c
7802 rm -rf conftest.dSYM
7803
7804 fi
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7806 $as_echo "$lt_cv_ld_force_load" >&6; }
7807 case $host_os in
7808 rhapsody* | darwin1.[012])
7809 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7810 darwin1.*)
7811 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7812 darwin*) # darwin 5.x on
7813 # if running on 10.5 or later, the deployment target defaults
7814 # to the OS version, if on x86, and 10.4, the deployment
7815 # target defaults to 10.4. Don't you love it?
7816 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7817 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7818 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7819 10.[012][,.]*)
7820 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7821 10.*)
7822 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7823 esac
7824 ;;
7825 esac
7826 if test yes = "$lt_cv_apple_cc_single_mod"; then
7827 _lt_dar_single_mod='$single_module'
7828 fi
7829 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7830 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7831 else
7832 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7833 fi
7834 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7835 _lt_dsymutil='~$DSYMUTIL $lib || :'
7836 else
7837 _lt_dsymutil=
7838 fi
7839 ;;
7840 esac
7841
7842 # func_munge_path_list VARIABLE PATH
7843 # -----------------------------------
7844 # VARIABLE is name of variable containing _space_ separated list of
7845 # directories to be munged by the contents of PATH, which is string
7846 # having a format:
7847 # "DIR[:DIR]:"
7848 # string "DIR[ DIR]" will be prepended to VARIABLE
7849 # ":DIR[:DIR]"
7850 # string "DIR[ DIR]" will be appended to VARIABLE
7851 # "DIRP[:DIRP]::[DIRA:]DIRA"
7852 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7853 # "DIRA[ DIRA]" will be appended to VARIABLE
7854 # "DIR[:DIR]"
7855 # VARIABLE will be replaced by "DIR[ DIR]"
7856 func_munge_path_list ()
7857 {
7858 case x$2 in
7859 x)
7860 ;;
7861 *:)
7862 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7863 ;;
7864 x:*)
7865 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7866 ;;
7867 *::*)
7868 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7869 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7870 ;;
7871 *)
7872 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7873 ;;
7874 esac
7875 }
7876
7877
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7879 $as_echo_n "checking for ANSI C header files... " >&6; }
7880 if ${ac_cv_header_stdc+:} false; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7885 #include <stdlib.h>
7886 #include <stdarg.h>
7887 #include <string.h>
7888 #include <float.h>
7889
7890 int
7891 main ()
7892 {
7893
7894 ;
7895 return 0;
7896 }
7897 _ACEOF
7898 if ac_fn_c_try_compile "$LINENO"; then :
7899 ac_cv_header_stdc=yes
7900 else
7901 ac_cv_header_stdc=no
7902 fi
7903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7904
7905 if test $ac_cv_header_stdc = yes; then
7906 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7909 #include <string.h>
7910
7911 _ACEOF
7912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7913 $EGREP "memchr" >/dev/null 2>&1; then :
7914
7915 else
7916 ac_cv_header_stdc=no
7917 fi
7918 rm -f conftest*
7919
7920 fi
7921
7922 if test $ac_cv_header_stdc = yes; then
7923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7926 #include <stdlib.h>
7927
7928 _ACEOF
7929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7930 $EGREP "free" >/dev/null 2>&1; then :
7931
7932 else
7933 ac_cv_header_stdc=no
7934 fi
7935 rm -f conftest*
7936
7937 fi
7938
7939 if test $ac_cv_header_stdc = yes; then
7940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7941 if test "$cross_compiling" = yes; then :
7942 :
7943 else
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7946 #include <ctype.h>
7947 #include <stdlib.h>
7948 #if ((' ' & 0x0FF) == 0x020)
7949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7951 #else
7952 # define ISLOWER(c) \
7953 (('a' <= (c) && (c) <= 'i') \
7954 || ('j' <= (c) && (c) <= 'r') \
7955 || ('s' <= (c) && (c) <= 'z'))
7956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7957 #endif
7958
7959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7960 int
7961 main ()
7962 {
7963 int i;
7964 for (i = 0; i < 256; i++)
7965 if (XOR (islower (i), ISLOWER (i))
7966 || toupper (i) != TOUPPER (i))
7967 return 2;
7968 return 0;
7969 }
7970 _ACEOF
7971 if ac_fn_c_try_run "$LINENO"; then :
7972
7973 else
7974 ac_cv_header_stdc=no
7975 fi
7976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7977 conftest.$ac_objext conftest.beam conftest.$ac_ext
7978 fi
7979
7980 fi
7981 fi
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7983 $as_echo "$ac_cv_header_stdc" >&6; }
7984 if test $ac_cv_header_stdc = yes; then
7985
7986 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7987
7988 fi
7989
7990 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7991 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7992 inttypes.h stdint.h unistd.h
7993 do :
7994 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7995 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7996 "
7997 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7998 cat >>confdefs.h <<_ACEOF
7999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8000 _ACEOF
8001
8002 fi
8003
8004 done
8005
8006
8007 for ac_header in dlfcn.h
8008 do :
8009 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8010 "
8011 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8012 cat >>confdefs.h <<_ACEOF
8013 #define HAVE_DLFCN_H 1
8014 _ACEOF
8015
8016 fi
8017
8018 done
8019
8020
8021
8022
8023
8024 # Set options
8025 enable_dlopen=yes
8026
8027
8028
8029
8030 enable_win32_dll=no
8031
8032
8033 # Check whether --enable-shared was given.
8034 if test "${enable_shared+set}" = set; then :
8035 enableval=$enable_shared; p=${PACKAGE-default}
8036 case $enableval in
8037 yes) enable_shared=yes ;;
8038 no) enable_shared=no ;;
8039 *)
8040 enable_shared=no
8041 # Look at the argument we got. We use all the common list separators.
8042 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8043 for pkg in $enableval; do
8044 IFS=$lt_save_ifs
8045 if test "X$pkg" = "X$p"; then
8046 enable_shared=yes
8047 fi
8048 done
8049 IFS=$lt_save_ifs
8050 ;;
8051 esac
8052 else
8053 enable_shared=yes
8054 fi
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064 # Check whether --enable-static was given.
8065 if test "${enable_static+set}" = set; then :
8066 enableval=$enable_static; p=${PACKAGE-default}
8067 case $enableval in
8068 yes) enable_static=yes ;;
8069 no) enable_static=no ;;
8070 *)
8071 enable_static=no
8072 # Look at the argument we got. We use all the common list separators.
8073 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8074 for pkg in $enableval; do
8075 IFS=$lt_save_ifs
8076 if test "X$pkg" = "X$p"; then
8077 enable_static=yes
8078 fi
8079 done
8080 IFS=$lt_save_ifs
8081 ;;
8082 esac
8083 else
8084 enable_static=yes
8085 fi
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096 # Check whether --with-pic was given.
8097 if test "${with_pic+set}" = set; then :
8098 withval=$with_pic; lt_p=${PACKAGE-default}
8099 case $withval in
8100 yes|no) pic_mode=$withval ;;
8101 *)
8102 pic_mode=default
8103 # Look at the argument we got. We use all the common list separators.
8104 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8105 for lt_pkg in $withval; do
8106 IFS=$lt_save_ifs
8107 if test "X$lt_pkg" = "X$lt_p"; then
8108 pic_mode=yes
8109 fi
8110 done
8111 IFS=$lt_save_ifs
8112 ;;
8113 esac
8114 else
8115 pic_mode=default
8116 fi
8117
8118
8119
8120
8121
8122
8123
8124
8125 # Check whether --enable-fast-install was given.
8126 if test "${enable_fast_install+set}" = set; then :
8127 enableval=$enable_fast_install; p=${PACKAGE-default}
8128 case $enableval in
8129 yes) enable_fast_install=yes ;;
8130 no) enable_fast_install=no ;;
8131 *)
8132 enable_fast_install=no
8133 # Look at the argument we got. We use all the common list separators.
8134 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8135 for pkg in $enableval; do
8136 IFS=$lt_save_ifs
8137 if test "X$pkg" = "X$p"; then
8138 enable_fast_install=yes
8139 fi
8140 done
8141 IFS=$lt_save_ifs
8142 ;;
8143 esac
8144 else
8145 enable_fast_install=yes
8146 fi
8147
8148
8149
8150
8151
8152
8153
8154
8155 shared_archive_member_spec=
8156 case $host,$enable_shared in
8157 power*-*-aix[5-9]*,yes)
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8159 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8160
8161 # Check whether --with-aix-soname was given.
8162 if test "${with_aix_soname+set}" = set; then :
8163 withval=$with_aix_soname; case $withval in
8164 aix|svr4|both)
8165 ;;
8166 *)
8167 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8168 ;;
8169 esac
8170 lt_cv_with_aix_soname=$with_aix_soname
8171 else
8172 if ${lt_cv_with_aix_soname+:} false; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 lt_cv_with_aix_soname=aix
8176 fi
8177
8178 with_aix_soname=$lt_cv_with_aix_soname
8179 fi
8180
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8182 $as_echo "$with_aix_soname" >&6; }
8183 if test aix != "$with_aix_soname"; then
8184 # For the AIX way of multilib, we name the shared archive member
8185 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8186 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8187 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8188 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8189 if test 64 = "${OBJECT_MODE-32}"; then
8190 shared_archive_member_spec=shr_64
8191 else
8192 shared_archive_member_spec=shr
8193 fi
8194 fi
8195 ;;
8196 *)
8197 with_aix_soname=aix
8198 ;;
8199 esac
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210 # This can be used to rebuild libtool when needed
8211 LIBTOOL_DEPS=$ltmain
8212
8213 # Always use our own libtool.
8214 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245 test -z "$LN_S" && LN_S="ln -s"
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260 if test -n "${ZSH_VERSION+set}"; then
8261 setopt NO_GLOB_SUBST
8262 fi
8263
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8265 $as_echo_n "checking for objdir... " >&6; }
8266 if ${lt_cv_objdir+:} false; then :
8267 $as_echo_n "(cached) " >&6
8268 else
8269 rm -f .libs 2>/dev/null
8270 mkdir .libs 2>/dev/null
8271 if test -d .libs; then
8272 lt_cv_objdir=.libs
8273 else
8274 # MS-DOS does not allow filenames that begin with a dot.
8275 lt_cv_objdir=_libs
8276 fi
8277 rmdir .libs 2>/dev/null
8278 fi
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8280 $as_echo "$lt_cv_objdir" >&6; }
8281 objdir=$lt_cv_objdir
8282
8283
8284
8285
8286
8287 cat >>confdefs.h <<_ACEOF
8288 #define LT_OBJDIR "$lt_cv_objdir/"
8289 _ACEOF
8290
8291
8292
8293
8294 case $host_os in
8295 aix3*)
8296 # AIX sometimes has problems with the GCC collect2 program. For some
8297 # reason, if we set the COLLECT_NAMES environment variable, the problems
8298 # vanish in a puff of smoke.
8299 if test set != "${COLLECT_NAMES+set}"; then
8300 COLLECT_NAMES=
8301 export COLLECT_NAMES
8302 fi
8303 ;;
8304 esac
8305
8306 # Global variables:
8307 ofile=libtool
8308 can_build_shared=yes
8309
8310 # All known linkers require a '.a' archive for static linking (except MSVC,
8311 # which needs '.lib').
8312 libext=a
8313
8314 with_gnu_ld=$lt_cv_prog_gnu_ld
8315
8316 old_CC=$CC
8317 old_CFLAGS=$CFLAGS
8318
8319 # Set sane defaults for various variables
8320 test -z "$CC" && CC=cc
8321 test -z "$LTCC" && LTCC=$CC
8322 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8323 test -z "$LD" && LD=ld
8324 test -z "$ac_objext" && ac_objext=o
8325
8326 func_cc_basename $compiler
8327 cc_basename=$func_cc_basename_result
8328
8329
8330 # Only perform the check for file, if the check method requires it
8331 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8332 case $deplibs_check_method in
8333 file_magic*)
8334 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8336 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8337 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8338 $as_echo_n "(cached) " >&6
8339 else
8340 case $MAGIC_CMD in
8341 [\\/*] | ?:[\\/]*)
8342 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8343 ;;
8344 *)
8345 lt_save_MAGIC_CMD=$MAGIC_CMD
8346 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8347 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8348 for ac_dir in $ac_dummy; do
8349 IFS=$lt_save_ifs
8350 test -z "$ac_dir" && ac_dir=.
8351 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8352 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8353 if test -n "$file_magic_test_file"; then
8354 case $deplibs_check_method in
8355 "file_magic "*)
8356 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8357 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8358 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8359 $EGREP "$file_magic_regex" > /dev/null; then
8360 :
8361 else
8362 cat <<_LT_EOF 1>&2
8363
8364 *** Warning: the command libtool uses to detect shared libraries,
8365 *** $file_magic_cmd, produces output that libtool cannot recognize.
8366 *** The result is that libtool may fail to recognize shared libraries
8367 *** as such. This will affect the creation of libtool libraries that
8368 *** depend on shared libraries, but programs linked with such libtool
8369 *** libraries will work regardless of this problem. Nevertheless, you
8370 *** may want to report the problem to your system manager and/or to
8371 *** bug-libtool@gnu.org
8372
8373 _LT_EOF
8374 fi ;;
8375 esac
8376 fi
8377 break
8378 fi
8379 done
8380 IFS=$lt_save_ifs
8381 MAGIC_CMD=$lt_save_MAGIC_CMD
8382 ;;
8383 esac
8384 fi
8385
8386 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8387 if test -n "$MAGIC_CMD"; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8389 $as_echo "$MAGIC_CMD" >&6; }
8390 else
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393 fi
8394
8395
8396
8397
8398
8399 if test -z "$lt_cv_path_MAGIC_CMD"; then
8400 if test -n "$ac_tool_prefix"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8402 $as_echo_n "checking for file... " >&6; }
8403 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8404 $as_echo_n "(cached) " >&6
8405 else
8406 case $MAGIC_CMD in
8407 [\\/*] | ?:[\\/]*)
8408 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8409 ;;
8410 *)
8411 lt_save_MAGIC_CMD=$MAGIC_CMD
8412 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8413 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8414 for ac_dir in $ac_dummy; do
8415 IFS=$lt_save_ifs
8416 test -z "$ac_dir" && ac_dir=.
8417 if test -f "$ac_dir/file"; then
8418 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8419 if test -n "$file_magic_test_file"; then
8420 case $deplibs_check_method in
8421 "file_magic "*)
8422 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8423 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8424 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8425 $EGREP "$file_magic_regex" > /dev/null; then
8426 :
8427 else
8428 cat <<_LT_EOF 1>&2
8429
8430 *** Warning: the command libtool uses to detect shared libraries,
8431 *** $file_magic_cmd, produces output that libtool cannot recognize.
8432 *** The result is that libtool may fail to recognize shared libraries
8433 *** as such. This will affect the creation of libtool libraries that
8434 *** depend on shared libraries, but programs linked with such libtool
8435 *** libraries will work regardless of this problem. Nevertheless, you
8436 *** may want to report the problem to your system manager and/or to
8437 *** bug-libtool@gnu.org
8438
8439 _LT_EOF
8440 fi ;;
8441 esac
8442 fi
8443 break
8444 fi
8445 done
8446 IFS=$lt_save_ifs
8447 MAGIC_CMD=$lt_save_MAGIC_CMD
8448 ;;
8449 esac
8450 fi
8451
8452 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8453 if test -n "$MAGIC_CMD"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8455 $as_echo "$MAGIC_CMD" >&6; }
8456 else
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8459 fi
8460
8461
8462 else
8463 MAGIC_CMD=:
8464 fi
8465 fi
8466
8467 fi
8468 ;;
8469 esac
8470
8471 # Use C for the default configuration in the libtool script
8472
8473 lt_save_CC=$CC
8474 ac_ext=c
8475 ac_cpp='$CPP $CPPFLAGS'
8476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8479
8480
8481 # Source file extension for C test sources.
8482 ac_ext=c
8483
8484 # Object file extension for compiled C test sources.
8485 objext=o
8486 objext=$objext
8487
8488 # Code to be used in simple compile tests
8489 lt_simple_compile_test_code="int some_variable = 0;"
8490
8491 # Code to be used in simple link tests
8492 lt_simple_link_test_code='int main(){return(0);}'
8493
8494
8495
8496
8497
8498
8499
8500 # If no C compiler was specified, use CC.
8501 LTCC=${LTCC-"$CC"}
8502
8503 # If no C compiler flags were specified, use CFLAGS.
8504 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8505
8506 # Allow CC to be a program name with arguments.
8507 compiler=$CC
8508
8509 # Save the default compiler, since it gets overwritten when the other
8510 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8511 compiler_DEFAULT=$CC
8512
8513 # save warnings/boilerplate of simple test code
8514 ac_outfile=conftest.$ac_objext
8515 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8516 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8517 _lt_compiler_boilerplate=`cat conftest.err`
8518 $RM conftest*
8519
8520 ac_outfile=conftest.$ac_objext
8521 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8522 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8523 _lt_linker_boilerplate=`cat conftest.err`
8524 $RM -r conftest*
8525
8526
8527 if test -n "$compiler"; then
8528
8529 lt_prog_compiler_no_builtin_flag=
8530
8531 if test yes = "$GCC"; then
8532 case $cc_basename in
8533 nvcc*)
8534 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8535 *)
8536 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8537 esac
8538
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8540 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8541 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 lt_cv_prog_compiler_rtti_exceptions=no
8545 ac_outfile=conftest.$ac_objext
8546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8547 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8548 # Insert the option either (1) after the last *FLAGS variable, or
8549 # (2) before a word containing "conftest.", or (3) at the end.
8550 # Note that $ac_compile itself does not contain backslashes and begins
8551 # with a dollar sign (not a hyphen), so the echo should work correctly.
8552 # The option is referenced via a variable to avoid confusing sed.
8553 lt_compile=`echo "$ac_compile" | $SED \
8554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8556 -e 's:$: $lt_compiler_flag:'`
8557 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8558 (eval "$lt_compile" 2>conftest.err)
8559 ac_status=$?
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 if (exit $ac_status) && test -s "$ac_outfile"; then
8563 # The compiler can only warn and ignore the option if not recognized
8564 # So say no if there are warnings other than the usual output.
8565 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8567 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8568 lt_cv_prog_compiler_rtti_exceptions=yes
8569 fi
8570 fi
8571 $RM conftest*
8572
8573 fi
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8575 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8576
8577 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8578 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8579 else
8580 :
8581 fi
8582
8583 fi
8584
8585
8586
8587
8588
8589
8590 lt_prog_compiler_wl=
8591 lt_prog_compiler_pic=
8592 lt_prog_compiler_static=
8593
8594
8595 if test yes = "$GCC"; then
8596 lt_prog_compiler_wl='-Wl,'
8597 lt_prog_compiler_static='-static'
8598
8599 case $host_os in
8600 aix*)
8601 # All AIX code is PIC.
8602 if test ia64 = "$host_cpu"; then
8603 # AIX 5 now supports IA64 processor
8604 lt_prog_compiler_static='-Bstatic'
8605 fi
8606 lt_prog_compiler_pic='-fPIC'
8607 ;;
8608
8609 amigaos*)
8610 case $host_cpu in
8611 powerpc)
8612 # see comment about AmigaOS4 .so support
8613 lt_prog_compiler_pic='-fPIC'
8614 ;;
8615 m68k)
8616 # FIXME: we need at least 68020 code to build shared libraries, but
8617 # adding the '-m68020' flag to GCC prevents building anything better,
8618 # like '-m68040'.
8619 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8620 ;;
8621 esac
8622 ;;
8623
8624 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8625 # PIC is the default for these OSes.
8626 ;;
8627
8628 mingw* | cygwin* | pw32* | os2* | cegcc*)
8629 # This hack is so that the source file can tell whether it is being
8630 # built for inclusion in a dll (and should export symbols for example).
8631 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8632 # (--disable-auto-import) libraries
8633 lt_prog_compiler_pic='-DDLL_EXPORT'
8634 case $host_os in
8635 os2*)
8636 lt_prog_compiler_static='$wl-static'
8637 ;;
8638 esac
8639 ;;
8640
8641 darwin* | rhapsody*)
8642 # PIC is the default on this platform
8643 # Common symbols not allowed in MH_DYLIB files
8644 lt_prog_compiler_pic='-fno-common'
8645 ;;
8646
8647 haiku*)
8648 # PIC is the default for Haiku.
8649 # The "-static" flag exists, but is broken.
8650 lt_prog_compiler_static=
8651 ;;
8652
8653 hpux*)
8654 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8655 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8656 # sets the default TLS model and affects inlining.
8657 case $host_cpu in
8658 hppa*64*)
8659 # +Z the default
8660 ;;
8661 *)
8662 lt_prog_compiler_pic='-fPIC'
8663 ;;
8664 esac
8665 ;;
8666
8667 interix[3-9]*)
8668 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8669 # Instead, we relocate shared libraries at runtime.
8670 ;;
8671
8672 msdosdjgpp*)
8673 # Just because we use GCC doesn't mean we suddenly get shared libraries
8674 # on systems that don't support them.
8675 lt_prog_compiler_can_build_shared=no
8676 enable_shared=no
8677 ;;
8678
8679 *nto* | *qnx*)
8680 # QNX uses GNU C++, but need to define -shared option too, otherwise
8681 # it will coredump.
8682 lt_prog_compiler_pic='-fPIC -shared'
8683 ;;
8684
8685 sysv4*MP*)
8686 if test -d /usr/nec; then
8687 lt_prog_compiler_pic=-Kconform_pic
8688 fi
8689 ;;
8690
8691 *)
8692 lt_prog_compiler_pic='-fPIC'
8693 ;;
8694 esac
8695
8696 case $cc_basename in
8697 nvcc*) # Cuda Compiler Driver 2.2
8698 lt_prog_compiler_wl='-Xlinker '
8699 if test -n "$lt_prog_compiler_pic"; then
8700 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8701 fi
8702 ;;
8703 esac
8704 else
8705 # PORTME Check for flag to pass linker flags through the system compiler.
8706 case $host_os in
8707 aix*)
8708 lt_prog_compiler_wl='-Wl,'
8709 if test ia64 = "$host_cpu"; then
8710 # AIX 5 now supports IA64 processor
8711 lt_prog_compiler_static='-Bstatic'
8712 else
8713 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8714 fi
8715 ;;
8716
8717 darwin* | rhapsody*)
8718 # PIC is the default on this platform
8719 # Common symbols not allowed in MH_DYLIB files
8720 lt_prog_compiler_pic='-fno-common'
8721 case $cc_basename in
8722 nagfor*)
8723 # NAG Fortran compiler
8724 lt_prog_compiler_wl='-Wl,-Wl,,'
8725 lt_prog_compiler_pic='-PIC'
8726 lt_prog_compiler_static='-Bstatic'
8727 ;;
8728 esac
8729 ;;
8730
8731 mingw* | cygwin* | pw32* | os2* | cegcc*)
8732 # This hack is so that the source file can tell whether it is being
8733 # built for inclusion in a dll (and should export symbols for example).
8734 lt_prog_compiler_pic='-DDLL_EXPORT'
8735 case $host_os in
8736 os2*)
8737 lt_prog_compiler_static='$wl-static'
8738 ;;
8739 esac
8740 ;;
8741
8742 hpux9* | hpux10* | hpux11*)
8743 lt_prog_compiler_wl='-Wl,'
8744 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8745 # not for PA HP-UX.
8746 case $host_cpu in
8747 hppa*64*|ia64*)
8748 # +Z the default
8749 ;;
8750 *)
8751 lt_prog_compiler_pic='+Z'
8752 ;;
8753 esac
8754 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8755 lt_prog_compiler_static='$wl-a ${wl}archive'
8756 ;;
8757
8758 irix5* | irix6* | nonstopux*)
8759 lt_prog_compiler_wl='-Wl,'
8760 # PIC (with -KPIC) is the default.
8761 lt_prog_compiler_static='-non_shared'
8762 ;;
8763
8764 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8765 case $cc_basename in
8766 # old Intel for x86_64, which still supported -KPIC.
8767 ecc*)
8768 lt_prog_compiler_wl='-Wl,'
8769 lt_prog_compiler_pic='-KPIC'
8770 lt_prog_compiler_static='-static'
8771 ;;
8772 # icc used to be incompatible with GCC.
8773 # ICC 10 doesn't accept -KPIC any more.
8774 icc* | ifort*)
8775 lt_prog_compiler_wl='-Wl,'
8776 lt_prog_compiler_pic='-fPIC'
8777 lt_prog_compiler_static='-static'
8778 ;;
8779 # Lahey Fortran 8.1.
8780 lf95*)
8781 lt_prog_compiler_wl='-Wl,'
8782 lt_prog_compiler_pic='--shared'
8783 lt_prog_compiler_static='--static'
8784 ;;
8785 nagfor*)
8786 # NAG Fortran compiler
8787 lt_prog_compiler_wl='-Wl,-Wl,,'
8788 lt_prog_compiler_pic='-PIC'
8789 lt_prog_compiler_static='-Bstatic'
8790 ;;
8791 tcc*)
8792 # Fabrice Bellard et al's Tiny C Compiler
8793 lt_prog_compiler_wl='-Wl,'
8794 lt_prog_compiler_pic='-fPIC'
8795 lt_prog_compiler_static='-static'
8796 ;;
8797 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8798 # Portland Group compilers (*not* the Pentium gcc compiler,
8799 # which looks to be a dead project)
8800 lt_prog_compiler_wl='-Wl,'
8801 lt_prog_compiler_pic='-fpic'
8802 lt_prog_compiler_static='-Bstatic'
8803 ;;
8804 ccc*)
8805 lt_prog_compiler_wl='-Wl,'
8806 # All Alpha code is PIC.
8807 lt_prog_compiler_static='-non_shared'
8808 ;;
8809 xl* | bgxl* | bgf* | mpixl*)
8810 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8811 lt_prog_compiler_wl='-Wl,'
8812 lt_prog_compiler_pic='-qpic'
8813 lt_prog_compiler_static='-qstaticlink'
8814 ;;
8815 *)
8816 case `$CC -V 2>&1 | sed 5q` in
8817 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8818 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8819 lt_prog_compiler_pic='-KPIC'
8820 lt_prog_compiler_static='-Bstatic'
8821 lt_prog_compiler_wl=''
8822 ;;
8823 *Sun\ F* | *Sun*Fortran*)
8824 lt_prog_compiler_pic='-KPIC'
8825 lt_prog_compiler_static='-Bstatic'
8826 lt_prog_compiler_wl='-Qoption ld '
8827 ;;
8828 *Sun\ C*)
8829 # Sun C 5.9
8830 lt_prog_compiler_pic='-KPIC'
8831 lt_prog_compiler_static='-Bstatic'
8832 lt_prog_compiler_wl='-Wl,'
8833 ;;
8834 *Intel*\ [CF]*Compiler*)
8835 lt_prog_compiler_wl='-Wl,'
8836 lt_prog_compiler_pic='-fPIC'
8837 lt_prog_compiler_static='-static'
8838 ;;
8839 *Portland\ Group*)
8840 lt_prog_compiler_wl='-Wl,'
8841 lt_prog_compiler_pic='-fpic'
8842 lt_prog_compiler_static='-Bstatic'
8843 ;;
8844 esac
8845 ;;
8846 esac
8847 ;;
8848
8849 newsos6)
8850 lt_prog_compiler_pic='-KPIC'
8851 lt_prog_compiler_static='-Bstatic'
8852 ;;
8853
8854 *nto* | *qnx*)
8855 # QNX uses GNU C++, but need to define -shared option too, otherwise
8856 # it will coredump.
8857 lt_prog_compiler_pic='-fPIC -shared'
8858 ;;
8859
8860 osf3* | osf4* | osf5*)
8861 lt_prog_compiler_wl='-Wl,'
8862 # All OSF/1 code is PIC.
8863 lt_prog_compiler_static='-non_shared'
8864 ;;
8865
8866 rdos*)
8867 lt_prog_compiler_static='-non_shared'
8868 ;;
8869
8870 solaris*)
8871 lt_prog_compiler_pic='-KPIC'
8872 lt_prog_compiler_static='-Bstatic'
8873 case $cc_basename in
8874 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8875 lt_prog_compiler_wl='-Qoption ld ';;
8876 *)
8877 lt_prog_compiler_wl='-Wl,';;
8878 esac
8879 ;;
8880
8881 sunos4*)
8882 lt_prog_compiler_wl='-Qoption ld '
8883 lt_prog_compiler_pic='-PIC'
8884 lt_prog_compiler_static='-Bstatic'
8885 ;;
8886
8887 sysv4 | sysv4.2uw2* | sysv4.3*)
8888 lt_prog_compiler_wl='-Wl,'
8889 lt_prog_compiler_pic='-KPIC'
8890 lt_prog_compiler_static='-Bstatic'
8891 ;;
8892
8893 sysv4*MP*)
8894 if test -d /usr/nec; then
8895 lt_prog_compiler_pic='-Kconform_pic'
8896 lt_prog_compiler_static='-Bstatic'
8897 fi
8898 ;;
8899
8900 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8901 lt_prog_compiler_wl='-Wl,'
8902 lt_prog_compiler_pic='-KPIC'
8903 lt_prog_compiler_static='-Bstatic'
8904 ;;
8905
8906 unicos*)
8907 lt_prog_compiler_wl='-Wl,'
8908 lt_prog_compiler_can_build_shared=no
8909 ;;
8910
8911 uts4*)
8912 lt_prog_compiler_pic='-pic'
8913 lt_prog_compiler_static='-Bstatic'
8914 ;;
8915
8916 *)
8917 lt_prog_compiler_can_build_shared=no
8918 ;;
8919 esac
8920 fi
8921
8922 case $host_os in
8923 # For platforms that do not support PIC, -DPIC is meaningless:
8924 *djgpp*)
8925 lt_prog_compiler_pic=
8926 ;;
8927 *)
8928 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8929 ;;
8930 esac
8931
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8933 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8934 if ${lt_cv_prog_compiler_pic+:} false; then :
8935 $as_echo_n "(cached) " >&6
8936 else
8937 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8938 fi
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8940 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8941 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8942
8943 #
8944 # Check to make sure the PIC flag actually works.
8945 #
8946 if test -n "$lt_prog_compiler_pic"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8948 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8949 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 lt_cv_prog_compiler_pic_works=no
8953 ac_outfile=conftest.$ac_objext
8954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8955 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8956 # Insert the option either (1) after the last *FLAGS variable, or
8957 # (2) before a word containing "conftest.", or (3) at the end.
8958 # Note that $ac_compile itself does not contain backslashes and begins
8959 # with a dollar sign (not a hyphen), so the echo should work correctly.
8960 # The option is referenced via a variable to avoid confusing sed.
8961 lt_compile=`echo "$ac_compile" | $SED \
8962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8964 -e 's:$: $lt_compiler_flag:'`
8965 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8966 (eval "$lt_compile" 2>conftest.err)
8967 ac_status=$?
8968 cat conftest.err >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 if (exit $ac_status) && test -s "$ac_outfile"; then
8971 # The compiler can only warn and ignore the option if not recognized
8972 # So say no if there are warnings other than the usual output.
8973 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8975 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8976 lt_cv_prog_compiler_pic_works=yes
8977 fi
8978 fi
8979 $RM conftest*
8980
8981 fi
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8983 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8984
8985 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8986 case $lt_prog_compiler_pic in
8987 "" | " "*) ;;
8988 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8989 esac
8990 else
8991 lt_prog_compiler_pic=
8992 lt_prog_compiler_can_build_shared=no
8993 fi
8994
8995 fi
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007 #
9008 # Check to make sure the static flag actually works.
9009 #
9010 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9012 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9013 if ${lt_cv_prog_compiler_static_works+:} false; then :
9014 $as_echo_n "(cached) " >&6
9015 else
9016 lt_cv_prog_compiler_static_works=no
9017 save_LDFLAGS=$LDFLAGS
9018 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9019 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9020 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9021 # The linker can only warn and ignore the option if not recognized
9022 # So say no if there are warnings
9023 if test -s conftest.err; then
9024 # Append any errors to the config.log.
9025 cat conftest.err 1>&5
9026 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9028 if diff conftest.exp conftest.er2 >/dev/null; then
9029 lt_cv_prog_compiler_static_works=yes
9030 fi
9031 else
9032 lt_cv_prog_compiler_static_works=yes
9033 fi
9034 fi
9035 $RM -r conftest*
9036 LDFLAGS=$save_LDFLAGS
9037
9038 fi
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9040 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9041
9042 if test yes = "$lt_cv_prog_compiler_static_works"; then
9043 :
9044 else
9045 lt_prog_compiler_static=
9046 fi
9047
9048
9049
9050
9051
9052
9053
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9055 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9056 if ${lt_cv_prog_compiler_c_o+:} false; then :
9057 $as_echo_n "(cached) " >&6
9058 else
9059 lt_cv_prog_compiler_c_o=no
9060 $RM -r conftest 2>/dev/null
9061 mkdir conftest
9062 cd conftest
9063 mkdir out
9064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9065
9066 lt_compiler_flag="-o out/conftest2.$ac_objext"
9067 # Insert the option either (1) after the last *FLAGS variable, or
9068 # (2) before a word containing "conftest.", or (3) at the end.
9069 # Note that $ac_compile itself does not contain backslashes and begins
9070 # with a dollar sign (not a hyphen), so the echo should work correctly.
9071 lt_compile=`echo "$ac_compile" | $SED \
9072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9074 -e 's:$: $lt_compiler_flag:'`
9075 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9076 (eval "$lt_compile" 2>out/conftest.err)
9077 ac_status=$?
9078 cat out/conftest.err >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9081 then
9082 # The compiler can only warn and ignore the option if not recognized
9083 # So say no if there are warnings
9084 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9085 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9086 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9087 lt_cv_prog_compiler_c_o=yes
9088 fi
9089 fi
9090 chmod u+w . 2>&5
9091 $RM conftest*
9092 # SGI C++ compiler will create directory out/ii_files/ for
9093 # template instantiation
9094 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9095 $RM out/* && rmdir out
9096 cd ..
9097 $RM -r conftest
9098 $RM conftest*
9099
9100 fi
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9102 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9103
9104
9105
9106
9107
9108
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9110 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9111 if ${lt_cv_prog_compiler_c_o+:} false; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 lt_cv_prog_compiler_c_o=no
9115 $RM -r conftest 2>/dev/null
9116 mkdir conftest
9117 cd conftest
9118 mkdir out
9119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9120
9121 lt_compiler_flag="-o out/conftest2.$ac_objext"
9122 # Insert the option either (1) after the last *FLAGS variable, or
9123 # (2) before a word containing "conftest.", or (3) at the end.
9124 # Note that $ac_compile itself does not contain backslashes and begins
9125 # with a dollar sign (not a hyphen), so the echo should work correctly.
9126 lt_compile=`echo "$ac_compile" | $SED \
9127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9129 -e 's:$: $lt_compiler_flag:'`
9130 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9131 (eval "$lt_compile" 2>out/conftest.err)
9132 ac_status=$?
9133 cat out/conftest.err >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9136 then
9137 # The compiler can only warn and ignore the option if not recognized
9138 # So say no if there are warnings
9139 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9140 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9141 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9142 lt_cv_prog_compiler_c_o=yes
9143 fi
9144 fi
9145 chmod u+w . 2>&5
9146 $RM conftest*
9147 # SGI C++ compiler will create directory out/ii_files/ for
9148 # template instantiation
9149 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9150 $RM out/* && rmdir out
9151 cd ..
9152 $RM -r conftest
9153 $RM conftest*
9154
9155 fi
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9157 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9158
9159
9160
9161
9162 hard_links=nottested
9163 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9164 # do not overwrite the value of need_locks provided by the user
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9166 $as_echo_n "checking if we can lock with hard links... " >&6; }
9167 hard_links=yes
9168 $RM conftest*
9169 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9170 touch conftest.a
9171 ln conftest.a conftest.b 2>&5 || hard_links=no
9172 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9174 $as_echo "$hard_links" >&6; }
9175 if test no = "$hard_links"; then
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9177 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9178 need_locks=warn
9179 fi
9180 else
9181 need_locks=no
9182 fi
9183
9184
9185
9186
9187
9188
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9190 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9191
9192 runpath_var=
9193 allow_undefined_flag=
9194 always_export_symbols=no
9195 archive_cmds=
9196 archive_expsym_cmds=
9197 compiler_needs_object=no
9198 enable_shared_with_static_runtimes=no
9199 export_dynamic_flag_spec=
9200 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9201 hardcode_automatic=no
9202 hardcode_direct=no
9203 hardcode_direct_absolute=no
9204 hardcode_libdir_flag_spec=
9205 hardcode_libdir_separator=
9206 hardcode_minus_L=no
9207 hardcode_shlibpath_var=unsupported
9208 inherit_rpath=no
9209 link_all_deplibs=unknown
9210 module_cmds=
9211 module_expsym_cmds=
9212 old_archive_from_new_cmds=
9213 old_archive_from_expsyms_cmds=
9214 thread_safe_flag_spec=
9215 whole_archive_flag_spec=
9216 # include_expsyms should be a list of space-separated symbols to be *always*
9217 # included in the symbol list
9218 include_expsyms=
9219 # exclude_expsyms can be an extended regexp of symbols to exclude
9220 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9221 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9222 # as well as any symbol that contains 'd'.
9223 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9224 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9225 # platforms (ab)use it in PIC code, but their linkers get confused if
9226 # the symbol is explicitly referenced. Since portable code cannot
9227 # rely on this symbol name, it's probably fine to never include it in
9228 # preloaded symbol tables.
9229 # Exclude shared library initialization/finalization symbols.
9230 extract_expsyms_cmds=
9231
9232 case $host_os in
9233 cygwin* | mingw* | pw32* | cegcc*)
9234 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9235 # When not using gcc, we currently assume that we are using
9236 # Microsoft Visual C++.
9237 if test yes != "$GCC"; then
9238 with_gnu_ld=no
9239 fi
9240 ;;
9241 interix*)
9242 # we just hope/assume this is gcc and not c89 (= MSVC++)
9243 with_gnu_ld=yes
9244 ;;
9245 openbsd* | bitrig*)
9246 with_gnu_ld=no
9247 ;;
9248 esac
9249
9250 ld_shlibs=yes
9251
9252 # On some targets, GNU ld is compatible enough with the native linker
9253 # that we're better off using the native interface for both.
9254 lt_use_gnu_ld_interface=no
9255 if test yes = "$with_gnu_ld"; then
9256 case $host_os in
9257 aix*)
9258 # The AIX port of GNU ld has always aspired to compatibility
9259 # with the native linker. However, as the warning in the GNU ld
9260 # block says, versions before 2.19.5* couldn't really create working
9261 # shared libraries, regardless of the interface used.
9262 case `$LD -v 2>&1` in
9263 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9264 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9265 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9266 *)
9267 lt_use_gnu_ld_interface=yes
9268 ;;
9269 esac
9270 ;;
9271 *)
9272 lt_use_gnu_ld_interface=yes
9273 ;;
9274 esac
9275 fi
9276
9277 if test yes = "$lt_use_gnu_ld_interface"; then
9278 # If archive_cmds runs LD, not CC, wlarc should be empty
9279 wlarc='$wl'
9280
9281 # Set some defaults for GNU ld with shared library support. These
9282 # are reset later if shared libraries are not supported. Putting them
9283 # here allows them to be overridden if necessary.
9284 runpath_var=LD_RUN_PATH
9285 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9286 export_dynamic_flag_spec='$wl--export-dynamic'
9287 # ancient GNU ld didn't support --whole-archive et. al.
9288 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9289 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9290 else
9291 whole_archive_flag_spec=
9292 fi
9293 supports_anon_versioning=no
9294 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9295 *GNU\ gold*) supports_anon_versioning=yes ;;
9296 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9297 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9298 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9299 *\ 2.11.*) ;; # other 2.11 versions
9300 *) supports_anon_versioning=yes ;;
9301 esac
9302
9303 # See if GNU ld supports shared libraries.
9304 case $host_os in
9305 aix[3-9]*)
9306 # On AIX/PPC, the GNU linker is very broken
9307 if test ia64 != "$host_cpu"; then
9308 ld_shlibs=no
9309 cat <<_LT_EOF 1>&2
9310
9311 *** Warning: the GNU linker, at least up to release 2.19, is reported
9312 *** to be unable to reliably create shared libraries on AIX.
9313 *** Therefore, libtool is disabling shared libraries support. If you
9314 *** really care for shared libraries, you may want to install binutils
9315 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9316 *** You will then need to restart the configuration process.
9317
9318 _LT_EOF
9319 fi
9320 ;;
9321
9322 amigaos*)
9323 case $host_cpu in
9324 powerpc)
9325 # see comment about AmigaOS4 .so support
9326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9327 archive_expsym_cmds=''
9328 ;;
9329 m68k)
9330 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)'
9331 hardcode_libdir_flag_spec='-L$libdir'
9332 hardcode_minus_L=yes
9333 ;;
9334 esac
9335 ;;
9336
9337 beos*)
9338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9339 allow_undefined_flag=unsupported
9340 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9341 # support --undefined. This deserves some investigation. FIXME
9342 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9343 else
9344 ld_shlibs=no
9345 fi
9346 ;;
9347
9348 cygwin* | mingw* | pw32* | cegcc*)
9349 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9350 # as there is no search path for DLLs.
9351 hardcode_libdir_flag_spec='-L$libdir'
9352 export_dynamic_flag_spec='$wl--export-all-symbols'
9353 allow_undefined_flag=unsupported
9354 always_export_symbols=no
9355 enable_shared_with_static_runtimes=yes
9356 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'
9357 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9358
9359 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9360 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9361 # If the export-symbols file already is a .def file, use it as
9362 # is; otherwise, prepend EXPORTS...
9363 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9364 cp $export_symbols $output_objdir/$soname.def;
9365 else
9366 echo EXPORTS > $output_objdir/$soname.def;
9367 cat $export_symbols >> $output_objdir/$soname.def;
9368 fi~
9369 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9370 else
9371 ld_shlibs=no
9372 fi
9373 ;;
9374
9375 haiku*)
9376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9377 link_all_deplibs=yes
9378 ;;
9379
9380 os2*)
9381 hardcode_libdir_flag_spec='-L$libdir'
9382 hardcode_minus_L=yes
9383 allow_undefined_flag=unsupported
9384 shrext_cmds=.dll
9385 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9386 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9387 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9388 $ECHO EXPORTS >> $output_objdir/$libname.def~
9389 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9390 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9391 emximp -o $lib $output_objdir/$libname.def'
9392 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9393 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9394 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9395 $ECHO EXPORTS >> $output_objdir/$libname.def~
9396 prefix_cmds="$SED"~
9397 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9398 prefix_cmds="$prefix_cmds -e 1d";
9399 fi~
9400 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9401 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9402 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9403 emximp -o $lib $output_objdir/$libname.def'
9404 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9405 enable_shared_with_static_runtimes=yes
9406 ;;
9407
9408 interix[3-9]*)
9409 hardcode_direct=no
9410 hardcode_shlibpath_var=no
9411 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9412 export_dynamic_flag_spec='$wl-E'
9413 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9414 # Instead, shared libraries are loaded at an image base (0x10000000 by
9415 # default) and relocated if they conflict, which is a slow very memory
9416 # consuming and fragmenting process. To avoid this, we pick a random,
9417 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9418 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9419 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9420 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'
9421 ;;
9422
9423 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9424 tmp_diet=no
9425 if test linux-dietlibc = "$host_os"; then
9426 case $cc_basename in
9427 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9428 esac
9429 fi
9430 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9431 && test no = "$tmp_diet"
9432 then
9433 tmp_addflag=' $pic_flag'
9434 tmp_sharedflag='-shared'
9435 case $cc_basename,$host_cpu in
9436 pgcc*) # Portland Group C compiler
9437 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'
9438 tmp_addflag=' $pic_flag'
9439 ;;
9440 pgf77* | pgf90* | pgf95* | pgfortran*)
9441 # Portland Group f77 and f90 compilers
9442 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'
9443 tmp_addflag=' $pic_flag -Mnomain' ;;
9444 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9445 tmp_addflag=' -i_dynamic' ;;
9446 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9447 tmp_addflag=' -i_dynamic -nofor_main' ;;
9448 ifc* | ifort*) # Intel Fortran compiler
9449 tmp_addflag=' -nofor_main' ;;
9450 lf95*) # Lahey Fortran 8.1
9451 whole_archive_flag_spec=
9452 tmp_sharedflag='--shared' ;;
9453 nagfor*) # NAGFOR 5.3
9454 tmp_sharedflag='-Wl,-shared' ;;
9455 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9456 tmp_sharedflag='-qmkshrobj'
9457 tmp_addflag= ;;
9458 nvcc*) # Cuda Compiler Driver 2.2
9459 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'
9460 compiler_needs_object=yes
9461 ;;
9462 esac
9463 case `$CC -V 2>&1 | sed 5q` in
9464 *Sun\ C*) # Sun C 5.9
9465 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'
9466 compiler_needs_object=yes
9467 tmp_sharedflag='-G' ;;
9468 *Sun\ F*) # Sun Fortran 8.3
9469 tmp_sharedflag='-G' ;;
9470 esac
9471 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9472
9473 if test yes = "$supports_anon_versioning"; then
9474 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9475 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9476 echo "local: *; };" >> $output_objdir/$libname.ver~
9477 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9478 fi
9479
9480 case $cc_basename in
9481 tcc*)
9482 export_dynamic_flag_spec='-rdynamic'
9483 ;;
9484 xlf* | bgf* | bgxlf* | mpixlf*)
9485 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9486 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9487 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9488 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9489 if test yes = "$supports_anon_versioning"; then
9490 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9491 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9492 echo "local: *; };" >> $output_objdir/$libname.ver~
9493 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9494 fi
9495 ;;
9496 esac
9497 else
9498 ld_shlibs=no
9499 fi
9500 ;;
9501
9502 netbsd*)
9503 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9504 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9505 wlarc=
9506 else
9507 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9508 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9509 fi
9510 ;;
9511
9512 solaris*)
9513 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9514 ld_shlibs=no
9515 cat <<_LT_EOF 1>&2
9516
9517 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9518 *** create shared libraries on Solaris systems. Therefore, libtool
9519 *** is disabling shared libraries support. We urge you to upgrade GNU
9520 *** binutils to release 2.9.1 or newer. Another option is to modify
9521 *** your PATH or compiler configuration so that the native linker is
9522 *** used, and then restart.
9523
9524 _LT_EOF
9525 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9526 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9527 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9528 else
9529 ld_shlibs=no
9530 fi
9531 ;;
9532
9533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9534 case `$LD -v 2>&1` in
9535 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9536 ld_shlibs=no
9537 cat <<_LT_EOF 1>&2
9538
9539 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9540 *** reliably create shared libraries on SCO systems. Therefore, libtool
9541 *** is disabling shared libraries support. We urge you to upgrade GNU
9542 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9543 *** your PATH or compiler configuration so that the native linker is
9544 *** used, and then restart.
9545
9546 _LT_EOF
9547 ;;
9548 *)
9549 # For security reasons, it is highly recommended that you always
9550 # use absolute paths for naming shared libraries, and exclude the
9551 # DT_RUNPATH tag from executables and libraries. But doing so
9552 # requires that you compile everything twice, which is a pain.
9553 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9554 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9556 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9557 else
9558 ld_shlibs=no
9559 fi
9560 ;;
9561 esac
9562 ;;
9563
9564 sunos4*)
9565 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9566 wlarc=
9567 hardcode_direct=yes
9568 hardcode_shlibpath_var=no
9569 ;;
9570
9571 *)
9572 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9573 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9574 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9575 else
9576 ld_shlibs=no
9577 fi
9578 ;;
9579 esac
9580
9581 if test no = "$ld_shlibs"; then
9582 runpath_var=
9583 hardcode_libdir_flag_spec=
9584 export_dynamic_flag_spec=
9585 whole_archive_flag_spec=
9586 fi
9587 else
9588 # PORTME fill in a description of your system's linker (not GNU ld)
9589 case $host_os in
9590 aix3*)
9591 allow_undefined_flag=unsupported
9592 always_export_symbols=yes
9593 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'
9594 # Note: this linker hardcodes the directories in LIBPATH if there
9595 # are no directories specified by -L.
9596 hardcode_minus_L=yes
9597 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9598 # Neither direct hardcoding nor static linking is supported with a
9599 # broken collect2.
9600 hardcode_direct=unsupported
9601 fi
9602 ;;
9603
9604 aix[4-9]*)
9605 if test ia64 = "$host_cpu"; then
9606 # On IA64, the linker does run time linking by default, so we don't
9607 # have to do anything special.
9608 aix_use_runtimelinking=no
9609 exp_sym_flag='-Bexport'
9610 no_entry_flag=
9611 else
9612 # If we're using GNU nm, then we don't want the "-C" option.
9613 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9614 # Without the "-l" option, or with the "-B" option, AIX nm treats
9615 # weak defined symbols like other global defined symbols, whereas
9616 # GNU nm marks them as "W".
9617 # While the 'weak' keyword is ignored in the Export File, we need
9618 # it in the Import File for the 'aix-soname' feature, so we have
9619 # to replace the "-B" option with "-P" for AIX nm.
9620 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9621 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'
9622 else
9623 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'
9624 fi
9625 aix_use_runtimelinking=no
9626
9627 # Test if we are trying to use run time linking or normal
9628 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9629 # have runtime linking enabled, and use it for executables.
9630 # For shared libraries, we enable/disable runtime linking
9631 # depending on the kind of the shared library created -
9632 # when "with_aix_soname,aix_use_runtimelinking" is:
9633 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9634 # "aix,yes" lib.so shared, rtl:yes, for executables
9635 # lib.a static archive
9636 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9637 # lib.a(lib.so.V) shared, rtl:no, for executables
9638 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9639 # lib.a(lib.so.V) shared, rtl:no
9640 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9641 # lib.a static archive
9642 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9643 for ld_flag in $LDFLAGS; do
9644 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9645 aix_use_runtimelinking=yes
9646 break
9647 fi
9648 done
9649 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9650 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9651 # so we don't have lib.a shared libs to link our executables.
9652 # We have to force runtime linking in this case.
9653 aix_use_runtimelinking=yes
9654 LDFLAGS="$LDFLAGS -Wl,-brtl"
9655 fi
9656 ;;
9657 esac
9658
9659 exp_sym_flag='-bexport'
9660 no_entry_flag='-bnoentry'
9661 fi
9662
9663 # When large executables or shared objects are built, AIX ld can
9664 # have problems creating the table of contents. If linking a library
9665 # or program results in "error TOC overflow" add -mminimal-toc to
9666 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9667 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9668
9669 archive_cmds=''
9670 hardcode_direct=yes
9671 hardcode_direct_absolute=yes
9672 hardcode_libdir_separator=':'
9673 link_all_deplibs=yes
9674 file_list_spec='$wl-f,'
9675 case $with_aix_soname,$aix_use_runtimelinking in
9676 aix,*) ;; # traditional, no import file
9677 svr4,* | *,yes) # use import file
9678 # The Import File defines what to hardcode.
9679 hardcode_direct=no
9680 hardcode_direct_absolute=no
9681 ;;
9682 esac
9683
9684 if test yes = "$GCC"; then
9685 case $host_os in aix4.[012]|aix4.[012].*)
9686 # We only want to do this on AIX 4.2 and lower, the check
9687 # below for broken collect2 doesn't work under 4.3+
9688 collect2name=`$CC -print-prog-name=collect2`
9689 if test -f "$collect2name" &&
9690 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9691 then
9692 # We have reworked collect2
9693 :
9694 else
9695 # We have old collect2
9696 hardcode_direct=unsupported
9697 # It fails to find uninstalled libraries when the uninstalled
9698 # path is not listed in the libpath. Setting hardcode_minus_L
9699 # to unsupported forces relinking
9700 hardcode_minus_L=yes
9701 hardcode_libdir_flag_spec='-L$libdir'
9702 hardcode_libdir_separator=
9703 fi
9704 ;;
9705 esac
9706 shared_flag='-shared'
9707 if test yes = "$aix_use_runtimelinking"; then
9708 shared_flag="$shared_flag "'$wl-G'
9709 fi
9710 # Need to ensure runtime linking is disabled for the traditional
9711 # shared library, or the linker may eventually find shared libraries
9712 # /with/ Import File - we do not want to mix them.
9713 shared_flag_aix='-shared'
9714 shared_flag_svr4='-shared $wl-G'
9715 else
9716 # not using gcc
9717 if test ia64 = "$host_cpu"; then
9718 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9719 # chokes on -Wl,-G. The following line is correct:
9720 shared_flag='-G'
9721 else
9722 if test yes = "$aix_use_runtimelinking"; then
9723 shared_flag='$wl-G'
9724 else
9725 shared_flag='$wl-bM:SRE'
9726 fi
9727 shared_flag_aix='$wl-bM:SRE'
9728 shared_flag_svr4='$wl-G'
9729 fi
9730 fi
9731
9732 export_dynamic_flag_spec='$wl-bexpall'
9733 # It seems that -bexpall does not export symbols beginning with
9734 # underscore (_), so it is better to generate a list of symbols to export.
9735 always_export_symbols=yes
9736 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9737 # Warning - without using the other runtime loading flags (-brtl),
9738 # -berok will link without error, but may produce a broken library.
9739 allow_undefined_flag='-berok'
9740 # Determine the default libpath from the value encoded in an
9741 # empty executable.
9742 if test set = "${lt_cv_aix_libpath+set}"; then
9743 aix_libpath=$lt_cv_aix_libpath
9744 else
9745 if ${lt_cv_aix_libpath_+:} false; then :
9746 $as_echo_n "(cached) " >&6
9747 else
9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749 /* end confdefs.h. */
9750
9751 int
9752 main ()
9753 {
9754
9755 ;
9756 return 0;
9757 }
9758 _ACEOF
9759 if ac_fn_c_try_link "$LINENO"; then :
9760
9761 lt_aix_libpath_sed='
9762 /Import File Strings/,/^$/ {
9763 /^0/ {
9764 s/^0 *\([^ ]*\) *$/\1/
9765 p
9766 }
9767 }'
9768 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9769 # Check for a 64-bit object if we didn't find anything.
9770 if test -z "$lt_cv_aix_libpath_"; then
9771 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9772 fi
9773 fi
9774 rm -f core conftest.err conftest.$ac_objext \
9775 conftest$ac_exeext conftest.$ac_ext
9776 if test -z "$lt_cv_aix_libpath_"; then
9777 lt_cv_aix_libpath_=/usr/lib:/lib
9778 fi
9779
9780 fi
9781
9782 aix_libpath=$lt_cv_aix_libpath_
9783 fi
9784
9785 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9786 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
9787 else
9788 if test ia64 = "$host_cpu"; then
9789 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9790 allow_undefined_flag="-z nodefs"
9791 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"
9792 else
9793 # Determine the default libpath from the value encoded in an
9794 # empty executable.
9795 if test set = "${lt_cv_aix_libpath+set}"; then
9796 aix_libpath=$lt_cv_aix_libpath
9797 else
9798 if ${lt_cv_aix_libpath_+:} false; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802 /* end confdefs.h. */
9803
9804 int
9805 main ()
9806 {
9807
9808 ;
9809 return 0;
9810 }
9811 _ACEOF
9812 if ac_fn_c_try_link "$LINENO"; then :
9813
9814 lt_aix_libpath_sed='
9815 /Import File Strings/,/^$/ {
9816 /^0/ {
9817 s/^0 *\([^ ]*\) *$/\1/
9818 p
9819 }
9820 }'
9821 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9822 # Check for a 64-bit object if we didn't find anything.
9823 if test -z "$lt_cv_aix_libpath_"; then
9824 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9825 fi
9826 fi
9827 rm -f core conftest.err conftest.$ac_objext \
9828 conftest$ac_exeext conftest.$ac_ext
9829 if test -z "$lt_cv_aix_libpath_"; then
9830 lt_cv_aix_libpath_=/usr/lib:/lib
9831 fi
9832
9833 fi
9834
9835 aix_libpath=$lt_cv_aix_libpath_
9836 fi
9837
9838 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9839 # Warning - without using the other run time loading flags,
9840 # -berok will link without error, but may produce a broken library.
9841 no_undefined_flag=' $wl-bernotok'
9842 allow_undefined_flag=' $wl-berok'
9843 if test yes = "$with_gnu_ld"; then
9844 # We only use this code for GNU lds that support --whole-archive.
9845 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9846 else
9847 # Exported symbols can be pulled into shared objects from archives
9848 whole_archive_flag_spec='$convenience'
9849 fi
9850 archive_cmds_need_lc=yes
9851 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9852 # -brtl affects multiple linker settings, -berok does not and is overridden later
9853 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9854 if test svr4 != "$with_aix_soname"; then
9855 # This is similar to how AIX traditionally builds its shared libraries.
9856 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'
9857 fi
9858 if test aix != "$with_aix_soname"; then
9859 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'
9860 else
9861 # used by -dlpreopen to get the symbols
9862 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9863 fi
9864 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9865 fi
9866 fi
9867 ;;
9868
9869 amigaos*)
9870 case $host_cpu in
9871 powerpc)
9872 # see comment about AmigaOS4 .so support
9873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9874 archive_expsym_cmds=''
9875 ;;
9876 m68k)
9877 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)'
9878 hardcode_libdir_flag_spec='-L$libdir'
9879 hardcode_minus_L=yes
9880 ;;
9881 esac
9882 ;;
9883
9884 bsdi[45]*)
9885 export_dynamic_flag_spec=-rdynamic
9886 ;;
9887
9888 cygwin* | mingw* | pw32* | cegcc*)
9889 # When not using gcc, we currently assume that we are using
9890 # Microsoft Visual C++.
9891 # hardcode_libdir_flag_spec is actually meaningless, as there is
9892 # no search path for DLLs.
9893 case $cc_basename in
9894 cl*)
9895 # Native MSVC
9896 hardcode_libdir_flag_spec=' '
9897 allow_undefined_flag=unsupported
9898 always_export_symbols=yes
9899 file_list_spec='@'
9900 # Tell ltmain to make .lib files, not .a files.
9901 libext=lib
9902 # Tell ltmain to make .dll files, not .so files.
9903 shrext_cmds=.dll
9904 # FIXME: Setting linknames here is a bad hack.
9905 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9906 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9907 cp "$export_symbols" "$output_objdir/$soname.def";
9908 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9909 else
9910 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9911 fi~
9912 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9913 linknames='
9914 # The linker will not automatically build a static lib if we build a DLL.
9915 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9916 enable_shared_with_static_runtimes=yes
9917 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9918 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9919 # Don't use ranlib
9920 old_postinstall_cmds='chmod 644 $oldlib'
9921 postlink_cmds='lt_outputfile="@OUTPUT@"~
9922 lt_tool_outputfile="@TOOL_OUTPUT@"~
9923 case $lt_outputfile in
9924 *.exe|*.EXE) ;;
9925 *)
9926 lt_outputfile=$lt_outputfile.exe
9927 lt_tool_outputfile=$lt_tool_outputfile.exe
9928 ;;
9929 esac~
9930 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9931 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9932 $RM "$lt_outputfile.manifest";
9933 fi'
9934 ;;
9935 *)
9936 # Assume MSVC wrapper
9937 hardcode_libdir_flag_spec=' '
9938 allow_undefined_flag=unsupported
9939 # Tell ltmain to make .lib files, not .a files.
9940 libext=lib
9941 # Tell ltmain to make .dll files, not .so files.
9942 shrext_cmds=.dll
9943 # FIXME: Setting linknames here is a bad hack.
9944 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9945 # The linker will automatically build a .lib file if we build a DLL.
9946 old_archive_from_new_cmds='true'
9947 # FIXME: Should let the user specify the lib program.
9948 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9949 enable_shared_with_static_runtimes=yes
9950 ;;
9951 esac
9952 ;;
9953
9954 darwin* | rhapsody*)
9955
9956
9957 archive_cmds_need_lc=no
9958 hardcode_direct=no
9959 hardcode_automatic=yes
9960 hardcode_shlibpath_var=unsupported
9961 if test yes = "$lt_cv_ld_force_load"; then
9962 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\"`'
9963
9964 else
9965 whole_archive_flag_spec=''
9966 fi
9967 link_all_deplibs=yes
9968 allow_undefined_flag=$_lt_dar_allow_undefined
9969 case $cc_basename in
9970 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9971 *) _lt_dar_can_shared=$GCC ;;
9972 esac
9973 if test yes = "$_lt_dar_can_shared"; then
9974 output_verbose_link_cmd=func_echo_all
9975 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9976 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9977 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"
9978 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"
9979
9980 else
9981 ld_shlibs=no
9982 fi
9983
9984 ;;
9985
9986 dgux*)
9987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988 hardcode_libdir_flag_spec='-L$libdir'
9989 hardcode_shlibpath_var=no
9990 ;;
9991
9992 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9993 # support. Future versions do this automatically, but an explicit c++rt0.o
9994 # does not break anything, and helps significantly (at the cost of a little
9995 # extra space).
9996 freebsd2.2*)
9997 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9998 hardcode_libdir_flag_spec='-R$libdir'
9999 hardcode_direct=yes
10000 hardcode_shlibpath_var=no
10001 ;;
10002
10003 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10004 freebsd2.*)
10005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10006 hardcode_direct=yes
10007 hardcode_minus_L=yes
10008 hardcode_shlibpath_var=no
10009 ;;
10010
10011 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10012 freebsd* | dragonfly*)
10013 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10014 hardcode_libdir_flag_spec='-R$libdir'
10015 hardcode_direct=yes
10016 hardcode_shlibpath_var=no
10017 ;;
10018
10019 hpux9*)
10020 if test yes = "$GCC"; then
10021 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'
10022 else
10023 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'
10024 fi
10025 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10026 hardcode_libdir_separator=:
10027 hardcode_direct=yes
10028
10029 # hardcode_minus_L: Not really in the search PATH,
10030 # but as the default location of the library.
10031 hardcode_minus_L=yes
10032 export_dynamic_flag_spec='$wl-E'
10033 ;;
10034
10035 hpux10*)
10036 if test yes,no = "$GCC,$with_gnu_ld"; then
10037 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10038 else
10039 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10040 fi
10041 if test no = "$with_gnu_ld"; then
10042 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10043 hardcode_libdir_separator=:
10044 hardcode_direct=yes
10045 hardcode_direct_absolute=yes
10046 export_dynamic_flag_spec='$wl-E'
10047 # hardcode_minus_L: Not really in the search PATH,
10048 # but as the default location of the library.
10049 hardcode_minus_L=yes
10050 fi
10051 ;;
10052
10053 hpux11*)
10054 if test yes,no = "$GCC,$with_gnu_ld"; then
10055 case $host_cpu in
10056 hppa*64*)
10057 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10058 ;;
10059 ia64*)
10060 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10061 ;;
10062 *)
10063 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10064 ;;
10065 esac
10066 else
10067 case $host_cpu in
10068 hppa*64*)
10069 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10070 ;;
10071 ia64*)
10072 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10073 ;;
10074 *)
10075
10076 # Older versions of the 11.00 compiler do not understand -b yet
10077 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10079 $as_echo_n "checking if $CC understands -b... " >&6; }
10080 if ${lt_cv_prog_compiler__b+:} false; then :
10081 $as_echo_n "(cached) " >&6
10082 else
10083 lt_cv_prog_compiler__b=no
10084 save_LDFLAGS=$LDFLAGS
10085 LDFLAGS="$LDFLAGS -b"
10086 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10087 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10088 # The linker can only warn and ignore the option if not recognized
10089 # So say no if there are warnings
10090 if test -s conftest.err; then
10091 # Append any errors to the config.log.
10092 cat conftest.err 1>&5
10093 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10095 if diff conftest.exp conftest.er2 >/dev/null; then
10096 lt_cv_prog_compiler__b=yes
10097 fi
10098 else
10099 lt_cv_prog_compiler__b=yes
10100 fi
10101 fi
10102 $RM -r conftest*
10103 LDFLAGS=$save_LDFLAGS
10104
10105 fi
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10107 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10108
10109 if test yes = "$lt_cv_prog_compiler__b"; then
10110 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10111 else
10112 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10113 fi
10114
10115 ;;
10116 esac
10117 fi
10118 if test no = "$with_gnu_ld"; then
10119 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10120 hardcode_libdir_separator=:
10121
10122 case $host_cpu in
10123 hppa*64*|ia64*)
10124 hardcode_direct=no
10125 hardcode_shlibpath_var=no
10126 ;;
10127 *)
10128 hardcode_direct=yes
10129 hardcode_direct_absolute=yes
10130 export_dynamic_flag_spec='$wl-E'
10131
10132 # hardcode_minus_L: Not really in the search PATH,
10133 # but as the default location of the library.
10134 hardcode_minus_L=yes
10135 ;;
10136 esac
10137 fi
10138 ;;
10139
10140 irix5* | irix6* | nonstopux*)
10141 if test yes = "$GCC"; then
10142 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'
10143 # Try to use the -exported_symbol ld option, if it does not
10144 # work, assume that -exports_file does not work either and
10145 # implicitly export all symbols.
10146 # This should be the same for all languages, so no per-tag cache variable.
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10148 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10149 if ${lt_cv_irix_exported_symbol+:} false; then :
10150 $as_echo_n "(cached) " >&6
10151 else
10152 save_LDFLAGS=$LDFLAGS
10153 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155 /* end confdefs.h. */
10156 int foo (void) { return 0; }
10157 _ACEOF
10158 if ac_fn_c_try_link "$LINENO"; then :
10159 lt_cv_irix_exported_symbol=yes
10160 else
10161 lt_cv_irix_exported_symbol=no
10162 fi
10163 rm -f core conftest.err conftest.$ac_objext \
10164 conftest$ac_exeext conftest.$ac_ext
10165 LDFLAGS=$save_LDFLAGS
10166 fi
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10168 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10169 if test yes = "$lt_cv_irix_exported_symbol"; then
10170 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'
10171 fi
10172 else
10173 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'
10174 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'
10175 fi
10176 archive_cmds_need_lc='no'
10177 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10178 hardcode_libdir_separator=:
10179 inherit_rpath=yes
10180 link_all_deplibs=yes
10181 ;;
10182
10183 linux*)
10184 case $cc_basename in
10185 tcc*)
10186 # Fabrice Bellard et al's Tiny C Compiler
10187 ld_shlibs=yes
10188 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10189 ;;
10190 esac
10191 ;;
10192
10193 netbsd*)
10194 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10195 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10196 else
10197 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10198 fi
10199 hardcode_libdir_flag_spec='-R$libdir'
10200 hardcode_direct=yes
10201 hardcode_shlibpath_var=no
10202 ;;
10203
10204 newsos6)
10205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10206 hardcode_direct=yes
10207 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10208 hardcode_libdir_separator=:
10209 hardcode_shlibpath_var=no
10210 ;;
10211
10212 *nto* | *qnx*)
10213 ;;
10214
10215 openbsd* | bitrig*)
10216 if test -f /usr/libexec/ld.so; then
10217 hardcode_direct=yes
10218 hardcode_shlibpath_var=no
10219 hardcode_direct_absolute=yes
10220 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10221 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10222 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10223 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10224 export_dynamic_flag_spec='$wl-E'
10225 else
10226 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10227 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10228 fi
10229 else
10230 ld_shlibs=no
10231 fi
10232 ;;
10233
10234 os2*)
10235 hardcode_libdir_flag_spec='-L$libdir'
10236 hardcode_minus_L=yes
10237 allow_undefined_flag=unsupported
10238 shrext_cmds=.dll
10239 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10240 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10241 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10242 $ECHO EXPORTS >> $output_objdir/$libname.def~
10243 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10244 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10245 emximp -o $lib $output_objdir/$libname.def'
10246 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10247 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10248 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10249 $ECHO EXPORTS >> $output_objdir/$libname.def~
10250 prefix_cmds="$SED"~
10251 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10252 prefix_cmds="$prefix_cmds -e 1d";
10253 fi~
10254 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10255 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10256 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10257 emximp -o $lib $output_objdir/$libname.def'
10258 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10259 enable_shared_with_static_runtimes=yes
10260 ;;
10261
10262 osf3*)
10263 if test yes = "$GCC"; then
10264 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10265 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'
10266 else
10267 allow_undefined_flag=' -expect_unresolved \*'
10268 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'
10269 fi
10270 archive_cmds_need_lc='no'
10271 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10272 hardcode_libdir_separator=:
10273 ;;
10274
10275 osf4* | osf5*) # as osf3* with the addition of -msym flag
10276 if test yes = "$GCC"; then
10277 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10278 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'
10279 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10280 else
10281 allow_undefined_flag=' -expect_unresolved \*'
10282 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'
10283 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~
10284 $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'
10285
10286 # Both c and cxx compiler support -rpath directly
10287 hardcode_libdir_flag_spec='-rpath $libdir'
10288 fi
10289 archive_cmds_need_lc='no'
10290 hardcode_libdir_separator=:
10291 ;;
10292
10293 solaris*)
10294 no_undefined_flag=' -z defs'
10295 if test yes = "$GCC"; then
10296 wlarc='$wl'
10297 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10298 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10299 $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'
10300 else
10301 case `$CC -V 2>&1` in
10302 *"Compilers 5.0"*)
10303 wlarc=''
10304 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10305 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10306 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10307 ;;
10308 *)
10309 wlarc='$wl'
10310 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10311 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10312 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10313 ;;
10314 esac
10315 fi
10316 hardcode_libdir_flag_spec='-R$libdir'
10317 hardcode_shlibpath_var=no
10318 case $host_os in
10319 solaris2.[0-5] | solaris2.[0-5].*) ;;
10320 *)
10321 # The compiler driver will combine and reorder linker options,
10322 # but understands '-z linker_flag'. GCC discards it without '$wl',
10323 # but is careful enough not to reorder.
10324 # Supported since Solaris 2.6 (maybe 2.5.1?)
10325 if test yes = "$GCC"; then
10326 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10327 else
10328 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10329 fi
10330 ;;
10331 esac
10332 link_all_deplibs=yes
10333 ;;
10334
10335 sunos4*)
10336 if test sequent = "$host_vendor"; then
10337 # Use $CC to link under sequent, because it throws in some extra .o
10338 # files that make .init and .fini sections work.
10339 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10340 else
10341 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10342 fi
10343 hardcode_libdir_flag_spec='-L$libdir'
10344 hardcode_direct=yes
10345 hardcode_minus_L=yes
10346 hardcode_shlibpath_var=no
10347 ;;
10348
10349 sysv4)
10350 case $host_vendor in
10351 sni)
10352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353 hardcode_direct=yes # is this really true???
10354 ;;
10355 siemens)
10356 ## LD is ld it makes a PLAMLIB
10357 ## CC just makes a GrossModule.
10358 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10359 reload_cmds='$CC -r -o $output$reload_objs'
10360 hardcode_direct=no
10361 ;;
10362 motorola)
10363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10364 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10365 ;;
10366 esac
10367 runpath_var='LD_RUN_PATH'
10368 hardcode_shlibpath_var=no
10369 ;;
10370
10371 sysv4.3*)
10372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10373 hardcode_shlibpath_var=no
10374 export_dynamic_flag_spec='-Bexport'
10375 ;;
10376
10377 sysv4*MP*)
10378 if test -d /usr/nec; then
10379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10380 hardcode_shlibpath_var=no
10381 runpath_var=LD_RUN_PATH
10382 hardcode_runpath_var=yes
10383 ld_shlibs=yes
10384 fi
10385 ;;
10386
10387 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10388 no_undefined_flag='$wl-z,text'
10389 archive_cmds_need_lc=no
10390 hardcode_shlibpath_var=no
10391 runpath_var='LD_RUN_PATH'
10392
10393 if test yes = "$GCC"; then
10394 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396 else
10397 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10398 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10399 fi
10400 ;;
10401
10402 sysv5* | sco3.2v5* | sco5v6*)
10403 # Note: We CANNOT use -z defs as we might desire, because we do not
10404 # link with -lc, and that would cause any symbols used from libc to
10405 # always be unresolved, which means just about no library would
10406 # ever link correctly. If we're not using GNU ld we use -z text
10407 # though, which does catch some bad symbols but isn't as heavy-handed
10408 # as -z defs.
10409 no_undefined_flag='$wl-z,text'
10410 allow_undefined_flag='$wl-z,nodefs'
10411 archive_cmds_need_lc=no
10412 hardcode_shlibpath_var=no
10413 hardcode_libdir_flag_spec='$wl-R,$libdir'
10414 hardcode_libdir_separator=':'
10415 link_all_deplibs=yes
10416 export_dynamic_flag_spec='$wl-Bexport'
10417 runpath_var='LD_RUN_PATH'
10418
10419 if test yes = "$GCC"; then
10420 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422 else
10423 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10424 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10425 fi
10426 ;;
10427
10428 uts4*)
10429 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10430 hardcode_libdir_flag_spec='-L$libdir'
10431 hardcode_shlibpath_var=no
10432 ;;
10433
10434 *)
10435 ld_shlibs=no
10436 ;;
10437 esac
10438
10439 if test sni = "$host_vendor"; then
10440 case $host in
10441 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10442 export_dynamic_flag_spec='$wl-Blargedynsym'
10443 ;;
10444 esac
10445 fi
10446 fi
10447
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10449 $as_echo "$ld_shlibs" >&6; }
10450 test no = "$ld_shlibs" && can_build_shared=no
10451
10452 with_gnu_ld=$with_gnu_ld
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468 #
10469 # Do we need to explicitly link libc?
10470 #
10471 case "x$archive_cmds_need_lc" in
10472 x|xyes)
10473 # Assume -lc should be added
10474 archive_cmds_need_lc=yes
10475
10476 if test yes,yes = "$GCC,$enable_shared"; then
10477 case $archive_cmds in
10478 *'~'*)
10479 # FIXME: we may have to deal with multi-command sequences.
10480 ;;
10481 '$CC '*)
10482 # Test whether the compiler implicitly links with -lc since on some
10483 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10484 # to ld, don't add -lc before -lgcc.
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10486 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10487 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10488 $as_echo_n "(cached) " >&6
10489 else
10490 $RM conftest*
10491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10492
10493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10494 (eval $ac_compile) 2>&5
10495 ac_status=$?
10496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10497 test $ac_status = 0; } 2>conftest.err; then
10498 soname=conftest
10499 lib=conftest
10500 libobjs=conftest.$ac_objext
10501 deplibs=
10502 wl=$lt_prog_compiler_wl
10503 pic_flag=$lt_prog_compiler_pic
10504 compiler_flags=-v
10505 linker_flags=-v
10506 verstring=
10507 output_objdir=.
10508 libname=conftest
10509 lt_save_allow_undefined_flag=$allow_undefined_flag
10510 allow_undefined_flag=
10511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10512 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10513 ac_status=$?
10514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10515 test $ac_status = 0; }
10516 then
10517 lt_cv_archive_cmds_need_lc=no
10518 else
10519 lt_cv_archive_cmds_need_lc=yes
10520 fi
10521 allow_undefined_flag=$lt_save_allow_undefined_flag
10522 else
10523 cat conftest.err 1>&5
10524 fi
10525 $RM conftest*
10526
10527 fi
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10529 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10530 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10531 ;;
10532 esac
10533 fi
10534 ;;
10535 esac
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10689 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10690
10691 if test yes = "$GCC"; then
10692 case $host_os in
10693 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10694 *) lt_awk_arg='/^libraries:/' ;;
10695 esac
10696 case $host_os in
10697 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10698 *) lt_sed_strip_eq='s|=/|/|g' ;;
10699 esac
10700 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10701 case $lt_search_path_spec in
10702 *\;*)
10703 # if the path contains ";" then we assume it to be the separator
10704 # otherwise default to the standard path separator (i.e. ":") - it is
10705 # assumed that no part of a normal pathname contains ";" but that should
10706 # okay in the real world where ";" in dirpaths is itself problematic.
10707 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10708 ;;
10709 *)
10710 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10711 ;;
10712 esac
10713 # Ok, now we have the path, separated by spaces, we can step through it
10714 # and add multilib dir if necessary...
10715 lt_tmp_lt_search_path_spec=
10716 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10717 # ...but if some path component already ends with the multilib dir we assume
10718 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10719 case "$lt_multi_os_dir; $lt_search_path_spec " in
10720 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10721 lt_multi_os_dir=
10722 ;;
10723 esac
10724 for lt_sys_path in $lt_search_path_spec; do
10725 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10726 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10727 elif test -n "$lt_multi_os_dir"; then
10728 test -d "$lt_sys_path" && \
10729 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10730 fi
10731 done
10732 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10733 BEGIN {RS = " "; FS = "/|\n";} {
10734 lt_foo = "";
10735 lt_count = 0;
10736 for (lt_i = NF; lt_i > 0; lt_i--) {
10737 if ($lt_i != "" && $lt_i != ".") {
10738 if ($lt_i == "..") {
10739 lt_count++;
10740 } else {
10741 if (lt_count == 0) {
10742 lt_foo = "/" $lt_i lt_foo;
10743 } else {
10744 lt_count--;
10745 }
10746 }
10747 }
10748 }
10749 if (lt_foo != "") { lt_freq[lt_foo]++; }
10750 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10751 }'`
10752 # AWK program above erroneously prepends '/' to C:/dos/paths
10753 # for these hosts.
10754 case $host_os in
10755 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10756 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10757 esac
10758 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10759 else
10760 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10761 fi
10762 library_names_spec=
10763 libname_spec='lib$name'
10764 soname_spec=
10765 shrext_cmds=.so
10766 postinstall_cmds=
10767 postuninstall_cmds=
10768 finish_cmds=
10769 finish_eval=
10770 shlibpath_var=
10771 shlibpath_overrides_runpath=unknown
10772 version_type=none
10773 dynamic_linker="$host_os ld.so"
10774 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10775 need_lib_prefix=unknown
10776 hardcode_into_libs=no
10777
10778 # when you set need_version to no, make sure it does not cause -set_version
10779 # flags to be left without arguments
10780 need_version=unknown
10781
10782
10783
10784 case $host_os in
10785 aix3*)
10786 version_type=linux # correct to gnu/linux during the next big refactor
10787 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10788 shlibpath_var=LIBPATH
10789
10790 # AIX 3 has no versioning support, so we append a major version to the name.
10791 soname_spec='$libname$release$shared_ext$major'
10792 ;;
10793
10794 aix[4-9]*)
10795 version_type=linux # correct to gnu/linux during the next big refactor
10796 need_lib_prefix=no
10797 need_version=no
10798 hardcode_into_libs=yes
10799 if test ia64 = "$host_cpu"; then
10800 # AIX 5 supports IA64
10801 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10802 shlibpath_var=LD_LIBRARY_PATH
10803 else
10804 # With GCC up to 2.95.x, collect2 would create an import file
10805 # for dependence libraries. The import file would start with
10806 # the line '#! .'. This would cause the generated library to
10807 # depend on '.', always an invalid library. This was fixed in
10808 # development snapshots of GCC prior to 3.0.
10809 case $host_os in
10810 aix4 | aix4.[01] | aix4.[01].*)
10811 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10812 echo ' yes '
10813 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10814 :
10815 else
10816 can_build_shared=no
10817 fi
10818 ;;
10819 esac
10820 # Using Import Files as archive members, it is possible to support
10821 # filename-based versioning of shared library archives on AIX. While
10822 # this would work for both with and without runtime linking, it will
10823 # prevent static linking of such archives. So we do filename-based
10824 # shared library versioning with .so extension only, which is used
10825 # when both runtime linking and shared linking is enabled.
10826 # Unfortunately, runtime linking may impact performance, so we do
10827 # not want this to be the default eventually. Also, we use the
10828 # versioned .so libs for executables only if there is the -brtl
10829 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10830 # To allow for filename-based versioning support, we need to create
10831 # libNAME.so.V as an archive file, containing:
10832 # *) an Import File, referring to the versioned filename of the
10833 # archive as well as the shared archive member, telling the
10834 # bitwidth (32 or 64) of that shared object, and providing the
10835 # list of exported symbols of that shared object, eventually
10836 # decorated with the 'weak' keyword
10837 # *) the shared object with the F_LOADONLY flag set, to really avoid
10838 # it being seen by the linker.
10839 # At run time we better use the real file rather than another symlink,
10840 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10841
10842 case $with_aix_soname,$aix_use_runtimelinking in
10843 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10844 # soname into executable. Probably we can add versioning support to
10845 # collect2, so additional links can be useful in future.
10846 aix,yes) # traditional libtool
10847 dynamic_linker='AIX unversionable lib.so'
10848 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10849 # instead of lib<name>.a to let people know that these are not
10850 # typical AIX shared libraries.
10851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10852 ;;
10853 aix,no) # traditional AIX only
10854 dynamic_linker='AIX lib.a(lib.so.V)'
10855 # We preserve .a as extension for shared libraries through AIX4.2
10856 # and later when we are not doing run time linking.
10857 library_names_spec='$libname$release.a $libname.a'
10858 soname_spec='$libname$release$shared_ext$major'
10859 ;;
10860 svr4,*) # full svr4 only
10861 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10862 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10863 # We do not specify a path in Import Files, so LIBPATH fires.
10864 shlibpath_overrides_runpath=yes
10865 ;;
10866 *,yes) # both, prefer svr4
10867 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10868 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10869 # unpreferred sharedlib libNAME.a needs extra handling
10870 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"'
10871 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"'
10872 # We do not specify a path in Import Files, so LIBPATH fires.
10873 shlibpath_overrides_runpath=yes
10874 ;;
10875 *,no) # both, prefer aix
10876 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10877 library_names_spec='$libname$release.a $libname.a'
10878 soname_spec='$libname$release$shared_ext$major'
10879 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10880 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)'
10881 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"'
10882 ;;
10883 esac
10884 shlibpath_var=LIBPATH
10885 fi
10886 ;;
10887
10888 amigaos*)
10889 case $host_cpu in
10890 powerpc)
10891 # Since July 2007 AmigaOS4 officially supports .so libraries.
10892 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10894 ;;
10895 m68k)
10896 library_names_spec='$libname.ixlibrary $libname.a'
10897 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10898 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'
10899 ;;
10900 esac
10901 ;;
10902
10903 beos*)
10904 library_names_spec='$libname$shared_ext'
10905 dynamic_linker="$host_os ld.so"
10906 shlibpath_var=LIBRARY_PATH
10907 ;;
10908
10909 bsdi[45]*)
10910 version_type=linux # correct to gnu/linux during the next big refactor
10911 need_version=no
10912 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10913 soname_spec='$libname$release$shared_ext$major'
10914 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10915 shlibpath_var=LD_LIBRARY_PATH
10916 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10917 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10918 # the default ld.so.conf also contains /usr/contrib/lib and
10919 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10920 # libtool to hard-code these into programs
10921 ;;
10922
10923 cygwin* | mingw* | pw32* | cegcc*)
10924 version_type=windows
10925 shrext_cmds=.dll
10926 need_version=no
10927 need_lib_prefix=no
10928
10929 case $GCC,$cc_basename in
10930 yes,*)
10931 # gcc
10932 library_names_spec='$libname.dll.a'
10933 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10934 postinstall_cmds='base_file=`basename \$file`~
10935 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10936 dldir=$destdir/`dirname \$dlpath`~
10937 test -d \$dldir || mkdir -p \$dldir~
10938 $install_prog $dir/$dlname \$dldir/$dlname~
10939 chmod a+x \$dldir/$dlname~
10940 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10941 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10942 fi'
10943 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10944 dlpath=$dir/\$dldll~
10945 $RM \$dlpath'
10946 shlibpath_overrides_runpath=yes
10947
10948 case $host_os in
10949 cygwin*)
10950 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10951 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10952
10953 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10954 ;;
10955 mingw* | cegcc*)
10956 # MinGW DLLs use traditional 'lib' prefix
10957 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10958 ;;
10959 pw32*)
10960 # pw32 DLLs use 'pw' prefix rather than 'lib'
10961 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10962 ;;
10963 esac
10964 dynamic_linker='Win32 ld.exe'
10965 ;;
10966
10967 *,cl*)
10968 # Native MSVC
10969 libname_spec='$name'
10970 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10971 library_names_spec='$libname.dll.lib'
10972
10973 case $build_os in
10974 mingw*)
10975 sys_lib_search_path_spec=
10976 lt_save_ifs=$IFS
10977 IFS=';'
10978 for lt_path in $LIB
10979 do
10980 IFS=$lt_save_ifs
10981 # Let DOS variable expansion print the short 8.3 style file name.
10982 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10983 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10984 done
10985 IFS=$lt_save_ifs
10986 # Convert to MSYS style.
10987 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10988 ;;
10989 cygwin*)
10990 # Convert to unix form, then to dos form, then back to unix form
10991 # but this time dos style (no spaces!) so that the unix form looks
10992 # like /cygdrive/c/PROGRA~1:/cygdr...
10993 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10994 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10995 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10996 ;;
10997 *)
10998 sys_lib_search_path_spec=$LIB
10999 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11000 # It is most probably a Windows format PATH.
11001 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11002 else
11003 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11004 fi
11005 # FIXME: find the short name or the path components, as spaces are
11006 # common. (e.g. "Program Files" -> "PROGRA~1")
11007 ;;
11008 esac
11009
11010 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11011 postinstall_cmds='base_file=`basename \$file`~
11012 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11013 dldir=$destdir/`dirname \$dlpath`~
11014 test -d \$dldir || mkdir -p \$dldir~
11015 $install_prog $dir/$dlname \$dldir/$dlname'
11016 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11017 dlpath=$dir/\$dldll~
11018 $RM \$dlpath'
11019 shlibpath_overrides_runpath=yes
11020 dynamic_linker='Win32 link.exe'
11021 ;;
11022
11023 *)
11024 # Assume MSVC wrapper
11025 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11026 dynamic_linker='Win32 ld.exe'
11027 ;;
11028 esac
11029 # FIXME: first we should search . and the directory the executable is in
11030 shlibpath_var=PATH
11031 ;;
11032
11033 darwin* | rhapsody*)
11034 dynamic_linker="$host_os dyld"
11035 version_type=darwin
11036 need_lib_prefix=no
11037 need_version=no
11038 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11039 soname_spec='$libname$release$major$shared_ext'
11040 shlibpath_overrides_runpath=yes
11041 shlibpath_var=DYLD_LIBRARY_PATH
11042 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11043
11044 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11045 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11046 ;;
11047
11048 dgux*)
11049 version_type=linux # correct to gnu/linux during the next big refactor
11050 need_lib_prefix=no
11051 need_version=no
11052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11053 soname_spec='$libname$release$shared_ext$major'
11054 shlibpath_var=LD_LIBRARY_PATH
11055 ;;
11056
11057 freebsd* | dragonfly*)
11058 # DragonFly does not have aout. When/if they implement a new
11059 # versioning mechanism, adjust this.
11060 if test -x /usr/bin/objformat; then
11061 objformat=`/usr/bin/objformat`
11062 else
11063 case $host_os in
11064 freebsd[23].*) objformat=aout ;;
11065 *) objformat=elf ;;
11066 esac
11067 fi
11068 version_type=freebsd-$objformat
11069 case $version_type in
11070 freebsd-elf*)
11071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11072 soname_spec='$libname$release$shared_ext$major'
11073 need_version=no
11074 need_lib_prefix=no
11075 ;;
11076 freebsd-*)
11077 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11078 need_version=yes
11079 ;;
11080 esac
11081 shlibpath_var=LD_LIBRARY_PATH
11082 case $host_os in
11083 freebsd2.*)
11084 shlibpath_overrides_runpath=yes
11085 ;;
11086 freebsd3.[01]* | freebsdelf3.[01]*)
11087 shlibpath_overrides_runpath=yes
11088 hardcode_into_libs=yes
11089 ;;
11090 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11091 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11092 shlibpath_overrides_runpath=no
11093 hardcode_into_libs=yes
11094 ;;
11095 *) # from 4.6 on, and DragonFly
11096 shlibpath_overrides_runpath=yes
11097 hardcode_into_libs=yes
11098 ;;
11099 esac
11100 ;;
11101
11102 haiku*)
11103 version_type=linux # correct to gnu/linux during the next big refactor
11104 need_lib_prefix=no
11105 need_version=no
11106 dynamic_linker="$host_os runtime_loader"
11107 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11108 soname_spec='$libname$release$shared_ext$major'
11109 shlibpath_var=LIBRARY_PATH
11110 shlibpath_overrides_runpath=no
11111 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11112 hardcode_into_libs=yes
11113 ;;
11114
11115 hpux9* | hpux10* | hpux11*)
11116 # Give a soname corresponding to the major version so that dld.sl refuses to
11117 # link against other versions.
11118 version_type=sunos
11119 need_lib_prefix=no
11120 need_version=no
11121 case $host_cpu in
11122 ia64*)
11123 shrext_cmds='.so'
11124 hardcode_into_libs=yes
11125 dynamic_linker="$host_os dld.so"
11126 shlibpath_var=LD_LIBRARY_PATH
11127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11129 soname_spec='$libname$release$shared_ext$major'
11130 if test 32 = "$HPUX_IA64_MODE"; then
11131 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11132 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11133 else
11134 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11135 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11136 fi
11137 ;;
11138 hppa*64*)
11139 shrext_cmds='.sl'
11140 hardcode_into_libs=yes
11141 dynamic_linker="$host_os dld.sl"
11142 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11143 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11145 soname_spec='$libname$release$shared_ext$major'
11146 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11147 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11148 ;;
11149 *)
11150 shrext_cmds='.sl'
11151 dynamic_linker="$host_os dld.sl"
11152 shlibpath_var=SHLIB_PATH
11153 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11155 soname_spec='$libname$release$shared_ext$major'
11156 ;;
11157 esac
11158 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11159 postinstall_cmds='chmod 555 $lib'
11160 # or fails outright, so override atomically:
11161 install_override_mode=555
11162 ;;
11163
11164 interix[3-9]*)
11165 version_type=linux # correct to gnu/linux during the next big refactor
11166 need_lib_prefix=no
11167 need_version=no
11168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11169 soname_spec='$libname$release$shared_ext$major'
11170 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11171 shlibpath_var=LD_LIBRARY_PATH
11172 shlibpath_overrides_runpath=no
11173 hardcode_into_libs=yes
11174 ;;
11175
11176 irix5* | irix6* | nonstopux*)
11177 case $host_os in
11178 nonstopux*) version_type=nonstopux ;;
11179 *)
11180 if test yes = "$lt_cv_prog_gnu_ld"; then
11181 version_type=linux # correct to gnu/linux during the next big refactor
11182 else
11183 version_type=irix
11184 fi ;;
11185 esac
11186 need_lib_prefix=no
11187 need_version=no
11188 soname_spec='$libname$release$shared_ext$major'
11189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11190 case $host_os in
11191 irix5* | nonstopux*)
11192 libsuff= shlibsuff=
11193 ;;
11194 *)
11195 case $LD in # libtool.m4 will add one of these switches to LD
11196 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11197 libsuff= shlibsuff= libmagic=32-bit;;
11198 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11199 libsuff=32 shlibsuff=N32 libmagic=N32;;
11200 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11201 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11202 *) libsuff= shlibsuff= libmagic=never-match;;
11203 esac
11204 ;;
11205 esac
11206 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11207 shlibpath_overrides_runpath=no
11208 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11209 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11210 hardcode_into_libs=yes
11211 ;;
11212
11213 # No shared lib support for Linux oldld, aout, or coff.
11214 linux*oldld* | linux*aout* | linux*coff*)
11215 dynamic_linker=no
11216 ;;
11217
11218 linux*android*)
11219 version_type=none # Android doesn't support versioned libraries.
11220 need_lib_prefix=no
11221 need_version=no
11222 library_names_spec='$libname$release$shared_ext'
11223 soname_spec='$libname$release$shared_ext'
11224 finish_cmds=
11225 shlibpath_var=LD_LIBRARY_PATH
11226 shlibpath_overrides_runpath=yes
11227
11228 # This implies no fast_install, which is unacceptable.
11229 # Some rework will be needed to allow for fast_install
11230 # before this can be enabled.
11231 hardcode_into_libs=yes
11232
11233 dynamic_linker='Android linker'
11234 # Don't embed -rpath directories since the linker doesn't support them.
11235 hardcode_libdir_flag_spec='-L$libdir'
11236 ;;
11237
11238 # This must be glibc/ELF.
11239 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11240 version_type=linux # correct to gnu/linux during the next big refactor
11241 need_lib_prefix=no
11242 need_version=no
11243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11244 soname_spec='$libname$release$shared_ext$major'
11245 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11246 shlibpath_var=LD_LIBRARY_PATH
11247 shlibpath_overrides_runpath=no
11248
11249 # Some binutils ld are patched to set DT_RUNPATH
11250 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11251 $as_echo_n "(cached) " >&6
11252 else
11253 lt_cv_shlibpath_overrides_runpath=no
11254 save_LDFLAGS=$LDFLAGS
11255 save_libdir=$libdir
11256 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11257 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11259 /* end confdefs.h. */
11260
11261 int
11262 main ()
11263 {
11264
11265 ;
11266 return 0;
11267 }
11268 _ACEOF
11269 if ac_fn_c_try_link "$LINENO"; then :
11270 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11271 lt_cv_shlibpath_overrides_runpath=yes
11272 fi
11273 fi
11274 rm -f core conftest.err conftest.$ac_objext \
11275 conftest$ac_exeext conftest.$ac_ext
11276 LDFLAGS=$save_LDFLAGS
11277 libdir=$save_libdir
11278
11279 fi
11280
11281 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11282
11283 # This implies no fast_install, which is unacceptable.
11284 # Some rework will be needed to allow for fast_install
11285 # before this can be enabled.
11286 hardcode_into_libs=yes
11287
11288 # Add ABI-specific directories to the system library path.
11289 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11290
11291 # Ideally, we could use ldconfig to report *all* directores which are
11292 # searched for libraries, however this is still not possible. Aside from not
11293 # being certain /sbin/ldconfig is available, command
11294 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11295 # even though it is searched at run-time. Try to do the best guess by
11296 # appending ld.so.conf contents (and includes) to the search path.
11297 if test -f /etc/ld.so.conf; then
11298 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' ' '`
11299 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11300 fi
11301
11302 # We used to test for /lib/ld.so.1 and disable shared libraries on
11303 # powerpc, because MkLinux only supported shared libraries with the
11304 # GNU dynamic linker. Since this was broken with cross compilers,
11305 # most powerpc-linux boxes support dynamic linking these days and
11306 # people can always --disable-shared, the test was removed, and we
11307 # assume the GNU/Linux dynamic linker is in use.
11308 dynamic_linker='GNU/Linux ld.so'
11309 ;;
11310
11311 netbsd*)
11312 version_type=sunos
11313 need_lib_prefix=no
11314 need_version=no
11315 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11316 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11318 dynamic_linker='NetBSD (a.out) ld.so'
11319 else
11320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11321 soname_spec='$libname$release$shared_ext$major'
11322 dynamic_linker='NetBSD ld.elf_so'
11323 fi
11324 shlibpath_var=LD_LIBRARY_PATH
11325 shlibpath_overrides_runpath=yes
11326 hardcode_into_libs=yes
11327 ;;
11328
11329 newsos6)
11330 version_type=linux # correct to gnu/linux during the next big refactor
11331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11332 shlibpath_var=LD_LIBRARY_PATH
11333 shlibpath_overrides_runpath=yes
11334 ;;
11335
11336 *nto* | *qnx*)
11337 version_type=qnx
11338 need_lib_prefix=no
11339 need_version=no
11340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11341 soname_spec='$libname$release$shared_ext$major'
11342 shlibpath_var=LD_LIBRARY_PATH
11343 shlibpath_overrides_runpath=no
11344 hardcode_into_libs=yes
11345 dynamic_linker='ldqnx.so'
11346 ;;
11347
11348 openbsd* | bitrig*)
11349 version_type=sunos
11350 sys_lib_dlsearch_path_spec=/usr/lib
11351 need_lib_prefix=no
11352 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11353 need_version=no
11354 else
11355 need_version=yes
11356 fi
11357 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11359 shlibpath_var=LD_LIBRARY_PATH
11360 shlibpath_overrides_runpath=yes
11361 ;;
11362
11363 os2*)
11364 libname_spec='$name'
11365 version_type=windows
11366 shrext_cmds=.dll
11367 need_version=no
11368 need_lib_prefix=no
11369 # OS/2 can only load a DLL with a base name of 8 characters or less.
11370 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11371 v=$($ECHO $release$versuffix | tr -d .-);
11372 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11373 $ECHO $n$v`$shared_ext'
11374 library_names_spec='${libname}_dll.$libext'
11375 dynamic_linker='OS/2 ld.exe'
11376 shlibpath_var=BEGINLIBPATH
11377 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11379 postinstall_cmds='base_file=`basename \$file`~
11380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11381 dldir=$destdir/`dirname \$dlpath`~
11382 test -d \$dldir || mkdir -p \$dldir~
11383 $install_prog $dir/$dlname \$dldir/$dlname~
11384 chmod a+x \$dldir/$dlname~
11385 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11386 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11387 fi'
11388 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11389 dlpath=$dir/\$dldll~
11390 $RM \$dlpath'
11391 ;;
11392
11393 osf3* | osf4* | osf5*)
11394 version_type=osf
11395 need_lib_prefix=no
11396 need_version=no
11397 soname_spec='$libname$release$shared_ext$major'
11398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11399 shlibpath_var=LD_LIBRARY_PATH
11400 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11401 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11402 ;;
11403
11404 rdos*)
11405 dynamic_linker=no
11406 ;;
11407
11408 solaris*)
11409 version_type=linux # correct to gnu/linux during the next big refactor
11410 need_lib_prefix=no
11411 need_version=no
11412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11413 soname_spec='$libname$release$shared_ext$major'
11414 shlibpath_var=LD_LIBRARY_PATH
11415 shlibpath_overrides_runpath=yes
11416 hardcode_into_libs=yes
11417 # ldd complains unless libraries are executable
11418 postinstall_cmds='chmod +x $lib'
11419 ;;
11420
11421 sunos4*)
11422 version_type=sunos
11423 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11424 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11425 shlibpath_var=LD_LIBRARY_PATH
11426 shlibpath_overrides_runpath=yes
11427 if test yes = "$with_gnu_ld"; then
11428 need_lib_prefix=no
11429 fi
11430 need_version=yes
11431 ;;
11432
11433 sysv4 | sysv4.3*)
11434 version_type=linux # correct to gnu/linux during the next big refactor
11435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11436 soname_spec='$libname$release$shared_ext$major'
11437 shlibpath_var=LD_LIBRARY_PATH
11438 case $host_vendor in
11439 sni)
11440 shlibpath_overrides_runpath=no
11441 need_lib_prefix=no
11442 runpath_var=LD_RUN_PATH
11443 ;;
11444 siemens)
11445 need_lib_prefix=no
11446 ;;
11447 motorola)
11448 need_lib_prefix=no
11449 need_version=no
11450 shlibpath_overrides_runpath=no
11451 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11452 ;;
11453 esac
11454 ;;
11455
11456 sysv4*MP*)
11457 if test -d /usr/nec; then
11458 version_type=linux # correct to gnu/linux during the next big refactor
11459 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11460 soname_spec='$libname$shared_ext.$major'
11461 shlibpath_var=LD_LIBRARY_PATH
11462 fi
11463 ;;
11464
11465 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11466 version_type=sco
11467 need_lib_prefix=no
11468 need_version=no
11469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11470 soname_spec='$libname$release$shared_ext$major'
11471 shlibpath_var=LD_LIBRARY_PATH
11472 shlibpath_overrides_runpath=yes
11473 hardcode_into_libs=yes
11474 if test yes = "$with_gnu_ld"; then
11475 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11476 else
11477 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11478 case $host_os in
11479 sco3.2v5*)
11480 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11481 ;;
11482 esac
11483 fi
11484 sys_lib_dlsearch_path_spec='/usr/lib'
11485 ;;
11486
11487 tpf*)
11488 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11489 version_type=linux # correct to gnu/linux during the next big refactor
11490 need_lib_prefix=no
11491 need_version=no
11492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11493 shlibpath_var=LD_LIBRARY_PATH
11494 shlibpath_overrides_runpath=no
11495 hardcode_into_libs=yes
11496 ;;
11497
11498 uts4*)
11499 version_type=linux # correct to gnu/linux during the next big refactor
11500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11501 soname_spec='$libname$release$shared_ext$major'
11502 shlibpath_var=LD_LIBRARY_PATH
11503 ;;
11504
11505 *)
11506 dynamic_linker=no
11507 ;;
11508 esac
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11510 $as_echo "$dynamic_linker" >&6; }
11511 test no = "$dynamic_linker" && can_build_shared=no
11512
11513 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11514 if test yes = "$GCC"; then
11515 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11516 fi
11517
11518 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11519 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11520 fi
11521
11522 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11523 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11524 fi
11525
11526 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11527 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11528
11529 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11530 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11531
11532 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11533 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11632 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11633 hardcode_action=
11634 if test -n "$hardcode_libdir_flag_spec" ||
11635 test -n "$runpath_var" ||
11636 test yes = "$hardcode_automatic"; then
11637
11638 # We can hardcode non-existent directories.
11639 if test no != "$hardcode_direct" &&
11640 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11641 # have to relink, otherwise we might link with an installed library
11642 # when we should be linking with a yet-to-be-installed one
11643 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11644 test no != "$hardcode_minus_L"; then
11645 # Linking always hardcodes the temporary library directory.
11646 hardcode_action=relink
11647 else
11648 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11649 hardcode_action=immediate
11650 fi
11651 else
11652 # We cannot hardcode anything, or else we can only hardcode existing
11653 # directories.
11654 hardcode_action=unsupported
11655 fi
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11657 $as_echo "$hardcode_action" >&6; }
11658
11659 if test relink = "$hardcode_action" ||
11660 test yes = "$inherit_rpath"; then
11661 # Fast installation is not supported
11662 enable_fast_install=no
11663 elif test yes = "$shlibpath_overrides_runpath" ||
11664 test no = "$enable_shared"; then
11665 # Fast installation is not necessary
11666 enable_fast_install=needless
11667 fi
11668
11669
11670
11671
11672
11673
11674 if test yes != "$enable_dlopen"; then
11675 enable_dlopen=unknown
11676 enable_dlopen_self=unknown
11677 enable_dlopen_self_static=unknown
11678 else
11679 lt_cv_dlopen=no
11680 lt_cv_dlopen_libs=
11681
11682 case $host_os in
11683 beos*)
11684 lt_cv_dlopen=load_add_on
11685 lt_cv_dlopen_libs=
11686 lt_cv_dlopen_self=yes
11687 ;;
11688
11689 mingw* | pw32* | cegcc*)
11690 lt_cv_dlopen=LoadLibrary
11691 lt_cv_dlopen_libs=
11692 ;;
11693
11694 cygwin*)
11695 lt_cv_dlopen=dlopen
11696 lt_cv_dlopen_libs=
11697 ;;
11698
11699 darwin*)
11700 # if libdl is installed we need to link against it
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11702 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11703 if ${ac_cv_lib_dl_dlopen+:} false; then :
11704 $as_echo_n "(cached) " >&6
11705 else
11706 ac_check_lib_save_LIBS=$LIBS
11707 LIBS="-ldl $LIBS"
11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h. */
11710
11711 /* Override any GCC internal prototype to avoid an error.
11712 Use char because int might match the return type of a GCC
11713 builtin and then its argument prototype would still apply. */
11714 #ifdef __cplusplus
11715 extern "C"
11716 #endif
11717 char dlopen ();
11718 int
11719 main ()
11720 {
11721 return dlopen ();
11722 ;
11723 return 0;
11724 }
11725 _ACEOF
11726 if ac_fn_c_try_link "$LINENO"; then :
11727 ac_cv_lib_dl_dlopen=yes
11728 else
11729 ac_cv_lib_dl_dlopen=no
11730 fi
11731 rm -f core conftest.err conftest.$ac_objext \
11732 conftest$ac_exeext conftest.$ac_ext
11733 LIBS=$ac_check_lib_save_LIBS
11734 fi
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11736 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11737 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11738 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11739 else
11740
11741 lt_cv_dlopen=dyld
11742 lt_cv_dlopen_libs=
11743 lt_cv_dlopen_self=yes
11744
11745 fi
11746
11747 ;;
11748
11749 tpf*)
11750 # Don't try to run any link tests for TPF. We know it's impossible
11751 # because TPF is a cross-compiler, and we know how we open DSOs.
11752 lt_cv_dlopen=dlopen
11753 lt_cv_dlopen_libs=
11754 lt_cv_dlopen_self=no
11755 ;;
11756
11757 *)
11758 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11759 if test "x$ac_cv_func_shl_load" = xyes; then :
11760 lt_cv_dlopen=shl_load
11761 else
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11763 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11764 if ${ac_cv_lib_dld_shl_load+:} false; then :
11765 $as_echo_n "(cached) " >&6
11766 else
11767 ac_check_lib_save_LIBS=$LIBS
11768 LIBS="-ldld $LIBS"
11769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770 /* end confdefs.h. */
11771
11772 /* Override any GCC internal prototype to avoid an error.
11773 Use char because int might match the return type of a GCC
11774 builtin and then its argument prototype would still apply. */
11775 #ifdef __cplusplus
11776 extern "C"
11777 #endif
11778 char shl_load ();
11779 int
11780 main ()
11781 {
11782 return shl_load ();
11783 ;
11784 return 0;
11785 }
11786 _ACEOF
11787 if ac_fn_c_try_link "$LINENO"; then :
11788 ac_cv_lib_dld_shl_load=yes
11789 else
11790 ac_cv_lib_dld_shl_load=no
11791 fi
11792 rm -f core conftest.err conftest.$ac_objext \
11793 conftest$ac_exeext conftest.$ac_ext
11794 LIBS=$ac_check_lib_save_LIBS
11795 fi
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11797 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11798 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11799 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11800 else
11801 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11802 if test "x$ac_cv_func_dlopen" = xyes; then :
11803 lt_cv_dlopen=dlopen
11804 else
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11806 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11807 if ${ac_cv_lib_dl_dlopen+:} false; then :
11808 $as_echo_n "(cached) " >&6
11809 else
11810 ac_check_lib_save_LIBS=$LIBS
11811 LIBS="-ldl $LIBS"
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11814
11815 /* Override any GCC internal prototype to avoid an error.
11816 Use char because int might match the return type of a GCC
11817 builtin and then its argument prototype would still apply. */
11818 #ifdef __cplusplus
11819 extern "C"
11820 #endif
11821 char dlopen ();
11822 int
11823 main ()
11824 {
11825 return dlopen ();
11826 ;
11827 return 0;
11828 }
11829 _ACEOF
11830 if ac_fn_c_try_link "$LINENO"; then :
11831 ac_cv_lib_dl_dlopen=yes
11832 else
11833 ac_cv_lib_dl_dlopen=no
11834 fi
11835 rm -f core conftest.err conftest.$ac_objext \
11836 conftest$ac_exeext conftest.$ac_ext
11837 LIBS=$ac_check_lib_save_LIBS
11838 fi
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11840 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11841 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11842 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11843 else
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11845 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11846 if ${ac_cv_lib_svld_dlopen+:} false; then :
11847 $as_echo_n "(cached) " >&6
11848 else
11849 ac_check_lib_save_LIBS=$LIBS
11850 LIBS="-lsvld $LIBS"
11851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852 /* end confdefs.h. */
11853
11854 /* Override any GCC internal prototype to avoid an error.
11855 Use char because int might match the return type of a GCC
11856 builtin and then its argument prototype would still apply. */
11857 #ifdef __cplusplus
11858 extern "C"
11859 #endif
11860 char dlopen ();
11861 int
11862 main ()
11863 {
11864 return dlopen ();
11865 ;
11866 return 0;
11867 }
11868 _ACEOF
11869 if ac_fn_c_try_link "$LINENO"; then :
11870 ac_cv_lib_svld_dlopen=yes
11871 else
11872 ac_cv_lib_svld_dlopen=no
11873 fi
11874 rm -f core conftest.err conftest.$ac_objext \
11875 conftest$ac_exeext conftest.$ac_ext
11876 LIBS=$ac_check_lib_save_LIBS
11877 fi
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11879 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11880 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11881 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11882 else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11884 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11885 if ${ac_cv_lib_dld_dld_link+:} false; then :
11886 $as_echo_n "(cached) " >&6
11887 else
11888 ac_check_lib_save_LIBS=$LIBS
11889 LIBS="-ldld $LIBS"
11890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11891 /* end confdefs.h. */
11892
11893 /* Override any GCC internal prototype to avoid an error.
11894 Use char because int might match the return type of a GCC
11895 builtin and then its argument prototype would still apply. */
11896 #ifdef __cplusplus
11897 extern "C"
11898 #endif
11899 char dld_link ();
11900 int
11901 main ()
11902 {
11903 return dld_link ();
11904 ;
11905 return 0;
11906 }
11907 _ACEOF
11908 if ac_fn_c_try_link "$LINENO"; then :
11909 ac_cv_lib_dld_dld_link=yes
11910 else
11911 ac_cv_lib_dld_dld_link=no
11912 fi
11913 rm -f core conftest.err conftest.$ac_objext \
11914 conftest$ac_exeext conftest.$ac_ext
11915 LIBS=$ac_check_lib_save_LIBS
11916 fi
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11918 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11919 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11920 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11921 fi
11922
11923
11924 fi
11925
11926
11927 fi
11928
11929
11930 fi
11931
11932
11933 fi
11934
11935
11936 fi
11937
11938 ;;
11939 esac
11940
11941 if test no = "$lt_cv_dlopen"; then
11942 enable_dlopen=no
11943 else
11944 enable_dlopen=yes
11945 fi
11946
11947 case $lt_cv_dlopen in
11948 dlopen)
11949 save_CPPFLAGS=$CPPFLAGS
11950 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11951
11952 save_LDFLAGS=$LDFLAGS
11953 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11954
11955 save_LIBS=$LIBS
11956 LIBS="$lt_cv_dlopen_libs $LIBS"
11957
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11959 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11960 if ${lt_cv_dlopen_self+:} false; then :
11961 $as_echo_n "(cached) " >&6
11962 else
11963 if test yes = "$cross_compiling"; then :
11964 lt_cv_dlopen_self=cross
11965 else
11966 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11967 lt_status=$lt_dlunknown
11968 cat > conftest.$ac_ext <<_LT_EOF
11969 #line $LINENO "configure"
11970 #include "confdefs.h"
11971
11972 #if HAVE_DLFCN_H
11973 #include <dlfcn.h>
11974 #endif
11975
11976 #include <stdio.h>
11977
11978 #ifdef RTLD_GLOBAL
11979 # define LT_DLGLOBAL RTLD_GLOBAL
11980 #else
11981 # ifdef DL_GLOBAL
11982 # define LT_DLGLOBAL DL_GLOBAL
11983 # else
11984 # define LT_DLGLOBAL 0
11985 # endif
11986 #endif
11987
11988 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11989 find out it does not work in some platform. */
11990 #ifndef LT_DLLAZY_OR_NOW
11991 # ifdef RTLD_LAZY
11992 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11993 # else
11994 # ifdef DL_LAZY
11995 # define LT_DLLAZY_OR_NOW DL_LAZY
11996 # else
11997 # ifdef RTLD_NOW
11998 # define LT_DLLAZY_OR_NOW RTLD_NOW
11999 # else
12000 # ifdef DL_NOW
12001 # define LT_DLLAZY_OR_NOW DL_NOW
12002 # else
12003 # define LT_DLLAZY_OR_NOW 0
12004 # endif
12005 # endif
12006 # endif
12007 # endif
12008 #endif
12009
12010 /* When -fvisibility=hidden is used, assume the code has been annotated
12011 correspondingly for the symbols needed. */
12012 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12013 int fnord () __attribute__((visibility("default")));
12014 #endif
12015
12016 int fnord () { return 42; }
12017 int main ()
12018 {
12019 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12020 int status = $lt_dlunknown;
12021
12022 if (self)
12023 {
12024 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12025 else
12026 {
12027 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12028 else puts (dlerror ());
12029 }
12030 /* dlclose (self); */
12031 }
12032 else
12033 puts (dlerror ());
12034
12035 return status;
12036 }
12037 _LT_EOF
12038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12039 (eval $ac_link) 2>&5
12040 ac_status=$?
12041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12042 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12043 (./conftest; exit; ) >&5 2>/dev/null
12044 lt_status=$?
12045 case x$lt_status in
12046 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12047 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12048 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12049 esac
12050 else :
12051 # compilation failed
12052 lt_cv_dlopen_self=no
12053 fi
12054 fi
12055 rm -fr conftest*
12056
12057
12058 fi
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12060 $as_echo "$lt_cv_dlopen_self" >&6; }
12061
12062 if test yes = "$lt_cv_dlopen_self"; then
12063 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12065 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12066 if ${lt_cv_dlopen_self_static+:} false; then :
12067 $as_echo_n "(cached) " >&6
12068 else
12069 if test yes = "$cross_compiling"; then :
12070 lt_cv_dlopen_self_static=cross
12071 else
12072 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12073 lt_status=$lt_dlunknown
12074 cat > conftest.$ac_ext <<_LT_EOF
12075 #line $LINENO "configure"
12076 #include "confdefs.h"
12077
12078 #if HAVE_DLFCN_H
12079 #include <dlfcn.h>
12080 #endif
12081
12082 #include <stdio.h>
12083
12084 #ifdef RTLD_GLOBAL
12085 # define LT_DLGLOBAL RTLD_GLOBAL
12086 #else
12087 # ifdef DL_GLOBAL
12088 # define LT_DLGLOBAL DL_GLOBAL
12089 # else
12090 # define LT_DLGLOBAL 0
12091 # endif
12092 #endif
12093
12094 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12095 find out it does not work in some platform. */
12096 #ifndef LT_DLLAZY_OR_NOW
12097 # ifdef RTLD_LAZY
12098 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12099 # else
12100 # ifdef DL_LAZY
12101 # define LT_DLLAZY_OR_NOW DL_LAZY
12102 # else
12103 # ifdef RTLD_NOW
12104 # define LT_DLLAZY_OR_NOW RTLD_NOW
12105 # else
12106 # ifdef DL_NOW
12107 # define LT_DLLAZY_OR_NOW DL_NOW
12108 # else
12109 # define LT_DLLAZY_OR_NOW 0
12110 # endif
12111 # endif
12112 # endif
12113 # endif
12114 #endif
12115
12116 /* When -fvisibility=hidden is used, assume the code has been annotated
12117 correspondingly for the symbols needed. */
12118 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12119 int fnord () __attribute__((visibility("default")));
12120 #endif
12121
12122 int fnord () { return 42; }
12123 int main ()
12124 {
12125 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12126 int status = $lt_dlunknown;
12127
12128 if (self)
12129 {
12130 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12131 else
12132 {
12133 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12134 else puts (dlerror ());
12135 }
12136 /* dlclose (self); */
12137 }
12138 else
12139 puts (dlerror ());
12140
12141 return status;
12142 }
12143 _LT_EOF
12144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12145 (eval $ac_link) 2>&5
12146 ac_status=$?
12147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12148 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12149 (./conftest; exit; ) >&5 2>/dev/null
12150 lt_status=$?
12151 case x$lt_status in
12152 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12153 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12154 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12155 esac
12156 else :
12157 # compilation failed
12158 lt_cv_dlopen_self_static=no
12159 fi
12160 fi
12161 rm -fr conftest*
12162
12163
12164 fi
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12166 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12167 fi
12168
12169 CPPFLAGS=$save_CPPFLAGS
12170 LDFLAGS=$save_LDFLAGS
12171 LIBS=$save_LIBS
12172 ;;
12173 esac
12174
12175 case $lt_cv_dlopen_self in
12176 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12177 *) enable_dlopen_self=unknown ;;
12178 esac
12179
12180 case $lt_cv_dlopen_self_static in
12181 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12182 *) enable_dlopen_self_static=unknown ;;
12183 esac
12184 fi
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202 striplib=
12203 old_striplib=
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12205 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12206 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12207 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12208 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12210 $as_echo "yes" >&6; }
12211 else
12212 # FIXME - insert some real tests, host_os isn't really good enough
12213 case $host_os in
12214 darwin*)
12215 if test -n "$STRIP"; then
12216 striplib="$STRIP -x"
12217 old_striplib="$STRIP -S"
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12219 $as_echo "yes" >&6; }
12220 else
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222 $as_echo "no" >&6; }
12223 fi
12224 ;;
12225 *)
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12228 ;;
12229 esac
12230 fi
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243 # Report what library types will actually be built
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12245 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12247 $as_echo "$can_build_shared" >&6; }
12248
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12250 $as_echo_n "checking whether to build shared libraries... " >&6; }
12251 test no = "$can_build_shared" && enable_shared=no
12252
12253 # On AIX, shared libraries and static libraries use the same namespace, and
12254 # are all built from PIC.
12255 case $host_os in
12256 aix3*)
12257 test yes = "$enable_shared" && enable_static=no
12258 if test -n "$RANLIB"; then
12259 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12260 postinstall_cmds='$RANLIB $lib'
12261 fi
12262 ;;
12263
12264 aix[4-9]*)
12265 if test ia64 != "$host_cpu"; then
12266 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12267 yes,aix,yes) ;; # shared object as lib.so file only
12268 yes,svr4,*) ;; # shared object as lib.so archive member only
12269 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12270 esac
12271 fi
12272 ;;
12273 esac
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12275 $as_echo "$enable_shared" >&6; }
12276
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12278 $as_echo_n "checking whether to build static libraries... " >&6; }
12279 # Make sure either enable_shared or enable_static is yes.
12280 test yes = "$enable_shared" || enable_static=yes
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12282 $as_echo "$enable_static" >&6; }
12283
12284
12285
12286
12287 fi
12288 ac_ext=c
12289 ac_cpp='$CPP $CPPFLAGS'
12290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12293
12294 CC=$lt_save_CC
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310 ac_config_commands="$ac_config_commands libtool"
12311
12312
12313
12314
12315 # Only expand once:
12316
12317
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
12319 $as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
12320 if ${libltdl_cv_shlibext+:} false; then :
12321 $as_echo_n "(cached) " >&6
12322 else
12323
12324 module=yes
12325 eval libltdl_cv_shlibext=$shrext_cmds
12326 module=no
12327 eval libltdl_cv_shrext=$shrext_cmds
12328
12329 fi
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12331 $as_echo "$libltdl_cv_shlibext" >&6; }
12332 if test -n "$libltdl_cv_shlibext"; then
12333
12334 cat >>confdefs.h <<_ACEOF
12335 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
12336 _ACEOF
12337
12338 fi
12339 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12340
12341 cat >>confdefs.h <<_ACEOF
12342 #define LT_SHARED_EXT "$libltdl_cv_shrext"
12343 _ACEOF
12344
12345 fi
12346 if test -n "$shared_archive_member_spec"; then
12347
12348 cat >>confdefs.h <<_ACEOF
12349 #define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
12350 _ACEOF
12351
12352 fi
12353
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
12355 $as_echo_n "checking what variable specifies run-time module search path... " >&6; }
12356 if ${lt_cv_module_path_var+:} false; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359 lt_cv_module_path_var=$shlibpath_var
12360 fi
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12362 $as_echo "$lt_cv_module_path_var" >&6; }
12363 if test -n "$lt_cv_module_path_var"; then
12364
12365 cat >>confdefs.h <<_ACEOF
12366 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12367 _ACEOF
12368
12369 fi
12370
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12372 $as_echo_n "checking for the default library search path... " >&6; }
12373 if ${lt_cv_sys_dlsearch_path+:} false; then :
12374 $as_echo_n "(cached) " >&6
12375 else
12376 lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
12377 fi
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12379 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12380 if test -n "$lt_cv_sys_dlsearch_path"; then
12381 sys_dlsearch_path=
12382 for dir in $lt_cv_sys_dlsearch_path; do
12383 if test -z "$sys_dlsearch_path"; then
12384 sys_dlsearch_path=$dir
12385 else
12386 sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
12387 fi
12388 done
12389
12390 cat >>confdefs.h <<_ACEOF
12391 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12392 _ACEOF
12393
12394 fi
12395
12396
12397 LT_DLLOADERS=
12398
12399
12400 ac_ext=c
12401 ac_cpp='$CPP $CPPFLAGS'
12402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12405
12406 lt_dlload_save_LIBS=$LIBS
12407
12408 LIBADD_DLOPEN=
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12410 $as_echo_n "checking for library containing dlopen... " >&6; }
12411 if ${ac_cv_search_dlopen+:} false; then :
12412 $as_echo_n "(cached) " >&6
12413 else
12414 ac_func_search_save_LIBS=$LIBS
12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12417
12418 /* Override any GCC internal prototype to avoid an error.
12419 Use char because int might match the return type of a GCC
12420 builtin and then its argument prototype would still apply. */
12421 #ifdef __cplusplus
12422 extern "C"
12423 #endif
12424 char dlopen ();
12425 int
12426 main ()
12427 {
12428 return dlopen ();
12429 ;
12430 return 0;
12431 }
12432 _ACEOF
12433 for ac_lib in '' dl; do
12434 if test -z "$ac_lib"; then
12435 ac_res="none required"
12436 else
12437 ac_res=-l$ac_lib
12438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12439 fi
12440 if ac_fn_c_try_link "$LINENO"; then :
12441 ac_cv_search_dlopen=$ac_res
12442 fi
12443 rm -f core conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext
12445 if ${ac_cv_search_dlopen+:} false; then :
12446 break
12447 fi
12448 done
12449 if ${ac_cv_search_dlopen+:} false; then :
12450
12451 else
12452 ac_cv_search_dlopen=no
12453 fi
12454 rm conftest.$ac_ext
12455 LIBS=$ac_func_search_save_LIBS
12456 fi
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12458 $as_echo "$ac_cv_search_dlopen" >&6; }
12459 ac_res=$ac_cv_search_dlopen
12460 if test "$ac_res" != no; then :
12461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12462
12463 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12464
12465 if test "$ac_cv_search_dlopen" != "none required"; then
12466 LIBADD_DLOPEN=-ldl
12467 fi
12468 libltdl_cv_lib_dl_dlopen=yes
12469 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12470 else
12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h. */
12473 #if HAVE_DLFCN_H
12474 # include <dlfcn.h>
12475 #endif
12476
12477 int
12478 main ()
12479 {
12480 dlopen(0, 0);
12481 ;
12482 return 0;
12483 }
12484 _ACEOF
12485 if ac_fn_c_try_link "$LINENO"; then :
12486
12487 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12488
12489 libltdl_cv_func_dlopen=yes
12490 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12491 else
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12493 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12494 if ${ac_cv_lib_svld_dlopen+:} false; then :
12495 $as_echo_n "(cached) " >&6
12496 else
12497 ac_check_lib_save_LIBS=$LIBS
12498 LIBS="-lsvld $LIBS"
12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500 /* end confdefs.h. */
12501
12502 /* Override any GCC internal prototype to avoid an error.
12503 Use char because int might match the return type of a GCC
12504 builtin and then its argument prototype would still apply. */
12505 #ifdef __cplusplus
12506 extern "C"
12507 #endif
12508 char dlopen ();
12509 int
12510 main ()
12511 {
12512 return dlopen ();
12513 ;
12514 return 0;
12515 }
12516 _ACEOF
12517 if ac_fn_c_try_link "$LINENO"; then :
12518 ac_cv_lib_svld_dlopen=yes
12519 else
12520 ac_cv_lib_svld_dlopen=no
12521 fi
12522 rm -f core conftest.err conftest.$ac_objext \
12523 conftest$ac_exeext conftest.$ac_ext
12524 LIBS=$ac_check_lib_save_LIBS
12525 fi
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12527 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12528 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12529
12530 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12531
12532 LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
12533 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12534 fi
12535
12536 fi
12537 rm -f core conftest.err conftest.$ac_objext \
12538 conftest$ac_exeext conftest.$ac_ext
12539 fi
12540
12541 if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
12542 then
12543 lt_save_LIBS=$LIBS
12544 LIBS="$LIBS $LIBADD_DLOPEN"
12545 for ac_func in dlerror
12546 do :
12547 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12548 if test "x$ac_cv_func_dlerror" = xyes; then :
12549 cat >>confdefs.h <<_ACEOF
12550 #define HAVE_DLERROR 1
12551 _ACEOF
12552
12553 fi
12554 done
12555
12556 LIBS=$lt_save_LIBS
12557 fi
12558
12559
12560 LIBADD_SHL_LOAD=
12561 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12562 if test "x$ac_cv_func_shl_load" = xyes; then :
12563
12564 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12565
12566 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12567 else
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12569 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12570 if ${ac_cv_lib_dld_shl_load+:} false; then :
12571 $as_echo_n "(cached) " >&6
12572 else
12573 ac_check_lib_save_LIBS=$LIBS
12574 LIBS="-ldld $LIBS"
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12577
12578 /* Override any GCC internal prototype to avoid an error.
12579 Use char because int might match the return type of a GCC
12580 builtin and then its argument prototype would still apply. */
12581 #ifdef __cplusplus
12582 extern "C"
12583 #endif
12584 char shl_load ();
12585 int
12586 main ()
12587 {
12588 return shl_load ();
12589 ;
12590 return 0;
12591 }
12592 _ACEOF
12593 if ac_fn_c_try_link "$LINENO"; then :
12594 ac_cv_lib_dld_shl_load=yes
12595 else
12596 ac_cv_lib_dld_shl_load=no
12597 fi
12598 rm -f core conftest.err conftest.$ac_objext \
12599 conftest$ac_exeext conftest.$ac_ext
12600 LIBS=$ac_check_lib_save_LIBS
12601 fi
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12603 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12604 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12605
12606 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12607
12608 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12609 LIBADD_SHL_LOAD=-ldld
12610 fi
12611
12612 fi
12613
12614
12615
12616 case $host_os in
12617 darwin[1567].*)
12618 # We only want this for pre-Mac OS X 10.4.
12619 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12620 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12621
12622 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12623
12624 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12625 fi
12626
12627 ;;
12628 beos*)
12629 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12630 ;;
12631 cygwin* | mingw* | pw32*)
12632 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12633 "
12634 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12635 ac_have_decl=1
12636 else
12637 ac_have_decl=0
12638 fi
12639
12640 cat >>confdefs.h <<_ACEOF
12641 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12642 _ACEOF
12643
12644 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12645 ;;
12646 esac
12647
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12649 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12650 if ${ac_cv_lib_dld_dld_link+:} false; then :
12651 $as_echo_n "(cached) " >&6
12652 else
12653 ac_check_lib_save_LIBS=$LIBS
12654 LIBS="-ldld $LIBS"
12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656 /* end confdefs.h. */
12657
12658 /* Override any GCC internal prototype to avoid an error.
12659 Use char because int might match the return type of a GCC
12660 builtin and then its argument prototype would still apply. */
12661 #ifdef __cplusplus
12662 extern "C"
12663 #endif
12664 char dld_link ();
12665 int
12666 main ()
12667 {
12668 return dld_link ();
12669 ;
12670 return 0;
12671 }
12672 _ACEOF
12673 if ac_fn_c_try_link "$LINENO"; then :
12674 ac_cv_lib_dld_dld_link=yes
12675 else
12676 ac_cv_lib_dld_dld_link=no
12677 fi
12678 rm -f core conftest.err conftest.$ac_objext \
12679 conftest$ac_exeext conftest.$ac_ext
12680 LIBS=$ac_check_lib_save_LIBS
12681 fi
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12683 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12684 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12685
12686 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12687
12688 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12689 fi
12690
12691
12692
12693
12694 LT_DLPREOPEN=
12695 if test -n "$LT_DLLOADERS"
12696 then
12697 for lt_loader in $LT_DLLOADERS; do
12698 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12699 done
12700
12701 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12702
12703 fi
12704
12705
12706 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12707
12708
12709 LIBS=$lt_dlload_save_LIBS
12710 ac_ext=c
12711 ac_cpp='$CPP $CPPFLAGS'
12712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12715
12716
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12718 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12719 if ${lt_cv_sys_symbol_underscore+:} false; then :
12720 $as_echo_n "(cached) " >&6
12721 else
12722 lt_cv_sys_symbol_underscore=no
12723 cat > conftest.$ac_ext <<_LT_EOF
12724 void nm_test_func(){}
12725 int main(){nm_test_func;return 0;}
12726 _LT_EOF
12727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12728 (eval $ac_compile) 2>&5
12729 ac_status=$?
12730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12731 test $ac_status = 0; }; then
12732 # Now try to grab the symbols.
12733 ac_nlist=conftest.nm
12734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12735 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12736 ac_status=$?
12737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12738 test $ac_status = 0; } && test -s "$ac_nlist"; then
12739 # See whether the symbols have a leading underscore.
12740 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12741 lt_cv_sys_symbol_underscore=yes
12742 else
12743 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12744 :
12745 else
12746 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12747 fi
12748 fi
12749 else
12750 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12751 fi
12752 else
12753 echo "configure: failed program was:" >&5
12754 cat conftest.c >&5
12755 fi
12756 rm -rf conftest*
12757
12758 fi
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12760 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12761 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12762
12763
12764 if test yes = "$lt_cv_sys_symbol_underscore"; then
12765 if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12767 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12768 if ${libltdl_cv_need_uscore+:} false; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 libltdl_cv_need_uscore=unknown
12772 dlsym_uscore_save_LIBS=$LIBS
12773 LIBS="$LIBS $LIBADD_DLOPEN"
12774 libname=conftmod # stay within 8.3 filename limits!
12775 cat >$libname.$ac_ext <<_LT_EOF
12776 #line $LINENO "configure"
12777 #include "confdefs.h"
12778 /* When -fvisibility=hidden is used, assume the code has been annotated
12779 correspondingly for the symbols needed. */
12780 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12781 int fnord () __attribute__((visibility("default")));
12782 #endif
12783 int fnord () { return 42; }
12784 _LT_EOF
12785
12786 # ltfn_module_cmds module_cmds
12787 # Execute tilde-delimited MODULE_CMDS with environment primed for
12788 # $module_cmds or $archive_cmds type content.
12789 ltfn_module_cmds ()
12790 {( # subshell avoids polluting parent global environment
12791 module_cmds_save_ifs=$IFS; IFS='~'
12792 for cmd in $1; do
12793 IFS=$module_cmds_save_ifs
12794 libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
12795 rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
12796 major=; versuffix=; verstring=; deplibs=
12797 ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
12798 eval $cmd
12799 done
12800 IFS=$module_cmds_save_ifs
12801 )}
12802
12803 # Compile a loadable module using libtool macro expansion results.
12804 $CC $pic_flag -c $libname.$ac_ext
12805 ltfn_module_cmds "${module_cmds:-$archive_cmds}"
12806
12807 # Try to fetch fnord with dlsym().
12808 libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
12809 cat >conftest.$ac_ext <<_LT_EOF
12810 #line $LINENO "configure"
12811 #include "confdefs.h"
12812 #if HAVE_DLFCN_H
12813 #include <dlfcn.h>
12814 #endif
12815 #include <stdio.h>
12816 #ifndef RTLD_GLOBAL
12817 # ifdef DL_GLOBAL
12818 # define RTLD_GLOBAL DL_GLOBAL
12819 # else
12820 # define RTLD_GLOBAL 0
12821 # endif
12822 #endif
12823 #ifndef RTLD_NOW
12824 # ifdef DL_NOW
12825 # define RTLD_NOW DL_NOW
12826 # else
12827 # define RTLD_NOW 0
12828 # endif
12829 #endif
12830 int main () {
12831 void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
12832 int status = $libltdl_dlunknown;
12833 if (handle) {
12834 if (dlsym (handle, "fnord"))
12835 status = $libltdl_dlnouscore;
12836 else {
12837 if (dlsym (handle, "_fnord"))
12838 status = $libltdl_dluscore;
12839 else
12840 puts (dlerror ());
12841 }
12842 dlclose (handle);
12843 } else
12844 puts (dlerror ());
12845 return status;
12846 }
12847 _LT_EOF
12848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12849 (eval $ac_link) 2>&5
12850 ac_status=$?
12851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12852 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12853 (./conftest; exit; ) >&5 2>/dev/null
12854 libltdl_status=$?
12855 case x$libltdl_status in
12856 x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
12857 x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
12858 x*) libltdl_cv_need_uscore=unknown ;;
12859 esac
12860 fi
12861 rm -rf conftest* $libname*
12862 LIBS=$dlsym_uscore_save_LIBS
12863
12864 fi
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12866 $as_echo "$libltdl_cv_need_uscore" >&6; }
12867 fi
12868 fi
12869
12870 if test yes = "$libltdl_cv_need_uscore"; then
12871
12872 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12873
12874 fi
12875
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12877 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12878 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12879 $as_echo_n "(cached) " >&6
12880 else
12881 # PORTME does your system automatically load deplibs for dlopen?
12882 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12883 # For now, we just catch OSes we know something about -- in the
12884 # future, we'll try test this programmatically.
12885 lt_cv_sys_dlopen_deplibs=unknown
12886 case $host_os in
12887 aix3*|aix4.1.*|aix4.2.*)
12888 # Unknown whether this is true for these versions of AIX, but
12889 # we want this 'case' here to explicitly catch those versions.
12890 lt_cv_sys_dlopen_deplibs=unknown
12891 ;;
12892 aix[4-9]*)
12893 lt_cv_sys_dlopen_deplibs=yes
12894 ;;
12895 amigaos*)
12896 case $host_cpu in
12897 powerpc)
12898 lt_cv_sys_dlopen_deplibs=no
12899 ;;
12900 esac
12901 ;;
12902 bitrig*)
12903 lt_cv_sys_dlopen_deplibs=yes
12904 ;;
12905 darwin*)
12906 # Assuming the user has installed a libdl from somewhere, this is true
12907 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12908 lt_cv_sys_dlopen_deplibs=yes
12909 ;;
12910 freebsd* | dragonfly*)
12911 lt_cv_sys_dlopen_deplibs=yes
12912 ;;
12913 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12914 # GNU and its variants, using gnu ld.so (Glibc)
12915 lt_cv_sys_dlopen_deplibs=yes
12916 ;;
12917 hpux10*|hpux11*)
12918 lt_cv_sys_dlopen_deplibs=yes
12919 ;;
12920 interix*)
12921 lt_cv_sys_dlopen_deplibs=yes
12922 ;;
12923 irix[12345]*|irix6.[01]*)
12924 # Catch all versions of IRIX before 6.2, and indicate that we don't
12925 # know how it worked for any of those versions.
12926 lt_cv_sys_dlopen_deplibs=unknown
12927 ;;
12928 irix*)
12929 # The case above catches anything before 6.2, and it's known that
12930 # at 6.2 and later dlopen does load deplibs.
12931 lt_cv_sys_dlopen_deplibs=yes
12932 ;;
12933 netbsd*)
12934 lt_cv_sys_dlopen_deplibs=yes
12935 ;;
12936 openbsd*)
12937 lt_cv_sys_dlopen_deplibs=yes
12938 ;;
12939 osf[1234]*)
12940 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12941 # it did *not* use an RPATH in a shared library to find objects the
12942 # library depends on, so we explicitly say 'no'.
12943 lt_cv_sys_dlopen_deplibs=no
12944 ;;
12945 osf5.0|osf5.0a|osf5.1)
12946 # dlopen *does* load deplibs and with the right loader patch applied
12947 # it even uses RPATH in a shared library to search for shared objects
12948 # that the library depends on, but there's no easy way to know if that
12949 # patch is installed. Since this is the case, all we can really
12950 # say is unknown -- it depends on the patch being installed. If
12951 # it is, this changes to 'yes'. Without it, it would be 'no'.
12952 lt_cv_sys_dlopen_deplibs=unknown
12953 ;;
12954 osf*)
12955 # the two cases above should catch all versions of osf <= 5.1. Read
12956 # the comments above for what we know about them.
12957 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12958 # is used to find them so we can finally say 'yes'.
12959 lt_cv_sys_dlopen_deplibs=yes
12960 ;;
12961 qnx*)
12962 lt_cv_sys_dlopen_deplibs=yes
12963 ;;
12964 solaris*)
12965 lt_cv_sys_dlopen_deplibs=yes
12966 ;;
12967 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12968 libltdl_cv_sys_dlopen_deplibs=yes
12969 ;;
12970 esac
12971
12972 fi
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12974 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12975 if test yes != "$lt_cv_sys_dlopen_deplibs"; then
12976
12977 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12978
12979 fi
12980
12981
12982 for ac_header in argz.h
12983 do :
12984 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12985 "
12986 if test "x$ac_cv_header_argz_h" = xyes; then :
12987 cat >>confdefs.h <<_ACEOF
12988 #define HAVE_ARGZ_H 1
12989 _ACEOF
12990
12991 fi
12992
12993 done
12994
12995
12996 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12997 # include <argz.h>
12998 #endif
12999 "
13000 if test "x$ac_cv_type_error_t" = xyes; then :
13001
13002 cat >>confdefs.h <<_ACEOF
13003 #define HAVE_ERROR_T 1
13004 _ACEOF
13005
13006
13007 else
13008
13009 $as_echo "#define error_t int" >>confdefs.h
13010
13011
13012 $as_echo "#define __error_t_defined 1" >>confdefs.h
13013
13014 fi
13015
13016
13017 LT_ARGZ_H=
13018 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
13019 argz_next argz_stringify
13020 do :
13021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13022 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13023 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13024 cat >>confdefs.h <<_ACEOF
13025 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13026 _ACEOF
13027
13028 else
13029 LT_ARGZ_H=lt__argz.h;
13030
13031 _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13032
13033 fi
13034 done
13035
13036
13037 if test -z "$LT_ARGZ_H"; then :
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
13039 $as_echo_n "checking if argz actually works... " >&6; }
13040 if ${lt_cv_sys_argz_works+:} false; then :
13041 $as_echo_n "(cached) " >&6
13042 else
13043 case $host_os in #(
13044 *cygwin*)
13045 lt_cv_sys_argz_works=no
13046 if test no != "$cross_compiling"; then
13047 lt_cv_sys_argz_works="guessing no"
13048 else
13049 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
13050 save_IFS=$IFS
13051 IFS=-.
13052 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
13053 IFS=$save_IFS
13054 lt_os_major=${2-0}
13055 lt_os_minor=${3-0}
13056 lt_os_micro=${4-0}
13057 if test 1 -lt "$lt_os_major" \
13058 || { test 1 -eq "$lt_os_major" \
13059 && { test 5 -lt "$lt_os_minor" \
13060 || { test 5 -eq "$lt_os_minor" \
13061 && test 24 -lt "$lt_os_micro"; }; }; }; then
13062 lt_cv_sys_argz_works=yes
13063 fi
13064 fi
13065 ;; #(
13066 *) lt_cv_sys_argz_works=yes ;;
13067 esac
13068 fi
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
13070 $as_echo "$lt_cv_sys_argz_works" >&6; }
13071 if test yes = "$lt_cv_sys_argz_works"; then :
13072
13073 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
13074
13075 else
13076 LT_ARGZ_H=lt__argz.h
13077
13078
13079 _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
13080
13081 fi
13082 fi
13083
13084
13085
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
13087 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
13088 if ${libltdl_cv_preloaded_symbols+:} false; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 if test -n "$lt_cv_sys_global_symbol_pipe"; then
13092 libltdl_cv_preloaded_symbols=yes
13093 else
13094 libltdl_cv_preloaded_symbols=no
13095 fi
13096
13097 fi
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
13099 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
13100 if test yes = "$libltdl_cv_preloaded_symbols"; then
13101
13102 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
13103
13104 fi
13105
13106
13107
13108 # Set options
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121 # Check whether --with-included_ltdl was given.
13122 if test "${with_included_ltdl+set}" = set; then :
13123 withval=$with_included_ltdl;
13124 fi
13125
13126
13127 if test yes != "$with_included_ltdl"; then
13128 # We are not being forced to use the included libltdl sources, so
13129 # decide whether there is a useful installed version we can use.
13130 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
13131
13132 "
13133 if test "x$ac_cv_header_ltdl_h" = xyes; then :
13134 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
13135 #include <ltdl.h>
13136 "
13137 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
13139 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
13140 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
13141 $as_echo_n "(cached) " >&6
13142 else
13143 ac_check_lib_save_LIBS=$LIBS
13144 LIBS="-lltdl $LIBS"
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13147
13148 /* Override any GCC internal prototype to avoid an error.
13149 Use char because int might match the return type of a GCC
13150 builtin and then its argument prototype would still apply. */
13151 #ifdef __cplusplus
13152 extern "C"
13153 #endif
13154 char lt_dladvise_preload ();
13155 int
13156 main ()
13157 {
13158 return lt_dladvise_preload ();
13159 ;
13160 return 0;
13161 }
13162 _ACEOF
13163 if ac_fn_c_try_link "$LINENO"; then :
13164 ac_cv_lib_ltdl_lt_dladvise_preload=yes
13165 else
13166 ac_cv_lib_ltdl_lt_dladvise_preload=no
13167 fi
13168 rm -f core conftest.err conftest.$ac_objext \
13169 conftest$ac_exeext conftest.$ac_ext
13170 LIBS=$ac_check_lib_save_LIBS
13171 fi
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
13173 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
13174 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
13175 with_included_ltdl=no
13176 else
13177 with_included_ltdl=yes
13178 fi
13179
13180 else
13181 with_included_ltdl=yes
13182 fi
13183
13184 else
13185 with_included_ltdl=yes
13186 fi
13187
13188
13189 fi
13190
13191
13192
13193
13194
13195
13196
13197
13198 # Check whether --with-ltdl_include was given.
13199 if test "${with_ltdl_include+set}" = set; then :
13200 withval=$with_ltdl_include;
13201 fi
13202
13203
13204 if test -n "$with_ltdl_include"; then
13205 if test -f "$with_ltdl_include/ltdl.h"; then :
13206 else
13207 as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
13208 fi
13209 else
13210 with_ltdl_include=no
13211 fi
13212
13213
13214 # Check whether --with-ltdl_lib was given.
13215 if test "${with_ltdl_lib+set}" = set; then :
13216 withval=$with_ltdl_lib;
13217 fi
13218
13219
13220 if test -n "$with_ltdl_lib"; then
13221 if test -f "$with_ltdl_lib/libltdl.la"; then :
13222 else
13223 as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
13224 fi
13225 else
13226 with_ltdl_lib=no
13227 fi
13228
13229 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
13230 ,yes,no,no,)
13231 case $enable_ltdl_convenience in
13232 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
13233 "") enable_ltdl_convenience=yes
13234 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13235 esac
13236 LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13237 LTDLDEPS=$LIBLTDL
13238 LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13239
13240
13241
13242
13243
13244 # For backwards non-gettext consistent compatibility...
13245 INCLTDL=$LTDLINCL
13246
13247
13248 ;;
13249 ,no,no,no,)
13250 # If the included ltdl is not to be used, then use the
13251 # preinstalled libltdl we found.
13252
13253 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
13254
13255 LIBLTDL=-lltdl
13256 LTDLDEPS=
13257 LTDLINCL=
13258 ;;
13259 ,no*,no,*)
13260 as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
13261 ;;
13262 *) with_included_ltdl=no
13263 LIBLTDL="-L$with_ltdl_lib -lltdl"
13264 LTDLDEPS=
13265 LTDLINCL=-I$with_ltdl_include
13266 ;;
13267 esac
13268 INCLTDL=$LTDLINCL
13269
13270 # Report our decision...
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
13272 $as_echo_n "checking where to find libltdl headers... " >&6; }
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
13274 $as_echo "$LTDLINCL" >&6; }
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
13276 $as_echo_n "checking where to find libltdl library... " >&6; }
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
13278 $as_echo "$LIBLTDL" >&6; }
13279
13280
13281
13282 # Check whether --enable-ltdl-install was given.
13283 if test "${enable_ltdl_install+set}" = set; then :
13284 enableval=$enable_ltdl_install;
13285 fi
13286
13287
13288 case ,$enable_ltdl_install,$enable_ltdl_convenience in
13289 *yes*) ;;
13290 *) enable_ltdl_convenience=yes ;;
13291 esac
13292
13293 if test no != "${enable_ltdl_install-no}"; then
13294 INSTALL_LTDL_TRUE=
13295 INSTALL_LTDL_FALSE='#'
13296 else
13297 INSTALL_LTDL_TRUE='#'
13298 INSTALL_LTDL_FALSE=
13299 fi
13300
13301 if test no != "${enable_ltdl_convenience-no}"; then
13302 CONVENIENCE_LTDL_TRUE=
13303 CONVENIENCE_LTDL_FALSE='#'
13304 else
13305 CONVENIENCE_LTDL_TRUE='#'
13306 CONVENIENCE_LTDL_FALSE=
13307 fi
13308
13309
13310
13311 subdirs="$subdirs libltdl"
13312
13313
13314
13315
13316 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
13317 # the user used. This is so that ltdl.h can pick up the parent projects
13318 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
13319 # definitions required by ltdl.c.
13320 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
13321
13322
13323
13324 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
13325 do :
13326 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13327 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13328 "
13329 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13330 cat >>confdefs.h <<_ACEOF
13331 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13332 _ACEOF
13333
13334 fi
13335
13336 done
13337
13338
13339 for ac_func in closedir opendir readdir
13340 do :
13341 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13342 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13343 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13344 cat >>confdefs.h <<_ACEOF
13345 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13346 _ACEOF
13347
13348 else
13349
13350
13351 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13352
13353 fi
13354 done
13355
13356 for ac_func in strlcat strlcpy
13357 do :
13358 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13359 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13360 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13361 cat >>confdefs.h <<_ACEOF
13362 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13363 _ACEOF
13364
13365 else
13366
13367
13368 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
13369
13370 fi
13371 done
13372
13373
13374
13375 cat >>confdefs.h <<_ACEOF
13376 #define LT_LIBEXT "$libext"
13377 _ACEOF
13378
13379
13380 name=
13381 eval "lt_libprefix=\"$libname_spec\""
13382
13383 cat >>confdefs.h <<_ACEOF
13384 #define LT_LIBPREFIX "$lt_libprefix"
13385 _ACEOF
13386
13387
13388 name=ltdl
13389 eval "LTDLOPEN=\"$libname_spec\""
13390
13391
13392
13393
13394
13395
13396
13397
13398 # Only expand once:
13399
13400
13401
13402
13403 for ac_prog in perl5 perl
13404 do
13405 # Extract the first word of "$ac_prog", so it can be a program name with args.
13406 set dummy $ac_prog; ac_word=$2
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13408 $as_echo_n "checking for $ac_word... " >&6; }
13409 if ${ac_cv_path_PERL+:} false; then :
13410 $as_echo_n "(cached) " >&6
13411 else
13412 case $PERL in
13413 [\\/]* | ?:[\\/]*)
13414 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13415 ;;
13416 *)
13417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13418 for as_dir in $LPATH
13419 do
13420 IFS=$as_save_IFS
13421 test -z "$as_dir" && as_dir=.
13422 for ac_exec_ext in '' $ac_executable_extensions; do
13423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13424 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13426 break 2
13427 fi
13428 done
13429 done
13430 IFS=$as_save_IFS
13431
13432 ;;
13433 esac
13434 fi
13435 PERL=$ac_cv_path_PERL
13436 if test -n "$PERL"; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13438 $as_echo "$PERL" >&6; }
13439 else
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13441 $as_echo "no" >&6; }
13442 fi
13443
13444
13445 test -n "$PERL" && break
13446 done
13447 test -n "$PERL" || PERL="perl"
13448
13449 for ac_prog in courier-config
13450 do
13451 # Extract the first word of "$ac_prog", so it can be a program name with args.
13452 set dummy $ac_prog; ac_word=$2
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13454 $as_echo_n "checking for $ac_word... " >&6; }
13455 if ${ac_cv_path_COURIERCONFIG+:} false; then :
13456 $as_echo_n "(cached) " >&6
13457 else
13458 case $COURIERCONFIG in
13459 [\\/]* | ?:[\\/]*)
13460 ac_cv_path_COURIERCONFIG="$COURIERCONFIG" # Let the user override the test with a path.
13461 ;;
13462 *)
13463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464 for as_dir in $LPATH
13465 do
13466 IFS=$as_save_IFS
13467 test -z "$as_dir" && as_dir=.
13468 for ac_exec_ext in '' $ac_executable_extensions; do
13469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13470 ac_cv_path_COURIERCONFIG="$as_dir/$ac_word$ac_exec_ext"
13471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13472 break 2
13473 fi
13474 done
13475 done
13476 IFS=$as_save_IFS
13477
13478 ;;
13479 esac
13480 fi
13481 COURIERCONFIG=$ac_cv_path_COURIERCONFIG
13482 if test -n "$COURIERCONFIG"; then
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COURIERCONFIG" >&5
13484 $as_echo "$COURIERCONFIG" >&6; }
13485 else
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487 $as_echo "no" >&6; }
13488 fi
13489
13490
13491 test -n "$COURIERCONFIG" && break
13492 done
13493 test -n "$COURIERCONFIG" || COURIERCONFIG="courier-config"
13494
13495
13496 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
13497 if test "x$ac_cv_header_ltdl_h" = xyes; then :
13498 :
13499 else
13500 as_fn_error $? "Unable to find ltdl.h. Please install Libtool's ltdl library" "$LINENO" 5
13501 fi
13502
13503
13504
13505 if test "$PERL" = "perl"
13506 then
13507 as_fn_error $? "Perl is required" "$LINENO" 5
13508 fi
13509
13510 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13511 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13512 eval "prefix=$prefix"
13513 eval "exec_prefix=$exec_prefix"
13514 eval "sysconfdir=$sysconfdir"
13515 eval "bindir=$bindir"
13516 eval "sbindir=$sbindir"
13517 eval "localstatedir=$localstatedir"
13518 eval "libexecdir=$libexecdir"
13519 eval "datarootdir=$datarootdir"
13520 eval "datedir=$datadir"
13521
13522 for ac_prog in expect
13523 do
13524 # Extract the first word of "$ac_prog", so it can be a program name with args.
13525 set dummy $ac_prog; ac_word=$2
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13527 $as_echo_n "checking for $ac_word... " >&6; }
13528 if ${ac_cv_path_EXPECT+:} false; then :
13529 $as_echo_n "(cached) " >&6
13530 else
13531 case $EXPECT in
13532 [\\/]* | ?:[\\/]*)
13533 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
13534 ;;
13535 *)
13536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13537 for as_dir in $LPATH
13538 do
13539 IFS=$as_save_IFS
13540 test -z "$as_dir" && as_dir=.
13541 for ac_exec_ext in '' $ac_executable_extensions; do
13542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13543 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
13544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13545 break 2
13546 fi
13547 done
13548 done
13549 IFS=$as_save_IFS
13550
13551 ;;
13552 esac
13553 fi
13554 EXPECT=$ac_cv_path_EXPECT
13555 if test -n "$EXPECT"; then
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
13557 $as_echo "$EXPECT" >&6; }
13558 else
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13560 $as_echo "no" >&6; }
13561 fi
13562
13563
13564 test -n "$EXPECT" && break
13565 done
13566 test -n "$EXPECT" || EXPECT="expect"
13567
13568
13569 if test "$EXPECT" = "expect"
13570 then
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -----------------------------------------------------" >&5
13572 $as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expect not found - will not be able to change passwds" >&5
13574 $as_echo "$as_me: WARNING: expect not found - will not be able to change passwds" >&2;}
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: in webmail" >&5
13576 $as_echo "$as_me: WARNING: in webmail" >&2;}
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -----------------------------------------------------" >&5
13578 $as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
13579 sleep 5
13580 else
13581
13582 cat >>confdefs.h <<_ACEOF
13583 #define HAVE_EXPECT 1
13584 _ACEOF
13585
13586 fi
13587
13588 for ac_prog in passwd
13589 do
13590 # Extract the first word of "$ac_prog", so it can be a program name with args.
13591 set dummy $ac_prog; ac_word=$2
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13593 $as_echo_n "checking for $ac_word... " >&6; }
13594 if ${ac_cv_path_PASSWD+:} false; then :
13595 $as_echo_n "(cached) " >&6
13596 else
13597 case $PASSWD in
13598 [\\/]* | ?:[\\/]*)
13599 ac_cv_path_PASSWD="$PASSWD" # Let the user override the test with a path.
13600 ;;
13601 *)
13602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13603 for as_dir in $LPATH
13604 do
13605 IFS=$as_save_IFS
13606 test -z "$as_dir" && as_dir=.
13607 for ac_exec_ext in '' $ac_executable_extensions; do
13608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13609 ac_cv_path_PASSWD="$as_dir/$ac_word$ac_exec_ext"
13610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13611 break 2
13612 fi
13613 done
13614 done
13615 IFS=$as_save_IFS
13616
13617 ;;
13618 esac
13619 fi
13620 PASSWD=$ac_cv_path_PASSWD
13621 if test -n "$PASSWD"; then
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PASSWD" >&5
13623 $as_echo "$PASSWD" >&6; }
13624 else
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626 $as_echo "no" >&6; }
13627 fi
13628
13629
13630 test -n "$PASSWD" && break
13631 done
13632 test -n "$PASSWD" || PASSWD="passwd"
13633
13634
13635
13636 if test "$GCC" = "yes"
13637 then
13638 CFLAGS="$CFLAGS -Wall"
13639 fi
13640
13641 CFLAGS="$CFLAGS -Ilibs -I${srcdir}/libs"
13642
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lm is needed for floor" >&5
13644 $as_echo_n "checking whether -lm is needed for floor... " >&6; }
13645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13646 /* end confdefs.h. */
13647
13648 /* Override any GCC internal prototype to avoid an error.
13649 Use char because int might match the return type of a GCC
13650 builtin and then its argument prototype would still apply. */
13651 #ifdef __cplusplus
13652 extern "C"
13653 #endif
13654 char floor ();
13655 int
13656 main ()
13657 {
13658 return floor ();
13659 ;
13660 return 0;
13661 }
13662 _ACEOF
13663 if ac_fn_c_try_link "$LINENO"; then :
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13665 $as_echo "no" >&6; }
13666 else
13667 LIBM="-lm"
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13669 $as_echo "yes" >&6; }
13670 fi
13671 rm -f core conftest.err conftest.$ac_objext \
13672 conftest$ac_exeext conftest.$ac_ext
13673
13674
13675 # Check whether --with-pkgconfdir was given.
13676 if test "${with_pkgconfdir+set}" = set; then :
13677 withval=$with_pkgconfdir; pkgconfdir="$withval"
13678 else
13679 pkgconfdir="$sysconfdir/authlib"
13680 fi
13681
13682
13683 saveLIBS="$LIBS"
13684 NETLIBS=""
13685 USENSL=no
13686
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13688 $as_echo_n "checking for socket in -lsocket... " >&6; }
13689 if ${ac_cv_lib_socket_socket+:} false; then :
13690 $as_echo_n "(cached) " >&6
13691 else
13692 ac_check_lib_save_LIBS=$LIBS
13693 LIBS="-lsocket $LIBS"
13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695 /* end confdefs.h. */
13696
13697 /* Override any GCC internal prototype to avoid an error.
13698 Use char because int might match the return type of a GCC
13699 builtin and then its argument prototype would still apply. */
13700 #ifdef __cplusplus
13701 extern "C"
13702 #endif
13703 char socket ();
13704 int
13705 main ()
13706 {
13707 return socket ();
13708 ;
13709 return 0;
13710 }
13711 _ACEOF
13712 if ac_fn_c_try_link "$LINENO"; then :
13713 ac_cv_lib_socket_socket=yes
13714 else
13715 ac_cv_lib_socket_socket=no
13716 fi
13717 rm -f core conftest.err conftest.$ac_objext \
13718 conftest$ac_exeext conftest.$ac_ext
13719 LIBS=$ac_check_lib_save_LIBS
13720 fi
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13722 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13723 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13724 result=yes
13725 else
13726 result=no
13727 fi
13728
13729 if test $result = yes; then
13730 NETLIBS="-lsocket"
13731 else
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13733 $as_echo_n "checking for socket in -lsocket... " >&6; }
13734 if ${ac_cv_lib_socket_socket+:} false; then :
13735 $as_echo_n "(cached) " >&6
13736 else
13737 ac_check_lib_save_LIBS=$LIBS
13738 LIBS="-lsocket -lnsl $LIBS"
13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h. */
13741
13742 /* Override any GCC internal prototype to avoid an error.
13743 Use char because int might match the return type of a GCC
13744 builtin and then its argument prototype would still apply. */
13745 #ifdef __cplusplus
13746 extern "C"
13747 #endif
13748 char socket ();
13749 int
13750 main ()
13751 {
13752 return socket ();
13753 ;
13754 return 0;
13755 }
13756 _ACEOF
13757 if ac_fn_c_try_link "$LINENO"; then :
13758 ac_cv_lib_socket_socket=yes
13759 else
13760 ac_cv_lib_socket_socket=no
13761 fi
13762 rm -f core conftest.err conftest.$ac_objext \
13763 conftest$ac_exeext conftest.$ac_ext
13764 LIBS=$ac_check_lib_save_LIBS
13765 fi
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13767 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13768 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13769 result=yes
13770 else
13771 result=no
13772 fi
13773
13774 if test $result = yes; then
13775 NETLIBS = "-lsocket -lnsl"
13776 USENSL=yes
13777 else
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13779 $as_echo_n "checking for connect in -lsocket... " >&6; }
13780 if ${ac_cv_lib_socket_connect+:} false; then :
13781 $as_echo_n "(cached) " >&6
13782 else
13783 ac_check_lib_save_LIBS=$LIBS
13784 LIBS="-lsocket $LIBS"
13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h. */
13787
13788 /* Override any GCC internal prototype to avoid an error.
13789 Use char because int might match the return type of a GCC
13790 builtin and then its argument prototype would still apply. */
13791 #ifdef __cplusplus
13792 extern "C"
13793 #endif
13794 char connect ();
13795 int
13796 main ()
13797 {
13798 return connect ();
13799 ;
13800 return 0;
13801 }
13802 _ACEOF
13803 if ac_fn_c_try_link "$LINENO"; then :
13804 ac_cv_lib_socket_connect=yes
13805 else
13806 ac_cv_lib_socket_connect=no
13807 fi
13808 rm -f core conftest.err conftest.$ac_objext \
13809 conftest$ac_exeext conftest.$ac_ext
13810 LIBS=$ac_check_lib_save_LIBS
13811 fi
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13813 $as_echo "$ac_cv_lib_socket_connect" >&6; }
13814 if test "x$ac_cv_lib_socket_connect" = xyes; then :
13815 result=yes
13816 else
13817 result=no
13818 fi
13819
13820 if test $result = yes; then
13821 NETLIBS="-lsocket"
13822 else
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13824 $as_echo_n "checking for connect in -lsocket... " >&6; }
13825 if ${ac_cv_lib_socket_connect+:} false; then :
13826 $as_echo_n "(cached) " >&6
13827 else
13828 ac_check_lib_save_LIBS=$LIBS
13829 LIBS="-lsocket -lnsl $LIBS"
13830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831 /* end confdefs.h. */
13832
13833 /* Override any GCC internal prototype to avoid an error.
13834 Use char because int might match the return type of a GCC
13835 builtin and then its argument prototype would still apply. */
13836 #ifdef __cplusplus
13837 extern "C"
13838 #endif
13839 char connect ();
13840 int
13841 main ()
13842 {
13843 return connect ();
13844 ;
13845 return 0;
13846 }
13847 _ACEOF
13848 if ac_fn_c_try_link "$LINENO"; then :
13849 ac_cv_lib_socket_connect=yes
13850 else
13851 ac_cv_lib_socket_connect=no
13852 fi
13853 rm -f core conftest.err conftest.$ac_objext \
13854 conftest$ac_exeext conftest.$ac_ext
13855 LIBS=$ac_check_lib_save_LIBS
13856 fi
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13858 $as_echo "$ac_cv_lib_socket_connect" >&6; }
13859 if test "x$ac_cv_lib_socket_connect" = xyes; then :
13860 result=yes
13861 else
13862 result=no
13863 fi
13864
13865 if test $result = yes; then
13866 NETLIBS="-lsocket -lnsl"
13867 USENSL=yes
13868 fi
13869 fi
13870 fi
13871 fi
13872
13873 if test $USENSL != yes; then
13874 LIBS="$LIBS $NETLIBS"
13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h. */
13877
13878 /* Override any GCC internal prototype to avoid an error.
13879 Use char because int might match the return type of a GCC
13880 builtin and then its argument prototype would still apply. */
13881 #ifdef __cplusplus
13882 extern "C"
13883 #endif
13884 char inet_addr ();
13885 int
13886 main ()
13887 {
13888 return inet_addr ();
13889 ;
13890 return 0;
13891 }
13892 _ACEOF
13893 if ac_fn_c_try_link "$LINENO"; then :
13894 :
13895 else
13896
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
13898 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
13899 if ${ac_cv_lib_nsl_inet_addr+:} false; then :
13900 $as_echo_n "(cached) " >&6
13901 else
13902 ac_check_lib_save_LIBS=$LIBS
13903 LIBS="-lnsl $LIBS"
13904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h. */
13906
13907 /* Override any GCC internal prototype to avoid an error.
13908 Use char because int might match the return type of a GCC
13909 builtin and then its argument prototype would still apply. */
13910 #ifdef __cplusplus
13911 extern "C"
13912 #endif
13913 char inet_addr ();
13914 int
13915 main ()
13916 {
13917 return inet_addr ();
13918 ;
13919 return 0;
13920 }
13921 _ACEOF
13922 if ac_fn_c_try_link "$LINENO"; then :
13923 ac_cv_lib_nsl_inet_addr=yes
13924 else
13925 ac_cv_lib_nsl_inet_addr=no
13926 fi
13927 rm -f core conftest.err conftest.$ac_objext \
13928 conftest$ac_exeext conftest.$ac_ext
13929 LIBS=$ac_check_lib_save_LIBS
13930 fi
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
13932 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
13933 if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
13934 result=yes
13935 else
13936 result=no
13937 fi
13938
13939 if test $result = yes; then
13940 NETLIBS="$NETLIBS -lnsl"
13941 fi
13942
13943 fi
13944 rm -f core conftest.err conftest.$ac_objext \
13945 conftest$ac_exeext conftest.$ac_ext
13946 fi
13947
13948 LIBS="$saveLIBS"
13949
13950
13951 save_LIBS="$LIBS"
13952 LIBS="-lcourier-unicode"
13953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13954 /* end confdefs.h. */
13955
13956 #include <courier-unicode.h>
13957
13958 int
13959 main ()
13960 {
13961
13962 unicode_default_chset();
13963
13964 ;
13965 return 0;
13966 }
13967 _ACEOF
13968 if ac_fn_c_try_link "$LINENO"; then :
13969 :
13970 else
13971 as_fn_error $? "The Courier Unicode Library 1.2 appears not to be installed. You may need to install a separate development subpackage, in addition to the main package" "$LINENO" 5
13972 fi
13973 rm -f core conftest.err conftest.$ac_objext \
13974 conftest$ac_exeext conftest.$ac_ext
13975 LIBS="$save_LIBS"
13976
13977
13978
13979
13980
13981
13982 # Check whether --with-db was given.
13983 if test "${with_db+set}" = set; then :
13984 withval=$with_db; db="$withval"
13985 else
13986 needs_withdb=1
13987 fi
13988
13989
13990 case "$db" in
13991 gdbm)
13992 ;;
13993 db)
13994 ;;
13995 "")
13996 ;;
13997 *)
13998 as_fn_error $? "Invalid --with-db option." "$LINENO" 5
13999 ;;
14000 esac
14001
14002 saveLIBS="$LIBS"
14003
14004 if test "$db" != "db"
14005 then
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
14007 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
14008 if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
14009 $as_echo_n "(cached) " >&6
14010 else
14011 ac_check_lib_save_LIBS=$LIBS
14012 LIBS="-lgdbm $LIBS"
14013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14014 /* end confdefs.h. */
14015
14016 /* Override any GCC internal prototype to avoid an error.
14017 Use char because int might match the return type of a GCC
14018 builtin and then its argument prototype would still apply. */
14019 #ifdef __cplusplus
14020 extern "C"
14021 #endif
14022 char gdbm_open ();
14023 int
14024 main ()
14025 {
14026 return gdbm_open ();
14027 ;
14028 return 0;
14029 }
14030 _ACEOF
14031 if ac_fn_c_try_link "$LINENO"; then :
14032 ac_cv_lib_gdbm_gdbm_open=yes
14033 else
14034 ac_cv_lib_gdbm_gdbm_open=no
14035 fi
14036 rm -f core conftest.err conftest.$ac_objext \
14037 conftest$ac_exeext conftest.$ac_ext
14038 LIBS=$ac_check_lib_save_LIBS
14039 fi
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
14041 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
14042 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
14043 LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS"
14044 fi
14045
14046 ac_fn_c_check_func "$LINENO" "gdbm_open" "ac_cv_func_gdbm_open"
14047 if test "x$ac_cv_func_gdbm_open" = xyes; then :
14048 HAVE_GDBM=y
14049 fi
14050
14051 fi
14052
14053 LIBS="$saveLIBS"
14054
14055 if test "$db" != "gdbm"
14056 then
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -ldb" >&5
14058 $as_echo_n "checking for dbopen in -ldb... " >&6; }
14059 if ${ac_cv_lib_db_dbopen+:} false; then :
14060 $as_echo_n "(cached) " >&6
14061 else
14062 ac_check_lib_save_LIBS=$LIBS
14063 LIBS="-ldb $LIBS"
14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h. */
14066
14067 /* Override any GCC internal prototype to avoid an error.
14068 Use char because int might match the return type of a GCC
14069 builtin and then its argument prototype would still apply. */
14070 #ifdef __cplusplus
14071 extern "C"
14072 #endif
14073 char dbopen ();
14074 int
14075 main ()
14076 {
14077 return dbopen ();
14078 ;
14079 return 0;
14080 }
14081 _ACEOF
14082 if ac_fn_c_try_link "$LINENO"; then :
14083 ac_cv_lib_db_dbopen=yes
14084 else
14085 ac_cv_lib_db_dbopen=no
14086 fi
14087 rm -f core conftest.err conftest.$ac_objext \
14088 conftest$ac_exeext conftest.$ac_ext
14089 LIBS=$ac_check_lib_save_LIBS
14090 fi
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_dbopen" >&5
14092 $as_echo "$ac_cv_lib_db_dbopen" >&6; }
14093 if test "x$ac_cv_lib_db_dbopen" = xyes; then :
14094 LIBDB=-ldb ; LIBS="-ldb $LIBS"
14095 else
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -ldb" >&5
14097 $as_echo_n "checking for db_open in -ldb... " >&6; }
14098 if ${ac_cv_lib_db_db_open+:} false; then :
14099 $as_echo_n "(cached) " >&6
14100 else
14101 ac_check_lib_save_LIBS=$LIBS
14102 LIBS="-ldb $LIBS"
14103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14104 /* end confdefs.h. */
14105
14106 /* Override any GCC internal prototype to avoid an error.
14107 Use char because int might match the return type of a GCC
14108 builtin and then its argument prototype would still apply. */
14109 #ifdef __cplusplus
14110 extern "C"
14111 #endif
14112 char db_open ();
14113 int
14114 main ()
14115 {
14116 return db_open ();
14117 ;
14118 return 0;
14119 }
14120 _ACEOF
14121 if ac_fn_c_try_link "$LINENO"; then :
14122 ac_cv_lib_db_db_open=yes
14123 else
14124 ac_cv_lib_db_db_open=no
14125 fi
14126 rm -f core conftest.err conftest.$ac_objext \
14127 conftest$ac_exeext conftest.$ac_ext
14128 LIBS=$ac_check_lib_save_LIBS
14129 fi
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_open" >&5
14131 $as_echo "$ac_cv_lib_db_db_open" >&6; }
14132 if test "x$ac_cv_lib_db_db_open" = xyes; then :
14133 LIBDB=-ldb ; LIBS="-ldb $LIBS"
14134 else
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb" >&5
14136 $as_echo_n "checking for db_env_create in -ldb... " >&6; }
14137 if ${ac_cv_lib_db_db_env_create+:} false; then :
14138 $as_echo_n "(cached) " >&6
14139 else
14140 ac_check_lib_save_LIBS=$LIBS
14141 LIBS="-ldb $LIBS"
14142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h. */
14144
14145 /* Override any GCC internal prototype to avoid an error.
14146 Use char because int might match the return type of a GCC
14147 builtin and then its argument prototype would still apply. */
14148 #ifdef __cplusplus
14149 extern "C"
14150 #endif
14151 char db_env_create ();
14152 int
14153 main ()
14154 {
14155 return db_env_create ();
14156 ;
14157 return 0;
14158 }
14159 _ACEOF
14160 if ac_fn_c_try_link "$LINENO"; then :
14161 ac_cv_lib_db_db_env_create=yes
14162 else
14163 ac_cv_lib_db_db_env_create=no
14164 fi
14165 rm -f core conftest.err conftest.$ac_objext \
14166 conftest$ac_exeext conftest.$ac_ext
14167 LIBS=$ac_check_lib_save_LIBS
14168 fi
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_env_create" >&5
14170 $as_echo "$ac_cv_lib_db_db_env_create" >&6; }
14171 if test "x$ac_cv_lib_db_db_env_create" = xyes; then :
14172 LIBDB=-ldb; LIBS="-ldb $LIBS"
14173 fi
14174
14175
14176 fi
14177
14178 fi
14179
14180
14181 ac_fn_c_check_func "$LINENO" "dbopen" "ac_cv_func_dbopen"
14182 if test "x$ac_cv_func_dbopen" = xyes; then :
14183 HAVE_BDB=1
14184 fi
14185
14186 ac_fn_c_check_func "$LINENO" "db_open" "ac_cv_func_db_open"
14187 if test "x$ac_cv_func_db_open" = xyes; then :
14188 HAVE_BDB=1
14189 fi
14190
14191 ac_fn_c_check_func "$LINENO" "db_env_create" "ac_cv_func_db_env_create"
14192 if test "x$ac_cv_func_db_env_create" = xyes; then :
14193 HAVE_BDB=1
14194 fi
14195
14196 fi
14197
14198 LIBS="$saveLIBS"
14199
14200 if test "$HAVE_GDBM$HAVE_BDB" = ""
14201 then
14202 as_fn_error $? "Cannot find either the gdbm or the db library." "$LINENO" 5
14203 fi
14204
14205 USE_GDBM=0
14206 USE_DB=0
14207
14208 if test "$HAVE_GDBM" = "y"
14209 then
14210 LIBDB=""
14211 USE_GDBM=1
14212 if test "$needs_withdb" = 1
14213 then
14214 ac_configure_args="$ac_configure_args --with-db=gdbm"
14215 fi
14216 dblibrary=libs/gdbmobj/libgdbmobj.la
14217 else
14218 LIBGDBM=""
14219 USE_DB=1
14220 if test "$needs_withdb" = 1
14221 then
14222 ac_configure_args="$ac_configure_args --with-db=db"
14223 fi
14224 dblibrary=libs/bdbobj/libbdbobj.la
14225 fi
14226
14227
14228
14229
14230
14231 # Check whether --with-authuserdb was given.
14232 if test "${with_authuserdb+set}" = set; then :
14233 withval=$with_authuserdb; doauthuserdb="$withval"
14234 else
14235 doauthuserdb="no"
14236 if test -d ${srcdir}/userdb
14237 then
14238 doauthuserdb="yes"
14239 fi
14240 fi
14241
14242
14243 if test "$doauthuserdb" = "no"
14244 then
14245 AUTHUSERDB=""
14246 else
14247 AUTHUSERDB="authuserdb"
14248 LIBAUTHUSERDB="libauthuserdb.la"
14249
14250 fi
14251
14252
14253 # Check whether --with-makedatprog was given.
14254 if test "${with_makedatprog+set}" = set; then :
14255 withval=$with_makedatprog; :
14256 else
14257
14258 ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog"
14259
14260 fi
14261
14262
14263 cat >dbobj.config <<EOF
14264 LIBDB=$LIBDB
14265 LIBGDBM=$LIBGDBM
14266 dblibrary=$dblibrary
14267 EOF
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277 userdb="$pkgconfdir/userdb"
14278
14279 # Check whether --with-userdb was given.
14280 if test "${with_userdb+set}" = set; then :
14281 withval=$with_userdb; userdb="$withval"
14282 else
14283 ac_configure_args="$ac_configure_args '--with-userdb=$userdb'"
14284 fi
14285
14286
14287
14288 cat >>confdefs.h <<_ACEOF
14289 #define USERDB "$userdb"
14290 _ACEOF
14291
14292
14293
14294 for ac_header in stdio.h
14295 do :
14296 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
14297 if test "x$ac_cv_header_stdio_h" = xyes; then :
14298 cat >>confdefs.h <<_ACEOF
14299 #define HAVE_STDIO_H 1
14300 _ACEOF
14301
14302 fi
14303
14304 done
14305
14306
14307
14308
14309
14310
14311 # Check whether --with-authpam was given.
14312 if test "${with_authpam+set}" = set; then :
14313 withval=$with_authpam; doauthpam="$withval"
14314 fi
14315
14316
14317 for ac_header in security/pam_appl.h Pam/pam_appl.h
14318 do :
14319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14320 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14321 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14322 cat >>confdefs.h <<_ACEOF
14323 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14324 _ACEOF
14325
14326 fi
14327
14328 done
14329
14330 if test "$doauthpam" = "no"
14331 then
14332 LIBDL=""
14333 else
14334 saveLIBS="$LIBS"
14335 LIBDL=""
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14337 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14338 if ${ac_cv_lib_dl_dlopen+:} false; then :
14339 $as_echo_n "(cached) " >&6
14340 else
14341 ac_check_lib_save_LIBS=$LIBS
14342 LIBS="-ldl $LIBS"
14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h. */
14345
14346 /* Override any GCC internal prototype to avoid an error.
14347 Use char because int might match the return type of a GCC
14348 builtin and then its argument prototype would still apply. */
14349 #ifdef __cplusplus
14350 extern "C"
14351 #endif
14352 char dlopen ();
14353 int
14354 main ()
14355 {
14356 return dlopen ();
14357 ;
14358 return 0;
14359 }
14360 _ACEOF
14361 if ac_fn_c_try_link "$LINENO"; then :
14362 ac_cv_lib_dl_dlopen=yes
14363 else
14364 ac_cv_lib_dl_dlopen=no
14365 fi
14366 rm -f core conftest.err conftest.$ac_objext \
14367 conftest$ac_exeext conftest.$ac_ext
14368 LIBS=$ac_check_lib_save_LIBS
14369 fi
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14371 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14372 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14373 LIBDL="-ldl"
14374 fi
14375
14376 LIBS="$saveLIBS"
14377
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
14379 $as_echo_n "checking for pam_start in -lpam... " >&6; }
14380 if ${ac_cv_lib_pam_pam_start+:} false; then :
14381 $as_echo_n "(cached) " >&6
14382 else
14383 ac_check_lib_save_LIBS=$LIBS
14384 LIBS="-lpam $LIBDL $LIBS"
14385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386 /* end confdefs.h. */
14387
14388 /* Override any GCC internal prototype to avoid an error.
14389 Use char because int might match the return type of a GCC
14390 builtin and then its argument prototype would still apply. */
14391 #ifdef __cplusplus
14392 extern "C"
14393 #endif
14394 char pam_start ();
14395 int
14396 main ()
14397 {
14398 return pam_start ();
14399 ;
14400 return 0;
14401 }
14402 _ACEOF
14403 if ac_fn_c_try_link "$LINENO"; then :
14404 ac_cv_lib_pam_pam_start=yes
14405 else
14406 ac_cv_lib_pam_pam_start=no
14407 fi
14408 rm -f core conftest.err conftest.$ac_objext \
14409 conftest$ac_exeext conftest.$ac_ext
14410 LIBS=$ac_check_lib_save_LIBS
14411 fi
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
14413 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
14414 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
14415 HAVE_PAM=1
14416 LIBS="-lpam $LIBDL $LIBS"
14417 for ac_func in pam_setcred
14418 do :
14419 ac_fn_c_check_func "$LINENO" "pam_setcred" "ac_cv_func_pam_setcred"
14420 if test "x$ac_cv_func_pam_setcred" = xyes; then :
14421 cat >>confdefs.h <<_ACEOF
14422 #define HAVE_PAM_SETCRED 1
14423 _ACEOF
14424
14425 fi
14426 done
14427
14428 else
14429 HAVE_PAM=0
14430 fi
14431
14432 LIBS="$saveLIBS"
14433 fi
14434
14435
14436 LIBAUTHPAM=""
14437 if test "$HAVE_PAM" = 1
14438 then
14439 LIBAUTHPAM=libauthpam.la
14440 fi
14441
14442
14443 # Check whether --with-authpam-libraries was given.
14444 if test "${with_authpam_libraries+set}" = set; then :
14445 withval=$with_authpam_libraries; authpamcrypt="$withval"
14446 fi
14447
14448
14449 AUTHPAMCRYPT="$authpamcrypt"
14450
14451
14452
14453
14454
14455
14456
14457 # Check whether --with-authldap was given.
14458 if test "${with_authldap+set}" = set; then :
14459 withval=$with_authldap; doauthldap="$withval"
14460 else
14461 doauthldap="yes"
14462 fi
14463
14464
14465 for ac_header in lber.h
14466 do :
14467 ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
14468 if test "x$ac_cv_header_lber_h" = xyes; then :
14469 cat >>confdefs.h <<_ACEOF
14470 #define HAVE_LBER_H 1
14471 _ACEOF
14472
14473 fi
14474
14475 done
14476
14477 for ac_header in ldap.h
14478 do :
14479 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
14480 if test "x$ac_cv_header_ldap_h" = xyes; then :
14481 cat >>confdefs.h <<_ACEOF
14482 #define HAVE_LDAP_H 1
14483 _ACEOF
14484
14485 fi
14486
14487 done
14488
14489 for ac_header in netinet/in.h
14490 do :
14491 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14492 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
14493 cat >>confdefs.h <<_ACEOF
14494 #define HAVE_NETINET_IN_H 1
14495 _ACEOF
14496
14497 fi
14498
14499 done
14500
14501
14502 if test "$doauthldap" = "no"
14503 then
14504 HAVE_LDAP=0
14505 else
14506 saveLIBS="$LIBS"
14507 LIBS="$NETLIBS $LIBS"
14508 LDAPLIBS=""
14509
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lresolv is needed for res_query" >&5
14511 $as_echo_n "checking whether -lresolv is needed for res_query... " >&6; }
14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513 /* end confdefs.h. */
14514
14515 #include <sys/types.h>
14516 #if HAVE_NETINET_IN_H
14517 #include <netinet/in.h>
14518 #endif
14519 #include <resolv.h>
14520
14521 void (*func)()= (void (*)())res_query;
14522
14523 int
14524 main ()
14525 {
14526 (*func)();
14527 ;
14528 return 0;
14529 }
14530 _ACEOF
14531 if ac_fn_c_try_link "$LINENO"; then :
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14533 $as_echo "no" >&6; }
14534 else
14535
14536 LIBS="-lresolv $LIBS"
14537
14538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539 /* end confdefs.h. */
14540
14541 #include <sys/types.h>
14542 #if HAVE_NETINET_IN_H
14543 #include <netinet/in.h>
14544 #endif
14545 #include <resolv.h>
14546
14547 void (*func)()= (void (*)())res_query;
14548
14549 int
14550 main ()
14551 {
14552 (*func)();
14553 ;
14554 return 0;
14555 }
14556 _ACEOF
14557 if ac_fn_c_try_link "$LINENO"; then :
14558
14559 LDAPLIBS="-lresolv $LDAPLIBS"
14560 HAVE_LDAP=1
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14562 $as_echo "yes" >&6; }
14563
14564 else
14565 as_fn_error $? "Cannot find function res_query" "$LINENO" 5
14566 fi
14567 rm -f core conftest.err conftest.$ac_objext \
14568 conftest$ac_exeext conftest.$ac_ext
14569
14570 fi
14571 rm -f core conftest.err conftest.$ac_objext \
14572 conftest$ac_exeext conftest.$ac_ext
14573
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_scanf in -llber" >&5
14575 $as_echo_n "checking for ber_scanf in -llber... " >&6; }
14576 if ${ac_cv_lib_lber_ber_scanf+:} false; then :
14577 $as_echo_n "(cached) " >&6
14578 else
14579 ac_check_lib_save_LIBS=$LIBS
14580 LIBS="-llber $LIBS"
14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h. */
14583
14584 /* Override any GCC internal prototype to avoid an error.
14585 Use char because int might match the return type of a GCC
14586 builtin and then its argument prototype would still apply. */
14587 #ifdef __cplusplus
14588 extern "C"
14589 #endif
14590 char ber_scanf ();
14591 int
14592 main ()
14593 {
14594 return ber_scanf ();
14595 ;
14596 return 0;
14597 }
14598 _ACEOF
14599 if ac_fn_c_try_link "$LINENO"; then :
14600 ac_cv_lib_lber_ber_scanf=yes
14601 else
14602 ac_cv_lib_lber_ber_scanf=no
14603 fi
14604 rm -f core conftest.err conftest.$ac_objext \
14605 conftest$ac_exeext conftest.$ac_ext
14606 LIBS=$ac_check_lib_save_LIBS
14607 fi
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_scanf" >&5
14609 $as_echo "$ac_cv_lib_lber_ber_scanf" >&6; }
14610 if test "x$ac_cv_lib_lber_ber_scanf" = xyes; then :
14611 LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS"
14612 fi
14613
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_open in -lldap" >&5
14615 $as_echo_n "checking for ldap_open in -lldap... " >&6; }
14616 if ${ac_cv_lib_ldap_ldap_open+:} false; then :
14617 $as_echo_n "(cached) " >&6
14618 else
14619 ac_check_lib_save_LIBS=$LIBS
14620 LIBS="-lldap $LIBS"
14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h. */
14623
14624 /* Override any GCC internal prototype to avoid an error.
14625 Use char because int might match the return type of a GCC
14626 builtin and then its argument prototype would still apply. */
14627 #ifdef __cplusplus
14628 extern "C"
14629 #endif
14630 char ldap_open ();
14631 int
14632 main ()
14633 {
14634 return ldap_open ();
14635 ;
14636 return 0;
14637 }
14638 _ACEOF
14639 if ac_fn_c_try_link "$LINENO"; then :
14640 ac_cv_lib_ldap_ldap_open=yes
14641 else
14642 ac_cv_lib_ldap_ldap_open=no
14643 fi
14644 rm -f core conftest.err conftest.$ac_objext \
14645 conftest$ac_exeext conftest.$ac_ext
14646 LIBS=$ac_check_lib_save_LIBS
14647 fi
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_open" >&5
14649 $as_echo "$ac_cv_lib_ldap_ldap_open" >&6; }
14650 if test "x$ac_cv_lib_ldap_ldap_open" = xyes; then :
14651 LDAPLIBS="-lldap $LDAPLIBS" ; LIBS="-lldap $LIBS"
14652 fi
14653
14654 ac_fn_c_check_func "$LINENO" "ldap_search_st" "ac_cv_func_ldap_search_st"
14655 if test "x$ac_cv_func_ldap_search_st" = xyes; then :
14656 HAVE_LDAP=1
14657 else
14658 HAVE_LDAP=0
14659 fi
14660
14661 ac_fn_c_check_func "$LINENO" "ldap_start_tls_s" "ac_cv_func_ldap_start_tls_s"
14662 if test "x$ac_cv_func_ldap_start_tls_s" = xyes; then :
14663 HAVE_LDAP_TLS=1
14664 else
14665 HAVE_LDAP_TLS=0
14666 fi
14667
14668 ac_fn_c_check_func "$LINENO" "ldap_result2error" "ac_cv_func_ldap_result2error"
14669 if test "x$ac_cv_func_ldap_result2error" = xyes; then :
14670 HAVE_LDAP_RESULT2ERROR=1
14671 else
14672 HAVE_LDAP_RESULT2ERROR=0
14673 fi
14674
14675 ac_fn_c_check_func "$LINENO" "ldap_parse_result" "ac_cv_func_ldap_parse_result"
14676 if test "x$ac_cv_func_ldap_parse_result" = xyes; then :
14677 HAVE_LDAP_PARSE_RESULT=1
14678 else
14679 HAVE_LDAP_PARSE_RESULT=0
14680 fi
14681
14682 LIBS="$saveLIBS"
14683 fi
14684
14685
14686 # Check whether --with-authldaprc was given.
14687 if test "${with_authldaprc+set}" = set; then :
14688 withval=$with_authldaprc; authldaprc="$withval"
14689 else
14690 authldaprc="$pkgconfdir/authldaprc"
14691 fi
14692
14693
14694
14695 LIBAUTHLDAP=""
14696 if test "$HAVE_LDAP" = 1
14697 then
14698 LIBAUTHLDAP="libauthldap.la"
14699 else
14700 authldaprc=""
14701 fi
14702
14703
14704
14705 if test "$HAVE_LDAP" = 1; then
14706 HAVE_LDAP_TRUE=
14707 HAVE_LDAP_FALSE='#'
14708 else
14709 HAVE_LDAP_TRUE='#'
14710 HAVE_LDAP_FALSE=
14711 fi
14712
14713
14714 cat >>confdefs.h <<_ACEOF
14715 #define HAVE_LDAP_TLS $HAVE_LDAP_TLS
14716 _ACEOF
14717
14718
14719 cat >>confdefs.h <<_ACEOF
14720 #define HAVE_LDAP_RESULT2ERROR $HAVE_LDAP_RESULT2ERROR
14721 _ACEOF
14722
14723
14724 cat >>confdefs.h <<_ACEOF
14725 #define HAVE_LDAP_PARSE_RESULT $HAVE_LDAP_PARSE_RESULT
14726 _ACEOF
14727
14728
14729
14730
14731
14732 # Check whether --with-authpwd was given.
14733 if test "${with_authpwd+set}" = set; then :
14734 withval=$with_authpwd; doauthpwd="$withval"
14735 else
14736 doauthpwd="yes"
14737 test "$HAVE_PAM" = 1 && doauthpwd="no"
14738 test "$HAVE_LDAP" = 1 && doauthpwd="no"
14739
14740 fi
14741
14742
14743 HAVE_PWD=1
14744 if test "$doauthpwd" = "no"
14745 then
14746 HAVE_PWD=0
14747 fi
14748 for ac_func in endpwent
14749 do :
14750 ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent"
14751 if test "x$ac_cv_func_endpwent" = xyes; then :
14752 cat >>confdefs.h <<_ACEOF
14753 #define HAVE_ENDPWENT 1
14754 _ACEOF
14755
14756 fi
14757 done
14758
14759
14760
14761
14762
14763
14764 # Check whether --with-authshadow was given.
14765 if test "${with_authshadow+set}" = set; then :
14766 withval=$with_authshadow; doauthshadow="$withval"
14767 else
14768 doauthshadow="yes"
14769 test "$HAVE_PAM" = 1 && doauthshadow="no"
14770 test "$HAVE_LDAP" = 1 && doauthshadow="no"
14771 fi
14772
14773
14774 for ac_header in shadow.h
14775 do :
14776 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
14777 if test "x$ac_cv_header_shadow_h" = xyes; then :
14778 cat >>confdefs.h <<_ACEOF
14779 #define HAVE_SHADOW_H 1
14780 _ACEOF
14781
14782 fi
14783
14784 done
14785
14786 saveLIBS="$LIBS"
14787 SHADOWLIBS=""
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspent in -lshadow" >&5
14789 $as_echo_n "checking for getspent in -lshadow... " >&6; }
14790 if ${ac_cv_lib_shadow_getspent+:} false; then :
14791 $as_echo_n "(cached) " >&6
14792 else
14793 ac_check_lib_save_LIBS=$LIBS
14794 LIBS="-lshadow $LIBS"
14795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14796 /* end confdefs.h. */
14797
14798 /* Override any GCC internal prototype to avoid an error.
14799 Use char because int might match the return type of a GCC
14800 builtin and then its argument prototype would still apply. */
14801 #ifdef __cplusplus
14802 extern "C"
14803 #endif
14804 char getspent ();
14805 int
14806 main ()
14807 {
14808 return getspent ();
14809 ;
14810 return 0;
14811 }
14812 _ACEOF
14813 if ac_fn_c_try_link "$LINENO"; then :
14814 ac_cv_lib_shadow_getspent=yes
14815 else
14816 ac_cv_lib_shadow_getspent=no
14817 fi
14818 rm -f core conftest.err conftest.$ac_objext \
14819 conftest$ac_exeext conftest.$ac_ext
14820 LIBS=$ac_check_lib_save_LIBS
14821 fi
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shadow_getspent" >&5
14823 $as_echo "$ac_cv_lib_shadow_getspent" >&6; }
14824 if test "x$ac_cv_lib_shadow_getspent" = xyes; then :
14825 SHADOWLIBS="-lshadow" ; LIBS="-lshadow $LIBS"
14826 fi
14827
14828 for ac_func in endspent getspent
14829 do :
14830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14831 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14832 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14833 cat >>confdefs.h <<_ACEOF
14834 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14835 _ACEOF
14836
14837 fi
14838 done
14839
14840 LIBS="$saveLIBS"
14841
14842 if test "$doauthshadow" = "no"
14843 then
14844 HAVE_SHADOW=0
14845 else
14846
14847 saveLIBS="$LIBS"
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspent in -lshadow" >&5
14849 $as_echo_n "checking for getspent in -lshadow... " >&6; }
14850 if ${ac_cv_lib_shadow_getspent+:} false; then :
14851 $as_echo_n "(cached) " >&6
14852 else
14853 ac_check_lib_save_LIBS=$LIBS
14854 LIBS="-lshadow $LIBS"
14855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14856 /* end confdefs.h. */
14857
14858 /* Override any GCC internal prototype to avoid an error.
14859 Use char because int might match the return type of a GCC
14860 builtin and then its argument prototype would still apply. */
14861 #ifdef __cplusplus
14862 extern "C"
14863 #endif
14864 char getspent ();
14865 int
14866 main ()
14867 {
14868 return getspent ();
14869 ;
14870 return 0;
14871 }
14872 _ACEOF
14873 if ac_fn_c_try_link "$LINENO"; then :
14874 ac_cv_lib_shadow_getspent=yes
14875 else
14876 ac_cv_lib_shadow_getspent=no
14877 fi
14878 rm -f core conftest.err conftest.$ac_objext \
14879 conftest$ac_exeext conftest.$ac_ext
14880 LIBS=$ac_check_lib_save_LIBS
14881 fi
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shadow_getspent" >&5
14883 $as_echo "$ac_cv_lib_shadow_getspent" >&6; }
14884 if test "x$ac_cv_lib_shadow_getspent" = xyes; then :
14885 cat >>confdefs.h <<_ACEOF
14886 #define HAVE_LIBSHADOW 1
14887 _ACEOF
14888
14889 LIBS="-lshadow $LIBS"
14890
14891 fi
14892
14893 ac_fn_c_check_func "$LINENO" "getspent" "ac_cv_func_getspent"
14894 if test "x$ac_cv_func_getspent" = xyes; then :
14895 HAVE_SHADOW=1
14896 else
14897 HAVE_SHADOW=0
14898 fi
14899
14900 LIBS="$saveLIBS"
14901 fi
14902
14903 LIBAUTHSHADOW=""
14904 if test "$HAVE_SHADOW" = 1
14905 then
14906 LIBAUTHSHADOW="libauthshadow.la"
14907 fi
14908
14909
14910
14911 LIBAUTHPWD=""
14912 if test "$HAVE_PWD" = 1
14913 then
14914 LIBAUTHPWD="libauthpwd.la"
14915 fi
14916
14917
14918
14919
14920
14921
14922 # Check whether --with-authpgsqlrc was given.
14923 if test "${with_authpgsqlrc+set}" = set; then :
14924 withval=$with_authpgsqlrc; authpgsqlrc="$withval"
14925 else
14926 authpgsqlrc="$pkgconfdir/authpgsqlrc"
14927 fi
14928
14929
14930
14931
14932 # Check whether --with-authpgsql was given.
14933 if test "${with_authpgsql+set}" = set; then :
14934 withval=$with_authpgsql; doauthpgsql="$withval"
14935 fi
14936
14937
14938 for ac_prog in pg_config
14939 do
14940 # Extract the first word of "$ac_prog", so it can be a program name with args.
14941 set dummy $ac_prog; ac_word=$2
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14943 $as_echo_n "checking for $ac_word... " >&6; }
14944 if ${ac_cv_path_PG_CONFIG+:} false; then :
14945 $as_echo_n "(cached) " >&6
14946 else
14947 case $PG_CONFIG in
14948 [\\/]* | ?:[\\/]*)
14949 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
14950 ;;
14951 *)
14952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14953 for as_dir in $LPATH
14954 do
14955 IFS=$as_save_IFS
14956 test -z "$as_dir" && as_dir=.
14957 for ac_exec_ext in '' $ac_executable_extensions; do
14958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14959 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14961 break 2
14962 fi
14963 done
14964 done
14965 IFS=$as_save_IFS
14966
14967 ;;
14968 esac
14969 fi
14970 PG_CONFIG=$ac_cv_path_PG_CONFIG
14971 if test -n "$PG_CONFIG"; then
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
14973 $as_echo "$PG_CONFIG" >&6; }
14974 else
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14976 $as_echo "no" >&6; }
14977 fi
14978
14979
14980 test -n "$PG_CONFIG" && break
14981 done
14982 test -n "$PG_CONFIG" || PG_CONFIG="pg_config"
14983
14984
14985 PGSQL_LIBS="-lpq"
14986
14987 # Check whether --with-pgsql-libs was given.
14988 if test "${with_pgsql_libs+set}" = set; then :
14989 withval=$with_pgsql_libs; PGSQL_LIBS="-L$withval $PGSQL_LIBS"
14990 else
14991 if test -x $PG_CONFIG
14992 then
14993 PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS"
14994 fi
14995
14996 fi
14997
14998
14999 # Check whether --with-pgsql-includes was given.
15000 if test "${with_pgsql_includes+set}" = set; then :
15001 withval=$with_pgsql_includes; PGSQL_CFLAGS="-I$withval"
15002 else
15003 if test -x $PG_CONFIG
15004 then
15005 PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`"
15006 fi
15007
15008 fi
15009
15010
15011 if test "$doauthpgsql" = ""
15012 then
15013 LIBS="$PGSQL_LIBS $LIBS"
15014 ac_fn_c_check_func "$LINENO" "PQsetdbLogin" "ac_cv_func_PQsetdbLogin"
15015 if test "x$ac_cv_func_PQsetdbLogin" = xyes; then :
15016 doauthpgsql="yes"
15017
15018 fi
15019
15020 LIBS="$saveLIBS"
15021 fi
15022
15023 if test "$doauthpgsql" != "yes"
15024 then
15025 LIBAUTHPGSQL=""
15026 HAVE_AUTHPGSQL=0
15027 else
15028 saveLIBS="$LIBS"
15029 LIBS="$PGSQL_LIBS $LIBS"
15030 ac_fn_c_check_func "$LINENO" "PQsetdbLogin" "ac_cv_func_PQsetdbLogin"
15031 if test "x$ac_cv_func_PQsetdbLogin" = xyes; then :
15032 AUTHPGSQL="authpgsql"
15033 HAVE_AUTHPGSQL=1
15034 else
15035 as_fn_error $? "--with-authpgsql specified but no libpq.so" "$LINENO" 5
15036 fi
15037
15038 LIBS="$saveLIBS"
15039 HAVE_AUTHPGSQL=1
15040 CFLAGS="$PGSQL_CFLAGS $CFLAGS"
15041 LIBAUTHPGSQL="libauthpgsql.la"
15042 fi
15043
15044
15045
15046 if test "$HAVE_AUTHPGSQL" = 1; then
15047 HAVE_AUTHPGSQL_TRUE=
15048 HAVE_AUTHPGSQL_FALSE='#'
15049 else
15050 HAVE_AUTHPGSQL_TRUE='#'
15051 HAVE_AUTHPGSQL_FALSE=
15052 fi
15053
15054
15055
15056
15057
15058
15059 # Check whether --with-authmysqlrc was given.
15060 if test "${with_authmysqlrc+set}" = set; then :
15061 withval=$with_authmysqlrc; authmysqlrc="$withval"
15062 else
15063 authmysqlrc="$pkgconfdir/authmysqlrc"
15064 fi
15065
15066
15067
15068
15069 # Check whether --with-authmysql was given.
15070 if test "${with_authmysql+set}" = set; then :
15071 withval=$with_authmysql; doauthmysql="$withval"
15072 fi
15073
15074
15075 # Check whether --with-mysql-libs was given.
15076 if test "${with_mysql_libs+set}" = set; then :
15077 withval=$with_mysql_libs; MYSQL_LIBS="-L$withval -lmysqlclient"
15078
15079 fi
15080
15081
15082 # Check whether --with-mysql-includes was given.
15083 if test "${with_mysql_includes+set}" = set; then :
15084 withval=$with_mysql_includes; MYSQL_CFLAGS="-I$withval"
15085
15086 fi
15087
15088
15089 for ac_prog in mysql_config
15090 do
15091 # Extract the first word of "$ac_prog", so it can be a program name with args.
15092 set dummy $ac_prog; ac_word=$2
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15094 $as_echo_n "checking for $ac_word... " >&6; }
15095 if ${ac_cv_path_MYSQL_CONFIG+:} false; then :
15096 $as_echo_n "(cached) " >&6
15097 else
15098 case $MYSQL_CONFIG in
15099 [\\/]* | ?:[\\/]*)
15100 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
15101 ;;
15102 *)
15103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15104 for as_dir in $LPATH
15105 do
15106 IFS=$as_save_IFS
15107 test -z "$as_dir" && as_dir=.
15108 for ac_exec_ext in '' $ac_executable_extensions; do
15109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15110 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15112 break 2
15113 fi
15114 done
15115 done
15116 IFS=$as_save_IFS
15117
15118 ;;
15119 esac
15120 fi
15121 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
15122 if test -n "$MYSQL_CONFIG"; then
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
15124 $as_echo "$MYSQL_CONFIG" >&6; }
15125 else
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15127 $as_echo "no" >&6; }
15128 fi
15129
15130
15131 test -n "$MYSQL_CONFIG" && break
15132 done
15133 test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="mysql_config"
15134
15135
15136 if test -x "$MYSQL_CONFIG"
15137 then
15138 MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`"
15139 MYSQL_LIBS="`$MYSQL_CONFIG --libs`"
15140
15141 eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\`\""
15142 eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\`\""
15143 fi
15144
15145 if test "$doauthmysql" = ""
15146 then
15147 LIBS="$MYSQL_LIBS $LIBS"
15148 ac_fn_c_check_func "$LINENO" "mysql_connect" "ac_cv_func_mysql_connect"
15149 if test "x$ac_cv_func_mysql_connect" = xyes; then :
15150 doauthmysql="yes"
15151
15152 fi
15153
15154 ac_fn_c_check_func "$LINENO" "mysql_real_connect" "ac_cv_func_mysql_real_connect"
15155 if test "x$ac_cv_func_mysql_real_connect" = xyes; then :
15156 doauthmysql="yes"
15157
15158 fi
15159
15160 LIBS="$saveLIBS"
15161 fi
15162
15163 if test "$doauthmysql" != "yes"
15164 then
15165 LIBAUTHMYSQL=""
15166 HAVE_AUTHMYSQL=0
15167 else
15168 saveLIBS="$LIBS"
15169 LIBS="$MYSQL_LIBS $LIBS"
15170 ac_fn_c_check_func "$LINENO" "mysql_connect" "ac_cv_func_mysql_connect"
15171 if test "x$ac_cv_func_mysql_connect" = xyes; then :
15172 LIBAUTHMYSQL="libauthmysql.la"
15173 HAVE_AUTHMYSQL=1
15174 else
15175
15176 ac_fn_c_check_func "$LINENO" "mysql_real_connect" "ac_cv_func_mysql_real_connect"
15177 if test "x$ac_cv_func_mysql_real_connect" = xyes; then :
15178 LIBAUTHMYSQL="libauthmysql.la"
15179 HAVE_AUTHMYSQL=1
15180 else
15181 as_fn_error $? "--with-authmysql specified but no mysqlclient.so" "$LINENO" 5
15182
15183 fi
15184
15185
15186
15187 fi
15188
15189 LIBS="$saveLIBS"
15190 HAVE_AUTHMYSQL=1
15191 CFLAGS="$MYSQL_CFLAGS $CFLAGS"
15192 fi
15193
15194
15195 if test "$HAVE_AUTHMYSQL" = 1; then
15196 HAVE_AUTHMYSQL_TRUE=
15197 HAVE_AUTHMYSQL_FALSE='#'
15198 else
15199 HAVE_AUTHMYSQL_TRUE='#'
15200 HAVE_AUTHMYSQL_FALSE=
15201 fi
15202
15203
15204
15205
15206
15207
15208 # Check whether --with-authsqliterc was given.
15209 if test "${with_authsqliterc+set}" = set; then :
15210 withval=$with_authsqliterc; authsqliterc="$withval"
15211 else
15212 authsqliterc="$pkgconfdir/authsqliterc"
15213 fi
15214
15215
15216
15217
15218 # Check whether --with-authsqlite was given.
15219 if test "${with_authsqlite+set}" = set; then :
15220 withval=$with_authsqlite; doauthsqlite="$withval"
15221 fi
15222
15223
15224
15225 # Check whether --with-sqlite-libs was given.
15226 if test "${with_sqlite_libs+set}" = set; then :
15227 withval=$with_sqlite_libs; SQLITE_LIBS="-lsqlite3"
15228
15229 fi
15230
15231
15232 # Check whether --with-sqlite-includes was given.
15233 if test "${with_sqlite_includes+set}" = set; then :
15234 withval=$with_sqlite_includes; SQLITE_CFLAGS="-I$withval"
15235
15236 fi
15237
15238
15239 if test "$doauthsqlite" = ""
15240 then
15241 SQLITE_CFLAGS="`pkg-config --cflags sqlite3 2>/dev/null`"
15242 SQLITE_LIBS="`pkg-config --libs sqlite3 2>/dev/null`"
15243 saveLIBS="$LIBS"
15244 LIBS="$SQLITE_LIBS $LIBS"
15245 ac_fn_c_check_func "$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version"
15246 if test "x$ac_cv_func_sqlite3_version" = xyes; then :
15247 doauthsqlite="yes"
15248
15249 fi
15250
15251 LIBS="$saveLIBS"
15252 fi
15253
15254 if test "$doauthsqlite" != "yes"
15255 then
15256 SQLITE_LIBS=""
15257 SQLITE_CFLAGS=""
15258 HAVE_AUTHSQLITE=0
15259 LIBAUTHSQLITE=""
15260 else
15261 saveLIBS="$LIBS"
15262 LIBS="$SQLITE_LIBS $LIBS"
15263 ac_fn_c_check_func "$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version"
15264 if test "x$ac_cv_func_sqlite3_version" = xyes; then :
15265 :
15266 else
15267 as_fn_error $? "Cannot link with $SQLITE_LIBS" "$LINENO" 5
15268
15269 fi
15270
15271 LIBS="$saveLIBS"
15272 HAVE_AUTHSQLITE=1
15273 CFLAGS="$SQLITE_CFLAGS $CFLAGS"
15274 LIBAUTHSQLITE="libauthsqlite.la"
15275
15276 fi
15277
15278
15279 if test "$HAVE_AUTHSQLITE" = 1; then
15280 HAVE_AUTHSQLITE_TRUE=
15281 HAVE_AUTHSQLITE_FALSE='#'
15282 else
15283 HAVE_AUTHSQLITE_TRUE='#'
15284 HAVE_AUTHSQLITE_FALSE=
15285 fi
15286
15287
15288
15289
15290
15291
15292
15293 # Check whether --with-authcustom was given.
15294 if test "${with_authcustom+set}" = set; then :
15295 withval=$with_authcustom; doauthcustom="$withval"
15296 else
15297 doauthcustom=yes
15298 fi
15299
15300
15301 LIBAUTHCUSTOM=""
15302
15303 if test "$doauthcustom" = "yes"
15304 then
15305 LIBAUTHCUSTOM="libauthcustom.la"
15306 fi
15307
15308 if test "$AUTHCUSTOM" != ""; then
15309 HAVE_CUSTOM_TRUE=
15310 HAVE_CUSTOM_FALSE='#'
15311 else
15312 HAVE_CUSTOM_TRUE='#'
15313 HAVE_CUSTOM_FALSE=
15314 fi
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324 # Check whether --with-pipeprog was given.
15325 if test "${with_pipeprog+set}" = set; then :
15326 withval=$with_pipeprog; authProg="$withval"
15327 else
15328 authProg="$pkgconfdir/authProg"
15329 fi
15330
15331
15332
15333
15334 # Check whether --with-authpipe was given.
15335 if test "${with_authpipe+set}" = set; then :
15336 withval=$with_authpipe; doauthpipe="$withval"
15337 else
15338 doauthpipe=yes
15339 fi
15340
15341
15342 LIBAUTHPIPE=""
15343
15344 if test "$doauthpipe" = "yes"
15345 then
15346 LIBAUTHPIPE="libauthpipe.la"
15347 fi
15348
15349 if test "$AUTHPIPE" != ""; then
15350 HAVE_PIPE_TRUE=
15351 HAVE_PIPE_FALSE='#'
15352 else
15353 HAVE_PIPE_TRUE='#'
15354 HAVE_PIPE_FALSE=
15355 fi
15356
15357
15358
15359
15360
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15362 $as_echo_n "checking for ANSI C header files... " >&6; }
15363 if ${ac_cv_header_stdc+:} false; then :
15364 $as_echo_n "(cached) " >&6
15365 else
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h. */
15368 #include <stdlib.h>
15369 #include <stdarg.h>
15370 #include <string.h>
15371 #include <float.h>
15372
15373 int
15374 main ()
15375 {
15376
15377 ;
15378 return 0;
15379 }
15380 _ACEOF
15381 if ac_fn_c_try_compile "$LINENO"; then :
15382 ac_cv_header_stdc=yes
15383 else
15384 ac_cv_header_stdc=no
15385 fi
15386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15387
15388 if test $ac_cv_header_stdc = yes; then
15389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391 /* end confdefs.h. */
15392 #include <string.h>
15393
15394 _ACEOF
15395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15396 $EGREP "memchr" >/dev/null 2>&1; then :
15397
15398 else
15399 ac_cv_header_stdc=no
15400 fi
15401 rm -f conftest*
15402
15403 fi
15404
15405 if test $ac_cv_header_stdc = yes; then
15406 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15408 /* end confdefs.h. */
15409 #include <stdlib.h>
15410
15411 _ACEOF
15412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15413 $EGREP "free" >/dev/null 2>&1; then :
15414
15415 else
15416 ac_cv_header_stdc=no
15417 fi
15418 rm -f conftest*
15419
15420 fi
15421
15422 if test $ac_cv_header_stdc = yes; then
15423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15424 if test "$cross_compiling" = yes; then :
15425 :
15426 else
15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h. */
15429 #include <ctype.h>
15430 #include <stdlib.h>
15431 #if ((' ' & 0x0FF) == 0x020)
15432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15434 #else
15435 # define ISLOWER(c) \
15436 (('a' <= (c) && (c) <= 'i') \
15437 || ('j' <= (c) && (c) <= 'r') \
15438 || ('s' <= (c) && (c) <= 'z'))
15439 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15440 #endif
15441
15442 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15443 int
15444 main ()
15445 {
15446 int i;
15447 for (i = 0; i < 256; i++)
15448 if (XOR (islower (i), ISLOWER (i))
15449 || toupper (i) != TOUPPER (i))
15450 return 2;
15451 return 0;
15452 }
15453 _ACEOF
15454 if ac_fn_c_try_run "$LINENO"; then :
15455
15456 else
15457 ac_cv_header_stdc=no
15458 fi
15459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15460 conftest.$ac_objext conftest.beam conftest.$ac_ext
15461 fi
15462
15463 fi
15464 fi
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15466 $as_echo "$ac_cv_header_stdc" >&6; }
15467 if test $ac_cv_header_stdc = yes; then
15468
15469 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15470
15471 fi
15472
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15474 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15475 if ${ac_cv_header_sys_wait_h+:} false; then :
15476 $as_echo_n "(cached) " >&6
15477 else
15478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15479 /* end confdefs.h. */
15480 #include <sys/types.h>
15481 #include <sys/wait.h>
15482 #ifndef WEXITSTATUS
15483 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15484 #endif
15485 #ifndef WIFEXITED
15486 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15487 #endif
15488
15489 int
15490 main ()
15491 {
15492 int s;
15493 wait (&s);
15494 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15495 ;
15496 return 0;
15497 }
15498 _ACEOF
15499 if ac_fn_c_try_compile "$LINENO"; then :
15500 ac_cv_header_sys_wait_h=yes
15501 else
15502 ac_cv_header_sys_wait_h=no
15503 fi
15504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15505 fi
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15507 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
15508 if test $ac_cv_header_sys_wait_h = yes; then
15509
15510 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15511
15512 fi
15513
15514 for ac_header in sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h
15515 do :
15516 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15517 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15518 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15519 cat >>confdefs.h <<_ACEOF
15520 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15521 _ACEOF
15522
15523 fi
15524
15525 done
15526
15527
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15529 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15530 if ${ac_cv_c_const+:} false; then :
15531 $as_echo_n "(cached) " >&6
15532 else
15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15534 /* end confdefs.h. */
15535
15536 int
15537 main ()
15538 {
15539
15540 #ifndef __cplusplus
15541 /* Ultrix mips cc rejects this sort of thing. */
15542 typedef int charset[2];
15543 const charset cs = { 0, 0 };
15544 /* SunOS 4.1.1 cc rejects this. */
15545 char const *const *pcpcc;
15546 char **ppc;
15547 /* NEC SVR4.0.2 mips cc rejects this. */
15548 struct point {int x, y;};
15549 static struct point const zero = {0,0};
15550 /* AIX XL C 1.02.0.0 rejects this.
15551 It does not let you subtract one const X* pointer from another in
15552 an arm of an if-expression whose if-part is not a constant
15553 expression */
15554 const char *g = "string";
15555 pcpcc = &g + (g ? g-g : 0);
15556 /* HPUX 7.0 cc rejects these. */
15557 ++pcpcc;
15558 ppc = (char**) pcpcc;
15559 pcpcc = (char const *const *) ppc;
15560 { /* SCO 3.2v4 cc rejects this sort of thing. */
15561 char tx;
15562 char *t = &tx;
15563 char const *s = 0 ? (char *) 0 : (char const *) 0;
15564
15565 *t++ = 0;
15566 if (s) return 0;
15567 }
15568 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15569 int x[] = {25, 17};
15570 const int *foo = &x[0];
15571 ++foo;
15572 }
15573 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15574 typedef const int *iptr;
15575 iptr p = 0;
15576 ++p;
15577 }
15578 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15579 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15580 struct s { int j; const int *ap[3]; } bx;
15581 struct s *b = &bx; b->j = 5;
15582 }
15583 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15584 const int foo = 10;
15585 if (!foo) return 0;
15586 }
15587 return !cs[0] && !zero.x;
15588 #endif
15589
15590 ;
15591 return 0;
15592 }
15593 _ACEOF
15594 if ac_fn_c_try_compile "$LINENO"; then :
15595 ac_cv_c_const=yes
15596 else
15597 ac_cv_c_const=no
15598 fi
15599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15600 fi
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15602 $as_echo "$ac_cv_c_const" >&6; }
15603 if test $ac_cv_c_const = no; then
15604
15605 $as_echo "#define const /**/" >>confdefs.h
15606
15607 fi
15608
15609 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15610 if test "x$ac_cv_type_pid_t" = xyes; then :
15611
15612 else
15613
15614 cat >>confdefs.h <<_ACEOF
15615 #define pid_t int
15616 _ACEOF
15617
15618 fi
15619
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15621 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15622 if ${ac_cv_type_uid_t+:} false; then :
15623 $as_echo_n "(cached) " >&6
15624 else
15625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h. */
15627 #include <sys/types.h>
15628
15629 _ACEOF
15630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15631 $EGREP "uid_t" >/dev/null 2>&1; then :
15632 ac_cv_type_uid_t=yes
15633 else
15634 ac_cv_type_uid_t=no
15635 fi
15636 rm -f conftest*
15637
15638 fi
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15640 $as_echo "$ac_cv_type_uid_t" >&6; }
15641 if test $ac_cv_type_uid_t = no; then
15642
15643 $as_echo "#define uid_t int" >>confdefs.h
15644
15645
15646 $as_echo "#define gid_t int" >>confdefs.h
15647
15648 fi
15649
15650 for ac_func in setsid setlogin
15651 do :
15652 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15653 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15654 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15655 cat >>confdefs.h <<_ACEOF
15656 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15657 _ACEOF
15658
15659 fi
15660 done
15661
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
15663 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
15664 if ${ac_cv_lib_crypt_crypt+:} false; then :
15665 $as_echo_n "(cached) " >&6
15666 else
15667 ac_check_lib_save_LIBS=$LIBS
15668 LIBS="-lcrypt $LIBS"
15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h. */
15671
15672 /* Override any GCC internal prototype to avoid an error.
15673 Use char because int might match the return type of a GCC
15674 builtin and then its argument prototype would still apply. */
15675 #ifdef __cplusplus
15676 extern "C"
15677 #endif
15678 char crypt ();
15679 int
15680 main ()
15681 {
15682 return crypt ();
15683 ;
15684 return 0;
15685 }
15686 _ACEOF
15687 if ac_fn_c_try_link "$LINENO"; then :
15688 ac_cv_lib_crypt_crypt=yes
15689 else
15690 ac_cv_lib_crypt_crypt=no
15691 fi
15692 rm -f core conftest.err conftest.$ac_objext \
15693 conftest$ac_exeext conftest.$ac_ext
15694 LIBS=$ac_check_lib_save_LIBS
15695 fi
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
15697 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
15698 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
15699 CRYPTLIBS="-lcrypt"
15700 fi
15701
15702 saveLIBS="$LIBS"
15703 LIBS="$CRYPTLIBS $LIBS"
15704 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
15705 if test "x$ac_cv_func_crypt" = xyes; then :
15706
15707 cat >>confdefs.h <<_ACEOF
15708 #define HAVE_CRYPT 1
15709 _ACEOF
15710
15711 fi
15712
15713 LIBS="$saveLIBS"
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt() prototype" >&5
15715 $as_echo_n "checking for crypt() prototype... " >&6; }
15716 if ${userdb_cv_NEED_CRYPT_PROTOTYPE+:} false; then :
15717 $as_echo_n "(cached) " >&6
15718 else
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15721
15722 #if HAVE_CRYPT_H
15723 #include <crypt.h>
15724 #endif
15725 #if HAVE_UNISTD_H
15726 #include <unistd.h>
15727 #endif
15728 int crypt(int, int);
15729
15730
15731 int
15732 main ()
15733 {
15734
15735 ;
15736 return 0;
15737 }
15738 _ACEOF
15739 if ac_fn_c_try_compile "$LINENO"; then :
15740 userdb_cv_NEED_CRYPT_PROTOTYPE=1
15741 else
15742 userdb_cv_NEED_CRYPT_PROTOTYPE=0
15743 fi
15744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15745
15746
15747 fi
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
15749 $as_echo "$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
15750
15751
15752 cat >>confdefs.h <<_ACEOF
15753 #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
15754 _ACEOF
15755
15756
15757
15758
15759
15760
15761
15762 # Check whether --with-authdaemonrc was given.
15763 if test "${with_authdaemonrc+set}" = set; then :
15764 withval=$with_authdaemonrc; authdaemonrc="$withval"
15765 else
15766 authdaemonrc="$pkgconfdir/authdaemonrc"
15767 fi
15768
15769
15770
15771
15772 # Check whether --with-authdaemonvar was given.
15773 if test "${with_authdaemonvar+set}" = set; then :
15774 withval=$with_authdaemonvar; authdaemonvar="$withval"
15775 else
15776 authdaemonvar="$localstatedir/spool/authdaemon"
15777 fi
15778
15779
15780
15781
15782
15783
15784 rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h
15785
15786
15787 result=""
15788
15789 if test -x "$COURIERCONFIG"
15790 then
15791 $COURIERCONFIG >conftest.out || exit 1
15792 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
15793 . ./conftest2.out
15794 rm -f conftest.out conftest2.out
15795
15796 cmailuser="$mailuser"
15797 cmailgroup="$mailgroup"
15798 result=" (from courier-config)"
15799 fi
15800
15801 if test -x "$bindir/courierauthconfig"
15802 then
15803 $bindir/courierauthconfig --configfiles >conftest.out || exit 1
15804 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
15805 . ./conftest2.out
15806 rm -f conftest.out conftest2.out
15807
15808 cmailuser="$mailuser"
15809 cmailgroup="$mailgroup"
15810 result=" (from previous courierauthconfig)"
15811 fi
15812
15813
15814
15815 LB='['
15816 RB=']'
15817
15818
15819
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mail userid" >&5
15821 $as_echo_n "checking for mail userid... " >&6; }
15822
15823
15824 # Check whether --with-mailuser was given.
15825 if test "${with_mailuser+set}" = set; then :
15826 withval=$with_mailuser; mailuser="$withval"
15827 else
15828 if test "$cmailuser" = ""
15829 then
15830 if test "$cross_compiling" = yes; then :
15831 as_fn_error $? "Must use --with-mailuser when cross compiling." "$LINENO" 5
15832 else
15833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15834 /* end confdefs.h. */
15835
15836 #include <stdio.h>
15837 #include <pwd.h>
15838 #include <stdlib.h>
15839
15840 static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0};
15841
15842 int main()
15843 {
15844 int i;
15845 FILE *f;
15846 char *p;
15847
15848 for (i=0; ids $LB i $RB; i++)
15849 if (getpwnam(ids $LB i $RB)) break;
15850
15851 f=fopen("conftest.out", "w");
15852 if (f && ids $LB i $RB)
15853 {
15854 fprintf(f, "%s\n", ids $LB i $RB);
15855 fclose(f);
15856 exit(0);
15857 }
15858 fclose(f);
15859 exit (1);
15860 return (1);
15861 }
15862
15863 _ACEOF
15864 if ac_fn_c_try_run "$LINENO"; then :
15865 mailuser=`cat conftest.out`
15866 else
15867 as_fn_error use --with-mailuser. "Cannot determine mail user" "$LINENO" 5
15868 fi
15869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15870 conftest.$ac_objext conftest.beam conftest.$ac_ext
15871 fi
15872
15873 else
15874 mailuser="$cmailuser"
15875 fi
15876 ac_configure_args="$ac_configure_args --with-mailuser=$mailuser"
15877 fi
15878
15879
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailuser $result" >&5
15881 $as_echo "$mailuser $result" >&6; }
15882
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mail group id" >&5
15884 $as_echo_n "checking for mail group id... " >&6; }
15885
15886
15887 # Check whether --with-mailgroup was given.
15888 if test "${with_mailgroup+set}" = set; then :
15889 withval=$with_mailgroup; mailgroup="$withval"
15890 else
15891 if test "$cmailgroup" = ""
15892 then
15893 if test "$cross_compiling" = yes; then :
15894 as_fn_error $? "Must use --with-mailgroup when cross compiling." "$LINENO" 5
15895 else
15896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897 /* end confdefs.h. */
15898
15899 #include <stdio.h>
15900 #include <grp.h>
15901 #include <stdlib.h>
15902
15903 static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0};
15904
15905 int main()
15906 {
15907 int i;
15908 FILE *f;
15909
15910 for (i=0; ids $LB i $RB; i++)
15911 if (getgrnam(ids $LB i $RB)) break;
15912
15913 f=fopen("conftest.out", "w");
15914 if (f && ids $LB i $RB)
15915 {
15916 fprintf(f, "%s\n", ids $LB i $RB);
15917 fclose(f);
15918 exit(0);
15919 }
15920 fclose(f);
15921 exit (1);
15922 return (1);
15923 }
15924
15925 _ACEOF
15926 if ac_fn_c_try_run "$LINENO"; then :
15927 mailgroup=`cat conftest.out`
15928 else
15929 as_fn_error use --with-mailgroup. "Cannot determine mail group" "$LINENO" 5
15930 fi
15931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15932 conftest.$ac_objext conftest.beam conftest.$ac_ext
15933 fi
15934
15935 else
15936 mailgroup="$cmailgroup"
15937 fi
15938 ac_configure_args="$ac_configure_args --with-mailgroup=$mailgroup"
15939
15940 fi
15941
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailgroup $result" >&5
15943 $as_echo "$mailgroup $result" >&6; }
15944
15945
15946 rm -f conftest.out
15947
15948
15949 # Check whether --with-stdheaderdir was given.
15950 if test "${with_stdheaderdir+set}" = set; then :
15951 withval=$with_stdheaderdir;
15952 if test "$withval" = "no"
15953 then
15954
15955 cat >>confdefs.h <<_ACEOF
15956 #define HAVE_NOSTDHEADERDIR 1
15957 _ACEOF
15958
15959 fi
15960
15961 fi
15962
15963
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
15965 $as_echo_n "checking for socklen_t... " >&6; }
15966 if ${authlib_cv_hassocklen_t+:} false; then :
15967 $as_echo_n "(cached) " >&6
15968 else
15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970 /* end confdefs.h. */
15971
15972
15973 #include <sys/types.h>
15974 #include <sys/socket.h>
15975
15976 socklen_t sl_t;
15977
15978 _ACEOF
15979 if ac_fn_c_try_compile "$LINENO"; then :
15980 authlib_cv_hassocklen_t=yes
15981 else
15982 authlib_cv_hassocklen_t=no
15983 fi
15984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15985
15986 fi
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $authlib_cv_hassocklen_t" >&5
15988 $as_echo "$authlib_cv_hassocklen_t" >&6; }
15989
15990 socklen_t="int"
15991
15992 if test $authlib_cv_hassocklen_t = yes
15993 then
15994 :
15995 else
15996
15997 cat >>confdefs.h <<_ACEOF
15998 #define socklen_t int
15999 _ACEOF
16000
16001 fi
16002
16003
16004 # Check whether --with-repository was given.
16005 if test "${with_repository+set}" = set; then :
16006 withval=$with_repository; REPOSITORY="$withval"
16007 fi
16008
16009
16010
16011 if test -d ${srcdir}/libs/docbook; then
16012 HAVE_SGML_TRUE=
16013 HAVE_SGML_FALSE='#'
16014 else
16015 HAVE_SGML_TRUE='#'
16016 HAVE_SGML_FALSE=
16017 fi
16018
16019
16020 # This gets built by the make rule, and is not in the git repo
16021
16022 for f in authdaemonrc.in
16023 do
16024 if test ! -f "$srcdir/$f"
16025 then
16026 cp -p "$srcdir/$f.git" "$srcdir/$f"
16027 touch "$srcdir/$f.git"
16028 fi
16029 done
16030
16031 subdirs="$subdirs libs/bdbobj libs/gdbmobj libs/md5 libs/sha1 libs/libhmac libs/numlib libs/makedat userdb libs/rfc822 libs/random128 libs/liblock liblog"
16032
16033
16034 ac_config_files="$ac_config_files Makefile authdaemond authdaemonrc authsystem.passwd README.authdebug.html dbobj.config dbobj.h authmigrate courier-authlib.spec courier-authlib.lpspec courier-authlib.sysvinit courier-authlib.service userdb-test-cram-md5.pl"
16035
16036 cat >confcache <<\_ACEOF
16037 # This file is a shell script that caches the results of configure
16038 # tests run on this system so they can be shared between configure
16039 # scripts and configure runs, see configure's option --config-cache.
16040 # It is not useful on other systems. If it contains results you don't
16041 # want to keep, you may remove or edit it.
16042 #
16043 # config.status only pays attention to the cache file if you give it
16044 # the --recheck option to rerun configure.
16045 #
16046 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16047 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16048 # following values.
16049
16050 _ACEOF
16051
16052 # The following way of writing the cache mishandles newlines in values,
16053 # but we know of no workaround that is simple, portable, and efficient.
16054 # So, we kill variables containing newlines.
16055 # Ultrix sh set writes to stderr and can't be redirected directly,
16056 # and sets the high bit in the cache file unless we assign to the vars.
16057 (
16058 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16059 eval ac_val=\$$ac_var
16060 case $ac_val in #(
16061 *${as_nl}*)
16062 case $ac_var in #(
16063 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16064 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16065 esac
16066 case $ac_var in #(
16067 _ | IFS | as_nl) ;; #(
16068 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16069 *) { eval $ac_var=; unset $ac_var;} ;;
16070 esac ;;
16071 esac
16072 done
16073
16074 (set) 2>&1 |
16075 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16076 *${as_nl}ac_space=\ *)
16077 # `set' does not quote correctly, so add quotes: double-quote
16078 # substitution turns \\\\ into \\, and sed turns \\ into \.
16079 sed -n \
16080 "s/'/'\\\\''/g;
16081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16082 ;; #(
16083 *)
16084 # `set' quotes correctly as required by POSIX, so do not add quotes.
16085 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16086 ;;
16087 esac |
16088 sort
16089 ) |
16090 sed '
16091 /^ac_cv_env_/b end
16092 t clear
16093 :clear
16094 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16095 t end
16096 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16097 :end' >>confcache
16098 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16099 if test -w "$cache_file"; then
16100 if test "x$cache_file" != "x/dev/null"; then
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16102 $as_echo "$as_me: updating cache $cache_file" >&6;}
16103 if test ! -f "$cache_file" || test -h "$cache_file"; then
16104 cat confcache >"$cache_file"
16105 else
16106 case $cache_file in #(
16107 */* | ?:*)
16108 mv -f confcache "$cache_file"$$ &&
16109 mv -f "$cache_file"$$ "$cache_file" ;; #(
16110 *)
16111 mv -f confcache "$cache_file" ;;
16112 esac
16113 fi
16114 fi
16115 else
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16117 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16118 fi
16119 fi
16120 rm -f confcache
16121
16122 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16123 # Let make expand exec_prefix.
16124 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16125
16126 DEFS=-DHAVE_CONFIG_H
16127
16128 ac_libobjs=
16129 ac_ltlibobjs=
16130 U=
16131 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16132 # 1. Remove the extension, and $U if already installed.
16133 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16134 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16135 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16136 # will be set to the directory where LIBOBJS objects are built.
16137 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16138 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16139 done
16140 LIBOBJS=$ac_libobjs
16141
16142 LTLIBOBJS=$ac_ltlibobjs
16143
16144
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16146 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16147 if test -n "$am_sleep_pid"; then
16148 # Hide warnings about reused PIDs.
16149 wait $am_sleep_pid 2>/dev/null
16150 fi
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16152 $as_echo "done" >&6; }
16153 if test -n "$EXEEXT"; then
16154 am__EXEEXT_TRUE=
16155 am__EXEEXT_FALSE='#'
16156 else
16157 am__EXEEXT_TRUE='#'
16158 am__EXEEXT_FALSE=
16159 fi
16160
16161 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16162 as_fn_error $? "conditional \"AMDEP\" was never defined.
16163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16164 fi
16165 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16166 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16168 fi
16169 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
16170 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
16171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16172 fi
16173 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
16174 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
16175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16176 fi
16177 LT_CONFIG_H=courier_auth_config.h
16178
16179 _ltdl_libobjs=
16180 _ltdl_ltlibobjs=
16181 if test -n "$_LT_LIBOBJS"; then
16182 # Remove the extension.
16183 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
16184 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
16185 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
16186 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
16187 done
16188 fi
16189 ltdl_LIBOBJS=$_ltdl_libobjs
16190
16191 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
16192
16193
16194 if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
16195 as_fn_error $? "conditional \"HAVE_LDAP\" was never defined.
16196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16197 fi
16198 if test -z "${HAVE_AUTHPGSQL_TRUE}" && test -z "${HAVE_AUTHPGSQL_FALSE}"; then
16199 as_fn_error $? "conditional \"HAVE_AUTHPGSQL\" was never defined.
16200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16201 fi
16202 if test -z "${HAVE_AUTHMYSQL_TRUE}" && test -z "${HAVE_AUTHMYSQL_FALSE}"; then
16203 as_fn_error $? "conditional \"HAVE_AUTHMYSQL\" was never defined.
16204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16205 fi
16206 if test -z "${HAVE_AUTHSQLITE_TRUE}" && test -z "${HAVE_AUTHSQLITE_FALSE}"; then
16207 as_fn_error $? "conditional \"HAVE_AUTHSQLITE\" was never defined.
16208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16209 fi
16210 if test -z "${HAVE_CUSTOM_TRUE}" && test -z "${HAVE_CUSTOM_FALSE}"; then
16211 as_fn_error $? "conditional \"HAVE_CUSTOM\" was never defined.
16212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16213 fi
16214 if test -z "${HAVE_PIPE_TRUE}" && test -z "${HAVE_PIPE_FALSE}"; then
16215 as_fn_error $? "conditional \"HAVE_PIPE\" was never defined.
16216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16217 fi
16218 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
16219 as_fn_error $? "conditional \"HAVE_SGML\" was never defined.
16220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16221 fi
16222
16223 : "${CONFIG_STATUS=./config.status}"
16224 ac_write_fail=0
16225 ac_clean_files_save=$ac_clean_files
16226 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16228 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16229 as_write_fail=0
16230 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16231 #! $SHELL
16232 # Generated by $as_me.
16233 # Run this file to recreate the current configuration.
16234 # Compiler output produced by configure, useful for debugging
16235 # configure, is in config.log if it exists.
16236
16237 debug=false
16238 ac_cs_recheck=false
16239 ac_cs_silent=false
16240
16241 SHELL=\${CONFIG_SHELL-$SHELL}
16242 export SHELL
16243 _ASEOF
16244 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16245 ## -------------------- ##
16246 ## M4sh Initialization. ##
16247 ## -------------------- ##
16248
16249 # Be more Bourne compatible
16250 DUALCASE=1; export DUALCASE # for MKS sh
16251 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16252 emulate sh
16253 NULLCMD=:
16254 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16255 # is contrary to our usage. Disable this feature.
16256 alias -g '${1+"$@"}'='"$@"'
16257 setopt NO_GLOB_SUBST
16258 else
16259 case `(set -o) 2>/dev/null` in #(
16260 *posix*) :
16261 set -o posix ;; #(
16262 *) :
16263 ;;
16264 esac
16265 fi
16266
16267
16268 as_nl='
16269 '
16270 export as_nl
16271 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16272 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16273 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16274 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16275 # Prefer a ksh shell builtin over an external printf program on Solaris,
16276 # but without wasting forks for bash or zsh.
16277 if test -z "$BASH_VERSION$ZSH_VERSION" \
16278 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16279 as_echo='print -r --'
16280 as_echo_n='print -rn --'
16281 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16282 as_echo='printf %s\n'
16283 as_echo_n='printf %s'
16284 else
16285 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16286 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16287 as_echo_n='/usr/ucb/echo -n'
16288 else
16289 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16290 as_echo_n_body='eval
16291 arg=$1;
16292 case $arg in #(
16293 *"$as_nl"*)
16294 expr "X$arg" : "X\\(.*\\)$as_nl";
16295 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16296 esac;
16297 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16298 '
16299 export as_echo_n_body
16300 as_echo_n='sh -c $as_echo_n_body as_echo'
16301 fi
16302 export as_echo_body
16303 as_echo='sh -c $as_echo_body as_echo'
16304 fi
16305
16306 # The user is always right.
16307 if test "${PATH_SEPARATOR+set}" != set; then
16308 PATH_SEPARATOR=:
16309 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16310 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16311 PATH_SEPARATOR=';'
16312 }
16313 fi
16314
16315
16316 # IFS
16317 # We need space, tab and new line, in precisely that order. Quoting is
16318 # there to prevent editors from complaining about space-tab.
16319 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16320 # splitting by setting IFS to empty value.)
16321 IFS=" "" $as_nl"
16322
16323 # Find who we are. Look in the path if we contain no directory separator.
16324 as_myself=
16325 case $0 in #((
16326 *[\\/]* ) as_myself=$0 ;;
16327 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16328 for as_dir in $PATH
16329 do
16330 IFS=$as_save_IFS
16331 test -z "$as_dir" && as_dir=.
16332 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16333 done
16334 IFS=$as_save_IFS
16335
16336 ;;
16337 esac
16338 # We did not find ourselves, most probably we were run as `sh COMMAND'
16339 # in which case we are not to be found in the path.
16340 if test "x$as_myself" = x; then
16341 as_myself=$0
16342 fi
16343 if test ! -f "$as_myself"; then
16344 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16345 exit 1
16346 fi
16347
16348 # Unset variables that we do not need and which cause bugs (e.g. in
16349 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16350 # suppresses any "Segmentation fault" message there. '((' could
16351 # trigger a bug in pdksh 5.2.14.
16352 for as_var in BASH_ENV ENV MAIL MAILPATH
16353 do eval test x\${$as_var+set} = xset \
16354 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16355 done
16356 PS1='$ '
16357 PS2='> '
16358 PS4='+ '
16359
16360 # NLS nuisances.
16361 LC_ALL=C
16362 export LC_ALL
16363 LANGUAGE=C
16364 export LANGUAGE
16365
16366 # CDPATH.
16367 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16368
16369
16370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16371 # ----------------------------------------
16372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16374 # script with STATUS, using 1 if that was 0.
16375 as_fn_error ()
16376 {
16377 as_status=$1; test $as_status -eq 0 && as_status=1
16378 if test "$4"; then
16379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16381 fi
16382 $as_echo "$as_me: error: $2" >&2
16383 as_fn_exit $as_status
16384 } # as_fn_error
16385
16386
16387 # as_fn_set_status STATUS
16388 # -----------------------
16389 # Set $? to STATUS, without forking.
16390 as_fn_set_status ()
16391 {
16392 return $1
16393 } # as_fn_set_status
16394
16395 # as_fn_exit STATUS
16396 # -----------------
16397 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16398 as_fn_exit ()
16399 {
16400 set +e
16401 as_fn_set_status $1
16402 exit $1
16403 } # as_fn_exit
16404
16405 # as_fn_unset VAR
16406 # ---------------
16407 # Portably unset VAR.
16408 as_fn_unset ()
16409 {
16410 { eval $1=; unset $1;}
16411 }
16412 as_unset=as_fn_unset
16413 # as_fn_append VAR VALUE
16414 # ----------------------
16415 # Append the text in VALUE to the end of the definition contained in VAR. Take
16416 # advantage of any shell optimizations that allow amortized linear growth over
16417 # repeated appends, instead of the typical quadratic growth present in naive
16418 # implementations.
16419 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16420 eval 'as_fn_append ()
16421 {
16422 eval $1+=\$2
16423 }'
16424 else
16425 as_fn_append ()
16426 {
16427 eval $1=\$$1\$2
16428 }
16429 fi # as_fn_append
16430
16431 # as_fn_arith ARG...
16432 # ------------------
16433 # Perform arithmetic evaluation on the ARGs, and store the result in the
16434 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16435 # must be portable across $(()) and expr.
16436 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16437 eval 'as_fn_arith ()
16438 {
16439 as_val=$(( $* ))
16440 }'
16441 else
16442 as_fn_arith ()
16443 {
16444 as_val=`expr "$@" || test $? -eq 1`
16445 }
16446 fi # as_fn_arith
16447
16448
16449 if expr a : '\(a\)' >/dev/null 2>&1 &&
16450 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16451 as_expr=expr
16452 else
16453 as_expr=false
16454 fi
16455
16456 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16457 as_basename=basename
16458 else
16459 as_basename=false
16460 fi
16461
16462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16463 as_dirname=dirname
16464 else
16465 as_dirname=false
16466 fi
16467
16468 as_me=`$as_basename -- "$0" ||
16469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16470 X"$0" : 'X\(//\)$' \| \
16471 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16472 $as_echo X/"$0" |
16473 sed '/^.*\/\([^/][^/]*\)\/*$/{
16474 s//\1/
16475 q
16476 }
16477 /^X\/\(\/\/\)$/{
16478 s//\1/
16479 q
16480 }
16481 /^X\/\(\/\).*/{
16482 s//\1/
16483 q
16484 }
16485 s/.*/./; q'`
16486
16487 # Avoid depending upon Character Ranges.
16488 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16489 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16490 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16491 as_cr_digits='0123456789'
16492 as_cr_alnum=$as_cr_Letters$as_cr_digits
16493
16494 ECHO_C= ECHO_N= ECHO_T=
16495 case `echo -n x` in #(((((
16496 -n*)
16497 case `echo 'xy\c'` in
16498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16499 xy) ECHO_C='\c';;
16500 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16501 ECHO_T=' ';;
16502 esac;;
16503 *)
16504 ECHO_N='-n';;
16505 esac
16506
16507 rm -f conf$$ conf$$.exe conf$$.file
16508 if test -d conf$$.dir; then
16509 rm -f conf$$.dir/conf$$.file
16510 else
16511 rm -f conf$$.dir
16512 mkdir conf$$.dir 2>/dev/null
16513 fi
16514 if (echo >conf$$.file) 2>/dev/null; then
16515 if ln -s conf$$.file conf$$ 2>/dev/null; then
16516 as_ln_s='ln -s'
16517 # ... but there are two gotchas:
16518 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16519 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16520 # In both cases, we have to default to `cp -pR'.
16521 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16522 as_ln_s='cp -pR'
16523 elif ln conf$$.file conf$$ 2>/dev/null; then
16524 as_ln_s=ln
16525 else
16526 as_ln_s='cp -pR'
16527 fi
16528 else
16529 as_ln_s='cp -pR'
16530 fi
16531 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16532 rmdir conf$$.dir 2>/dev/null
16533
16534
16535 # as_fn_mkdir_p
16536 # -------------
16537 # Create "$as_dir" as a directory, including parents if necessary.
16538 as_fn_mkdir_p ()
16539 {
16540
16541 case $as_dir in #(
16542 -*) as_dir=./$as_dir;;
16543 esac
16544 test -d "$as_dir" || eval $as_mkdir_p || {
16545 as_dirs=
16546 while :; do
16547 case $as_dir in #(
16548 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16549 *) as_qdir=$as_dir;;
16550 esac
16551 as_dirs="'$as_qdir' $as_dirs"
16552 as_dir=`$as_dirname -- "$as_dir" ||
16553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16554 X"$as_dir" : 'X\(//\)[^/]' \| \
16555 X"$as_dir" : 'X\(//\)$' \| \
16556 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16557 $as_echo X"$as_dir" |
16558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16559 s//\1/
16560 q
16561 }
16562 /^X\(\/\/\)[^/].*/{
16563 s//\1/
16564 q
16565 }
16566 /^X\(\/\/\)$/{
16567 s//\1/
16568 q
16569 }
16570 /^X\(\/\).*/{
16571 s//\1/
16572 q
16573 }
16574 s/.*/./; q'`
16575 test -d "$as_dir" && break
16576 done
16577 test -z "$as_dirs" || eval "mkdir $as_dirs"
16578 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16579
16580
16581 } # as_fn_mkdir_p
16582 if mkdir -p . 2>/dev/null; then
16583 as_mkdir_p='mkdir -p "$as_dir"'
16584 else
16585 test -d ./-p && rmdir ./-p
16586 as_mkdir_p=false
16587 fi
16588
16589
16590 # as_fn_executable_p FILE
16591 # -----------------------
16592 # Test if FILE is an executable regular file.
16593 as_fn_executable_p ()
16594 {
16595 test -f "$1" && test -x "$1"
16596 } # as_fn_executable_p
16597 as_test_x='test -x'
16598 as_executable_p=as_fn_executable_p
16599
16600 # Sed expression to map a string onto a valid CPP name.
16601 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16602
16603 # Sed expression to map a string onto a valid variable name.
16604 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16605
16606
16607 exec 6>&1
16608 ## ----------------------------------- ##
16609 ## Main body of $CONFIG_STATUS script. ##
16610 ## ----------------------------------- ##
16611 _ASEOF
16612 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16613
16614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16615 # Save the log message, to keep $0 and so on meaningful, and to
16616 # report actual input values of CONFIG_FILES etc. instead of their
16617 # values after options handling.
16618 ac_log="
16619 This file was extended by courier-authlib $as_me 0.66.4, which was
16620 generated by GNU Autoconf 2.69. Invocation command line was
16621
16622 CONFIG_FILES = $CONFIG_FILES
16623 CONFIG_HEADERS = $CONFIG_HEADERS
16624 CONFIG_LINKS = $CONFIG_LINKS
16625 CONFIG_COMMANDS = $CONFIG_COMMANDS
16626 $ $0 $@
16627
16628 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16629 "
16630
16631 _ACEOF
16632
16633 case $ac_config_files in *"
16634 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16635 esac
16636
16637 case $ac_config_headers in *"
16638 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16639 esac
16640
16641
16642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16643 # Files that config.status was made for.
16644 config_files="$ac_config_files"
16645 config_headers="$ac_config_headers"
16646 config_commands="$ac_config_commands"
16647
16648 _ACEOF
16649
16650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16651 ac_cs_usage="\
16652 \`$as_me' instantiates files and other configuration actions
16653 from templates according to the current configuration. Unless the files
16654 and actions are specified as TAGs, all are instantiated by default.
16655
16656 Usage: $0 [OPTION]... [TAG]...
16657
16658 -h, --help print this help, then exit
16659 -V, --version print version number and configuration settings, then exit
16660 --config print configuration, then exit
16661 -q, --quiet, --silent
16662 do not print progress messages
16663 -d, --debug don't remove temporary files
16664 --recheck update $as_me by reconfiguring in the same conditions
16665 --file=FILE[:TEMPLATE]
16666 instantiate the configuration file FILE
16667 --header=FILE[:TEMPLATE]
16668 instantiate the configuration header FILE
16669
16670 Configuration files:
16671 $config_files
16672
16673 Configuration headers:
16674 $config_headers
16675
16676 Configuration commands:
16677 $config_commands
16678
16679 Report bugs to <courier-users@lists.sourceforge.net>."
16680
16681 _ACEOF
16682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16683 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16684 ac_cs_version="\\
16685 courier-authlib config.status 0.66.4
16686 configured by $0, generated by GNU Autoconf 2.69,
16687 with options \\"\$ac_cs_config\\"
16688
16689 Copyright (C) 2012 Free Software Foundation, Inc.
16690 This config.status script is free software; the Free Software Foundation
16691 gives unlimited permission to copy, distribute and modify it."
16692
16693 ac_pwd='$ac_pwd'
16694 srcdir='$srcdir'
16695 INSTALL='$INSTALL'
16696 MKDIR_P='$MKDIR_P'
16697 AWK='$AWK'
16698 test -n "\$AWK" || AWK=awk
16699 _ACEOF
16700
16701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16702 # The default lists apply if the user does not specify any file.
16703 ac_need_defaults=:
16704 while test $# != 0
16705 do
16706 case $1 in
16707 --*=?*)
16708 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16709 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16710 ac_shift=:
16711 ;;
16712 --*=)
16713 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16714 ac_optarg=
16715 ac_shift=:
16716 ;;
16717 *)
16718 ac_option=$1
16719 ac_optarg=$2
16720 ac_shift=shift
16721 ;;
16722 esac
16723
16724 case $ac_option in
16725 # Handling of the options.
16726 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16727 ac_cs_recheck=: ;;
16728 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16729 $as_echo "$ac_cs_version"; exit ;;
16730 --config | --confi | --conf | --con | --co | --c )
16731 $as_echo "$ac_cs_config"; exit ;;
16732 --debug | --debu | --deb | --de | --d | -d )
16733 debug=: ;;
16734 --file | --fil | --fi | --f )
16735 $ac_shift
16736 case $ac_optarg in
16737 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16738 '') as_fn_error $? "missing file argument" ;;
16739 esac
16740 as_fn_append CONFIG_FILES " '$ac_optarg'"
16741 ac_need_defaults=false;;
16742 --header | --heade | --head | --hea )
16743 $ac_shift
16744 case $ac_optarg in
16745 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16746 esac
16747 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16748 ac_need_defaults=false;;
16749 --he | --h)
16750 # Conflict between --help and --header
16751 as_fn_error $? "ambiguous option: \`$1'
16752 Try \`$0 --help' for more information.";;
16753 --help | --hel | -h )
16754 $as_echo "$ac_cs_usage"; exit ;;
16755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16756 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16757 ac_cs_silent=: ;;
16758
16759 # This is an error.
16760 -*) as_fn_error $? "unrecognized option: \`$1'
16761 Try \`$0 --help' for more information." ;;
16762
16763 *) as_fn_append ac_config_targets " $1"
16764 ac_need_defaults=false ;;
16765
16766 esac
16767 shift
16768 done
16769
16770 ac_configure_extra_args=
16771
16772 if $ac_cs_silent; then
16773 exec 6>/dev/null
16774 ac_configure_extra_args="$ac_configure_extra_args --silent"
16775 fi
16776
16777 _ACEOF
16778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16779 if \$ac_cs_recheck; then
16780 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16781 shift
16782 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16783 CONFIG_SHELL='$SHELL'
16784 export CONFIG_SHELL
16785 exec "\$@"
16786 fi
16787
16788 _ACEOF
16789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16790 exec 5>>config.log
16791 {
16792 echo
16793 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16794 ## Running $as_me. ##
16795 _ASBOX
16796 $as_echo "$ac_log"
16797 } >&5
16798
16799 _ACEOF
16800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16801 #
16802 # INIT-COMMANDS
16803 #
16804 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16805
16806
16807 # The HP-UX ksh and POSIX shell print the target directory to stdout
16808 # if CDPATH is set.
16809 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16810
16811 sed_quote_subst='$sed_quote_subst'
16812 double_quote_subst='$double_quote_subst'
16813 delay_variable_subst='$delay_variable_subst'
16814 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16815 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16816 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16817 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16818 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16819 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16820 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16821 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16822 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16823 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16824 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16825 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16826 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16827 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16828 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16829 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16830 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16831 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16832 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16833 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16834 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16835 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16836 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16837 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16838 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16839 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16840 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16841 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16842 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16843 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16844 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16845 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16846 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16847 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16848 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16849 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16850 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16851 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16852 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16853 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16854 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16855 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16856 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16857 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16858 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16859 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16860 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16861 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16862 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16863 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16864 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16865 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16866 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16867 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16868 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16869 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16870 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16871 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16872 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"`'
16873 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16874 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16875 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16876 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16877 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16878 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16879 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16880 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16881 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16882 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16883 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16884 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16885 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16886 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16887 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16888 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16889 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16890 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16891 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16892 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16893 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16894 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16895 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16896 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16897 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16898 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16899 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16900 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16901 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16902 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16903 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16904 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16905 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16906 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16907 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16908 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16909 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16910 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16911 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16912 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16913 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16914 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16915 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16916 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16917 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16918 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16919 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16920 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16921 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16922 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16923 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16924 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16925 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16926 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16927 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16928 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16929 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16930 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16931 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16932 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16933 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16934 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16935 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16936 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16937 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16938 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16939 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16940 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16941 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16942 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16943 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16944 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16945 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16946 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16947 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16948 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16949
16950 LTCC='$LTCC'
16951 LTCFLAGS='$LTCFLAGS'
16952 compiler='$compiler_DEFAULT'
16953
16954 # A function that is used when there is no print builtin or printf.
16955 func_fallback_echo ()
16956 {
16957 eval 'cat <<_LTECHO_EOF
16958 \$1
16959 _LTECHO_EOF'
16960 }
16961
16962 # Quote evaled strings.
16963 for var in SHELL \
16964 ECHO \
16965 PATH_SEPARATOR \
16966 SED \
16967 GREP \
16968 EGREP \
16969 FGREP \
16970 LD \
16971 NM \
16972 LN_S \
16973 lt_SP2NL \
16974 lt_NL2SP \
16975 reload_flag \
16976 OBJDUMP \
16977 deplibs_check_method \
16978 file_magic_cmd \
16979 file_magic_glob \
16980 want_nocaseglob \
16981 DLLTOOL \
16982 sharedlib_from_linklib_cmd \
16983 AR \
16984 AR_FLAGS \
16985 archiver_list_spec \
16986 STRIP \
16987 RANLIB \
16988 CC \
16989 CFLAGS \
16990 compiler \
16991 lt_cv_sys_global_symbol_pipe \
16992 lt_cv_sys_global_symbol_to_cdecl \
16993 lt_cv_sys_global_symbol_to_import \
16994 lt_cv_sys_global_symbol_to_c_name_address \
16995 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16996 lt_cv_nm_interface \
16997 nm_file_list_spec \
16998 lt_cv_truncate_bin \
16999 lt_prog_compiler_no_builtin_flag \
17000 lt_prog_compiler_pic \
17001 lt_prog_compiler_wl \
17002 lt_prog_compiler_static \
17003 lt_cv_prog_compiler_c_o \
17004 need_locks \
17005 MANIFEST_TOOL \
17006 DSYMUTIL \
17007 NMEDIT \
17008 LIPO \
17009 OTOOL \
17010 OTOOL64 \
17011 shrext_cmds \
17012 export_dynamic_flag_spec \
17013 whole_archive_flag_spec \
17014 compiler_needs_object \
17015 with_gnu_ld \
17016 allow_undefined_flag \
17017 no_undefined_flag \
17018 hardcode_libdir_flag_spec \
17019 hardcode_libdir_separator \
17020 exclude_expsyms \
17021 include_expsyms \
17022 file_list_spec \
17023 variables_saved_for_relink \
17024 libname_spec \
17025 library_names_spec \
17026 soname_spec \
17027 install_override_mode \
17028 finish_eval \
17029 old_striplib \
17030 striplib; do
17031 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17032 *[\\\\\\\`\\"\\\$]*)
17033 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17034 ;;
17035 *)
17036 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17037 ;;
17038 esac
17039 done
17040
17041 # Double-quote double-evaled strings.
17042 for var in reload_cmds \
17043 old_postinstall_cmds \
17044 old_postuninstall_cmds \
17045 old_archive_cmds \
17046 extract_expsyms_cmds \
17047 old_archive_from_new_cmds \
17048 old_archive_from_expsyms_cmds \
17049 archive_cmds \
17050 archive_expsym_cmds \
17051 module_cmds \
17052 module_expsym_cmds \
17053 export_symbols_cmds \
17054 prelink_cmds \
17055 postlink_cmds \
17056 postinstall_cmds \
17057 postuninstall_cmds \
17058 finish_cmds \
17059 sys_lib_search_path_spec \
17060 configure_time_dlsearch_path \
17061 configure_time_lt_sys_library_path; do
17062 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17063 *[\\\\\\\`\\"\\\$]*)
17064 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17065 ;;
17066 *)
17067 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17068 ;;
17069 esac
17070 done
17071
17072 ac_aux_dir='$ac_aux_dir'
17073
17074 # See if we are running on zsh, and set the options that allow our
17075 # commands through without removal of \ escapes INIT.
17076 if test -n "\${ZSH_VERSION+set}"; then
17077 setopt NO_GLOB_SUBST
17078 fi
17079
17080
17081 PACKAGE='$PACKAGE'
17082 VERSION='$VERSION'
17083 RM='$RM'
17084 ofile='$ofile'
17085
17086
17087
17088
17089 _ACEOF
17090
17091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17092
17093 # Handling of arguments.
17094 for ac_config_target in $ac_config_targets
17095 do
17096 case $ac_config_target in
17097 "courier_auth_config.h") CONFIG_HEADERS="$CONFIG_HEADERS courier_auth_config.h" ;;
17098 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17099 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17100 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17101 "authdaemond") CONFIG_FILES="$CONFIG_FILES authdaemond" ;;
17102 "authdaemonrc") CONFIG_FILES="$CONFIG_FILES authdaemonrc" ;;
17103 "authsystem.passwd") CONFIG_FILES="$CONFIG_FILES authsystem.passwd" ;;
17104 "README.authdebug.html") CONFIG_FILES="$CONFIG_FILES README.authdebug.html" ;;
17105 "dbobj.config") CONFIG_FILES="$CONFIG_FILES dbobj.config" ;;
17106 "dbobj.h") CONFIG_FILES="$CONFIG_FILES dbobj.h" ;;
17107 "authmigrate") CONFIG_FILES="$CONFIG_FILES authmigrate" ;;
17108 "courier-authlib.spec") CONFIG_FILES="$CONFIG_FILES courier-authlib.spec" ;;
17109 "courier-authlib.lpspec") CONFIG_FILES="$CONFIG_FILES courier-authlib.lpspec" ;;
17110 "courier-authlib.sysvinit") CONFIG_FILES="$CONFIG_FILES courier-authlib.sysvinit" ;;
17111 "courier-authlib.service") CONFIG_FILES="$CONFIG_FILES courier-authlib.service" ;;
17112 "userdb-test-cram-md5.pl") CONFIG_FILES="$CONFIG_FILES userdb-test-cram-md5.pl" ;;
17113
17114 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17115 esac
17116 done
17117
17118
17119 # If the user did not use the arguments to specify the items to instantiate,
17120 # then the envvar interface is used. Set only those that are not.
17121 # We use the long form for the default assignment because of an extremely
17122 # bizarre bug on SunOS 4.1.3.
17123 if $ac_need_defaults; then
17124 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17125 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17126 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17127 fi
17128
17129 # Have a temporary directory for convenience. Make it in the build tree
17130 # simply because there is no reason against having it here, and in addition,
17131 # creating and moving files from /tmp can sometimes cause problems.
17132 # Hook for its removal unless debugging.
17133 # Note that there is a small window in which the directory will not be cleaned:
17134 # after its creation but before its name has been assigned to `$tmp'.
17135 $debug ||
17136 {
17137 tmp= ac_tmp=
17138 trap 'exit_status=$?
17139 : "${ac_tmp:=$tmp}"
17140 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17141 ' 0
17142 trap 'as_fn_exit 1' 1 2 13 15
17143 }
17144 # Create a (secure) tmp directory for tmp files.
17145
17146 {
17147 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17148 test -d "$tmp"
17149 } ||
17150 {
17151 tmp=./conf$$-$RANDOM
17152 (umask 077 && mkdir "$tmp")
17153 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17154 ac_tmp=$tmp
17155
17156 # Set up the scripts for CONFIG_FILES section.
17157 # No need to generate them if there are no CONFIG_FILES.
17158 # This happens for instance with `./config.status config.h'.
17159 if test -n "$CONFIG_FILES"; then
17160
17161
17162 ac_cr=`echo X | tr X '\015'`
17163 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17164 # But we know of no other shell where ac_cr would be empty at this
17165 # point, so we can use a bashism as a fallback.
17166 if test "x$ac_cr" = x; then
17167 eval ac_cr=\$\'\\r\'
17168 fi
17169 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17170 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17171 ac_cs_awk_cr='\\r'
17172 else
17173 ac_cs_awk_cr=$ac_cr
17174 fi
17175
17176 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17177 _ACEOF
17178
17179
17180 {
17181 echo "cat >conf$$subs.awk <<_ACEOF" &&
17182 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17183 echo "_ACEOF"
17184 } >conf$$subs.sh ||
17185 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17186 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17187 ac_delim='%!_!# '
17188 for ac_last_try in false false false false false :; do
17189 . ./conf$$subs.sh ||
17190 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17191
17192 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17193 if test $ac_delim_n = $ac_delim_num; then
17194 break
17195 elif $ac_last_try; then
17196 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17197 else
17198 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17199 fi
17200 done
17201 rm -f conf$$subs.sh
17202
17203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17204 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17205 _ACEOF
17206 sed -n '
17207 h
17208 s/^/S["/; s/!.*/"]=/
17209 p
17210 g
17211 s/^[^!]*!//
17212 :repl
17213 t repl
17214 s/'"$ac_delim"'$//
17215 t delim
17216 :nl
17217 h
17218 s/\(.\{148\}\)..*/\1/
17219 t more1
17220 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17221 p
17222 n
17223 b repl
17224 :more1
17225 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17226 p
17227 g
17228 s/.\{148\}//
17229 t nl
17230 :delim
17231 h
17232 s/\(.\{148\}\)..*/\1/
17233 t more2
17234 s/["\\]/\\&/g; s/^/"/; s/$/"/
17235 p
17236 b
17237 :more2
17238 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17239 p
17240 g
17241 s/.\{148\}//
17242 t delim
17243 ' <conf$$subs.awk | sed '
17244 /^[^""]/{
17245 N
17246 s/\n//
17247 }
17248 ' >>$CONFIG_STATUS || ac_write_fail=1
17249 rm -f conf$$subs.awk
17250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17251 _ACAWK
17252 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17253 for (key in S) S_is_set[key] = 1
17254 FS = "\a"
17255
17256 }
17257 {
17258 line = $ 0
17259 nfields = split(line, field, "@")
17260 substed = 0
17261 len = length(field[1])
17262 for (i = 2; i < nfields; i++) {
17263 key = field[i]
17264 keylen = length(key)
17265 if (S_is_set[key]) {
17266 value = S[key]
17267 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17268 len += length(value) + length(field[++i])
17269 substed = 1
17270 } else
17271 len += 1 + keylen
17272 }
17273
17274 print line
17275 }
17276
17277 _ACAWK
17278 _ACEOF
17279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17280 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17281 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17282 else
17283 cat
17284 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17285 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17286 _ACEOF
17287
17288 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17289 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17290 # trailing colons and then remove the whole line if VPATH becomes empty
17291 # (actually we leave an empty line to preserve line numbers).
17292 if test "x$srcdir" = x.; then
17293 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17294 h
17295 s///
17296 s/^/:/
17297 s/[ ]*$/:/
17298 s/:\$(srcdir):/:/g
17299 s/:\${srcdir}:/:/g
17300 s/:@srcdir@:/:/g
17301 s/^:*//
17302 s/:*$//
17303 x
17304 s/\(=[ ]*\).*/\1/
17305 G
17306 s/\n//
17307 s/^[^=]*=[ ]*$//
17308 }'
17309 fi
17310
17311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17312 fi # test -n "$CONFIG_FILES"
17313
17314 # Set up the scripts for CONFIG_HEADERS section.
17315 # No need to generate them if there are no CONFIG_HEADERS.
17316 # This happens for instance with `./config.status Makefile'.
17317 if test -n "$CONFIG_HEADERS"; then
17318 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17319 BEGIN {
17320 _ACEOF
17321
17322 # Transform confdefs.h into an awk script `defines.awk', embedded as
17323 # here-document in config.status, that substitutes the proper values into
17324 # config.h.in to produce config.h.
17325
17326 # Create a delimiter string that does not exist in confdefs.h, to ease
17327 # handling of long lines.
17328 ac_delim='%!_!# '
17329 for ac_last_try in false false :; do
17330 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17331 if test -z "$ac_tt"; then
17332 break
17333 elif $ac_last_try; then
17334 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17335 else
17336 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17337 fi
17338 done
17339
17340 # For the awk script, D is an array of macro values keyed by name,
17341 # likewise P contains macro parameters if any. Preserve backslash
17342 # newline sequences.
17343
17344 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17345 sed -n '
17346 s/.\{148\}/&'"$ac_delim"'/g
17347 t rset
17348 :rset
17349 s/^[ ]*#[ ]*define[ ][ ]*/ /
17350 t def
17351 d
17352 :def
17353 s/\\$//
17354 t bsnl
17355 s/["\\]/\\&/g
17356 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17357 D["\1"]=" \3"/p
17358 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17359 d
17360 :bsnl
17361 s/["\\]/\\&/g
17362 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17363 D["\1"]=" \3\\\\\\n"\\/p
17364 t cont
17365 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17366 t cont
17367 d
17368 :cont
17369 n
17370 s/.\{148\}/&'"$ac_delim"'/g
17371 t clear
17372 :clear
17373 s/\\$//
17374 t bsnlc
17375 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17376 d
17377 :bsnlc
17378 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17379 b cont
17380 ' <confdefs.h | sed '
17381 s/'"$ac_delim"'/"\\\
17382 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17383
17384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17385 for (key in D) D_is_set[key] = 1
17386 FS = "\a"
17387 }
17388 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17389 line = \$ 0
17390 split(line, arg, " ")
17391 if (arg[1] == "#") {
17392 defundef = arg[2]
17393 mac1 = arg[3]
17394 } else {
17395 defundef = substr(arg[1], 2)
17396 mac1 = arg[2]
17397 }
17398 split(mac1, mac2, "(") #)
17399 macro = mac2[1]
17400 prefix = substr(line, 1, index(line, defundef) - 1)
17401 if (D_is_set[macro]) {
17402 # Preserve the white space surrounding the "#".
17403 print prefix "define", macro P[macro] D[macro]
17404 next
17405 } else {
17406 # Replace #undef with comments. This is necessary, for example,
17407 # in the case of _POSIX_SOURCE, which is predefined and required
17408 # on some systems where configure will not decide to define it.
17409 if (defundef == "undef") {
17410 print "/*", prefix defundef, macro, "*/"
17411 next
17412 }
17413 }
17414 }
17415 { print }
17416 _ACAWK
17417 _ACEOF
17418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17419 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17420 fi # test -n "$CONFIG_HEADERS"
17421
17422
17423 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17424 shift
17425 for ac_tag
17426 do
17427 case $ac_tag in
17428 :[FHLC]) ac_mode=$ac_tag; continue;;
17429 esac
17430 case $ac_mode$ac_tag in
17431 :[FHL]*:*);;
17432 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17433 :[FH]-) ac_tag=-:-;;
17434 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17435 esac
17436 ac_save_IFS=$IFS
17437 IFS=:
17438 set x $ac_tag
17439 IFS=$ac_save_IFS
17440 shift
17441 ac_file=$1
17442 shift
17443
17444 case $ac_mode in
17445 :L) ac_source=$1;;
17446 :[FH])
17447 ac_file_inputs=
17448 for ac_f
17449 do
17450 case $ac_f in
17451 -) ac_f="$ac_tmp/stdin";;
17452 *) # Look for the file first in the build tree, then in the source tree
17453 # (if the path is not absolute). The absolute path cannot be DOS-style,
17454 # because $ac_f cannot contain `:'.
17455 test -f "$ac_f" ||
17456 case $ac_f in
17457 [\\/$]*) false;;
17458 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17459 esac ||
17460 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17461 esac
17462 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17463 as_fn_append ac_file_inputs " '$ac_f'"
17464 done
17465
17466 # Let's still pretend it is `configure' which instantiates (i.e., don't
17467 # use $as_me), people would be surprised to read:
17468 # /* config.h. Generated by config.status. */
17469 configure_input='Generated from '`
17470 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17471 `' by configure.'
17472 if test x"$ac_file" != x-; then
17473 configure_input="$ac_file. $configure_input"
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17475 $as_echo "$as_me: creating $ac_file" >&6;}
17476 fi
17477 # Neutralize special characters interpreted by sed in replacement strings.
17478 case $configure_input in #(
17479 *\&* | *\|* | *\\* )
17480 ac_sed_conf_input=`$as_echo "$configure_input" |
17481 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17482 *) ac_sed_conf_input=$configure_input;;
17483 esac
17484
17485 case $ac_tag in
17486 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17487 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17488 esac
17489 ;;
17490 esac
17491
17492 ac_dir=`$as_dirname -- "$ac_file" ||
17493 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17494 X"$ac_file" : 'X\(//\)[^/]' \| \
17495 X"$ac_file" : 'X\(//\)$' \| \
17496 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17497 $as_echo X"$ac_file" |
17498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17499 s//\1/
17500 q
17501 }
17502 /^X\(\/\/\)[^/].*/{
17503 s//\1/
17504 q
17505 }
17506 /^X\(\/\/\)$/{
17507 s//\1/
17508 q
17509 }
17510 /^X\(\/\).*/{
17511 s//\1/
17512 q
17513 }
17514 s/.*/./; q'`
17515 as_dir="$ac_dir"; as_fn_mkdir_p
17516 ac_builddir=.
17517
17518 case "$ac_dir" in
17519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17520 *)
17521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17522 # A ".." for each directory in $ac_dir_suffix.
17523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17524 case $ac_top_builddir_sub in
17525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17527 esac ;;
17528 esac
17529 ac_abs_top_builddir=$ac_pwd
17530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17531 # for backward compatibility:
17532 ac_top_builddir=$ac_top_build_prefix
17533
17534 case $srcdir in
17535 .) # We are building in place.
17536 ac_srcdir=.
17537 ac_top_srcdir=$ac_top_builddir_sub
17538 ac_abs_top_srcdir=$ac_pwd ;;
17539 [\\/]* | ?:[\\/]* ) # Absolute name.
17540 ac_srcdir=$srcdir$ac_dir_suffix;
17541 ac_top_srcdir=$srcdir
17542 ac_abs_top_srcdir=$srcdir ;;
17543 *) # Relative name.
17544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17545 ac_top_srcdir=$ac_top_build_prefix$srcdir
17546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17547 esac
17548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17549
17550
17551 case $ac_mode in
17552 :F)
17553 #
17554 # CONFIG_FILE
17555 #
17556
17557 case $INSTALL in
17558 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17559 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17560 esac
17561 ac_MKDIR_P=$MKDIR_P
17562 case $MKDIR_P in
17563 [\\/$]* | ?:[\\/]* ) ;;
17564 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17565 esac
17566 _ACEOF
17567
17568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17569 # If the template does not know about datarootdir, expand it.
17570 # FIXME: This hack should be removed a few years after 2.60.
17571 ac_datarootdir_hack=; ac_datarootdir_seen=
17572 ac_sed_dataroot='
17573 /datarootdir/ {
17574 p
17575 q
17576 }
17577 /@datadir@/p
17578 /@docdir@/p
17579 /@infodir@/p
17580 /@localedir@/p
17581 /@mandir@/p'
17582 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17583 *datarootdir*) ac_datarootdir_seen=yes;;
17584 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17586 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17587 _ACEOF
17588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17589 ac_datarootdir_hack='
17590 s&@datadir@&$datadir&g
17591 s&@docdir@&$docdir&g
17592 s&@infodir@&$infodir&g
17593 s&@localedir@&$localedir&g
17594 s&@mandir@&$mandir&g
17595 s&\\\${datarootdir}&$datarootdir&g' ;;
17596 esac
17597 _ACEOF
17598
17599 # Neutralize VPATH when `$srcdir' = `.'.
17600 # Shell code in configure.ac might set extrasub.
17601 # FIXME: do we really want to maintain this feature?
17602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17603 ac_sed_extra="$ac_vpsub
17604 $extrasub
17605 _ACEOF
17606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17607 :t
17608 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17609 s|@configure_input@|$ac_sed_conf_input|;t t
17610 s&@top_builddir@&$ac_top_builddir_sub&;t t
17611 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17612 s&@srcdir@&$ac_srcdir&;t t
17613 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17614 s&@top_srcdir@&$ac_top_srcdir&;t t
17615 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17616 s&@builddir@&$ac_builddir&;t t
17617 s&@abs_builddir@&$ac_abs_builddir&;t t
17618 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17619 s&@INSTALL@&$ac_INSTALL&;t t
17620 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17621 $ac_datarootdir_hack
17622 "
17623 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17624 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17625
17626 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17627 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17628 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17629 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17631 which seems to be undefined. Please make sure it is defined" >&5
17632 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17633 which seems to be undefined. Please make sure it is defined" >&2;}
17634
17635 rm -f "$ac_tmp/stdin"
17636 case $ac_file in
17637 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17638 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17639 esac \
17640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17641 ;;
17642 :H)
17643 #
17644 # CONFIG_HEADER
17645 #
17646 if test x"$ac_file" != x-; then
17647 {
17648 $as_echo "/* $configure_input */" \
17649 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17650 } >"$ac_tmp/config.h" \
17651 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17652 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17654 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17655 else
17656 rm -f "$ac_file"
17657 mv "$ac_tmp/config.h" "$ac_file" \
17658 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17659 fi
17660 else
17661 $as_echo "/* $configure_input */" \
17662 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17663 || as_fn_error $? "could not create -" "$LINENO" 5
17664 fi
17665 # Compute "$ac_file"'s index in $config_headers.
17666 _am_arg="$ac_file"
17667 _am_stamp_count=1
17668 for _am_header in $config_headers :; do
17669 case $_am_header in
17670 $_am_arg | $_am_arg:* )
17671 break ;;
17672 * )
17673 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17674 esac
17675 done
17676 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17677 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17678 X"$_am_arg" : 'X\(//\)[^/]' \| \
17679 X"$_am_arg" : 'X\(//\)$' \| \
17680 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17681 $as_echo X"$_am_arg" |
17682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17683 s//\1/
17684 q
17685 }
17686 /^X\(\/\/\)[^/].*/{
17687 s//\1/
17688 q
17689 }
17690 /^X\(\/\/\)$/{
17691 s//\1/
17692 q
17693 }
17694 /^X\(\/\).*/{
17695 s//\1/
17696 q
17697 }
17698 s/.*/./; q'`/stamp-h$_am_stamp_count
17699 ;;
17700
17701 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17702 $as_echo "$as_me: executing $ac_file commands" >&6;}
17703 ;;
17704 esac
17705
17706
17707 case $ac_file$ac_mode in
17708 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17709 # Older Autoconf quotes --file arguments for eval, but not when files
17710 # are listed without --file. Let's play safe and only enable the eval
17711 # if we detect the quoting.
17712 case $CONFIG_FILES in
17713 *\'*) eval set x "$CONFIG_FILES" ;;
17714 *) set x $CONFIG_FILES ;;
17715 esac
17716 shift
17717 for mf
17718 do
17719 # Strip MF so we end up with the name of the file.
17720 mf=`echo "$mf" | sed -e 's/:.*$//'`
17721 # Check whether this is an Automake generated Makefile or not.
17722 # We used to match only the files named 'Makefile.in', but
17723 # some people rename them; so instead we look at the file content.
17724 # Grep'ing the first line is not enough: some people post-process
17725 # each Makefile.in and add a new line on top of each file to say so.
17726 # Grep'ing the whole file is not good either: AIX grep has a line
17727 # limit of 2048, but all sed's we know have understand at least 4000.
17728 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17729 dirpart=`$as_dirname -- "$mf" ||
17730 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17731 X"$mf" : 'X\(//\)[^/]' \| \
17732 X"$mf" : 'X\(//\)$' \| \
17733 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17734 $as_echo X"$mf" |
17735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17736 s//\1/
17737 q
17738 }
17739 /^X\(\/\/\)[^/].*/{
17740 s//\1/
17741 q
17742 }
17743 /^X\(\/\/\)$/{
17744 s//\1/
17745 q
17746 }
17747 /^X\(\/\).*/{
17748 s//\1/
17749 q
17750 }
17751 s/.*/./; q'`
17752 else
17753 continue
17754 fi
17755 # Extract the definition of DEPDIR, am__include, and am__quote
17756 # from the Makefile without running 'make'.
17757 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17758 test -z "$DEPDIR" && continue
17759 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17760 test -z "$am__include" && continue
17761 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17762 # Find all dependency output files, they are included files with
17763 # $(DEPDIR) in their names. We invoke sed twice because it is the
17764 # simplest approach to changing $(DEPDIR) to its actual value in the
17765 # expansion.
17766 for file in `sed -n "
17767 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17768 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17769 # Make sure the directory exists.
17770 test -f "$dirpart/$file" && continue
17771 fdir=`$as_dirname -- "$file" ||
17772 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17773 X"$file" : 'X\(//\)[^/]' \| \
17774 X"$file" : 'X\(//\)$' \| \
17775 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17776 $as_echo X"$file" |
17777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17778 s//\1/
17779 q
17780 }
17781 /^X\(\/\/\)[^/].*/{
17782 s//\1/
17783 q
17784 }
17785 /^X\(\/\/\)$/{
17786 s//\1/
17787 q
17788 }
17789 /^X\(\/\).*/{
17790 s//\1/
17791 q
17792 }
17793 s/.*/./; q'`
17794 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17795 # echo "creating $dirpart/$file"
17796 echo '# dummy' > "$dirpart/$file"
17797 done
17798 done
17799 }
17800 ;;
17801 "libtool":C)
17802
17803 # See if we are running on zsh, and set the options that allow our
17804 # commands through without removal of \ escapes.
17805 if test -n "${ZSH_VERSION+set}"; then
17806 setopt NO_GLOB_SUBST
17807 fi
17808
17809 cfgfile=${ofile}T
17810 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17811 $RM "$cfgfile"
17812
17813 cat <<_LT_EOF >> "$cfgfile"
17814 #! $SHELL
17815 # Generated automatically by $as_me ($PACKAGE) $VERSION
17816 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17817 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17818
17819 # Provide generalized library-building support services.
17820 # Written by Gordon Matzigkeit, 1996
17821
17822 # Copyright (C) 2014 Free Software Foundation, Inc.
17823 # This is free software; see the source for copying conditions. There is NO
17824 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17825
17826 # GNU Libtool is free software; you can redistribute it and/or modify
17827 # it under the terms of the GNU General Public License as published by
17828 # the Free Software Foundation; either version 2 of of the License, or
17829 # (at your option) any later version.
17830 #
17831 # As a special exception to the GNU General Public License, if you
17832 # distribute this file as part of a program or library that is built
17833 # using GNU Libtool, you may include this file under the same
17834 # distribution terms that you use for the rest of that program.
17835 #
17836 # GNU Libtool is distributed in the hope that it will be useful, but
17837 # WITHOUT ANY WARRANTY; without even the implied warranty of
17838 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17839 # GNU General Public License for more details.
17840 #
17841 # You should have received a copy of the GNU General Public License
17842 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17843
17844
17845 # The names of the tagged configurations supported by this script.
17846 available_tags=''
17847
17848 # Configured defaults for sys_lib_dlsearch_path munging.
17849 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17850
17851 # ### BEGIN LIBTOOL CONFIG
17852
17853 # Which release of libtool.m4 was used?
17854 macro_version=$macro_version
17855 macro_revision=$macro_revision
17856
17857 # Whether or not to build shared libraries.
17858 build_libtool_libs=$enable_shared
17859
17860 # Whether or not to build static libraries.
17861 build_old_libs=$enable_static
17862
17863 # What type of objects to build.
17864 pic_mode=$pic_mode
17865
17866 # Whether or not to optimize for fast installation.
17867 fast_install=$enable_fast_install
17868
17869 # Shared archive member basename,for filename based shared library versioning on AIX.
17870 shared_archive_member_spec=$shared_archive_member_spec
17871
17872 # Shell to use when invoking shell scripts.
17873 SHELL=$lt_SHELL
17874
17875 # An echo program that protects backslashes.
17876 ECHO=$lt_ECHO
17877
17878 # The PATH separator for the build system.
17879 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17880
17881 # The host system.
17882 host_alias=$host_alias
17883 host=$host
17884 host_os=$host_os
17885
17886 # The build system.
17887 build_alias=$build_alias
17888 build=$build
17889 build_os=$build_os
17890
17891 # A sed program that does not truncate output.
17892 SED=$lt_SED
17893
17894 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17895 Xsed="\$SED -e 1s/^X//"
17896
17897 # A grep program that handles long lines.
17898 GREP=$lt_GREP
17899
17900 # An ERE matcher.
17901 EGREP=$lt_EGREP
17902
17903 # A literal string matcher.
17904 FGREP=$lt_FGREP
17905
17906 # A BSD- or MS-compatible name lister.
17907 NM=$lt_NM
17908
17909 # Whether we need soft or hard links.
17910 LN_S=$lt_LN_S
17911
17912 # What is the maximum length of a command?
17913 max_cmd_len=$max_cmd_len
17914
17915 # Object file suffix (normally "o").
17916 objext=$ac_objext
17917
17918 # Executable file suffix (normally "").
17919 exeext=$exeext
17920
17921 # whether the shell understands "unset".
17922 lt_unset=$lt_unset
17923
17924 # turn spaces into newlines.
17925 SP2NL=$lt_lt_SP2NL
17926
17927 # turn newlines into spaces.
17928 NL2SP=$lt_lt_NL2SP
17929
17930 # convert \$build file names to \$host format.
17931 to_host_file_cmd=$lt_cv_to_host_file_cmd
17932
17933 # convert \$build files to toolchain format.
17934 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17935
17936 # An object symbol dumper.
17937 OBJDUMP=$lt_OBJDUMP
17938
17939 # Method to check whether dependent libraries are shared objects.
17940 deplibs_check_method=$lt_deplibs_check_method
17941
17942 # Command to use when deplibs_check_method = "file_magic".
17943 file_magic_cmd=$lt_file_magic_cmd
17944
17945 # How to find potential files when deplibs_check_method = "file_magic".
17946 file_magic_glob=$lt_file_magic_glob
17947
17948 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17949 want_nocaseglob=$lt_want_nocaseglob
17950
17951 # DLL creation program.
17952 DLLTOOL=$lt_DLLTOOL
17953
17954 # Command to associate shared and link libraries.
17955 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17956
17957 # The archiver.
17958 AR=$lt_AR
17959
17960 # Flags to create an archive.
17961 AR_FLAGS=$lt_AR_FLAGS
17962
17963 # How to feed a file listing to the archiver.
17964 archiver_list_spec=$lt_archiver_list_spec
17965
17966 # A symbol stripping program.
17967 STRIP=$lt_STRIP
17968
17969 # Commands used to install an old-style archive.
17970 RANLIB=$lt_RANLIB
17971 old_postinstall_cmds=$lt_old_postinstall_cmds
17972 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17973
17974 # Whether to use a lock for old archive extraction.
17975 lock_old_archive_extraction=$lock_old_archive_extraction
17976
17977 # A C compiler.
17978 LTCC=$lt_CC
17979
17980 # LTCC compiler flags.
17981 LTCFLAGS=$lt_CFLAGS
17982
17983 # Take the output of nm and produce a listing of raw symbols and C names.
17984 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17985
17986 # Transform the output of nm in a proper C declaration.
17987 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17988
17989 # Transform the output of nm into a list of symbols to manually relocate.
17990 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17991
17992 # Transform the output of nm in a C name address pair.
17993 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17994
17995 # Transform the output of nm in a C name address pair when lib prefix is needed.
17996 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17997
17998 # The name lister interface.
17999 nm_interface=$lt_lt_cv_nm_interface
18000
18001 # Specify filename containing input files for \$NM.
18002 nm_file_list_spec=$lt_nm_file_list_spec
18003
18004 # The root where to search for dependent libraries,and where our libraries should be installed.
18005 lt_sysroot=$lt_sysroot
18006
18007 # Command to truncate a binary pipe.
18008 lt_truncate_bin=$lt_lt_cv_truncate_bin
18009
18010 # The name of the directory that contains temporary libtool files.
18011 objdir=$objdir
18012
18013 # Used to examine libraries when file_magic_cmd begins with "file".
18014 MAGIC_CMD=$MAGIC_CMD
18015
18016 # Must we lock files when doing compilation?
18017 need_locks=$lt_need_locks
18018
18019 # Manifest tool.
18020 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18021
18022 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18023 DSYMUTIL=$lt_DSYMUTIL
18024
18025 # Tool to change global to local symbols on Mac OS X.
18026 NMEDIT=$lt_NMEDIT
18027
18028 # Tool to manipulate fat objects and archives on Mac OS X.
18029 LIPO=$lt_LIPO
18030
18031 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18032 OTOOL=$lt_OTOOL
18033
18034 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18035 OTOOL64=$lt_OTOOL64
18036
18037 # Old archive suffix (normally "a").
18038 libext=$libext
18039
18040 # Shared library suffix (normally ".so").
18041 shrext_cmds=$lt_shrext_cmds
18042
18043 # The commands to extract the exported symbol list from a shared archive.
18044 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18045
18046 # Variables whose values should be saved in libtool wrapper scripts and
18047 # restored at link time.
18048 variables_saved_for_relink=$lt_variables_saved_for_relink
18049
18050 # Do we need the "lib" prefix for modules?
18051 need_lib_prefix=$need_lib_prefix
18052
18053 # Do we need a version for libraries?
18054 need_version=$need_version
18055
18056 # Library versioning type.
18057 version_type=$version_type
18058
18059 # Shared library runtime path variable.
18060 runpath_var=$runpath_var
18061
18062 # Shared library path variable.
18063 shlibpath_var=$shlibpath_var
18064
18065 # Is shlibpath searched before the hard-coded library search path?
18066 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18067
18068 # Format of library name prefix.
18069 libname_spec=$lt_libname_spec
18070
18071 # List of archive names. First name is the real one, the rest are links.
18072 # The last name is the one that the linker finds with -lNAME
18073 library_names_spec=$lt_library_names_spec
18074
18075 # The coded name of the library, if different from the real name.
18076 soname_spec=$lt_soname_spec
18077
18078 # Permission mode override for installation of shared libraries.
18079 install_override_mode=$lt_install_override_mode
18080
18081 # Command to use after installation of a shared archive.
18082 postinstall_cmds=$lt_postinstall_cmds
18083
18084 # Command to use after uninstallation of a shared archive.
18085 postuninstall_cmds=$lt_postuninstall_cmds
18086
18087 # Commands used to finish a libtool library installation in a directory.
18088 finish_cmds=$lt_finish_cmds
18089
18090 # As "finish_cmds", except a single script fragment to be evaled but
18091 # not shown.
18092 finish_eval=$lt_finish_eval
18093
18094 # Whether we should hardcode library paths into libraries.
18095 hardcode_into_libs=$hardcode_into_libs
18096
18097 # Compile-time system search path for libraries.
18098 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18099
18100 # Detected run-time system search path for libraries.
18101 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18102
18103 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18104 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18105
18106 # Whether dlopen is supported.
18107 dlopen_support=$enable_dlopen
18108
18109 # Whether dlopen of programs is supported.
18110 dlopen_self=$enable_dlopen_self
18111
18112 # Whether dlopen of statically linked programs is supported.
18113 dlopen_self_static=$enable_dlopen_self_static
18114
18115 # Commands to strip libraries.
18116 old_striplib=$lt_old_striplib
18117 striplib=$lt_striplib
18118
18119
18120 # The linker used to build libraries.
18121 LD=$lt_LD
18122
18123 # How to create reloadable object files.
18124 reload_flag=$lt_reload_flag
18125 reload_cmds=$lt_reload_cmds
18126
18127 # Commands used to build an old-style archive.
18128 old_archive_cmds=$lt_old_archive_cmds
18129
18130 # A language specific compiler.
18131 CC=$lt_compiler
18132
18133 # Is the compiler the GNU compiler?
18134 with_gcc=$GCC
18135
18136 # Compiler flag to turn off builtin functions.
18137 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18138
18139 # Additional compiler flags for building library objects.
18140 pic_flag=$lt_lt_prog_compiler_pic
18141
18142 # How to pass a linker flag through the compiler.
18143 wl=$lt_lt_prog_compiler_wl
18144
18145 # Compiler flag to prevent dynamic linking.
18146 link_static_flag=$lt_lt_prog_compiler_static
18147
18148 # Does compiler simultaneously support -c and -o options?
18149 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18150
18151 # Whether or not to add -lc for building shared libraries.
18152 build_libtool_need_lc=$archive_cmds_need_lc
18153
18154 # Whether or not to disallow shared libs when runtime libs are static.
18155 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18156
18157 # Compiler flag to allow reflexive dlopens.
18158 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18159
18160 # Compiler flag to generate shared objects directly from archives.
18161 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18162
18163 # Whether the compiler copes with passing no objects directly.
18164 compiler_needs_object=$lt_compiler_needs_object
18165
18166 # Create an old-style archive from a shared archive.
18167 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18168
18169 # Create a temporary old-style archive to link instead of a shared archive.
18170 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18171
18172 # Commands used to build a shared archive.
18173 archive_cmds=$lt_archive_cmds
18174 archive_expsym_cmds=$lt_archive_expsym_cmds
18175
18176 # Commands used to build a loadable module if different from building
18177 # a shared archive.
18178 module_cmds=$lt_module_cmds
18179 module_expsym_cmds=$lt_module_expsym_cmds
18180
18181 # Whether we are building with GNU ld or not.
18182 with_gnu_ld=$lt_with_gnu_ld
18183
18184 # Flag that allows shared libraries with undefined symbols to be built.
18185 allow_undefined_flag=$lt_allow_undefined_flag
18186
18187 # Flag that enforces no undefined symbols.
18188 no_undefined_flag=$lt_no_undefined_flag
18189
18190 # Flag to hardcode \$libdir into a binary during linking.
18191 # This must work even if \$libdir does not exist
18192 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18193
18194 # Whether we need a single "-rpath" flag with a separated argument.
18195 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18196
18197 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18198 # DIR into the resulting binary.
18199 hardcode_direct=$hardcode_direct
18200
18201 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18202 # DIR into the resulting binary and the resulting library dependency is
18203 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18204 # library is relocated.
18205 hardcode_direct_absolute=$hardcode_direct_absolute
18206
18207 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18208 # into the resulting binary.
18209 hardcode_minus_L=$hardcode_minus_L
18210
18211 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18212 # into the resulting binary.
18213 hardcode_shlibpath_var=$hardcode_shlibpath_var
18214
18215 # Set to "yes" if building a shared library automatically hardcodes DIR
18216 # into the library and all subsequent libraries and executables linked
18217 # against it.
18218 hardcode_automatic=$hardcode_automatic
18219
18220 # Set to yes if linker adds runtime paths of dependent libraries
18221 # to runtime path list.
18222 inherit_rpath=$inherit_rpath
18223
18224 # Whether libtool must link a program against all its dependency libraries.
18225 link_all_deplibs=$link_all_deplibs
18226
18227 # Set to "yes" if exported symbols are required.
18228 always_export_symbols=$always_export_symbols
18229
18230 # The commands to list exported symbols.
18231 export_symbols_cmds=$lt_export_symbols_cmds
18232
18233 # Symbols that should not be listed in the preloaded symbols.
18234 exclude_expsyms=$lt_exclude_expsyms
18235
18236 # Symbols that must always be exported.
18237 include_expsyms=$lt_include_expsyms
18238
18239 # Commands necessary for linking programs (against libraries) with templates.
18240 prelink_cmds=$lt_prelink_cmds
18241
18242 # Commands necessary for finishing linking programs.
18243 postlink_cmds=$lt_postlink_cmds
18244
18245 # Specify filename containing input files.
18246 file_list_spec=$lt_file_list_spec
18247
18248 # How to hardcode a shared library path into an executable.
18249 hardcode_action=$hardcode_action
18250
18251 # ### END LIBTOOL CONFIG
18252
18253 _LT_EOF
18254
18255 cat <<'_LT_EOF' >> "$cfgfile"
18256
18257 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18258
18259 # func_munge_path_list VARIABLE PATH
18260 # -----------------------------------
18261 # VARIABLE is name of variable containing _space_ separated list of
18262 # directories to be munged by the contents of PATH, which is string
18263 # having a format:
18264 # "DIR[:DIR]:"
18265 # string "DIR[ DIR]" will be prepended to VARIABLE
18266 # ":DIR[:DIR]"
18267 # string "DIR[ DIR]" will be appended to VARIABLE
18268 # "DIRP[:DIRP]::[DIRA:]DIRA"
18269 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18270 # "DIRA[ DIRA]" will be appended to VARIABLE
18271 # "DIR[:DIR]"
18272 # VARIABLE will be replaced by "DIR[ DIR]"
18273 func_munge_path_list ()
18274 {
18275 case x$2 in
18276 x)
18277 ;;
18278 *:)
18279 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18280 ;;
18281 x:*)
18282 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18283 ;;
18284 *::*)
18285 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18286 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18287 ;;
18288 *)
18289 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18290 ;;
18291 esac
18292 }
18293
18294
18295 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18296 func_cc_basename ()
18297 {
18298 for cc_temp in $*""; do
18299 case $cc_temp in
18300 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18301 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18302 \-*) ;;
18303 *) break;;
18304 esac
18305 done
18306 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18307 }
18308
18309
18310 # ### END FUNCTIONS SHARED WITH CONFIGURE
18311
18312 _LT_EOF
18313
18314 case $host_os in
18315 aix3*)
18316 cat <<\_LT_EOF >> "$cfgfile"
18317 # AIX sometimes has problems with the GCC collect2 program. For some
18318 # reason, if we set the COLLECT_NAMES environment variable, the problems
18319 # vanish in a puff of smoke.
18320 if test set != "${COLLECT_NAMES+set}"; then
18321 COLLECT_NAMES=
18322 export COLLECT_NAMES
18323 fi
18324 _LT_EOF
18325 ;;
18326 esac
18327
18328
18329 ltmain=$ac_aux_dir/ltmain.sh
18330
18331
18332 # We use sed instead of cat because bash on DJGPP gets confused if
18333 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18334 # text mode, it properly converts lines to CR/LF. This bash problem
18335 # is reportedly fixed, but why not run on old versions too?
18336 sed '$q' "$ltmain" >> "$cfgfile" \
18337 || (rm -f "$cfgfile"; exit 1)
18338
18339 mv -f "$cfgfile" "$ofile" ||
18340 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18341 chmod +x "$ofile"
18342
18343 ;;
18344
18345 esac
18346 done # for ac_tag
18347
18348
18349 as_fn_exit 0
18350 _ACEOF
18351 ac_clean_files=$ac_clean_files_save
18352
18353 test $ac_write_fail = 0 ||
18354 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18355
18356
18357 # configure is writing to config.log, and then calls config.status.
18358 # config.status does its own redirection, appending to config.log.
18359 # Unfortunately, on DOS this fails, as config.log is still kept open
18360 # by configure, so config.status won't be able to write to it; its
18361 # output is simply discarded. So we exec the FD to /dev/null,
18362 # effectively closing config.log, so it can be properly (re)opened and
18363 # appended to by config.status. When coming back to configure, we
18364 # need to make the FD available again.
18365 if test "$no_create" != yes; then
18366 ac_cs_success=:
18367 ac_config_status_args=
18368 test "$silent" = yes &&
18369 ac_config_status_args="$ac_config_status_args --quiet"
18370 exec 5>/dev/null
18371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18372 exec 5>>config.log
18373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18374 # would make configure fail if this is the last instruction.
18375 $ac_cs_success || as_fn_exit 1
18376 fi
18377
18378 #
18379 # CONFIG_SUBDIRS section.
18380 #
18381 if test "$no_recursion" != yes; then
18382
18383 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18384 # so they do not pile up.
18385 ac_sub_configure_args=
18386 ac_prev=
18387 eval "set x $ac_configure_args"
18388 shift
18389 for ac_arg
18390 do
18391 if test -n "$ac_prev"; then
18392 ac_prev=
18393 continue
18394 fi
18395 case $ac_arg in
18396 -cache-file | --cache-file | --cache-fil | --cache-fi \
18397 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18398 ac_prev=cache_file ;;
18399 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18400 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18401 | --c=*)
18402 ;;
18403 --config-cache | -C)
18404 ;;
18405 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18406 ac_prev=srcdir ;;
18407 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18408 ;;
18409 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18410 ac_prev=prefix ;;
18411 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18412 ;;
18413 --disable-option-checking)
18414 ;;
18415 *)
18416 case $ac_arg in
18417 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18418 esac
18419 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
18420 esac
18421 done
18422
18423 # Always prepend --prefix to ensure using the same prefix
18424 # in subdir configurations.
18425 ac_arg="--prefix=$prefix"
18426 case $ac_arg in
18427 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18428 esac
18429 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
18430
18431 # Pass --silent
18432 if test "$silent" = yes; then
18433 ac_sub_configure_args="--silent $ac_sub_configure_args"
18434 fi
18435
18436 # Always prepend --disable-option-checking to silence warnings, since
18437 # different subdirs can have different --enable and --with options.
18438 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
18439
18440 ac_popdir=`pwd`
18441 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18442
18443 # Do not complain, so a configure script can configure whichever
18444 # parts of a large source tree are present.
18445 test -d "$srcdir/$ac_dir" || continue
18446
18447 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18448 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18449 $as_echo "$ac_msg" >&6
18450 as_dir="$ac_dir"; as_fn_mkdir_p
18451 ac_builddir=.
18452
18453 case "$ac_dir" in
18454 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18455 *)
18456 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18457 # A ".." for each directory in $ac_dir_suffix.
18458 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18459 case $ac_top_builddir_sub in
18460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18462 esac ;;
18463 esac
18464 ac_abs_top_builddir=$ac_pwd
18465 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18466 # for backward compatibility:
18467 ac_top_builddir=$ac_top_build_prefix
18468
18469 case $srcdir in
18470 .) # We are building in place.
18471 ac_srcdir=.
18472 ac_top_srcdir=$ac_top_builddir_sub
18473 ac_abs_top_srcdir=$ac_pwd ;;
18474 [\\/]* | ?:[\\/]* ) # Absolute name.
18475 ac_srcdir=$srcdir$ac_dir_suffix;
18476 ac_top_srcdir=$srcdir
18477 ac_abs_top_srcdir=$srcdir ;;
18478 *) # Relative name.
18479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18480 ac_top_srcdir=$ac_top_build_prefix$srcdir
18481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18482 esac
18483 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18484
18485
18486 cd "$ac_dir"
18487
18488 # Check for guested configure; otherwise get Cygnus style configure.
18489 if test -f "$ac_srcdir/configure.gnu"; then
18490 ac_sub_configure=$ac_srcdir/configure.gnu
18491 elif test -f "$ac_srcdir/configure"; then
18492 ac_sub_configure=$ac_srcdir/configure
18493 elif test -f "$ac_srcdir/configure.in"; then
18494 # This should be Cygnus configure.
18495 ac_sub_configure=$ac_aux_dir/configure
18496 else
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18499 ac_sub_configure=
18500 fi
18501
18502 # The recursion is here.
18503 if test -n "$ac_sub_configure"; then
18504 # Make the cache file name correct relative to the subdirectory.
18505 case $cache_file in
18506 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18507 *) # Relative name.
18508 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
18509 esac
18510
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18512 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18513 # The eval makes quoting arguments work.
18514 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18515 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18516 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18517 fi
18518
18519 cd "$ac_popdir"
18520 done
18521 fi
18522 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18524 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18525 fi
18526