jessie rebuild
[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.1.
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.1'
598 PACKAGE_STRING='courier-authlib 0.66.1'
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 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 OTOOL64
722 OTOOL
723 LIPO
724 NMEDIT
725 DSYMUTIL
726 MANIFEST_TOOL
727 RANLIB
728 ac_ct_AR
729 AR
730 DLLTOOL
731 OBJDUMP
732 NM
733 ac_ct_DUMPBIN
734 DUMPBIN
735 LD
736 FGREP
737 EGREP
738 GREP
739 SED
740 host_os
741 host_vendor
742 host_cpu
743 host
744 build_os
745 build_vendor
746 build_cpu
747 build
748 LIBTOOL
749 SYSCONFTOOL
750 SYSCONFTOOL_PERL
751 LN_S
752 CPP
753 am__fastdepCC_FALSE
754 am__fastdepCC_TRUE
755 CCDEPMODE
756 am__nodep
757 AMDEPBACKSLASH
758 AMDEP_FALSE
759 AMDEP_TRUE
760 am__quote
761 am__include
762 DEPDIR
763 OBJEXT
764 EXEEXT
765 ac_ct_CC
766 CPPFLAGS
767 LDFLAGS
768 CFLAGS
769 CC
770 AM_BACKSLASH
771 AM_DEFAULT_VERBOSITY
772 AM_DEFAULT_V
773 AM_V
774 am__untar
775 am__tar
776 AMTAR
777 am__leading_dot
778 SET_MAKE
779 AWK
780 mkdir_p
781 MKDIR_P
782 INSTALL_STRIP_PROGRAM
783 STRIP
784 install_sh
785 MAKEINFO
786 AUTOHEADER
787 AUTOMAKE
788 AUTOCONF
789 ACLOCAL
790 VERSION
791 PACKAGE
792 CYGPATH_W
793 am__isrc
794 INSTALL_DATA
795 INSTALL_SCRIPT
796 INSTALL_PROGRAM
797 target_alias
798 host_alias
799 build_alias
800 LIBS
801 ECHO_T
802 ECHO_N
803 ECHO_C
804 DEFS
805 mandir
806 localedir
807 libdir
808 psdir
809 pdfdir
810 dvidir
811 htmldir
812 infodir
813 docdir
814 oldincludedir
815 includedir
816 localstatedir
817 sharedstatedir
818 sysconfdir
819 datadir
820 datarootdir
821 libexecdir
822 sbindir
823 bindir
824 program_transform_name
825 prefix
826 exec_prefix
827 PACKAGE_URL
828 PACKAGE_BUGREPORT
829 PACKAGE_STRING
830 PACKAGE_VERSION
831 PACKAGE_TARNAME
832 PACKAGE_NAME
833 PATH_SEPARATOR
834 SHELL'
835 ac_subst_files=''
836 ac_user_opts='
837 enable_option_checking
838 enable_silent_rules
839 enable_dependency_tracking
840 enable_shared
841 enable_static
842 with_pic
843 enable_fast_install
844 with_gnu_ld
845 with_sysroot
846 enable_libtool_lock
847 with_included_ltdl
848 with_ltdl_include
849 with_ltdl_lib
850 enable_ltdl_install
851 with_pkgconfdir
852 with_db
853 with_authuserdb
854 with_makedatprog
855 with_userdb
856 with_authpam
857 with_authpam_libraries
858 with_authldap
859 with_authldaprc
860 with_authpwd
861 with_authshadow
862 with_authpgsqlrc
863 with_authpgsql
864 with_pgsql_libs
865 with_pgsql_includes
866 with_authmysqlrc
867 with_authmysql
868 with_mysql_libs
869 with_mysql_includes
870 with_authsqliterc
871 with_authsqlite
872 with_sqlite_libs
873 with_sqlite_includes
874 with_authcustom
875 with_pipeprog
876 with_authpipe
877 with_authdaemonrc
878 with_authdaemonvar
879 with_mailuser
880 with_mailgroup
881 with_stdheaderdir
882 with_repository
883 '
884 ac_precious_vars='build_alias
885 host_alias
886 target_alias
887 CC
888 CFLAGS
889 LDFLAGS
890 LIBS
891 CPPFLAGS
892 CPP'
893 ac_subdirs_all='libltdl
894 libs/bdbobj libs/gdbmobj libs/md5 libs/sha1 libs/libhmac libs/numlib libs/makedat userdb libs/unicode libs/rfc822 libs/random128 libs/liblock liblog'
895
896 # Initialize some variables set by options.
897 ac_init_help=
898 ac_init_version=false
899 ac_unrecognized_opts=
900 ac_unrecognized_sep=
901 # The variables have the same names as the options, with
902 # dashes changed to underlines.
903 cache_file=/dev/null
904 exec_prefix=NONE
905 no_create=
906 no_recursion=
907 prefix=NONE
908 program_prefix=NONE
909 program_suffix=NONE
910 program_transform_name=s,x,x,
911 silent=
912 site=
913 srcdir=
914 verbose=
915 x_includes=NONE
916 x_libraries=NONE
917
918 # Installation directory options.
919 # These are left unexpanded so users can "make install exec_prefix=/foo"
920 # and all the variables that are supposed to be based on exec_prefix
921 # by default will actually change.
922 # Use braces instead of parens because sh, perl, etc. also accept them.
923 # (The list follows the same order as the GNU Coding Standards.)
924 bindir='${exec_prefix}/bin'
925 sbindir='${exec_prefix}/sbin'
926 libexecdir='${exec_prefix}/libexec'
927 datarootdir='${prefix}/share'
928 datadir='${datarootdir}'
929 sysconfdir='${prefix}/etc'
930 sharedstatedir='${prefix}/com'
931 localstatedir='${prefix}/var'
932 includedir='${prefix}/include'
933 oldincludedir='/usr/include'
934 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
935 infodir='${datarootdir}/info'
936 htmldir='${docdir}'
937 dvidir='${docdir}'
938 pdfdir='${docdir}'
939 psdir='${docdir}'
940 libdir='${exec_prefix}/lib'
941 localedir='${datarootdir}/locale'
942 mandir='${datarootdir}/man'
943
944 ac_prev=
945 ac_dashdash=
946 for ac_option
947 do
948 # If the previous option needs an argument, assign it.
949 if test -n "$ac_prev"; then
950 eval $ac_prev=\$ac_option
951 ac_prev=
952 continue
953 fi
954
955 case $ac_option in
956 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957 *=) ac_optarg= ;;
958 *) ac_optarg=yes ;;
959 esac
960
961 # Accept the important Cygnus configure options, so we can diagnose typos.
962
963 case $ac_dashdash$ac_option in
964 --)
965 ac_dashdash=yes ;;
966
967 -bindir | --bindir | --bindi | --bind | --bin | --bi)
968 ac_prev=bindir ;;
969 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970 bindir=$ac_optarg ;;
971
972 -build | --build | --buil | --bui | --bu)
973 ac_prev=build_alias ;;
974 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975 build_alias=$ac_optarg ;;
976
977 -cache-file | --cache-file | --cache-fil | --cache-fi \
978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979 ac_prev=cache_file ;;
980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982 cache_file=$ac_optarg ;;
983
984 --config-cache | -C)
985 cache_file=config.cache ;;
986
987 -datadir | --datadir | --datadi | --datad)
988 ac_prev=datadir ;;
989 -datadir=* | --datadir=* | --datadi=* | --datad=*)
990 datadir=$ac_optarg ;;
991
992 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993 | --dataroo | --dataro | --datar)
994 ac_prev=datarootdir ;;
995 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997 datarootdir=$ac_optarg ;;
998
999 -disable-* | --disable-*)
1000 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error $? "invalid feature name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1007 *"
1008 "enable_$ac_useropt"
1009 "*) ;;
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1012 esac
1013 eval enable_$ac_useropt=no ;;
1014
1015 -docdir | --docdir | --docdi | --doc | --do)
1016 ac_prev=docdir ;;
1017 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1018 docdir=$ac_optarg ;;
1019
1020 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 ac_prev=dvidir ;;
1022 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1023 dvidir=$ac_optarg ;;
1024
1025 -enable-* | --enable-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error $? "invalid feature name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1033 *"
1034 "enable_$ac_useropt"
1035 "*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval enable_$ac_useropt=\$ac_optarg ;;
1040
1041 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043 | --exec | --exe | --ex)
1044 ac_prev=exec_prefix ;;
1045 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047 | --exec=* | --exe=* | --ex=*)
1048 exec_prefix=$ac_optarg ;;
1049
1050 -gas | --gas | --ga | --g)
1051 # Obsolete; use --with-gas.
1052 with_gas=yes ;;
1053
1054 -help | --help | --hel | --he | -h)
1055 ac_init_help=long ;;
1056 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057 ac_init_help=recursive ;;
1058 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059 ac_init_help=short ;;
1060
1061 -host | --host | --hos | --ho)
1062 ac_prev=host_alias ;;
1063 -host=* | --host=* | --hos=* | --ho=*)
1064 host_alias=$ac_optarg ;;
1065
1066 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067 ac_prev=htmldir ;;
1068 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069 | --ht=*)
1070 htmldir=$ac_optarg ;;
1071
1072 -includedir | --includedir | --includedi | --included | --include \
1073 | --includ | --inclu | --incl | --inc)
1074 ac_prev=includedir ;;
1075 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076 | --includ=* | --inclu=* | --incl=* | --inc=*)
1077 includedir=$ac_optarg ;;
1078
1079 -infodir | --infodir | --infodi | --infod | --info | --inf)
1080 ac_prev=infodir ;;
1081 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082 infodir=$ac_optarg ;;
1083
1084 -libdir | --libdir | --libdi | --libd)
1085 ac_prev=libdir ;;
1086 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1087 libdir=$ac_optarg ;;
1088
1089 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090 | --libexe | --libex | --libe)
1091 ac_prev=libexecdir ;;
1092 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093 | --libexe=* | --libex=* | --libe=*)
1094 libexecdir=$ac_optarg ;;
1095
1096 -localedir | --localedir | --localedi | --localed | --locale)
1097 ac_prev=localedir ;;
1098 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099 localedir=$ac_optarg ;;
1100
1101 -localstatedir | --localstatedir | --localstatedi | --localstated \
1102 | --localstate | --localstat | --localsta | --localst | --locals)
1103 ac_prev=localstatedir ;;
1104 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1105 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1106 localstatedir=$ac_optarg ;;
1107
1108 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109 ac_prev=mandir ;;
1110 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111 mandir=$ac_optarg ;;
1112
1113 -nfp | --nfp | --nf)
1114 # Obsolete; use --without-fp.
1115 with_fp=no ;;
1116
1117 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118 | --no-cr | --no-c | -n)
1119 no_create=yes ;;
1120
1121 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123 no_recursion=yes ;;
1124
1125 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127 | --oldin | --oldi | --old | --ol | --o)
1128 ac_prev=oldincludedir ;;
1129 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132 oldincludedir=$ac_optarg ;;
1133
1134 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135 ac_prev=prefix ;;
1136 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137 prefix=$ac_optarg ;;
1138
1139 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1140 | --program-pre | --program-pr | --program-p)
1141 ac_prev=program_prefix ;;
1142 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1143 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144 program_prefix=$ac_optarg ;;
1145
1146 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1147 | --program-suf | --program-su | --program-s)
1148 ac_prev=program_suffix ;;
1149 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1150 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151 program_suffix=$ac_optarg ;;
1152
1153 -program-transform-name | --program-transform-name \
1154 | --program-transform-nam | --program-transform-na \
1155 | --program-transform-n | --program-transform- \
1156 | --program-transform | --program-transfor \
1157 | --program-transfo | --program-transf \
1158 | --program-trans | --program-tran \
1159 | --progr-tra | --program-tr | --program-t)
1160 ac_prev=program_transform_name ;;
1161 -program-transform-name=* | --program-transform-name=* \
1162 | --program-transform-nam=* | --program-transform-na=* \
1163 | --program-transform-n=* | --program-transform-=* \
1164 | --program-transform=* | --program-transfor=* \
1165 | --program-transfo=* | --program-transf=* \
1166 | --program-trans=* | --program-tran=* \
1167 | --progr-tra=* | --program-tr=* | --program-t=*)
1168 program_transform_name=$ac_optarg ;;
1169
1170 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171 ac_prev=pdfdir ;;
1172 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173 pdfdir=$ac_optarg ;;
1174
1175 -psdir | --psdir | --psdi | --psd | --ps)
1176 ac_prev=psdir ;;
1177 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178 psdir=$ac_optarg ;;
1179
1180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181 | -silent | --silent | --silen | --sile | --sil)
1182 silent=yes ;;
1183
1184 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185 ac_prev=sbindir ;;
1186 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187 | --sbi=* | --sb=*)
1188 sbindir=$ac_optarg ;;
1189
1190 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1191 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192 | --sharedst | --shareds | --shared | --share | --shar \
1193 | --sha | --sh)
1194 ac_prev=sharedstatedir ;;
1195 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198 | --sha=* | --sh=*)
1199 sharedstatedir=$ac_optarg ;;
1200
1201 -site | --site | --sit)
1202 ac_prev=site ;;
1203 -site=* | --site=* | --sit=*)
1204 site=$ac_optarg ;;
1205
1206 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207 ac_prev=srcdir ;;
1208 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1209 srcdir=$ac_optarg ;;
1210
1211 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212 | --syscon | --sysco | --sysc | --sys | --sy)
1213 ac_prev=sysconfdir ;;
1214 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1216 sysconfdir=$ac_optarg ;;
1217
1218 -target | --target | --targe | --targ | --tar | --ta | --t)
1219 ac_prev=target_alias ;;
1220 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1221 target_alias=$ac_optarg ;;
1222
1223 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224 verbose=yes ;;
1225
1226 -version | --version | --versio | --versi | --vers | -V)
1227 ac_init_version=: ;;
1228
1229 -with-* | --with-*)
1230 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233 as_fn_error $? "invalid package name: $ac_useropt"
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1237 *"
1238 "with_$ac_useropt"
1239 "*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=\$ac_optarg ;;
1244
1245 -without-* | --without-*)
1246 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249 as_fn_error $? "invalid package name: $ac_useropt"
1250 ac_useropt_orig=$ac_useropt
1251 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252 case $ac_user_opts in
1253 *"
1254 "with_$ac_useropt"
1255 "*) ;;
1256 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1257 ac_unrecognized_sep=', ';;
1258 esac
1259 eval with_$ac_useropt=no ;;
1260
1261 --x)
1262 # Obsolete; use --with-x.
1263 with_x=yes ;;
1264
1265 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1266 | --x-incl | --x-inc | --x-in | --x-i)
1267 ac_prev=x_includes ;;
1268 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1269 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1270 x_includes=$ac_optarg ;;
1271
1272 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1273 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1274 ac_prev=x_libraries ;;
1275 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1276 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1277 x_libraries=$ac_optarg ;;
1278
1279 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1280 Try \`$0 --help' for more information"
1281 ;;
1282
1283 *=*)
1284 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1285 # Reject names that are not valid shell variable names.
1286 case $ac_envvar in #(
1287 '' | [0-9]* | *[!_$as_cr_alnum]* )
1288 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1289 esac
1290 eval $ac_envvar=\$ac_optarg
1291 export $ac_envvar ;;
1292
1293 *)
1294 # FIXME: should be removed in autoconf 3.0.
1295 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1296 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1297 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1298 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1299 ;;
1300
1301 esac
1302 done
1303
1304 if test -n "$ac_prev"; then
1305 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1306 as_fn_error $? "missing argument to $ac_option"
1307 fi
1308
1309 if test -n "$ac_unrecognized_opts"; then
1310 case $enable_option_checking in
1311 no) ;;
1312 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1313 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1314 esac
1315 fi
1316
1317 # Check all directory arguments for consistency.
1318 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1319 datadir sysconfdir sharedstatedir localstatedir includedir \
1320 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1321 libdir localedir mandir
1322 do
1323 eval ac_val=\$$ac_var
1324 # Remove trailing slashes.
1325 case $ac_val in
1326 */ )
1327 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1328 eval $ac_var=\$ac_val;;
1329 esac
1330 # Be sure to have absolute directory names.
1331 case $ac_val in
1332 [\\/$]* | ?:[\\/]* ) continue;;
1333 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1334 esac
1335 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1336 done
1337
1338 # There might be people who depend on the old broken behavior: `$host'
1339 # used to hold the argument of --host etc.
1340 # FIXME: To remove some day.
1341 build=$build_alias
1342 host=$host_alias
1343 target=$target_alias
1344
1345 # FIXME: To remove some day.
1346 if test "x$host_alias" != x; then
1347 if test "x$build_alias" = x; then
1348 cross_compiling=maybe
1349 elif test "x$build_alias" != "x$host_alias"; then
1350 cross_compiling=yes
1351 fi
1352 fi
1353
1354 ac_tool_prefix=
1355 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1356
1357 test "$silent" = yes && exec 6>/dev/null
1358
1359
1360 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361 ac_ls_di=`ls -di .` &&
1362 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363 as_fn_error $? "working directory cannot be determined"
1364 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365 as_fn_error $? "pwd does not report name of working directory"
1366
1367
1368 # Find the source files, if location was not specified.
1369 if test -z "$srcdir"; then
1370 ac_srcdir_defaulted=yes
1371 # Try the directory containing this script, then the parent directory.
1372 ac_confdir=`$as_dirname -- "$as_myself" ||
1373 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374 X"$as_myself" : 'X\(//\)[^/]' \| \
1375 X"$as_myself" : 'X\(//\)$' \| \
1376 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1377 $as_echo X"$as_myself" |
1378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 s//\1/
1380 q
1381 }
1382 /^X\(\/\/\)[^/].*/{
1383 s//\1/
1384 q
1385 }
1386 /^X\(\/\/\)$/{
1387 s//\1/
1388 q
1389 }
1390 /^X\(\/\).*/{
1391 s//\1/
1392 q
1393 }
1394 s/.*/./; q'`
1395 srcdir=$ac_confdir
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 srcdir=..
1398 fi
1399 else
1400 ac_srcdir_defaulted=no
1401 fi
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1403 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1405 fi
1406 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1407 ac_abs_confdir=`(
1408 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1409 pwd)`
1410 # When building in place, set srcdir=.
1411 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 srcdir=.
1413 fi
1414 # Remove unnecessary trailing slashes from srcdir.
1415 # Double slashes in file names in object file debugging info
1416 # mess up M-x gdb in Emacs.
1417 case $srcdir in
1418 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 esac
1420 for ac_var in $ac_precious_vars; do
1421 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_${ac_var}_value=\$${ac_var}
1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425 done
1426
1427 #
1428 # Report the --help message.
1429 #
1430 if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1433 cat <<_ACEOF
1434 \`configure' configures courier-authlib 0.66.1 to adapt to many kinds of systems.
1435
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1437
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE. See below for descriptions of some of the useful variables.
1440
1441 Defaults for the options are specified in brackets.
1442
1443 Configuration:
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
1448 -q, --quiet, --silent do not print \`checking ...' messages
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453
1454 Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
1456 [$ac_default_prefix]
1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 [PREFIX]
1459
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1464
1465 For better control, use the options below.
1466
1467 Fine tuning of the installation directories:
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/courier-authlib]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1487 _ACEOF
1488
1489 cat <<\_ACEOF
1490
1491 Program names:
1492 --program-prefix=PREFIX prepend PREFIX to installed program names
1493 --program-suffix=SUFFIX append SUFFIX to installed program names
1494 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1495
1496 System types:
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1499 _ACEOF
1500 fi
1501
1502 if test -n "$ac_init_help"; then
1503 case $ac_init_help in
1504 short | recursive ) echo "Configuration of courier-authlib 0.66.1:";;
1505 esac
1506 cat <<\_ACEOF
1507
1508 Optional Features:
1509 --disable-option-checking ignore unrecognized --enable/--with options
1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1512 --enable-silent-rules less verbose build output (undo: "make V=1")
1513 --disable-silent-rules verbose build output (undo: "make V=0")
1514 --enable-dependency-tracking
1515 do not reject slow dependency extractors
1516 --disable-dependency-tracking
1517 speeds up one-time build
1518 --enable-shared[=PKGS] build shared libraries [default=yes]
1519 --enable-static[=PKGS] build static libraries [default=yes]
1520 --enable-fast-install[=PKGS]
1521 optimize for fast installation [default=yes]
1522 --disable-libtool-lock avoid locking (might break parallel builds)
1523 --enable-ltdl-install install libltdl
1524
1525 Optional Packages:
1526 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1527 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1528 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1529 both]
1530 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1531 --with-sysroot=DIR Search for dependent libraries within DIR
1532 (or the compiler's sysroot if not specified).
1533 --with-included-ltdl use the GNU ltdl sources included here
1534 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1535 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1536 --with-pkgconfdir=d Install config files in directory
1537 --with-db=gdbm Use the GDBM library.
1538 --with-db=db Use the libdb.a library.
1539 --without-authuserdb Do not include the authuserdb module
1540
1541
1542 --without-authpam Do not include the authpam module
1543 --with-authpam-libraries="libs" Link 'libs' with authpam, this may be
1544 required for FreeBSD 3.3
1545 --without-authldap Do not include the authldap module
1546 --with-authldaprc=filename Expect to find authldaprc here
1547 --without-authpwd Do not include the authpwd module
1548 --without-authshadow Do not include the authshadow module
1549 --with-authpgsqlrc=filename Expect to find authpgsql here
1550 --without-authpgsql Do not include the authpgsql module
1551 --with-pgsql-libs=DIR Look for pgsql libs in this dir
1552 --with-pgsql-includes=DIR Look for pgsql includes in this dir
1553 --with-authmysqlrc=filename Expect to find authmysql here
1554 --without-authmysql Do not include the authmysql module
1555 --with-mysql-libs=DIR Look for mysql libs in this dir
1556 --with-mysql-includes=DIR Look for mysql includes in this dir
1557 --with-authsqliterc=filename Expect to find authmysql here
1558 --without-authsqlite Do not include the authsqlite module
1559 --with-sqlite-libs=DIR Look for sqlite libs in this dir
1560 --with-sqlite-includes=DIR Look for sqlite includes in this dir
1561 --without-authcustom Do not include the authcustom module
1562 --with-pipeprog=filename Expect to find the pipe-prog here
1563 --without-authpipe Do not include the authpipe module
1564 --with-authdaemonrc=filename Expect to find authdaemonrc here
1565 --with-authdaemonvar=directory Directory where authdaemon.pid and
1566 the listening socket is created
1567 --with-mailuser=user Specify mail user name (defaults to
1568 courier, daemon, admin, bin, or root)
1569 --with-mailgroup=group Specify mail group name (defaults to courier,
1570 daemon, sys, adm, or root)
1571 --without-stdheaderdir Header files will be installed into a directory
1572 not in the compiler's default search path.
1573
1574 Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
1582 CPP C preprocessor
1583
1584 Use these variables to override the choices made by `configure' or to help
1585 it to find libraries and programs with nonstandard names/locations.
1586
1587 Report bugs to <courier-users@lists.sourceforge.net>.
1588 _ACEOF
1589 ac_status=$?
1590 fi
1591
1592 if test "$ac_init_help" = "recursive"; then
1593 # If there are subdirs, report their specific --help.
1594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1595 test -d "$ac_dir" ||
1596 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1597 continue
1598 ac_builddir=.
1599
1600 case "$ac_dir" in
1601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602 *)
1603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1604 # A ".." for each directory in $ac_dir_suffix.
1605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1606 case $ac_top_builddir_sub in
1607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1609 esac ;;
1610 esac
1611 ac_abs_top_builddir=$ac_pwd
1612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1613 # for backward compatibility:
1614 ac_top_builddir=$ac_top_build_prefix
1615
1616 case $srcdir in
1617 .) # We are building in place.
1618 ac_srcdir=.
1619 ac_top_srcdir=$ac_top_builddir_sub
1620 ac_abs_top_srcdir=$ac_pwd ;;
1621 [\\/]* | ?:[\\/]* ) # Absolute name.
1622 ac_srcdir=$srcdir$ac_dir_suffix;
1623 ac_top_srcdir=$srcdir
1624 ac_abs_top_srcdir=$srcdir ;;
1625 *) # Relative name.
1626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1627 ac_top_srcdir=$ac_top_build_prefix$srcdir
1628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1629 esac
1630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1631
1632 cd "$ac_dir" || { ac_status=$?; continue; }
1633 # Check for guested configure.
1634 if test -f "$ac_srcdir/configure.gnu"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1637 elif test -f "$ac_srcdir/configure"; then
1638 echo &&
1639 $SHELL "$ac_srcdir/configure" --help=recursive
1640 else
1641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1642 fi || ac_status=$?
1643 cd "$ac_pwd" || { ac_status=$?; break; }
1644 done
1645 fi
1646
1647 test -n "$ac_init_help" && exit $ac_status
1648 if $ac_init_version; then
1649 cat <<\_ACEOF
1650 courier-authlib configure 0.66.1
1651 generated by GNU Autoconf 2.69
1652
1653 Copyright (C) 2012 Free Software Foundation, Inc.
1654 This configure script is free software; the Free Software Foundation
1655 gives unlimited permission to copy, distribute and modify it.
1656 _ACEOF
1657 exit
1658 fi
1659
1660 ## ------------------------ ##
1661 ## Autoconf initialization. ##
1662 ## ------------------------ ##
1663
1664 # ac_fn_c_try_compile LINENO
1665 # --------------------------
1666 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_compile ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext
1671 if { { ac_try="$ac_compile"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_compile") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest.$ac_objext; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696 fi
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1699
1700 } # ac_fn_c_try_compile
1701
1702 # ac_fn_c_try_cpp LINENO
1703 # ----------------------
1704 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_c_try_cpp ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_cpp conftest.$ac_ext"
1709 case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1716 ac_status=$?
1717 if test -s conftest.err; then
1718 grep -v '^ *+' conftest.err >conftest.er1
1719 cat conftest.er1 >&5
1720 mv -f conftest.er1 conftest.err
1721 fi
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } > conftest.i && {
1724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1725 test ! -s conftest.err
1726 }; then :
1727 ac_retval=0
1728 else
1729 $as_echo "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1731
1732 ac_retval=1
1733 fi
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 as_fn_set_status $ac_retval
1736
1737 } # ac_fn_c_try_cpp
1738
1739 # ac_fn_c_try_link LINENO
1740 # -----------------------
1741 # Try to link conftest.$ac_ext, and return whether this succeeded.
1742 ac_fn_c_try_link ()
1743 {
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 rm -f conftest.$ac_objext conftest$ac_exeext
1746 if { { ac_try="$ac_link"
1747 case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_link") 2>conftest.err
1754 ac_status=$?
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1759 fi
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && {
1762 test -z "$ac_c_werror_flag" ||
1763 test ! -s conftest.err
1764 } && test -s conftest$ac_exeext && {
1765 test "$cross_compiling" = yes ||
1766 test -x conftest$ac_exeext
1767 }; then :
1768 ac_retval=0
1769 else
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1772
1773 ac_retval=1
1774 fi
1775 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1776 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1777 # interfere with the next link command; also delete a directory that is
1778 # left behind by Apple's compiler. We do this before executing the actions.
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1782
1783 } # ac_fn_c_try_link
1784
1785 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists and can be compiled using the include files in
1788 # INCLUDES, setting the cache variable VAR accordingly.
1789 ac_fn_c_check_header_compile ()
1790 {
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1796 else
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1799 $4
1800 #include <$2>
1801 _ACEOF
1802 if ac_fn_c_try_compile "$LINENO"; then :
1803 eval "$3=yes"
1804 else
1805 eval "$3=no"
1806 fi
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 fi
1809 eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813
1814 } # ac_fn_c_check_header_compile
1815
1816 # ac_fn_c_try_run LINENO
1817 # ----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1819 # that executables *can* be run.
1820 ac_fn_c_try_run ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { { ac_try="$ac_link"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>&5
1831 ac_status=$?
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1834 { { case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_try") 2>&5
1841 ac_status=$?
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; }; }; then :
1844 ac_retval=0
1845 else
1846 $as_echo "$as_me: program exited with status $ac_status" >&5
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 ac_retval=$ac_status
1851 fi
1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1855
1856 } # ac_fn_c_try_run
1857
1858 # ac_fn_c_check_func LINENO FUNC VAR
1859 # ----------------------------------
1860 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1861 ac_fn_c_check_func ()
1862 {
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1868 else
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1871 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1873 #define $2 innocuous_$2
1874
1875 /* System header to define __stub macros and hopefully few prototypes,
1876 which can conflict with char $2 (); below.
1877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1878 <limits.h> exists even on freestanding compilers. */
1879
1880 #ifdef __STDC__
1881 # include <limits.h>
1882 #else
1883 # include <assert.h>
1884 #endif
1885
1886 #undef $2
1887
1888 /* Override any GCC internal prototype to avoid an error.
1889 Use char because int might match the return type of a GCC
1890 builtin and then its argument prototype would still apply. */
1891 #ifdef __cplusplus
1892 extern "C"
1893 #endif
1894 char $2 ();
1895 /* The GNU C library defines this for functions which it implements
1896 to always fail with ENOSYS. Some functions are actually named
1897 something starting with __ and the normal name is an alias. */
1898 #if defined __stub_$2 || defined __stub___$2
1899 choke me
1900 #endif
1901
1902 int
1903 main ()
1904 {
1905 return $2 ();
1906 ;
1907 return 0;
1908 }
1909 _ACEOF
1910 if ac_fn_c_try_link "$LINENO"; then :
1911 eval "$3=yes"
1912 else
1913 eval "$3=no"
1914 fi
1915 rm -f core conftest.err conftest.$ac_objext \
1916 conftest$ac_exeext conftest.$ac_ext
1917 fi
1918 eval ac_res=\$$3
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922
1923 } # ac_fn_c_check_func
1924
1925 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1926 # ---------------------------------------------
1927 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1928 # accordingly.
1929 ac_fn_c_check_decl ()
1930 {
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 as_decl_name=`echo $2|sed 's/ *(.*//'`
1933 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1935 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1938 else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 $4
1942 int
1943 main ()
1944 {
1945 #ifndef $as_decl_name
1946 #ifdef __cplusplus
1947 (void) $as_decl_use;
1948 #else
1949 (void) $as_decl_name;
1950 #endif
1951 #endif
1952
1953 ;
1954 return 0;
1955 }
1956 _ACEOF
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958 eval "$3=yes"
1959 else
1960 eval "$3=no"
1961 fi
1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 fi
1964 eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968
1969 } # ac_fn_c_check_decl
1970
1971 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1972 # -------------------------------------------
1973 # Tests whether TYPE exists after having included INCLUDES, setting cache
1974 # variable VAR accordingly.
1975 ac_fn_c_check_type ()
1976 {
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if eval \${$3+:} false; then :
1981 $as_echo_n "(cached) " >&6
1982 else
1983 eval "$3=no"
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1986 $4
1987 int
1988 main ()
1989 {
1990 if (sizeof ($2))
1991 return 0;
1992 ;
1993 return 0;
1994 }
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
1999 $4
2000 int
2001 main ()
2002 {
2003 if (sizeof (($2)))
2004 return 0;
2005 ;
2006 return 0;
2007 }
2008 _ACEOF
2009 if ac_fn_c_try_compile "$LINENO"; then :
2010
2011 else
2012 eval "$3=yes"
2013 fi
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 fi
2018 eval ac_res=\$$3
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022
2023 } # ac_fn_c_check_type
2024
2025 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2026 # -------------------------------------------------------
2027 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2028 # the include files in INCLUDES and setting the cache variable VAR
2029 # accordingly.
2030 ac_fn_c_check_header_mongrel ()
2031 {
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 if eval \${$3+:} false; then :
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035 $as_echo_n "checking for $2... " >&6; }
2036 if eval \${$3+:} false; then :
2037 $as_echo_n "(cached) " >&6
2038 fi
2039 eval ac_res=\$$3
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 else
2043 # Is the header compilable?
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2045 $as_echo_n "checking $2 usability... " >&6; }
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2048 $4
2049 #include <$2>
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 ac_header_compiler=yes
2053 else
2054 ac_header_compiler=no
2055 fi
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2058 $as_echo "$ac_header_compiler" >&6; }
2059
2060 # Is the header present?
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2062 $as_echo_n "checking $2 presence... " >&6; }
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2065 #include <$2>
2066 _ACEOF
2067 if ac_fn_c_try_cpp "$LINENO"; then :
2068 ac_header_preproc=yes
2069 else
2070 ac_header_preproc=no
2071 fi
2072 rm -f conftest.err conftest.i conftest.$ac_ext
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2074 $as_echo "$ac_header_preproc" >&6; }
2075
2076 # So? What about this header?
2077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2078 yes:no: )
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2080 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2082 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2083 ;;
2084 no:yes:* )
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2086 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2088 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2090 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2092 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2094 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2095 ( $as_echo "## -------------------------------------------------- ##
2096 ## Report this to courier-users@lists.sourceforge.net ##
2097 ## -------------------------------------------------- ##"
2098 ) | sed "s/^/$as_me: WARNING: /" >&2
2099 ;;
2100 esac
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102 $as_echo_n "checking for $2... " >&6; }
2103 if eval \${$3+:} false; then :
2104 $as_echo_n "(cached) " >&6
2105 else
2106 eval "$3=\$ac_header_compiler"
2107 fi
2108 eval ac_res=\$$3
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 fi
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113
2114 } # ac_fn_c_check_header_mongrel
2115 cat >config.log <<_ACEOF
2116 This file contains any messages produced by compilers while
2117 running configure, to aid debugging if configure makes a mistake.
2118
2119 It was created by courier-authlib $as_me 0.66.1, which was
2120 generated by GNU Autoconf 2.69. Invocation command line was
2121
2122 $ $0 $@
2123
2124 _ACEOF
2125 exec 5>>config.log
2126 {
2127 cat <<_ASUNAME
2128 ## --------- ##
2129 ## Platform. ##
2130 ## --------- ##
2131
2132 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2133 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2134 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2135 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2136 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2137
2138 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2139 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2140
2141 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2142 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2143 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2144 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2145 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2146 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2147 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2148
2149 _ASUNAME
2150
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2153 do
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
2156 $as_echo "PATH: $as_dir"
2157 done
2158 IFS=$as_save_IFS
2159
2160 } >&5
2161
2162 cat >&5 <<_ACEOF
2163
2164
2165 ## ----------- ##
2166 ## Core tests. ##
2167 ## ----------- ##
2168
2169 _ACEOF
2170
2171
2172 # Keep a trace of the command line.
2173 # Strip out --no-create and --no-recursion so they do not pile up.
2174 # Strip out --silent because we don't want to record it for future runs.
2175 # Also quote any args containing shell meta-characters.
2176 # Make two passes to allow for proper duplicate-argument suppression.
2177 ac_configure_args=
2178 ac_configure_args0=
2179 ac_configure_args1=
2180 ac_must_keep_next=false
2181 for ac_pass in 1 2
2182 do
2183 for ac_arg
2184 do
2185 case $ac_arg in
2186 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2188 | -silent | --silent | --silen | --sile | --sil)
2189 continue ;;
2190 *\'*)
2191 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2192 esac
2193 case $ac_pass in
2194 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2195 2)
2196 as_fn_append ac_configure_args1 " '$ac_arg'"
2197 if test $ac_must_keep_next = true; then
2198 ac_must_keep_next=false # Got value, back to normal.
2199 else
2200 case $ac_arg in
2201 *=* | --config-cache | -C | -disable-* | --disable-* \
2202 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2203 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2204 | -with-* | --with-* | -without-* | --without-* | --x)
2205 case "$ac_configure_args0 " in
2206 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2207 esac
2208 ;;
2209 -* ) ac_must_keep_next=true ;;
2210 esac
2211 fi
2212 as_fn_append ac_configure_args " '$ac_arg'"
2213 ;;
2214 esac
2215 done
2216 done
2217 { ac_configure_args0=; unset ac_configure_args0;}
2218 { ac_configure_args1=; unset ac_configure_args1;}
2219
2220 # When interrupted or exit'd, cleanup temporary files, and complete
2221 # config.log. We remove comments because anyway the quotes in there
2222 # would cause problems or look ugly.
2223 # WARNING: Use '\'' to represent an apostrophe within the trap.
2224 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2225 trap 'exit_status=$?
2226 # Save into config.log some information that might help in debugging.
2227 {
2228 echo
2229
2230 $as_echo "## ---------------- ##
2231 ## Cache variables. ##
2232 ## ---------------- ##"
2233 echo
2234 # The following way of writing the cache mishandles newlines in values,
2235 (
2236 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2237 eval ac_val=\$$ac_var
2238 case $ac_val in #(
2239 *${as_nl}*)
2240 case $ac_var in #(
2241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2242 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2243 esac
2244 case $ac_var in #(
2245 _ | IFS | as_nl) ;; #(
2246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2247 *) { eval $ac_var=; unset $ac_var;} ;;
2248 esac ;;
2249 esac
2250 done
2251 (set) 2>&1 |
2252 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2253 *${as_nl}ac_space=\ *)
2254 sed -n \
2255 "s/'\''/'\''\\\\'\'''\''/g;
2256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2257 ;; #(
2258 *)
2259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2260 ;;
2261 esac |
2262 sort
2263 )
2264 echo
2265
2266 $as_echo "## ----------------- ##
2267 ## Output variables. ##
2268 ## ----------------- ##"
2269 echo
2270 for ac_var in $ac_subst_vars
2271 do
2272 eval ac_val=\$$ac_var
2273 case $ac_val in
2274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2275 esac
2276 $as_echo "$ac_var='\''$ac_val'\''"
2277 done | sort
2278 echo
2279
2280 if test -n "$ac_subst_files"; then
2281 $as_echo "## ------------------- ##
2282 ## File substitutions. ##
2283 ## ------------------- ##"
2284 echo
2285 for ac_var in $ac_subst_files
2286 do
2287 eval ac_val=\$$ac_var
2288 case $ac_val in
2289 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2290 esac
2291 $as_echo "$ac_var='\''$ac_val'\''"
2292 done | sort
2293 echo
2294 fi
2295
2296 if test -s confdefs.h; then
2297 $as_echo "## ----------- ##
2298 ## confdefs.h. ##
2299 ## ----------- ##"
2300 echo
2301 cat confdefs.h
2302 echo
2303 fi
2304 test "$ac_signal" != 0 &&
2305 $as_echo "$as_me: caught signal $ac_signal"
2306 $as_echo "$as_me: exit $exit_status"
2307 } >&5
2308 rm -f core *.core core.conftest.* &&
2309 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2310 exit $exit_status
2311 ' 0
2312 for ac_signal in 1 2 13 15; do
2313 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2314 done
2315 ac_signal=0
2316
2317 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2318 rm -f -r conftest* confdefs.h
2319
2320 $as_echo "/* confdefs.h */" > confdefs.h
2321
2322 # Predefined preprocessor variables.
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_NAME "$PACKAGE_NAME"
2326 _ACEOF
2327
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2330 _ACEOF
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2334 _ACEOF
2335
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_STRING "$PACKAGE_STRING"
2338 _ACEOF
2339
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2342 _ACEOF
2343
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_URL "$PACKAGE_URL"
2346 _ACEOF
2347
2348
2349 # Let the site file select an alternate cache file if it wants to.
2350 # Prefer an explicitly selected file to automatically selected ones.
2351 ac_site_file1=NONE
2352 ac_site_file2=NONE
2353 if test -n "$CONFIG_SITE"; then
2354 # We do not want a PATH search for config.site.
2355 case $CONFIG_SITE in #((
2356 -*) ac_site_file1=./$CONFIG_SITE;;
2357 */*) ac_site_file1=$CONFIG_SITE;;
2358 *) ac_site_file1=./$CONFIG_SITE;;
2359 esac
2360 elif test "x$prefix" != xNONE; then
2361 ac_site_file1=$prefix/share/config.site
2362 ac_site_file2=$prefix/etc/config.site
2363 else
2364 ac_site_file1=$ac_default_prefix/share/config.site
2365 ac_site_file2=$ac_default_prefix/etc/config.site
2366 fi
2367 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2368 do
2369 test "x$ac_site_file" = xNONE && continue
2370 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2372 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2373 sed 's/^/| /' "$ac_site_file" >&5
2374 . "$ac_site_file" \
2375 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2377 as_fn_error $? "failed to load site script $ac_site_file
2378 See \`config.log' for more details" "$LINENO" 5; }
2379 fi
2380 done
2381
2382 if test -r "$cache_file"; then
2383 # Some versions of bash will fail to source /dev/null (special files
2384 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2385 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2387 $as_echo "$as_me: loading cache $cache_file" >&6;}
2388 case $cache_file in
2389 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2390 *) . "./$cache_file";;
2391 esac
2392 fi
2393 else
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2395 $as_echo "$as_me: creating cache $cache_file" >&6;}
2396 >$cache_file
2397 fi
2398
2399 # Check that the precious variables saved in the cache have kept the same
2400 # value.
2401 ac_cache_corrupted=false
2402 for ac_var in $ac_precious_vars; do
2403 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2404 eval ac_new_set=\$ac_env_${ac_var}_set
2405 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2406 eval ac_new_val=\$ac_env_${ac_var}_value
2407 case $ac_old_set,$ac_new_set in
2408 set,)
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2410 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2411 ac_cache_corrupted=: ;;
2412 ,set)
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2414 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2415 ac_cache_corrupted=: ;;
2416 ,);;
2417 *)
2418 if test "x$ac_old_val" != "x$ac_new_val"; then
2419 # differences in whitespace do not lead to failure.
2420 ac_old_val_w=`echo x $ac_old_val`
2421 ac_new_val_w=`echo x $ac_new_val`
2422 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2424 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2425 ac_cache_corrupted=:
2426 else
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2428 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2429 eval $ac_var=\$ac_old_val
2430 fi
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2432 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2434 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2435 fi;;
2436 esac
2437 # Pass precious variables to config.status.
2438 if test "$ac_new_set" = set; then
2439 case $ac_new_val in
2440 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2441 *) ac_arg=$ac_var=$ac_new_val ;;
2442 esac
2443 case " $ac_configure_args " in
2444 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2445 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2446 esac
2447 fi
2448 done
2449 if $ac_cache_corrupted; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2453 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2454 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2455 fi
2456 ## -------------------- ##
2457 ## Main body of script. ##
2458 ## -------------------- ##
2459
2460 ac_ext=c
2461 ac_cpp='$CPP $CPPFLAGS'
2462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2465
2466
2467
2468
2469
2470 am__api_version='1.13'
2471
2472 ac_aux_dir=
2473 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2474 if test -f "$ac_dir/install-sh"; then
2475 ac_aux_dir=$ac_dir
2476 ac_install_sh="$ac_aux_dir/install-sh -c"
2477 break
2478 elif test -f "$ac_dir/install.sh"; then
2479 ac_aux_dir=$ac_dir
2480 ac_install_sh="$ac_aux_dir/install.sh -c"
2481 break
2482 elif test -f "$ac_dir/shtool"; then
2483 ac_aux_dir=$ac_dir
2484 ac_install_sh="$ac_aux_dir/shtool install -c"
2485 break
2486 fi
2487 done
2488 if test -z "$ac_aux_dir"; then
2489 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2490 fi
2491
2492 # These three variables are undocumented and unsupported,
2493 # and are intended to be withdrawn in a future Autoconf release.
2494 # They can cause serious problems if a builder's source tree is in a directory
2495 # whose full name contains unusual characters.
2496 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2497 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2498 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2499
2500
2501 # Find a good install program. We prefer a C program (faster),
2502 # so one script is as good as another. But avoid the broken or
2503 # incompatible versions:
2504 # SysV /etc/install, /usr/sbin/install
2505 # SunOS /usr/etc/install
2506 # IRIX /sbin/install
2507 # AIX /bin/install
2508 # AmigaOS /C/install, which installs bootblocks on floppy discs
2509 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2510 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2511 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2512 # OS/2's system install, which has a completely different semantic
2513 # ./install, which can be erroneously created by make from ./install.sh.
2514 # Reject install programs that cannot install multiple files.
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2516 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2517 if test -z "$INSTALL"; then
2518 if ${ac_cv_path_install+:} false; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2523 do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 # Account for people who put trailing slashes in PATH elements.
2527 case $as_dir/ in #((
2528 ./ | .// | /[cC]/* | \
2529 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2530 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2531 /usr/ucb/* ) ;;
2532 *)
2533 # OSF1 and SCO ODT 3.0 have their own names for install.
2534 # Don't use installbsd from OSF since it installs stuff as root
2535 # by default.
2536 for ac_prog in ginstall scoinst install; do
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2539 if test $ac_prog = install &&
2540 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2541 # AIX install. It has an incompatible calling convention.
2542 :
2543 elif test $ac_prog = install &&
2544 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2545 # program-specific install script used by HP pwplus--don't use.
2546 :
2547 else
2548 rm -rf conftest.one conftest.two conftest.dir
2549 echo one > conftest.one
2550 echo two > conftest.two
2551 mkdir conftest.dir
2552 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2553 test -s conftest.one && test -s conftest.two &&
2554 test -s conftest.dir/conftest.one &&
2555 test -s conftest.dir/conftest.two
2556 then
2557 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2558 break 3
2559 fi
2560 fi
2561 fi
2562 done
2563 done
2564 ;;
2565 esac
2566
2567 done
2568 IFS=$as_save_IFS
2569
2570 rm -rf conftest.one conftest.two conftest.dir
2571
2572 fi
2573 if test "${ac_cv_path_install+set}" = set; then
2574 INSTALL=$ac_cv_path_install
2575 else
2576 # As a last resort, use the slow shell script. Don't cache a
2577 # value for INSTALL within a source directory, because that will
2578 # break other packages using the cache if that directory is
2579 # removed, or if the value is a relative name.
2580 INSTALL=$ac_install_sh
2581 fi
2582 fi
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2584 $as_echo "$INSTALL" >&6; }
2585
2586 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2587 # It thinks the first close brace ends the variable substitution.
2588 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2589
2590 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2591
2592 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2593
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2595 $as_echo_n "checking whether build environment is sane... " >&6; }
2596 # Reject unsafe characters in $srcdir or the absolute working directory
2597 # name. Accept space and tab only in the latter.
2598 am_lf='
2599 '
2600 case `pwd` in
2601 *[\\\"\#\$\&\'\`$am_lf]*)
2602 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2603 esac
2604 case $srcdir in
2605 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2606 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2607 esac
2608
2609 # Do 'set' in a subshell so we don't clobber the current shell's
2610 # arguments. Must try -L first in case configure is actually a
2611 # symlink; some systems play weird games with the mod time of symlinks
2612 # (eg FreeBSD returns the mod time of the symlink's containing
2613 # directory).
2614 if (
2615 am_has_slept=no
2616 for am_try in 1 2; do
2617 echo "timestamp, slept: $am_has_slept" > conftest.file
2618 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2619 if test "$*" = "X"; then
2620 # -L didn't work.
2621 set X `ls -t "$srcdir/configure" conftest.file`
2622 fi
2623 if test "$*" != "X $srcdir/configure conftest.file" \
2624 && test "$*" != "X conftest.file $srcdir/configure"; then
2625
2626 # If neither matched, then we have a broken ls. This can happen
2627 # if, for instance, CONFIG_SHELL is bash and it inherits a
2628 # broken ls alias from the environment. This has actually
2629 # happened. Such a system could not be considered "sane".
2630 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2631 alias in your environment" "$LINENO" 5
2632 fi
2633 if test "$2" = conftest.file || test $am_try -eq 2; then
2634 break
2635 fi
2636 # Just in case.
2637 sleep 1
2638 am_has_slept=yes
2639 done
2640 test "$2" = conftest.file
2641 )
2642 then
2643 # Ok.
2644 :
2645 else
2646 as_fn_error $? "newly created file is older than distributed files!
2647 Check your system clock" "$LINENO" 5
2648 fi
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2650 $as_echo "yes" >&6; }
2651 # If we didn't sleep, we still need to ensure time stamps of config.status and
2652 # generated files are strictly newer.
2653 am_sleep_pid=
2654 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2655 ( sleep 1 ) &
2656 am_sleep_pid=$!
2657 fi
2658
2659 rm -f conftest.file
2660
2661 test "$program_prefix" != NONE &&
2662 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2663 # Use a double $ so make ignores it.
2664 test "$program_suffix" != NONE &&
2665 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2666 # Double any \ or $.
2667 # By default was `s,x,x', remove it if useless.
2668 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2669 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2670
2671 # expand $ac_aux_dir to an absolute path
2672 am_aux_dir=`cd $ac_aux_dir && pwd`
2673
2674 if test x"${MISSING+set}" != xset; then
2675 case $am_aux_dir in
2676 *\ * | *\ *)
2677 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2678 *)
2679 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2680 esac
2681 fi
2682 # Use eval to expand $SHELL
2683 if eval "$MISSING --is-lightweight"; then
2684 am_missing_run="$MISSING "
2685 else
2686 am_missing_run=
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2688 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2689 fi
2690
2691 if test x"${install_sh}" != xset; then
2692 case $am_aux_dir in
2693 *\ * | *\ *)
2694 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2695 *)
2696 install_sh="\${SHELL} $am_aux_dir/install-sh"
2697 esac
2698 fi
2699
2700 # Installed binaries are usually stripped using 'strip' when the user
2701 # run "make install-strip". However 'strip' might not be the right
2702 # tool to use in cross-compilation environments, therefore Automake
2703 # will honor the 'STRIP' environment variable to overrule this program.
2704 if test "$cross_compiling" != no; then
2705 if test -n "$ac_tool_prefix"; then
2706 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2707 set dummy ${ac_tool_prefix}strip; ac_word=$2
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709 $as_echo_n "checking for $ac_word... " >&6; }
2710 if ${ac_cv_prog_STRIP+:} false; then :
2711 $as_echo_n "(cached) " >&6
2712 else
2713 if test -n "$STRIP"; then
2714 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2715 else
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 for as_dir in $PATH
2718 do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2723 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 break 2
2726 fi
2727 done
2728 done
2729 IFS=$as_save_IFS
2730
2731 fi
2732 fi
2733 STRIP=$ac_cv_prog_STRIP
2734 if test -n "$STRIP"; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2736 $as_echo "$STRIP" >&6; }
2737 else
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739 $as_echo "no" >&6; }
2740 fi
2741
2742
2743 fi
2744 if test -z "$ac_cv_prog_STRIP"; then
2745 ac_ct_STRIP=$STRIP
2746 # Extract the first word of "strip", so it can be a program name with args.
2747 set dummy strip; ac_word=$2
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749 $as_echo_n "checking for $ac_word... " >&6; }
2750 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 if test -n "$ac_ct_STRIP"; then
2754 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2763 ac_cv_prog_ac_ct_STRIP="strip"
2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 break 2
2766 fi
2767 done
2768 done
2769 IFS=$as_save_IFS
2770
2771 fi
2772 fi
2773 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2774 if test -n "$ac_ct_STRIP"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2776 $as_echo "$ac_ct_STRIP" >&6; }
2777 else
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2780 fi
2781
2782 if test "x$ac_ct_STRIP" = x; then
2783 STRIP=":"
2784 else
2785 case $cross_compiling:$ac_tool_warned in
2786 yes:)
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2789 ac_tool_warned=yes ;;
2790 esac
2791 STRIP=$ac_ct_STRIP
2792 fi
2793 else
2794 STRIP="$ac_cv_prog_STRIP"
2795 fi
2796
2797 fi
2798 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2799
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2801 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2802 if test -z "$MKDIR_P"; then
2803 if ${ac_cv_path_mkdir+:} false; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2808 do
2809 IFS=$as_save_IFS
2810 test -z "$as_dir" && as_dir=.
2811 for ac_prog in mkdir gmkdir; do
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2814 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2815 'mkdir (GNU coreutils) '* | \
2816 'mkdir (coreutils) '* | \
2817 'mkdir (fileutils) '4.1*)
2818 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2819 break 3;;
2820 esac
2821 done
2822 done
2823 done
2824 IFS=$as_save_IFS
2825
2826 fi
2827
2828 test -d ./--version && rmdir ./--version
2829 if test "${ac_cv_path_mkdir+set}" = set; then
2830 MKDIR_P="$ac_cv_path_mkdir -p"
2831 else
2832 # As a last resort, use the slow shell script. Don't cache a
2833 # value for MKDIR_P within a source directory, because that will
2834 # break other packages using the cache if that directory is
2835 # removed, or if the value is a relative name.
2836 MKDIR_P="$ac_install_sh -d"
2837 fi
2838 fi
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2840 $as_echo "$MKDIR_P" >&6; }
2841
2842 for ac_prog in gawk mawk nawk awk
2843 do
2844 # Extract the first word of "$ac_prog", so it can be a program name with args.
2845 set dummy $ac_prog; ac_word=$2
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 $as_echo_n "checking for $ac_word... " >&6; }
2848 if ${ac_cv_prog_AWK+:} false; then :
2849 $as_echo_n "(cached) " >&6
2850 else
2851 if test -n "$AWK"; then
2852 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2853 else
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 for as_dir in $PATH
2856 do
2857 IFS=$as_save_IFS
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2861 ac_cv_prog_AWK="$ac_prog"
2862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 break 2
2864 fi
2865 done
2866 done
2867 IFS=$as_save_IFS
2868
2869 fi
2870 fi
2871 AWK=$ac_cv_prog_AWK
2872 if test -n "$AWK"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2874 $as_echo "$AWK" >&6; }
2875 else
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 $as_echo "no" >&6; }
2878 fi
2879
2880
2881 test -n "$AWK" && break
2882 done
2883
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2885 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2886 set x ${MAKE-make}
2887 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2888 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 cat >conftest.make <<\_ACEOF
2892 SHELL = /bin/sh
2893 all:
2894 @echo '@@@%%%=$(MAKE)=@@@%%%'
2895 _ACEOF
2896 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2897 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2898 *@@@%%%=?*=@@@%%%*)
2899 eval ac_cv_prog_make_${ac_make}_set=yes;;
2900 *)
2901 eval ac_cv_prog_make_${ac_make}_set=no;;
2902 esac
2903 rm -f conftest.make
2904 fi
2905 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2907 $as_echo "yes" >&6; }
2908 SET_MAKE=
2909 else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2912 SET_MAKE="MAKE=${MAKE-make}"
2913 fi
2914
2915 rm -rf .tst 2>/dev/null
2916 mkdir .tst 2>/dev/null
2917 if test -d .tst; then
2918 am__leading_dot=.
2919 else
2920 am__leading_dot=_
2921 fi
2922 rmdir .tst 2>/dev/null
2923
2924 # Check whether --enable-silent-rules was given.
2925 if test "${enable_silent_rules+set}" = set; then :
2926 enableval=$enable_silent_rules;
2927 fi
2928
2929 case $enable_silent_rules in # (((
2930 yes) AM_DEFAULT_VERBOSITY=0;;
2931 no) AM_DEFAULT_VERBOSITY=1;;
2932 *) AM_DEFAULT_VERBOSITY=1;;
2933 esac
2934 am_make=${MAKE-make}
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2936 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2937 if ${am_cv_make_support_nested_variables+:} false; then :
2938 $as_echo_n "(cached) " >&6
2939 else
2940 if $as_echo 'TRUE=$(BAR$(V))
2941 BAR0=false
2942 BAR1=true
2943 V=1
2944 am__doit:
2945 @$(TRUE)
2946 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2947 am_cv_make_support_nested_variables=yes
2948 else
2949 am_cv_make_support_nested_variables=no
2950 fi
2951 fi
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2953 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2954 if test $am_cv_make_support_nested_variables = yes; then
2955 AM_V='$(V)'
2956 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2957 else
2958 AM_V=$AM_DEFAULT_VERBOSITY
2959 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2960 fi
2961 AM_BACKSLASH='\'
2962
2963 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2964 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2965 # is not polluted with repeated "-I."
2966 am__isrc=' -I$(srcdir)'
2967 # test to see if srcdir already configured
2968 if test -f $srcdir/config.status; then
2969 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2970 fi
2971 fi
2972
2973 # test whether we have cygpath
2974 if test -z "$CYGPATH_W"; then
2975 if (cygpath --version) >/dev/null 2>/dev/null; then
2976 CYGPATH_W='cygpath -w'
2977 else
2978 CYGPATH_W=echo
2979 fi
2980 fi
2981
2982
2983 # Define the identity of the package.
2984 PACKAGE='courier-authlib'
2985 VERSION='0.66.1'
2986
2987
2988 cat >>confdefs.h <<_ACEOF
2989 #define PACKAGE "$PACKAGE"
2990 _ACEOF
2991
2992
2993 cat >>confdefs.h <<_ACEOF
2994 #define VERSION "$VERSION"
2995 _ACEOF
2996
2997 # Some tools Automake needs.
2998
2999 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3000
3001
3002 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3003
3004
3005 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3006
3007
3008 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3009
3010
3011 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3012
3013 # For better backward compatibility. To be removed once Automake 1.9.x
3014 # dies out for good. For more background, see:
3015 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3016 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3017 mkdir_p='$(MKDIR_P)'
3018
3019 # We need awk for the "check" target. The system "awk" is bad on
3020 # some platforms.
3021 # Always define AMTAR for backward compatibility. Yes, it's still used
3022 # in the wild :-( We should find a proper way to deprecate it ...
3023 AMTAR='$${TAR-tar}'
3024
3025
3026 # We'll loop over all known methods to create a tar archive until one works.
3027 _am_tools='gnutar pax cpio none'
3028
3029 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3030
3031
3032
3033
3034
3035
3036 ac_config_headers="$ac_config_headers courier_auth_config.h"
3037
3038 >confdefs.h # Kill PACKAGE_ macros
3039
3040 LPATH="$PATH:/usr/local/bin"
3041
3042 for ac_prog in gawk mawk nawk awk
3043 do
3044 # Extract the first word of "$ac_prog", so it can be a program name with args.
3045 set dummy $ac_prog; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_AWK+:} false; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 if test -n "$AWK"; then
3052 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_prog_AWK="$ac_prog"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
3065 done
3066 done
3067 IFS=$as_save_IFS
3068
3069 fi
3070 fi
3071 AWK=$ac_cv_prog_AWK
3072 if test -n "$AWK"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3074 $as_echo "$AWK" >&6; }
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 fi
3079
3080
3081 test -n "$AWK" && break
3082 done
3083
3084 ac_ext=c
3085 ac_cpp='$CPP $CPPFLAGS'
3086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3089 if test -n "$ac_tool_prefix"; then
3090 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3091 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if ${ac_cv_prog_CC+:} false; then :
3095 $as_echo_n "(cached) " >&6
3096 else
3097 if test -n "$CC"; then
3098 ac_cv_prog_CC="$CC" # Let the user override the test.
3099 else
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 for as_dir in $PATH
3102 do
3103 IFS=$as_save_IFS
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3107 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 break 2
3110 fi
3111 done
3112 done
3113 IFS=$as_save_IFS
3114
3115 fi
3116 fi
3117 CC=$ac_cv_prog_CC
3118 if test -n "$CC"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3120 $as_echo "$CC" >&6; }
3121 else
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3124 fi
3125
3126
3127 fi
3128 if test -z "$ac_cv_prog_CC"; then
3129 ac_ct_CC=$CC
3130 # Extract the first word of "gcc", so it can be a program name with args.
3131 set dummy gcc; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3135 $as_echo_n "(cached) " >&6
3136 else
3137 if test -n "$ac_ct_CC"; then
3138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147 ac_cv_prog_ac_ct_CC="gcc"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3150 fi
3151 done
3152 done
3153 IFS=$as_save_IFS
3154
3155 fi
3156 fi
3157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158 if test -n "$ac_ct_CC"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3160 $as_echo "$ac_ct_CC" >&6; }
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3164 fi
3165
3166 if test "x$ac_ct_CC" = x; then
3167 CC=""
3168 else
3169 case $cross_compiling:$ac_tool_warned in
3170 yes:)
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3173 ac_tool_warned=yes ;;
3174 esac
3175 CC=$ac_ct_CC
3176 fi
3177 else
3178 CC="$ac_cv_prog_CC"
3179 fi
3180
3181 if test -z "$CC"; then
3182 if test -n "$ac_tool_prefix"; then
3183 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3184 set dummy ${ac_tool_prefix}cc; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_prog_CC+:} false; then :
3188 $as_echo_n "(cached) " >&6
3189 else
3190 if test -n "$CC"; then
3191 ac_cv_prog_CC="$CC" # Let the user override the test.
3192 else
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH
3195 do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200 ac_cv_prog_CC="${ac_tool_prefix}cc"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 break 2
3203 fi
3204 done
3205 done
3206 IFS=$as_save_IFS
3207
3208 fi
3209 fi
3210 CC=$ac_cv_prog_CC
3211 if test -n "$CC"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3213 $as_echo "$CC" >&6; }
3214 else
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 fi
3218
3219
3220 fi
3221 fi
3222 if test -z "$CC"; then
3223 # Extract the first word of "cc", so it can be a program name with args.
3224 set dummy cc; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_CC+:} false; then :
3228 $as_echo_n "(cached) " >&6
3229 else
3230 if test -n "$CC"; then
3231 ac_cv_prog_CC="$CC" # Let the user override the test.
3232 else
3233 ac_prog_rejected=no
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3242 ac_prog_rejected=yes
3243 continue
3244 fi
3245 ac_cv_prog_CC="cc"
3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 break 2
3248 fi
3249 done
3250 done
3251 IFS=$as_save_IFS
3252
3253 if test $ac_prog_rejected = yes; then
3254 # We found a bogon in the path, so make sure we never use it.
3255 set dummy $ac_cv_prog_CC
3256 shift
3257 if test $# != 0; then
3258 # We chose a different compiler from the bogus one.
3259 # However, it has the same basename, so the bogon will be chosen
3260 # first if we set CC to just the basename; use the full file name.
3261 shift
3262 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3263 fi
3264 fi
3265 fi
3266 fi
3267 CC=$ac_cv_prog_CC
3268 if test -n "$CC"; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270 $as_echo "$CC" >&6; }
3271 else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 fi
3275
3276
3277 fi
3278 if test -z "$CC"; then
3279 if test -n "$ac_tool_prefix"; then
3280 for ac_prog in cl.exe
3281 do
3282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if ${ac_cv_prog_CC+:} false; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 if test -n "$CC"; then
3290 ac_cv_prog_CC="$CC" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 break 2
3302 fi
3303 done
3304 done
3305 IFS=$as_save_IFS
3306
3307 fi
3308 fi
3309 CC=$ac_cv_prog_CC
3310 if test -n "$CC"; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3312 $as_echo "$CC" >&6; }
3313 else
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315 $as_echo "no" >&6; }
3316 fi
3317
3318
3319 test -n "$CC" && break
3320 done
3321 fi
3322 if test -z "$CC"; then
3323 ac_ct_CC=$CC
3324 for ac_prog in cl.exe
3325 do
3326 # Extract the first word of "$ac_prog", so it can be a program name with args.
3327 set dummy $ac_prog; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3331 $as_echo_n "(cached) " >&6
3332 else
3333 if test -n "$ac_ct_CC"; then
3334 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343 ac_cv_prog_ac_ct_CC="$ac_prog"
3344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 break 2
3346 fi
3347 done
3348 done
3349 IFS=$as_save_IFS
3350
3351 fi
3352 fi
3353 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3354 if test -n "$ac_ct_CC"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3356 $as_echo "$ac_ct_CC" >&6; }
3357 else
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 fi
3361
3362
3363 test -n "$ac_ct_CC" && break
3364 done
3365
3366 if test "x$ac_ct_CC" = x; then
3367 CC=""
3368 else
3369 case $cross_compiling:$ac_tool_warned in
3370 yes:)
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3373 ac_tool_warned=yes ;;
3374 esac
3375 CC=$ac_ct_CC
3376 fi
3377 fi
3378
3379 fi
3380
3381
3382 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384 as_fn_error $? "no acceptable C compiler found in \$PATH
3385 See \`config.log' for more details" "$LINENO" 5; }
3386
3387 # Provide some information about the compiler.
3388 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3389 set X $ac_compile
3390 ac_compiler=$2
3391 for ac_option in --version -v -V -qversion; do
3392 { { ac_try="$ac_compiler $ac_option >&5"
3393 case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396 esac
3397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 $as_echo "$ac_try_echo"; } >&5
3399 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3400 ac_status=$?
3401 if test -s conftest.err; then
3402 sed '10a\
3403 ... rest of stderr output deleted ...
3404 10q' conftest.err >conftest.er1
3405 cat conftest.er1 >&5
3406 fi
3407 rm -f conftest.er1 conftest.err
3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409 test $ac_status = 0; }
3410 done
3411
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3414
3415 int
3416 main ()
3417 {
3418
3419 ;
3420 return 0;
3421 }
3422 _ACEOF
3423 ac_clean_files_save=$ac_clean_files
3424 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3425 # Try to create an executable without -o first, disregard a.out.
3426 # It will help us diagnose broken compilers, and finding out an intuition
3427 # of exeext.
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3429 $as_echo_n "checking whether the C compiler works... " >&6; }
3430 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3431
3432 # The possible output files:
3433 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3434
3435 ac_rmfiles=
3436 for ac_file in $ac_files
3437 do
3438 case $ac_file in
3439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3440 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3441 esac
3442 done
3443 rm -f $ac_rmfiles
3444
3445 if { { ac_try="$ac_link_default"
3446 case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449 esac
3450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451 $as_echo "$ac_try_echo"; } >&5
3452 (eval "$ac_link_default") 2>&5
3453 ac_status=$?
3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455 test $ac_status = 0; }; then :
3456 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3457 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3458 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3459 # so that the user can short-circuit this test for compilers unknown to
3460 # Autoconf.
3461 for ac_file in $ac_files ''
3462 do
3463 test -f "$ac_file" || continue
3464 case $ac_file in
3465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3466 ;;
3467 [ab].out )
3468 # We found the default executable, but exeext='' is most
3469 # certainly right.
3470 break;;
3471 *.* )
3472 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3473 then :; else
3474 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3475 fi
3476 # We set ac_cv_exeext here because the later test for it is not
3477 # safe: cross compilers may not add the suffix if given an `-o'
3478 # argument, so we may need to know it at that point already.
3479 # Even if this section looks crufty: it has the advantage of
3480 # actually working.
3481 break;;
3482 * )
3483 break;;
3484 esac
3485 done
3486 test "$ac_cv_exeext" = no && ac_cv_exeext=
3487
3488 else
3489 ac_file=''
3490 fi
3491 if test -z "$ac_file"; then :
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 $as_echo "no" >&6; }
3494 $as_echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3496
3497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499 as_fn_error 77 "C compiler cannot create executables
3500 See \`config.log' for more details" "$LINENO" 5; }
3501 else
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3503 $as_echo "yes" >&6; }
3504 fi
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3506 $as_echo_n "checking for C compiler default output file name... " >&6; }
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3508 $as_echo "$ac_file" >&6; }
3509 ac_exeext=$ac_cv_exeext
3510
3511 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3512 ac_clean_files=$ac_clean_files_save
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3514 $as_echo_n "checking for suffix of executables... " >&6; }
3515 if { { ac_try="$ac_link"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521 $as_echo "$ac_try_echo"; } >&5
3522 (eval "$ac_link") 2>&5
3523 ac_status=$?
3524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525 test $ac_status = 0; }; then :
3526 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3527 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3528 # work properly (i.e., refer to `conftest.exe'), while it won't with
3529 # `rm'.
3530 for ac_file in conftest.exe conftest conftest.*; do
3531 test -f "$ac_file" || continue
3532 case $ac_file in
3533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3534 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3535 break;;
3536 * ) break;;
3537 esac
3538 done
3539 else
3540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3543 See \`config.log' for more details" "$LINENO" 5; }
3544 fi
3545 rm -f conftest conftest$ac_cv_exeext
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3547 $as_echo "$ac_cv_exeext" >&6; }
3548
3549 rm -f conftest.$ac_ext
3550 EXEEXT=$ac_cv_exeext
3551 ac_exeext=$EXEEXT
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3554 #include <stdio.h>
3555 int
3556 main ()
3557 {
3558 FILE *f = fopen ("conftest.out", "w");
3559 return ferror (f) || fclose (f) != 0;
3560
3561 ;
3562 return 0;
3563 }
3564 _ACEOF
3565 ac_clean_files="$ac_clean_files conftest.out"
3566 # Check that the compiler produces executables we can run. If not, either
3567 # the compiler is broken, or we cross compile.
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3569 $as_echo_n "checking whether we are cross compiling... " >&6; }
3570 if test "$cross_compiling" != yes; then
3571 { { ac_try="$ac_link"
3572 case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_link") 2>&5
3579 ac_status=$?
3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581 test $ac_status = 0; }
3582 if { ac_try='./conftest$ac_cv_exeext'
3583 { { case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588 $as_echo "$ac_try_echo"; } >&5
3589 (eval "$ac_try") 2>&5
3590 ac_status=$?
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592 test $ac_status = 0; }; }; then
3593 cross_compiling=no
3594 else
3595 if test "$cross_compiling" = maybe; then
3596 cross_compiling=yes
3597 else
3598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600 as_fn_error $? "cannot run C compiled programs.
3601 If you meant to cross compile, use \`--host'.
3602 See \`config.log' for more details" "$LINENO" 5; }
3603 fi
3604 fi
3605 fi
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3607 $as_echo "$cross_compiling" >&6; }
3608
3609 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3610 ac_clean_files=$ac_clean_files_save
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3612 $as_echo_n "checking for suffix of object files... " >&6; }
3613 if ${ac_cv_objext+:} false; then :
3614 $as_echo_n "(cached) " >&6
3615 else
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3618
3619 int
3620 main ()
3621 {
3622
3623 ;
3624 return 0;
3625 }
3626 _ACEOF
3627 rm -f conftest.o conftest.obj
3628 if { { ac_try="$ac_compile"
3629 case "(($ac_try" in
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3632 esac
3633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3634 $as_echo "$ac_try_echo"; } >&5
3635 (eval "$ac_compile") 2>&5
3636 ac_status=$?
3637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3638 test $ac_status = 0; }; then :
3639 for ac_file in conftest.o conftest.obj conftest.*; do
3640 test -f "$ac_file" || continue;
3641 case $ac_file in
3642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3643 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3644 break;;
3645 esac
3646 done
3647 else
3648 $as_echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3650
3651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3653 as_fn_error $? "cannot compute suffix of object files: cannot compile
3654 See \`config.log' for more details" "$LINENO" 5; }
3655 fi
3656 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3659 $as_echo "$ac_cv_objext" >&6; }
3660 OBJEXT=$ac_cv_objext
3661 ac_objext=$OBJEXT
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3663 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3664 if ${ac_cv_c_compiler_gnu+:} false; then :
3665 $as_echo_n "(cached) " >&6
3666 else
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3669
3670 int
3671 main ()
3672 {
3673 #ifndef __GNUC__
3674 choke me
3675 #endif
3676
3677 ;
3678 return 0;
3679 }
3680 _ACEOF
3681 if ac_fn_c_try_compile "$LINENO"; then :
3682 ac_compiler_gnu=yes
3683 else
3684 ac_compiler_gnu=no
3685 fi
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3688
3689 fi
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3691 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3692 if test $ac_compiler_gnu = yes; then
3693 GCC=yes
3694 else
3695 GCC=
3696 fi
3697 ac_test_CFLAGS=${CFLAGS+set}
3698 ac_save_CFLAGS=$CFLAGS
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3700 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3701 if ${ac_cv_prog_cc_g+:} false; then :
3702 $as_echo_n "(cached) " >&6
3703 else
3704 ac_save_c_werror_flag=$ac_c_werror_flag
3705 ac_c_werror_flag=yes
3706 ac_cv_prog_cc_g=no
3707 CFLAGS="-g"
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710
3711 int
3712 main ()
3713 {
3714
3715 ;
3716 return 0;
3717 }
3718 _ACEOF
3719 if ac_fn_c_try_compile "$LINENO"; then :
3720 ac_cv_prog_cc_g=yes
3721 else
3722 CFLAGS=""
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3725
3726 int
3727 main ()
3728 {
3729
3730 ;
3731 return 0;
3732 }
3733 _ACEOF
3734 if ac_fn_c_try_compile "$LINENO"; then :
3735
3736 else
3737 ac_c_werror_flag=$ac_save_c_werror_flag
3738 CFLAGS="-g"
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3741
3742 int
3743 main ()
3744 {
3745
3746 ;
3747 return 0;
3748 }
3749 _ACEOF
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751 ac_cv_prog_cc_g=yes
3752 fi
3753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754 fi
3755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756 fi
3757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758 ac_c_werror_flag=$ac_save_c_werror_flag
3759 fi
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3761 $as_echo "$ac_cv_prog_cc_g" >&6; }
3762 if test "$ac_test_CFLAGS" = set; then
3763 CFLAGS=$ac_save_CFLAGS
3764 elif test $ac_cv_prog_cc_g = yes; then
3765 if test "$GCC" = yes; then
3766 CFLAGS="-g -O2"
3767 else
3768 CFLAGS="-g"
3769 fi
3770 else
3771 if test "$GCC" = yes; then
3772 CFLAGS="-O2"
3773 else
3774 CFLAGS=
3775 fi
3776 fi
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3778 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3779 if ${ac_cv_prog_cc_c89+:} false; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 ac_cv_prog_cc_c89=no
3783 ac_save_CC=$CC
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3786 #include <stdarg.h>
3787 #include <stdio.h>
3788 struct stat;
3789 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3790 struct buf { int x; };
3791 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3792 static char *e (p, i)
3793 char **p;
3794 int i;
3795 {
3796 return p[i];
3797 }
3798 static char *f (char * (*g) (char **, int), char **p, ...)
3799 {
3800 char *s;
3801 va_list v;
3802 va_start (v,p);
3803 s = g (p, va_arg (v,int));
3804 va_end (v);
3805 return s;
3806 }
3807
3808 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3809 function prototypes and stuff, but not '\xHH' hex character constants.
3810 These don't provoke an error unfortunately, instead are silently treated
3811 as 'x'. The following induces an error, until -std is added to get
3812 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3813 array size at least. It's necessary to write '\x00'==0 to get something
3814 that's true only with -std. */
3815 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3816
3817 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3818 inside strings and character constants. */
3819 #define FOO(x) 'x'
3820 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3821
3822 int test (int i, double x);
3823 struct s1 {int (*f) (int a);};
3824 struct s2 {int (*f) (double a);};
3825 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3826 int argc;
3827 char **argv;
3828 int
3829 main ()
3830 {
3831 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3832 ;
3833 return 0;
3834 }
3835 _ACEOF
3836 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3837 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3838 do
3839 CC="$ac_save_CC $ac_arg"
3840 if ac_fn_c_try_compile "$LINENO"; then :
3841 ac_cv_prog_cc_c89=$ac_arg
3842 fi
3843 rm -f core conftest.err conftest.$ac_objext
3844 test "x$ac_cv_prog_cc_c89" != "xno" && break
3845 done
3846 rm -f conftest.$ac_ext
3847 CC=$ac_save_CC
3848
3849 fi
3850 # AC_CACHE_VAL
3851 case "x$ac_cv_prog_cc_c89" in
3852 x)
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3854 $as_echo "none needed" >&6; } ;;
3855 xno)
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3857 $as_echo "unsupported" >&6; } ;;
3858 *)
3859 CC="$CC $ac_cv_prog_cc_c89"
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3861 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3862 esac
3863 if test "x$ac_cv_prog_cc_c89" != xno; then :
3864
3865 fi
3866
3867 ac_ext=c
3868 ac_cpp='$CPP $CPPFLAGS'
3869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3872 DEPDIR="${am__leading_dot}deps"
3873
3874 ac_config_commands="$ac_config_commands depfiles"
3875
3876
3877 am_make=${MAKE-make}
3878 cat > confinc << 'END'
3879 am__doit:
3880 @echo this is the am__doit target
3881 .PHONY: am__doit
3882 END
3883 # If we don't find an include directive, just comment out the code.
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3885 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3886 am__include="#"
3887 am__quote=
3888 _am_result=none
3889 # First try GNU make style include.
3890 echo "include confinc" > confmf
3891 # Ignore all kinds of additional output from 'make'.
3892 case `$am_make -s -f confmf 2> /dev/null` in #(
3893 *the\ am__doit\ target*)
3894 am__include=include
3895 am__quote=
3896 _am_result=GNU
3897 ;;
3898 esac
3899 # Now try BSD make style include.
3900 if test "$am__include" = "#"; then
3901 echo '.include "confinc"' > confmf
3902 case `$am_make -s -f confmf 2> /dev/null` in #(
3903 *the\ am__doit\ target*)
3904 am__include=.include
3905 am__quote="\""
3906 _am_result=BSD
3907 ;;
3908 esac
3909 fi
3910
3911
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3913 $as_echo "$_am_result" >&6; }
3914 rm -f confinc confmf
3915
3916 # Check whether --enable-dependency-tracking was given.
3917 if test "${enable_dependency_tracking+set}" = set; then :
3918 enableval=$enable_dependency_tracking;
3919 fi
3920
3921 if test "x$enable_dependency_tracking" != xno; then
3922 am_depcomp="$ac_aux_dir/depcomp"
3923 AMDEPBACKSLASH='\'
3924 am__nodep='_no'
3925 fi
3926 if test "x$enable_dependency_tracking" != xno; then
3927 AMDEP_TRUE=
3928 AMDEP_FALSE='#'
3929 else
3930 AMDEP_TRUE='#'
3931 AMDEP_FALSE=
3932 fi
3933
3934
3935
3936 depcc="$CC" am_compiler_list=
3937
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3939 $as_echo_n "checking dependency style of $depcc... " >&6; }
3940 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3944 # We make a subdir and do the tests there. Otherwise we can end up
3945 # making bogus files that we don't know about and never remove. For
3946 # instance it was reported that on HP-UX the gcc test will end up
3947 # making a dummy file named 'D' -- because '-MD' means "put the output
3948 # in D".
3949 rm -rf conftest.dir
3950 mkdir conftest.dir
3951 # Copy depcomp to subdir because otherwise we won't find it if we're
3952 # using a relative directory.
3953 cp "$am_depcomp" conftest.dir
3954 cd conftest.dir
3955 # We will build objects and dependencies in a subdirectory because
3956 # it helps to detect inapplicable dependency modes. For instance
3957 # both Tru64's cc and ICC support -MD to output dependencies as a
3958 # side effect of compilation, but ICC will put the dependencies in
3959 # the current directory while Tru64 will put them in the object
3960 # directory.
3961 mkdir sub
3962
3963 am_cv_CC_dependencies_compiler_type=none
3964 if test "$am_compiler_list" = ""; then
3965 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3966 fi
3967 am__universal=false
3968 case " $depcc " in #(
3969 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3970 esac
3971
3972 for depmode in $am_compiler_list; do
3973 # Setup a source with many dependencies, because some compilers
3974 # like to wrap large dependency lists on column 80 (with \), and
3975 # we should not choose a depcomp mode which is confused by this.
3976 #
3977 # We need to recreate these files for each test, as the compiler may
3978 # overwrite some of them when testing with obscure command lines.
3979 # This happens at least with the AIX C compiler.
3980 : > sub/conftest.c
3981 for i in 1 2 3 4 5 6; do
3982 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3983 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3984 # Solaris 10 /bin/sh.
3985 echo '/* dummy */' > sub/conftst$i.h
3986 done
3987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3988
3989 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3990 # mode. It turns out that the SunPro C++ compiler does not properly
3991 # handle '-M -o', and we need to detect this. Also, some Intel
3992 # versions had trouble with output in subdirs.
3993 am__obj=sub/conftest.${OBJEXT-o}
3994 am__minus_obj="-o $am__obj"
3995 case $depmode in
3996 gcc)
3997 # This depmode causes a compiler race in universal mode.
3998 test "$am__universal" = false || continue
3999 ;;
4000 nosideeffect)
4001 # After this tag, mechanisms are not by side-effect, so they'll
4002 # only be used when explicitly requested.
4003 if test "x$enable_dependency_tracking" = xyes; then
4004 continue
4005 else
4006 break
4007 fi
4008 ;;
4009 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4010 # This compiler won't grok '-c -o', but also, the minuso test has
4011 # not run yet. These depmodes are late enough in the game, and
4012 # so weak that their functioning should not be impacted.
4013 am__obj=conftest.${OBJEXT-o}
4014 am__minus_obj=
4015 ;;
4016 none) break ;;
4017 esac
4018 if depmode=$depmode \
4019 source=sub/conftest.c object=$am__obj \
4020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4021 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4022 >/dev/null 2>conftest.err &&
4023 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4024 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4025 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4026 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4027 # icc doesn't choke on unknown options, it will just issue warnings
4028 # or remarks (even with -Werror). So we grep stderr for any message
4029 # that says an option was ignored or not supported.
4030 # When given -MP, icc 7.0 and 7.1 complain thusly:
4031 # icc: Command line warning: ignoring option '-M'; no argument required
4032 # The diagnosis changed in icc 8.0:
4033 # icc: Command line remark: option '-MP' not supported
4034 if (grep 'ignoring option' conftest.err ||
4035 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4036 am_cv_CC_dependencies_compiler_type=$depmode
4037 break
4038 fi
4039 fi
4040 done
4041
4042 cd ..
4043 rm -rf conftest.dir
4044 else
4045 am_cv_CC_dependencies_compiler_type=none
4046 fi
4047
4048 fi
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4050 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4051 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4052
4053 if
4054 test "x$enable_dependency_tracking" != xno \
4055 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4056 am__fastdepCC_TRUE=
4057 am__fastdepCC_FALSE='#'
4058 else
4059 am__fastdepCC_TRUE='#'
4060 am__fastdepCC_FALSE=
4061 fi
4062
4063
4064 ac_ext=c
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4070 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4071 # On Suns, sometimes $CPP names a directory.
4072 if test -n "$CPP" && test -d "$CPP"; then
4073 CPP=
4074 fi
4075 if test -z "$CPP"; then
4076 if ${ac_cv_prog_CPP+:} false; then :
4077 $as_echo_n "(cached) " >&6
4078 else
4079 # Double quotes because CPP needs to be expanded
4080 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4081 do
4082 ac_preproc_ok=false
4083 for ac_c_preproc_warn_flag in '' yes
4084 do
4085 # Use a header file that comes with gcc, so configuring glibc
4086 # with a fresh cross-compiler works.
4087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4088 # <limits.h> exists even on freestanding compilers.
4089 # On the NeXT, cc -E runs the code through the compiler's parser,
4090 # not just through cpp. "Syntax error" is here to catch this case.
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4093 #ifdef __STDC__
4094 # include <limits.h>
4095 #else
4096 # include <assert.h>
4097 #endif
4098 Syntax error
4099 _ACEOF
4100 if ac_fn_c_try_cpp "$LINENO"; then :
4101
4102 else
4103 # Broken: fails on valid input.
4104 continue
4105 fi
4106 rm -f conftest.err conftest.i conftest.$ac_ext
4107
4108 # OK, works on sane cases. Now check whether nonexistent headers
4109 # can be detected and how.
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112 #include <ac_nonexistent.h>
4113 _ACEOF
4114 if ac_fn_c_try_cpp "$LINENO"; then :
4115 # Broken: success on invalid input.
4116 continue
4117 else
4118 # Passes both tests.
4119 ac_preproc_ok=:
4120 break
4121 fi
4122 rm -f conftest.err conftest.i conftest.$ac_ext
4123
4124 done
4125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4126 rm -f conftest.i conftest.err conftest.$ac_ext
4127 if $ac_preproc_ok; then :
4128 break
4129 fi
4130
4131 done
4132 ac_cv_prog_CPP=$CPP
4133
4134 fi
4135 CPP=$ac_cv_prog_CPP
4136 else
4137 ac_cv_prog_CPP=$CPP
4138 fi
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4140 $as_echo "$CPP" >&6; }
4141 ac_preproc_ok=false
4142 for ac_c_preproc_warn_flag in '' yes
4143 do
4144 # Use a header file that comes with gcc, so configuring glibc
4145 # with a fresh cross-compiler works.
4146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4147 # <limits.h> exists even on freestanding compilers.
4148 # On the NeXT, cc -E runs the code through the compiler's parser,
4149 # not just through cpp. "Syntax error" is here to catch this case.
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4152 #ifdef __STDC__
4153 # include <limits.h>
4154 #else
4155 # include <assert.h>
4156 #endif
4157 Syntax error
4158 _ACEOF
4159 if ac_fn_c_try_cpp "$LINENO"; then :
4160
4161 else
4162 # Broken: fails on valid input.
4163 continue
4164 fi
4165 rm -f conftest.err conftest.i conftest.$ac_ext
4166
4167 # OK, works on sane cases. Now check whether nonexistent headers
4168 # can be detected and how.
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171 #include <ac_nonexistent.h>
4172 _ACEOF
4173 if ac_fn_c_try_cpp "$LINENO"; then :
4174 # Broken: success on invalid input.
4175 continue
4176 else
4177 # Passes both tests.
4178 ac_preproc_ok=:
4179 break
4180 fi
4181 rm -f conftest.err conftest.i conftest.$ac_ext
4182
4183 done
4184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4185 rm -f conftest.i conftest.err conftest.$ac_ext
4186 if $ac_preproc_ok; then :
4187
4188 else
4189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4191 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4192 See \`config.log' for more details" "$LINENO" 5; }
4193 fi
4194
4195 ac_ext=c
4196 ac_cpp='$CPP $CPPFLAGS'
4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200
4201
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4203 $as_echo_n "checking whether ln -s works... " >&6; }
4204 LN_S=$as_ln_s
4205 if test "$LN_S" = "ln -s"; then
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4207 $as_echo "yes" >&6; }
4208 else
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4210 $as_echo "no, using $LN_S" >&6; }
4211 fi
4212
4213
4214
4215 for ac_prog in perl5 perl
4216 do
4217 # Extract the first word of "$ac_prog", so it can be a program name with args.
4218 set dummy $ac_prog; ac_word=$2
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4220 $as_echo_n "checking for $ac_word... " >&6; }
4221 if ${ac_cv_path_SYSCONFTOOL_PERL+:} false; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 case $SYSCONFTOOL_PERL in
4225 [\\/]* | ?:[\\/]*)
4226 ac_cv_path_SYSCONFTOOL_PERL="$SYSCONFTOOL_PERL" # Let the user override the test with a path.
4227 ;;
4228 *)
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4231 do
4232 IFS=$as_save_IFS
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236 ac_cv_path_SYSCONFTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 break 2
4239 fi
4240 done
4241 done
4242 IFS=$as_save_IFS
4243
4244 ;;
4245 esac
4246 fi
4247 SYSCONFTOOL_PERL=$ac_cv_path_SYSCONFTOOL_PERL
4248 if test -n "$SYSCONFTOOL_PERL"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFTOOL_PERL" >&5
4250 $as_echo "$SYSCONFTOOL_PERL" >&6; }
4251 else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4254 fi
4255
4256
4257 test -n "$SYSCONFTOOL_PERL" && break
4258 done
4259 test -n "$SYSCONFTOOL_PERL" || SYSCONFTOOL_PERL="perl"
4260
4261
4262 if test "$SYSCONFTOOL_PERL" = "perl"
4263 then
4264 as_fn_error $? "perl not found - please install perl" "$LINENO" 5
4265 fi
4266
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconftool..." >&5
4268 $as_echo_n "checking for sysconftool...... " >&6; }
4269 SYSCONFTOOL=""
4270 for sysconf_dir in $ac_aux_dir . .. ../..
4271 do
4272 if test -f $srcdir/$sysconf_dir/sysconftool
4273 then
4274 SYSCONFTOOL=$srcdir/$sysconf_dir/sysconftool
4275 break
4276 fi
4277 done
4278
4279 if test "$SYSCONFTOOL" = ""
4280 then
4281 as_fn_error $? "sysconftool missing - not in the package" "$LINENO" 5
4282 fi
4283
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFTOOL" >&5
4285 $as_echo "$SYSCONFTOOL" >&6; }
4286 SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL"
4287
4288
4289
4290 case `pwd` in
4291 *\ * | *\ *)
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4293 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4294 esac
4295
4296
4297
4298 macro_version='2.4.2'
4299 macro_revision='1.3337'
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313 ltmain="$ac_aux_dir/ltmain.sh"
4314
4315 # Make sure we can run config.sub.
4316 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4317 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4318
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4320 $as_echo_n "checking build system type... " >&6; }
4321 if ${ac_cv_build+:} false; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 ac_build_alias=$build_alias
4325 test "x$ac_build_alias" = x &&
4326 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4327 test "x$ac_build_alias" = x &&
4328 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4329 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4330 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4331
4332 fi
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4334 $as_echo "$ac_cv_build" >&6; }
4335 case $ac_cv_build in
4336 *-*-*) ;;
4337 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4338 esac
4339 build=$ac_cv_build
4340 ac_save_IFS=$IFS; IFS='-'
4341 set x $ac_cv_build
4342 shift
4343 build_cpu=$1
4344 build_vendor=$2
4345 shift; shift
4346 # Remember, the first character of IFS is used to create $*,
4347 # except with old shells:
4348 build_os=$*
4349 IFS=$ac_save_IFS
4350 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4351
4352
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4354 $as_echo_n "checking host system type... " >&6; }
4355 if ${ac_cv_host+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 if test "x$host_alias" = x; then
4359 ac_cv_host=$ac_cv_build
4360 else
4361 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4362 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4363 fi
4364
4365 fi
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4367 $as_echo "$ac_cv_host" >&6; }
4368 case $ac_cv_host in
4369 *-*-*) ;;
4370 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4371 esac
4372 host=$ac_cv_host
4373 ac_save_IFS=$IFS; IFS='-'
4374 set x $ac_cv_host
4375 shift
4376 host_cpu=$1
4377 host_vendor=$2
4378 shift; shift
4379 # Remember, the first character of IFS is used to create $*,
4380 # except with old shells:
4381 host_os=$*
4382 IFS=$ac_save_IFS
4383 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4384
4385
4386 # Backslashify metacharacters that are still active within
4387 # double-quoted strings.
4388 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4389
4390 # Same as above, but do not quote variable references.
4391 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4392
4393 # Sed substitution to delay expansion of an escaped shell variable in a
4394 # double_quote_subst'ed string.
4395 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4396
4397 # Sed substitution to delay expansion of an escaped single quote.
4398 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4399
4400 # Sed substitution to avoid accidental globbing in evaled expressions
4401 no_glob_subst='s/\*/\\\*/g'
4402
4403 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4404 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4405 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4406
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4408 $as_echo_n "checking how to print strings... " >&6; }
4409 # Test print first, because it will be a builtin if present.
4410 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4411 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4412 ECHO='print -r --'
4413 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4414 ECHO='printf %s\n'
4415 else
4416 # Use this function as a fallback that always works.
4417 func_fallback_echo ()
4418 {
4419 eval 'cat <<_LTECHO_EOF
4420 $1
4421 _LTECHO_EOF'
4422 }
4423 ECHO='func_fallback_echo'
4424 fi
4425
4426 # func_echo_all arg...
4427 # Invoke $ECHO with all args, space-separated.
4428 func_echo_all ()
4429 {
4430 $ECHO ""
4431 }
4432
4433 case "$ECHO" in
4434 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4435 $as_echo "printf" >&6; } ;;
4436 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4437 $as_echo "print -r" >&6; } ;;
4438 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4439 $as_echo "cat" >&6; } ;;
4440 esac
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4456 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4457 if ${ac_cv_path_SED+:} false; then :
4458 $as_echo_n "(cached) " >&6
4459 else
4460 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4461 for ac_i in 1 2 3 4 5 6 7; do
4462 ac_script="$ac_script$as_nl$ac_script"
4463 done
4464 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4465 { ac_script=; unset ac_script;}
4466 if test -z "$SED"; then
4467 ac_path_SED_found=false
4468 # Loop through the user's path and test for each of PROGNAME-LIST
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH
4471 do
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
4474 for ac_prog in sed gsed; do
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4477 as_fn_executable_p "$ac_path_SED" || continue
4478 # Check for GNU ac_path_SED and select it if it is found.
4479 # Check for GNU $ac_path_SED
4480 case `"$ac_path_SED" --version 2>&1` in
4481 *GNU*)
4482 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4483 *)
4484 ac_count=0
4485 $as_echo_n 0123456789 >"conftest.in"
4486 while :
4487 do
4488 cat "conftest.in" "conftest.in" >"conftest.tmp"
4489 mv "conftest.tmp" "conftest.in"
4490 cp "conftest.in" "conftest.nl"
4491 $as_echo '' >> "conftest.nl"
4492 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4494 as_fn_arith $ac_count + 1 && ac_count=$as_val
4495 if test $ac_count -gt ${ac_path_SED_max-0}; then
4496 # Best one so far, save it but keep looking for a better one
4497 ac_cv_path_SED="$ac_path_SED"
4498 ac_path_SED_max=$ac_count
4499 fi
4500 # 10*(2^10) chars as input seems more than enough
4501 test $ac_count -gt 10 && break
4502 done
4503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4504 esac
4505
4506 $ac_path_SED_found && break 3
4507 done
4508 done
4509 done
4510 IFS=$as_save_IFS
4511 if test -z "$ac_cv_path_SED"; then
4512 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4513 fi
4514 else
4515 ac_cv_path_SED=$SED
4516 fi
4517
4518 fi
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4520 $as_echo "$ac_cv_path_SED" >&6; }
4521 SED="$ac_cv_path_SED"
4522 rm -f conftest.sed
4523
4524 test -z "$SED" && SED=sed
4525 Xsed="$SED -e 1s/^X//"
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4538 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4539 if ${ac_cv_path_GREP+:} false; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 if test -z "$GREP"; then
4543 ac_path_GREP_found=false
4544 # Loop through the user's path and test for each of PROGNAME-LIST
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4547 do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_prog in grep ggrep; do
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4553 as_fn_executable_p "$ac_path_GREP" || continue
4554 # Check for GNU ac_path_GREP and select it if it is found.
4555 # Check for GNU $ac_path_GREP
4556 case `"$ac_path_GREP" --version 2>&1` in
4557 *GNU*)
4558 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4559 *)
4560 ac_count=0
4561 $as_echo_n 0123456789 >"conftest.in"
4562 while :
4563 do
4564 cat "conftest.in" "conftest.in" >"conftest.tmp"
4565 mv "conftest.tmp" "conftest.in"
4566 cp "conftest.in" "conftest.nl"
4567 $as_echo 'GREP' >> "conftest.nl"
4568 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4570 as_fn_arith $ac_count + 1 && ac_count=$as_val
4571 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4572 # Best one so far, save it but keep looking for a better one
4573 ac_cv_path_GREP="$ac_path_GREP"
4574 ac_path_GREP_max=$ac_count
4575 fi
4576 # 10*(2^10) chars as input seems more than enough
4577 test $ac_count -gt 10 && break
4578 done
4579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4580 esac
4581
4582 $ac_path_GREP_found && break 3
4583 done
4584 done
4585 done
4586 IFS=$as_save_IFS
4587 if test -z "$ac_cv_path_GREP"; then
4588 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4589 fi
4590 else
4591 ac_cv_path_GREP=$GREP
4592 fi
4593
4594 fi
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4596 $as_echo "$ac_cv_path_GREP" >&6; }
4597 GREP="$ac_cv_path_GREP"
4598
4599
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4601 $as_echo_n "checking for egrep... " >&6; }
4602 if ${ac_cv_path_EGREP+:} false; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4606 then ac_cv_path_EGREP="$GREP -E"
4607 else
4608 if test -z "$EGREP"; then
4609 ac_path_EGREP_found=false
4610 # Loop through the user's path and test for each of PROGNAME-LIST
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4613 do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_prog in egrep; do
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4619 as_fn_executable_p "$ac_path_EGREP" || continue
4620 # Check for GNU ac_path_EGREP and select it if it is found.
4621 # Check for GNU $ac_path_EGREP
4622 case `"$ac_path_EGREP" --version 2>&1` in
4623 *GNU*)
4624 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4625 *)
4626 ac_count=0
4627 $as_echo_n 0123456789 >"conftest.in"
4628 while :
4629 do
4630 cat "conftest.in" "conftest.in" >"conftest.tmp"
4631 mv "conftest.tmp" "conftest.in"
4632 cp "conftest.in" "conftest.nl"
4633 $as_echo 'EGREP' >> "conftest.nl"
4634 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4636 as_fn_arith $ac_count + 1 && ac_count=$as_val
4637 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4638 # Best one so far, save it but keep looking for a better one
4639 ac_cv_path_EGREP="$ac_path_EGREP"
4640 ac_path_EGREP_max=$ac_count
4641 fi
4642 # 10*(2^10) chars as input seems more than enough
4643 test $ac_count -gt 10 && break
4644 done
4645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4646 esac
4647
4648 $ac_path_EGREP_found && break 3
4649 done
4650 done
4651 done
4652 IFS=$as_save_IFS
4653 if test -z "$ac_cv_path_EGREP"; then
4654 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4655 fi
4656 else
4657 ac_cv_path_EGREP=$EGREP
4658 fi
4659
4660 fi
4661 fi
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4663 $as_echo "$ac_cv_path_EGREP" >&6; }
4664 EGREP="$ac_cv_path_EGREP"
4665
4666
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4668 $as_echo_n "checking for fgrep... " >&6; }
4669 if ${ac_cv_path_FGREP+:} false; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4673 then ac_cv_path_FGREP="$GREP -F"
4674 else
4675 if test -z "$FGREP"; then
4676 ac_path_FGREP_found=false
4677 # Loop through the user's path and test for each of PROGNAME-LIST
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4680 do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_prog in fgrep; do
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4686 as_fn_executable_p "$ac_path_FGREP" || continue
4687 # Check for GNU ac_path_FGREP and select it if it is found.
4688 # Check for GNU $ac_path_FGREP
4689 case `"$ac_path_FGREP" --version 2>&1` in
4690 *GNU*)
4691 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4692 *)
4693 ac_count=0
4694 $as_echo_n 0123456789 >"conftest.in"
4695 while :
4696 do
4697 cat "conftest.in" "conftest.in" >"conftest.tmp"
4698 mv "conftest.tmp" "conftest.in"
4699 cp "conftest.in" "conftest.nl"
4700 $as_echo 'FGREP' >> "conftest.nl"
4701 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4703 as_fn_arith $ac_count + 1 && ac_count=$as_val
4704 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4705 # Best one so far, save it but keep looking for a better one
4706 ac_cv_path_FGREP="$ac_path_FGREP"
4707 ac_path_FGREP_max=$ac_count
4708 fi
4709 # 10*(2^10) chars as input seems more than enough
4710 test $ac_count -gt 10 && break
4711 done
4712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4713 esac
4714
4715 $ac_path_FGREP_found && break 3
4716 done
4717 done
4718 done
4719 IFS=$as_save_IFS
4720 if test -z "$ac_cv_path_FGREP"; then
4721 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4722 fi
4723 else
4724 ac_cv_path_FGREP=$FGREP
4725 fi
4726
4727 fi
4728 fi
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4730 $as_echo "$ac_cv_path_FGREP" >&6; }
4731 FGREP="$ac_cv_path_FGREP"
4732
4733
4734 test -z "$GREP" && GREP=grep
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754 # Check whether --with-gnu-ld was given.
4755 if test "${with_gnu_ld+set}" = set; then :
4756 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4757 else
4758 with_gnu_ld=no
4759 fi
4760
4761 ac_prog=ld
4762 if test "$GCC" = yes; then
4763 # Check if gcc -print-prog-name=ld gives a path.
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4765 $as_echo_n "checking for ld used by $CC... " >&6; }
4766 case $host in
4767 *-*-mingw*)
4768 # gcc leaves a trailing carriage return which upsets mingw
4769 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4770 *)
4771 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4772 esac
4773 case $ac_prog in
4774 # Accept absolute paths.
4775 [\\/]* | ?:[\\/]*)
4776 re_direlt='/[^/][^/]*/\.\./'
4777 # Canonicalize the pathname of ld
4778 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4779 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4780 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4781 done
4782 test -z "$LD" && LD="$ac_prog"
4783 ;;
4784 "")
4785 # If it fails, then pretend we aren't using GCC.
4786 ac_prog=ld
4787 ;;
4788 *)
4789 # If it is relative, then search for the first ld in PATH.
4790 with_gnu_ld=unknown
4791 ;;
4792 esac
4793 elif test "$with_gnu_ld" = yes; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4795 $as_echo_n "checking for GNU ld... " >&6; }
4796 else
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4798 $as_echo_n "checking for non-GNU ld... " >&6; }
4799 fi
4800 if ${lt_cv_path_LD+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 if test -z "$LD"; then
4804 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4805 for ac_dir in $PATH; do
4806 IFS="$lt_save_ifs"
4807 test -z "$ac_dir" && ac_dir=.
4808 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4809 lt_cv_path_LD="$ac_dir/$ac_prog"
4810 # Check to see if the program is GNU ld. I'd rather use --version,
4811 # but apparently some variants of GNU ld only accept -v.
4812 # Break only if it was the GNU/non-GNU ld that we prefer.
4813 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4814 *GNU* | *'with BFD'*)
4815 test "$with_gnu_ld" != no && break
4816 ;;
4817 *)
4818 test "$with_gnu_ld" != yes && break
4819 ;;
4820 esac
4821 fi
4822 done
4823 IFS="$lt_save_ifs"
4824 else
4825 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4826 fi
4827 fi
4828
4829 LD="$lt_cv_path_LD"
4830 if test -n "$LD"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4832 $as_echo "$LD" >&6; }
4833 else
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4836 fi
4837 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4839 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4840 if ${lt_cv_prog_gnu_ld+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4844 case `$LD -v 2>&1 </dev/null` in
4845 *GNU* | *'with BFD'*)
4846 lt_cv_prog_gnu_ld=yes
4847 ;;
4848 *)
4849 lt_cv_prog_gnu_ld=no
4850 ;;
4851 esac
4852 fi
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4854 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4855 with_gnu_ld=$lt_cv_prog_gnu_ld
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4866 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4867 if ${lt_cv_path_NM+:} false; then :
4868 $as_echo_n "(cached) " >&6
4869 else
4870 if test -n "$NM"; then
4871 # Let the user override the test.
4872 lt_cv_path_NM="$NM"
4873 else
4874 lt_nm_to_check="${ac_tool_prefix}nm"
4875 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4876 lt_nm_to_check="$lt_nm_to_check nm"
4877 fi
4878 for lt_tmp_nm in $lt_nm_to_check; do
4879 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4880 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4881 IFS="$lt_save_ifs"
4882 test -z "$ac_dir" && ac_dir=.
4883 tmp_nm="$ac_dir/$lt_tmp_nm"
4884 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4885 # Check to see if the nm accepts a BSD-compat flag.
4886 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4887 # nm: unknown option "B" ignored
4888 # Tru64's nm complains that /dev/null is an invalid object file
4889 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4890 */dev/null* | *'Invalid file or object type'*)
4891 lt_cv_path_NM="$tmp_nm -B"
4892 break
4893 ;;
4894 *)
4895 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4896 */dev/null*)
4897 lt_cv_path_NM="$tmp_nm -p"
4898 break
4899 ;;
4900 *)
4901 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4902 continue # so that we can try to find one that supports BSD flags
4903 ;;
4904 esac
4905 ;;
4906 esac
4907 fi
4908 done
4909 IFS="$lt_save_ifs"
4910 done
4911 : ${lt_cv_path_NM=no}
4912 fi
4913 fi
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4915 $as_echo "$lt_cv_path_NM" >&6; }
4916 if test "$lt_cv_path_NM" != "no"; then
4917 NM="$lt_cv_path_NM"
4918 else
4919 # Didn't find any BSD compatible name lister, look for dumpbin.
4920 if test -n "$DUMPBIN"; then :
4921 # Let the user override the test.
4922 else
4923 if test -n "$ac_tool_prefix"; then
4924 for ac_prog in dumpbin "link -dump"
4925 do
4926 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4927 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if ${ac_cv_prog_DUMPBIN+:} false; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 if test -n "$DUMPBIN"; then
4934 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4943 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4946 fi
4947 done
4948 done
4949 IFS=$as_save_IFS
4950
4951 fi
4952 fi
4953 DUMPBIN=$ac_cv_prog_DUMPBIN
4954 if test -n "$DUMPBIN"; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4956 $as_echo "$DUMPBIN" >&6; }
4957 else
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4960 fi
4961
4962
4963 test -n "$DUMPBIN" && break
4964 done
4965 fi
4966 if test -z "$DUMPBIN"; then
4967 ac_ct_DUMPBIN=$DUMPBIN
4968 for ac_prog in dumpbin "link -dump"
4969 do
4970 # Extract the first word of "$ac_prog", so it can be a program name with args.
4971 set dummy $ac_prog; ac_word=$2
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4973 $as_echo_n "checking for $ac_word... " >&6; }
4974 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 if test -n "$ac_ct_DUMPBIN"; then
4978 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4979 else
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4982 do
4983 IFS=$as_save_IFS
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 break 2
4990 fi
4991 done
4992 done
4993 IFS=$as_save_IFS
4994
4995 fi
4996 fi
4997 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4998 if test -n "$ac_ct_DUMPBIN"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5000 $as_echo "$ac_ct_DUMPBIN" >&6; }
5001 else
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003 $as_echo "no" >&6; }
5004 fi
5005
5006
5007 test -n "$ac_ct_DUMPBIN" && break
5008 done
5009
5010 if test "x$ac_ct_DUMPBIN" = x; then
5011 DUMPBIN=":"
5012 else
5013 case $cross_compiling:$ac_tool_warned in
5014 yes:)
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5017 ac_tool_warned=yes ;;
5018 esac
5019 DUMPBIN=$ac_ct_DUMPBIN
5020 fi
5021 fi
5022
5023 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5024 *COFF*)
5025 DUMPBIN="$DUMPBIN -symbols"
5026 ;;
5027 *)
5028 DUMPBIN=:
5029 ;;
5030 esac
5031 fi
5032
5033 if test "$DUMPBIN" != ":"; then
5034 NM="$DUMPBIN"
5035 fi
5036 fi
5037 test -z "$NM" && NM=nm
5038
5039
5040
5041
5042
5043
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5045 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5046 if ${lt_cv_nm_interface+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 lt_cv_nm_interface="BSD nm"
5050 echo "int some_variable = 0;" > conftest.$ac_ext
5051 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5052 (eval "$ac_compile" 2>conftest.err)
5053 cat conftest.err >&5
5054 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5055 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5056 cat conftest.err >&5
5057 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5058 cat conftest.out >&5
5059 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5060 lt_cv_nm_interface="MS dumpbin"
5061 fi
5062 rm -f conftest*
5063 fi
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5065 $as_echo "$lt_cv_nm_interface" >&6; }
5066
5067 # find the maximum length of command line arguments
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5069 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5070 if ${lt_cv_sys_max_cmd_len+:} false; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 i=0
5074 teststring="ABCD"
5075
5076 case $build_os in
5077 msdosdjgpp*)
5078 # On DJGPP, this test can blow up pretty badly due to problems in libc
5079 # (any single argument exceeding 2000 bytes causes a buffer overrun
5080 # during glob expansion). Even if it were fixed, the result of this
5081 # check would be larger than it should be.
5082 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5083 ;;
5084
5085 gnu*)
5086 # Under GNU Hurd, this test is not required because there is
5087 # no limit to the length of command line arguments.
5088 # Libtool will interpret -1 as no limit whatsoever
5089 lt_cv_sys_max_cmd_len=-1;
5090 ;;
5091
5092 cygwin* | mingw* | cegcc*)
5093 # On Win9x/ME, this test blows up -- it succeeds, but takes
5094 # about 5 minutes as the teststring grows exponentially.
5095 # Worse, since 9x/ME are not pre-emptively multitasking,
5096 # you end up with a "frozen" computer, even though with patience
5097 # the test eventually succeeds (with a max line length of 256k).
5098 # Instead, let's just punt: use the minimum linelength reported by
5099 # all of the supported platforms: 8192 (on NT/2K/XP).
5100 lt_cv_sys_max_cmd_len=8192;
5101 ;;
5102
5103 mint*)
5104 # On MiNT this can take a long time and run out of memory.
5105 lt_cv_sys_max_cmd_len=8192;
5106 ;;
5107
5108 amigaos*)
5109 # On AmigaOS with pdksh, this test takes hours, literally.
5110 # So we just punt and use a minimum line length of 8192.
5111 lt_cv_sys_max_cmd_len=8192;
5112 ;;
5113
5114 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5115 # This has been around since 386BSD, at least. Likely further.
5116 if test -x /sbin/sysctl; then
5117 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5118 elif test -x /usr/sbin/sysctl; then
5119 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5120 else
5121 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5122 fi
5123 # And add a safety zone
5124 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5126 ;;
5127
5128 interix*)
5129 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5130 lt_cv_sys_max_cmd_len=196608
5131 ;;
5132
5133 os2*)
5134 # The test takes a long time on OS/2.
5135 lt_cv_sys_max_cmd_len=8192
5136 ;;
5137
5138 osf*)
5139 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5140 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5141 # nice to cause kernel panics so lets avoid the loop below.
5142 # First set a reasonable default.
5143 lt_cv_sys_max_cmd_len=16384
5144 #
5145 if test -x /sbin/sysconfig; then
5146 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5147 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5148 esac
5149 fi
5150 ;;
5151 sco3.2v5*)
5152 lt_cv_sys_max_cmd_len=102400
5153 ;;
5154 sysv5* | sco5v6* | sysv4.2uw2*)
5155 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5156 if test -n "$kargmax"; then
5157 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5158 else
5159 lt_cv_sys_max_cmd_len=32768
5160 fi
5161 ;;
5162 *)
5163 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5164 if test -n "$lt_cv_sys_max_cmd_len"; then
5165 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5166 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5167 else
5168 # Make teststring a little bigger before we do anything with it.
5169 # a 1K string should be a reasonable start.
5170 for i in 1 2 3 4 5 6 7 8 ; do
5171 teststring=$teststring$teststring
5172 done
5173 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5174 # If test is not a shell built-in, we'll probably end up computing a
5175 # maximum length that is only half of the actual maximum length, but
5176 # we can't tell.
5177 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5178 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5179 test $i != 17 # 1/2 MB should be enough
5180 do
5181 i=`expr $i + 1`
5182 teststring=$teststring$teststring
5183 done
5184 # Only check the string length outside the loop.
5185 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5186 teststring=
5187 # Add a significant safety factor because C++ compilers can tack on
5188 # massive amounts of additional arguments before passing them to the
5189 # linker. It appears as though 1/2 is a usable value.
5190 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5191 fi
5192 ;;
5193 esac
5194
5195 fi
5196
5197 if test -n $lt_cv_sys_max_cmd_len ; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5199 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5200 else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5202 $as_echo "none" >&6; }
5203 fi
5204 max_cmd_len=$lt_cv_sys_max_cmd_len
5205
5206
5207
5208
5209
5210
5211 : ${CP="cp -f"}
5212 : ${MV="mv -f"}
5213 : ${RM="rm -f"}
5214
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5216 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5217 # Try some XSI features
5218 xsi_shell=no
5219 ( _lt_dummy="a/b/c"
5220 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5221 = c,a/b,b/c, \
5222 && eval 'test $(( 1 + 1 )) -eq 2 \
5223 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5224 && xsi_shell=yes
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5226 $as_echo "$xsi_shell" >&6; }
5227
5228
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5230 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5231 lt_shell_append=no
5232 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5233 >/dev/null 2>&1 \
5234 && lt_shell_append=yes
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5236 $as_echo "$lt_shell_append" >&6; }
5237
5238
5239 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5240 lt_unset=unset
5241 else
5242 lt_unset=false
5243 fi
5244
5245
5246
5247
5248
5249 # test EBCDIC or ASCII
5250 case `echo X|tr X '\101'` in
5251 A) # ASCII based system
5252 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5253 lt_SP2NL='tr \040 \012'
5254 lt_NL2SP='tr \015\012 \040\040'
5255 ;;
5256 *) # EBCDIC based system
5257 lt_SP2NL='tr \100 \n'
5258 lt_NL2SP='tr \r\n \100\100'
5259 ;;
5260 esac
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5271 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5272 if ${lt_cv_to_host_file_cmd+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 case $host in
5276 *-*-mingw* )
5277 case $build in
5278 *-*-mingw* ) # actually msys
5279 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5280 ;;
5281 *-*-cygwin* )
5282 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5283 ;;
5284 * ) # otherwise, assume *nix
5285 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5286 ;;
5287 esac
5288 ;;
5289 *-*-cygwin* )
5290 case $build in
5291 *-*-mingw* ) # actually msys
5292 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5293 ;;
5294 *-*-cygwin* )
5295 lt_cv_to_host_file_cmd=func_convert_file_noop
5296 ;;
5297 * ) # otherwise, assume *nix
5298 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5299 ;;
5300 esac
5301 ;;
5302 * ) # unhandled hosts (and "normal" native builds)
5303 lt_cv_to_host_file_cmd=func_convert_file_noop
5304 ;;
5305 esac
5306
5307 fi
5308
5309 to_host_file_cmd=$lt_cv_to_host_file_cmd
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5311 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5312
5313
5314
5315
5316
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5318 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5319 if ${lt_cv_to_tool_file_cmd+:} false; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 #assume ordinary cross tools, or native build.
5323 lt_cv_to_tool_file_cmd=func_convert_file_noop
5324 case $host in
5325 *-*-mingw* )
5326 case $build in
5327 *-*-mingw* ) # actually msys
5328 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5329 ;;
5330 esac
5331 ;;
5332 esac
5333
5334 fi
5335
5336 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5338 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5339
5340
5341
5342
5343
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5345 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5346 if ${lt_cv_ld_reload_flag+:} false; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 lt_cv_ld_reload_flag='-r'
5350 fi
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5352 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5353 reload_flag=$lt_cv_ld_reload_flag
5354 case $reload_flag in
5355 "" | " "*) ;;
5356 *) reload_flag=" $reload_flag" ;;
5357 esac
5358 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5359 case $host_os in
5360 cygwin* | mingw* | pw32* | cegcc*)
5361 if test "$GCC" != yes; then
5362 reload_cmds=false
5363 fi
5364 ;;
5365 darwin*)
5366 if test "$GCC" = yes; then
5367 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5368 else
5369 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5370 fi
5371 ;;
5372 esac
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382 if test -n "$ac_tool_prefix"; then
5383 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5384 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_prog_OBJDUMP+:} false; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 if test -n "$OBJDUMP"; then
5391 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5392 else
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5395 do
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 break 2
5403 fi
5404 done
5405 done
5406 IFS=$as_save_IFS
5407
5408 fi
5409 fi
5410 OBJDUMP=$ac_cv_prog_OBJDUMP
5411 if test -n "$OBJDUMP"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5413 $as_echo "$OBJDUMP" >&6; }
5414 else
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5417 fi
5418
5419
5420 fi
5421 if test -z "$ac_cv_prog_OBJDUMP"; then
5422 ac_ct_OBJDUMP=$OBJDUMP
5423 # Extract the first word of "objdump", so it can be a program name with args.
5424 set dummy objdump; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5428 $as_echo_n "(cached) " >&6
5429 else
5430 if test -n "$ac_ct_OBJDUMP"; then
5431 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5432 else
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5435 do
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 break 2
5443 fi
5444 done
5445 done
5446 IFS=$as_save_IFS
5447
5448 fi
5449 fi
5450 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5451 if test -n "$ac_ct_OBJDUMP"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5453 $as_echo "$ac_ct_OBJDUMP" >&6; }
5454 else
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5457 fi
5458
5459 if test "x$ac_ct_OBJDUMP" = x; then
5460 OBJDUMP="false"
5461 else
5462 case $cross_compiling:$ac_tool_warned in
5463 yes:)
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5466 ac_tool_warned=yes ;;
5467 esac
5468 OBJDUMP=$ac_ct_OBJDUMP
5469 fi
5470 else
5471 OBJDUMP="$ac_cv_prog_OBJDUMP"
5472 fi
5473
5474 test -z "$OBJDUMP" && OBJDUMP=objdump
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5485 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5486 if ${lt_cv_deplibs_check_method+:} false; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 lt_cv_file_magic_cmd='$MAGIC_CMD'
5490 lt_cv_file_magic_test_file=
5491 lt_cv_deplibs_check_method='unknown'
5492 # Need to set the preceding variable on all platforms that support
5493 # interlibrary dependencies.
5494 # 'none' -- dependencies not supported.
5495 # `unknown' -- same as none, but documents that we really don't know.
5496 # 'pass_all' -- all dependencies passed with no checks.
5497 # 'test_compile' -- check by making test program.
5498 # 'file_magic [[regex]]' -- check by looking for files in library path
5499 # which responds to the $file_magic_cmd with a given extended regex.
5500 # If you have `file' or equivalent on your system and you're not sure
5501 # whether `pass_all' will *always* work, you probably want this one.
5502
5503 case $host_os in
5504 aix[4-9]*)
5505 lt_cv_deplibs_check_method=pass_all
5506 ;;
5507
5508 beos*)
5509 lt_cv_deplibs_check_method=pass_all
5510 ;;
5511
5512 bsdi[45]*)
5513 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5514 lt_cv_file_magic_cmd='/usr/bin/file -L'
5515 lt_cv_file_magic_test_file=/shlib/libc.so
5516 ;;
5517
5518 cygwin*)
5519 # func_win32_libid is a shell function defined in ltmain.sh
5520 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5521 lt_cv_file_magic_cmd='func_win32_libid'
5522 ;;
5523
5524 mingw* | pw32*)
5525 # Base MSYS/MinGW do not provide the 'file' command needed by
5526 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5527 # unless we find 'file', for example because we are cross-compiling.
5528 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5529 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5530 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5531 lt_cv_file_magic_cmd='func_win32_libid'
5532 else
5533 # Keep this pattern in sync with the one in func_win32_libid.
5534 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5535 lt_cv_file_magic_cmd='$OBJDUMP -f'
5536 fi
5537 ;;
5538
5539 cegcc*)
5540 # use the weaker test based on 'objdump'. See mingw*.
5541 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5542 lt_cv_file_magic_cmd='$OBJDUMP -f'
5543 ;;
5544
5545 darwin* | rhapsody*)
5546 lt_cv_deplibs_check_method=pass_all
5547 ;;
5548
5549 freebsd* | dragonfly*)
5550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5551 case $host_cpu in
5552 i*86 )
5553 # Not sure whether the presence of OpenBSD here was a mistake.
5554 # Let's accept both of them until this is cleared up.
5555 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5556 lt_cv_file_magic_cmd=/usr/bin/file
5557 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5558 ;;
5559 esac
5560 else
5561 lt_cv_deplibs_check_method=pass_all
5562 fi
5563 ;;
5564
5565 gnu*)
5566 lt_cv_deplibs_check_method=pass_all
5567 ;;
5568
5569 haiku*)
5570 lt_cv_deplibs_check_method=pass_all
5571 ;;
5572
5573 hpux10.20* | hpux11*)
5574 lt_cv_file_magic_cmd=/usr/bin/file
5575 case $host_cpu in
5576 ia64*)
5577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5578 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5579 ;;
5580 hppa*64*)
5581 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]'
5582 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5583 ;;
5584 *)
5585 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5586 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5587 ;;
5588 esac
5589 ;;
5590
5591 interix[3-9]*)
5592 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5594 ;;
5595
5596 irix5* | irix6* | nonstopux*)
5597 case $LD in
5598 *-32|*"-32 ") libmagic=32-bit;;
5599 *-n32|*"-n32 ") libmagic=N32;;
5600 *-64|*"-64 ") libmagic=64-bit;;
5601 *) libmagic=never-match;;
5602 esac
5603 lt_cv_deplibs_check_method=pass_all
5604 ;;
5605
5606 # This must be glibc/ELF.
5607 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5608 lt_cv_deplibs_check_method=pass_all
5609 ;;
5610
5611 netbsd*)
5612 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5614 else
5615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5616 fi
5617 ;;
5618
5619 newos6*)
5620 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5621 lt_cv_file_magic_cmd=/usr/bin/file
5622 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5623 ;;
5624
5625 *nto* | *qnx*)
5626 lt_cv_deplibs_check_method=pass_all
5627 ;;
5628
5629 openbsd*)
5630 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5632 else
5633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5634 fi
5635 ;;
5636
5637 osf3* | osf4* | osf5*)
5638 lt_cv_deplibs_check_method=pass_all
5639 ;;
5640
5641 rdos*)
5642 lt_cv_deplibs_check_method=pass_all
5643 ;;
5644
5645 solaris*)
5646 lt_cv_deplibs_check_method=pass_all
5647 ;;
5648
5649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5650 lt_cv_deplibs_check_method=pass_all
5651 ;;
5652
5653 sysv4 | sysv4.3*)
5654 case $host_vendor in
5655 motorola)
5656 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]'
5657 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5658 ;;
5659 ncr)
5660 lt_cv_deplibs_check_method=pass_all
5661 ;;
5662 sequent)
5663 lt_cv_file_magic_cmd='/bin/file'
5664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5665 ;;
5666 sni)
5667 lt_cv_file_magic_cmd='/bin/file'
5668 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5669 lt_cv_file_magic_test_file=/lib/libc.so
5670 ;;
5671 siemens)
5672 lt_cv_deplibs_check_method=pass_all
5673 ;;
5674 pc)
5675 lt_cv_deplibs_check_method=pass_all
5676 ;;
5677 esac
5678 ;;
5679
5680 tpf*)
5681 lt_cv_deplibs_check_method=pass_all
5682 ;;
5683 esac
5684
5685 fi
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5687 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5688
5689 file_magic_glob=
5690 want_nocaseglob=no
5691 if test "$build" = "$host"; then
5692 case $host_os in
5693 mingw* | pw32*)
5694 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5695 want_nocaseglob=yes
5696 else
5697 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5698 fi
5699 ;;
5700 esac
5701 fi
5702
5703 file_magic_cmd=$lt_cv_file_magic_cmd
5704 deplibs_check_method=$lt_cv_deplibs_check_method
5705 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728 if test -n "$ac_tool_prefix"; then
5729 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5730 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5732 $as_echo_n "checking for $ac_word... " >&6; }
5733 if ${ac_cv_prog_DLLTOOL+:} false; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 if test -n "$DLLTOOL"; then
5737 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5738 else
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH
5741 do
5742 IFS=$as_save_IFS
5743 test -z "$as_dir" && as_dir=.
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5746 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5748 break 2
5749 fi
5750 done
5751 done
5752 IFS=$as_save_IFS
5753
5754 fi
5755 fi
5756 DLLTOOL=$ac_cv_prog_DLLTOOL
5757 if test -n "$DLLTOOL"; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5759 $as_echo "$DLLTOOL" >&6; }
5760 else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 $as_echo "no" >&6; }
5763 fi
5764
5765
5766 fi
5767 if test -z "$ac_cv_prog_DLLTOOL"; then
5768 ac_ct_DLLTOOL=$DLLTOOL
5769 # Extract the first word of "dlltool", so it can be a program name with args.
5770 set dummy dlltool; ac_word=$2
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772 $as_echo_n "checking for $ac_word... " >&6; }
5773 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5774 $as_echo_n "(cached) " >&6
5775 else
5776 if test -n "$ac_ct_DLLTOOL"; then
5777 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5778 else
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH
5781 do
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5786 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 break 2
5789 fi
5790 done
5791 done
5792 IFS=$as_save_IFS
5793
5794 fi
5795 fi
5796 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5797 if test -n "$ac_ct_DLLTOOL"; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5799 $as_echo "$ac_ct_DLLTOOL" >&6; }
5800 else
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802 $as_echo "no" >&6; }
5803 fi
5804
5805 if test "x$ac_ct_DLLTOOL" = x; then
5806 DLLTOOL="false"
5807 else
5808 case $cross_compiling:$ac_tool_warned in
5809 yes:)
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5812 ac_tool_warned=yes ;;
5813 esac
5814 DLLTOOL=$ac_ct_DLLTOOL
5815 fi
5816 else
5817 DLLTOOL="$ac_cv_prog_DLLTOOL"
5818 fi
5819
5820 test -z "$DLLTOOL" && DLLTOOL=dlltool
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5832 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5833 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5834 $as_echo_n "(cached) " >&6
5835 else
5836 lt_cv_sharedlib_from_linklib_cmd='unknown'
5837
5838 case $host_os in
5839 cygwin* | mingw* | pw32* | cegcc*)
5840 # two different shell functions defined in ltmain.sh
5841 # decide which to use based on capabilities of $DLLTOOL
5842 case `$DLLTOOL --help 2>&1` in
5843 *--identify-strict*)
5844 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5845 ;;
5846 *)
5847 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5848 ;;
5849 esac
5850 ;;
5851 *)
5852 # fallback: assume linklib IS sharedlib
5853 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5854 ;;
5855 esac
5856
5857 fi
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5859 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5860 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5861 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5862
5863
5864
5865
5866
5867
5868
5869
5870 if test -n "$ac_tool_prefix"; then
5871 for ac_prog in ar
5872 do
5873 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5874 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if ${ac_cv_prog_AR+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 if test -n "$AR"; then
5881 ac_cv_prog_AR="$AR" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 break 2
5893 fi
5894 done
5895 done
5896 IFS=$as_save_IFS
5897
5898 fi
5899 fi
5900 AR=$ac_cv_prog_AR
5901 if test -n "$AR"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5903 $as_echo "$AR" >&6; }
5904 else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5907 fi
5908
5909
5910 test -n "$AR" && break
5911 done
5912 fi
5913 if test -z "$AR"; then
5914 ac_ct_AR=$AR
5915 for ac_prog in ar
5916 do
5917 # Extract the first word of "$ac_prog", so it can be a program name with args.
5918 set dummy $ac_prog; ac_word=$2
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 $as_echo_n "checking for $ac_word... " >&6; }
5921 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 if test -n "$ac_ct_AR"; then
5925 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5926 else
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934 ac_cv_prog_ac_ct_AR="$ac_prog"
5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 break 2
5937 fi
5938 done
5939 done
5940 IFS=$as_save_IFS
5941
5942 fi
5943 fi
5944 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5945 if test -n "$ac_ct_AR"; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5947 $as_echo "$ac_ct_AR" >&6; }
5948 else
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950 $as_echo "no" >&6; }
5951 fi
5952
5953
5954 test -n "$ac_ct_AR" && break
5955 done
5956
5957 if test "x$ac_ct_AR" = x; then
5958 AR="false"
5959 else
5960 case $cross_compiling:$ac_tool_warned in
5961 yes:)
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5964 ac_tool_warned=yes ;;
5965 esac
5966 AR=$ac_ct_AR
5967 fi
5968 fi
5969
5970 : ${AR=ar}
5971 : ${AR_FLAGS=cru}
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5984 $as_echo_n "checking for archiver @FILE support... " >&6; }
5985 if ${lt_cv_ar_at_file+:} false; then :
5986 $as_echo_n "(cached) " >&6
5987 else
5988 lt_cv_ar_at_file=no
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h. */
5991
5992 int
5993 main ()
5994 {
5995
5996 ;
5997 return 0;
5998 }
5999 _ACEOF
6000 if ac_fn_c_try_compile "$LINENO"; then :
6001 echo conftest.$ac_objext > conftest.lst
6002 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6004 (eval $lt_ar_try) 2>&5
6005 ac_status=$?
6006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6007 test $ac_status = 0; }
6008 if test "$ac_status" -eq 0; then
6009 # Ensure the archiver fails upon bogus file names.
6010 rm -f conftest.$ac_objext libconftest.a
6011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6012 (eval $lt_ar_try) 2>&5
6013 ac_status=$?
6014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6015 test $ac_status = 0; }
6016 if test "$ac_status" -ne 0; then
6017 lt_cv_ar_at_file=@
6018 fi
6019 fi
6020 rm -f conftest.* libconftest.a
6021
6022 fi
6023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024
6025 fi
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6027 $as_echo "$lt_cv_ar_at_file" >&6; }
6028
6029 if test "x$lt_cv_ar_at_file" = xno; then
6030 archiver_list_spec=
6031 else
6032 archiver_list_spec=$lt_cv_ar_at_file
6033 fi
6034
6035
6036
6037
6038
6039
6040
6041 if test -n "$ac_tool_prefix"; then
6042 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6043 set dummy ${ac_tool_prefix}strip; ac_word=$2
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045 $as_echo_n "checking for $ac_word... " >&6; }
6046 if ${ac_cv_prog_STRIP+:} false; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 if test -n "$STRIP"; then
6050 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6051 else
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 for as_dir in $PATH
6054 do
6055 IFS=$as_save_IFS
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6059 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 break 2
6062 fi
6063 done
6064 done
6065 IFS=$as_save_IFS
6066
6067 fi
6068 fi
6069 STRIP=$ac_cv_prog_STRIP
6070 if test -n "$STRIP"; then
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6072 $as_echo "$STRIP" >&6; }
6073 else
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 $as_echo "no" >&6; }
6076 fi
6077
6078
6079 fi
6080 if test -z "$ac_cv_prog_STRIP"; then
6081 ac_ct_STRIP=$STRIP
6082 # Extract the first word of "strip", so it can be a program name with args.
6083 set dummy strip; ac_word=$2
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6085 $as_echo_n "checking for $ac_word... " >&6; }
6086 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6087 $as_echo_n "(cached) " >&6
6088 else
6089 if test -n "$ac_ct_STRIP"; then
6090 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6091 else
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 for as_dir in $PATH
6094 do
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6099 ac_cv_prog_ac_ct_STRIP="strip"
6100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 break 2
6102 fi
6103 done
6104 done
6105 IFS=$as_save_IFS
6106
6107 fi
6108 fi
6109 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6110 if test -n "$ac_ct_STRIP"; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6112 $as_echo "$ac_ct_STRIP" >&6; }
6113 else
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115 $as_echo "no" >&6; }
6116 fi
6117
6118 if test "x$ac_ct_STRIP" = x; then
6119 STRIP=":"
6120 else
6121 case $cross_compiling:$ac_tool_warned in
6122 yes:)
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6125 ac_tool_warned=yes ;;
6126 esac
6127 STRIP=$ac_ct_STRIP
6128 fi
6129 else
6130 STRIP="$ac_cv_prog_STRIP"
6131 fi
6132
6133 test -z "$STRIP" && STRIP=:
6134
6135
6136
6137
6138
6139
6140 if test -n "$ac_tool_prefix"; then
6141 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6142 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if ${ac_cv_prog_RANLIB+:} false; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 if test -n "$RANLIB"; then
6149 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6158 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6161 fi
6162 done
6163 done
6164 IFS=$as_save_IFS
6165
6166 fi
6167 fi
6168 RANLIB=$ac_cv_prog_RANLIB
6169 if test -n "$RANLIB"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6171 $as_echo "$RANLIB" >&6; }
6172 else
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6175 fi
6176
6177
6178 fi
6179 if test -z "$ac_cv_prog_RANLIB"; then
6180 ac_ct_RANLIB=$RANLIB
6181 # Extract the first word of "ranlib", so it can be a program name with args.
6182 set dummy ranlib; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 if test -n "$ac_ct_RANLIB"; then
6189 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6198 ac_cv_prog_ac_ct_RANLIB="ranlib"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6201 fi
6202 done
6203 done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6209 if test -n "$ac_ct_RANLIB"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6211 $as_echo "$ac_ct_RANLIB" >&6; }
6212 else
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6215 fi
6216
6217 if test "x$ac_ct_RANLIB" = x; then
6218 RANLIB=":"
6219 else
6220 case $cross_compiling:$ac_tool_warned in
6221 yes:)
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6224 ac_tool_warned=yes ;;
6225 esac
6226 RANLIB=$ac_ct_RANLIB
6227 fi
6228 else
6229 RANLIB="$ac_cv_prog_RANLIB"
6230 fi
6231
6232 test -z "$RANLIB" && RANLIB=:
6233
6234
6235
6236
6237
6238
6239 # Determine commands to create old-style static archives.
6240 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6241 old_postinstall_cmds='chmod 644 $oldlib'
6242 old_postuninstall_cmds=
6243
6244 if test -n "$RANLIB"; then
6245 case $host_os in
6246 openbsd*)
6247 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6248 ;;
6249 *)
6250 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6251 ;;
6252 esac
6253 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6254 fi
6255
6256 case $host_os in
6257 darwin*)
6258 lock_old_archive_extraction=yes ;;
6259 *)
6260 lock_old_archive_extraction=no ;;
6261 esac
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301 # If no C compiler was specified, use CC.
6302 LTCC=${LTCC-"$CC"}
6303
6304 # If no C compiler flags were specified, use CFLAGS.
6305 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6306
6307 # Allow CC to be a program name with arguments.
6308 compiler=$CC
6309
6310
6311 # Check for command to grab the raw symbol name followed by C symbol from nm.
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6313 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6314 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317
6318 # These are sane defaults that work on at least a few old systems.
6319 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6320
6321 # Character class describing NM global symbol codes.
6322 symcode='[BCDEGRST]'
6323
6324 # Regexp to match symbols that can be accessed directly from C.
6325 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6326
6327 # Define system-specific variables.
6328 case $host_os in
6329 aix*)
6330 symcode='[BCDT]'
6331 ;;
6332 cygwin* | mingw* | pw32* | cegcc*)
6333 symcode='[ABCDGISTW]'
6334 ;;
6335 hpux*)
6336 if test "$host_cpu" = ia64; then
6337 symcode='[ABCDEGRST]'
6338 fi
6339 ;;
6340 irix* | nonstopux*)
6341 symcode='[BCDEGRST]'
6342 ;;
6343 osf*)
6344 symcode='[BCDEGQRST]'
6345 ;;
6346 solaris*)
6347 symcode='[BDRT]'
6348 ;;
6349 sco3.2v5*)
6350 symcode='[DT]'
6351 ;;
6352 sysv4.2uw2*)
6353 symcode='[DT]'
6354 ;;
6355 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6356 symcode='[ABDT]'
6357 ;;
6358 sysv4)
6359 symcode='[DFNSTU]'
6360 ;;
6361 esac
6362
6363 # If we're using GNU nm, then use its standard symbol codes.
6364 case `$NM -V 2>&1` in
6365 *GNU* | *'with BFD'*)
6366 symcode='[ABCDGIRSTW]' ;;
6367 esac
6368
6369 # Transform an extracted symbol line into a proper C declaration.
6370 # Some systems (esp. on ia64) link data and code symbols differently,
6371 # so use this general approach.
6372 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6373
6374 # Transform an extracted symbol line into symbol name and symbol address
6375 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6376 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6377
6378 # Handle CRLF in mingw tool chain
6379 opt_cr=
6380 case $build_os in
6381 mingw*)
6382 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6383 ;;
6384 esac
6385
6386 # Try without a prefix underscore, then with it.
6387 for ac_symprfx in "" "_"; do
6388
6389 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6390 symxfrm="\\1 $ac_symprfx\\2 \\2"
6391
6392 # Write the raw and C identifiers.
6393 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6394 # Fake it for dumpbin and say T for any non-static function
6395 # and D for any global variable.
6396 # Also find C++ and __fastcall symbols from MSVC++,
6397 # which start with @ or ?.
6398 lt_cv_sys_global_symbol_pipe="$AWK '"\
6399 " {last_section=section; section=\$ 3};"\
6400 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6401 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6402 " \$ 0!~/External *\|/{next};"\
6403 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6404 " {if(hide[section]) next};"\
6405 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6406 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6407 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6408 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6409 " ' prfx=^$ac_symprfx"
6410 else
6411 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6412 fi
6413 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6414
6415 # Check to see that the pipe works correctly.
6416 pipe_works=no
6417
6418 rm -f conftest*
6419 cat > conftest.$ac_ext <<_LT_EOF
6420 #ifdef __cplusplus
6421 extern "C" {
6422 #endif
6423 char nm_test_var;
6424 void nm_test_func(void);
6425 void nm_test_func(void){}
6426 #ifdef __cplusplus
6427 }
6428 #endif
6429 int main(){nm_test_var='a';nm_test_func();return(0);}
6430 _LT_EOF
6431
6432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6433 (eval $ac_compile) 2>&5
6434 ac_status=$?
6435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6436 test $ac_status = 0; }; then
6437 # Now try to grab the symbols.
6438 nlist=conftest.nm
6439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6440 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6441 ac_status=$?
6442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6443 test $ac_status = 0; } && test -s "$nlist"; then
6444 # Try sorting and uniquifying the output.
6445 if sort "$nlist" | uniq > "$nlist"T; then
6446 mv -f "$nlist"T "$nlist"
6447 else
6448 rm -f "$nlist"T
6449 fi
6450
6451 # Make sure that we snagged all the symbols we need.
6452 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6453 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6454 cat <<_LT_EOF > conftest.$ac_ext
6455 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6456 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6457 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6458 relocations are performed -- see ld's documentation on pseudo-relocs. */
6459 # define LT_DLSYM_CONST
6460 #elif defined(__osf__)
6461 /* This system does not cope well with relocations in const data. */
6462 # define LT_DLSYM_CONST
6463 #else
6464 # define LT_DLSYM_CONST const
6465 #endif
6466
6467 #ifdef __cplusplus
6468 extern "C" {
6469 #endif
6470
6471 _LT_EOF
6472 # Now generate the symbol file.
6473 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6474
6475 cat <<_LT_EOF >> conftest.$ac_ext
6476
6477 /* The mapping between symbol names and symbols. */
6478 LT_DLSYM_CONST struct {
6479 const char *name;
6480 void *address;
6481 }
6482 lt__PROGRAM__LTX_preloaded_symbols[] =
6483 {
6484 { "@PROGRAM@", (void *) 0 },
6485 _LT_EOF
6486 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6487 cat <<\_LT_EOF >> conftest.$ac_ext
6488 {0, (void *) 0}
6489 };
6490
6491 /* This works around a problem in FreeBSD linker */
6492 #ifdef FREEBSD_WORKAROUND
6493 static const void *lt_preloaded_setup() {
6494 return lt__PROGRAM__LTX_preloaded_symbols;
6495 }
6496 #endif
6497
6498 #ifdef __cplusplus
6499 }
6500 #endif
6501 _LT_EOF
6502 # Now try linking the two files.
6503 mv conftest.$ac_objext conftstm.$ac_objext
6504 lt_globsym_save_LIBS=$LIBS
6505 lt_globsym_save_CFLAGS=$CFLAGS
6506 LIBS="conftstm.$ac_objext"
6507 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6509 (eval $ac_link) 2>&5
6510 ac_status=$?
6511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6512 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6513 pipe_works=yes
6514 fi
6515 LIBS=$lt_globsym_save_LIBS
6516 CFLAGS=$lt_globsym_save_CFLAGS
6517 else
6518 echo "cannot find nm_test_func in $nlist" >&5
6519 fi
6520 else
6521 echo "cannot find nm_test_var in $nlist" >&5
6522 fi
6523 else
6524 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6525 fi
6526 else
6527 echo "$progname: failed program was:" >&5
6528 cat conftest.$ac_ext >&5
6529 fi
6530 rm -rf conftest* conftst*
6531
6532 # Do not use the global_symbol_pipe unless it works.
6533 if test "$pipe_works" = yes; then
6534 break
6535 else
6536 lt_cv_sys_global_symbol_pipe=
6537 fi
6538 done
6539
6540 fi
6541
6542 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6543 lt_cv_sys_global_symbol_to_cdecl=
6544 fi
6545 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6547 $as_echo "failed" >&6; }
6548 else
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6550 $as_echo "ok" >&6; }
6551 fi
6552
6553 # Response file support.
6554 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6555 nm_file_list_spec='@'
6556 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6557 nm_file_list_spec='@'
6558 fi
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6587 $as_echo_n "checking for sysroot... " >&6; }
6588
6589 # Check whether --with-sysroot was given.
6590 if test "${with_sysroot+set}" = set; then :
6591 withval=$with_sysroot;
6592 else
6593 with_sysroot=no
6594 fi
6595
6596
6597 lt_sysroot=
6598 case ${with_sysroot} in #(
6599 yes)
6600 if test "$GCC" = yes; then
6601 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6602 fi
6603 ;; #(
6604 /*)
6605 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6606 ;; #(
6607 no|'')
6608 ;; #(
6609 *)
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6611 $as_echo "${with_sysroot}" >&6; }
6612 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6613 ;;
6614 esac
6615
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6617 $as_echo "${lt_sysroot:-no}" >&6; }
6618
6619
6620
6621
6622
6623 # Check whether --enable-libtool-lock was given.
6624 if test "${enable_libtool_lock+set}" = set; then :
6625 enableval=$enable_libtool_lock;
6626 fi
6627
6628 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6629
6630 # Some flags need to be propagated to the compiler or linker for good
6631 # libtool support.
6632 case $host in
6633 ia64-*-hpux*)
6634 # Find out which ABI we are using.
6635 echo 'int i;' > conftest.$ac_ext
6636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6637 (eval $ac_compile) 2>&5
6638 ac_status=$?
6639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6640 test $ac_status = 0; }; then
6641 case `/usr/bin/file conftest.$ac_objext` in
6642 *ELF-32*)
6643 HPUX_IA64_MODE="32"
6644 ;;
6645 *ELF-64*)
6646 HPUX_IA64_MODE="64"
6647 ;;
6648 esac
6649 fi
6650 rm -rf conftest*
6651 ;;
6652 *-*-irix6*)
6653 # Find out which ABI we are using.
6654 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6656 (eval $ac_compile) 2>&5
6657 ac_status=$?
6658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6659 test $ac_status = 0; }; then
6660 if test "$lt_cv_prog_gnu_ld" = yes; then
6661 case `/usr/bin/file conftest.$ac_objext` in
6662 *32-bit*)
6663 LD="${LD-ld} -melf32bsmip"
6664 ;;
6665 *N32*)
6666 LD="${LD-ld} -melf32bmipn32"
6667 ;;
6668 *64-bit*)
6669 LD="${LD-ld} -melf64bmip"
6670 ;;
6671 esac
6672 else
6673 case `/usr/bin/file conftest.$ac_objext` in
6674 *32-bit*)
6675 LD="${LD-ld} -32"
6676 ;;
6677 *N32*)
6678 LD="${LD-ld} -n32"
6679 ;;
6680 *64-bit*)
6681 LD="${LD-ld} -64"
6682 ;;
6683 esac
6684 fi
6685 fi
6686 rm -rf conftest*
6687 ;;
6688
6689 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6690 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6691 # Find out which ABI we are using.
6692 echo 'int i;' > conftest.$ac_ext
6693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6694 (eval $ac_compile) 2>&5
6695 ac_status=$?
6696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6697 test $ac_status = 0; }; then
6698 case `/usr/bin/file conftest.o` in
6699 *32-bit*)
6700 case $host in
6701 x86_64-*kfreebsd*-gnu)
6702 LD="${LD-ld} -m elf_i386_fbsd"
6703 ;;
6704 x86_64-*linux*)
6705 LD="${LD-ld} -m elf_i386"
6706 ;;
6707 powerpcle-*linux*)
6708 LD="${LD-ld} -m elf32lppclinux"
6709 ;;
6710 powerpc-*linux*)
6711 LD="${LD-ld} -m elf32ppclinux"
6712 ;;
6713 s390x-*linux*)
6714 LD="${LD-ld} -m elf_s390"
6715 ;;
6716 sparc64-*linux*)
6717 LD="${LD-ld} -m elf32_sparc"
6718 ;;
6719 esac
6720 ;;
6721 *64-bit*)
6722 case $host in
6723 x86_64-*kfreebsd*-gnu)
6724 LD="${LD-ld} -m elf_x86_64_fbsd"
6725 ;;
6726 x86_64-*linux*)
6727 LD="${LD-ld} -m elf_x86_64"
6728 ;;
6729 powerpcle-*linux*)
6730 LD="${LD-ld} -m elf64lppc"
6731 ;;
6732 powerpc-*linux*)
6733 LD="${LD-ld} -m elf64ppc"
6734 ;;
6735 s390*-*linux*|s390*-*tpf*)
6736 LD="${LD-ld} -m elf64_s390"
6737 ;;
6738 sparc*-*linux*)
6739 LD="${LD-ld} -m elf64_sparc"
6740 ;;
6741 esac
6742 ;;
6743 esac
6744 fi
6745 rm -rf conftest*
6746 ;;
6747
6748 *-*-sco3.2v5*)
6749 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6750 SAVE_CFLAGS="$CFLAGS"
6751 CFLAGS="$CFLAGS -belf"
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6753 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6754 if ${lt_cv_cc_needs_belf+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 ac_ext=c
6758 ac_cpp='$CPP $CPPFLAGS'
6759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6762
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6765
6766 int
6767 main ()
6768 {
6769
6770 ;
6771 return 0;
6772 }
6773 _ACEOF
6774 if ac_fn_c_try_link "$LINENO"; then :
6775 lt_cv_cc_needs_belf=yes
6776 else
6777 lt_cv_cc_needs_belf=no
6778 fi
6779 rm -f core conftest.err conftest.$ac_objext \
6780 conftest$ac_exeext conftest.$ac_ext
6781 ac_ext=c
6782 ac_cpp='$CPP $CPPFLAGS'
6783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6786
6787 fi
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6789 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6790 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6791 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6792 CFLAGS="$SAVE_CFLAGS"
6793 fi
6794 ;;
6795 *-*solaris*)
6796 # Find out which ABI we are using.
6797 echo 'int i;' > conftest.$ac_ext
6798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6799 (eval $ac_compile) 2>&5
6800 ac_status=$?
6801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6802 test $ac_status = 0; }; then
6803 case `/usr/bin/file conftest.o` in
6804 *64-bit*)
6805 case $lt_cv_prog_gnu_ld in
6806 yes*)
6807 case $host in
6808 i?86-*-solaris*)
6809 LD="${LD-ld} -m elf_x86_64"
6810 ;;
6811 sparc*-*-solaris*)
6812 LD="${LD-ld} -m elf64_sparc"
6813 ;;
6814 esac
6815 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6816 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6817 LD="${LD-ld}_sol2"
6818 fi
6819 ;;
6820 *)
6821 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6822 LD="${LD-ld} -64"
6823 fi
6824 ;;
6825 esac
6826 ;;
6827 esac
6828 fi
6829 rm -rf conftest*
6830 ;;
6831 esac
6832
6833 need_locks="$enable_libtool_lock"
6834
6835 if test -n "$ac_tool_prefix"; then
6836 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6837 set dummy ${ac_tool_prefix}mt; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6841 $as_echo_n "(cached) " >&6
6842 else
6843 if test -n "$MANIFEST_TOOL"; then
6844 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849 IFS=$as_save_IFS
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6853 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 break 2
6856 fi
6857 done
6858 done
6859 IFS=$as_save_IFS
6860
6861 fi
6862 fi
6863 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6864 if test -n "$MANIFEST_TOOL"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6866 $as_echo "$MANIFEST_TOOL" >&6; }
6867 else
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6870 fi
6871
6872
6873 fi
6874 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6875 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6876 # Extract the first word of "mt", so it can be a program name with args.
6877 set dummy mt; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6881 $as_echo_n "(cached) " >&6
6882 else
6883 if test -n "$ac_ct_MANIFEST_TOOL"; then
6884 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6885 else
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6888 do
6889 IFS=$as_save_IFS
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6893 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 break 2
6896 fi
6897 done
6898 done
6899 IFS=$as_save_IFS
6900
6901 fi
6902 fi
6903 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6904 if test -n "$ac_ct_MANIFEST_TOOL"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6906 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6907 else
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6910 fi
6911
6912 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6913 MANIFEST_TOOL=":"
6914 else
6915 case $cross_compiling:$ac_tool_warned in
6916 yes:)
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6919 ac_tool_warned=yes ;;
6920 esac
6921 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6922 fi
6923 else
6924 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6925 fi
6926
6927 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6929 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6930 if ${lt_cv_path_mainfest_tool+:} false; then :
6931 $as_echo_n "(cached) " >&6
6932 else
6933 lt_cv_path_mainfest_tool=no
6934 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6935 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6936 cat conftest.err >&5
6937 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6938 lt_cv_path_mainfest_tool=yes
6939 fi
6940 rm -f conftest*
6941 fi
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6943 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6944 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6945 MANIFEST_TOOL=:
6946 fi
6947
6948
6949
6950
6951
6952
6953 case $host_os in
6954 rhapsody* | darwin*)
6955 if test -n "$ac_tool_prefix"; then
6956 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6957 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 if test -n "$DSYMUTIL"; then
6964 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6968 do
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6973 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6976 fi
6977 done
6978 done
6979 IFS=$as_save_IFS
6980
6981 fi
6982 fi
6983 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6984 if test -n "$DSYMUTIL"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6986 $as_echo "$DSYMUTIL" >&6; }
6987 else
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 $as_echo "no" >&6; }
6990 fi
6991
6992
6993 fi
6994 if test -z "$ac_cv_prog_DSYMUTIL"; then
6995 ac_ct_DSYMUTIL=$DSYMUTIL
6996 # Extract the first word of "dsymutil", so it can be a program name with args.
6997 set dummy dsymutil; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 if test -n "$ac_ct_DSYMUTIL"; then
7004 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7016 fi
7017 done
7018 done
7019 IFS=$as_save_IFS
7020
7021 fi
7022 fi
7023 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7024 if test -n "$ac_ct_DSYMUTIL"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7026 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7027 else
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7030 fi
7031
7032 if test "x$ac_ct_DSYMUTIL" = x; then
7033 DSYMUTIL=":"
7034 else
7035 case $cross_compiling:$ac_tool_warned in
7036 yes:)
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7039 ac_tool_warned=yes ;;
7040 esac
7041 DSYMUTIL=$ac_ct_DSYMUTIL
7042 fi
7043 else
7044 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7045 fi
7046
7047 if test -n "$ac_tool_prefix"; then
7048 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7049 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if ${ac_cv_prog_NMEDIT+:} false; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 if test -n "$NMEDIT"; then
7056 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
7069 done
7070 done
7071 IFS=$as_save_IFS
7072
7073 fi
7074 fi
7075 NMEDIT=$ac_cv_prog_NMEDIT
7076 if test -n "$NMEDIT"; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7078 $as_echo "$NMEDIT" >&6; }
7079 else
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7082 fi
7083
7084
7085 fi
7086 if test -z "$ac_cv_prog_NMEDIT"; then
7087 ac_ct_NMEDIT=$NMEDIT
7088 # Extract the first word of "nmedit", so it can be a program name with args.
7089 set dummy nmedit; ac_word=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 if test -n "$ac_ct_NMEDIT"; then
7096 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7097 else
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7100 do
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 break 2
7108 fi
7109 done
7110 done
7111 IFS=$as_save_IFS
7112
7113 fi
7114 fi
7115 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7116 if test -n "$ac_ct_NMEDIT"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7118 $as_echo "$ac_ct_NMEDIT" >&6; }
7119 else
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7122 fi
7123
7124 if test "x$ac_ct_NMEDIT" = x; then
7125 NMEDIT=":"
7126 else
7127 case $cross_compiling:$ac_tool_warned in
7128 yes:)
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7131 ac_tool_warned=yes ;;
7132 esac
7133 NMEDIT=$ac_ct_NMEDIT
7134 fi
7135 else
7136 NMEDIT="$ac_cv_prog_NMEDIT"
7137 fi
7138
7139 if test -n "$ac_tool_prefix"; then
7140 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7141 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7143 $as_echo_n "checking for $ac_word... " >&6; }
7144 if ${ac_cv_prog_LIPO+:} false; then :
7145 $as_echo_n "(cached) " >&6
7146 else
7147 if test -n "$LIPO"; then
7148 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7149 else
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7152 do
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7157 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 break 2
7160 fi
7161 done
7162 done
7163 IFS=$as_save_IFS
7164
7165 fi
7166 fi
7167 LIPO=$ac_cv_prog_LIPO
7168 if test -n "$LIPO"; then
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7170 $as_echo "$LIPO" >&6; }
7171 else
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173 $as_echo "no" >&6; }
7174 fi
7175
7176
7177 fi
7178 if test -z "$ac_cv_prog_LIPO"; then
7179 ac_ct_LIPO=$LIPO
7180 # Extract the first word of "lipo", so it can be a program name with args.
7181 set dummy lipo; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7187 if test -n "$ac_ct_LIPO"; then
7188 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7189 else
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_ac_ct_LIPO="lipo"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 break 2
7200 fi
7201 done
7202 done
7203 IFS=$as_save_IFS
7204
7205 fi
7206 fi
7207 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7208 if test -n "$ac_ct_LIPO"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7210 $as_echo "$ac_ct_LIPO" >&6; }
7211 else
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7214 fi
7215
7216 if test "x$ac_ct_LIPO" = x; then
7217 LIPO=":"
7218 else
7219 case $cross_compiling:$ac_tool_warned in
7220 yes:)
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7223 ac_tool_warned=yes ;;
7224 esac
7225 LIPO=$ac_ct_LIPO
7226 fi
7227 else
7228 LIPO="$ac_cv_prog_LIPO"
7229 fi
7230
7231 if test -n "$ac_tool_prefix"; then
7232 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7233 set dummy ${ac_tool_prefix}otool; ac_word=$2
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235 $as_echo_n "checking for $ac_word... " >&6; }
7236 if ${ac_cv_prog_OTOOL+:} false; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239 if test -n "$OTOOL"; then
7240 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7241 else
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH
7244 do
7245 IFS=$as_save_IFS
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7249 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 break 2
7252 fi
7253 done
7254 done
7255 IFS=$as_save_IFS
7256
7257 fi
7258 fi
7259 OTOOL=$ac_cv_prog_OTOOL
7260 if test -n "$OTOOL"; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7262 $as_echo "$OTOOL" >&6; }
7263 else
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265 $as_echo "no" >&6; }
7266 fi
7267
7268
7269 fi
7270 if test -z "$ac_cv_prog_OTOOL"; then
7271 ac_ct_OTOOL=$OTOOL
7272 # Extract the first word of "otool", so it can be a program name with args.
7273 set dummy otool; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 if test -n "$ac_ct_OTOOL"; then
7280 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7281 else
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7284 do
7285 IFS=$as_save_IFS
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289 ac_cv_prog_ac_ct_OTOOL="otool"
7290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 break 2
7292 fi
7293 done
7294 done
7295 IFS=$as_save_IFS
7296
7297 fi
7298 fi
7299 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7300 if test -n "$ac_ct_OTOOL"; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7302 $as_echo "$ac_ct_OTOOL" >&6; }
7303 else
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7306 fi
7307
7308 if test "x$ac_ct_OTOOL" = x; then
7309 OTOOL=":"
7310 else
7311 case $cross_compiling:$ac_tool_warned in
7312 yes:)
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7315 ac_tool_warned=yes ;;
7316 esac
7317 OTOOL=$ac_ct_OTOOL
7318 fi
7319 else
7320 OTOOL="$ac_cv_prog_OTOOL"
7321 fi
7322
7323 if test -n "$ac_tool_prefix"; then
7324 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7325 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if ${ac_cv_prog_OTOOL64+:} false; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 if test -n "$OTOOL64"; then
7332 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 break 2
7344 fi
7345 done
7346 done
7347 IFS=$as_save_IFS
7348
7349 fi
7350 fi
7351 OTOOL64=$ac_cv_prog_OTOOL64
7352 if test -n "$OTOOL64"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7354 $as_echo "$OTOOL64" >&6; }
7355 else
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7358 fi
7359
7360
7361 fi
7362 if test -z "$ac_cv_prog_OTOOL64"; then
7363 ac_ct_OTOOL64=$OTOOL64
7364 # Extract the first word of "otool64", so it can be a program name with args.
7365 set dummy otool64; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 if test -n "$ac_ct_OTOOL64"; then
7372 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377 IFS=$as_save_IFS
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381 ac_cv_prog_ac_ct_OTOOL64="otool64"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 break 2
7384 fi
7385 done
7386 done
7387 IFS=$as_save_IFS
7388
7389 fi
7390 fi
7391 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7392 if test -n "$ac_ct_OTOOL64"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7394 $as_echo "$ac_ct_OTOOL64" >&6; }
7395 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7398 fi
7399
7400 if test "x$ac_ct_OTOOL64" = x; then
7401 OTOOL64=":"
7402 else
7403 case $cross_compiling:$ac_tool_warned in
7404 yes:)
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7408 esac
7409 OTOOL64=$ac_ct_OTOOL64
7410 fi
7411 else
7412 OTOOL64="$ac_cv_prog_OTOOL64"
7413 fi
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7442 $as_echo_n "checking for -single_module linker flag... " >&6; }
7443 if ${lt_cv_apple_cc_single_mod+:} false; then :
7444 $as_echo_n "(cached) " >&6
7445 else
7446 lt_cv_apple_cc_single_mod=no
7447 if test -z "${LT_MULTI_MODULE}"; then
7448 # By default we will add the -single_module flag. You can override
7449 # by either setting the environment variable LT_MULTI_MODULE
7450 # non-empty at configure time, or by adding -multi_module to the
7451 # link flags.
7452 rm -rf libconftest.dylib*
7453 echo "int foo(void){return 1;}" > conftest.c
7454 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7455 -dynamiclib -Wl,-single_module conftest.c" >&5
7456 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7457 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7458 _lt_result=$?
7459 # If there is a non-empty error log, and "single_module"
7460 # appears in it, assume the flag caused a linker warning
7461 if test -s conftest.err && $GREP single_module conftest.err; then
7462 cat conftest.err >&5
7463 # Otherwise, if the output was created with a 0 exit code from
7464 # the compiler, it worked.
7465 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7466 lt_cv_apple_cc_single_mod=yes
7467 else
7468 cat conftest.err >&5
7469 fi
7470 rm -rf libconftest.dylib*
7471 rm -f conftest.*
7472 fi
7473 fi
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7475 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7476
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7478 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7479 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7480 $as_echo_n "(cached) " >&6
7481 else
7482 lt_cv_ld_exported_symbols_list=no
7483 save_LDFLAGS=$LDFLAGS
7484 echo "_main" > conftest.sym
7485 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7488
7489 int
7490 main ()
7491 {
7492
7493 ;
7494 return 0;
7495 }
7496 _ACEOF
7497 if ac_fn_c_try_link "$LINENO"; then :
7498 lt_cv_ld_exported_symbols_list=yes
7499 else
7500 lt_cv_ld_exported_symbols_list=no
7501 fi
7502 rm -f core conftest.err conftest.$ac_objext \
7503 conftest$ac_exeext conftest.$ac_ext
7504 LDFLAGS="$save_LDFLAGS"
7505
7506 fi
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7508 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7509
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7511 $as_echo_n "checking for -force_load linker flag... " >&6; }
7512 if ${lt_cv_ld_force_load+:} false; then :
7513 $as_echo_n "(cached) " >&6
7514 else
7515 lt_cv_ld_force_load=no
7516 cat > conftest.c << _LT_EOF
7517 int forced_loaded() { return 2;}
7518 _LT_EOF
7519 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7520 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7521 echo "$AR cru libconftest.a conftest.o" >&5
7522 $AR cru libconftest.a conftest.o 2>&5
7523 echo "$RANLIB libconftest.a" >&5
7524 $RANLIB libconftest.a 2>&5
7525 cat > conftest.c << _LT_EOF
7526 int main() { return 0;}
7527 _LT_EOF
7528 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7529 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7530 _lt_result=$?
7531 if test -s conftest.err && $GREP force_load conftest.err; then
7532 cat conftest.err >&5
7533 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7534 lt_cv_ld_force_load=yes
7535 else
7536 cat conftest.err >&5
7537 fi
7538 rm -f conftest.err libconftest.a conftest conftest.c
7539 rm -rf conftest.dSYM
7540
7541 fi
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7543 $as_echo "$lt_cv_ld_force_load" >&6; }
7544 case $host_os in
7545 rhapsody* | darwin1.[012])
7546 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7547 darwin1.*)
7548 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7549 darwin*) # darwin 5.x on
7550 # if running on 10.5 or later, the deployment target defaults
7551 # to the OS version, if on x86, and 10.4, the deployment
7552 # target defaults to 10.4. Don't you love it?
7553 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7554 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7555 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7556 10.[012]*)
7557 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7558 10.*)
7559 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7560 esac
7561 ;;
7562 esac
7563 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7564 _lt_dar_single_mod='$single_module'
7565 fi
7566 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7567 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7568 else
7569 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7570 fi
7571 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7572 _lt_dsymutil='~$DSYMUTIL $lib || :'
7573 else
7574 _lt_dsymutil=
7575 fi
7576 ;;
7577 esac
7578
7579
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7581 $as_echo_n "checking for ANSI C header files... " >&6; }
7582 if ${ac_cv_header_stdc+:} false; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587 #include <stdlib.h>
7588 #include <stdarg.h>
7589 #include <string.h>
7590 #include <float.h>
7591
7592 int
7593 main ()
7594 {
7595
7596 ;
7597 return 0;
7598 }
7599 _ACEOF
7600 if ac_fn_c_try_compile "$LINENO"; then :
7601 ac_cv_header_stdc=yes
7602 else
7603 ac_cv_header_stdc=no
7604 fi
7605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7606
7607 if test $ac_cv_header_stdc = yes; then
7608 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7610 /* end confdefs.h. */
7611 #include <string.h>
7612
7613 _ACEOF
7614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7615 $EGREP "memchr" >/dev/null 2>&1; then :
7616
7617 else
7618 ac_cv_header_stdc=no
7619 fi
7620 rm -f conftest*
7621
7622 fi
7623
7624 if test $ac_cv_header_stdc = yes; then
7625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7628 #include <stdlib.h>
7629
7630 _ACEOF
7631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7632 $EGREP "free" >/dev/null 2>&1; then :
7633
7634 else
7635 ac_cv_header_stdc=no
7636 fi
7637 rm -f conftest*
7638
7639 fi
7640
7641 if test $ac_cv_header_stdc = yes; then
7642 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7643 if test "$cross_compiling" = yes; then :
7644 :
7645 else
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7648 #include <ctype.h>
7649 #include <stdlib.h>
7650 #if ((' ' & 0x0FF) == 0x020)
7651 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7652 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7653 #else
7654 # define ISLOWER(c) \
7655 (('a' <= (c) && (c) <= 'i') \
7656 || ('j' <= (c) && (c) <= 'r') \
7657 || ('s' <= (c) && (c) <= 'z'))
7658 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7659 #endif
7660
7661 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7662 int
7663 main ()
7664 {
7665 int i;
7666 for (i = 0; i < 256; i++)
7667 if (XOR (islower (i), ISLOWER (i))
7668 || toupper (i) != TOUPPER (i))
7669 return 2;
7670 return 0;
7671 }
7672 _ACEOF
7673 if ac_fn_c_try_run "$LINENO"; then :
7674
7675 else
7676 ac_cv_header_stdc=no
7677 fi
7678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7679 conftest.$ac_objext conftest.beam conftest.$ac_ext
7680 fi
7681
7682 fi
7683 fi
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7685 $as_echo "$ac_cv_header_stdc" >&6; }
7686 if test $ac_cv_header_stdc = yes; then
7687
7688 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7689
7690 fi
7691
7692 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7693 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7694 inttypes.h stdint.h unistd.h
7695 do :
7696 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7697 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7698 "
7699 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7700 cat >>confdefs.h <<_ACEOF
7701 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7702 _ACEOF
7703
7704 fi
7705
7706 done
7707
7708
7709 for ac_header in dlfcn.h
7710 do :
7711 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7712 "
7713 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7714 cat >>confdefs.h <<_ACEOF
7715 #define HAVE_DLFCN_H 1
7716 _ACEOF
7717
7718 fi
7719
7720 done
7721
7722
7723
7724
7725
7726 # Set options
7727 enable_dlopen=yes
7728
7729
7730
7731
7732 enable_win32_dll=no
7733
7734
7735 # Check whether --enable-shared was given.
7736 if test "${enable_shared+set}" = set; then :
7737 enableval=$enable_shared; p=${PACKAGE-default}
7738 case $enableval in
7739 yes) enable_shared=yes ;;
7740 no) enable_shared=no ;;
7741 *)
7742 enable_shared=no
7743 # Look at the argument we got. We use all the common list separators.
7744 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7745 for pkg in $enableval; do
7746 IFS="$lt_save_ifs"
7747 if test "X$pkg" = "X$p"; then
7748 enable_shared=yes
7749 fi
7750 done
7751 IFS="$lt_save_ifs"
7752 ;;
7753 esac
7754 else
7755 enable_shared=yes
7756 fi
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766 # Check whether --enable-static was given.
7767 if test "${enable_static+set}" = set; then :
7768 enableval=$enable_static; p=${PACKAGE-default}
7769 case $enableval in
7770 yes) enable_static=yes ;;
7771 no) enable_static=no ;;
7772 *)
7773 enable_static=no
7774 # Look at the argument we got. We use all the common list separators.
7775 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7776 for pkg in $enableval; do
7777 IFS="$lt_save_ifs"
7778 if test "X$pkg" = "X$p"; then
7779 enable_static=yes
7780 fi
7781 done
7782 IFS="$lt_save_ifs"
7783 ;;
7784 esac
7785 else
7786 enable_static=yes
7787 fi
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798 # Check whether --with-pic was given.
7799 if test "${with_pic+set}" = set; then :
7800 withval=$with_pic; lt_p=${PACKAGE-default}
7801 case $withval in
7802 yes|no) pic_mode=$withval ;;
7803 *)
7804 pic_mode=default
7805 # Look at the argument we got. We use all the common list separators.
7806 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7807 for lt_pkg in $withval; do
7808 IFS="$lt_save_ifs"
7809 if test "X$lt_pkg" = "X$lt_p"; then
7810 pic_mode=yes
7811 fi
7812 done
7813 IFS="$lt_save_ifs"
7814 ;;
7815 esac
7816 else
7817 pic_mode=default
7818 fi
7819
7820
7821 test -z "$pic_mode" && pic_mode=default
7822
7823
7824
7825
7826
7827
7828
7829 # Check whether --enable-fast-install was given.
7830 if test "${enable_fast_install+set}" = set; then :
7831 enableval=$enable_fast_install; p=${PACKAGE-default}
7832 case $enableval in
7833 yes) enable_fast_install=yes ;;
7834 no) enable_fast_install=no ;;
7835 *)
7836 enable_fast_install=no
7837 # Look at the argument we got. We use all the common list separators.
7838 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7839 for pkg in $enableval; do
7840 IFS="$lt_save_ifs"
7841 if test "X$pkg" = "X$p"; then
7842 enable_fast_install=yes
7843 fi
7844 done
7845 IFS="$lt_save_ifs"
7846 ;;
7847 esac
7848 else
7849 enable_fast_install=yes
7850 fi
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862 # This can be used to rebuild libtool when needed
7863 LIBTOOL_DEPS="$ltmain"
7864
7865 # Always use our own libtool.
7866 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897 test -z "$LN_S" && LN_S="ln -s"
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912 if test -n "${ZSH_VERSION+set}" ; then
7913 setopt NO_GLOB_SUBST
7914 fi
7915
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7917 $as_echo_n "checking for objdir... " >&6; }
7918 if ${lt_cv_objdir+:} false; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 rm -f .libs 2>/dev/null
7922 mkdir .libs 2>/dev/null
7923 if test -d .libs; then
7924 lt_cv_objdir=.libs
7925 else
7926 # MS-DOS does not allow filenames that begin with a dot.
7927 lt_cv_objdir=_libs
7928 fi
7929 rmdir .libs 2>/dev/null
7930 fi
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7932 $as_echo "$lt_cv_objdir" >&6; }
7933 objdir=$lt_cv_objdir
7934
7935
7936
7937
7938
7939 cat >>confdefs.h <<_ACEOF
7940 #define LT_OBJDIR "$lt_cv_objdir/"
7941 _ACEOF
7942
7943
7944
7945
7946 case $host_os in
7947 aix3*)
7948 # AIX sometimes has problems with the GCC collect2 program. For some
7949 # reason, if we set the COLLECT_NAMES environment variable, the problems
7950 # vanish in a puff of smoke.
7951 if test "X${COLLECT_NAMES+set}" != Xset; then
7952 COLLECT_NAMES=
7953 export COLLECT_NAMES
7954 fi
7955 ;;
7956 esac
7957
7958 # Global variables:
7959 ofile=libtool
7960 can_build_shared=yes
7961
7962 # All known linkers require a `.a' archive for static linking (except MSVC,
7963 # which needs '.lib').
7964 libext=a
7965
7966 with_gnu_ld="$lt_cv_prog_gnu_ld"
7967
7968 old_CC="$CC"
7969 old_CFLAGS="$CFLAGS"
7970
7971 # Set sane defaults for various variables
7972 test -z "$CC" && CC=cc
7973 test -z "$LTCC" && LTCC=$CC
7974 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7975 test -z "$LD" && LD=ld
7976 test -z "$ac_objext" && ac_objext=o
7977
7978 for cc_temp in $compiler""; do
7979 case $cc_temp in
7980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7982 \-*) ;;
7983 *) break;;
7984 esac
7985 done
7986 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7987
7988
7989 # Only perform the check for file, if the check method requires it
7990 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7991 case $deplibs_check_method in
7992 file_magic*)
7993 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7995 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7996 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 case $MAGIC_CMD in
8000 [\\/*] | ?:[\\/]*)
8001 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8002 ;;
8003 *)
8004 lt_save_MAGIC_CMD="$MAGIC_CMD"
8005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8006 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8007 for ac_dir in $ac_dummy; do
8008 IFS="$lt_save_ifs"
8009 test -z "$ac_dir" && ac_dir=.
8010 if test -f $ac_dir/${ac_tool_prefix}file; then
8011 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8012 if test -n "$file_magic_test_file"; then
8013 case $deplibs_check_method in
8014 "file_magic "*)
8015 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8017 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8018 $EGREP "$file_magic_regex" > /dev/null; then
8019 :
8020 else
8021 cat <<_LT_EOF 1>&2
8022
8023 *** Warning: the command libtool uses to detect shared libraries,
8024 *** $file_magic_cmd, produces output that libtool cannot recognize.
8025 *** The result is that libtool may fail to recognize shared libraries
8026 *** as such. This will affect the creation of libtool libraries that
8027 *** depend on shared libraries, but programs linked with such libtool
8028 *** libraries will work regardless of this problem. Nevertheless, you
8029 *** may want to report the problem to your system manager and/or to
8030 *** bug-libtool@gnu.org
8031
8032 _LT_EOF
8033 fi ;;
8034 esac
8035 fi
8036 break
8037 fi
8038 done
8039 IFS="$lt_save_ifs"
8040 MAGIC_CMD="$lt_save_MAGIC_CMD"
8041 ;;
8042 esac
8043 fi
8044
8045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8046 if test -n "$MAGIC_CMD"; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8048 $as_echo "$MAGIC_CMD" >&6; }
8049 else
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8052 fi
8053
8054
8055
8056
8057
8058 if test -z "$lt_cv_path_MAGIC_CMD"; then
8059 if test -n "$ac_tool_prefix"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8061 $as_echo_n "checking for file... " >&6; }
8062 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8063 $as_echo_n "(cached) " >&6
8064 else
8065 case $MAGIC_CMD in
8066 [\\/*] | ?:[\\/]*)
8067 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8068 ;;
8069 *)
8070 lt_save_MAGIC_CMD="$MAGIC_CMD"
8071 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8072 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8073 for ac_dir in $ac_dummy; do
8074 IFS="$lt_save_ifs"
8075 test -z "$ac_dir" && ac_dir=.
8076 if test -f $ac_dir/file; then
8077 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8078 if test -n "$file_magic_test_file"; then
8079 case $deplibs_check_method in
8080 "file_magic "*)
8081 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8083 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8084 $EGREP "$file_magic_regex" > /dev/null; then
8085 :
8086 else
8087 cat <<_LT_EOF 1>&2
8088
8089 *** Warning: the command libtool uses to detect shared libraries,
8090 *** $file_magic_cmd, produces output that libtool cannot recognize.
8091 *** The result is that libtool may fail to recognize shared libraries
8092 *** as such. This will affect the creation of libtool libraries that
8093 *** depend on shared libraries, but programs linked with such libtool
8094 *** libraries will work regardless of this problem. Nevertheless, you
8095 *** may want to report the problem to your system manager and/or to
8096 *** bug-libtool@gnu.org
8097
8098 _LT_EOF
8099 fi ;;
8100 esac
8101 fi
8102 break
8103 fi
8104 done
8105 IFS="$lt_save_ifs"
8106 MAGIC_CMD="$lt_save_MAGIC_CMD"
8107 ;;
8108 esac
8109 fi
8110
8111 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8112 if test -n "$MAGIC_CMD"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8114 $as_echo "$MAGIC_CMD" >&6; }
8115 else
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8118 fi
8119
8120
8121 else
8122 MAGIC_CMD=:
8123 fi
8124 fi
8125
8126 fi
8127 ;;
8128 esac
8129
8130 # Use C for the default configuration in the libtool script
8131
8132 lt_save_CC="$CC"
8133 ac_ext=c
8134 ac_cpp='$CPP $CPPFLAGS'
8135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8138
8139
8140 # Source file extension for C test sources.
8141 ac_ext=c
8142
8143 # Object file extension for compiled C test sources.
8144 objext=o
8145 objext=$objext
8146
8147 # Code to be used in simple compile tests
8148 lt_simple_compile_test_code="int some_variable = 0;"
8149
8150 # Code to be used in simple link tests
8151 lt_simple_link_test_code='int main(){return(0);}'
8152
8153
8154
8155
8156
8157
8158
8159 # If no C compiler was specified, use CC.
8160 LTCC=${LTCC-"$CC"}
8161
8162 # If no C compiler flags were specified, use CFLAGS.
8163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8164
8165 # Allow CC to be a program name with arguments.
8166 compiler=$CC
8167
8168 # Save the default compiler, since it gets overwritten when the other
8169 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8170 compiler_DEFAULT=$CC
8171
8172 # save warnings/boilerplate of simple test code
8173 ac_outfile=conftest.$ac_objext
8174 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8175 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8176 _lt_compiler_boilerplate=`cat conftest.err`
8177 $RM conftest*
8178
8179 ac_outfile=conftest.$ac_objext
8180 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8181 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8182 _lt_linker_boilerplate=`cat conftest.err`
8183 $RM -r conftest*
8184
8185
8186 if test -n "$compiler"; then
8187
8188 lt_prog_compiler_no_builtin_flag=
8189
8190 if test "$GCC" = yes; then
8191 case $cc_basename in
8192 nvcc*)
8193 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8194 *)
8195 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8196 esac
8197
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8199 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8200 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 lt_cv_prog_compiler_rtti_exceptions=no
8204 ac_outfile=conftest.$ac_objext
8205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8206 lt_compiler_flag="-fno-rtti -fno-exceptions"
8207 # Insert the option either (1) after the last *FLAGS variable, or
8208 # (2) before a word containing "conftest.", or (3) at the end.
8209 # Note that $ac_compile itself does not contain backslashes and begins
8210 # with a dollar sign (not a hyphen), so the echo should work correctly.
8211 # The option is referenced via a variable to avoid confusing sed.
8212 lt_compile=`echo "$ac_compile" | $SED \
8213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8215 -e 's:$: $lt_compiler_flag:'`
8216 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8217 (eval "$lt_compile" 2>conftest.err)
8218 ac_status=$?
8219 cat conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 if (exit $ac_status) && test -s "$ac_outfile"; then
8222 # The compiler can only warn and ignore the option if not recognized
8223 # So say no if there are warnings other than the usual output.
8224 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8226 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8227 lt_cv_prog_compiler_rtti_exceptions=yes
8228 fi
8229 fi
8230 $RM conftest*
8231
8232 fi
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8234 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8235
8236 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8237 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8238 else
8239 :
8240 fi
8241
8242 fi
8243
8244
8245
8246
8247
8248
8249 lt_prog_compiler_wl=
8250 lt_prog_compiler_pic=
8251 lt_prog_compiler_static=
8252
8253
8254 if test "$GCC" = yes; then
8255 lt_prog_compiler_wl='-Wl,'
8256 lt_prog_compiler_static='-static'
8257
8258 case $host_os in
8259 aix*)
8260 # All AIX code is PIC.
8261 if test "$host_cpu" = ia64; then
8262 # AIX 5 now supports IA64 processor
8263 lt_prog_compiler_static='-Bstatic'
8264 fi
8265 ;;
8266
8267 amigaos*)
8268 case $host_cpu in
8269 powerpc)
8270 # see comment about AmigaOS4 .so support
8271 lt_prog_compiler_pic='-fPIC'
8272 ;;
8273 m68k)
8274 # FIXME: we need at least 68020 code to build shared libraries, but
8275 # adding the `-m68020' flag to GCC prevents building anything better,
8276 # like `-m68040'.
8277 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8278 ;;
8279 esac
8280 ;;
8281
8282 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8283 # PIC is the default for these OSes.
8284 ;;
8285
8286 mingw* | cygwin* | pw32* | os2* | cegcc*)
8287 # This hack is so that the source file can tell whether it is being
8288 # built for inclusion in a dll (and should export symbols for example).
8289 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8290 # (--disable-auto-import) libraries
8291 lt_prog_compiler_pic='-DDLL_EXPORT'
8292 ;;
8293
8294 darwin* | rhapsody*)
8295 # PIC is the default on this platform
8296 # Common symbols not allowed in MH_DYLIB files
8297 lt_prog_compiler_pic='-fno-common'
8298 ;;
8299
8300 haiku*)
8301 # PIC is the default for Haiku.
8302 # The "-static" flag exists, but is broken.
8303 lt_prog_compiler_static=
8304 ;;
8305
8306 hpux*)
8307 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8308 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8309 # sets the default TLS model and affects inlining.
8310 case $host_cpu in
8311 hppa*64*)
8312 # +Z the default
8313 ;;
8314 *)
8315 lt_prog_compiler_pic='-fPIC'
8316 ;;
8317 esac
8318 ;;
8319
8320 interix[3-9]*)
8321 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8322 # Instead, we relocate shared libraries at runtime.
8323 ;;
8324
8325 msdosdjgpp*)
8326 # Just because we use GCC doesn't mean we suddenly get shared libraries
8327 # on systems that don't support them.
8328 lt_prog_compiler_can_build_shared=no
8329 enable_shared=no
8330 ;;
8331
8332 *nto* | *qnx*)
8333 # QNX uses GNU C++, but need to define -shared option too, otherwise
8334 # it will coredump.
8335 lt_prog_compiler_pic='-fPIC -shared'
8336 ;;
8337
8338 sysv4*MP*)
8339 if test -d /usr/nec; then
8340 lt_prog_compiler_pic=-Kconform_pic
8341 fi
8342 ;;
8343
8344 *)
8345 lt_prog_compiler_pic='-fPIC'
8346 ;;
8347 esac
8348
8349 case $cc_basename in
8350 nvcc*) # Cuda Compiler Driver 2.2
8351 lt_prog_compiler_wl='-Xlinker '
8352 if test -n "$lt_prog_compiler_pic"; then
8353 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8354 fi
8355 ;;
8356 esac
8357 else
8358 # PORTME Check for flag to pass linker flags through the system compiler.
8359 case $host_os in
8360 aix*)
8361 lt_prog_compiler_wl='-Wl,'
8362 if test "$host_cpu" = ia64; then
8363 # AIX 5 now supports IA64 processor
8364 lt_prog_compiler_static='-Bstatic'
8365 else
8366 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8367 fi
8368 ;;
8369
8370 mingw* | cygwin* | pw32* | os2* | cegcc*)
8371 # This hack is so that the source file can tell whether it is being
8372 # built for inclusion in a dll (and should export symbols for example).
8373 lt_prog_compiler_pic='-DDLL_EXPORT'
8374 ;;
8375
8376 hpux9* | hpux10* | hpux11*)
8377 lt_prog_compiler_wl='-Wl,'
8378 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8379 # not for PA HP-UX.
8380 case $host_cpu in
8381 hppa*64*|ia64*)
8382 # +Z the default
8383 ;;
8384 *)
8385 lt_prog_compiler_pic='+Z'
8386 ;;
8387 esac
8388 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8389 lt_prog_compiler_static='${wl}-a ${wl}archive'
8390 ;;
8391
8392 irix5* | irix6* | nonstopux*)
8393 lt_prog_compiler_wl='-Wl,'
8394 # PIC (with -KPIC) is the default.
8395 lt_prog_compiler_static='-non_shared'
8396 ;;
8397
8398 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8399 case $cc_basename in
8400 # old Intel for x86_64 which still supported -KPIC.
8401 ecc*)
8402 lt_prog_compiler_wl='-Wl,'
8403 lt_prog_compiler_pic='-KPIC'
8404 lt_prog_compiler_static='-static'
8405 ;;
8406 # icc used to be incompatible with GCC.
8407 # ICC 10 doesn't accept -KPIC any more.
8408 icc* | ifort*)
8409 lt_prog_compiler_wl='-Wl,'
8410 lt_prog_compiler_pic='-fPIC'
8411 lt_prog_compiler_static='-static'
8412 ;;
8413 # Lahey Fortran 8.1.
8414 lf95*)
8415 lt_prog_compiler_wl='-Wl,'
8416 lt_prog_compiler_pic='--shared'
8417 lt_prog_compiler_static='--static'
8418 ;;
8419 nagfor*)
8420 # NAG Fortran compiler
8421 lt_prog_compiler_wl='-Wl,-Wl,,'
8422 lt_prog_compiler_pic='-PIC'
8423 lt_prog_compiler_static='-Bstatic'
8424 ;;
8425 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8426 # Portland Group compilers (*not* the Pentium gcc compiler,
8427 # which looks to be a dead project)
8428 lt_prog_compiler_wl='-Wl,'
8429 lt_prog_compiler_pic='-fpic'
8430 lt_prog_compiler_static='-Bstatic'
8431 ;;
8432 ccc*)
8433 lt_prog_compiler_wl='-Wl,'
8434 # All Alpha code is PIC.
8435 lt_prog_compiler_static='-non_shared'
8436 ;;
8437 xl* | bgxl* | bgf* | mpixl*)
8438 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8439 lt_prog_compiler_wl='-Wl,'
8440 lt_prog_compiler_pic='-qpic'
8441 lt_prog_compiler_static='-qstaticlink'
8442 ;;
8443 *)
8444 case `$CC -V 2>&1 | sed 5q` in
8445 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8446 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8447 lt_prog_compiler_pic='-KPIC'
8448 lt_prog_compiler_static='-Bstatic'
8449 lt_prog_compiler_wl=''
8450 ;;
8451 *Sun\ F* | *Sun*Fortran*)
8452 lt_prog_compiler_pic='-KPIC'
8453 lt_prog_compiler_static='-Bstatic'
8454 lt_prog_compiler_wl='-Qoption ld '
8455 ;;
8456 *Sun\ C*)
8457 # Sun C 5.9
8458 lt_prog_compiler_pic='-KPIC'
8459 lt_prog_compiler_static='-Bstatic'
8460 lt_prog_compiler_wl='-Wl,'
8461 ;;
8462 *Intel*\ [CF]*Compiler*)
8463 lt_prog_compiler_wl='-Wl,'
8464 lt_prog_compiler_pic='-fPIC'
8465 lt_prog_compiler_static='-static'
8466 ;;
8467 *Portland\ Group*)
8468 lt_prog_compiler_wl='-Wl,'
8469 lt_prog_compiler_pic='-fpic'
8470 lt_prog_compiler_static='-Bstatic'
8471 ;;
8472 esac
8473 ;;
8474 esac
8475 ;;
8476
8477 newsos6)
8478 lt_prog_compiler_pic='-KPIC'
8479 lt_prog_compiler_static='-Bstatic'
8480 ;;
8481
8482 *nto* | *qnx*)
8483 # QNX uses GNU C++, but need to define -shared option too, otherwise
8484 # it will coredump.
8485 lt_prog_compiler_pic='-fPIC -shared'
8486 ;;
8487
8488 osf3* | osf4* | osf5*)
8489 lt_prog_compiler_wl='-Wl,'
8490 # All OSF/1 code is PIC.
8491 lt_prog_compiler_static='-non_shared'
8492 ;;
8493
8494 rdos*)
8495 lt_prog_compiler_static='-non_shared'
8496 ;;
8497
8498 solaris*)
8499 lt_prog_compiler_pic='-KPIC'
8500 lt_prog_compiler_static='-Bstatic'
8501 case $cc_basename in
8502 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8503 lt_prog_compiler_wl='-Qoption ld ';;
8504 *)
8505 lt_prog_compiler_wl='-Wl,';;
8506 esac
8507 ;;
8508
8509 sunos4*)
8510 lt_prog_compiler_wl='-Qoption ld '
8511 lt_prog_compiler_pic='-PIC'
8512 lt_prog_compiler_static='-Bstatic'
8513 ;;
8514
8515 sysv4 | sysv4.2uw2* | sysv4.3*)
8516 lt_prog_compiler_wl='-Wl,'
8517 lt_prog_compiler_pic='-KPIC'
8518 lt_prog_compiler_static='-Bstatic'
8519 ;;
8520
8521 sysv4*MP*)
8522 if test -d /usr/nec ;then
8523 lt_prog_compiler_pic='-Kconform_pic'
8524 lt_prog_compiler_static='-Bstatic'
8525 fi
8526 ;;
8527
8528 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8529 lt_prog_compiler_wl='-Wl,'
8530 lt_prog_compiler_pic='-KPIC'
8531 lt_prog_compiler_static='-Bstatic'
8532 ;;
8533
8534 unicos*)
8535 lt_prog_compiler_wl='-Wl,'
8536 lt_prog_compiler_can_build_shared=no
8537 ;;
8538
8539 uts4*)
8540 lt_prog_compiler_pic='-pic'
8541 lt_prog_compiler_static='-Bstatic'
8542 ;;
8543
8544 *)
8545 lt_prog_compiler_can_build_shared=no
8546 ;;
8547 esac
8548 fi
8549
8550 case $host_os in
8551 # For platforms which do not support PIC, -DPIC is meaningless:
8552 *djgpp*)
8553 lt_prog_compiler_pic=
8554 ;;
8555 *)
8556 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8557 ;;
8558 esac
8559
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8561 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8562 if ${lt_cv_prog_compiler_pic+:} false; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8566 fi
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8568 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8569 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8570
8571 #
8572 # Check to make sure the PIC flag actually works.
8573 #
8574 if test -n "$lt_prog_compiler_pic"; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8576 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8577 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 lt_cv_prog_compiler_pic_works=no
8581 ac_outfile=conftest.$ac_objext
8582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8583 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8584 # Insert the option either (1) after the last *FLAGS variable, or
8585 # (2) before a word containing "conftest.", or (3) at the end.
8586 # Note that $ac_compile itself does not contain backslashes and begins
8587 # with a dollar sign (not a hyphen), so the echo should work correctly.
8588 # The option is referenced via a variable to avoid confusing sed.
8589 lt_compile=`echo "$ac_compile" | $SED \
8590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8592 -e 's:$: $lt_compiler_flag:'`
8593 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8594 (eval "$lt_compile" 2>conftest.err)
8595 ac_status=$?
8596 cat conftest.err >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 if (exit $ac_status) && test -s "$ac_outfile"; then
8599 # The compiler can only warn and ignore the option if not recognized
8600 # So say no if there are warnings other than the usual output.
8601 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8602 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8603 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8604 lt_cv_prog_compiler_pic_works=yes
8605 fi
8606 fi
8607 $RM conftest*
8608
8609 fi
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8611 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8612
8613 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8614 case $lt_prog_compiler_pic in
8615 "" | " "*) ;;
8616 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8617 esac
8618 else
8619 lt_prog_compiler_pic=
8620 lt_prog_compiler_can_build_shared=no
8621 fi
8622
8623 fi
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635 #
8636 # Check to make sure the static flag actually works.
8637 #
8638 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8640 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8641 if ${lt_cv_prog_compiler_static_works+:} false; then :
8642 $as_echo_n "(cached) " >&6
8643 else
8644 lt_cv_prog_compiler_static_works=no
8645 save_LDFLAGS="$LDFLAGS"
8646 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8647 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8648 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8649 # The linker can only warn and ignore the option if not recognized
8650 # So say no if there are warnings
8651 if test -s conftest.err; then
8652 # Append any errors to the config.log.
8653 cat conftest.err 1>&5
8654 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8655 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8656 if diff conftest.exp conftest.er2 >/dev/null; then
8657 lt_cv_prog_compiler_static_works=yes
8658 fi
8659 else
8660 lt_cv_prog_compiler_static_works=yes
8661 fi
8662 fi
8663 $RM -r conftest*
8664 LDFLAGS="$save_LDFLAGS"
8665
8666 fi
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8668 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8669
8670 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8671 :
8672 else
8673 lt_prog_compiler_static=
8674 fi
8675
8676
8677
8678
8679
8680
8681
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8683 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8684 if ${lt_cv_prog_compiler_c_o+:} false; then :
8685 $as_echo_n "(cached) " >&6
8686 else
8687 lt_cv_prog_compiler_c_o=no
8688 $RM -r conftest 2>/dev/null
8689 mkdir conftest
8690 cd conftest
8691 mkdir out
8692 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8693
8694 lt_compiler_flag="-o out/conftest2.$ac_objext"
8695 # Insert the option either (1) after the last *FLAGS variable, or
8696 # (2) before a word containing "conftest.", or (3) at the end.
8697 # Note that $ac_compile itself does not contain backslashes and begins
8698 # with a dollar sign (not a hyphen), so the echo should work correctly.
8699 lt_compile=`echo "$ac_compile" | $SED \
8700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8702 -e 's:$: $lt_compiler_flag:'`
8703 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8704 (eval "$lt_compile" 2>out/conftest.err)
8705 ac_status=$?
8706 cat out/conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8709 then
8710 # The compiler can only warn and ignore the option if not recognized
8711 # So say no if there are warnings
8712 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8713 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8714 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8715 lt_cv_prog_compiler_c_o=yes
8716 fi
8717 fi
8718 chmod u+w . 2>&5
8719 $RM conftest*
8720 # SGI C++ compiler will create directory out/ii_files/ for
8721 # template instantiation
8722 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8723 $RM out/* && rmdir out
8724 cd ..
8725 $RM -r conftest
8726 $RM conftest*
8727
8728 fi
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8730 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8731
8732
8733
8734
8735
8736
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8738 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8739 if ${lt_cv_prog_compiler_c_o+:} false; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 lt_cv_prog_compiler_c_o=no
8743 $RM -r conftest 2>/dev/null
8744 mkdir conftest
8745 cd conftest
8746 mkdir out
8747 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8748
8749 lt_compiler_flag="-o out/conftest2.$ac_objext"
8750 # Insert the option either (1) after the last *FLAGS variable, or
8751 # (2) before a word containing "conftest.", or (3) at the end.
8752 # Note that $ac_compile itself does not contain backslashes and begins
8753 # with a dollar sign (not a hyphen), so the echo should work correctly.
8754 lt_compile=`echo "$ac_compile" | $SED \
8755 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8756 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8757 -e 's:$: $lt_compiler_flag:'`
8758 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8759 (eval "$lt_compile" 2>out/conftest.err)
8760 ac_status=$?
8761 cat out/conftest.err >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8764 then
8765 # The compiler can only warn and ignore the option if not recognized
8766 # So say no if there are warnings
8767 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8768 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8769 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8770 lt_cv_prog_compiler_c_o=yes
8771 fi
8772 fi
8773 chmod u+w . 2>&5
8774 $RM conftest*
8775 # SGI C++ compiler will create directory out/ii_files/ for
8776 # template instantiation
8777 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8778 $RM out/* && rmdir out
8779 cd ..
8780 $RM -r conftest
8781 $RM conftest*
8782
8783 fi
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8785 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8786
8787
8788
8789
8790 hard_links="nottested"
8791 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8792 # do not overwrite the value of need_locks provided by the user
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8794 $as_echo_n "checking if we can lock with hard links... " >&6; }
8795 hard_links=yes
8796 $RM conftest*
8797 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8798 touch conftest.a
8799 ln conftest.a conftest.b 2>&5 || hard_links=no
8800 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8802 $as_echo "$hard_links" >&6; }
8803 if test "$hard_links" = no; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8805 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8806 need_locks=warn
8807 fi
8808 else
8809 need_locks=no
8810 fi
8811
8812
8813
8814
8815
8816
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8818 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8819
8820 runpath_var=
8821 allow_undefined_flag=
8822 always_export_symbols=no
8823 archive_cmds=
8824 archive_expsym_cmds=
8825 compiler_needs_object=no
8826 enable_shared_with_static_runtimes=no
8827 export_dynamic_flag_spec=
8828 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8829 hardcode_automatic=no
8830 hardcode_direct=no
8831 hardcode_direct_absolute=no
8832 hardcode_libdir_flag_spec=
8833 hardcode_libdir_separator=
8834 hardcode_minus_L=no
8835 hardcode_shlibpath_var=unsupported
8836 inherit_rpath=no
8837 link_all_deplibs=unknown
8838 module_cmds=
8839 module_expsym_cmds=
8840 old_archive_from_new_cmds=
8841 old_archive_from_expsyms_cmds=
8842 thread_safe_flag_spec=
8843 whole_archive_flag_spec=
8844 # include_expsyms should be a list of space-separated symbols to be *always*
8845 # included in the symbol list
8846 include_expsyms=
8847 # exclude_expsyms can be an extended regexp of symbols to exclude
8848 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8849 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8850 # as well as any symbol that contains `d'.
8851 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8852 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8853 # platforms (ab)use it in PIC code, but their linkers get confused if
8854 # the symbol is explicitly referenced. Since portable code cannot
8855 # rely on this symbol name, it's probably fine to never include it in
8856 # preloaded symbol tables.
8857 # Exclude shared library initialization/finalization symbols.
8858 extract_expsyms_cmds=
8859
8860 case $host_os in
8861 cygwin* | mingw* | pw32* | cegcc*)
8862 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8863 # When not using gcc, we currently assume that we are using
8864 # Microsoft Visual C++.
8865 if test "$GCC" != yes; then
8866 with_gnu_ld=no
8867 fi
8868 ;;
8869 interix*)
8870 # we just hope/assume this is gcc and not c89 (= MSVC++)
8871 with_gnu_ld=yes
8872 ;;
8873 openbsd*)
8874 with_gnu_ld=no
8875 ;;
8876 esac
8877
8878 ld_shlibs=yes
8879
8880 # On some targets, GNU ld is compatible enough with the native linker
8881 # that we're better off using the native interface for both.
8882 lt_use_gnu_ld_interface=no
8883 if test "$with_gnu_ld" = yes; then
8884 case $host_os in
8885 aix*)
8886 # The AIX port of GNU ld has always aspired to compatibility
8887 # with the native linker. However, as the warning in the GNU ld
8888 # block says, versions before 2.19.5* couldn't really create working
8889 # shared libraries, regardless of the interface used.
8890 case `$LD -v 2>&1` in
8891 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8892 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8893 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8894 *)
8895 lt_use_gnu_ld_interface=yes
8896 ;;
8897 esac
8898 ;;
8899 *)
8900 lt_use_gnu_ld_interface=yes
8901 ;;
8902 esac
8903 fi
8904
8905 if test "$lt_use_gnu_ld_interface" = yes; then
8906 # If archive_cmds runs LD, not CC, wlarc should be empty
8907 wlarc='${wl}'
8908
8909 # Set some defaults for GNU ld with shared library support. These
8910 # are reset later if shared libraries are not supported. Putting them
8911 # here allows them to be overridden if necessary.
8912 runpath_var=LD_RUN_PATH
8913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8914 export_dynamic_flag_spec='${wl}--export-dynamic'
8915 # ancient GNU ld didn't support --whole-archive et. al.
8916 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8917 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8918 else
8919 whole_archive_flag_spec=
8920 fi
8921 supports_anon_versioning=no
8922 case `$LD -v 2>&1` in
8923 *GNU\ gold*) supports_anon_versioning=yes ;;
8924 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8925 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8926 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8927 *\ 2.11.*) ;; # other 2.11 versions
8928 *) supports_anon_versioning=yes ;;
8929 esac
8930
8931 # See if GNU ld supports shared libraries.
8932 case $host_os in
8933 aix[3-9]*)
8934 # On AIX/PPC, the GNU linker is very broken
8935 if test "$host_cpu" != ia64; then
8936 ld_shlibs=no
8937 cat <<_LT_EOF 1>&2
8938
8939 *** Warning: the GNU linker, at least up to release 2.19, is reported
8940 *** to be unable to reliably create shared libraries on AIX.
8941 *** Therefore, libtool is disabling shared libraries support. If you
8942 *** really care for shared libraries, you may want to install binutils
8943 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8944 *** You will then need to restart the configuration process.
8945
8946 _LT_EOF
8947 fi
8948 ;;
8949
8950 amigaos*)
8951 case $host_cpu in
8952 powerpc)
8953 # see comment about AmigaOS4 .so support
8954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8955 archive_expsym_cmds=''
8956 ;;
8957 m68k)
8958 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)'
8959 hardcode_libdir_flag_spec='-L$libdir'
8960 hardcode_minus_L=yes
8961 ;;
8962 esac
8963 ;;
8964
8965 beos*)
8966 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8967 allow_undefined_flag=unsupported
8968 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8969 # support --undefined. This deserves some investigation. FIXME
8970 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8971 else
8972 ld_shlibs=no
8973 fi
8974 ;;
8975
8976 cygwin* | mingw* | pw32* | cegcc*)
8977 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8978 # as there is no search path for DLLs.
8979 hardcode_libdir_flag_spec='-L$libdir'
8980 export_dynamic_flag_spec='${wl}--export-all-symbols'
8981 allow_undefined_flag=unsupported
8982 always_export_symbols=no
8983 enable_shared_with_static_runtimes=yes
8984 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'
8985 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8986
8987 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8989 # If the export-symbols file already is a .def file (1st line
8990 # is EXPORTS), use it as is; otherwise, prepend...
8991 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8992 cp $export_symbols $output_objdir/$soname.def;
8993 else
8994 echo EXPORTS > $output_objdir/$soname.def;
8995 cat $export_symbols >> $output_objdir/$soname.def;
8996 fi~
8997 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8998 else
8999 ld_shlibs=no
9000 fi
9001 ;;
9002
9003 haiku*)
9004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005 link_all_deplibs=yes
9006 ;;
9007
9008 interix[3-9]*)
9009 hardcode_direct=no
9010 hardcode_shlibpath_var=no
9011 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9012 export_dynamic_flag_spec='${wl}-E'
9013 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9014 # Instead, shared libraries are loaded at an image base (0x10000000 by
9015 # default) and relocated if they conflict, which is a slow very memory
9016 # consuming and fragmenting process. To avoid this, we pick a random,
9017 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9018 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9019 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9020 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'
9021 ;;
9022
9023 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9024 tmp_diet=no
9025 if test "$host_os" = linux-dietlibc; then
9026 case $cc_basename in
9027 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9028 esac
9029 fi
9030 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9031 && test "$tmp_diet" = no
9032 then
9033 tmp_addflag=' $pic_flag'
9034 tmp_sharedflag='-shared'
9035 case $cc_basename,$host_cpu in
9036 pgcc*) # Portland Group C compiler
9037 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'
9038 tmp_addflag=' $pic_flag'
9039 ;;
9040 pgf77* | pgf90* | pgf95* | pgfortran*)
9041 # Portland Group f77 and f90 compilers
9042 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'
9043 tmp_addflag=' $pic_flag -Mnomain' ;;
9044 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9045 tmp_addflag=' -i_dynamic' ;;
9046 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9047 tmp_addflag=' -i_dynamic -nofor_main' ;;
9048 ifc* | ifort*) # Intel Fortran compiler
9049 tmp_addflag=' -nofor_main' ;;
9050 lf95*) # Lahey Fortran 8.1
9051 whole_archive_flag_spec=
9052 tmp_sharedflag='--shared' ;;
9053 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9054 tmp_sharedflag='-qmkshrobj'
9055 tmp_addflag= ;;
9056 nvcc*) # Cuda Compiler Driver 2.2
9057 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9058 compiler_needs_object=yes
9059 ;;
9060 esac
9061 case `$CC -V 2>&1 | sed 5q` in
9062 *Sun\ C*) # Sun C 5.9
9063 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'
9064 compiler_needs_object=yes
9065 tmp_sharedflag='-G' ;;
9066 *Sun\ F*) # Sun Fortran 8.3
9067 tmp_sharedflag='-G' ;;
9068 esac
9069 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9070
9071 if test "x$supports_anon_versioning" = xyes; then
9072 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9073 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9074 echo "local: *; };" >> $output_objdir/$libname.ver~
9075 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9076 fi
9077
9078 case $cc_basename in
9079 xlf* | bgf* | bgxlf* | mpixlf*)
9080 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9081 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9082 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9083 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9084 if test "x$supports_anon_versioning" = xyes; then
9085 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9086 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9087 echo "local: *; };" >> $output_objdir/$libname.ver~
9088 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9089 fi
9090 ;;
9091 esac
9092 else
9093 ld_shlibs=no
9094 fi
9095 ;;
9096
9097 netbsd*)
9098 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9099 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9100 wlarc=
9101 else
9102 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9103 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9104 fi
9105 ;;
9106
9107 solaris*)
9108 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9109 ld_shlibs=no
9110 cat <<_LT_EOF 1>&2
9111
9112 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9113 *** create shared libraries on Solaris systems. Therefore, libtool
9114 *** is disabling shared libraries support. We urge you to upgrade GNU
9115 *** binutils to release 2.9.1 or newer. Another option is to modify
9116 *** your PATH or compiler configuration so that the native linker is
9117 *** used, and then restart.
9118
9119 _LT_EOF
9120 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9121 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9123 else
9124 ld_shlibs=no
9125 fi
9126 ;;
9127
9128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9129 case `$LD -v 2>&1` in
9130 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9131 ld_shlibs=no
9132 cat <<_LT_EOF 1>&2
9133
9134 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9135 *** reliably create shared libraries on SCO systems. Therefore, libtool
9136 *** is disabling shared libraries support. We urge you to upgrade GNU
9137 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9138 *** your PATH or compiler configuration so that the native linker is
9139 *** used, and then restart.
9140
9141 _LT_EOF
9142 ;;
9143 *)
9144 # For security reasons, it is highly recommended that you always
9145 # use absolute paths for naming shared libraries, and exclude the
9146 # DT_RUNPATH tag from executables and libraries. But doing so
9147 # requires that you compile everything twice, which is a pain.
9148 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9152 else
9153 ld_shlibs=no
9154 fi
9155 ;;
9156 esac
9157 ;;
9158
9159 sunos4*)
9160 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9161 wlarc=
9162 hardcode_direct=yes
9163 hardcode_shlibpath_var=no
9164 ;;
9165
9166 *)
9167 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9168 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9169 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9170 else
9171 ld_shlibs=no
9172 fi
9173 ;;
9174 esac
9175
9176 if test "$ld_shlibs" = no; then
9177 runpath_var=
9178 hardcode_libdir_flag_spec=
9179 export_dynamic_flag_spec=
9180 whole_archive_flag_spec=
9181 fi
9182 else
9183 # PORTME fill in a description of your system's linker (not GNU ld)
9184 case $host_os in
9185 aix3*)
9186 allow_undefined_flag=unsupported
9187 always_export_symbols=yes
9188 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'
9189 # Note: this linker hardcodes the directories in LIBPATH if there
9190 # are no directories specified by -L.
9191 hardcode_minus_L=yes
9192 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9193 # Neither direct hardcoding nor static linking is supported with a
9194 # broken collect2.
9195 hardcode_direct=unsupported
9196 fi
9197 ;;
9198
9199 aix[4-9]*)
9200 if test "$host_cpu" = ia64; then
9201 # On IA64, the linker does run time linking by default, so we don't
9202 # have to do anything special.
9203 aix_use_runtimelinking=no
9204 exp_sym_flag='-Bexport'
9205 no_entry_flag=""
9206 else
9207 # If we're using GNU nm, then we don't want the "-C" option.
9208 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9209 # Also, AIX nm treats weak defined symbols like other global
9210 # defined symbols, whereas GNU nm marks them as "W".
9211 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9212 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9213 else
9214 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9215 fi
9216 aix_use_runtimelinking=no
9217
9218 # Test if we are trying to use run time linking or normal
9219 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9220 # need to do runtime linking.
9221 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9222 for ld_flag in $LDFLAGS; do
9223 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9224 aix_use_runtimelinking=yes
9225 break
9226 fi
9227 done
9228 ;;
9229 esac
9230
9231 exp_sym_flag='-bexport'
9232 no_entry_flag='-bnoentry'
9233 fi
9234
9235 # When large executables or shared objects are built, AIX ld can
9236 # have problems creating the table of contents. If linking a library
9237 # or program results in "error TOC overflow" add -mminimal-toc to
9238 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9239 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9240
9241 archive_cmds=''
9242 hardcode_direct=yes
9243 hardcode_direct_absolute=yes
9244 hardcode_libdir_separator=':'
9245 link_all_deplibs=yes
9246 file_list_spec='${wl}-f,'
9247
9248 if test "$GCC" = yes; then
9249 case $host_os in aix4.[012]|aix4.[012].*)
9250 # We only want to do this on AIX 4.2 and lower, the check
9251 # below for broken collect2 doesn't work under 4.3+
9252 collect2name=`${CC} -print-prog-name=collect2`
9253 if test -f "$collect2name" &&
9254 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9255 then
9256 # We have reworked collect2
9257 :
9258 else
9259 # We have old collect2
9260 hardcode_direct=unsupported
9261 # It fails to find uninstalled libraries when the uninstalled
9262 # path is not listed in the libpath. Setting hardcode_minus_L
9263 # to unsupported forces relinking
9264 hardcode_minus_L=yes
9265 hardcode_libdir_flag_spec='-L$libdir'
9266 hardcode_libdir_separator=
9267 fi
9268 ;;
9269 esac
9270 shared_flag='-shared'
9271 if test "$aix_use_runtimelinking" = yes; then
9272 shared_flag="$shared_flag "'${wl}-G'
9273 fi
9274 else
9275 # not using gcc
9276 if test "$host_cpu" = ia64; then
9277 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9278 # chokes on -Wl,-G. The following line is correct:
9279 shared_flag='-G'
9280 else
9281 if test "$aix_use_runtimelinking" = yes; then
9282 shared_flag='${wl}-G'
9283 else
9284 shared_flag='${wl}-bM:SRE'
9285 fi
9286 fi
9287 fi
9288
9289 export_dynamic_flag_spec='${wl}-bexpall'
9290 # It seems that -bexpall does not export symbols beginning with
9291 # underscore (_), so it is better to generate a list of symbols to export.
9292 always_export_symbols=yes
9293 if test "$aix_use_runtimelinking" = yes; then
9294 # Warning - without using the other runtime loading flags (-brtl),
9295 # -berok will link without error, but may produce a broken library.
9296 allow_undefined_flag='-berok'
9297 # Determine the default libpath from the value encoded in an
9298 # empty executable.
9299 if test "${lt_cv_aix_libpath+set}" = set; then
9300 aix_libpath=$lt_cv_aix_libpath
9301 else
9302 if ${lt_cv_aix_libpath_+:} false; then :
9303 $as_echo_n "(cached) " >&6
9304 else
9305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306 /* end confdefs.h. */
9307
9308 int
9309 main ()
9310 {
9311
9312 ;
9313 return 0;
9314 }
9315 _ACEOF
9316 if ac_fn_c_try_link "$LINENO"; then :
9317
9318 lt_aix_libpath_sed='
9319 /Import File Strings/,/^$/ {
9320 /^0/ {
9321 s/^0 *\([^ ]*\) *$/\1/
9322 p
9323 }
9324 }'
9325 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9326 # Check for a 64-bit object if we didn't find anything.
9327 if test -z "$lt_cv_aix_libpath_"; then
9328 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9329 fi
9330 fi
9331 rm -f core conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
9333 if test -z "$lt_cv_aix_libpath_"; then
9334 lt_cv_aix_libpath_="/usr/lib:/lib"
9335 fi
9336
9337 fi
9338
9339 aix_libpath=$lt_cv_aix_libpath_
9340 fi
9341
9342 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9343 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9344 else
9345 if test "$host_cpu" = ia64; then
9346 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9347 allow_undefined_flag="-z nodefs"
9348 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"
9349 else
9350 # Determine the default libpath from the value encoded in an
9351 # empty executable.
9352 if test "${lt_cv_aix_libpath+set}" = set; then
9353 aix_libpath=$lt_cv_aix_libpath
9354 else
9355 if ${lt_cv_aix_libpath_+:} false; then :
9356 $as_echo_n "(cached) " >&6
9357 else
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360
9361 int
9362 main ()
9363 {
9364
9365 ;
9366 return 0;
9367 }
9368 _ACEOF
9369 if ac_fn_c_try_link "$LINENO"; then :
9370
9371 lt_aix_libpath_sed='
9372 /Import File Strings/,/^$/ {
9373 /^0/ {
9374 s/^0 *\([^ ]*\) *$/\1/
9375 p
9376 }
9377 }'
9378 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9379 # Check for a 64-bit object if we didn't find anything.
9380 if test -z "$lt_cv_aix_libpath_"; then
9381 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9382 fi
9383 fi
9384 rm -f core conftest.err conftest.$ac_objext \
9385 conftest$ac_exeext conftest.$ac_ext
9386 if test -z "$lt_cv_aix_libpath_"; then
9387 lt_cv_aix_libpath_="/usr/lib:/lib"
9388 fi
9389
9390 fi
9391
9392 aix_libpath=$lt_cv_aix_libpath_
9393 fi
9394
9395 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9396 # Warning - without using the other run time loading flags,
9397 # -berok will link without error, but may produce a broken library.
9398 no_undefined_flag=' ${wl}-bernotok'
9399 allow_undefined_flag=' ${wl}-berok'
9400 if test "$with_gnu_ld" = yes; then
9401 # We only use this code for GNU lds that support --whole-archive.
9402 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9403 else
9404 # Exported symbols can be pulled into shared objects from archives
9405 whole_archive_flag_spec='$convenience'
9406 fi
9407 archive_cmds_need_lc=yes
9408 # This is similar to how AIX traditionally builds its shared libraries.
9409 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9410 fi
9411 fi
9412 ;;
9413
9414 amigaos*)
9415 case $host_cpu in
9416 powerpc)
9417 # see comment about AmigaOS4 .so support
9418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9419 archive_expsym_cmds=''
9420 ;;
9421 m68k)
9422 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)'
9423 hardcode_libdir_flag_spec='-L$libdir'
9424 hardcode_minus_L=yes
9425 ;;
9426 esac
9427 ;;
9428
9429 bsdi[45]*)
9430 export_dynamic_flag_spec=-rdynamic
9431 ;;
9432
9433 cygwin* | mingw* | pw32* | cegcc*)
9434 # When not using gcc, we currently assume that we are using
9435 # Microsoft Visual C++.
9436 # hardcode_libdir_flag_spec is actually meaningless, as there is
9437 # no search path for DLLs.
9438 case $cc_basename in
9439 cl*)
9440 # Native MSVC
9441 hardcode_libdir_flag_spec=' '
9442 allow_undefined_flag=unsupported
9443 always_export_symbols=yes
9444 file_list_spec='@'
9445 # Tell ltmain to make .lib files, not .a files.
9446 libext=lib
9447 # Tell ltmain to make .dll files, not .so files.
9448 shrext_cmds=".dll"
9449 # FIXME: Setting linknames here is a bad hack.
9450 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9451 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9452 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9453 else
9454 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9455 fi~
9456 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9457 linknames='
9458 # The linker will not automatically build a static lib if we build a DLL.
9459 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9460 enable_shared_with_static_runtimes=yes
9461 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9462 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9463 # Don't use ranlib
9464 old_postinstall_cmds='chmod 644 $oldlib'
9465 postlink_cmds='lt_outputfile="@OUTPUT@"~
9466 lt_tool_outputfile="@TOOL_OUTPUT@"~
9467 case $lt_outputfile in
9468 *.exe|*.EXE) ;;
9469 *)
9470 lt_outputfile="$lt_outputfile.exe"
9471 lt_tool_outputfile="$lt_tool_outputfile.exe"
9472 ;;
9473 esac~
9474 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9475 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9476 $RM "$lt_outputfile.manifest";
9477 fi'
9478 ;;
9479 *)
9480 # Assume MSVC wrapper
9481 hardcode_libdir_flag_spec=' '
9482 allow_undefined_flag=unsupported
9483 # Tell ltmain to make .lib files, not .a files.
9484 libext=lib
9485 # Tell ltmain to make .dll files, not .so files.
9486 shrext_cmds=".dll"
9487 # FIXME: Setting linknames here is a bad hack.
9488 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9489 # The linker will automatically build a .lib file if we build a DLL.
9490 old_archive_from_new_cmds='true'
9491 # FIXME: Should let the user specify the lib program.
9492 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9493 enable_shared_with_static_runtimes=yes
9494 ;;
9495 esac
9496 ;;
9497
9498 darwin* | rhapsody*)
9499
9500
9501 archive_cmds_need_lc=no
9502 hardcode_direct=no
9503 hardcode_automatic=yes
9504 hardcode_shlibpath_var=unsupported
9505 if test "$lt_cv_ld_force_load" = "yes"; then
9506 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\"`'
9507
9508 else
9509 whole_archive_flag_spec=''
9510 fi
9511 link_all_deplibs=yes
9512 allow_undefined_flag="$_lt_dar_allow_undefined"
9513 case $cc_basename in
9514 ifort*) _lt_dar_can_shared=yes ;;
9515 *) _lt_dar_can_shared=$GCC ;;
9516 esac
9517 if test "$_lt_dar_can_shared" = "yes"; then
9518 output_verbose_link_cmd=func_echo_all
9519 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9520 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9521 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}"
9522 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}"
9523
9524 else
9525 ld_shlibs=no
9526 fi
9527
9528 ;;
9529
9530 dgux*)
9531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9532 hardcode_libdir_flag_spec='-L$libdir'
9533 hardcode_shlibpath_var=no
9534 ;;
9535
9536 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9537 # support. Future versions do this automatically, but an explicit c++rt0.o
9538 # does not break anything, and helps significantly (at the cost of a little
9539 # extra space).
9540 freebsd2.2*)
9541 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9542 hardcode_libdir_flag_spec='-R$libdir'
9543 hardcode_direct=yes
9544 hardcode_shlibpath_var=no
9545 ;;
9546
9547 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9548 freebsd2.*)
9549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9550 hardcode_direct=yes
9551 hardcode_minus_L=yes
9552 hardcode_shlibpath_var=no
9553 ;;
9554
9555 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9556 freebsd* | dragonfly*)
9557 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9558 hardcode_libdir_flag_spec='-R$libdir'
9559 hardcode_direct=yes
9560 hardcode_shlibpath_var=no
9561 ;;
9562
9563 hpux9*)
9564 if test "$GCC" = yes; then
9565 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9566 else
9567 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9568 fi
9569 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9570 hardcode_libdir_separator=:
9571 hardcode_direct=yes
9572
9573 # hardcode_minus_L: Not really in the search PATH,
9574 # but as the default location of the library.
9575 hardcode_minus_L=yes
9576 export_dynamic_flag_spec='${wl}-E'
9577 ;;
9578
9579 hpux10*)
9580 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9581 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9582 else
9583 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9584 fi
9585 if test "$with_gnu_ld" = no; then
9586 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9587 hardcode_libdir_separator=:
9588 hardcode_direct=yes
9589 hardcode_direct_absolute=yes
9590 export_dynamic_flag_spec='${wl}-E'
9591 # hardcode_minus_L: Not really in the search PATH,
9592 # but as the default location of the library.
9593 hardcode_minus_L=yes
9594 fi
9595 ;;
9596
9597 hpux11*)
9598 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9599 case $host_cpu in
9600 hppa*64*)
9601 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9602 ;;
9603 ia64*)
9604 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9605 ;;
9606 *)
9607 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9608 ;;
9609 esac
9610 else
9611 case $host_cpu in
9612 hppa*64*)
9613 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9614 ;;
9615 ia64*)
9616 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9617 ;;
9618 *)
9619
9620 # Older versions of the 11.00 compiler do not understand -b yet
9621 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9623 $as_echo_n "checking if $CC understands -b... " >&6; }
9624 if ${lt_cv_prog_compiler__b+:} false; then :
9625 $as_echo_n "(cached) " >&6
9626 else
9627 lt_cv_prog_compiler__b=no
9628 save_LDFLAGS="$LDFLAGS"
9629 LDFLAGS="$LDFLAGS -b"
9630 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9631 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9632 # The linker can only warn and ignore the option if not recognized
9633 # So say no if there are warnings
9634 if test -s conftest.err; then
9635 # Append any errors to the config.log.
9636 cat conftest.err 1>&5
9637 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9639 if diff conftest.exp conftest.er2 >/dev/null; then
9640 lt_cv_prog_compiler__b=yes
9641 fi
9642 else
9643 lt_cv_prog_compiler__b=yes
9644 fi
9645 fi
9646 $RM -r conftest*
9647 LDFLAGS="$save_LDFLAGS"
9648
9649 fi
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9651 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9652
9653 if test x"$lt_cv_prog_compiler__b" = xyes; then
9654 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9655 else
9656 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9657 fi
9658
9659 ;;
9660 esac
9661 fi
9662 if test "$with_gnu_ld" = no; then
9663 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9664 hardcode_libdir_separator=:
9665
9666 case $host_cpu in
9667 hppa*64*|ia64*)
9668 hardcode_direct=no
9669 hardcode_shlibpath_var=no
9670 ;;
9671 *)
9672 hardcode_direct=yes
9673 hardcode_direct_absolute=yes
9674 export_dynamic_flag_spec='${wl}-E'
9675
9676 # hardcode_minus_L: Not really in the search PATH,
9677 # but as the default location of the library.
9678 hardcode_minus_L=yes
9679 ;;
9680 esac
9681 fi
9682 ;;
9683
9684 irix5* | irix6* | nonstopux*)
9685 if test "$GCC" = yes; then
9686 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'
9687 # Try to use the -exported_symbol ld option, if it does not
9688 # work, assume that -exports_file does not work either and
9689 # implicitly export all symbols.
9690 # This should be the same for all languages, so no per-tag cache variable.
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9692 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9693 if ${lt_cv_irix_exported_symbol+:} false; then :
9694 $as_echo_n "(cached) " >&6
9695 else
9696 save_LDFLAGS="$LDFLAGS"
9697 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9700 int foo (void) { return 0; }
9701 _ACEOF
9702 if ac_fn_c_try_link "$LINENO"; then :
9703 lt_cv_irix_exported_symbol=yes
9704 else
9705 lt_cv_irix_exported_symbol=no
9706 fi
9707 rm -f core conftest.err conftest.$ac_objext \
9708 conftest$ac_exeext conftest.$ac_ext
9709 LDFLAGS="$save_LDFLAGS"
9710 fi
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9712 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9713 if test "$lt_cv_irix_exported_symbol" = yes; then
9714 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'
9715 fi
9716 else
9717 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'
9718 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'
9719 fi
9720 archive_cmds_need_lc='no'
9721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9722 hardcode_libdir_separator=:
9723 inherit_rpath=yes
9724 link_all_deplibs=yes
9725 ;;
9726
9727 netbsd*)
9728 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9729 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9730 else
9731 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9732 fi
9733 hardcode_libdir_flag_spec='-R$libdir'
9734 hardcode_direct=yes
9735 hardcode_shlibpath_var=no
9736 ;;
9737
9738 newsos6)
9739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9740 hardcode_direct=yes
9741 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9742 hardcode_libdir_separator=:
9743 hardcode_shlibpath_var=no
9744 ;;
9745
9746 *nto* | *qnx*)
9747 ;;
9748
9749 openbsd*)
9750 if test -f /usr/libexec/ld.so; then
9751 hardcode_direct=yes
9752 hardcode_shlibpath_var=no
9753 hardcode_direct_absolute=yes
9754 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9755 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9756 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9757 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9758 export_dynamic_flag_spec='${wl}-E'
9759 else
9760 case $host_os in
9761 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9763 hardcode_libdir_flag_spec='-R$libdir'
9764 ;;
9765 *)
9766 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9767 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9768 ;;
9769 esac
9770 fi
9771 else
9772 ld_shlibs=no
9773 fi
9774 ;;
9775
9776 os2*)
9777 hardcode_libdir_flag_spec='-L$libdir'
9778 hardcode_minus_L=yes
9779 allow_undefined_flag=unsupported
9780 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9781 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9782 ;;
9783
9784 osf3*)
9785 if test "$GCC" = yes; then
9786 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9787 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'
9788 else
9789 allow_undefined_flag=' -expect_unresolved \*'
9790 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'
9791 fi
9792 archive_cmds_need_lc='no'
9793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9794 hardcode_libdir_separator=:
9795 ;;
9796
9797 osf4* | osf5*) # as osf3* with the addition of -msym flag
9798 if test "$GCC" = yes; then
9799 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9800 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'
9801 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9802 else
9803 allow_undefined_flag=' -expect_unresolved \*'
9804 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'
9805 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~
9806 $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'
9807
9808 # Both c and cxx compiler support -rpath directly
9809 hardcode_libdir_flag_spec='-rpath $libdir'
9810 fi
9811 archive_cmds_need_lc='no'
9812 hardcode_libdir_separator=:
9813 ;;
9814
9815 solaris*)
9816 no_undefined_flag=' -z defs'
9817 if test "$GCC" = yes; then
9818 wlarc='${wl}'
9819 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9820 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9821 $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'
9822 else
9823 case `$CC -V 2>&1` in
9824 *"Compilers 5.0"*)
9825 wlarc=''
9826 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9827 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9828 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9829 ;;
9830 *)
9831 wlarc='${wl}'
9832 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9833 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9834 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9835 ;;
9836 esac
9837 fi
9838 hardcode_libdir_flag_spec='-R$libdir'
9839 hardcode_shlibpath_var=no
9840 case $host_os in
9841 solaris2.[0-5] | solaris2.[0-5].*) ;;
9842 *)
9843 # The compiler driver will combine and reorder linker options,
9844 # but understands `-z linker_flag'. GCC discards it without `$wl',
9845 # but is careful enough not to reorder.
9846 # Supported since Solaris 2.6 (maybe 2.5.1?)
9847 if test "$GCC" = yes; then
9848 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9849 else
9850 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9851 fi
9852 ;;
9853 esac
9854 link_all_deplibs=yes
9855 ;;
9856
9857 sunos4*)
9858 if test "x$host_vendor" = xsequent; then
9859 # Use $CC to link under sequent, because it throws in some extra .o
9860 # files that make .init and .fini sections work.
9861 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9862 else
9863 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9864 fi
9865 hardcode_libdir_flag_spec='-L$libdir'
9866 hardcode_direct=yes
9867 hardcode_minus_L=yes
9868 hardcode_shlibpath_var=no
9869 ;;
9870
9871 sysv4)
9872 case $host_vendor in
9873 sni)
9874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9875 hardcode_direct=yes # is this really true???
9876 ;;
9877 siemens)
9878 ## LD is ld it makes a PLAMLIB
9879 ## CC just makes a GrossModule.
9880 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9881 reload_cmds='$CC -r -o $output$reload_objs'
9882 hardcode_direct=no
9883 ;;
9884 motorola)
9885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9886 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9887 ;;
9888 esac
9889 runpath_var='LD_RUN_PATH'
9890 hardcode_shlibpath_var=no
9891 ;;
9892
9893 sysv4.3*)
9894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9895 hardcode_shlibpath_var=no
9896 export_dynamic_flag_spec='-Bexport'
9897 ;;
9898
9899 sysv4*MP*)
9900 if test -d /usr/nec; then
9901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9902 hardcode_shlibpath_var=no
9903 runpath_var=LD_RUN_PATH
9904 hardcode_runpath_var=yes
9905 ld_shlibs=yes
9906 fi
9907 ;;
9908
9909 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9910 no_undefined_flag='${wl}-z,text'
9911 archive_cmds_need_lc=no
9912 hardcode_shlibpath_var=no
9913 runpath_var='LD_RUN_PATH'
9914
9915 if test "$GCC" = yes; then
9916 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9917 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9918 else
9919 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9920 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9921 fi
9922 ;;
9923
9924 sysv5* | sco3.2v5* | sco5v6*)
9925 # Note: We can NOT use -z defs as we might desire, because we do not
9926 # link with -lc, and that would cause any symbols used from libc to
9927 # always be unresolved, which means just about no library would
9928 # ever link correctly. If we're not using GNU ld we use -z text
9929 # though, which does catch some bad symbols but isn't as heavy-handed
9930 # as -z defs.
9931 no_undefined_flag='${wl}-z,text'
9932 allow_undefined_flag='${wl}-z,nodefs'
9933 archive_cmds_need_lc=no
9934 hardcode_shlibpath_var=no
9935 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9936 hardcode_libdir_separator=':'
9937 link_all_deplibs=yes
9938 export_dynamic_flag_spec='${wl}-Bexport'
9939 runpath_var='LD_RUN_PATH'
9940
9941 if test "$GCC" = yes; then
9942 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9943 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9944 else
9945 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9946 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9947 fi
9948 ;;
9949
9950 uts4*)
9951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952 hardcode_libdir_flag_spec='-L$libdir'
9953 hardcode_shlibpath_var=no
9954 ;;
9955
9956 *)
9957 ld_shlibs=no
9958 ;;
9959 esac
9960
9961 if test x$host_vendor = xsni; then
9962 case $host in
9963 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9964 export_dynamic_flag_spec='${wl}-Blargedynsym'
9965 ;;
9966 esac
9967 fi
9968 fi
9969
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9971 $as_echo "$ld_shlibs" >&6; }
9972 test "$ld_shlibs" = no && can_build_shared=no
9973
9974 with_gnu_ld=$with_gnu_ld
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990 #
9991 # Do we need to explicitly link libc?
9992 #
9993 case "x$archive_cmds_need_lc" in
9994 x|xyes)
9995 # Assume -lc should be added
9996 archive_cmds_need_lc=yes
9997
9998 if test "$enable_shared" = yes && test "$GCC" = yes; then
9999 case $archive_cmds in
10000 *'~'*)
10001 # FIXME: we may have to deal with multi-command sequences.
10002 ;;
10003 '$CC '*)
10004 # Test whether the compiler implicitly links with -lc since on some
10005 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10006 # to ld, don't add -lc before -lgcc.
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10008 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10009 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10010 $as_echo_n "(cached) " >&6
10011 else
10012 $RM conftest*
10013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10014
10015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10016 (eval $ac_compile) 2>&5
10017 ac_status=$?
10018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10019 test $ac_status = 0; } 2>conftest.err; then
10020 soname=conftest
10021 lib=conftest
10022 libobjs=conftest.$ac_objext
10023 deplibs=
10024 wl=$lt_prog_compiler_wl
10025 pic_flag=$lt_prog_compiler_pic
10026 compiler_flags=-v
10027 linker_flags=-v
10028 verstring=
10029 output_objdir=.
10030 libname=conftest
10031 lt_save_allow_undefined_flag=$allow_undefined_flag
10032 allow_undefined_flag=
10033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10034 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10035 ac_status=$?
10036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10037 test $ac_status = 0; }
10038 then
10039 lt_cv_archive_cmds_need_lc=no
10040 else
10041 lt_cv_archive_cmds_need_lc=yes
10042 fi
10043 allow_undefined_flag=$lt_save_allow_undefined_flag
10044 else
10045 cat conftest.err 1>&5
10046 fi
10047 $RM conftest*
10048
10049 fi
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10051 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10052 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10053 ;;
10054 esac
10055 fi
10056 ;;
10057 esac
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10211 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10212
10213 if test "$GCC" = yes; then
10214 case $host_os in
10215 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10216 *) lt_awk_arg="/^libraries:/" ;;
10217 esac
10218 case $host_os in
10219 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10220 *) lt_sed_strip_eq="s,=/,/,g" ;;
10221 esac
10222 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10223 case $lt_search_path_spec in
10224 *\;*)
10225 # if the path contains ";" then we assume it to be the separator
10226 # otherwise default to the standard path separator (i.e. ":") - it is
10227 # assumed that no part of a normal pathname contains ";" but that should
10228 # okay in the real world where ";" in dirpaths is itself problematic.
10229 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10230 ;;
10231 *)
10232 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10233 ;;
10234 esac
10235 # Ok, now we have the path, separated by spaces, we can step through it
10236 # and add multilib dir if necessary.
10237 lt_tmp_lt_search_path_spec=
10238 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10239 for lt_sys_path in $lt_search_path_spec; do
10240 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10241 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10242 else
10243 test -d "$lt_sys_path" && \
10244 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10245 fi
10246 done
10247 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10248 BEGIN {RS=" "; FS="/|\n";} {
10249 lt_foo="";
10250 lt_count=0;
10251 for (lt_i = NF; lt_i > 0; lt_i--) {
10252 if ($lt_i != "" && $lt_i != ".") {
10253 if ($lt_i == "..") {
10254 lt_count++;
10255 } else {
10256 if (lt_count == 0) {
10257 lt_foo="/" $lt_i lt_foo;
10258 } else {
10259 lt_count--;
10260 }
10261 }
10262 }
10263 }
10264 if (lt_foo != "") { lt_freq[lt_foo]++; }
10265 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10266 }'`
10267 # AWK program above erroneously prepends '/' to C:/dos/paths
10268 # for these hosts.
10269 case $host_os in
10270 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10271 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10272 esac
10273 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10274 else
10275 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10276 fi
10277 library_names_spec=
10278 libname_spec='lib$name'
10279 soname_spec=
10280 shrext_cmds=".so"
10281 postinstall_cmds=
10282 postuninstall_cmds=
10283 finish_cmds=
10284 finish_eval=
10285 shlibpath_var=
10286 shlibpath_overrides_runpath=unknown
10287 version_type=none
10288 dynamic_linker="$host_os ld.so"
10289 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10290 need_lib_prefix=unknown
10291 hardcode_into_libs=no
10292
10293 # when you set need_version to no, make sure it does not cause -set_version
10294 # flags to be left without arguments
10295 need_version=unknown
10296
10297 case $host_os in
10298 aix3*)
10299 version_type=linux # correct to gnu/linux during the next big refactor
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10301 shlibpath_var=LIBPATH
10302
10303 # AIX 3 has no versioning support, so we append a major version to the name.
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 ;;
10306
10307 aix[4-9]*)
10308 version_type=linux # correct to gnu/linux during the next big refactor
10309 need_lib_prefix=no
10310 need_version=no
10311 hardcode_into_libs=yes
10312 if test "$host_cpu" = ia64; then
10313 # AIX 5 supports IA64
10314 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 else
10317 # With GCC up to 2.95.x, collect2 would create an import file
10318 # for dependence libraries. The import file would start with
10319 # the line `#! .'. This would cause the generated library to
10320 # depend on `.', always an invalid library. This was fixed in
10321 # development snapshots of GCC prior to 3.0.
10322 case $host_os in
10323 aix4 | aix4.[01] | aix4.[01].*)
10324 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10325 echo ' yes '
10326 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10327 :
10328 else
10329 can_build_shared=no
10330 fi
10331 ;;
10332 esac
10333 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10334 # soname into executable. Probably we can add versioning support to
10335 # collect2, so additional links can be useful in future.
10336 if test "$aix_use_runtimelinking" = yes; then
10337 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10338 # instead of lib<name>.a to let people know that these are not
10339 # typical AIX shared libraries.
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341 else
10342 # We preserve .a as extension for shared libraries through AIX4.2
10343 # and later when we are not doing run time linking.
10344 library_names_spec='${libname}${release}.a $libname.a'
10345 soname_spec='${libname}${release}${shared_ext}$major'
10346 fi
10347 shlibpath_var=LIBPATH
10348 fi
10349 ;;
10350
10351 amigaos*)
10352 case $host_cpu in
10353 powerpc)
10354 # Since July 2007 AmigaOS4 officially supports .so libraries.
10355 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357 ;;
10358 m68k)
10359 library_names_spec='$libname.ixlibrary $libname.a'
10360 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10361 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10362 ;;
10363 esac
10364 ;;
10365
10366 beos*)
10367 library_names_spec='${libname}${shared_ext}'
10368 dynamic_linker="$host_os ld.so"
10369 shlibpath_var=LIBRARY_PATH
10370 ;;
10371
10372 bsdi[45]*)
10373 version_type=linux # correct to gnu/linux during the next big refactor
10374 need_version=no
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10380 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10381 # the default ld.so.conf also contains /usr/contrib/lib and
10382 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10383 # libtool to hard-code these into programs
10384 ;;
10385
10386 cygwin* | mingw* | pw32* | cegcc*)
10387 version_type=windows
10388 shrext_cmds=".dll"
10389 need_version=no
10390 need_lib_prefix=no
10391
10392 case $GCC,$cc_basename in
10393 yes,*)
10394 # gcc
10395 library_names_spec='$libname.dll.a'
10396 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10397 postinstall_cmds='base_file=`basename \${file}`~
10398 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10399 dldir=$destdir/`dirname \$dlpath`~
10400 test -d \$dldir || mkdir -p \$dldir~
10401 $install_prog $dir/$dlname \$dldir/$dlname~
10402 chmod a+x \$dldir/$dlname~
10403 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10404 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10405 fi'
10406 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10407 dlpath=$dir/\$dldll~
10408 $RM \$dlpath'
10409 shlibpath_overrides_runpath=yes
10410
10411 case $host_os in
10412 cygwin*)
10413 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10414 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10415
10416 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10417 ;;
10418 mingw* | cegcc*)
10419 # MinGW DLLs use traditional 'lib' prefix
10420 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10421 ;;
10422 pw32*)
10423 # pw32 DLLs use 'pw' prefix rather than 'lib'
10424 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10425 ;;
10426 esac
10427 dynamic_linker='Win32 ld.exe'
10428 ;;
10429
10430 *,cl*)
10431 # Native MSVC
10432 libname_spec='$name'
10433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10434 library_names_spec='${libname}.dll.lib'
10435
10436 case $build_os in
10437 mingw*)
10438 sys_lib_search_path_spec=
10439 lt_save_ifs=$IFS
10440 IFS=';'
10441 for lt_path in $LIB
10442 do
10443 IFS=$lt_save_ifs
10444 # Let DOS variable expansion print the short 8.3 style file name.
10445 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10446 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10447 done
10448 IFS=$lt_save_ifs
10449 # Convert to MSYS style.
10450 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10451 ;;
10452 cygwin*)
10453 # Convert to unix form, then to dos form, then back to unix form
10454 # but this time dos style (no spaces!) so that the unix form looks
10455 # like /cygdrive/c/PROGRA~1:/cygdr...
10456 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10457 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10458 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10459 ;;
10460 *)
10461 sys_lib_search_path_spec="$LIB"
10462 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10463 # It is most probably a Windows format PATH.
10464 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10465 else
10466 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10467 fi
10468 # FIXME: find the short name or the path components, as spaces are
10469 # common. (e.g. "Program Files" -> "PROGRA~1")
10470 ;;
10471 esac
10472
10473 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10474 postinstall_cmds='base_file=`basename \${file}`~
10475 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10476 dldir=$destdir/`dirname \$dlpath`~
10477 test -d \$dldir || mkdir -p \$dldir~
10478 $install_prog $dir/$dlname \$dldir/$dlname'
10479 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10480 dlpath=$dir/\$dldll~
10481 $RM \$dlpath'
10482 shlibpath_overrides_runpath=yes
10483 dynamic_linker='Win32 link.exe'
10484 ;;
10485
10486 *)
10487 # Assume MSVC wrapper
10488 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10489 dynamic_linker='Win32 ld.exe'
10490 ;;
10491 esac
10492 # FIXME: first we should search . and the directory the executable is in
10493 shlibpath_var=PATH
10494 ;;
10495
10496 darwin* | rhapsody*)
10497 dynamic_linker="$host_os dyld"
10498 version_type=darwin
10499 need_lib_prefix=no
10500 need_version=no
10501 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10502 soname_spec='${libname}${release}${major}$shared_ext'
10503 shlibpath_overrides_runpath=yes
10504 shlibpath_var=DYLD_LIBRARY_PATH
10505 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10506
10507 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10508 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10509 ;;
10510
10511 dgux*)
10512 version_type=linux # correct to gnu/linux during the next big refactor
10513 need_lib_prefix=no
10514 need_version=no
10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10516 soname_spec='${libname}${release}${shared_ext}$major'
10517 shlibpath_var=LD_LIBRARY_PATH
10518 ;;
10519
10520 freebsd* | dragonfly*)
10521 # DragonFly does not have aout. When/if they implement a new
10522 # versioning mechanism, adjust this.
10523 if test -x /usr/bin/objformat; then
10524 objformat=`/usr/bin/objformat`
10525 else
10526 case $host_os in
10527 freebsd[23].*) objformat=aout ;;
10528 *) objformat=elf ;;
10529 esac
10530 fi
10531 version_type=freebsd-$objformat
10532 case $version_type in
10533 freebsd-elf*)
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10535 need_version=no
10536 need_lib_prefix=no
10537 ;;
10538 freebsd-*)
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10540 need_version=yes
10541 ;;
10542 esac
10543 shlibpath_var=LD_LIBRARY_PATH
10544 case $host_os in
10545 freebsd2.*)
10546 shlibpath_overrides_runpath=yes
10547 ;;
10548 freebsd3.[01]* | freebsdelf3.[01]*)
10549 shlibpath_overrides_runpath=yes
10550 hardcode_into_libs=yes
10551 ;;
10552 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10553 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10554 shlibpath_overrides_runpath=no
10555 hardcode_into_libs=yes
10556 ;;
10557 *) # from 4.6 on, and DragonFly
10558 shlibpath_overrides_runpath=yes
10559 hardcode_into_libs=yes
10560 ;;
10561 esac
10562 ;;
10563
10564 gnu*)
10565 version_type=linux # correct to gnu/linux during the next big refactor
10566 need_lib_prefix=no
10567 need_version=no
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 shlibpath_var=LD_LIBRARY_PATH
10571 shlibpath_overrides_runpath=no
10572 hardcode_into_libs=yes
10573 ;;
10574
10575 haiku*)
10576 version_type=linux # correct to gnu/linux during the next big refactor
10577 need_lib_prefix=no
10578 need_version=no
10579 dynamic_linker="$host_os runtime_loader"
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 shlibpath_var=LIBRARY_PATH
10583 shlibpath_overrides_runpath=yes
10584 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10585 hardcode_into_libs=yes
10586 ;;
10587
10588 hpux9* | hpux10* | hpux11*)
10589 # Give a soname corresponding to the major version so that dld.sl refuses to
10590 # link against other versions.
10591 version_type=sunos
10592 need_lib_prefix=no
10593 need_version=no
10594 case $host_cpu in
10595 ia64*)
10596 shrext_cmds='.so'
10597 hardcode_into_libs=yes
10598 dynamic_linker="$host_os dld.so"
10599 shlibpath_var=LD_LIBRARY_PATH
10600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10602 soname_spec='${libname}${release}${shared_ext}$major'
10603 if test "X$HPUX_IA64_MODE" = X32; then
10604 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10605 else
10606 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10607 fi
10608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10609 ;;
10610 hppa*64*)
10611 shrext_cmds='.sl'
10612 hardcode_into_libs=yes
10613 dynamic_linker="$host_os dld.sl"
10614 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10618 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10620 ;;
10621 *)
10622 shrext_cmds='.sl'
10623 dynamic_linker="$host_os dld.sl"
10624 shlibpath_var=SHLIB_PATH
10625 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 ;;
10629 esac
10630 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10631 postinstall_cmds='chmod 555 $lib'
10632 # or fails outright, so override atomically:
10633 install_override_mode=555
10634 ;;
10635
10636 interix[3-9]*)
10637 version_type=linux # correct to gnu/linux during the next big refactor
10638 need_lib_prefix=no
10639 need_version=no
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10641 soname_spec='${libname}${release}${shared_ext}$major'
10642 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 shlibpath_overrides_runpath=no
10645 hardcode_into_libs=yes
10646 ;;
10647
10648 irix5* | irix6* | nonstopux*)
10649 case $host_os in
10650 nonstopux*) version_type=nonstopux ;;
10651 *)
10652 if test "$lt_cv_prog_gnu_ld" = yes; then
10653 version_type=linux # correct to gnu/linux during the next big refactor
10654 else
10655 version_type=irix
10656 fi ;;
10657 esac
10658 need_lib_prefix=no
10659 need_version=no
10660 soname_spec='${libname}${release}${shared_ext}$major'
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10662 case $host_os in
10663 irix5* | nonstopux*)
10664 libsuff= shlibsuff=
10665 ;;
10666 *)
10667 case $LD in # libtool.m4 will add one of these switches to LD
10668 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10669 libsuff= shlibsuff= libmagic=32-bit;;
10670 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10671 libsuff=32 shlibsuff=N32 libmagic=N32;;
10672 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10673 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10674 *) libsuff= shlibsuff= libmagic=never-match;;
10675 esac
10676 ;;
10677 esac
10678 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10679 shlibpath_overrides_runpath=no
10680 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10681 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10682 hardcode_into_libs=yes
10683 ;;
10684
10685 # No shared lib support for Linux oldld, aout, or coff.
10686 linux*oldld* | linux*aout* | linux*coff*)
10687 dynamic_linker=no
10688 ;;
10689
10690 # This must be glibc/ELF.
10691 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10692 version_type=linux # correct to gnu/linux during the next big refactor
10693 need_lib_prefix=no
10694 need_version=no
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696 soname_spec='${libname}${release}${shared_ext}$major'
10697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10698 shlibpath_var=LD_LIBRARY_PATH
10699 shlibpath_overrides_runpath=no
10700
10701 # Some binutils ld are patched to set DT_RUNPATH
10702 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10703 $as_echo_n "(cached) " >&6
10704 else
10705 lt_cv_shlibpath_overrides_runpath=no
10706 save_LDFLAGS=$LDFLAGS
10707 save_libdir=$libdir
10708 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10709 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10712
10713 int
10714 main ()
10715 {
10716
10717 ;
10718 return 0;
10719 }
10720 _ACEOF
10721 if ac_fn_c_try_link "$LINENO"; then :
10722 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10723 lt_cv_shlibpath_overrides_runpath=yes
10724 fi
10725 fi
10726 rm -f core conftest.err conftest.$ac_objext \
10727 conftest$ac_exeext conftest.$ac_ext
10728 LDFLAGS=$save_LDFLAGS
10729 libdir=$save_libdir
10730
10731 fi
10732
10733 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10734
10735 # This implies no fast_install, which is unacceptable.
10736 # Some rework will be needed to allow for fast_install
10737 # before this can be enabled.
10738 hardcode_into_libs=yes
10739
10740 # Add ABI-specific directories to the system library path.
10741 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10742
10743 # Append ld.so.conf contents to the search path
10744 if test -f /etc/ld.so.conf; then
10745 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' ' '`
10746 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10747
10748 fi
10749
10750 # We used to test for /lib/ld.so.1 and disable shared libraries on
10751 # powerpc, because MkLinux only supported shared libraries with the
10752 # GNU dynamic linker. Since this was broken with cross compilers,
10753 # most powerpc-linux boxes support dynamic linking these days and
10754 # people can always --disable-shared, the test was removed, and we
10755 # assume the GNU/Linux dynamic linker is in use.
10756 dynamic_linker='GNU/Linux ld.so'
10757 ;;
10758
10759 netbsd*)
10760 version_type=sunos
10761 need_lib_prefix=no
10762 need_version=no
10763 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10766 dynamic_linker='NetBSD (a.out) ld.so'
10767 else
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10769 soname_spec='${libname}${release}${shared_ext}$major'
10770 dynamic_linker='NetBSD ld.elf_so'
10771 fi
10772 shlibpath_var=LD_LIBRARY_PATH
10773 shlibpath_overrides_runpath=yes
10774 hardcode_into_libs=yes
10775 ;;
10776
10777 newsos6)
10778 version_type=linux # correct to gnu/linux during the next big refactor
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10780 shlibpath_var=LD_LIBRARY_PATH
10781 shlibpath_overrides_runpath=yes
10782 ;;
10783
10784 *nto* | *qnx*)
10785 version_type=qnx
10786 need_lib_prefix=no
10787 need_version=no
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789 soname_spec='${libname}${release}${shared_ext}$major'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 shlibpath_overrides_runpath=no
10792 hardcode_into_libs=yes
10793 dynamic_linker='ldqnx.so'
10794 ;;
10795
10796 openbsd*)
10797 version_type=sunos
10798 sys_lib_dlsearch_path_spec="/usr/lib"
10799 need_lib_prefix=no
10800 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10801 case $host_os in
10802 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10803 *) need_version=no ;;
10804 esac
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10807 shlibpath_var=LD_LIBRARY_PATH
10808 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10809 case $host_os in
10810 openbsd2.[89] | openbsd2.[89].*)
10811 shlibpath_overrides_runpath=no
10812 ;;
10813 *)
10814 shlibpath_overrides_runpath=yes
10815 ;;
10816 esac
10817 else
10818 shlibpath_overrides_runpath=yes
10819 fi
10820 ;;
10821
10822 os2*)
10823 libname_spec='$name'
10824 shrext_cmds=".dll"
10825 need_lib_prefix=no
10826 library_names_spec='$libname${shared_ext} $libname.a'
10827 dynamic_linker='OS/2 ld.exe'
10828 shlibpath_var=LIBPATH
10829 ;;
10830
10831 osf3* | osf4* | osf5*)
10832 version_type=osf
10833 need_lib_prefix=no
10834 need_version=no
10835 soname_spec='${libname}${release}${shared_ext}$major'
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10837 shlibpath_var=LD_LIBRARY_PATH
10838 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10839 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10840 ;;
10841
10842 rdos*)
10843 dynamic_linker=no
10844 ;;
10845
10846 solaris*)
10847 version_type=linux # correct to gnu/linux during the next big refactor
10848 need_lib_prefix=no
10849 need_version=no
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851 soname_spec='${libname}${release}${shared_ext}$major'
10852 shlibpath_var=LD_LIBRARY_PATH
10853 shlibpath_overrides_runpath=yes
10854 hardcode_into_libs=yes
10855 # ldd complains unless libraries are executable
10856 postinstall_cmds='chmod +x $lib'
10857 ;;
10858
10859 sunos4*)
10860 version_type=sunos
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10862 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10863 shlibpath_var=LD_LIBRARY_PATH
10864 shlibpath_overrides_runpath=yes
10865 if test "$with_gnu_ld" = yes; then
10866 need_lib_prefix=no
10867 fi
10868 need_version=yes
10869 ;;
10870
10871 sysv4 | sysv4.3*)
10872 version_type=linux # correct to gnu/linux during the next big refactor
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10874 soname_spec='${libname}${release}${shared_ext}$major'
10875 shlibpath_var=LD_LIBRARY_PATH
10876 case $host_vendor in
10877 sni)
10878 shlibpath_overrides_runpath=no
10879 need_lib_prefix=no
10880 runpath_var=LD_RUN_PATH
10881 ;;
10882 siemens)
10883 need_lib_prefix=no
10884 ;;
10885 motorola)
10886 need_lib_prefix=no
10887 need_version=no
10888 shlibpath_overrides_runpath=no
10889 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10890 ;;
10891 esac
10892 ;;
10893
10894 sysv4*MP*)
10895 if test -d /usr/nec ;then
10896 version_type=linux # correct to gnu/linux during the next big refactor
10897 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10898 soname_spec='$libname${shared_ext}.$major'
10899 shlibpath_var=LD_LIBRARY_PATH
10900 fi
10901 ;;
10902
10903 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10904 version_type=freebsd-elf
10905 need_lib_prefix=no
10906 need_version=no
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10908 soname_spec='${libname}${release}${shared_ext}$major'
10909 shlibpath_var=LD_LIBRARY_PATH
10910 shlibpath_overrides_runpath=yes
10911 hardcode_into_libs=yes
10912 if test "$with_gnu_ld" = yes; then
10913 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10914 else
10915 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10916 case $host_os in
10917 sco3.2v5*)
10918 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10919 ;;
10920 esac
10921 fi
10922 sys_lib_dlsearch_path_spec='/usr/lib'
10923 ;;
10924
10925 tpf*)
10926 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10927 version_type=linux # correct to gnu/linux during the next big refactor
10928 need_lib_prefix=no
10929 need_version=no
10930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10931 shlibpath_var=LD_LIBRARY_PATH
10932 shlibpath_overrides_runpath=no
10933 hardcode_into_libs=yes
10934 ;;
10935
10936 uts4*)
10937 version_type=linux # correct to gnu/linux during the next big refactor
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 soname_spec='${libname}${release}${shared_ext}$major'
10940 shlibpath_var=LD_LIBRARY_PATH
10941 ;;
10942
10943 *)
10944 dynamic_linker=no
10945 ;;
10946 esac
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10948 $as_echo "$dynamic_linker" >&6; }
10949 test "$dynamic_linker" = no && can_build_shared=no
10950
10951 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10952 if test "$GCC" = yes; then
10953 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10954 fi
10955
10956 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10957 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10958 fi
10959 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10960 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10961 fi
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11055 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11056 hardcode_action=
11057 if test -n "$hardcode_libdir_flag_spec" ||
11058 test -n "$runpath_var" ||
11059 test "X$hardcode_automatic" = "Xyes" ; then
11060
11061 # We can hardcode non-existent directories.
11062 if test "$hardcode_direct" != no &&
11063 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11064 # have to relink, otherwise we might link with an installed library
11065 # when we should be linking with a yet-to-be-installed one
11066 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11067 test "$hardcode_minus_L" != no; then
11068 # Linking always hardcodes the temporary library directory.
11069 hardcode_action=relink
11070 else
11071 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11072 hardcode_action=immediate
11073 fi
11074 else
11075 # We cannot hardcode anything, or else we can only hardcode existing
11076 # directories.
11077 hardcode_action=unsupported
11078 fi
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11080 $as_echo "$hardcode_action" >&6; }
11081
11082 if test "$hardcode_action" = relink ||
11083 test "$inherit_rpath" = yes; then
11084 # Fast installation is not supported
11085 enable_fast_install=no
11086 elif test "$shlibpath_overrides_runpath" = yes ||
11087 test "$enable_shared" = no; then
11088 # Fast installation is not necessary
11089 enable_fast_install=needless
11090 fi
11091
11092
11093
11094
11095
11096
11097 if test "x$enable_dlopen" != xyes; then
11098 enable_dlopen=unknown
11099 enable_dlopen_self=unknown
11100 enable_dlopen_self_static=unknown
11101 else
11102 lt_cv_dlopen=no
11103 lt_cv_dlopen_libs=
11104
11105 case $host_os in
11106 beos*)
11107 lt_cv_dlopen="load_add_on"
11108 lt_cv_dlopen_libs=
11109 lt_cv_dlopen_self=yes
11110 ;;
11111
11112 mingw* | pw32* | cegcc*)
11113 lt_cv_dlopen="LoadLibrary"
11114 lt_cv_dlopen_libs=
11115 ;;
11116
11117 cygwin*)
11118 lt_cv_dlopen="dlopen"
11119 lt_cv_dlopen_libs=
11120 ;;
11121
11122 darwin*)
11123 # if libdl is installed we need to link against it
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11125 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11126 if ${ac_cv_lib_dl_dlopen+:} false; then :
11127 $as_echo_n "(cached) " >&6
11128 else
11129 ac_check_lib_save_LIBS=$LIBS
11130 LIBS="-ldl $LIBS"
11131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11132 /* end confdefs.h. */
11133
11134 /* Override any GCC internal prototype to avoid an error.
11135 Use char because int might match the return type of a GCC
11136 builtin and then its argument prototype would still apply. */
11137 #ifdef __cplusplus
11138 extern "C"
11139 #endif
11140 char dlopen ();
11141 int
11142 main ()
11143 {
11144 return dlopen ();
11145 ;
11146 return 0;
11147 }
11148 _ACEOF
11149 if ac_fn_c_try_link "$LINENO"; then :
11150 ac_cv_lib_dl_dlopen=yes
11151 else
11152 ac_cv_lib_dl_dlopen=no
11153 fi
11154 rm -f core conftest.err conftest.$ac_objext \
11155 conftest$ac_exeext conftest.$ac_ext
11156 LIBS=$ac_check_lib_save_LIBS
11157 fi
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11159 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11160 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11161 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11162 else
11163
11164 lt_cv_dlopen="dyld"
11165 lt_cv_dlopen_libs=
11166 lt_cv_dlopen_self=yes
11167
11168 fi
11169
11170 ;;
11171
11172 *)
11173 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11174 if test "x$ac_cv_func_shl_load" = xyes; then :
11175 lt_cv_dlopen="shl_load"
11176 else
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11178 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11179 if ${ac_cv_lib_dld_shl_load+:} false; then :
11180 $as_echo_n "(cached) " >&6
11181 else
11182 ac_check_lib_save_LIBS=$LIBS
11183 LIBS="-ldld $LIBS"
11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11186
11187 /* Override any GCC internal prototype to avoid an error.
11188 Use char because int might match the return type of a GCC
11189 builtin and then its argument prototype would still apply. */
11190 #ifdef __cplusplus
11191 extern "C"
11192 #endif
11193 char shl_load ();
11194 int
11195 main ()
11196 {
11197 return shl_load ();
11198 ;
11199 return 0;
11200 }
11201 _ACEOF
11202 if ac_fn_c_try_link "$LINENO"; then :
11203 ac_cv_lib_dld_shl_load=yes
11204 else
11205 ac_cv_lib_dld_shl_load=no
11206 fi
11207 rm -f core conftest.err conftest.$ac_objext \
11208 conftest$ac_exeext conftest.$ac_ext
11209 LIBS=$ac_check_lib_save_LIBS
11210 fi
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11212 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11213 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11214 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11215 else
11216 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11217 if test "x$ac_cv_func_dlopen" = xyes; then :
11218 lt_cv_dlopen="dlopen"
11219 else
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11221 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11222 if ${ac_cv_lib_dl_dlopen+:} false; then :
11223 $as_echo_n "(cached) " >&6
11224 else
11225 ac_check_lib_save_LIBS=$LIBS
11226 LIBS="-ldl $LIBS"
11227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h. */
11229
11230 /* Override any GCC internal prototype to avoid an error.
11231 Use char because int might match the return type of a GCC
11232 builtin and then its argument prototype would still apply. */
11233 #ifdef __cplusplus
11234 extern "C"
11235 #endif
11236 char dlopen ();
11237 int
11238 main ()
11239 {
11240 return dlopen ();
11241 ;
11242 return 0;
11243 }
11244 _ACEOF
11245 if ac_fn_c_try_link "$LINENO"; then :
11246 ac_cv_lib_dl_dlopen=yes
11247 else
11248 ac_cv_lib_dl_dlopen=no
11249 fi
11250 rm -f core conftest.err conftest.$ac_objext \
11251 conftest$ac_exeext conftest.$ac_ext
11252 LIBS=$ac_check_lib_save_LIBS
11253 fi
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11255 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11256 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11258 else
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11260 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11261 if ${ac_cv_lib_svld_dlopen+:} false; then :
11262 $as_echo_n "(cached) " >&6
11263 else
11264 ac_check_lib_save_LIBS=$LIBS
11265 LIBS="-lsvld $LIBS"
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11268
11269 /* Override any GCC internal prototype to avoid an error.
11270 Use char because int might match the return type of a GCC
11271 builtin and then its argument prototype would still apply. */
11272 #ifdef __cplusplus
11273 extern "C"
11274 #endif
11275 char dlopen ();
11276 int
11277 main ()
11278 {
11279 return dlopen ();
11280 ;
11281 return 0;
11282 }
11283 _ACEOF
11284 if ac_fn_c_try_link "$LINENO"; then :
11285 ac_cv_lib_svld_dlopen=yes
11286 else
11287 ac_cv_lib_svld_dlopen=no
11288 fi
11289 rm -f core conftest.err conftest.$ac_objext \
11290 conftest$ac_exeext conftest.$ac_ext
11291 LIBS=$ac_check_lib_save_LIBS
11292 fi
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11294 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11295 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11297 else
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11299 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11300 if ${ac_cv_lib_dld_dld_link+:} false; then :
11301 $as_echo_n "(cached) " >&6
11302 else
11303 ac_check_lib_save_LIBS=$LIBS
11304 LIBS="-ldld $LIBS"
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11307
11308 /* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11311 #ifdef __cplusplus
11312 extern "C"
11313 #endif
11314 char dld_link ();
11315 int
11316 main ()
11317 {
11318 return dld_link ();
11319 ;
11320 return 0;
11321 }
11322 _ACEOF
11323 if ac_fn_c_try_link "$LINENO"; then :
11324 ac_cv_lib_dld_dld_link=yes
11325 else
11326 ac_cv_lib_dld_dld_link=no
11327 fi
11328 rm -f core conftest.err conftest.$ac_objext \
11329 conftest$ac_exeext conftest.$ac_ext
11330 LIBS=$ac_check_lib_save_LIBS
11331 fi
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11333 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11334 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11335 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11336 fi
11337
11338
11339 fi
11340
11341
11342 fi
11343
11344
11345 fi
11346
11347
11348 fi
11349
11350
11351 fi
11352
11353 ;;
11354 esac
11355
11356 if test "x$lt_cv_dlopen" != xno; then
11357 enable_dlopen=yes
11358 else
11359 enable_dlopen=no
11360 fi
11361
11362 case $lt_cv_dlopen in
11363 dlopen)
11364 save_CPPFLAGS="$CPPFLAGS"
11365 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11366
11367 save_LDFLAGS="$LDFLAGS"
11368 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11369
11370 save_LIBS="$LIBS"
11371 LIBS="$lt_cv_dlopen_libs $LIBS"
11372
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11374 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11375 if ${lt_cv_dlopen_self+:} false; then :
11376 $as_echo_n "(cached) " >&6
11377 else
11378 if test "$cross_compiling" = yes; then :
11379 lt_cv_dlopen_self=cross
11380 else
11381 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11382 lt_status=$lt_dlunknown
11383 cat > conftest.$ac_ext <<_LT_EOF
11384 #line $LINENO "configure"
11385 #include "confdefs.h"
11386
11387 #if HAVE_DLFCN_H
11388 #include <dlfcn.h>
11389 #endif
11390
11391 #include <stdio.h>
11392
11393 #ifdef RTLD_GLOBAL
11394 # define LT_DLGLOBAL RTLD_GLOBAL
11395 #else
11396 # ifdef DL_GLOBAL
11397 # define LT_DLGLOBAL DL_GLOBAL
11398 # else
11399 # define LT_DLGLOBAL 0
11400 # endif
11401 #endif
11402
11403 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11404 find out it does not work in some platform. */
11405 #ifndef LT_DLLAZY_OR_NOW
11406 # ifdef RTLD_LAZY
11407 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11408 # else
11409 # ifdef DL_LAZY
11410 # define LT_DLLAZY_OR_NOW DL_LAZY
11411 # else
11412 # ifdef RTLD_NOW
11413 # define LT_DLLAZY_OR_NOW RTLD_NOW
11414 # else
11415 # ifdef DL_NOW
11416 # define LT_DLLAZY_OR_NOW DL_NOW
11417 # else
11418 # define LT_DLLAZY_OR_NOW 0
11419 # endif
11420 # endif
11421 # endif
11422 # endif
11423 #endif
11424
11425 /* When -fvisbility=hidden is used, assume the code has been annotated
11426 correspondingly for the symbols needed. */
11427 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11428 int fnord () __attribute__((visibility("default")));
11429 #endif
11430
11431 int fnord () { return 42; }
11432 int main ()
11433 {
11434 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11435 int status = $lt_dlunknown;
11436
11437 if (self)
11438 {
11439 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11440 else
11441 {
11442 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11443 else puts (dlerror ());
11444 }
11445 /* dlclose (self); */
11446 }
11447 else
11448 puts (dlerror ());
11449
11450 return status;
11451 }
11452 _LT_EOF
11453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11454 (eval $ac_link) 2>&5
11455 ac_status=$?
11456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11457 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11458 (./conftest; exit; ) >&5 2>/dev/null
11459 lt_status=$?
11460 case x$lt_status in
11461 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11462 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11463 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11464 esac
11465 else :
11466 # compilation failed
11467 lt_cv_dlopen_self=no
11468 fi
11469 fi
11470 rm -fr conftest*
11471
11472
11473 fi
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11475 $as_echo "$lt_cv_dlopen_self" >&6; }
11476
11477 if test "x$lt_cv_dlopen_self" = xyes; then
11478 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11480 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11481 if ${lt_cv_dlopen_self_static+:} false; then :
11482 $as_echo_n "(cached) " >&6
11483 else
11484 if test "$cross_compiling" = yes; then :
11485 lt_cv_dlopen_self_static=cross
11486 else
11487 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11488 lt_status=$lt_dlunknown
11489 cat > conftest.$ac_ext <<_LT_EOF
11490 #line $LINENO "configure"
11491 #include "confdefs.h"
11492
11493 #if HAVE_DLFCN_H
11494 #include <dlfcn.h>
11495 #endif
11496
11497 #include <stdio.h>
11498
11499 #ifdef RTLD_GLOBAL
11500 # define LT_DLGLOBAL RTLD_GLOBAL
11501 #else
11502 # ifdef DL_GLOBAL
11503 # define LT_DLGLOBAL DL_GLOBAL
11504 # else
11505 # define LT_DLGLOBAL 0
11506 # endif
11507 #endif
11508
11509 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11510 find out it does not work in some platform. */
11511 #ifndef LT_DLLAZY_OR_NOW
11512 # ifdef RTLD_LAZY
11513 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11514 # else
11515 # ifdef DL_LAZY
11516 # define LT_DLLAZY_OR_NOW DL_LAZY
11517 # else
11518 # ifdef RTLD_NOW
11519 # define LT_DLLAZY_OR_NOW RTLD_NOW
11520 # else
11521 # ifdef DL_NOW
11522 # define LT_DLLAZY_OR_NOW DL_NOW
11523 # else
11524 # define LT_DLLAZY_OR_NOW 0
11525 # endif
11526 # endif
11527 # endif
11528 # endif
11529 #endif
11530
11531 /* When -fvisbility=hidden is used, assume the code has been annotated
11532 correspondingly for the symbols needed. */
11533 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11534 int fnord () __attribute__((visibility("default")));
11535 #endif
11536
11537 int fnord () { return 42; }
11538 int main ()
11539 {
11540 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11541 int status = $lt_dlunknown;
11542
11543 if (self)
11544 {
11545 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11546 else
11547 {
11548 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11549 else puts (dlerror ());
11550 }
11551 /* dlclose (self); */
11552 }
11553 else
11554 puts (dlerror ());
11555
11556 return status;
11557 }
11558 _LT_EOF
11559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11560 (eval $ac_link) 2>&5
11561 ac_status=$?
11562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11563 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11564 (./conftest; exit; ) >&5 2>/dev/null
11565 lt_status=$?
11566 case x$lt_status in
11567 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11568 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11569 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11570 esac
11571 else :
11572 # compilation failed
11573 lt_cv_dlopen_self_static=no
11574 fi
11575 fi
11576 rm -fr conftest*
11577
11578
11579 fi
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11581 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11582 fi
11583
11584 CPPFLAGS="$save_CPPFLAGS"
11585 LDFLAGS="$save_LDFLAGS"
11586 LIBS="$save_LIBS"
11587 ;;
11588 esac
11589
11590 case $lt_cv_dlopen_self in
11591 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11592 *) enable_dlopen_self=unknown ;;
11593 esac
11594
11595 case $lt_cv_dlopen_self_static in
11596 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11597 *) enable_dlopen_self_static=unknown ;;
11598 esac
11599 fi
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617 striplib=
11618 old_striplib=
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11620 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11621 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11622 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11623 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11625 $as_echo "yes" >&6; }
11626 else
11627 # FIXME - insert some real tests, host_os isn't really good enough
11628 case $host_os in
11629 darwin*)
11630 if test -n "$STRIP" ; then
11631 striplib="$STRIP -x"
11632 old_striplib="$STRIP -S"
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11634 $as_echo "yes" >&6; }
11635 else
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637 $as_echo "no" >&6; }
11638 fi
11639 ;;
11640 *)
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11643 ;;
11644 esac
11645 fi
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658 # Report which library types will actually be built
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11660 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11662 $as_echo "$can_build_shared" >&6; }
11663
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11665 $as_echo_n "checking whether to build shared libraries... " >&6; }
11666 test "$can_build_shared" = "no" && enable_shared=no
11667
11668 # On AIX, shared libraries and static libraries use the same namespace, and
11669 # are all built from PIC.
11670 case $host_os in
11671 aix3*)
11672 test "$enable_shared" = yes && enable_static=no
11673 if test -n "$RANLIB"; then
11674 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11675 postinstall_cmds='$RANLIB $lib'
11676 fi
11677 ;;
11678
11679 aix[4-9]*)
11680 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11681 test "$enable_shared" = yes && enable_static=no
11682 fi
11683 ;;
11684 esac
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11686 $as_echo "$enable_shared" >&6; }
11687
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11689 $as_echo_n "checking whether to build static libraries... " >&6; }
11690 # Make sure either enable_shared or enable_static is yes.
11691 test "$enable_shared" = yes || enable_static=yes
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11693 $as_echo "$enable_static" >&6; }
11694
11695
11696
11697
11698 fi
11699 ac_ext=c
11700 ac_cpp='$CPP $CPPFLAGS'
11701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11704
11705 CC="$lt_save_CC"
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721 ac_config_commands="$ac_config_commands libtool"
11722
11723
11724
11725
11726 # Only expand once:
11727
11728
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11730 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11731 if ${libltdl_cv_shlibext+:} false; then :
11732 $as_echo_n "(cached) " >&6
11733 else
11734
11735 module=yes
11736 eval libltdl_cv_shlibext=$shrext_cmds
11737 module=no
11738 eval libltdl_cv_shrext=$shrext_cmds
11739
11740 fi
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11742 $as_echo "$libltdl_cv_shlibext" >&6; }
11743 if test -n "$libltdl_cv_shlibext"; then
11744
11745 cat >>confdefs.h <<_ACEOF
11746 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11747 _ACEOF
11748
11749 fi
11750 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
11751
11752 cat >>confdefs.h <<_ACEOF
11753 #define LT_SHARED_EXT "$libltdl_cv_shrext"
11754 _ACEOF
11755
11756 fi
11757
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11759 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11760 if ${lt_cv_module_path_var+:} false; then :
11761 $as_echo_n "(cached) " >&6
11762 else
11763 lt_cv_module_path_var="$shlibpath_var"
11764 fi
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11766 $as_echo "$lt_cv_module_path_var" >&6; }
11767 if test -n "$lt_cv_module_path_var"; then
11768
11769 cat >>confdefs.h <<_ACEOF
11770 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11771 _ACEOF
11772
11773 fi
11774
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11776 $as_echo_n "checking for the default library search path... " >&6; }
11777 if ${lt_cv_sys_dlsearch_path+:} false; then :
11778 $as_echo_n "(cached) " >&6
11779 else
11780 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11781 fi
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11783 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11784 if test -n "$lt_cv_sys_dlsearch_path"; then
11785 sys_dlsearch_path=
11786 for dir in $lt_cv_sys_dlsearch_path; do
11787 if test -z "$sys_dlsearch_path"; then
11788 sys_dlsearch_path="$dir"
11789 else
11790 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11791 fi
11792 done
11793
11794 cat >>confdefs.h <<_ACEOF
11795 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11796 _ACEOF
11797
11798 fi
11799
11800
11801 LT_DLLOADERS=
11802
11803
11804 ac_ext=c
11805 ac_cpp='$CPP $CPPFLAGS'
11806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11809
11810
11811 LIBADD_DLOPEN=
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11813 $as_echo_n "checking for library containing dlopen... " >&6; }
11814 if ${ac_cv_search_dlopen+:} false; then :
11815 $as_echo_n "(cached) " >&6
11816 else
11817 ac_func_search_save_LIBS=$LIBS
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11820
11821 /* Override any GCC internal prototype to avoid an error.
11822 Use char because int might match the return type of a GCC
11823 builtin and then its argument prototype would still apply. */
11824 #ifdef __cplusplus
11825 extern "C"
11826 #endif
11827 char dlopen ();
11828 int
11829 main ()
11830 {
11831 return dlopen ();
11832 ;
11833 return 0;
11834 }
11835 _ACEOF
11836 for ac_lib in '' dl; do
11837 if test -z "$ac_lib"; then
11838 ac_res="none required"
11839 else
11840 ac_res=-l$ac_lib
11841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11842 fi
11843 if ac_fn_c_try_link "$LINENO"; then :
11844 ac_cv_search_dlopen=$ac_res
11845 fi
11846 rm -f core conftest.err conftest.$ac_objext \
11847 conftest$ac_exeext
11848 if ${ac_cv_search_dlopen+:} false; then :
11849 break
11850 fi
11851 done
11852 if ${ac_cv_search_dlopen+:} false; then :
11853
11854 else
11855 ac_cv_search_dlopen=no
11856 fi
11857 rm conftest.$ac_ext
11858 LIBS=$ac_func_search_save_LIBS
11859 fi
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11861 $as_echo "$ac_cv_search_dlopen" >&6; }
11862 ac_res=$ac_cv_search_dlopen
11863 if test "$ac_res" != no; then :
11864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11865
11866 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11867
11868 if test "$ac_cv_search_dlopen" != "none required" ; then
11869 LIBADD_DLOPEN="-ldl"
11870 fi
11871 libltdl_cv_lib_dl_dlopen="yes"
11872 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11873 else
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11876 #if HAVE_DLFCN_H
11877 # include <dlfcn.h>
11878 #endif
11879
11880 int
11881 main ()
11882 {
11883 dlopen(0, 0);
11884 ;
11885 return 0;
11886 }
11887 _ACEOF
11888 if ac_fn_c_try_link "$LINENO"; then :
11889
11890 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11891
11892 libltdl_cv_func_dlopen="yes"
11893 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11894 else
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11896 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11897 if ${ac_cv_lib_svld_dlopen+:} false; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 ac_check_lib_save_LIBS=$LIBS
11901 LIBS="-lsvld $LIBS"
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11904
11905 /* Override any GCC internal prototype to avoid an error.
11906 Use char because int might match the return type of a GCC
11907 builtin and then its argument prototype would still apply. */
11908 #ifdef __cplusplus
11909 extern "C"
11910 #endif
11911 char dlopen ();
11912 int
11913 main ()
11914 {
11915 return dlopen ();
11916 ;
11917 return 0;
11918 }
11919 _ACEOF
11920 if ac_fn_c_try_link "$LINENO"; then :
11921 ac_cv_lib_svld_dlopen=yes
11922 else
11923 ac_cv_lib_svld_dlopen=no
11924 fi
11925 rm -f core conftest.err conftest.$ac_objext \
11926 conftest$ac_exeext conftest.$ac_ext
11927 LIBS=$ac_check_lib_save_LIBS
11928 fi
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11930 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11931 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11932
11933 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11934
11935 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11936 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11937 fi
11938
11939 fi
11940 rm -f core conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
11942 fi
11943
11944 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11945 then
11946 lt_save_LIBS="$LIBS"
11947 LIBS="$LIBS $LIBADD_DLOPEN"
11948 for ac_func in dlerror
11949 do :
11950 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11951 if test "x$ac_cv_func_dlerror" = xyes; then :
11952 cat >>confdefs.h <<_ACEOF
11953 #define HAVE_DLERROR 1
11954 _ACEOF
11955
11956 fi
11957 done
11958
11959 LIBS="$lt_save_LIBS"
11960 fi
11961
11962
11963 LIBADD_SHL_LOAD=
11964 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11965 if test "x$ac_cv_func_shl_load" = xyes; then :
11966
11967 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11968
11969 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11970 else
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11972 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11973 if ${ac_cv_lib_dld_shl_load+:} false; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 ac_check_lib_save_LIBS=$LIBS
11977 LIBS="-ldld $LIBS"
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11980
11981 /* Override any GCC internal prototype to avoid an error.
11982 Use char because int might match the return type of a GCC
11983 builtin and then its argument prototype would still apply. */
11984 #ifdef __cplusplus
11985 extern "C"
11986 #endif
11987 char shl_load ();
11988 int
11989 main ()
11990 {
11991 return shl_load ();
11992 ;
11993 return 0;
11994 }
11995 _ACEOF
11996 if ac_fn_c_try_link "$LINENO"; then :
11997 ac_cv_lib_dld_shl_load=yes
11998 else
11999 ac_cv_lib_dld_shl_load=no
12000 fi
12001 rm -f core conftest.err conftest.$ac_objext \
12002 conftest$ac_exeext conftest.$ac_ext
12003 LIBS=$ac_check_lib_save_LIBS
12004 fi
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12006 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12007 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12008
12009 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12010
12011 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12012 LIBADD_SHL_LOAD="-ldld"
12013 fi
12014
12015 fi
12016
12017
12018
12019 case $host_os in
12020 darwin[1567].*)
12021 # We only want this for pre-Mac OS X 10.4.
12022 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12023 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12024
12025 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12026
12027 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12028 fi
12029
12030 ;;
12031 beos*)
12032 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12033 ;;
12034 cygwin* | mingw* | os2* | pw32*)
12035 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12036 "
12037 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12038 ac_have_decl=1
12039 else
12040 ac_have_decl=0
12041 fi
12042
12043 cat >>confdefs.h <<_ACEOF
12044 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12045 _ACEOF
12046
12047 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12048 ;;
12049 esac
12050
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12052 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12053 if ${ac_cv_lib_dld_dld_link+:} false; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 ac_check_lib_save_LIBS=$LIBS
12057 LIBS="-ldld $LIBS"
12058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12059 /* end confdefs.h. */
12060
12061 /* Override any GCC internal prototype to avoid an error.
12062 Use char because int might match the return type of a GCC
12063 builtin and then its argument prototype would still apply. */
12064 #ifdef __cplusplus
12065 extern "C"
12066 #endif
12067 char dld_link ();
12068 int
12069 main ()
12070 {
12071 return dld_link ();
12072 ;
12073 return 0;
12074 }
12075 _ACEOF
12076 if ac_fn_c_try_link "$LINENO"; then :
12077 ac_cv_lib_dld_dld_link=yes
12078 else
12079 ac_cv_lib_dld_dld_link=no
12080 fi
12081 rm -f core conftest.err conftest.$ac_objext \
12082 conftest$ac_exeext conftest.$ac_ext
12083 LIBS=$ac_check_lib_save_LIBS
12084 fi
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12086 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12087 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12088
12089 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12090
12091 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12092 fi
12093
12094
12095
12096
12097 LT_DLPREOPEN=
12098 if test -n "$LT_DLLOADERS"
12099 then
12100 for lt_loader in $LT_DLLOADERS; do
12101 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12102 done
12103
12104 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12105
12106 fi
12107
12108
12109 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12110
12111
12112 ac_ext=c
12113 ac_cpp='$CPP $CPPFLAGS'
12114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12117
12118
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12120 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12121 if ${lt_cv_sys_symbol_underscore+:} false; then :
12122 $as_echo_n "(cached) " >&6
12123 else
12124 lt_cv_sys_symbol_underscore=no
12125 cat > conftest.$ac_ext <<_LT_EOF
12126 void nm_test_func(){}
12127 int main(){nm_test_func;return 0;}
12128 _LT_EOF
12129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12130 (eval $ac_compile) 2>&5
12131 ac_status=$?
12132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12133 test $ac_status = 0; }; then
12134 # Now try to grab the symbols.
12135 ac_nlist=conftest.nm
12136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12137 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12138 ac_status=$?
12139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12140 test $ac_status = 0; } && test -s "$ac_nlist"; then
12141 # See whether the symbols have a leading underscore.
12142 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12143 lt_cv_sys_symbol_underscore=yes
12144 else
12145 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12146 :
12147 else
12148 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12149 fi
12150 fi
12151 else
12152 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12153 fi
12154 else
12155 echo "configure: failed program was:" >&5
12156 cat conftest.c >&5
12157 fi
12158 rm -rf conftest*
12159
12160 fi
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12162 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12163 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12164
12165
12166 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12167 if test x"$libltdl_cv_func_dlopen" = xyes ||
12168 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12170 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12171 if ${libltdl_cv_need_uscore+:} false; then :
12172 $as_echo_n "(cached) " >&6
12173 else
12174 libltdl_cv_need_uscore=unknown
12175 save_LIBS="$LIBS"
12176 LIBS="$LIBS $LIBADD_DLOPEN"
12177 if test "$cross_compiling" = yes; then :
12178 libltdl_cv_need_uscore=cross
12179 else
12180 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12181 lt_status=$lt_dlunknown
12182 cat > conftest.$ac_ext <<_LT_EOF
12183 #line $LINENO "configure"
12184 #include "confdefs.h"
12185
12186 #if HAVE_DLFCN_H
12187 #include <dlfcn.h>
12188 #endif
12189
12190 #include <stdio.h>
12191
12192 #ifdef RTLD_GLOBAL
12193 # define LT_DLGLOBAL RTLD_GLOBAL
12194 #else
12195 # ifdef DL_GLOBAL
12196 # define LT_DLGLOBAL DL_GLOBAL
12197 # else
12198 # define LT_DLGLOBAL 0
12199 # endif
12200 #endif
12201
12202 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12203 find out it does not work in some platform. */
12204 #ifndef LT_DLLAZY_OR_NOW
12205 # ifdef RTLD_LAZY
12206 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12207 # else
12208 # ifdef DL_LAZY
12209 # define LT_DLLAZY_OR_NOW DL_LAZY
12210 # else
12211 # ifdef RTLD_NOW
12212 # define LT_DLLAZY_OR_NOW RTLD_NOW
12213 # else
12214 # ifdef DL_NOW
12215 # define LT_DLLAZY_OR_NOW DL_NOW
12216 # else
12217 # define LT_DLLAZY_OR_NOW 0
12218 # endif
12219 # endif
12220 # endif
12221 # endif
12222 #endif
12223
12224 /* When -fvisbility=hidden is used, assume the code has been annotated
12225 correspondingly for the symbols needed. */
12226 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12227 int fnord () __attribute__((visibility("default")));
12228 #endif
12229
12230 int fnord () { return 42; }
12231 int main ()
12232 {
12233 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12234 int status = $lt_dlunknown;
12235
12236 if (self)
12237 {
12238 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12239 else
12240 {
12241 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12242 else puts (dlerror ());
12243 }
12244 /* dlclose (self); */
12245 }
12246 else
12247 puts (dlerror ());
12248
12249 return status;
12250 }
12251 _LT_EOF
12252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12253 (eval $ac_link) 2>&5
12254 ac_status=$?
12255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12256 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12257 (./conftest; exit; ) >&5 2>/dev/null
12258 lt_status=$?
12259 case x$lt_status in
12260 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12261 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12262 x$lt_dlunknown|x*) ;;
12263 esac
12264 else :
12265 # compilation failed
12266
12267 fi
12268 fi
12269 rm -fr conftest*
12270
12271 LIBS="$save_LIBS"
12272
12273 fi
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12275 $as_echo "$libltdl_cv_need_uscore" >&6; }
12276 fi
12277 fi
12278
12279 if test x"$libltdl_cv_need_uscore" = xyes; then
12280
12281 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12282
12283 fi
12284
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12286 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12287 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12288 $as_echo_n "(cached) " >&6
12289 else
12290 # PORTME does your system automatically load deplibs for dlopen?
12291 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12292 # For now, we just catch OSes we know something about -- in the
12293 # future, we'll try test this programmatically.
12294 lt_cv_sys_dlopen_deplibs=unknown
12295 case $host_os in
12296 aix3*|aix4.1.*|aix4.2.*)
12297 # Unknown whether this is true for these versions of AIX, but
12298 # we want this `case' here to explicitly catch those versions.
12299 lt_cv_sys_dlopen_deplibs=unknown
12300 ;;
12301 aix[4-9]*)
12302 lt_cv_sys_dlopen_deplibs=yes
12303 ;;
12304 amigaos*)
12305 case $host_cpu in
12306 powerpc)
12307 lt_cv_sys_dlopen_deplibs=no
12308 ;;
12309 esac
12310 ;;
12311 darwin*)
12312 # Assuming the user has installed a libdl from somewhere, this is true
12313 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12314 lt_cv_sys_dlopen_deplibs=yes
12315 ;;
12316 freebsd* | dragonfly*)
12317 lt_cv_sys_dlopen_deplibs=yes
12318 ;;
12319 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12320 # GNU and its variants, using gnu ld.so (Glibc)
12321 lt_cv_sys_dlopen_deplibs=yes
12322 ;;
12323 hpux10*|hpux11*)
12324 lt_cv_sys_dlopen_deplibs=yes
12325 ;;
12326 interix*)
12327 lt_cv_sys_dlopen_deplibs=yes
12328 ;;
12329 irix[12345]*|irix6.[01]*)
12330 # Catch all versions of IRIX before 6.2, and indicate that we don't
12331 # know how it worked for any of those versions.
12332 lt_cv_sys_dlopen_deplibs=unknown
12333 ;;
12334 irix*)
12335 # The case above catches anything before 6.2, and it's known that
12336 # at 6.2 and later dlopen does load deplibs.
12337 lt_cv_sys_dlopen_deplibs=yes
12338 ;;
12339 netbsd*)
12340 lt_cv_sys_dlopen_deplibs=yes
12341 ;;
12342 openbsd*)
12343 lt_cv_sys_dlopen_deplibs=yes
12344 ;;
12345 osf[1234]*)
12346 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12347 # it did *not* use an RPATH in a shared library to find objects the
12348 # library depends on, so we explicitly say `no'.
12349 lt_cv_sys_dlopen_deplibs=no
12350 ;;
12351 osf5.0|osf5.0a|osf5.1)
12352 # dlopen *does* load deplibs and with the right loader patch applied
12353 # it even uses RPATH in a shared library to search for shared objects
12354 # that the library depends on, but there's no easy way to know if that
12355 # patch is installed. Since this is the case, all we can really
12356 # say is unknown -- it depends on the patch being installed. If
12357 # it is, this changes to `yes'. Without it, it would be `no'.
12358 lt_cv_sys_dlopen_deplibs=unknown
12359 ;;
12360 osf*)
12361 # the two cases above should catch all versions of osf <= 5.1. Read
12362 # the comments above for what we know about them.
12363 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12364 # is used to find them so we can finally say `yes'.
12365 lt_cv_sys_dlopen_deplibs=yes
12366 ;;
12367 qnx*)
12368 lt_cv_sys_dlopen_deplibs=yes
12369 ;;
12370 solaris*)
12371 lt_cv_sys_dlopen_deplibs=yes
12372 ;;
12373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12374 libltdl_cv_sys_dlopen_deplibs=yes
12375 ;;
12376 esac
12377
12378 fi
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12380 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12381 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12382
12383 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12384
12385 fi
12386
12387 :
12388
12389 for ac_header in argz.h
12390 do :
12391 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12392 "
12393 if test "x$ac_cv_header_argz_h" = xyes; then :
12394 cat >>confdefs.h <<_ACEOF
12395 #define HAVE_ARGZ_H 1
12396 _ACEOF
12397
12398 fi
12399
12400 done
12401
12402
12403 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12404 # include <argz.h>
12405 #endif
12406 "
12407 if test "x$ac_cv_type_error_t" = xyes; then :
12408
12409 cat >>confdefs.h <<_ACEOF
12410 #define HAVE_ERROR_T 1
12411 _ACEOF
12412
12413
12414 else
12415
12416 $as_echo "#define error_t int" >>confdefs.h
12417
12418
12419 $as_echo "#define __error_t_defined 1" >>confdefs.h
12420
12421 fi
12422
12423
12424 ARGZ_H=
12425 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12426 argz_next argz_stringify
12427 do :
12428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12430 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12431 cat >>confdefs.h <<_ACEOF
12432 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12433 _ACEOF
12434
12435 else
12436 ARGZ_H=argz.h;
12437
12438 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12439
12440 fi
12441 done
12442
12443
12444 if test -z "$ARGZ_H"; then :
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12446 $as_echo_n "checking if argz actually works... " >&6; }
12447 if ${lt_cv_sys_argz_works+:} false; then :
12448 $as_echo_n "(cached) " >&6
12449 else
12450 case $host_os in #(
12451 *cygwin*)
12452 lt_cv_sys_argz_works=no
12453 if test "$cross_compiling" != no; then
12454 lt_cv_sys_argz_works="guessing no"
12455 else
12456 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12457 save_IFS=$IFS
12458 IFS=-.
12459 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12460 IFS=$save_IFS
12461 lt_os_major=${2-0}
12462 lt_os_minor=${3-0}
12463 lt_os_micro=${4-0}
12464 if test "$lt_os_major" -gt 1 \
12465 || { test "$lt_os_major" -eq 1 \
12466 && { test "$lt_os_minor" -gt 5 \
12467 || { test "$lt_os_minor" -eq 5 \
12468 && test "$lt_os_micro" -gt 24; }; }; }; then
12469 lt_cv_sys_argz_works=yes
12470 fi
12471 fi
12472 ;; #(
12473 *) lt_cv_sys_argz_works=yes ;;
12474 esac
12475 fi
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12477 $as_echo "$lt_cv_sys_argz_works" >&6; }
12478 if test "$lt_cv_sys_argz_works" = yes; then :
12479
12480 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12481
12482 else
12483 ARGZ_H=argz.h
12484
12485
12486 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12487
12488 fi
12489 fi
12490
12491
12492
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12494 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12495 if ${libltdl_cv_preloaded_symbols+:} false; then :
12496 $as_echo_n "(cached) " >&6
12497 else
12498 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12499 libltdl_cv_preloaded_symbols=yes
12500 else
12501 libltdl_cv_preloaded_symbols=no
12502 fi
12503
12504 fi
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12506 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12507 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12508
12509 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12510
12511 fi
12512
12513
12514
12515 # Set options
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528 # Check whether --with-included_ltdl was given.
12529 if test "${with_included_ltdl+set}" = set; then :
12530 withval=$with_included_ltdl;
12531 fi
12532
12533
12534 if test "x$with_included_ltdl" != xyes; then
12535 # We are not being forced to use the included libltdl sources, so
12536 # decide whether there is a useful installed version we can use.
12537 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12538
12539 "
12540 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12541 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12542 #include <ltdl.h>
12543 "
12544 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12546 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12547 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12548 $as_echo_n "(cached) " >&6
12549 else
12550 ac_check_lib_save_LIBS=$LIBS
12551 LIBS="-lltdl $LIBS"
12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h. */
12554
12555 /* Override any GCC internal prototype to avoid an error.
12556 Use char because int might match the return type of a GCC
12557 builtin and then its argument prototype would still apply. */
12558 #ifdef __cplusplus
12559 extern "C"
12560 #endif
12561 char lt_dladvise_preload ();
12562 int
12563 main ()
12564 {
12565 return lt_dladvise_preload ();
12566 ;
12567 return 0;
12568 }
12569 _ACEOF
12570 if ac_fn_c_try_link "$LINENO"; then :
12571 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12572 else
12573 ac_cv_lib_ltdl_lt_dladvise_preload=no
12574 fi
12575 rm -f core conftest.err conftest.$ac_objext \
12576 conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
12578 fi
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12580 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12581 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12582 with_included_ltdl=no
12583 else
12584 with_included_ltdl=yes
12585 fi
12586
12587 else
12588 with_included_ltdl=yes
12589 fi
12590
12591 else
12592 with_included_ltdl=yes
12593 fi
12594
12595
12596 fi
12597
12598
12599
12600
12601
12602
12603
12604
12605 # Check whether --with-ltdl_include was given.
12606 if test "${with_ltdl_include+set}" = set; then :
12607 withval=$with_ltdl_include;
12608 fi
12609
12610
12611 if test -n "$with_ltdl_include"; then
12612 if test -f "$with_ltdl_include/ltdl.h"; then :
12613 else
12614 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12615 fi
12616 else
12617 with_ltdl_include=no
12618 fi
12619
12620
12621 # Check whether --with-ltdl_lib was given.
12622 if test "${with_ltdl_lib+set}" = set; then :
12623 withval=$with_ltdl_lib;
12624 fi
12625
12626
12627 if test -n "$with_ltdl_lib"; then
12628 if test -f "$with_ltdl_lib/libltdl.la"; then :
12629 else
12630 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12631 fi
12632 else
12633 with_ltdl_lib=no
12634 fi
12635
12636 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12637 ,yes,no,no,)
12638 case $enable_ltdl_convenience in
12639 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12640 "") enable_ltdl_convenience=yes
12641 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12642 esac
12643 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12644 LTDLDEPS=$LIBLTDL
12645 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12646
12647
12648
12649
12650
12651 # For backwards non-gettext consistent compatibility...
12652 INCLTDL="$LTDLINCL"
12653
12654
12655 ;;
12656 ,no,no,no,)
12657 # If the included ltdl is not to be used, then use the
12658 # preinstalled libltdl we found.
12659
12660 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12661
12662 LIBLTDL=-lltdl
12663 LTDLDEPS=
12664 LTDLINCL=
12665 ;;
12666 ,no*,no,*)
12667 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12668 ;;
12669 *) with_included_ltdl=no
12670 LIBLTDL="-L$with_ltdl_lib -lltdl"
12671 LTDLDEPS=
12672 LTDLINCL="-I$with_ltdl_include"
12673 ;;
12674 esac
12675 INCLTDL="$LTDLINCL"
12676
12677 # Report our decision...
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12679 $as_echo_n "checking where to find libltdl headers... " >&6; }
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12681 $as_echo "$LTDLINCL" >&6; }
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12683 $as_echo_n "checking where to find libltdl library... " >&6; }
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12685 $as_echo "$LIBLTDL" >&6; }
12686
12687
12688
12689 # Check whether --enable-ltdl-install was given.
12690 if test "${enable_ltdl_install+set}" = set; then :
12691 enableval=$enable_ltdl_install;
12692 fi
12693
12694
12695 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12696 *yes*) ;;
12697 *) enable_ltdl_convenience=yes ;;
12698 esac
12699
12700 if test x"${enable_ltdl_install-no}" != xno; then
12701 INSTALL_LTDL_TRUE=
12702 INSTALL_LTDL_FALSE='#'
12703 else
12704 INSTALL_LTDL_TRUE='#'
12705 INSTALL_LTDL_FALSE=
12706 fi
12707
12708 if test x"${enable_ltdl_convenience-no}" != xno; then
12709 CONVENIENCE_LTDL_TRUE=
12710 CONVENIENCE_LTDL_FALSE='#'
12711 else
12712 CONVENIENCE_LTDL_TRUE='#'
12713 CONVENIENCE_LTDL_FALSE=
12714 fi
12715
12716
12717
12718 subdirs="$subdirs libltdl"
12719
12720
12721
12722
12723 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12724 # the user used. This is so that ltdl.h can pick up the parent projects
12725 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12726 # definitions required by ltdl.c.
12727 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12728
12729
12730
12731 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12732 do :
12733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12734 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12735 "
12736 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12737 cat >>confdefs.h <<_ACEOF
12738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12739 _ACEOF
12740
12741 fi
12742
12743 done
12744
12745
12746 for ac_func in closedir opendir readdir
12747 do :
12748 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12749 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12750 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12751 cat >>confdefs.h <<_ACEOF
12752 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12753 _ACEOF
12754
12755 else
12756
12757
12758 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12759
12760 fi
12761 done
12762
12763 for ac_func in strlcat strlcpy
12764 do :
12765 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12766 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12767 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12768 cat >>confdefs.h <<_ACEOF
12769 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12770 _ACEOF
12771
12772 else
12773
12774
12775 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12776
12777 fi
12778 done
12779
12780
12781
12782 cat >>confdefs.h <<_ACEOF
12783 #define LT_LIBEXT "$libext"
12784 _ACEOF
12785
12786
12787 name=
12788 eval "lt_libprefix=\"$libname_spec\""
12789
12790 cat >>confdefs.h <<_ACEOF
12791 #define LT_LIBPREFIX "$lt_libprefix"
12792 _ACEOF
12793
12794
12795 name=ltdl
12796 eval "LTDLOPEN=\"$libname_spec\""
12797
12798
12799
12800
12801
12802
12803
12804
12805 # Only expand once:
12806
12807
12808
12809
12810 for ac_prog in perl5 perl
12811 do
12812 # Extract the first word of "$ac_prog", so it can be a program name with args.
12813 set dummy $ac_prog; ac_word=$2
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12815 $as_echo_n "checking for $ac_word... " >&6; }
12816 if ${ac_cv_path_PERL+:} false; then :
12817 $as_echo_n "(cached) " >&6
12818 else
12819 case $PERL in
12820 [\\/]* | ?:[\\/]*)
12821 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12822 ;;
12823 *)
12824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825 for as_dir in $LPATH
12826 do
12827 IFS=$as_save_IFS
12828 test -z "$as_dir" && as_dir=.
12829 for ac_exec_ext in '' $ac_executable_extensions; do
12830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12831 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12833 break 2
12834 fi
12835 done
12836 done
12837 IFS=$as_save_IFS
12838
12839 ;;
12840 esac
12841 fi
12842 PERL=$ac_cv_path_PERL
12843 if test -n "$PERL"; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12845 $as_echo "$PERL" >&6; }
12846 else
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848 $as_echo "no" >&6; }
12849 fi
12850
12851
12852 test -n "$PERL" && break
12853 done
12854 test -n "$PERL" || PERL="perl"
12855
12856 for ac_prog in courier-config
12857 do
12858 # Extract the first word of "$ac_prog", so it can be a program name with args.
12859 set dummy $ac_prog; ac_word=$2
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12861 $as_echo_n "checking for $ac_word... " >&6; }
12862 if ${ac_cv_path_COURIERCONFIG+:} false; then :
12863 $as_echo_n "(cached) " >&6
12864 else
12865 case $COURIERCONFIG in
12866 [\\/]* | ?:[\\/]*)
12867 ac_cv_path_COURIERCONFIG="$COURIERCONFIG" # Let the user override the test with a path.
12868 ;;
12869 *)
12870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12871 for as_dir in $LPATH
12872 do
12873 IFS=$as_save_IFS
12874 test -z "$as_dir" && as_dir=.
12875 for ac_exec_ext in '' $ac_executable_extensions; do
12876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12877 ac_cv_path_COURIERCONFIG="$as_dir/$ac_word$ac_exec_ext"
12878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12879 break 2
12880 fi
12881 done
12882 done
12883 IFS=$as_save_IFS
12884
12885 ;;
12886 esac
12887 fi
12888 COURIERCONFIG=$ac_cv_path_COURIERCONFIG
12889 if test -n "$COURIERCONFIG"; then
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COURIERCONFIG" >&5
12891 $as_echo "$COURIERCONFIG" >&6; }
12892 else
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12894 $as_echo "no" >&6; }
12895 fi
12896
12897
12898 test -n "$COURIERCONFIG" && break
12899 done
12900 test -n "$COURIERCONFIG" || COURIERCONFIG="courier-config"
12901
12902
12903 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
12904 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12905 :
12906 else
12907 as_fn_error $? "Unable to find ltdl.h. Please install Libtool's ltdl library" "$LINENO" 5
12908 fi
12909
12910
12911
12912 if test "$PERL" = "perl"
12913 then
12914 as_fn_error $? "Perl is required" "$LINENO" 5
12915 fi
12916
12917 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12918 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12919 eval "prefix=$prefix"
12920 eval "exec_prefix=$exec_prefix"
12921 eval "sysconfdir=$sysconfdir"
12922 eval "bindir=$bindir"
12923 eval "sbindir=$sbindir"
12924 eval "localstatedir=$localstatedir"
12925 eval "libexecdir=$libexecdir"
12926 eval "datarootdir=$datarootdir"
12927 eval "datedir=$datadir"
12928
12929 for ac_prog in expect
12930 do
12931 # Extract the first word of "$ac_prog", so it can be a program name with args.
12932 set dummy $ac_prog; ac_word=$2
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12934 $as_echo_n "checking for $ac_word... " >&6; }
12935 if ${ac_cv_path_EXPECT+:} false; then :
12936 $as_echo_n "(cached) " >&6
12937 else
12938 case $EXPECT in
12939 [\\/]* | ?:[\\/]*)
12940 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
12941 ;;
12942 *)
12943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12944 for as_dir in $LPATH
12945 do
12946 IFS=$as_save_IFS
12947 test -z "$as_dir" && as_dir=.
12948 for ac_exec_ext in '' $ac_executable_extensions; do
12949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12950 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
12951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12952 break 2
12953 fi
12954 done
12955 done
12956 IFS=$as_save_IFS
12957
12958 ;;
12959 esac
12960 fi
12961 EXPECT=$ac_cv_path_EXPECT
12962 if test -n "$EXPECT"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
12964 $as_echo "$EXPECT" >&6; }
12965 else
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967 $as_echo "no" >&6; }
12968 fi
12969
12970
12971 test -n "$EXPECT" && break
12972 done
12973 test -n "$EXPECT" || EXPECT="expect"
12974
12975
12976 if test "$EXPECT" = "expect"
12977 then
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -----------------------------------------------------" >&5
12979 $as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expect not found - will not be able to change passwds" >&5
12981 $as_echo "$as_me: WARNING: expect not found - will not be able to change passwds" >&2;}
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: in webmail" >&5
12983 $as_echo "$as_me: WARNING: in webmail" >&2;}
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -----------------------------------------------------" >&5
12985 $as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
12986 sleep 5
12987 else
12988
12989 cat >>confdefs.h <<_ACEOF
12990 #define HAVE_EXPECT 1
12991 _ACEOF
12992
12993 fi
12994
12995 for ac_prog in passwd
12996 do
12997 # Extract the first word of "$ac_prog", so it can be a program name with args.
12998 set dummy $ac_prog; ac_word=$2
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000 $as_echo_n "checking for $ac_word... " >&6; }
13001 if ${ac_cv_path_PASSWD+:} false; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 case $PASSWD in
13005 [\\/]* | ?:[\\/]*)
13006 ac_cv_path_PASSWD="$PASSWD" # Let the user override the test with a path.
13007 ;;
13008 *)
13009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010 for as_dir in $LPATH
13011 do
13012 IFS=$as_save_IFS
13013 test -z "$as_dir" && as_dir=.
13014 for ac_exec_ext in '' $ac_executable_extensions; do
13015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13016 ac_cv_path_PASSWD="$as_dir/$ac_word$ac_exec_ext"
13017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13018 break 2
13019 fi
13020 done
13021 done
13022 IFS=$as_save_IFS
13023
13024 ;;
13025 esac
13026 fi
13027 PASSWD=$ac_cv_path_PASSWD
13028 if test -n "$PASSWD"; then
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PASSWD" >&5
13030 $as_echo "$PASSWD" >&6; }
13031 else
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033 $as_echo "no" >&6; }
13034 fi
13035
13036
13037 test -n "$PASSWD" && break
13038 done
13039 test -n "$PASSWD" || PASSWD="passwd"
13040
13041
13042
13043 if test "$GCC" = "yes"
13044 then
13045 CFLAGS="$CFLAGS -Wall"
13046 fi
13047
13048 CFLAGS="$CFLAGS -Ilibs -I${srcdir}/libs"
13049
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lm is needed for floor" >&5
13051 $as_echo_n "checking whether -lm is needed for floor... " >&6; }
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h. */
13054
13055 /* Override any GCC internal prototype to avoid an error.
13056 Use char because int might match the return type of a GCC
13057 builtin and then its argument prototype would still apply. */
13058 #ifdef __cplusplus
13059 extern "C"
13060 #endif
13061 char floor ();
13062 int
13063 main ()
13064 {
13065 return floor ();
13066 ;
13067 return 0;
13068 }
13069 _ACEOF
13070 if ac_fn_c_try_link "$LINENO"; then :
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072 $as_echo "no" >&6; }
13073 else
13074 LIBM="-lm"
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13076 $as_echo "yes" >&6; }
13077 fi
13078 rm -f core conftest.err conftest.$ac_objext \
13079 conftest$ac_exeext conftest.$ac_ext
13080
13081
13082 # Check whether --with-pkgconfdir was given.
13083 if test "${with_pkgconfdir+set}" = set; then :
13084 withval=$with_pkgconfdir; pkgconfdir="$withval"
13085 else
13086 pkgconfdir="$sysconfdir/authlib"
13087 fi
13088
13089
13090 saveLIBS="$LIBS"
13091 NETLIBS=""
13092 USENSL=no
13093
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13095 $as_echo_n "checking for socket in -lsocket... " >&6; }
13096 if ${ac_cv_lib_socket_socket+:} false; then :
13097 $as_echo_n "(cached) " >&6
13098 else
13099 ac_check_lib_save_LIBS=$LIBS
13100 LIBS="-lsocket $LIBS"
13101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13102 /* end confdefs.h. */
13103
13104 /* Override any GCC internal prototype to avoid an error.
13105 Use char because int might match the return type of a GCC
13106 builtin and then its argument prototype would still apply. */
13107 #ifdef __cplusplus
13108 extern "C"
13109 #endif
13110 char socket ();
13111 int
13112 main ()
13113 {
13114 return socket ();
13115 ;
13116 return 0;
13117 }
13118 _ACEOF
13119 if ac_fn_c_try_link "$LINENO"; then :
13120 ac_cv_lib_socket_socket=yes
13121 else
13122 ac_cv_lib_socket_socket=no
13123 fi
13124 rm -f core conftest.err conftest.$ac_objext \
13125 conftest$ac_exeext conftest.$ac_ext
13126 LIBS=$ac_check_lib_save_LIBS
13127 fi
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13129 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13130 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13131 result=yes
13132 else
13133 result=no
13134 fi
13135
13136 if test $result = yes; then
13137 NETLIBS="-lsocket"
13138 else
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13140 $as_echo_n "checking for socket in -lsocket... " >&6; }
13141 if ${ac_cv_lib_socket_socket+:} false; then :
13142 $as_echo_n "(cached) " >&6
13143 else
13144 ac_check_lib_save_LIBS=$LIBS
13145 LIBS="-lsocket -lnsl $LIBS"
13146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147 /* end confdefs.h. */
13148
13149 /* Override any GCC internal prototype to avoid an error.
13150 Use char because int might match the return type of a GCC
13151 builtin and then its argument prototype would still apply. */
13152 #ifdef __cplusplus
13153 extern "C"
13154 #endif
13155 char socket ();
13156 int
13157 main ()
13158 {
13159 return socket ();
13160 ;
13161 return 0;
13162 }
13163 _ACEOF
13164 if ac_fn_c_try_link "$LINENO"; then :
13165 ac_cv_lib_socket_socket=yes
13166 else
13167 ac_cv_lib_socket_socket=no
13168 fi
13169 rm -f core conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext conftest.$ac_ext
13171 LIBS=$ac_check_lib_save_LIBS
13172 fi
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13174 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13175 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13176 result=yes
13177 else
13178 result=no
13179 fi
13180
13181 if test $result = yes; then
13182 NETLIBS = "-lsocket -lnsl"
13183 USENSL=yes
13184 else
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13186 $as_echo_n "checking for connect in -lsocket... " >&6; }
13187 if ${ac_cv_lib_socket_connect+:} false; then :
13188 $as_echo_n "(cached) " >&6
13189 else
13190 ac_check_lib_save_LIBS=$LIBS
13191 LIBS="-lsocket $LIBS"
13192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h. */
13194
13195 /* Override any GCC internal prototype to avoid an error.
13196 Use char because int might match the return type of a GCC
13197 builtin and then its argument prototype would still apply. */
13198 #ifdef __cplusplus
13199 extern "C"
13200 #endif
13201 char connect ();
13202 int
13203 main ()
13204 {
13205 return connect ();
13206 ;
13207 return 0;
13208 }
13209 _ACEOF
13210 if ac_fn_c_try_link "$LINENO"; then :
13211 ac_cv_lib_socket_connect=yes
13212 else
13213 ac_cv_lib_socket_connect=no
13214 fi
13215 rm -f core conftest.err conftest.$ac_objext \
13216 conftest$ac_exeext conftest.$ac_ext
13217 LIBS=$ac_check_lib_save_LIBS
13218 fi
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13220 $as_echo "$ac_cv_lib_socket_connect" >&6; }
13221 if test "x$ac_cv_lib_socket_connect" = xyes; then :
13222 result=yes
13223 else
13224 result=no
13225 fi
13226
13227 if test $result = yes; then
13228 NETLIBS="-lsocket"
13229 else
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13231 $as_echo_n "checking for connect in -lsocket... " >&6; }
13232 if ${ac_cv_lib_socket_connect+:} false; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 ac_check_lib_save_LIBS=$LIBS
13236 LIBS="-lsocket -lnsl $LIBS"
13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h. */
13239
13240 /* Override any GCC internal prototype to avoid an error.
13241 Use char because int might match the return type of a GCC
13242 builtin and then its argument prototype would still apply. */
13243 #ifdef __cplusplus
13244 extern "C"
13245 #endif
13246 char connect ();
13247 int
13248 main ()
13249 {
13250 return connect ();
13251 ;
13252 return 0;
13253 }
13254 _ACEOF
13255 if ac_fn_c_try_link "$LINENO"; then :
13256 ac_cv_lib_socket_connect=yes
13257 else
13258 ac_cv_lib_socket_connect=no
13259 fi
13260 rm -f core conftest.err conftest.$ac_objext \
13261 conftest$ac_exeext conftest.$ac_ext
13262 LIBS=$ac_check_lib_save_LIBS
13263 fi
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13265 $as_echo "$ac_cv_lib_socket_connect" >&6; }
13266 if test "x$ac_cv_lib_socket_connect" = xyes; then :
13267 result=yes
13268 else
13269 result=no
13270 fi
13271
13272 if test $result = yes; then
13273 NETLIBS="-lsocket -lnsl"
13274 USENSL=yes
13275 fi
13276 fi
13277 fi
13278 fi
13279
13280 if test $USENSL != yes; then
13281 LIBS="$LIBS $NETLIBS"
13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h. */
13284
13285 /* Override any GCC internal prototype to avoid an error.
13286 Use char because int might match the return type of a GCC
13287 builtin and then its argument prototype would still apply. */
13288 #ifdef __cplusplus
13289 extern "C"
13290 #endif
13291 char inet_addr ();
13292 int
13293 main ()
13294 {
13295 return inet_addr ();
13296 ;
13297 return 0;
13298 }
13299 _ACEOF
13300 if ac_fn_c_try_link "$LINENO"; then :
13301 :
13302 else
13303
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
13305 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
13306 if ${ac_cv_lib_nsl_inet_addr+:} false; then :
13307 $as_echo_n "(cached) " >&6
13308 else
13309 ac_check_lib_save_LIBS=$LIBS
13310 LIBS="-lnsl $LIBS"
13311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h. */
13313
13314 /* Override any GCC internal prototype to avoid an error.
13315 Use char because int might match the return type of a GCC
13316 builtin and then its argument prototype would still apply. */
13317 #ifdef __cplusplus
13318 extern "C"
13319 #endif
13320 char inet_addr ();
13321 int
13322 main ()
13323 {
13324 return inet_addr ();
13325 ;
13326 return 0;
13327 }
13328 _ACEOF
13329 if ac_fn_c_try_link "$LINENO"; then :
13330 ac_cv_lib_nsl_inet_addr=yes
13331 else
13332 ac_cv_lib_nsl_inet_addr=no
13333 fi
13334 rm -f core conftest.err conftest.$ac_objext \
13335 conftest$ac_exeext conftest.$ac_ext
13336 LIBS=$ac_check_lib_save_LIBS
13337 fi
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
13339 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
13340 if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
13341 result=yes
13342 else
13343 result=no
13344 fi
13345
13346 if test $result = yes; then
13347 NETLIBS="$NETLIBS -lnsl"
13348 fi
13349
13350 fi
13351 rm -f core conftest.err conftest.$ac_objext \
13352 conftest$ac_exeext conftest.$ac_ext
13353 fi
13354
13355 LIBS="$saveLIBS"
13356
13357
13358
13359
13360
13361
13362
13363 # Check whether --with-db was given.
13364 if test "${with_db+set}" = set; then :
13365 withval=$with_db; db="$withval"
13366 else
13367 needs_withdb=1
13368 fi
13369
13370
13371 case "$db" in
13372 gdbm)
13373 ;;
13374 db)
13375 ;;
13376 "")
13377 ;;
13378 *)
13379 as_fn_error $? "Invalid --with-db option." "$LINENO" 5
13380 ;;
13381 esac
13382
13383 saveLIBS="$LIBS"
13384
13385 if test "$db" != "db"
13386 then
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
13388 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
13389 if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
13390 $as_echo_n "(cached) " >&6
13391 else
13392 ac_check_lib_save_LIBS=$LIBS
13393 LIBS="-lgdbm $LIBS"
13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395 /* end confdefs.h. */
13396
13397 /* Override any GCC internal prototype to avoid an error.
13398 Use char because int might match the return type of a GCC
13399 builtin and then its argument prototype would still apply. */
13400 #ifdef __cplusplus
13401 extern "C"
13402 #endif
13403 char gdbm_open ();
13404 int
13405 main ()
13406 {
13407 return gdbm_open ();
13408 ;
13409 return 0;
13410 }
13411 _ACEOF
13412 if ac_fn_c_try_link "$LINENO"; then :
13413 ac_cv_lib_gdbm_gdbm_open=yes
13414 else
13415 ac_cv_lib_gdbm_gdbm_open=no
13416 fi
13417 rm -f core conftest.err conftest.$ac_objext \
13418 conftest$ac_exeext conftest.$ac_ext
13419 LIBS=$ac_check_lib_save_LIBS
13420 fi
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
13422 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
13423 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
13424 LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS"
13425 fi
13426
13427 ac_fn_c_check_func "$LINENO" "gdbm_open" "ac_cv_func_gdbm_open"
13428 if test "x$ac_cv_func_gdbm_open" = xyes; then :
13429 HAVE_GDBM=y
13430 fi
13431
13432 fi
13433
13434 LIBS="$saveLIBS"
13435
13436 if test "$db" != "gdbm"
13437 then
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -ldb" >&5
13439 $as_echo_n "checking for dbopen in -ldb... " >&6; }
13440 if ${ac_cv_lib_db_dbopen+:} false; then :
13441 $as_echo_n "(cached) " >&6
13442 else
13443 ac_check_lib_save_LIBS=$LIBS
13444 LIBS="-ldb $LIBS"
13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13447
13448 /* Override any GCC internal prototype to avoid an error.
13449 Use char because int might match the return type of a GCC
13450 builtin and then its argument prototype would still apply. */
13451 #ifdef __cplusplus
13452 extern "C"
13453 #endif
13454 char dbopen ();
13455 int
13456 main ()
13457 {
13458 return dbopen ();
13459 ;
13460 return 0;
13461 }
13462 _ACEOF
13463 if ac_fn_c_try_link "$LINENO"; then :
13464 ac_cv_lib_db_dbopen=yes
13465 else
13466 ac_cv_lib_db_dbopen=no
13467 fi
13468 rm -f core conftest.err conftest.$ac_objext \
13469 conftest$ac_exeext conftest.$ac_ext
13470 LIBS=$ac_check_lib_save_LIBS
13471 fi
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_dbopen" >&5
13473 $as_echo "$ac_cv_lib_db_dbopen" >&6; }
13474 if test "x$ac_cv_lib_db_dbopen" = xyes; then :
13475 LIBDB=-ldb ; LIBS="-ldb $LIBS"
13476 else
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -ldb" >&5
13478 $as_echo_n "checking for db_open in -ldb... " >&6; }
13479 if ${ac_cv_lib_db_db_open+:} false; then :
13480 $as_echo_n "(cached) " >&6
13481 else
13482 ac_check_lib_save_LIBS=$LIBS
13483 LIBS="-ldb $LIBS"
13484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13485 /* end confdefs.h. */
13486
13487 /* Override any GCC internal prototype to avoid an error.
13488 Use char because int might match the return type of a GCC
13489 builtin and then its argument prototype would still apply. */
13490 #ifdef __cplusplus
13491 extern "C"
13492 #endif
13493 char db_open ();
13494 int
13495 main ()
13496 {
13497 return db_open ();
13498 ;
13499 return 0;
13500 }
13501 _ACEOF
13502 if ac_fn_c_try_link "$LINENO"; then :
13503 ac_cv_lib_db_db_open=yes
13504 else
13505 ac_cv_lib_db_db_open=no
13506 fi
13507 rm -f core conftest.err conftest.$ac_objext \
13508 conftest$ac_exeext conftest.$ac_ext
13509 LIBS=$ac_check_lib_save_LIBS
13510 fi
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_open" >&5
13512 $as_echo "$ac_cv_lib_db_db_open" >&6; }
13513 if test "x$ac_cv_lib_db_db_open" = xyes; then :
13514 LIBDB=-ldb ; LIBS="-ldb $LIBS"
13515 else
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb" >&5
13517 $as_echo_n "checking for db_env_create in -ldb... " >&6; }
13518 if ${ac_cv_lib_db_db_env_create+:} false; then :
13519 $as_echo_n "(cached) " >&6
13520 else
13521 ac_check_lib_save_LIBS=$LIBS
13522 LIBS="-ldb $LIBS"
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13525
13526 /* Override any GCC internal prototype to avoid an error.
13527 Use char because int might match the return type of a GCC
13528 builtin and then its argument prototype would still apply. */
13529 #ifdef __cplusplus
13530 extern "C"
13531 #endif
13532 char db_env_create ();
13533 int
13534 main ()
13535 {
13536 return db_env_create ();
13537 ;
13538 return 0;
13539 }
13540 _ACEOF
13541 if ac_fn_c_try_link "$LINENO"; then :
13542 ac_cv_lib_db_db_env_create=yes
13543 else
13544 ac_cv_lib_db_db_env_create=no
13545 fi
13546 rm -f core conftest.err conftest.$ac_objext \
13547 conftest$ac_exeext conftest.$ac_ext
13548 LIBS=$ac_check_lib_save_LIBS
13549 fi
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_env_create" >&5
13551 $as_echo "$ac_cv_lib_db_db_env_create" >&6; }
13552 if test "x$ac_cv_lib_db_db_env_create" = xyes; then :
13553 LIBDB=-ldb; LIBS="-ldb $LIBS"
13554 fi
13555
13556
13557 fi
13558
13559 fi
13560
13561
13562 ac_fn_c_check_func "$LINENO" "dbopen" "ac_cv_func_dbopen"
13563 if test "x$ac_cv_func_dbopen" = xyes; then :
13564 HAVE_BDB=1
13565 fi
13566
13567 ac_fn_c_check_func "$LINENO" "db_open" "ac_cv_func_db_open"
13568 if test "x$ac_cv_func_db_open" = xyes; then :
13569 HAVE_BDB=1
13570 fi
13571
13572 ac_fn_c_check_func "$LINENO" "db_env_create" "ac_cv_func_db_env_create"
13573 if test "x$ac_cv_func_db_env_create" = xyes; then :
13574 HAVE_BDB=1
13575 fi
13576
13577 fi
13578
13579 LIBS="$saveLIBS"
13580
13581 if test "$HAVE_GDBM$HAVE_BDB" = ""
13582 then
13583 as_fn_error $? "Cannot find either the gdbm or the db library." "$LINENO" 5
13584 fi
13585
13586 USE_GDBM=0
13587 USE_DB=0
13588
13589 if test "$HAVE_GDBM" = "y"
13590 then
13591 LIBDB=""
13592 USE_GDBM=1
13593 if test "$needs_withdb" = 1
13594 then
13595 ac_configure_args="$ac_configure_args --with-db=gdbm"
13596 fi
13597 dblibrary=libs/gdbmobj/libgdbmobj.la
13598 else
13599 LIBGDBM=""
13600 USE_DB=1
13601 if test "$needs_withdb" = 1
13602 then
13603 ac_configure_args="$ac_configure_args --with-db=db"
13604 fi
13605 dblibrary=libs/bdbobj/libbdbobj.la
13606 fi
13607
13608
13609
13610
13611
13612 # Check whether --with-authuserdb was given.
13613 if test "${with_authuserdb+set}" = set; then :
13614 withval=$with_authuserdb; doauthuserdb="$withval"
13615 else
13616 doauthuserdb="no"
13617 if test -d ${srcdir}/userdb
13618 then
13619 doauthuserdb="yes"
13620 fi
13621 fi
13622
13623
13624 if test "$doauthuserdb" = "no"
13625 then
13626 AUTHUSERDB=""
13627 else
13628 AUTHUSERDB="authuserdb"
13629 LIBAUTHUSERDB="libauthuserdb.la"
13630
13631 fi
13632
13633
13634 # Check whether --with-makedatprog was given.
13635 if test "${with_makedatprog+set}" = set; then :
13636 withval=$with_makedatprog; :
13637 else
13638
13639 ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog"
13640
13641 fi
13642
13643
13644 cat >dbobj.config <<EOF
13645 LIBDB=$LIBDB
13646 LIBGDBM=$LIBGDBM
13647 dblibrary=$dblibrary
13648 EOF
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658 userdb="$pkgconfdir/userdb"
13659
13660 # Check whether --with-userdb was given.
13661 if test "${with_userdb+set}" = set; then :
13662 withval=$with_userdb; userdb="$withval"
13663 else
13664 ac_configure_args="$ac_configure_args '--with-userdb=$userdb'"
13665 fi
13666
13667
13668
13669 cat >>confdefs.h <<_ACEOF
13670 #define USERDB "$userdb"
13671 _ACEOF
13672
13673
13674
13675 for ac_header in stdio.h
13676 do :
13677 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
13678 if test "x$ac_cv_header_stdio_h" = xyes; then :
13679 cat >>confdefs.h <<_ACEOF
13680 #define HAVE_STDIO_H 1
13681 _ACEOF
13682
13683 fi
13684
13685 done
13686
13687
13688
13689
13690
13691
13692 # Check whether --with-authpam was given.
13693 if test "${with_authpam+set}" = set; then :
13694 withval=$with_authpam; doauthpam="$withval"
13695 fi
13696
13697
13698 for ac_header in security/pam_appl.h Pam/pam_appl.h
13699 do :
13700 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13701 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13702 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13703 cat >>confdefs.h <<_ACEOF
13704 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13705 _ACEOF
13706
13707 fi
13708
13709 done
13710
13711 if test "$doauthpam" = "no"
13712 then
13713 LIBDL=""
13714 else
13715 saveLIBS="$LIBS"
13716 LIBDL=""
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13718 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13719 if ${ac_cv_lib_dl_dlopen+:} false; then :
13720 $as_echo_n "(cached) " >&6
13721 else
13722 ac_check_lib_save_LIBS=$LIBS
13723 LIBS="-ldl $LIBS"
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13726
13727 /* Override any GCC internal prototype to avoid an error.
13728 Use char because int might match the return type of a GCC
13729 builtin and then its argument prototype would still apply. */
13730 #ifdef __cplusplus
13731 extern "C"
13732 #endif
13733 char dlopen ();
13734 int
13735 main ()
13736 {
13737 return dlopen ();
13738 ;
13739 return 0;
13740 }
13741 _ACEOF
13742 if ac_fn_c_try_link "$LINENO"; then :
13743 ac_cv_lib_dl_dlopen=yes
13744 else
13745 ac_cv_lib_dl_dlopen=no
13746 fi
13747 rm -f core conftest.err conftest.$ac_objext \
13748 conftest$ac_exeext conftest.$ac_ext
13749 LIBS=$ac_check_lib_save_LIBS
13750 fi
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13752 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13753 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13754 LIBDL="-ldl"
13755 fi
13756
13757 LIBS="$saveLIBS"
13758
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
13760 $as_echo_n "checking for pam_start in -lpam... " >&6; }
13761 if ${ac_cv_lib_pam_pam_start+:} false; then :
13762 $as_echo_n "(cached) " >&6
13763 else
13764 ac_check_lib_save_LIBS=$LIBS
13765 LIBS="-lpam $LIBDL $LIBS"
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h. */
13768
13769 /* Override any GCC internal prototype to avoid an error.
13770 Use char because int might match the return type of a GCC
13771 builtin and then its argument prototype would still apply. */
13772 #ifdef __cplusplus
13773 extern "C"
13774 #endif
13775 char pam_start ();
13776 int
13777 main ()
13778 {
13779 return pam_start ();
13780 ;
13781 return 0;
13782 }
13783 _ACEOF
13784 if ac_fn_c_try_link "$LINENO"; then :
13785 ac_cv_lib_pam_pam_start=yes
13786 else
13787 ac_cv_lib_pam_pam_start=no
13788 fi
13789 rm -f core conftest.err conftest.$ac_objext \
13790 conftest$ac_exeext conftest.$ac_ext
13791 LIBS=$ac_check_lib_save_LIBS
13792 fi
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
13794 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
13795 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
13796 HAVE_PAM=1
13797 LIBS="-lpam $LIBDL $LIBS"
13798 for ac_func in pam_setcred
13799 do :
13800 ac_fn_c_check_func "$LINENO" "pam_setcred" "ac_cv_func_pam_setcred"
13801 if test "x$ac_cv_func_pam_setcred" = xyes; then :
13802 cat >>confdefs.h <<_ACEOF
13803 #define HAVE_PAM_SETCRED 1
13804 _ACEOF
13805
13806 fi
13807 done
13808
13809 else
13810 HAVE_PAM=0
13811 fi
13812
13813 LIBS="$saveLIBS"
13814 fi
13815
13816
13817 LIBAUTHPAM=""
13818 if test "$HAVE_PAM" = 1
13819 then
13820 LIBAUTHPAM=libauthpam.la
13821 fi
13822
13823
13824 # Check whether --with-authpam-libraries was given.
13825 if test "${with_authpam_libraries+set}" = set; then :
13826 withval=$with_authpam_libraries; authpamcrypt="$withval"
13827 fi
13828
13829
13830 AUTHPAMCRYPT="$authpamcrypt"
13831
13832
13833
13834
13835
13836
13837
13838 # Check whether --with-authldap was given.
13839 if test "${with_authldap+set}" = set; then :
13840 withval=$with_authldap; doauthldap="$withval"
13841 else
13842 doauthldap="yes"
13843 fi
13844
13845
13846 for ac_header in lber.h
13847 do :
13848 ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
13849 if test "x$ac_cv_header_lber_h" = xyes; then :
13850 cat >>confdefs.h <<_ACEOF
13851 #define HAVE_LBER_H 1
13852 _ACEOF
13853
13854 fi
13855
13856 done
13857
13858 for ac_header in ldap.h
13859 do :
13860 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
13861 if test "x$ac_cv_header_ldap_h" = xyes; then :
13862 cat >>confdefs.h <<_ACEOF
13863 #define HAVE_LDAP_H 1
13864 _ACEOF
13865
13866 fi
13867
13868 done
13869
13870 for ac_header in netinet/in.h
13871 do :
13872 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13873 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
13874 cat >>confdefs.h <<_ACEOF
13875 #define HAVE_NETINET_IN_H 1
13876 _ACEOF
13877
13878 fi
13879
13880 done
13881
13882
13883 if test "$doauthldap" = "no"
13884 then
13885 HAVE_LDAP=0
13886 else
13887 saveLIBS="$LIBS"
13888 LIBS="$NETLIBS $LIBS"
13889 LDAPLIBS=""
13890
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lresolv is needed for res_query" >&5
13892 $as_echo_n "checking whether -lresolv is needed for res_query... " >&6; }
13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h. */
13895
13896 #include <sys/types.h>
13897 #if HAVE_NETINET_IN_H
13898 #include <netinet/in.h>
13899 #endif
13900 #include <resolv.h>
13901
13902 void (*func)()= (void (*)())res_query;
13903
13904 int
13905 main ()
13906 {
13907 (*func)();
13908 ;
13909 return 0;
13910 }
13911 _ACEOF
13912 if ac_fn_c_try_link "$LINENO"; then :
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914 $as_echo "no" >&6; }
13915 else
13916
13917 LIBS="-lresolv $LIBS"
13918
13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h. */
13921
13922 #include <sys/types.h>
13923 #if HAVE_NETINET_IN_H
13924 #include <netinet/in.h>
13925 #endif
13926 #include <resolv.h>
13927
13928 void (*func)()= (void (*)())res_query;
13929
13930 int
13931 main ()
13932 {
13933 (*func)();
13934 ;
13935 return 0;
13936 }
13937 _ACEOF
13938 if ac_fn_c_try_link "$LINENO"; then :
13939
13940 LDAPLIBS="-lresolv $LDAPLIBS"
13941 HAVE_LDAP=1
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13943 $as_echo "yes" >&6; }
13944
13945 else
13946 as_fn_error $? "Cannot find function res_query" "$LINENO" 5
13947 fi
13948 rm -f core conftest.err conftest.$ac_objext \
13949 conftest$ac_exeext conftest.$ac_ext
13950
13951 fi
13952 rm -f core conftest.err conftest.$ac_objext \
13953 conftest$ac_exeext conftest.$ac_ext
13954
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_scanf in -llber" >&5
13956 $as_echo_n "checking for ber_scanf in -llber... " >&6; }
13957 if ${ac_cv_lib_lber_ber_scanf+:} false; then :
13958 $as_echo_n "(cached) " >&6
13959 else
13960 ac_check_lib_save_LIBS=$LIBS
13961 LIBS="-llber $LIBS"
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13964
13965 /* Override any GCC internal prototype to avoid an error.
13966 Use char because int might match the return type of a GCC
13967 builtin and then its argument prototype would still apply. */
13968 #ifdef __cplusplus
13969 extern "C"
13970 #endif
13971 char ber_scanf ();
13972 int
13973 main ()
13974 {
13975 return ber_scanf ();
13976 ;
13977 return 0;
13978 }
13979 _ACEOF
13980 if ac_fn_c_try_link "$LINENO"; then :
13981 ac_cv_lib_lber_ber_scanf=yes
13982 else
13983 ac_cv_lib_lber_ber_scanf=no
13984 fi
13985 rm -f core conftest.err conftest.$ac_objext \
13986 conftest$ac_exeext conftest.$ac_ext
13987 LIBS=$ac_check_lib_save_LIBS
13988 fi
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_scanf" >&5
13990 $as_echo "$ac_cv_lib_lber_ber_scanf" >&6; }
13991 if test "x$ac_cv_lib_lber_ber_scanf" = xyes; then :
13992 LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS"
13993 fi
13994
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_open in -lldap" >&5
13996 $as_echo_n "checking for ldap_open in -lldap... " >&6; }
13997 if ${ac_cv_lib_ldap_ldap_open+:} false; then :
13998 $as_echo_n "(cached) " >&6
13999 else
14000 ac_check_lib_save_LIBS=$LIBS
14001 LIBS="-lldap $LIBS"
14002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14003 /* end confdefs.h. */
14004
14005 /* Override any GCC internal prototype to avoid an error.
14006 Use char because int might match the return type of a GCC
14007 builtin and then its argument prototype would still apply. */
14008 #ifdef __cplusplus
14009 extern "C"
14010 #endif
14011 char ldap_open ();
14012 int
14013 main ()
14014 {
14015 return ldap_open ();
14016 ;
14017 return 0;
14018 }
14019 _ACEOF
14020 if ac_fn_c_try_link "$LINENO"; then :
14021 ac_cv_lib_ldap_ldap_open=yes
14022 else
14023 ac_cv_lib_ldap_ldap_open=no
14024 fi
14025 rm -f core conftest.err conftest.$ac_objext \
14026 conftest$ac_exeext conftest.$ac_ext
14027 LIBS=$ac_check_lib_save_LIBS
14028 fi
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_open" >&5
14030 $as_echo "$ac_cv_lib_ldap_ldap_open" >&6; }
14031 if test "x$ac_cv_lib_ldap_ldap_open" = xyes; then :
14032 LDAPLIBS="-lldap $LDAPLIBS" ; LIBS="-lldap $LIBS"
14033 fi
14034
14035 ac_fn_c_check_func "$LINENO" "ldap_search_st" "ac_cv_func_ldap_search_st"
14036 if test "x$ac_cv_func_ldap_search_st" = xyes; then :
14037 HAVE_LDAP=1
14038 else
14039 HAVE_LDAP=0
14040 fi
14041
14042 ac_fn_c_check_func "$LINENO" "ldap_start_tls_s" "ac_cv_func_ldap_start_tls_s"
14043 if test "x$ac_cv_func_ldap_start_tls_s" = xyes; then :
14044 HAVE_LDAP_TLS=1
14045 else
14046 HAVE_LDAP_TLS=0
14047 fi
14048
14049 ac_fn_c_check_func "$LINENO" "ldap_result2error" "ac_cv_func_ldap_result2error"
14050 if test "x$ac_cv_func_ldap_result2error" = xyes; then :
14051 HAVE_LDAP_RESULT2ERROR=1
14052 else
14053 HAVE_LDAP_RESULT2ERROR=0
14054 fi
14055
14056 ac_fn_c_check_func "$LINENO" "ldap_parse_result" "ac_cv_func_ldap_parse_result"
14057 if test "x$ac_cv_func_ldap_parse_result" = xyes; then :
14058 HAVE_LDAP_PARSE_RESULT=1
14059 else
14060 HAVE_LDAP_PARSE_RESULT=0
14061 fi
14062
14063 LIBS="$saveLIBS"
14064 fi
14065
14066
14067 # Check whether --with-authldaprc was given.
14068 if test "${with_authldaprc+set}" = set; then :
14069 withval=$with_authldaprc; authldaprc="$withval"
14070 else
14071 authldaprc="$pkgconfdir/authldaprc"
14072 fi
14073
14074
14075
14076 LIBAUTHLDAP=""
14077 if test "$HAVE_LDAP" = 1
14078 then
14079 LIBAUTHLDAP="libauthldap.la"
14080 else
14081 authldaprc=""
14082 fi
14083
14084
14085
14086 if test "$HAVE_LDAP" = 1; then
14087 HAVE_LDAP_TRUE=
14088 HAVE_LDAP_FALSE='#'
14089 else
14090 HAVE_LDAP_TRUE='#'
14091 HAVE_LDAP_FALSE=
14092 fi
14093
14094
14095 cat >>confdefs.h <<_ACEOF
14096 #define HAVE_LDAP_TLS $HAVE_LDAP_TLS
14097 _ACEOF
14098
14099
14100 cat >>confdefs.h <<_ACEOF
14101 #define HAVE_LDAP_RESULT2ERROR $HAVE_LDAP_RESULT2ERROR
14102 _ACEOF
14103
14104
14105 cat >>confdefs.h <<_ACEOF
14106 #define HAVE_LDAP_PARSE_RESULT $HAVE_LDAP_PARSE_RESULT
14107 _ACEOF
14108
14109
14110
14111
14112
14113 # Check whether --with-authpwd was given.
14114 if test "${with_authpwd+set}" = set; then :
14115 withval=$with_authpwd; doauthpwd="$withval"
14116 else
14117 doauthpwd="yes"
14118 test "$HAVE_PAM" = 1 && doauthpwd="no"
14119 test "$HAVE_LDAP" = 1 && doauthpwd="no"
14120
14121 fi
14122
14123
14124 HAVE_PWD=1
14125 if test "$doauthpwd" = "no"
14126 then
14127 HAVE_PWD=0
14128 fi
14129 for ac_func in endpwent
14130 do :
14131 ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent"
14132 if test "x$ac_cv_func_endpwent" = xyes; then :
14133 cat >>confdefs.h <<_ACEOF
14134 #define HAVE_ENDPWENT 1
14135 _ACEOF
14136
14137 fi
14138 done
14139
14140
14141
14142
14143
14144
14145 # Check whether --with-authshadow was given.
14146 if test "${with_authshadow+set}" = set; then :
14147 withval=$with_authshadow; doauthshadow="$withval"
14148 else
14149 doauthshadow="yes"
14150 test "$HAVE_PAM" = 1 && doauthshadow="no"
14151 test "$HAVE_LDAP" = 1 && doauthshadow="no"
14152 fi
14153
14154
14155 for ac_header in shadow.h
14156 do :
14157 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
14158 if test "x$ac_cv_header_shadow_h" = xyes; then :
14159 cat >>confdefs.h <<_ACEOF
14160 #define HAVE_SHADOW_H 1
14161 _ACEOF
14162
14163 fi
14164
14165 done
14166
14167 saveLIBS="$LIBS"
14168 SHADOWLIBS=""
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspent in -lshadow" >&5
14170 $as_echo_n "checking for getspent in -lshadow... " >&6; }
14171 if ${ac_cv_lib_shadow_getspent+:} false; then :
14172 $as_echo_n "(cached) " >&6
14173 else
14174 ac_check_lib_save_LIBS=$LIBS
14175 LIBS="-lshadow $LIBS"
14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177 /* end confdefs.h. */
14178
14179 /* Override any GCC internal prototype to avoid an error.
14180 Use char because int might match the return type of a GCC
14181 builtin and then its argument prototype would still apply. */
14182 #ifdef __cplusplus
14183 extern "C"
14184 #endif
14185 char getspent ();
14186 int
14187 main ()
14188 {
14189 return getspent ();
14190 ;
14191 return 0;
14192 }
14193 _ACEOF
14194 if ac_fn_c_try_link "$LINENO"; then :
14195 ac_cv_lib_shadow_getspent=yes
14196 else
14197 ac_cv_lib_shadow_getspent=no
14198 fi
14199 rm -f core conftest.err conftest.$ac_objext \
14200 conftest$ac_exeext conftest.$ac_ext
14201 LIBS=$ac_check_lib_save_LIBS
14202 fi
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shadow_getspent" >&5
14204 $as_echo "$ac_cv_lib_shadow_getspent" >&6; }
14205 if test "x$ac_cv_lib_shadow_getspent" = xyes; then :
14206 SHADOWLIBS="-lshadow" ; LIBS="-lshadow $LIBS"
14207 fi
14208
14209 for ac_func in endspent getspent
14210 do :
14211 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14212 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14213 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14214 cat >>confdefs.h <<_ACEOF
14215 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14216 _ACEOF
14217
14218 fi
14219 done
14220
14221 LIBS="$saveLIBS"
14222
14223 if test "$doauthshadow" = "no"
14224 then
14225 HAVE_SHADOW=0
14226 else
14227
14228 saveLIBS="$LIBS"
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspent in -lshadow" >&5
14230 $as_echo_n "checking for getspent in -lshadow... " >&6; }
14231 if ${ac_cv_lib_shadow_getspent+:} false; then :
14232 $as_echo_n "(cached) " >&6
14233 else
14234 ac_check_lib_save_LIBS=$LIBS
14235 LIBS="-lshadow $LIBS"
14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237 /* end confdefs.h. */
14238
14239 /* Override any GCC internal prototype to avoid an error.
14240 Use char because int might match the return type of a GCC
14241 builtin and then its argument prototype would still apply. */
14242 #ifdef __cplusplus
14243 extern "C"
14244 #endif
14245 char getspent ();
14246 int
14247 main ()
14248 {
14249 return getspent ();
14250 ;
14251 return 0;
14252 }
14253 _ACEOF
14254 if ac_fn_c_try_link "$LINENO"; then :
14255 ac_cv_lib_shadow_getspent=yes
14256 else
14257 ac_cv_lib_shadow_getspent=no
14258 fi
14259 rm -f core conftest.err conftest.$ac_objext \
14260 conftest$ac_exeext conftest.$ac_ext
14261 LIBS=$ac_check_lib_save_LIBS
14262 fi
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shadow_getspent" >&5
14264 $as_echo "$ac_cv_lib_shadow_getspent" >&6; }
14265 if test "x$ac_cv_lib_shadow_getspent" = xyes; then :
14266 cat >>confdefs.h <<_ACEOF
14267 #define HAVE_LIBSHADOW 1
14268 _ACEOF
14269
14270 LIBS="-lshadow $LIBS"
14271
14272 fi
14273
14274 ac_fn_c_check_func "$LINENO" "getspent" "ac_cv_func_getspent"
14275 if test "x$ac_cv_func_getspent" = xyes; then :
14276 HAVE_SHADOW=1
14277 else
14278 HAVE_SHADOW=0
14279 fi
14280
14281 LIBS="$saveLIBS"
14282 fi
14283
14284 LIBAUTHSHADOW=""
14285 if test "$HAVE_SHADOW" = 1
14286 then
14287 LIBAUTHSHADOW="libauthshadow.la"
14288 fi
14289
14290
14291
14292 LIBAUTHPWD=""
14293 if test "$HAVE_PWD" = 1
14294 then
14295 LIBAUTHPWD="libauthpwd.la"
14296 fi
14297
14298
14299
14300
14301
14302
14303 # Check whether --with-authpgsqlrc was given.
14304 if test "${with_authpgsqlrc+set}" = set; then :
14305 withval=$with_authpgsqlrc; authpgsqlrc="$withval"
14306 else
14307 authpgsqlrc="$pkgconfdir/authpgsqlrc"
14308 fi
14309
14310
14311
14312
14313 # Check whether --with-authpgsql was given.
14314 if test "${with_authpgsql+set}" = set; then :
14315 withval=$with_authpgsql; doauthpgsql="$withval"
14316 fi
14317
14318
14319 for ac_prog in pg_config
14320 do
14321 # Extract the first word of "$ac_prog", so it can be a program name with args.
14322 set dummy $ac_prog; ac_word=$2
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14324 $as_echo_n "checking for $ac_word... " >&6; }
14325 if ${ac_cv_path_PG_CONFIG+:} false; then :
14326 $as_echo_n "(cached) " >&6
14327 else
14328 case $PG_CONFIG in
14329 [\\/]* | ?:[\\/]*)
14330 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
14331 ;;
14332 *)
14333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14334 for as_dir in $LPATH
14335 do
14336 IFS=$as_save_IFS
14337 test -z "$as_dir" && as_dir=.
14338 for ac_exec_ext in '' $ac_executable_extensions; do
14339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14340 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14342 break 2
14343 fi
14344 done
14345 done
14346 IFS=$as_save_IFS
14347
14348 ;;
14349 esac
14350 fi
14351 PG_CONFIG=$ac_cv_path_PG_CONFIG
14352 if test -n "$PG_CONFIG"; then
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
14354 $as_echo "$PG_CONFIG" >&6; }
14355 else
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14357 $as_echo "no" >&6; }
14358 fi
14359
14360
14361 test -n "$PG_CONFIG" && break
14362 done
14363 test -n "$PG_CONFIG" || PG_CONFIG="pg_config"
14364
14365
14366 PGSQL_LIBS="-lpq"
14367
14368 # Check whether --with-pgsql-libs was given.
14369 if test "${with_pgsql_libs+set}" = set; then :
14370 withval=$with_pgsql_libs; PGSQL_LIBS="-L$withval $PGSQL_LIBS"
14371 else
14372 if test -x $PG_CONFIG
14373 then
14374 PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS"
14375 fi
14376
14377 fi
14378
14379
14380 # Check whether --with-pgsql-includes was given.
14381 if test "${with_pgsql_includes+set}" = set; then :
14382 withval=$with_pgsql_includes; PGSQL_CFLAGS="-I$withval"
14383 else
14384 if test -x $PG_CONFIG
14385 then
14386 PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`"
14387 fi
14388
14389 fi
14390
14391
14392 if test "$doauthpgsql" = ""
14393 then
14394 LIBS="$PGSQL_LIBS $LIBS"
14395 ac_fn_c_check_func "$LINENO" "PQsetdbLogin" "ac_cv_func_PQsetdbLogin"
14396 if test "x$ac_cv_func_PQsetdbLogin" = xyes; then :
14397 doauthpgsql="yes"
14398
14399 fi
14400
14401 LIBS="$saveLIBS"
14402 fi
14403
14404 if test "$doauthpgsql" != "yes"
14405 then
14406 LIBAUTHPGSQL=""
14407 HAVE_AUTHPGSQL=0
14408 else
14409 saveLIBS="$LIBS"
14410 LIBS="$PGSQL_LIBS $LIBS"
14411 ac_fn_c_check_func "$LINENO" "PQsetdbLogin" "ac_cv_func_PQsetdbLogin"
14412 if test "x$ac_cv_func_PQsetdbLogin" = xyes; then :
14413 AUTHPGSQL="authpgsql"
14414 HAVE_AUTHPGSQL=1
14415 else
14416 as_fn_error $? "--with-authpgsql specified but no libpq.so" "$LINENO" 5
14417 fi
14418
14419 LIBS="$saveLIBS"
14420 HAVE_AUTHPGSQL=1
14421 CFLAGS="$PGSQL_CFLAGS $CFLAGS"
14422 LIBAUTHPGSQL="libauthpgsql.la"
14423 fi
14424
14425
14426
14427 if test "$HAVE_AUTHPGSQL" = 1; then
14428 HAVE_AUTHPGSQL_TRUE=
14429 HAVE_AUTHPGSQL_FALSE='#'
14430 else
14431 HAVE_AUTHPGSQL_TRUE='#'
14432 HAVE_AUTHPGSQL_FALSE=
14433 fi
14434
14435
14436
14437
14438
14439
14440 # Check whether --with-authmysqlrc was given.
14441 if test "${with_authmysqlrc+set}" = set; then :
14442 withval=$with_authmysqlrc; authmysqlrc="$withval"
14443 else
14444 authmysqlrc="$pkgconfdir/authmysqlrc"
14445 fi
14446
14447
14448
14449
14450 # Check whether --with-authmysql was given.
14451 if test "${with_authmysql+set}" = set; then :
14452 withval=$with_authmysql; doauthmysql="$withval"
14453 fi
14454
14455
14456 # Check whether --with-mysql-libs was given.
14457 if test "${with_mysql_libs+set}" = set; then :
14458 withval=$with_mysql_libs; MYSQL_LIBS="-L$withval -lmysqlclient"
14459
14460 fi
14461
14462
14463 # Check whether --with-mysql-includes was given.
14464 if test "${with_mysql_includes+set}" = set; then :
14465 withval=$with_mysql_includes; MYSQL_CFLAGS="-I$withval"
14466
14467 fi
14468
14469
14470 for ac_prog in mysql_config
14471 do
14472 # Extract the first word of "$ac_prog", so it can be a program name with args.
14473 set dummy $ac_prog; ac_word=$2
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14475 $as_echo_n "checking for $ac_word... " >&6; }
14476 if ${ac_cv_path_MYSQL_CONFIG+:} false; then :
14477 $as_echo_n "(cached) " >&6
14478 else
14479 case $MYSQL_CONFIG in
14480 [\\/]* | ?:[\\/]*)
14481 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
14482 ;;
14483 *)
14484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14485 for as_dir in $LPATH
14486 do
14487 IFS=$as_save_IFS
14488 test -z "$as_dir" && as_dir=.
14489 for ac_exec_ext in '' $ac_executable_extensions; do
14490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14491 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14493 break 2
14494 fi
14495 done
14496 done
14497 IFS=$as_save_IFS
14498
14499 ;;
14500 esac
14501 fi
14502 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
14503 if test -n "$MYSQL_CONFIG"; then
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
14505 $as_echo "$MYSQL_CONFIG" >&6; }
14506 else
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14508 $as_echo "no" >&6; }
14509 fi
14510
14511
14512 test -n "$MYSQL_CONFIG" && break
14513 done
14514 test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="mysql_config"
14515
14516
14517 if test -x "$MYSQL_CONFIG"
14518 then
14519 MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`"
14520 MYSQL_LIBS="`$MYSQL_CONFIG --libs`"
14521
14522 eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\`\""
14523 eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\`\""
14524 fi
14525
14526 if test "$doauthmysql" = ""
14527 then
14528 LIBS="$MYSQL_LIBS $LIBS"
14529 ac_fn_c_check_func "$LINENO" "mysql_connect" "ac_cv_func_mysql_connect"
14530 if test "x$ac_cv_func_mysql_connect" = xyes; then :
14531 doauthmysql="yes"
14532
14533 fi
14534
14535 ac_fn_c_check_func "$LINENO" "mysql_real_connect" "ac_cv_func_mysql_real_connect"
14536 if test "x$ac_cv_func_mysql_real_connect" = xyes; then :
14537 doauthmysql="yes"
14538
14539 fi
14540
14541 LIBS="$saveLIBS"
14542 fi
14543
14544 if test "$doauthmysql" != "yes"
14545 then
14546 LIBAUTHMYSQL=""
14547 HAVE_AUTHMYSQL=0
14548 else
14549 saveLIBS="$LIBS"
14550 LIBS="$MYSQL_LIBS $LIBS"
14551 ac_fn_c_check_func "$LINENO" "mysql_connect" "ac_cv_func_mysql_connect"
14552 if test "x$ac_cv_func_mysql_connect" = xyes; then :
14553 LIBAUTHMYSQL="libauthmysql.la"
14554 HAVE_AUTHMYSQL=1
14555 else
14556
14557 ac_fn_c_check_func "$LINENO" "mysql_real_connect" "ac_cv_func_mysql_real_connect"
14558 if test "x$ac_cv_func_mysql_real_connect" = xyes; then :
14559 LIBAUTHMYSQL="libauthmysql.la"
14560 HAVE_AUTHMYSQL=1
14561 else
14562 as_fn_error $? "--with-authmysql specified but no mysqlclient.so" "$LINENO" 5
14563
14564 fi
14565
14566
14567
14568 fi
14569
14570 LIBS="$saveLIBS"
14571 HAVE_AUTHMYSQL=1
14572 CFLAGS="$MYSQL_CFLAGS $CFLAGS"
14573 fi
14574
14575
14576 if test "$HAVE_AUTHMYSQL" = 1; then
14577 HAVE_AUTHMYSQL_TRUE=
14578 HAVE_AUTHMYSQL_FALSE='#'
14579 else
14580 HAVE_AUTHMYSQL_TRUE='#'
14581 HAVE_AUTHMYSQL_FALSE=
14582 fi
14583
14584
14585
14586
14587
14588
14589 # Check whether --with-authsqliterc was given.
14590 if test "${with_authsqliterc+set}" = set; then :
14591 withval=$with_authsqliterc; authsqliterc="$withval"
14592 else
14593 authsqliterc="$pkgconfdir/authsqliterc"
14594 fi
14595
14596
14597
14598
14599 # Check whether --with-authsqlite was given.
14600 if test "${with_authsqlite+set}" = set; then :
14601 withval=$with_authsqlite; doauthsqlite="$withval"
14602 fi
14603
14604
14605
14606 # Check whether --with-sqlite-libs was given.
14607 if test "${with_sqlite_libs+set}" = set; then :
14608 withval=$with_sqlite_libs; SQLITE_LIBS="-lsqlite3"
14609
14610 fi
14611
14612
14613 # Check whether --with-sqlite-includes was given.
14614 if test "${with_sqlite_includes+set}" = set; then :
14615 withval=$with_sqlite_includes; SQLITE_CFLAGS="-I$withval"
14616
14617 fi
14618
14619
14620 if test "$doauthsqlite" = ""
14621 then
14622 SQLITE_CFLAGS="`pkg-config --cflags sqlite3 2>/dev/null`"
14623 SQLITE_LIBS="`pkg-config --libs sqlite3 2>/dev/null`"
14624 saveLIBS="$LIBS"
14625 LIBS="$SQLITE_LIBS $LIBS"
14626 ac_fn_c_check_func "$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version"
14627 if test "x$ac_cv_func_sqlite3_version" = xyes; then :
14628 doauthsqlite="yes"
14629
14630 fi
14631
14632 LIBS="$saveLIBS"
14633 fi
14634
14635 if test "$doauthsqlite" != "yes"
14636 then
14637 SQLITE_LIBS=""
14638 SQLITE_CFLAGS=""
14639 HAVE_AUTHSQLITE=0
14640 LIBAUTHSQLITE=""
14641 else
14642 saveLIBS="$LIBS"
14643 LIBS="$SQLITE_LIBS $LIBS"
14644 ac_fn_c_check_func "$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version"
14645 if test "x$ac_cv_func_sqlite3_version" = xyes; then :
14646 :
14647 else
14648 as_fn_error $? "Cannot link with $SQLITE_LIBS" "$LINENO" 5
14649
14650 fi
14651
14652 LIBS="$saveLIBS"
14653 HAVE_AUTHSQLITE=1
14654 CFLAGS="$SQLITE_CFLAGS $CFLAGS"
14655 LIBAUTHSQLITE="libauthsqlite.la"
14656
14657 fi
14658
14659
14660 if test "$HAVE_AUTHSQLITE" = 1; then
14661 HAVE_AUTHSQLITE_TRUE=
14662 HAVE_AUTHSQLITE_FALSE='#'
14663 else
14664 HAVE_AUTHSQLITE_TRUE='#'
14665 HAVE_AUTHSQLITE_FALSE=
14666 fi
14667
14668
14669
14670
14671
14672
14673
14674 # Check whether --with-authcustom was given.
14675 if test "${with_authcustom+set}" = set; then :
14676 withval=$with_authcustom; doauthcustom="$withval"
14677 else
14678 doauthcustom=yes
14679 fi
14680
14681
14682 LIBAUTHCUSTOM=""
14683
14684 if test "$doauthcustom" = "yes"
14685 then
14686 LIBAUTHCUSTOM="libauthcustom.la"
14687 fi
14688
14689 if test "$AUTHCUSTOM" != ""; then
14690 HAVE_CUSTOM_TRUE=
14691 HAVE_CUSTOM_FALSE='#'
14692 else
14693 HAVE_CUSTOM_TRUE='#'
14694 HAVE_CUSTOM_FALSE=
14695 fi
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705 # Check whether --with-pipeprog was given.
14706 if test "${with_pipeprog+set}" = set; then :
14707 withval=$with_pipeprog; authProg="$withval"
14708 else
14709 authProg="$pkgconfdir/authProg"
14710 fi
14711
14712
14713
14714
14715 # Check whether --with-authpipe was given.
14716 if test "${with_authpipe+set}" = set; then :
14717 withval=$with_authpipe; doauthpipe="$withval"
14718 else
14719 doauthpipe=yes
14720 fi
14721
14722
14723 LIBAUTHPIPE=""
14724
14725 if test "$doauthpipe" = "yes"
14726 then
14727 LIBAUTHPIPE="libauthpipe.la"
14728 fi
14729
14730 if test "$AUTHPIPE" != ""; then
14731 HAVE_PIPE_TRUE=
14732 HAVE_PIPE_FALSE='#'
14733 else
14734 HAVE_PIPE_TRUE='#'
14735 HAVE_PIPE_FALSE=
14736 fi
14737
14738
14739
14740
14741
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14743 $as_echo_n "checking for ANSI C header files... " >&6; }
14744 if ${ac_cv_header_stdc+:} false; then :
14745 $as_echo_n "(cached) " >&6
14746 else
14747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14748 /* end confdefs.h. */
14749 #include <stdlib.h>
14750 #include <stdarg.h>
14751 #include <string.h>
14752 #include <float.h>
14753
14754 int
14755 main ()
14756 {
14757
14758 ;
14759 return 0;
14760 }
14761 _ACEOF
14762 if ac_fn_c_try_compile "$LINENO"; then :
14763 ac_cv_header_stdc=yes
14764 else
14765 ac_cv_header_stdc=no
14766 fi
14767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14768
14769 if test $ac_cv_header_stdc = yes; then
14770 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h. */
14773 #include <string.h>
14774
14775 _ACEOF
14776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14777 $EGREP "memchr" >/dev/null 2>&1; then :
14778
14779 else
14780 ac_cv_header_stdc=no
14781 fi
14782 rm -f conftest*
14783
14784 fi
14785
14786 if test $ac_cv_header_stdc = yes; then
14787 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h. */
14790 #include <stdlib.h>
14791
14792 _ACEOF
14793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14794 $EGREP "free" >/dev/null 2>&1; then :
14795
14796 else
14797 ac_cv_header_stdc=no
14798 fi
14799 rm -f conftest*
14800
14801 fi
14802
14803 if test $ac_cv_header_stdc = yes; then
14804 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14805 if test "$cross_compiling" = yes; then :
14806 :
14807 else
14808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14809 /* end confdefs.h. */
14810 #include <ctype.h>
14811 #include <stdlib.h>
14812 #if ((' ' & 0x0FF) == 0x020)
14813 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14814 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14815 #else
14816 # define ISLOWER(c) \
14817 (('a' <= (c) && (c) <= 'i') \
14818 || ('j' <= (c) && (c) <= 'r') \
14819 || ('s' <= (c) && (c) <= 'z'))
14820 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14821 #endif
14822
14823 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14824 int
14825 main ()
14826 {
14827 int i;
14828 for (i = 0; i < 256; i++)
14829 if (XOR (islower (i), ISLOWER (i))
14830 || toupper (i) != TOUPPER (i))
14831 return 2;
14832 return 0;
14833 }
14834 _ACEOF
14835 if ac_fn_c_try_run "$LINENO"; then :
14836
14837 else
14838 ac_cv_header_stdc=no
14839 fi
14840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14841 conftest.$ac_objext conftest.beam conftest.$ac_ext
14842 fi
14843
14844 fi
14845 fi
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14847 $as_echo "$ac_cv_header_stdc" >&6; }
14848 if test $ac_cv_header_stdc = yes; then
14849
14850 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14851
14852 fi
14853
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
14855 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
14856 if ${ac_cv_header_sys_wait_h+:} false; then :
14857 $as_echo_n "(cached) " >&6
14858 else
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14861 #include <sys/types.h>
14862 #include <sys/wait.h>
14863 #ifndef WEXITSTATUS
14864 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14865 #endif
14866 #ifndef WIFEXITED
14867 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14868 #endif
14869
14870 int
14871 main ()
14872 {
14873 int s;
14874 wait (&s);
14875 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14876 ;
14877 return 0;
14878 }
14879 _ACEOF
14880 if ac_fn_c_try_compile "$LINENO"; then :
14881 ac_cv_header_sys_wait_h=yes
14882 else
14883 ac_cv_header_sys_wait_h=no
14884 fi
14885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14886 fi
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
14888 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
14889 if test $ac_cv_header_sys_wait_h = yes; then
14890
14891 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
14892
14893 fi
14894
14895 for ac_header in sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h
14896 do :
14897 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14898 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14899 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14900 cat >>confdefs.h <<_ACEOF
14901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14902 _ACEOF
14903
14904 fi
14905
14906 done
14907
14908
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14910 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14911 if ${ac_cv_c_const+:} false; then :
14912 $as_echo_n "(cached) " >&6
14913 else
14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915 /* end confdefs.h. */
14916
14917 int
14918 main ()
14919 {
14920
14921 #ifndef __cplusplus
14922 /* Ultrix mips cc rejects this sort of thing. */
14923 typedef int charset[2];
14924 const charset cs = { 0, 0 };
14925 /* SunOS 4.1.1 cc rejects this. */
14926 char const *const *pcpcc;
14927 char **ppc;
14928 /* NEC SVR4.0.2 mips cc rejects this. */
14929 struct point {int x, y;};
14930 static struct point const zero = {0,0};
14931 /* AIX XL C 1.02.0.0 rejects this.
14932 It does not let you subtract one const X* pointer from another in
14933 an arm of an if-expression whose if-part is not a constant
14934 expression */
14935 const char *g = "string";
14936 pcpcc = &g + (g ? g-g : 0);
14937 /* HPUX 7.0 cc rejects these. */
14938 ++pcpcc;
14939 ppc = (char**) pcpcc;
14940 pcpcc = (char const *const *) ppc;
14941 { /* SCO 3.2v4 cc rejects this sort of thing. */
14942 char tx;
14943 char *t = &tx;
14944 char const *s = 0 ? (char *) 0 : (char const *) 0;
14945
14946 *t++ = 0;
14947 if (s) return 0;
14948 }
14949 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14950 int x[] = {25, 17};
14951 const int *foo = &x[0];
14952 ++foo;
14953 }
14954 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14955 typedef const int *iptr;
14956 iptr p = 0;
14957 ++p;
14958 }
14959 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14960 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14961 struct s { int j; const int *ap[3]; } bx;
14962 struct s *b = &bx; b->j = 5;
14963 }
14964 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14965 const int foo = 10;
14966 if (!foo) return 0;
14967 }
14968 return !cs[0] && !zero.x;
14969 #endif
14970
14971 ;
14972 return 0;
14973 }
14974 _ACEOF
14975 if ac_fn_c_try_compile "$LINENO"; then :
14976 ac_cv_c_const=yes
14977 else
14978 ac_cv_c_const=no
14979 fi
14980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14981 fi
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14983 $as_echo "$ac_cv_c_const" >&6; }
14984 if test $ac_cv_c_const = no; then
14985
14986 $as_echo "#define const /**/" >>confdefs.h
14987
14988 fi
14989
14990 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14991 if test "x$ac_cv_type_pid_t" = xyes; then :
14992
14993 else
14994
14995 cat >>confdefs.h <<_ACEOF
14996 #define pid_t int
14997 _ACEOF
14998
14999 fi
15000
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15002 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15003 if ${ac_cv_type_uid_t+:} false; then :
15004 $as_echo_n "(cached) " >&6
15005 else
15006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15007 /* end confdefs.h. */
15008 #include <sys/types.h>
15009
15010 _ACEOF
15011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15012 $EGREP "uid_t" >/dev/null 2>&1; then :
15013 ac_cv_type_uid_t=yes
15014 else
15015 ac_cv_type_uid_t=no
15016 fi
15017 rm -f conftest*
15018
15019 fi
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15021 $as_echo "$ac_cv_type_uid_t" >&6; }
15022 if test $ac_cv_type_uid_t = no; then
15023
15024 $as_echo "#define uid_t int" >>confdefs.h
15025
15026
15027 $as_echo "#define gid_t int" >>confdefs.h
15028
15029 fi
15030
15031 for ac_func in setsid setlogin
15032 do :
15033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15034 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15035 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15036 cat >>confdefs.h <<_ACEOF
15037 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15038 _ACEOF
15039
15040 fi
15041 done
15042
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
15044 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
15045 if ${ac_cv_lib_crypt_crypt+:} false; then :
15046 $as_echo_n "(cached) " >&6
15047 else
15048 ac_check_lib_save_LIBS=$LIBS
15049 LIBS="-lcrypt $LIBS"
15050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15051 /* end confdefs.h. */
15052
15053 /* Override any GCC internal prototype to avoid an error.
15054 Use char because int might match the return type of a GCC
15055 builtin and then its argument prototype would still apply. */
15056 #ifdef __cplusplus
15057 extern "C"
15058 #endif
15059 char crypt ();
15060 int
15061 main ()
15062 {
15063 return crypt ();
15064 ;
15065 return 0;
15066 }
15067 _ACEOF
15068 if ac_fn_c_try_link "$LINENO"; then :
15069 ac_cv_lib_crypt_crypt=yes
15070 else
15071 ac_cv_lib_crypt_crypt=no
15072 fi
15073 rm -f core conftest.err conftest.$ac_objext \
15074 conftest$ac_exeext conftest.$ac_ext
15075 LIBS=$ac_check_lib_save_LIBS
15076 fi
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
15078 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
15079 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
15080 CRYPTLIBS="-lcrypt"
15081 fi
15082
15083 saveLIBS="$LIBS"
15084 LIBS="$CRYPTLIBS $LIBS"
15085 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
15086 if test "x$ac_cv_func_crypt" = xyes; then :
15087
15088 cat >>confdefs.h <<_ACEOF
15089 #define HAVE_CRYPT 1
15090 _ACEOF
15091
15092 fi
15093
15094 LIBS="$saveLIBS"
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt() prototype" >&5
15096 $as_echo_n "checking for crypt() prototype... " >&6; }
15097 if ${userdb_cv_NEED_CRYPT_PROTOTYPE+:} false; then :
15098 $as_echo_n "(cached) " >&6
15099 else
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15102
15103 #if HAVE_CRYPT_H
15104 #include <crypt.h>
15105 #endif
15106 #if HAVE_UNISTD_H
15107 #include <unistd.h>
15108 #endif
15109 int crypt(int, int);
15110
15111
15112 int
15113 main ()
15114 {
15115
15116 ;
15117 return 0;
15118 }
15119 _ACEOF
15120 if ac_fn_c_try_compile "$LINENO"; then :
15121 userdb_cv_NEED_CRYPT_PROTOTYPE=1
15122 else
15123 userdb_cv_NEED_CRYPT_PROTOTYPE=0
15124 fi
15125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15126
15127
15128 fi
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
15130 $as_echo "$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
15131
15132
15133 cat >>confdefs.h <<_ACEOF
15134 #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
15135 _ACEOF
15136
15137
15138
15139
15140
15141
15142
15143 # Check whether --with-authdaemonrc was given.
15144 if test "${with_authdaemonrc+set}" = set; then :
15145 withval=$with_authdaemonrc; authdaemonrc="$withval"
15146 else
15147 authdaemonrc="$pkgconfdir/authdaemonrc"
15148 fi
15149
15150
15151
15152
15153 # Check whether --with-authdaemonvar was given.
15154 if test "${with_authdaemonvar+set}" = set; then :
15155 withval=$with_authdaemonvar; authdaemonvar="$withval"
15156 else
15157 authdaemonvar="$localstatedir/spool/authdaemon"
15158 fi
15159
15160
15161
15162
15163
15164
15165 rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h
15166
15167
15168 result=""
15169
15170 if test -x "$COURIERCONFIG"
15171 then
15172 $COURIERCONFIG >conftest.out || exit 1
15173 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
15174 . ./conftest2.out
15175 rm -f conftest.out conftest2.out
15176
15177 cmailuser="$mailuser"
15178 cmailgroup="$mailgroup"
15179 result=" (from courier-config)"
15180 fi
15181
15182 if test -x "$bindir/courierauthconfig"
15183 then
15184 $bindir/courierauthconfig --configfiles >conftest.out || exit 1
15185 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
15186 . ./conftest2.out
15187 rm -f conftest.out conftest2.out
15188
15189 cmailuser="$mailuser"
15190 cmailgroup="$mailgroup"
15191 result=" (from previous courierauthconfig)"
15192 fi
15193
15194
15195
15196 LB='['
15197 RB=']'
15198
15199
15200
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mail userid" >&5
15202 $as_echo_n "checking for mail userid... " >&6; }
15203
15204
15205 # Check whether --with-mailuser was given.
15206 if test "${with_mailuser+set}" = set; then :
15207 withval=$with_mailuser; mailuser="$withval"
15208 else
15209 if test "$cmailuser" = ""
15210 then
15211 if test "$cross_compiling" = yes; then :
15212 as_fn_error $? "Must use --with-mailuser when cross compiling." "$LINENO" 5
15213 else
15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215 /* end confdefs.h. */
15216
15217 #include <stdio.h>
15218 #include <pwd.h>
15219 #include <stdlib.h>
15220
15221 static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0};
15222
15223 int main()
15224 {
15225 int i;
15226 FILE *f;
15227 char *p;
15228
15229 for (i=0; ids $LB i $RB; i++)
15230 if (getpwnam(ids $LB i $RB)) break;
15231
15232 f=fopen("conftest.out", "w");
15233 if (f && ids $LB i $RB)
15234 {
15235 fprintf(f, "%s\n", ids $LB i $RB);
15236 fclose(f);
15237 exit(0);
15238 }
15239 fclose(f);
15240 exit (1);
15241 return (1);
15242 }
15243
15244 _ACEOF
15245 if ac_fn_c_try_run "$LINENO"; then :
15246 mailuser=`cat conftest.out`
15247 else
15248 as_fn_error use --with-mailuser. "Cannot determine mail user" "$LINENO" 5
15249 fi
15250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15251 conftest.$ac_objext conftest.beam conftest.$ac_ext
15252 fi
15253
15254 else
15255 mailuser="$cmailuser"
15256 fi
15257 ac_configure_args="$ac_configure_args --with-mailuser=$mailuser"
15258 fi
15259
15260
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailuser $result" >&5
15262 $as_echo "$mailuser $result" >&6; }
15263
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mail group id" >&5
15265 $as_echo_n "checking for mail group id... " >&6; }
15266
15267
15268 # Check whether --with-mailgroup was given.
15269 if test "${with_mailgroup+set}" = set; then :
15270 withval=$with_mailgroup; mailgroup="$withval"
15271 else
15272 if test "$cmailgroup" = ""
15273 then
15274 if test "$cross_compiling" = yes; then :
15275 as_fn_error $? "Must use --with-mailgroup when cross compiling." "$LINENO" 5
15276 else
15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278 /* end confdefs.h. */
15279
15280 #include <stdio.h>
15281 #include <grp.h>
15282 #include <stdlib.h>
15283
15284 static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0};
15285
15286 int main()
15287 {
15288 int i;
15289 FILE *f;
15290
15291 for (i=0; ids $LB i $RB; i++)
15292 if (getgrnam(ids $LB i $RB)) break;
15293
15294 f=fopen("conftest.out", "w");
15295 if (f && ids $LB i $RB)
15296 {
15297 fprintf(f, "%s\n", ids $LB i $RB);
15298 fclose(f);
15299 exit(0);
15300 }
15301 fclose(f);
15302 exit (1);
15303 return (1);
15304 }
15305
15306 _ACEOF
15307 if ac_fn_c_try_run "$LINENO"; then :
15308 mailgroup=`cat conftest.out`
15309 else
15310 as_fn_error use --with-mailgroup. "Cannot determine mail group" "$LINENO" 5
15311 fi
15312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15313 conftest.$ac_objext conftest.beam conftest.$ac_ext
15314 fi
15315
15316 else
15317 mailgroup="$cmailgroup"
15318 fi
15319 ac_configure_args="$ac_configure_args --with-mailgroup=$mailgroup"
15320
15321 fi
15322
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailgroup $result" >&5
15324 $as_echo "$mailgroup $result" >&6; }
15325
15326
15327 rm -f conftest.out
15328
15329
15330 # Check whether --with-stdheaderdir was given.
15331 if test "${with_stdheaderdir+set}" = set; then :
15332 withval=$with_stdheaderdir;
15333 if test "$withval" = "no"
15334 then
15335
15336 cat >>confdefs.h <<_ACEOF
15337 #define HAVE_NOSTDHEADERDIR 1
15338 _ACEOF
15339
15340 fi
15341
15342 fi
15343
15344
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
15346 $as_echo_n "checking for socklen_t... " >&6; }
15347 if ${authlib_cv_hassocklen_t+:} false; then :
15348 $as_echo_n "(cached) " >&6
15349 else
15350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15351 /* end confdefs.h. */
15352
15353
15354 #include <sys/types.h>
15355 #include <sys/socket.h>
15356
15357 socklen_t sl_t;
15358
15359 _ACEOF
15360 if ac_fn_c_try_compile "$LINENO"; then :
15361 authlib_cv_hassocklen_t=yes
15362 else
15363 authlib_cv_hassocklen_t=no
15364 fi
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366
15367 fi
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $authlib_cv_hassocklen_t" >&5
15369 $as_echo "$authlib_cv_hassocklen_t" >&6; }
15370
15371 socklen_t="int"
15372
15373 if test $authlib_cv_hassocklen_t = yes
15374 then
15375 :
15376 else
15377
15378 cat >>confdefs.h <<_ACEOF
15379 #define socklen_t int
15380 _ACEOF
15381
15382 fi
15383
15384
15385 # Check whether --with-repository was given.
15386 if test "${with_repository+set}" = set; then :
15387 withval=$with_repository; REPOSITORY="$withval"
15388 fi
15389
15390
15391
15392 if test -d ${srcdir}/libs/docbook; then
15393 HAVE_SGML_TRUE=
15394 HAVE_SGML_FALSE='#'
15395 else
15396 HAVE_SGML_TRUE='#'
15397 HAVE_SGML_FALSE=
15398 fi
15399
15400 subdirs="$subdirs libs/bdbobj libs/gdbmobj libs/md5 libs/sha1 libs/libhmac libs/numlib libs/makedat userdb libs/unicode libs/rfc822 libs/random128 libs/liblock liblog"
15401
15402
15403 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"
15404
15405 cat >confcache <<\_ACEOF
15406 # This file is a shell script that caches the results of configure
15407 # tests run on this system so they can be shared between configure
15408 # scripts and configure runs, see configure's option --config-cache.
15409 # It is not useful on other systems. If it contains results you don't
15410 # want to keep, you may remove or edit it.
15411 #
15412 # config.status only pays attention to the cache file if you give it
15413 # the --recheck option to rerun configure.
15414 #
15415 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15416 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15417 # following values.
15418
15419 _ACEOF
15420
15421 # The following way of writing the cache mishandles newlines in values,
15422 # but we know of no workaround that is simple, portable, and efficient.
15423 # So, we kill variables containing newlines.
15424 # Ultrix sh set writes to stderr and can't be redirected directly,
15425 # and sets the high bit in the cache file unless we assign to the vars.
15426 (
15427 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15428 eval ac_val=\$$ac_var
15429 case $ac_val in #(
15430 *${as_nl}*)
15431 case $ac_var in #(
15432 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15433 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15434 esac
15435 case $ac_var in #(
15436 _ | IFS | as_nl) ;; #(
15437 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15438 *) { eval $ac_var=; unset $ac_var;} ;;
15439 esac ;;
15440 esac
15441 done
15442
15443 (set) 2>&1 |
15444 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15445 *${as_nl}ac_space=\ *)
15446 # `set' does not quote correctly, so add quotes: double-quote
15447 # substitution turns \\\\ into \\, and sed turns \\ into \.
15448 sed -n \
15449 "s/'/'\\\\''/g;
15450 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15451 ;; #(
15452 *)
15453 # `set' quotes correctly as required by POSIX, so do not add quotes.
15454 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15455 ;;
15456 esac |
15457 sort
15458 ) |
15459 sed '
15460 /^ac_cv_env_/b end
15461 t clear
15462 :clear
15463 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15464 t end
15465 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15466 :end' >>confcache
15467 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15468 if test -w "$cache_file"; then
15469 if test "x$cache_file" != "x/dev/null"; then
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15471 $as_echo "$as_me: updating cache $cache_file" >&6;}
15472 if test ! -f "$cache_file" || test -h "$cache_file"; then
15473 cat confcache >"$cache_file"
15474 else
15475 case $cache_file in #(
15476 */* | ?:*)
15477 mv -f confcache "$cache_file"$$ &&
15478 mv -f "$cache_file"$$ "$cache_file" ;; #(
15479 *)
15480 mv -f confcache "$cache_file" ;;
15481 esac
15482 fi
15483 fi
15484 else
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15486 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15487 fi
15488 fi
15489 rm -f confcache
15490
15491 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15492 # Let make expand exec_prefix.
15493 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15494
15495 DEFS=-DHAVE_CONFIG_H
15496
15497 ac_libobjs=
15498 ac_ltlibobjs=
15499 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15500 # 1. Remove the extension, and $U if already installed.
15501 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15502 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15503 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15504 # will be set to the directory where LIBOBJS objects are built.
15505 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15506 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15507 done
15508 LIBOBJS=$ac_libobjs
15509
15510 LTLIBOBJS=$ac_ltlibobjs
15511
15512
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15514 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15515 if test -n "$am_sleep_pid"; then
15516 # Hide warnings about reused PIDs.
15517 wait $am_sleep_pid 2>/dev/null
15518 fi
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15520 $as_echo "done" >&6; }
15521 if test -n "$EXEEXT"; then
15522 am__EXEEXT_TRUE=
15523 am__EXEEXT_FALSE='#'
15524 else
15525 am__EXEEXT_TRUE='#'
15526 am__EXEEXT_FALSE=
15527 fi
15528
15529 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15530 as_fn_error $? "conditional \"AMDEP\" was never defined.
15531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15532 fi
15533 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15534 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15536 fi
15537 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
15538 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
15539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15540 fi
15541 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
15542 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
15543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15544 fi
15545 LT_CONFIG_H=courier_auth_config.h
15546
15547 _ltdl_libobjs=
15548 _ltdl_ltlibobjs=
15549 if test -n "$_LT_LIBOBJS"; then
15550 # Remove the extension.
15551 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
15552 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
15553 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
15554 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
15555 done
15556 fi
15557 ltdl_LIBOBJS=$_ltdl_libobjs
15558
15559 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
15560
15561
15562 if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
15563 as_fn_error $? "conditional \"HAVE_LDAP\" was never defined.
15564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15565 fi
15566 if test -z "${HAVE_AUTHPGSQL_TRUE}" && test -z "${HAVE_AUTHPGSQL_FALSE}"; then
15567 as_fn_error $? "conditional \"HAVE_AUTHPGSQL\" was never defined.
15568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15569 fi
15570 if test -z "${HAVE_AUTHMYSQL_TRUE}" && test -z "${HAVE_AUTHMYSQL_FALSE}"; then
15571 as_fn_error $? "conditional \"HAVE_AUTHMYSQL\" was never defined.
15572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15573 fi
15574 if test -z "${HAVE_AUTHSQLITE_TRUE}" && test -z "${HAVE_AUTHSQLITE_FALSE}"; then
15575 as_fn_error $? "conditional \"HAVE_AUTHSQLITE\" was never defined.
15576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15577 fi
15578 if test -z "${HAVE_CUSTOM_TRUE}" && test -z "${HAVE_CUSTOM_FALSE}"; then
15579 as_fn_error $? "conditional \"HAVE_CUSTOM\" was never defined.
15580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15581 fi
15582 if test -z "${HAVE_PIPE_TRUE}" && test -z "${HAVE_PIPE_FALSE}"; then
15583 as_fn_error $? "conditional \"HAVE_PIPE\" was never defined.
15584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15585 fi
15586 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
15587 as_fn_error $? "conditional \"HAVE_SGML\" was never defined.
15588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15589 fi
15590
15591 : "${CONFIG_STATUS=./config.status}"
15592 ac_write_fail=0
15593 ac_clean_files_save=$ac_clean_files
15594 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15596 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15597 as_write_fail=0
15598 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15599 #! $SHELL
15600 # Generated by $as_me.
15601 # Run this file to recreate the current configuration.
15602 # Compiler output produced by configure, useful for debugging
15603 # configure, is in config.log if it exists.
15604
15605 debug=false
15606 ac_cs_recheck=false
15607 ac_cs_silent=false
15608
15609 SHELL=\${CONFIG_SHELL-$SHELL}
15610 export SHELL
15611 _ASEOF
15612 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15613 ## -------------------- ##
15614 ## M4sh Initialization. ##
15615 ## -------------------- ##
15616
15617 # Be more Bourne compatible
15618 DUALCASE=1; export DUALCASE # for MKS sh
15619 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15620 emulate sh
15621 NULLCMD=:
15622 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15623 # is contrary to our usage. Disable this feature.
15624 alias -g '${1+"$@"}'='"$@"'
15625 setopt NO_GLOB_SUBST
15626 else
15627 case `(set -o) 2>/dev/null` in #(
15628 *posix*) :
15629 set -o posix ;; #(
15630 *) :
15631 ;;
15632 esac
15633 fi
15634
15635
15636 as_nl='
15637 '
15638 export as_nl
15639 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15640 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15641 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15642 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15643 # Prefer a ksh shell builtin over an external printf program on Solaris,
15644 # but without wasting forks for bash or zsh.
15645 if test -z "$BASH_VERSION$ZSH_VERSION" \
15646 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15647 as_echo='print -r --'
15648 as_echo_n='print -rn --'
15649 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15650 as_echo='printf %s\n'
15651 as_echo_n='printf %s'
15652 else
15653 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15654 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15655 as_echo_n='/usr/ucb/echo -n'
15656 else
15657 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15658 as_echo_n_body='eval
15659 arg=$1;
15660 case $arg in #(
15661 *"$as_nl"*)
15662 expr "X$arg" : "X\\(.*\\)$as_nl";
15663 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15664 esac;
15665 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15666 '
15667 export as_echo_n_body
15668 as_echo_n='sh -c $as_echo_n_body as_echo'
15669 fi
15670 export as_echo_body
15671 as_echo='sh -c $as_echo_body as_echo'
15672 fi
15673
15674 # The user is always right.
15675 if test "${PATH_SEPARATOR+set}" != set; then
15676 PATH_SEPARATOR=:
15677 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15678 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15679 PATH_SEPARATOR=';'
15680 }
15681 fi
15682
15683
15684 # IFS
15685 # We need space, tab and new line, in precisely that order. Quoting is
15686 # there to prevent editors from complaining about space-tab.
15687 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15688 # splitting by setting IFS to empty value.)
15689 IFS=" "" $as_nl"
15690
15691 # Find who we are. Look in the path if we contain no directory separator.
15692 as_myself=
15693 case $0 in #((
15694 *[\\/]* ) as_myself=$0 ;;
15695 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15696 for as_dir in $PATH
15697 do
15698 IFS=$as_save_IFS
15699 test -z "$as_dir" && as_dir=.
15700 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15701 done
15702 IFS=$as_save_IFS
15703
15704 ;;
15705 esac
15706 # We did not find ourselves, most probably we were run as `sh COMMAND'
15707 # in which case we are not to be found in the path.
15708 if test "x$as_myself" = x; then
15709 as_myself=$0
15710 fi
15711 if test ! -f "$as_myself"; then
15712 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15713 exit 1
15714 fi
15715
15716 # Unset variables that we do not need and which cause bugs (e.g. in
15717 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15718 # suppresses any "Segmentation fault" message there. '((' could
15719 # trigger a bug in pdksh 5.2.14.
15720 for as_var in BASH_ENV ENV MAIL MAILPATH
15721 do eval test x\${$as_var+set} = xset \
15722 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15723 done
15724 PS1='$ '
15725 PS2='> '
15726 PS4='+ '
15727
15728 # NLS nuisances.
15729 LC_ALL=C
15730 export LC_ALL
15731 LANGUAGE=C
15732 export LANGUAGE
15733
15734 # CDPATH.
15735 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15736
15737
15738 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15739 # ----------------------------------------
15740 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15741 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15742 # script with STATUS, using 1 if that was 0.
15743 as_fn_error ()
15744 {
15745 as_status=$1; test $as_status -eq 0 && as_status=1
15746 if test "$4"; then
15747 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15748 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15749 fi
15750 $as_echo "$as_me: error: $2" >&2
15751 as_fn_exit $as_status
15752 } # as_fn_error
15753
15754
15755 # as_fn_set_status STATUS
15756 # -----------------------
15757 # Set $? to STATUS, without forking.
15758 as_fn_set_status ()
15759 {
15760 return $1
15761 } # as_fn_set_status
15762
15763 # as_fn_exit STATUS
15764 # -----------------
15765 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15766 as_fn_exit ()
15767 {
15768 set +e
15769 as_fn_set_status $1
15770 exit $1
15771 } # as_fn_exit
15772
15773 # as_fn_unset VAR
15774 # ---------------
15775 # Portably unset VAR.
15776 as_fn_unset ()
15777 {
15778 { eval $1=; unset $1;}
15779 }
15780 as_unset=as_fn_unset
15781 # as_fn_append VAR VALUE
15782 # ----------------------
15783 # Append the text in VALUE to the end of the definition contained in VAR. Take
15784 # advantage of any shell optimizations that allow amortized linear growth over
15785 # repeated appends, instead of the typical quadratic growth present in naive
15786 # implementations.
15787 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15788 eval 'as_fn_append ()
15789 {
15790 eval $1+=\$2
15791 }'
15792 else
15793 as_fn_append ()
15794 {
15795 eval $1=\$$1\$2
15796 }
15797 fi # as_fn_append
15798
15799 # as_fn_arith ARG...
15800 # ------------------
15801 # Perform arithmetic evaluation on the ARGs, and store the result in the
15802 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15803 # must be portable across $(()) and expr.
15804 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15805 eval 'as_fn_arith ()
15806 {
15807 as_val=$(( $* ))
15808 }'
15809 else
15810 as_fn_arith ()
15811 {
15812 as_val=`expr "$@" || test $? -eq 1`
15813 }
15814 fi # as_fn_arith
15815
15816
15817 if expr a : '\(a\)' >/dev/null 2>&1 &&
15818 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15819 as_expr=expr
15820 else
15821 as_expr=false
15822 fi
15823
15824 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15825 as_basename=basename
15826 else
15827 as_basename=false
15828 fi
15829
15830 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15831 as_dirname=dirname
15832 else
15833 as_dirname=false
15834 fi
15835
15836 as_me=`$as_basename -- "$0" ||
15837 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15838 X"$0" : 'X\(//\)$' \| \
15839 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15840 $as_echo X/"$0" |
15841 sed '/^.*\/\([^/][^/]*\)\/*$/{
15842 s//\1/
15843 q
15844 }
15845 /^X\/\(\/\/\)$/{
15846 s//\1/
15847 q
15848 }
15849 /^X\/\(\/\).*/{
15850 s//\1/
15851 q
15852 }
15853 s/.*/./; q'`
15854
15855 # Avoid depending upon Character Ranges.
15856 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15857 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15858 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15859 as_cr_digits='0123456789'
15860 as_cr_alnum=$as_cr_Letters$as_cr_digits
15861
15862 ECHO_C= ECHO_N= ECHO_T=
15863 case `echo -n x` in #(((((
15864 -n*)
15865 case `echo 'xy\c'` in
15866 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15867 xy) ECHO_C='\c';;
15868 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15869 ECHO_T=' ';;
15870 esac;;
15871 *)
15872 ECHO_N='-n';;
15873 esac
15874
15875 rm -f conf$$ conf$$.exe conf$$.file
15876 if test -d conf$$.dir; then
15877 rm -f conf$$.dir/conf$$.file
15878 else
15879 rm -f conf$$.dir
15880 mkdir conf$$.dir 2>/dev/null
15881 fi
15882 if (echo >conf$$.file) 2>/dev/null; then
15883 if ln -s conf$$.file conf$$ 2>/dev/null; then
15884 as_ln_s='ln -s'
15885 # ... but there are two gotchas:
15886 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15887 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15888 # In both cases, we have to default to `cp -pR'.
15889 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15890 as_ln_s='cp -pR'
15891 elif ln conf$$.file conf$$ 2>/dev/null; then
15892 as_ln_s=ln
15893 else
15894 as_ln_s='cp -pR'
15895 fi
15896 else
15897 as_ln_s='cp -pR'
15898 fi
15899 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15900 rmdir conf$$.dir 2>/dev/null
15901
15902
15903 # as_fn_mkdir_p
15904 # -------------
15905 # Create "$as_dir" as a directory, including parents if necessary.
15906 as_fn_mkdir_p ()
15907 {
15908
15909 case $as_dir in #(
15910 -*) as_dir=./$as_dir;;
15911 esac
15912 test -d "$as_dir" || eval $as_mkdir_p || {
15913 as_dirs=
15914 while :; do
15915 case $as_dir in #(
15916 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15917 *) as_qdir=$as_dir;;
15918 esac
15919 as_dirs="'$as_qdir' $as_dirs"
15920 as_dir=`$as_dirname -- "$as_dir" ||
15921 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15922 X"$as_dir" : 'X\(//\)[^/]' \| \
15923 X"$as_dir" : 'X\(//\)$' \| \
15924 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15925 $as_echo X"$as_dir" |
15926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15927 s//\1/
15928 q
15929 }
15930 /^X\(\/\/\)[^/].*/{
15931 s//\1/
15932 q
15933 }
15934 /^X\(\/\/\)$/{
15935 s//\1/
15936 q
15937 }
15938 /^X\(\/\).*/{
15939 s//\1/
15940 q
15941 }
15942 s/.*/./; q'`
15943 test -d "$as_dir" && break
15944 done
15945 test -z "$as_dirs" || eval "mkdir $as_dirs"
15946 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15947
15948
15949 } # as_fn_mkdir_p
15950 if mkdir -p . 2>/dev/null; then
15951 as_mkdir_p='mkdir -p "$as_dir"'
15952 else
15953 test -d ./-p && rmdir ./-p
15954 as_mkdir_p=false
15955 fi
15956
15957
15958 # as_fn_executable_p FILE
15959 # -----------------------
15960 # Test if FILE is an executable regular file.
15961 as_fn_executable_p ()
15962 {
15963 test -f "$1" && test -x "$1"
15964 } # as_fn_executable_p
15965 as_test_x='test -x'
15966 as_executable_p=as_fn_executable_p
15967
15968 # Sed expression to map a string onto a valid CPP name.
15969 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15970
15971 # Sed expression to map a string onto a valid variable name.
15972 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15973
15974
15975 exec 6>&1
15976 ## ----------------------------------- ##
15977 ## Main body of $CONFIG_STATUS script. ##
15978 ## ----------------------------------- ##
15979 _ASEOF
15980 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15981
15982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15983 # Save the log message, to keep $0 and so on meaningful, and to
15984 # report actual input values of CONFIG_FILES etc. instead of their
15985 # values after options handling.
15986 ac_log="
15987 This file was extended by courier-authlib $as_me 0.66.1, which was
15988 generated by GNU Autoconf 2.69. Invocation command line was
15989
15990 CONFIG_FILES = $CONFIG_FILES
15991 CONFIG_HEADERS = $CONFIG_HEADERS
15992 CONFIG_LINKS = $CONFIG_LINKS
15993 CONFIG_COMMANDS = $CONFIG_COMMANDS
15994 $ $0 $@
15995
15996 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15997 "
15998
15999 _ACEOF
16000
16001 case $ac_config_files in *"
16002 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16003 esac
16004
16005 case $ac_config_headers in *"
16006 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16007 esac
16008
16009
16010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16011 # Files that config.status was made for.
16012 config_files="$ac_config_files"
16013 config_headers="$ac_config_headers"
16014 config_commands="$ac_config_commands"
16015
16016 _ACEOF
16017
16018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16019 ac_cs_usage="\
16020 \`$as_me' instantiates files and other configuration actions
16021 from templates according to the current configuration. Unless the files
16022 and actions are specified as TAGs, all are instantiated by default.
16023
16024 Usage: $0 [OPTION]... [TAG]...
16025
16026 -h, --help print this help, then exit
16027 -V, --version print version number and configuration settings, then exit
16028 --config print configuration, then exit
16029 -q, --quiet, --silent
16030 do not print progress messages
16031 -d, --debug don't remove temporary files
16032 --recheck update $as_me by reconfiguring in the same conditions
16033 --file=FILE[:TEMPLATE]
16034 instantiate the configuration file FILE
16035 --header=FILE[:TEMPLATE]
16036 instantiate the configuration header FILE
16037
16038 Configuration files:
16039 $config_files
16040
16041 Configuration headers:
16042 $config_headers
16043
16044 Configuration commands:
16045 $config_commands
16046
16047 Report bugs to <courier-users@lists.sourceforge.net>."
16048
16049 _ACEOF
16050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16051 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16052 ac_cs_version="\\
16053 courier-authlib config.status 0.66.1
16054 configured by $0, generated by GNU Autoconf 2.69,
16055 with options \\"\$ac_cs_config\\"
16056
16057 Copyright (C) 2012 Free Software Foundation, Inc.
16058 This config.status script is free software; the Free Software Foundation
16059 gives unlimited permission to copy, distribute and modify it."
16060
16061 ac_pwd='$ac_pwd'
16062 srcdir='$srcdir'
16063 INSTALL='$INSTALL'
16064 MKDIR_P='$MKDIR_P'
16065 AWK='$AWK'
16066 test -n "\$AWK" || AWK=awk
16067 _ACEOF
16068
16069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16070 # The default lists apply if the user does not specify any file.
16071 ac_need_defaults=:
16072 while test $# != 0
16073 do
16074 case $1 in
16075 --*=?*)
16076 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16077 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16078 ac_shift=:
16079 ;;
16080 --*=)
16081 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16082 ac_optarg=
16083 ac_shift=:
16084 ;;
16085 *)
16086 ac_option=$1
16087 ac_optarg=$2
16088 ac_shift=shift
16089 ;;
16090 esac
16091
16092 case $ac_option in
16093 # Handling of the options.
16094 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16095 ac_cs_recheck=: ;;
16096 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16097 $as_echo "$ac_cs_version"; exit ;;
16098 --config | --confi | --conf | --con | --co | --c )
16099 $as_echo "$ac_cs_config"; exit ;;
16100 --debug | --debu | --deb | --de | --d | -d )
16101 debug=: ;;
16102 --file | --fil | --fi | --f )
16103 $ac_shift
16104 case $ac_optarg in
16105 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16106 '') as_fn_error $? "missing file argument" ;;
16107 esac
16108 as_fn_append CONFIG_FILES " '$ac_optarg'"
16109 ac_need_defaults=false;;
16110 --header | --heade | --head | --hea )
16111 $ac_shift
16112 case $ac_optarg in
16113 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16114 esac
16115 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16116 ac_need_defaults=false;;
16117 --he | --h)
16118 # Conflict between --help and --header
16119 as_fn_error $? "ambiguous option: \`$1'
16120 Try \`$0 --help' for more information.";;
16121 --help | --hel | -h )
16122 $as_echo "$ac_cs_usage"; exit ;;
16123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16124 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16125 ac_cs_silent=: ;;
16126
16127 # This is an error.
16128 -*) as_fn_error $? "unrecognized option: \`$1'
16129 Try \`$0 --help' for more information." ;;
16130
16131 *) as_fn_append ac_config_targets " $1"
16132 ac_need_defaults=false ;;
16133
16134 esac
16135 shift
16136 done
16137
16138 ac_configure_extra_args=
16139
16140 if $ac_cs_silent; then
16141 exec 6>/dev/null
16142 ac_configure_extra_args="$ac_configure_extra_args --silent"
16143 fi
16144
16145 _ACEOF
16146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16147 if \$ac_cs_recheck; then
16148 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16149 shift
16150 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16151 CONFIG_SHELL='$SHELL'
16152 export CONFIG_SHELL
16153 exec "\$@"
16154 fi
16155
16156 _ACEOF
16157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16158 exec 5>>config.log
16159 {
16160 echo
16161 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16162 ## Running $as_me. ##
16163 _ASBOX
16164 $as_echo "$ac_log"
16165 } >&5
16166
16167 _ACEOF
16168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16169 #
16170 # INIT-COMMANDS
16171 #
16172 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16173
16174
16175 # The HP-UX ksh and POSIX shell print the target directory to stdout
16176 # if CDPATH is set.
16177 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16178
16179 sed_quote_subst='$sed_quote_subst'
16180 double_quote_subst='$double_quote_subst'
16181 delay_variable_subst='$delay_variable_subst'
16182 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16183 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16184 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16185 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16186 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16187 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16188 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16189 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16190 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16191 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16192 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16193 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16194 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16195 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16196 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16197 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16198 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16199 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16200 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16201 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16202 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16203 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16204 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16205 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16206 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16207 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16208 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16209 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16210 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16211 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16212 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16213 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16214 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16215 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16216 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16217 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16218 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16219 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16220 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16221 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16222 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16223 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16224 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16225 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16226 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16227 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16228 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16229 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16230 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16231 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16232 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16233 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16234 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16235 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16236 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16237 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16238 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"`'
16239 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16240 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16241 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16242 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16243 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16244 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16245 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16246 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16247 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16248 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16249 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16250 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16251 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16252 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16253 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16254 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16255 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16256 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16257 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16258 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16259 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16260 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16261 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16262 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16263 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16264 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16265 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16266 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16267 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16268 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16269 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16270 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16271 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16272 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16273 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16274 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16275 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16276 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16277 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16278 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16279 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16280 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16281 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16282 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16283 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16284 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16285 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16286 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16287 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16288 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16289 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16290 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16291 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16292 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16293 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16294 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16295 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16296 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16297 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16298 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16299 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16300 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16301 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16302 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16303 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16304 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16305 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16306 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16307 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16308 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16309 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16310 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16311 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16312
16313 LTCC='$LTCC'
16314 LTCFLAGS='$LTCFLAGS'
16315 compiler='$compiler_DEFAULT'
16316
16317 # A function that is used when there is no print builtin or printf.
16318 func_fallback_echo ()
16319 {
16320 eval 'cat <<_LTECHO_EOF
16321 \$1
16322 _LTECHO_EOF'
16323 }
16324
16325 # Quote evaled strings.
16326 for var in SHELL \
16327 ECHO \
16328 PATH_SEPARATOR \
16329 SED \
16330 GREP \
16331 EGREP \
16332 FGREP \
16333 LD \
16334 NM \
16335 LN_S \
16336 lt_SP2NL \
16337 lt_NL2SP \
16338 reload_flag \
16339 OBJDUMP \
16340 deplibs_check_method \
16341 file_magic_cmd \
16342 file_magic_glob \
16343 want_nocaseglob \
16344 DLLTOOL \
16345 sharedlib_from_linklib_cmd \
16346 AR \
16347 AR_FLAGS \
16348 archiver_list_spec \
16349 STRIP \
16350 RANLIB \
16351 CC \
16352 CFLAGS \
16353 compiler \
16354 lt_cv_sys_global_symbol_pipe \
16355 lt_cv_sys_global_symbol_to_cdecl \
16356 lt_cv_sys_global_symbol_to_c_name_address \
16357 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16358 nm_file_list_spec \
16359 lt_prog_compiler_no_builtin_flag \
16360 lt_prog_compiler_pic \
16361 lt_prog_compiler_wl \
16362 lt_prog_compiler_static \
16363 lt_cv_prog_compiler_c_o \
16364 need_locks \
16365 MANIFEST_TOOL \
16366 DSYMUTIL \
16367 NMEDIT \
16368 LIPO \
16369 OTOOL \
16370 OTOOL64 \
16371 shrext_cmds \
16372 export_dynamic_flag_spec \
16373 whole_archive_flag_spec \
16374 compiler_needs_object \
16375 with_gnu_ld \
16376 allow_undefined_flag \
16377 no_undefined_flag \
16378 hardcode_libdir_flag_spec \
16379 hardcode_libdir_separator \
16380 exclude_expsyms \
16381 include_expsyms \
16382 file_list_spec \
16383 variables_saved_for_relink \
16384 libname_spec \
16385 library_names_spec \
16386 soname_spec \
16387 install_override_mode \
16388 finish_eval \
16389 old_striplib \
16390 striplib; do
16391 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16392 *[\\\\\\\`\\"\\\$]*)
16393 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16394 ;;
16395 *)
16396 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16397 ;;
16398 esac
16399 done
16400
16401 # Double-quote double-evaled strings.
16402 for var in reload_cmds \
16403 old_postinstall_cmds \
16404 old_postuninstall_cmds \
16405 old_archive_cmds \
16406 extract_expsyms_cmds \
16407 old_archive_from_new_cmds \
16408 old_archive_from_expsyms_cmds \
16409 archive_cmds \
16410 archive_expsym_cmds \
16411 module_cmds \
16412 module_expsym_cmds \
16413 export_symbols_cmds \
16414 prelink_cmds \
16415 postlink_cmds \
16416 postinstall_cmds \
16417 postuninstall_cmds \
16418 finish_cmds \
16419 sys_lib_search_path_spec \
16420 sys_lib_dlsearch_path_spec; do
16421 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16422 *[\\\\\\\`\\"\\\$]*)
16423 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16424 ;;
16425 *)
16426 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16427 ;;
16428 esac
16429 done
16430
16431 ac_aux_dir='$ac_aux_dir'
16432 xsi_shell='$xsi_shell'
16433 lt_shell_append='$lt_shell_append'
16434
16435 # See if we are running on zsh, and set the options which allow our
16436 # commands through without removal of \ escapes INIT.
16437 if test -n "\${ZSH_VERSION+set}" ; then
16438 setopt NO_GLOB_SUBST
16439 fi
16440
16441
16442 PACKAGE='$PACKAGE'
16443 VERSION='$VERSION'
16444 TIMESTAMP='$TIMESTAMP'
16445 RM='$RM'
16446 ofile='$ofile'
16447
16448
16449
16450
16451 _ACEOF
16452
16453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16454
16455 # Handling of arguments.
16456 for ac_config_target in $ac_config_targets
16457 do
16458 case $ac_config_target in
16459 "courier_auth_config.h") CONFIG_HEADERS="$CONFIG_HEADERS courier_auth_config.h" ;;
16460 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16461 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16462 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16463 "authdaemond") CONFIG_FILES="$CONFIG_FILES authdaemond" ;;
16464 "authdaemonrc") CONFIG_FILES="$CONFIG_FILES authdaemonrc" ;;
16465 "authsystem.passwd") CONFIG_FILES="$CONFIG_FILES authsystem.passwd" ;;
16466 "README.authdebug.html") CONFIG_FILES="$CONFIG_FILES README.authdebug.html" ;;
16467 "dbobj.config") CONFIG_FILES="$CONFIG_FILES dbobj.config" ;;
16468 "dbobj.h") CONFIG_FILES="$CONFIG_FILES dbobj.h" ;;
16469 "authmigrate") CONFIG_FILES="$CONFIG_FILES authmigrate" ;;
16470 "courier-authlib.spec") CONFIG_FILES="$CONFIG_FILES courier-authlib.spec" ;;
16471 "courier-authlib.lpspec") CONFIG_FILES="$CONFIG_FILES courier-authlib.lpspec" ;;
16472 "courier-authlib.sysvinit") CONFIG_FILES="$CONFIG_FILES courier-authlib.sysvinit" ;;
16473 "courier-authlib.service") CONFIG_FILES="$CONFIG_FILES courier-authlib.service" ;;
16474 "userdb-test-cram-md5.pl") CONFIG_FILES="$CONFIG_FILES userdb-test-cram-md5.pl" ;;
16475
16476 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16477 esac
16478 done
16479
16480
16481 # If the user did not use the arguments to specify the items to instantiate,
16482 # then the envvar interface is used. Set only those that are not.
16483 # We use the long form for the default assignment because of an extremely
16484 # bizarre bug on SunOS 4.1.3.
16485 if $ac_need_defaults; then
16486 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16487 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16488 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16489 fi
16490
16491 # Have a temporary directory for convenience. Make it in the build tree
16492 # simply because there is no reason against having it here, and in addition,
16493 # creating and moving files from /tmp can sometimes cause problems.
16494 # Hook for its removal unless debugging.
16495 # Note that there is a small window in which the directory will not be cleaned:
16496 # after its creation but before its name has been assigned to `$tmp'.
16497 $debug ||
16498 {
16499 tmp= ac_tmp=
16500 trap 'exit_status=$?
16501 : "${ac_tmp:=$tmp}"
16502 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16503 ' 0
16504 trap 'as_fn_exit 1' 1 2 13 15
16505 }
16506 # Create a (secure) tmp directory for tmp files.
16507
16508 {
16509 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16510 test -d "$tmp"
16511 } ||
16512 {
16513 tmp=./conf$$-$RANDOM
16514 (umask 077 && mkdir "$tmp")
16515 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16516 ac_tmp=$tmp
16517
16518 # Set up the scripts for CONFIG_FILES section.
16519 # No need to generate them if there are no CONFIG_FILES.
16520 # This happens for instance with `./config.status config.h'.
16521 if test -n "$CONFIG_FILES"; then
16522
16523
16524 ac_cr=`echo X | tr X '\015'`
16525 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16526 # But we know of no other shell where ac_cr would be empty at this
16527 # point, so we can use a bashism as a fallback.
16528 if test "x$ac_cr" = x; then
16529 eval ac_cr=\$\'\\r\'
16530 fi
16531 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16532 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16533 ac_cs_awk_cr='\\r'
16534 else
16535 ac_cs_awk_cr=$ac_cr
16536 fi
16537
16538 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16539 _ACEOF
16540
16541
16542 {
16543 echo "cat >conf$$subs.awk <<_ACEOF" &&
16544 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16545 echo "_ACEOF"
16546 } >conf$$subs.sh ||
16547 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16548 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16549 ac_delim='%!_!# '
16550 for ac_last_try in false false false false false :; do
16551 . ./conf$$subs.sh ||
16552 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16553
16554 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16555 if test $ac_delim_n = $ac_delim_num; then
16556 break
16557 elif $ac_last_try; then
16558 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16559 else
16560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16561 fi
16562 done
16563 rm -f conf$$subs.sh
16564
16565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16566 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16567 _ACEOF
16568 sed -n '
16569 h
16570 s/^/S["/; s/!.*/"]=/
16571 p
16572 g
16573 s/^[^!]*!//
16574 :repl
16575 t repl
16576 s/'"$ac_delim"'$//
16577 t delim
16578 :nl
16579 h
16580 s/\(.\{148\}\)..*/\1/
16581 t more1
16582 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16583 p
16584 n
16585 b repl
16586 :more1
16587 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16588 p
16589 g
16590 s/.\{148\}//
16591 t nl
16592 :delim
16593 h
16594 s/\(.\{148\}\)..*/\1/
16595 t more2
16596 s/["\\]/\\&/g; s/^/"/; s/$/"/
16597 p
16598 b
16599 :more2
16600 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16601 p
16602 g
16603 s/.\{148\}//
16604 t delim
16605 ' <conf$$subs.awk | sed '
16606 /^[^""]/{
16607 N
16608 s/\n//
16609 }
16610 ' >>$CONFIG_STATUS || ac_write_fail=1
16611 rm -f conf$$subs.awk
16612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16613 _ACAWK
16614 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16615 for (key in S) S_is_set[key] = 1
16616 FS = "\a"
16617
16618 }
16619 {
16620 line = $ 0
16621 nfields = split(line, field, "@")
16622 substed = 0
16623 len = length(field[1])
16624 for (i = 2; i < nfields; i++) {
16625 key = field[i]
16626 keylen = length(key)
16627 if (S_is_set[key]) {
16628 value = S[key]
16629 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16630 len += length(value) + length(field[++i])
16631 substed = 1
16632 } else
16633 len += 1 + keylen
16634 }
16635
16636 print line
16637 }
16638
16639 _ACAWK
16640 _ACEOF
16641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16642 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16643 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16644 else
16645 cat
16646 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16647 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16648 _ACEOF
16649
16650 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16651 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16652 # trailing colons and then remove the whole line if VPATH becomes empty
16653 # (actually we leave an empty line to preserve line numbers).
16654 if test "x$srcdir" = x.; then
16655 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16656 h
16657 s///
16658 s/^/:/
16659 s/[ ]*$/:/
16660 s/:\$(srcdir):/:/g
16661 s/:\${srcdir}:/:/g
16662 s/:@srcdir@:/:/g
16663 s/^:*//
16664 s/:*$//
16665 x
16666 s/\(=[ ]*\).*/\1/
16667 G
16668 s/\n//
16669 s/^[^=]*=[ ]*$//
16670 }'
16671 fi
16672
16673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16674 fi # test -n "$CONFIG_FILES"
16675
16676 # Set up the scripts for CONFIG_HEADERS section.
16677 # No need to generate them if there are no CONFIG_HEADERS.
16678 # This happens for instance with `./config.status Makefile'.
16679 if test -n "$CONFIG_HEADERS"; then
16680 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16681 BEGIN {
16682 _ACEOF
16683
16684 # Transform confdefs.h into an awk script `defines.awk', embedded as
16685 # here-document in config.status, that substitutes the proper values into
16686 # config.h.in to produce config.h.
16687
16688 # Create a delimiter string that does not exist in confdefs.h, to ease
16689 # handling of long lines.
16690 ac_delim='%!_!# '
16691 for ac_last_try in false false :; do
16692 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16693 if test -z "$ac_tt"; then
16694 break
16695 elif $ac_last_try; then
16696 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16697 else
16698 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16699 fi
16700 done
16701
16702 # For the awk script, D is an array of macro values keyed by name,
16703 # likewise P contains macro parameters if any. Preserve backslash
16704 # newline sequences.
16705
16706 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16707 sed -n '
16708 s/.\{148\}/&'"$ac_delim"'/g
16709 t rset
16710 :rset
16711 s/^[ ]*#[ ]*define[ ][ ]*/ /
16712 t def
16713 d
16714 :def
16715 s/\\$//
16716 t bsnl
16717 s/["\\]/\\&/g
16718 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16719 D["\1"]=" \3"/p
16720 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16721 d
16722 :bsnl
16723 s/["\\]/\\&/g
16724 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16725 D["\1"]=" \3\\\\\\n"\\/p
16726 t cont
16727 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16728 t cont
16729 d
16730 :cont
16731 n
16732 s/.\{148\}/&'"$ac_delim"'/g
16733 t clear
16734 :clear
16735 s/\\$//
16736 t bsnlc
16737 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16738 d
16739 :bsnlc
16740 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16741 b cont
16742 ' <confdefs.h | sed '
16743 s/'"$ac_delim"'/"\\\
16744 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16745
16746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16747 for (key in D) D_is_set[key] = 1
16748 FS = "\a"
16749 }
16750 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16751 line = \$ 0
16752 split(line, arg, " ")
16753 if (arg[1] == "#") {
16754 defundef = arg[2]
16755 mac1 = arg[3]
16756 } else {
16757 defundef = substr(arg[1], 2)
16758 mac1 = arg[2]
16759 }
16760 split(mac1, mac2, "(") #)
16761 macro = mac2[1]
16762 prefix = substr(line, 1, index(line, defundef) - 1)
16763 if (D_is_set[macro]) {
16764 # Preserve the white space surrounding the "#".
16765 print prefix "define", macro P[macro] D[macro]
16766 next
16767 } else {
16768 # Replace #undef with comments. This is necessary, for example,
16769 # in the case of _POSIX_SOURCE, which is predefined and required
16770 # on some systems where configure will not decide to define it.
16771 if (defundef == "undef") {
16772 print "/*", prefix defundef, macro, "*/"
16773 next
16774 }
16775 }
16776 }
16777 { print }
16778 _ACAWK
16779 _ACEOF
16780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16781 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16782 fi # test -n "$CONFIG_HEADERS"
16783
16784
16785 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16786 shift
16787 for ac_tag
16788 do
16789 case $ac_tag in
16790 :[FHLC]) ac_mode=$ac_tag; continue;;
16791 esac
16792 case $ac_mode$ac_tag in
16793 :[FHL]*:*);;
16794 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16795 :[FH]-) ac_tag=-:-;;
16796 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16797 esac
16798 ac_save_IFS=$IFS
16799 IFS=:
16800 set x $ac_tag
16801 IFS=$ac_save_IFS
16802 shift
16803 ac_file=$1
16804 shift
16805
16806 case $ac_mode in
16807 :L) ac_source=$1;;
16808 :[FH])
16809 ac_file_inputs=
16810 for ac_f
16811 do
16812 case $ac_f in
16813 -) ac_f="$ac_tmp/stdin";;
16814 *) # Look for the file first in the build tree, then in the source tree
16815 # (if the path is not absolute). The absolute path cannot be DOS-style,
16816 # because $ac_f cannot contain `:'.
16817 test -f "$ac_f" ||
16818 case $ac_f in
16819 [\\/$]*) false;;
16820 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16821 esac ||
16822 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16823 esac
16824 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16825 as_fn_append ac_file_inputs " '$ac_f'"
16826 done
16827
16828 # Let's still pretend it is `configure' which instantiates (i.e., don't
16829 # use $as_me), people would be surprised to read:
16830 # /* config.h. Generated by config.status. */
16831 configure_input='Generated from '`
16832 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16833 `' by configure.'
16834 if test x"$ac_file" != x-; then
16835 configure_input="$ac_file. $configure_input"
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16837 $as_echo "$as_me: creating $ac_file" >&6;}
16838 fi
16839 # Neutralize special characters interpreted by sed in replacement strings.
16840 case $configure_input in #(
16841 *\&* | *\|* | *\\* )
16842 ac_sed_conf_input=`$as_echo "$configure_input" |
16843 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16844 *) ac_sed_conf_input=$configure_input;;
16845 esac
16846
16847 case $ac_tag in
16848 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16849 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16850 esac
16851 ;;
16852 esac
16853
16854 ac_dir=`$as_dirname -- "$ac_file" ||
16855 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16856 X"$ac_file" : 'X\(//\)[^/]' \| \
16857 X"$ac_file" : 'X\(//\)$' \| \
16858 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16859 $as_echo X"$ac_file" |
16860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16861 s//\1/
16862 q
16863 }
16864 /^X\(\/\/\)[^/].*/{
16865 s//\1/
16866 q
16867 }
16868 /^X\(\/\/\)$/{
16869 s//\1/
16870 q
16871 }
16872 /^X\(\/\).*/{
16873 s//\1/
16874 q
16875 }
16876 s/.*/./; q'`
16877 as_dir="$ac_dir"; as_fn_mkdir_p
16878 ac_builddir=.
16879
16880 case "$ac_dir" in
16881 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16882 *)
16883 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16884 # A ".." for each directory in $ac_dir_suffix.
16885 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16886 case $ac_top_builddir_sub in
16887 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16888 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16889 esac ;;
16890 esac
16891 ac_abs_top_builddir=$ac_pwd
16892 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16893 # for backward compatibility:
16894 ac_top_builddir=$ac_top_build_prefix
16895
16896 case $srcdir in
16897 .) # We are building in place.
16898 ac_srcdir=.
16899 ac_top_srcdir=$ac_top_builddir_sub
16900 ac_abs_top_srcdir=$ac_pwd ;;
16901 [\\/]* | ?:[\\/]* ) # Absolute name.
16902 ac_srcdir=$srcdir$ac_dir_suffix;
16903 ac_top_srcdir=$srcdir
16904 ac_abs_top_srcdir=$srcdir ;;
16905 *) # Relative name.
16906 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16907 ac_top_srcdir=$ac_top_build_prefix$srcdir
16908 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16909 esac
16910 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16911
16912
16913 case $ac_mode in
16914 :F)
16915 #
16916 # CONFIG_FILE
16917 #
16918
16919 case $INSTALL in
16920 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16921 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16922 esac
16923 ac_MKDIR_P=$MKDIR_P
16924 case $MKDIR_P in
16925 [\\/$]* | ?:[\\/]* ) ;;
16926 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16927 esac
16928 _ACEOF
16929
16930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16931 # If the template does not know about datarootdir, expand it.
16932 # FIXME: This hack should be removed a few years after 2.60.
16933 ac_datarootdir_hack=; ac_datarootdir_seen=
16934 ac_sed_dataroot='
16935 /datarootdir/ {
16936 p
16937 q
16938 }
16939 /@datadir@/p
16940 /@docdir@/p
16941 /@infodir@/p
16942 /@localedir@/p
16943 /@mandir@/p'
16944 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16945 *datarootdir*) ac_datarootdir_seen=yes;;
16946 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16948 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16949 _ACEOF
16950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16951 ac_datarootdir_hack='
16952 s&@datadir@&$datadir&g
16953 s&@docdir@&$docdir&g
16954 s&@infodir@&$infodir&g
16955 s&@localedir@&$localedir&g
16956 s&@mandir@&$mandir&g
16957 s&\\\${datarootdir}&$datarootdir&g' ;;
16958 esac
16959 _ACEOF
16960
16961 # Neutralize VPATH when `$srcdir' = `.'.
16962 # Shell code in configure.ac might set extrasub.
16963 # FIXME: do we really want to maintain this feature?
16964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16965 ac_sed_extra="$ac_vpsub
16966 $extrasub
16967 _ACEOF
16968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16969 :t
16970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16971 s|@configure_input@|$ac_sed_conf_input|;t t
16972 s&@top_builddir@&$ac_top_builddir_sub&;t t
16973 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16974 s&@srcdir@&$ac_srcdir&;t t
16975 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16976 s&@top_srcdir@&$ac_top_srcdir&;t t
16977 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16978 s&@builddir@&$ac_builddir&;t t
16979 s&@abs_builddir@&$ac_abs_builddir&;t t
16980 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16981 s&@INSTALL@&$ac_INSTALL&;t t
16982 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16983 $ac_datarootdir_hack
16984 "
16985 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16986 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16987
16988 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16989 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16990 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16991 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16993 which seems to be undefined. Please make sure it is defined" >&5
16994 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16995 which seems to be undefined. Please make sure it is defined" >&2;}
16996
16997 rm -f "$ac_tmp/stdin"
16998 case $ac_file in
16999 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17000 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17001 esac \
17002 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17003 ;;
17004 :H)
17005 #
17006 # CONFIG_HEADER
17007 #
17008 if test x"$ac_file" != x-; then
17009 {
17010 $as_echo "/* $configure_input */" \
17011 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17012 } >"$ac_tmp/config.h" \
17013 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17014 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17016 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17017 else
17018 rm -f "$ac_file"
17019 mv "$ac_tmp/config.h" "$ac_file" \
17020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17021 fi
17022 else
17023 $as_echo "/* $configure_input */" \
17024 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17025 || as_fn_error $? "could not create -" "$LINENO" 5
17026 fi
17027 # Compute "$ac_file"'s index in $config_headers.
17028 _am_arg="$ac_file"
17029 _am_stamp_count=1
17030 for _am_header in $config_headers :; do
17031 case $_am_header in
17032 $_am_arg | $_am_arg:* )
17033 break ;;
17034 * )
17035 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17036 esac
17037 done
17038 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17039 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17040 X"$_am_arg" : 'X\(//\)[^/]' \| \
17041 X"$_am_arg" : 'X\(//\)$' \| \
17042 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17043 $as_echo X"$_am_arg" |
17044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17045 s//\1/
17046 q
17047 }
17048 /^X\(\/\/\)[^/].*/{
17049 s//\1/
17050 q
17051 }
17052 /^X\(\/\/\)$/{
17053 s//\1/
17054 q
17055 }
17056 /^X\(\/\).*/{
17057 s//\1/
17058 q
17059 }
17060 s/.*/./; q'`/stamp-h$_am_stamp_count
17061 ;;
17062
17063 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17064 $as_echo "$as_me: executing $ac_file commands" >&6;}
17065 ;;
17066 esac
17067
17068
17069 case $ac_file$ac_mode in
17070 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17071 # Older Autoconf quotes --file arguments for eval, but not when files
17072 # are listed without --file. Let's play safe and only enable the eval
17073 # if we detect the quoting.
17074 case $CONFIG_FILES in
17075 *\'*) eval set x "$CONFIG_FILES" ;;
17076 *) set x $CONFIG_FILES ;;
17077 esac
17078 shift
17079 for mf
17080 do
17081 # Strip MF so we end up with the name of the file.
17082 mf=`echo "$mf" | sed -e 's/:.*$//'`
17083 # Check whether this is an Automake generated Makefile or not.
17084 # We used to match only the files named 'Makefile.in', but
17085 # some people rename them; so instead we look at the file content.
17086 # Grep'ing the first line is not enough: some people post-process
17087 # each Makefile.in and add a new line on top of each file to say so.
17088 # Grep'ing the whole file is not good either: AIX grep has a line
17089 # limit of 2048, but all sed's we know have understand at least 4000.
17090 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17091 dirpart=`$as_dirname -- "$mf" ||
17092 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17093 X"$mf" : 'X\(//\)[^/]' \| \
17094 X"$mf" : 'X\(//\)$' \| \
17095 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17096 $as_echo X"$mf" |
17097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17098 s//\1/
17099 q
17100 }
17101 /^X\(\/\/\)[^/].*/{
17102 s//\1/
17103 q
17104 }
17105 /^X\(\/\/\)$/{
17106 s//\1/
17107 q
17108 }
17109 /^X\(\/\).*/{
17110 s//\1/
17111 q
17112 }
17113 s/.*/./; q'`
17114 else
17115 continue
17116 fi
17117 # Extract the definition of DEPDIR, am__include, and am__quote
17118 # from the Makefile without running 'make'.
17119 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17120 test -z "$DEPDIR" && continue
17121 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17122 test -z "$am__include" && continue
17123 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17124 # Find all dependency output files, they are included files with
17125 # $(DEPDIR) in their names. We invoke sed twice because it is the
17126 # simplest approach to changing $(DEPDIR) to its actual value in the
17127 # expansion.
17128 for file in `sed -n "
17129 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17130 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17131 # Make sure the directory exists.
17132 test -f "$dirpart/$file" && continue
17133 fdir=`$as_dirname -- "$file" ||
17134 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17135 X"$file" : 'X\(//\)[^/]' \| \
17136 X"$file" : 'X\(//\)$' \| \
17137 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17138 $as_echo X"$file" |
17139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17140 s//\1/
17141 q
17142 }
17143 /^X\(\/\/\)[^/].*/{
17144 s//\1/
17145 q
17146 }
17147 /^X\(\/\/\)$/{
17148 s//\1/
17149 q
17150 }
17151 /^X\(\/\).*/{
17152 s//\1/
17153 q
17154 }
17155 s/.*/./; q'`
17156 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17157 # echo "creating $dirpart/$file"
17158 echo '# dummy' > "$dirpart/$file"
17159 done
17160 done
17161 }
17162 ;;
17163 "libtool":C)
17164
17165 # See if we are running on zsh, and set the options which allow our
17166 # commands through without removal of \ escapes.
17167 if test -n "${ZSH_VERSION+set}" ; then
17168 setopt NO_GLOB_SUBST
17169 fi
17170
17171 cfgfile="${ofile}T"
17172 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17173 $RM "$cfgfile"
17174
17175 cat <<_LT_EOF >> "$cfgfile"
17176 #! $SHELL
17177
17178 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17179 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17180 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17181 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17182 #
17183 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17184 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17185 # Foundation, Inc.
17186 # Written by Gordon Matzigkeit, 1996
17187 #
17188 # This file is part of GNU Libtool.
17189 #
17190 # GNU Libtool is free software; you can redistribute it and/or
17191 # modify it under the terms of the GNU General Public License as
17192 # published by the Free Software Foundation; either version 2 of
17193 # the License, or (at your option) any later version.
17194 #
17195 # As a special exception to the GNU General Public License,
17196 # if you distribute this file as part of a program or library that
17197 # is built using GNU Libtool, you may include this file under the
17198 # same distribution terms that you use for the rest of that program.
17199 #
17200 # GNU Libtool is distributed in the hope that it will be useful,
17201 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17202 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17203 # GNU General Public License for more details.
17204 #
17205 # You should have received a copy of the GNU General Public License
17206 # along with GNU Libtool; see the file COPYING. If not, a copy
17207 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17208 # obtained by writing to the Free Software Foundation, Inc.,
17209 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17210
17211
17212 # The names of the tagged configurations supported by this script.
17213 available_tags=""
17214
17215 # ### BEGIN LIBTOOL CONFIG
17216
17217 # Which release of libtool.m4 was used?
17218 macro_version=$macro_version
17219 macro_revision=$macro_revision
17220
17221 # Whether or not to build shared libraries.
17222 build_libtool_libs=$enable_shared
17223
17224 # Whether or not to build static libraries.
17225 build_old_libs=$enable_static
17226
17227 # What type of objects to build.
17228 pic_mode=$pic_mode
17229
17230 # Whether or not to optimize for fast installation.
17231 fast_install=$enable_fast_install
17232
17233 # Shell to use when invoking shell scripts.
17234 SHELL=$lt_SHELL
17235
17236 # An echo program that protects backslashes.
17237 ECHO=$lt_ECHO
17238
17239 # The PATH separator for the build system.
17240 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17241
17242 # The host system.
17243 host_alias=$host_alias
17244 host=$host
17245 host_os=$host_os
17246
17247 # The build system.
17248 build_alias=$build_alias
17249 build=$build
17250 build_os=$build_os
17251
17252 # A sed program that does not truncate output.
17253 SED=$lt_SED
17254
17255 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17256 Xsed="\$SED -e 1s/^X//"
17257
17258 # A grep program that handles long lines.
17259 GREP=$lt_GREP
17260
17261 # An ERE matcher.
17262 EGREP=$lt_EGREP
17263
17264 # A literal string matcher.
17265 FGREP=$lt_FGREP
17266
17267 # A BSD- or MS-compatible name lister.
17268 NM=$lt_NM
17269
17270 # Whether we need soft or hard links.
17271 LN_S=$lt_LN_S
17272
17273 # What is the maximum length of a command?
17274 max_cmd_len=$max_cmd_len
17275
17276 # Object file suffix (normally "o").
17277 objext=$ac_objext
17278
17279 # Executable file suffix (normally "").
17280 exeext=$exeext
17281
17282 # whether the shell understands "unset".
17283 lt_unset=$lt_unset
17284
17285 # turn spaces into newlines.
17286 SP2NL=$lt_lt_SP2NL
17287
17288 # turn newlines into spaces.
17289 NL2SP=$lt_lt_NL2SP
17290
17291 # convert \$build file names to \$host format.
17292 to_host_file_cmd=$lt_cv_to_host_file_cmd
17293
17294 # convert \$build files to toolchain format.
17295 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17296
17297 # An object symbol dumper.
17298 OBJDUMP=$lt_OBJDUMP
17299
17300 # Method to check whether dependent libraries are shared objects.
17301 deplibs_check_method=$lt_deplibs_check_method
17302
17303 # Command to use when deplibs_check_method = "file_magic".
17304 file_magic_cmd=$lt_file_magic_cmd
17305
17306 # How to find potential files when deplibs_check_method = "file_magic".
17307 file_magic_glob=$lt_file_magic_glob
17308
17309 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17310 want_nocaseglob=$lt_want_nocaseglob
17311
17312 # DLL creation program.
17313 DLLTOOL=$lt_DLLTOOL
17314
17315 # Command to associate shared and link libraries.
17316 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17317
17318 # The archiver.
17319 AR=$lt_AR
17320
17321 # Flags to create an archive.
17322 AR_FLAGS=$lt_AR_FLAGS
17323
17324 # How to feed a file listing to the archiver.
17325 archiver_list_spec=$lt_archiver_list_spec
17326
17327 # A symbol stripping program.
17328 STRIP=$lt_STRIP
17329
17330 # Commands used to install an old-style archive.
17331 RANLIB=$lt_RANLIB
17332 old_postinstall_cmds=$lt_old_postinstall_cmds
17333 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17334
17335 # Whether to use a lock for old archive extraction.
17336 lock_old_archive_extraction=$lock_old_archive_extraction
17337
17338 # A C compiler.
17339 LTCC=$lt_CC
17340
17341 # LTCC compiler flags.
17342 LTCFLAGS=$lt_CFLAGS
17343
17344 # Take the output of nm and produce a listing of raw symbols and C names.
17345 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17346
17347 # Transform the output of nm in a proper C declaration.
17348 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17349
17350 # Transform the output of nm in a C name address pair.
17351 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17352
17353 # Transform the output of nm in a C name address pair when lib prefix is needed.
17354 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17355
17356 # Specify filename containing input files for \$NM.
17357 nm_file_list_spec=$lt_nm_file_list_spec
17358
17359 # The root where to search for dependent libraries,and in which our libraries should be installed.
17360 lt_sysroot=$lt_sysroot
17361
17362 # The name of the directory that contains temporary libtool files.
17363 objdir=$objdir
17364
17365 # Used to examine libraries when file_magic_cmd begins with "file".
17366 MAGIC_CMD=$MAGIC_CMD
17367
17368 # Must we lock files when doing compilation?
17369 need_locks=$lt_need_locks
17370
17371 # Manifest tool.
17372 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17373
17374 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17375 DSYMUTIL=$lt_DSYMUTIL
17376
17377 # Tool to change global to local symbols on Mac OS X.
17378 NMEDIT=$lt_NMEDIT
17379
17380 # Tool to manipulate fat objects and archives on Mac OS X.
17381 LIPO=$lt_LIPO
17382
17383 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17384 OTOOL=$lt_OTOOL
17385
17386 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17387 OTOOL64=$lt_OTOOL64
17388
17389 # Old archive suffix (normally "a").
17390 libext=$libext
17391
17392 # Shared library suffix (normally ".so").
17393 shrext_cmds=$lt_shrext_cmds
17394
17395 # The commands to extract the exported symbol list from a shared archive.
17396 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17397
17398 # Variables whose values should be saved in libtool wrapper scripts and
17399 # restored at link time.
17400 variables_saved_for_relink=$lt_variables_saved_for_relink
17401
17402 # Do we need the "lib" prefix for modules?
17403 need_lib_prefix=$need_lib_prefix
17404
17405 # Do we need a version for libraries?
17406 need_version=$need_version
17407
17408 # Library versioning type.
17409 version_type=$version_type
17410
17411 # Shared library runtime path variable.
17412 runpath_var=$runpath_var
17413
17414 # Shared library path variable.
17415 shlibpath_var=$shlibpath_var
17416
17417 # Is shlibpath searched before the hard-coded library search path?
17418 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17419
17420 # Format of library name prefix.
17421 libname_spec=$lt_libname_spec
17422
17423 # List of archive names. First name is the real one, the rest are links.
17424 # The last name is the one that the linker finds with -lNAME
17425 library_names_spec=$lt_library_names_spec
17426
17427 # The coded name of the library, if different from the real name.
17428 soname_spec=$lt_soname_spec
17429
17430 # Permission mode override for installation of shared libraries.
17431 install_override_mode=$lt_install_override_mode
17432
17433 # Command to use after installation of a shared archive.
17434 postinstall_cmds=$lt_postinstall_cmds
17435
17436 # Command to use after uninstallation of a shared archive.
17437 postuninstall_cmds=$lt_postuninstall_cmds
17438
17439 # Commands used to finish a libtool library installation in a directory.
17440 finish_cmds=$lt_finish_cmds
17441
17442 # As "finish_cmds", except a single script fragment to be evaled but
17443 # not shown.
17444 finish_eval=$lt_finish_eval
17445
17446 # Whether we should hardcode library paths into libraries.
17447 hardcode_into_libs=$hardcode_into_libs
17448
17449 # Compile-time system search path for libraries.
17450 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17451
17452 # Run-time system search path for libraries.
17453 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17454
17455 # Whether dlopen is supported.
17456 dlopen_support=$enable_dlopen
17457
17458 # Whether dlopen of programs is supported.
17459 dlopen_self=$enable_dlopen_self
17460
17461 # Whether dlopen of statically linked programs is supported.
17462 dlopen_self_static=$enable_dlopen_self_static
17463
17464 # Commands to strip libraries.
17465 old_striplib=$lt_old_striplib
17466 striplib=$lt_striplib
17467
17468
17469 # The linker used to build libraries.
17470 LD=$lt_LD
17471
17472 # How to create reloadable object files.
17473 reload_flag=$lt_reload_flag
17474 reload_cmds=$lt_reload_cmds
17475
17476 # Commands used to build an old-style archive.
17477 old_archive_cmds=$lt_old_archive_cmds
17478
17479 # A language specific compiler.
17480 CC=$lt_compiler
17481
17482 # Is the compiler the GNU compiler?
17483 with_gcc=$GCC
17484
17485 # Compiler flag to turn off builtin functions.
17486 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17487
17488 # Additional compiler flags for building library objects.
17489 pic_flag=$lt_lt_prog_compiler_pic
17490
17491 # How to pass a linker flag through the compiler.
17492 wl=$lt_lt_prog_compiler_wl
17493
17494 # Compiler flag to prevent dynamic linking.
17495 link_static_flag=$lt_lt_prog_compiler_static
17496
17497 # Does compiler simultaneously support -c and -o options?
17498 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17499
17500 # Whether or not to add -lc for building shared libraries.
17501 build_libtool_need_lc=$archive_cmds_need_lc
17502
17503 # Whether or not to disallow shared libs when runtime libs are static.
17504 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17505
17506 # Compiler flag to allow reflexive dlopens.
17507 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17508
17509 # Compiler flag to generate shared objects directly from archives.
17510 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17511
17512 # Whether the compiler copes with passing no objects directly.
17513 compiler_needs_object=$lt_compiler_needs_object
17514
17515 # Create an old-style archive from a shared archive.
17516 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17517
17518 # Create a temporary old-style archive to link instead of a shared archive.
17519 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17520
17521 # Commands used to build a shared archive.
17522 archive_cmds=$lt_archive_cmds
17523 archive_expsym_cmds=$lt_archive_expsym_cmds
17524
17525 # Commands used to build a loadable module if different from building
17526 # a shared archive.
17527 module_cmds=$lt_module_cmds
17528 module_expsym_cmds=$lt_module_expsym_cmds
17529
17530 # Whether we are building with GNU ld or not.
17531 with_gnu_ld=$lt_with_gnu_ld
17532
17533 # Flag that allows shared libraries with undefined symbols to be built.
17534 allow_undefined_flag=$lt_allow_undefined_flag
17535
17536 # Flag that enforces no undefined symbols.
17537 no_undefined_flag=$lt_no_undefined_flag
17538
17539 # Flag to hardcode \$libdir into a binary during linking.
17540 # This must work even if \$libdir does not exist
17541 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17542
17543 # Whether we need a single "-rpath" flag with a separated argument.
17544 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17545
17546 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17547 # DIR into the resulting binary.
17548 hardcode_direct=$hardcode_direct
17549
17550 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17551 # DIR into the resulting binary and the resulting library dependency is
17552 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17553 # library is relocated.
17554 hardcode_direct_absolute=$hardcode_direct_absolute
17555
17556 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17557 # into the resulting binary.
17558 hardcode_minus_L=$hardcode_minus_L
17559
17560 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17561 # into the resulting binary.
17562 hardcode_shlibpath_var=$hardcode_shlibpath_var
17563
17564 # Set to "yes" if building a shared library automatically hardcodes DIR
17565 # into the library and all subsequent libraries and executables linked
17566 # against it.
17567 hardcode_automatic=$hardcode_automatic
17568
17569 # Set to yes if linker adds runtime paths of dependent libraries
17570 # to runtime path list.
17571 inherit_rpath=$inherit_rpath
17572
17573 # Whether libtool must link a program against all its dependency libraries.
17574 link_all_deplibs=$link_all_deplibs
17575
17576 # Set to "yes" if exported symbols are required.
17577 always_export_symbols=$always_export_symbols
17578
17579 # The commands to list exported symbols.
17580 export_symbols_cmds=$lt_export_symbols_cmds
17581
17582 # Symbols that should not be listed in the preloaded symbols.
17583 exclude_expsyms=$lt_exclude_expsyms
17584
17585 # Symbols that must always be exported.
17586 include_expsyms=$lt_include_expsyms
17587
17588 # Commands necessary for linking programs (against libraries) with templates.
17589 prelink_cmds=$lt_prelink_cmds
17590
17591 # Commands necessary for finishing linking programs.
17592 postlink_cmds=$lt_postlink_cmds
17593
17594 # Specify filename containing input files.
17595 file_list_spec=$lt_file_list_spec
17596
17597 # How to hardcode a shared library path into an executable.
17598 hardcode_action=$hardcode_action
17599
17600 # ### END LIBTOOL CONFIG
17601
17602 _LT_EOF
17603
17604 case $host_os in
17605 aix3*)
17606 cat <<\_LT_EOF >> "$cfgfile"
17607 # AIX sometimes has problems with the GCC collect2 program. For some
17608 # reason, if we set the COLLECT_NAMES environment variable, the problems
17609 # vanish in a puff of smoke.
17610 if test "X${COLLECT_NAMES+set}" != Xset; then
17611 COLLECT_NAMES=
17612 export COLLECT_NAMES
17613 fi
17614 _LT_EOF
17615 ;;
17616 esac
17617
17618
17619 ltmain="$ac_aux_dir/ltmain.sh"
17620
17621
17622 # We use sed instead of cat because bash on DJGPP gets confused if
17623 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17624 # text mode, it properly converts lines to CR/LF. This bash problem
17625 # is reportedly fixed, but why not run on old versions too?
17626 sed '$q' "$ltmain" >> "$cfgfile" \
17627 || (rm -f "$cfgfile"; exit 1)
17628
17629 if test x"$xsi_shell" = xyes; then
17630 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17631 func_dirname ()\
17632 {\
17633 \ case ${1} in\
17634 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17635 \ * ) func_dirname_result="${3}" ;;\
17636 \ esac\
17637 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17638 && mv -f "$cfgfile.tmp" "$cfgfile" \
17639 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17640 test 0 -eq $? || _lt_function_replace_fail=:
17641
17642
17643 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17644 func_basename ()\
17645 {\
17646 \ func_basename_result="${1##*/}"\
17647 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17648 && mv -f "$cfgfile.tmp" "$cfgfile" \
17649 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17650 test 0 -eq $? || _lt_function_replace_fail=:
17651
17652
17653 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17654 func_dirname_and_basename ()\
17655 {\
17656 \ case ${1} in\
17657 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17658 \ * ) func_dirname_result="${3}" ;;\
17659 \ esac\
17660 \ func_basename_result="${1##*/}"\
17661 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17662 && mv -f "$cfgfile.tmp" "$cfgfile" \
17663 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17664 test 0 -eq $? || _lt_function_replace_fail=:
17665
17666
17667 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17668 func_stripname ()\
17669 {\
17670 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17671 \ # positional parameters, so assign one to ordinary parameter first.\
17672 \ func_stripname_result=${3}\
17673 \ func_stripname_result=${func_stripname_result#"${1}"}\
17674 \ func_stripname_result=${func_stripname_result%"${2}"}\
17675 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17676 && mv -f "$cfgfile.tmp" "$cfgfile" \
17677 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17678 test 0 -eq $? || _lt_function_replace_fail=:
17679
17680
17681 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17682 func_split_long_opt ()\
17683 {\
17684 \ func_split_long_opt_name=${1%%=*}\
17685 \ func_split_long_opt_arg=${1#*=}\
17686 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17687 && mv -f "$cfgfile.tmp" "$cfgfile" \
17688 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17689 test 0 -eq $? || _lt_function_replace_fail=:
17690
17691
17692 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17693 func_split_short_opt ()\
17694 {\
17695 \ func_split_short_opt_arg=${1#??}\
17696 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17697 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17698 && mv -f "$cfgfile.tmp" "$cfgfile" \
17699 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17700 test 0 -eq $? || _lt_function_replace_fail=:
17701
17702
17703 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17704 func_lo2o ()\
17705 {\
17706 \ case ${1} in\
17707 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17708 \ *) func_lo2o_result=${1} ;;\
17709 \ esac\
17710 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17711 && mv -f "$cfgfile.tmp" "$cfgfile" \
17712 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17713 test 0 -eq $? || _lt_function_replace_fail=:
17714
17715
17716 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17717 func_xform ()\
17718 {\
17719 func_xform_result=${1%.*}.lo\
17720 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17721 && mv -f "$cfgfile.tmp" "$cfgfile" \
17722 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17723 test 0 -eq $? || _lt_function_replace_fail=:
17724
17725
17726 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17727 func_arith ()\
17728 {\
17729 func_arith_result=$(( $* ))\
17730 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17731 && mv -f "$cfgfile.tmp" "$cfgfile" \
17732 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17733 test 0 -eq $? || _lt_function_replace_fail=:
17734
17735
17736 sed -e '/^func_len ()$/,/^} # func_len /c\
17737 func_len ()\
17738 {\
17739 func_len_result=${#1}\
17740 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17741 && mv -f "$cfgfile.tmp" "$cfgfile" \
17742 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17743 test 0 -eq $? || _lt_function_replace_fail=:
17744
17745 fi
17746
17747 if test x"$lt_shell_append" = xyes; then
17748 sed -e '/^func_append ()$/,/^} # func_append /c\
17749 func_append ()\
17750 {\
17751 eval "${1}+=\\${2}"\
17752 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17753 && mv -f "$cfgfile.tmp" "$cfgfile" \
17754 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17755 test 0 -eq $? || _lt_function_replace_fail=:
17756
17757
17758 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17759 func_append_quoted ()\
17760 {\
17761 \ func_quote_for_eval "${2}"\
17762 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17763 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17764 && mv -f "$cfgfile.tmp" "$cfgfile" \
17765 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17766 test 0 -eq $? || _lt_function_replace_fail=:
17767
17768
17769 # Save a `func_append' function call where possible by direct use of '+='
17770 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17771 && mv -f "$cfgfile.tmp" "$cfgfile" \
17772 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17773 test 0 -eq $? || _lt_function_replace_fail=:
17774 else
17775 # Save a `func_append' function call even when '+=' is not available
17776 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17777 && mv -f "$cfgfile.tmp" "$cfgfile" \
17778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17779 test 0 -eq $? || _lt_function_replace_fail=:
17780 fi
17781
17782 if test x"$_lt_function_replace_fail" = x":"; then
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17784 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17785 fi
17786
17787
17788 mv -f "$cfgfile" "$ofile" ||
17789 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17790 chmod +x "$ofile"
17791
17792 ;;
17793
17794 esac
17795 done # for ac_tag
17796
17797
17798 as_fn_exit 0
17799 _ACEOF
17800 ac_clean_files=$ac_clean_files_save
17801
17802 test $ac_write_fail = 0 ||
17803 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17804
17805
17806 # configure is writing to config.log, and then calls config.status.
17807 # config.status does its own redirection, appending to config.log.
17808 # Unfortunately, on DOS this fails, as config.log is still kept open
17809 # by configure, so config.status won't be able to write to it; its
17810 # output is simply discarded. So we exec the FD to /dev/null,
17811 # effectively closing config.log, so it can be properly (re)opened and
17812 # appended to by config.status. When coming back to configure, we
17813 # need to make the FD available again.
17814 if test "$no_create" != yes; then
17815 ac_cs_success=:
17816 ac_config_status_args=
17817 test "$silent" = yes &&
17818 ac_config_status_args="$ac_config_status_args --quiet"
17819 exec 5>/dev/null
17820 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17821 exec 5>>config.log
17822 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17823 # would make configure fail if this is the last instruction.
17824 $ac_cs_success || as_fn_exit 1
17825 fi
17826
17827 #
17828 # CONFIG_SUBDIRS section.
17829 #
17830 if test "$no_recursion" != yes; then
17831
17832 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17833 # so they do not pile up.
17834 ac_sub_configure_args=
17835 ac_prev=
17836 eval "set x $ac_configure_args"
17837 shift
17838 for ac_arg
17839 do
17840 if test -n "$ac_prev"; then
17841 ac_prev=
17842 continue
17843 fi
17844 case $ac_arg in
17845 -cache-file | --cache-file | --cache-fil | --cache-fi \
17846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17847 ac_prev=cache_file ;;
17848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17850 | --c=*)
17851 ;;
17852 --config-cache | -C)
17853 ;;
17854 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17855 ac_prev=srcdir ;;
17856 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17857 ;;
17858 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17859 ac_prev=prefix ;;
17860 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17861 ;;
17862 --disable-option-checking)
17863 ;;
17864 *)
17865 case $ac_arg in
17866 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17867 esac
17868 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17869 esac
17870 done
17871
17872 # Always prepend --prefix to ensure using the same prefix
17873 # in subdir configurations.
17874 ac_arg="--prefix=$prefix"
17875 case $ac_arg in
17876 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17877 esac
17878 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17879
17880 # Pass --silent
17881 if test "$silent" = yes; then
17882 ac_sub_configure_args="--silent $ac_sub_configure_args"
17883 fi
17884
17885 # Always prepend --disable-option-checking to silence warnings, since
17886 # different subdirs can have different --enable and --with options.
17887 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17888
17889 ac_popdir=`pwd`
17890 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17891
17892 # Do not complain, so a configure script can configure whichever
17893 # parts of a large source tree are present.
17894 test -d "$srcdir/$ac_dir" || continue
17895
17896 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17897 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17898 $as_echo "$ac_msg" >&6
17899 as_dir="$ac_dir"; as_fn_mkdir_p
17900 ac_builddir=.
17901
17902 case "$ac_dir" in
17903 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17904 *)
17905 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17906 # A ".." for each directory in $ac_dir_suffix.
17907 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17908 case $ac_top_builddir_sub in
17909 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17910 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17911 esac ;;
17912 esac
17913 ac_abs_top_builddir=$ac_pwd
17914 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17915 # for backward compatibility:
17916 ac_top_builddir=$ac_top_build_prefix
17917
17918 case $srcdir in
17919 .) # We are building in place.
17920 ac_srcdir=.
17921 ac_top_srcdir=$ac_top_builddir_sub
17922 ac_abs_top_srcdir=$ac_pwd ;;
17923 [\\/]* | ?:[\\/]* ) # Absolute name.
17924 ac_srcdir=$srcdir$ac_dir_suffix;
17925 ac_top_srcdir=$srcdir
17926 ac_abs_top_srcdir=$srcdir ;;
17927 *) # Relative name.
17928 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17929 ac_top_srcdir=$ac_top_build_prefix$srcdir
17930 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17931 esac
17932 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17933
17934
17935 cd "$ac_dir"
17936
17937 # Check for guested configure; otherwise get Cygnus style configure.
17938 if test -f "$ac_srcdir/configure.gnu"; then
17939 ac_sub_configure=$ac_srcdir/configure.gnu
17940 elif test -f "$ac_srcdir/configure"; then
17941 ac_sub_configure=$ac_srcdir/configure
17942 elif test -f "$ac_srcdir/configure.in"; then
17943 # This should be Cygnus configure.
17944 ac_sub_configure=$ac_aux_dir/configure
17945 else
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17947 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17948 ac_sub_configure=
17949 fi
17950
17951 # The recursion is here.
17952 if test -n "$ac_sub_configure"; then
17953 # Make the cache file name correct relative to the subdirectory.
17954 case $cache_file in
17955 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17956 *) # Relative name.
17957 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17958 esac
17959
17960 { $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
17961 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17962 # The eval makes quoting arguments work.
17963 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17964 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17965 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17966 fi
17967
17968 cd "$ac_popdir"
17969 done
17970 fi
17971 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17973 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17974 fi
17975
17976