hcoop release
[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.69.0.
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.69.0'
598 PACKAGE_STRING='courier-authlib 0.69.0'
599 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
600 PACKAGE_URL=''
601
602 ac_unique_file="courierauth.h"
603 # Factoring default headers for most tests.
604 ac_includes_default="\
605 #include <stdio.h>
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
608 #endif
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
611 #endif
612 #ifdef STDC_HEADERS
613 # include <stdlib.h>
614 # include <stddef.h>
615 #else
616 # ifdef HAVE_STDLIB_H
617 # include <stdlib.h>
618 # endif
619 #endif
620 #ifdef HAVE_STRING_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 # include <memory.h>
623 # endif
624 # include <string.h>
625 #endif
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_UNISTD_H
636 # include <unistd.h>
637 #endif"
638
639 enable_option_checking=no
640 ac_subst_vars='ltdl_LTLIBOBJS
641 ltdl_LIBOBJS
642 am__EXEEXT_FALSE
643 am__EXEEXT_TRUE
644 LTLIBOBJS
645 LIBOBJS
646 HAVE_SGML_FALSE
647 HAVE_SGML_TRUE
648 REPOSITORY
649 mailgroup
650 mailuser
651 LIBM
652 authdaemonvar
653 authdaemonrc
654 CRYPTLIBS
655 LIBAUTHPIPE
656 HAVE_PIPE_FALSE
657 HAVE_PIPE_TRUE
658 authProg
659 LIBAUTHCUSTOM
660 HAVE_CUSTOM_FALSE
661 HAVE_CUSTOM_TRUE
662 HAVE_AUTHSQLITE_FALSE
663 HAVE_AUTHSQLITE_TRUE
664 LIBAUTHSQLITE
665 SQLITE_LIBS
666 authsqliterc
667 HAVE_AUTHMYSQL_FALSE
668 HAVE_AUTHMYSQL_TRUE
669 MYSQL_LIBS
670 LIBAUTHMYSQL
671 MYSQL_CONFIG
672 authmysqlrc
673 HAVE_AUTHPGSQL_FALSE
674 HAVE_AUTHPGSQL_TRUE
675 LIBAUTHPGSQL
676 PGSQL_LIBS
677 PG_CONFIG
678 authpgsqlrc
679 LIBAUTHPWD
680 LIBAUTHSHADOW
681 SHADOWLIBS
682 HAVE_LDAP_FALSE
683 HAVE_LDAP_TRUE
684 LIBAUTHLDAP
685 LDAPLIBS
686 authldaprc
687 LIBAUTHPAM
688 AUTHPAMCRYPT
689 LIBDL
690 userdb
691 LIBAUTHUSERDB
692 LIBDB
693 LIBGDBM
694 dblibrary
695 USE_DB
696 USE_GDBM
697 NETLIBS
698 PASSWD
699 EXPECT
700 COURIERCONFIG
701 PERL
702 LTDLOPEN
703 LT_CONFIG_H
704 subdirs
705 CONVENIENCE_LTDL_FALSE
706 CONVENIENCE_LTDL_TRUE
707 INSTALL_LTDL_FALSE
708 INSTALL_LTDL_TRUE
709 LT_ARGZ_H
710 sys_symbol_underscore
711 LIBADD_DL
712 LT_DLPREOPEN
713 LIBADD_DLD_LINK
714 LIBADD_SHL_LOAD
715 LIBADD_DLOPEN
716 LT_DLLOADERS
717 INCLTDL
718 LTDLINCL
719 LTDLDEPS
720 LIBLTDL
721 CXXCPP
722 LT_SYS_LIBRARY_PATH
723 OTOOL64
724 OTOOL
725 LIPO
726 NMEDIT
727 DSYMUTIL
728 MANIFEST_TOOL
729 RANLIB
730 ac_ct_AR
731 AR
732 DLLTOOL
733 OBJDUMP
734 NM
735 ac_ct_DUMPBIN
736 DUMPBIN
737 LD
738 FGREP
739 EGREP
740 GREP
741 SED
742 host_os
743 host_vendor
744 host_cpu
745 host
746 build_os
747 build_vendor
748 build_cpu
749 build
750 LIBTOOL
751 SYSCONFTOOL
752 SYSCONFTOOL_PERL
753 LN_S
754 CPP
755 am__fastdepCXX_FALSE
756 am__fastdepCXX_TRUE
757 CXXDEPMODE
758 ac_ct_CXX
759 CXXFLAGS
760 CXX
761 am__fastdepCC_FALSE
762 am__fastdepCC_TRUE
763 CCDEPMODE
764 am__nodep
765 AMDEPBACKSLASH
766 AMDEP_FALSE
767 AMDEP_TRUE
768 am__quote
769 am__include
770 DEPDIR
771 OBJEXT
772 EXEEXT
773 ac_ct_CC
774 CPPFLAGS
775 LDFLAGS
776 CFLAGS
777 CC
778 AM_BACKSLASH
779 AM_DEFAULT_VERBOSITY
780 AM_DEFAULT_V
781 AM_V
782 am__untar
783 am__tar
784 AMTAR
785 am__leading_dot
786 SET_MAKE
787 AWK
788 mkdir_p
789 MKDIR_P
790 INSTALL_STRIP_PROGRAM
791 STRIP
792 install_sh
793 MAKEINFO
794 AUTOHEADER
795 AUTOMAKE
796 AUTOCONF
797 ACLOCAL
798 VERSION
799 PACKAGE
800 CYGPATH_W
801 am__isrc
802 INSTALL_DATA
803 INSTALL_SCRIPT
804 INSTALL_PROGRAM
805 target_alias
806 host_alias
807 build_alias
808 LIBS
809 ECHO_T
810 ECHO_N
811 ECHO_C
812 DEFS
813 mandir
814 localedir
815 libdir
816 psdir
817 pdfdir
818 dvidir
819 htmldir
820 infodir
821 docdir
822 oldincludedir
823 includedir
824 localstatedir
825 sharedstatedir
826 sysconfdir
827 datadir
828 datarootdir
829 libexecdir
830 sbindir
831 bindir
832 program_transform_name
833 prefix
834 exec_prefix
835 PACKAGE_URL
836 PACKAGE_BUGREPORT
837 PACKAGE_STRING
838 PACKAGE_VERSION
839 PACKAGE_TARNAME
840 PACKAGE_NAME
841 PATH_SEPARATOR
842 SHELL'
843 ac_subst_files=''
844 ac_user_opts='
845 enable_option_checking
846 enable_silent_rules
847 enable_dependency_tracking
848 enable_shared
849 enable_static
850 with_pic
851 enable_fast_install
852 with_aix_soname
853 with_gnu_ld
854 with_sysroot
855 enable_libtool_lock
856 with_included_ltdl
857 with_ltdl_include
858 with_ltdl_lib
859 enable_ltdl_install
860 with_pkgconfdir
861 with_db
862 with_authuserdb
863 with_makedatprog
864 with_userdb
865 with_authpam
866 with_authpam_libraries
867 with_authldap
868 with_authldaprc
869 with_authpwd
870 with_authshadow
871 with_authpgsqlrc
872 with_authpgsql
873 with_pgsql_libs
874 with_pgsql_includes
875 with_authmysqlrc
876 with_authmysql
877 with_mysql_libs
878 with_mysql_includes
879 with_authsqliterc
880 with_authsqlite
881 with_sqlite_libs
882 with_sqlite_includes
883 with_authcustom
884 with_pipeprog
885 with_authpipe
886 with_authdaemonrc
887 with_authdaemonvar
888 with_mailuser
889 with_mailgroup
890 with_stdheaderdir
891 with_repository
892 '
893 ac_precious_vars='build_alias
894 host_alias
895 target_alias
896 CC
897 CFLAGS
898 LDFLAGS
899 LIBS
900 CPPFLAGS
901 CXX
902 CXXFLAGS
903 CCC
904 CPP
905 LT_SYS_LIBRARY_PATH
906 CXXCPP'
907 ac_subdirs_all='libltdl
908 libs/bdbobj libs/gdbmobj libs/md5 libs/sha1 libs/libhmac libs/numlib libs/makedat userdb libs/rfc822 libs/random128 libs/liblock liblog'
909
910 # Initialize some variables set by options.
911 ac_init_help=
912 ac_init_version=false
913 ac_unrecognized_opts=
914 ac_unrecognized_sep=
915 # The variables have the same names as the options, with
916 # dashes changed to underlines.
917 cache_file=/dev/null
918 exec_prefix=NONE
919 no_create=
920 no_recursion=
921 prefix=NONE
922 program_prefix=NONE
923 program_suffix=NONE
924 program_transform_name=s,x,x,
925 silent=
926 site=
927 srcdir=
928 verbose=
929 x_includes=NONE
930 x_libraries=NONE
931
932 # Installation directory options.
933 # These are left unexpanded so users can "make install exec_prefix=/foo"
934 # and all the variables that are supposed to be based on exec_prefix
935 # by default will actually change.
936 # Use braces instead of parens because sh, perl, etc. also accept them.
937 # (The list follows the same order as the GNU Coding Standards.)
938 bindir='${exec_prefix}/bin'
939 sbindir='${exec_prefix}/sbin'
940 libexecdir='${exec_prefix}/libexec'
941 datarootdir='${prefix}/share'
942 datadir='${datarootdir}'
943 sysconfdir='${prefix}/etc'
944 sharedstatedir='${prefix}/com'
945 localstatedir='${prefix}/var'
946 includedir='${prefix}/include'
947 oldincludedir='/usr/include'
948 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
949 infodir='${datarootdir}/info'
950 htmldir='${docdir}'
951 dvidir='${docdir}'
952 pdfdir='${docdir}'
953 psdir='${docdir}'
954 libdir='${exec_prefix}/lib'
955 localedir='${datarootdir}/locale'
956 mandir='${datarootdir}/man'
957
958 ac_prev=
959 ac_dashdash=
960 for ac_option
961 do
962 # If the previous option needs an argument, assign it.
963 if test -n "$ac_prev"; then
964 eval $ac_prev=\$ac_option
965 ac_prev=
966 continue
967 fi
968
969 case $ac_option in
970 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971 *=) ac_optarg= ;;
972 *) ac_optarg=yes ;;
973 esac
974
975 # Accept the important Cygnus configure options, so we can diagnose typos.
976
977 case $ac_dashdash$ac_option in
978 --)
979 ac_dashdash=yes ;;
980
981 -bindir | --bindir | --bindi | --bind | --bin | --bi)
982 ac_prev=bindir ;;
983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984 bindir=$ac_optarg ;;
985
986 -build | --build | --buil | --bui | --bu)
987 ac_prev=build_alias ;;
988 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989 build_alias=$ac_optarg ;;
990
991 -cache-file | --cache-file | --cache-fil | --cache-fi \
992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993 ac_prev=cache_file ;;
994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996 cache_file=$ac_optarg ;;
997
998 --config-cache | -C)
999 cache_file=config.cache ;;
1000
1001 -datadir | --datadir | --datadi | --datad)
1002 ac_prev=datadir ;;
1003 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004 datadir=$ac_optarg ;;
1005
1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007 | --dataroo | --dataro | --datar)
1008 ac_prev=datarootdir ;;
1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011 datarootdir=$ac_optarg ;;
1012
1013 -disable-* | --disable-*)
1014 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 as_fn_error $? "invalid feature name: $ac_useropt"
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1021 *"
1022 "enable_$ac_useropt"
1023 "*) ;;
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1026 esac
1027 eval enable_$ac_useropt=no ;;
1028
1029 -docdir | --docdir | --docdi | --doc | --do)
1030 ac_prev=docdir ;;
1031 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1032 docdir=$ac_optarg ;;
1033
1034 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1035 ac_prev=dvidir ;;
1036 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1037 dvidir=$ac_optarg ;;
1038
1039 -enable-* | --enable-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 as_fn_error $? "invalid feature name: $ac_useropt"
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1047 *"
1048 "enable_$ac_useropt"
1049 "*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=\$ac_optarg ;;
1054
1055 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1056 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1057 | --exec | --exe | --ex)
1058 ac_prev=exec_prefix ;;
1059 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1060 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1061 | --exec=* | --exe=* | --ex=*)
1062 exec_prefix=$ac_optarg ;;
1063
1064 -gas | --gas | --ga | --g)
1065 # Obsolete; use --with-gas.
1066 with_gas=yes ;;
1067
1068 -help | --help | --hel | --he | -h)
1069 ac_init_help=long ;;
1070 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1071 ac_init_help=recursive ;;
1072 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1073 ac_init_help=short ;;
1074
1075 -host | --host | --hos | --ho)
1076 ac_prev=host_alias ;;
1077 -host=* | --host=* | --hos=* | --ho=*)
1078 host_alias=$ac_optarg ;;
1079
1080 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1081 ac_prev=htmldir ;;
1082 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1083 | --ht=*)
1084 htmldir=$ac_optarg ;;
1085
1086 -includedir | --includedir | --includedi | --included | --include \
1087 | --includ | --inclu | --incl | --inc)
1088 ac_prev=includedir ;;
1089 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1090 | --includ=* | --inclu=* | --incl=* | --inc=*)
1091 includedir=$ac_optarg ;;
1092
1093 -infodir | --infodir | --infodi | --infod | --info | --inf)
1094 ac_prev=infodir ;;
1095 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1096 infodir=$ac_optarg ;;
1097
1098 -libdir | --libdir | --libdi | --libd)
1099 ac_prev=libdir ;;
1100 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1101 libdir=$ac_optarg ;;
1102
1103 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1104 | --libexe | --libex | --libe)
1105 ac_prev=libexecdir ;;
1106 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1107 | --libexe=* | --libex=* | --libe=*)
1108 libexecdir=$ac_optarg ;;
1109
1110 -localedir | --localedir | --localedi | --localed | --locale)
1111 ac_prev=localedir ;;
1112 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1113 localedir=$ac_optarg ;;
1114
1115 -localstatedir | --localstatedir | --localstatedi | --localstated \
1116 | --localstate | --localstat | --localsta | --localst | --locals)
1117 ac_prev=localstatedir ;;
1118 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1119 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1120 localstatedir=$ac_optarg ;;
1121
1122 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1123 ac_prev=mandir ;;
1124 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1125 mandir=$ac_optarg ;;
1126
1127 -nfp | --nfp | --nf)
1128 # Obsolete; use --without-fp.
1129 with_fp=no ;;
1130
1131 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1132 | --no-cr | --no-c | -n)
1133 no_create=yes ;;
1134
1135 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1136 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1137 no_recursion=yes ;;
1138
1139 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1140 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1141 | --oldin | --oldi | --old | --ol | --o)
1142 ac_prev=oldincludedir ;;
1143 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1144 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1145 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1146 oldincludedir=$ac_optarg ;;
1147
1148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1149 ac_prev=prefix ;;
1150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1151 prefix=$ac_optarg ;;
1152
1153 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1154 | --program-pre | --program-pr | --program-p)
1155 ac_prev=program_prefix ;;
1156 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1157 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1158 program_prefix=$ac_optarg ;;
1159
1160 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1161 | --program-suf | --program-su | --program-s)
1162 ac_prev=program_suffix ;;
1163 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1164 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1165 program_suffix=$ac_optarg ;;
1166
1167 -program-transform-name | --program-transform-name \
1168 | --program-transform-nam | --program-transform-na \
1169 | --program-transform-n | --program-transform- \
1170 | --program-transform | --program-transfor \
1171 | --program-transfo | --program-transf \
1172 | --program-trans | --program-tran \
1173 | --progr-tra | --program-tr | --program-t)
1174 ac_prev=program_transform_name ;;
1175 -program-transform-name=* | --program-transform-name=* \
1176 | --program-transform-nam=* | --program-transform-na=* \
1177 | --program-transform-n=* | --program-transform-=* \
1178 | --program-transform=* | --program-transfor=* \
1179 | --program-transfo=* | --program-transf=* \
1180 | --program-trans=* | --program-tran=* \
1181 | --progr-tra=* | --program-tr=* | --program-t=*)
1182 program_transform_name=$ac_optarg ;;
1183
1184 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1185 ac_prev=pdfdir ;;
1186 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1187 pdfdir=$ac_optarg ;;
1188
1189 -psdir | --psdir | --psdi | --psd | --ps)
1190 ac_prev=psdir ;;
1191 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1192 psdir=$ac_optarg ;;
1193
1194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1195 | -silent | --silent | --silen | --sile | --sil)
1196 silent=yes ;;
1197
1198 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1199 ac_prev=sbindir ;;
1200 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1201 | --sbi=* | --sb=*)
1202 sbindir=$ac_optarg ;;
1203
1204 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1205 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1206 | --sharedst | --shareds | --shared | --share | --shar \
1207 | --sha | --sh)
1208 ac_prev=sharedstatedir ;;
1209 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1210 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1211 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1212 | --sha=* | --sh=*)
1213 sharedstatedir=$ac_optarg ;;
1214
1215 -site | --site | --sit)
1216 ac_prev=site ;;
1217 -site=* | --site=* | --sit=*)
1218 site=$ac_optarg ;;
1219
1220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1221 ac_prev=srcdir ;;
1222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1223 srcdir=$ac_optarg ;;
1224
1225 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1226 | --syscon | --sysco | --sysc | --sys | --sy)
1227 ac_prev=sysconfdir ;;
1228 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1229 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1230 sysconfdir=$ac_optarg ;;
1231
1232 -target | --target | --targe | --targ | --tar | --ta | --t)
1233 ac_prev=target_alias ;;
1234 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1235 target_alias=$ac_optarg ;;
1236
1237 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1238 verbose=yes ;;
1239
1240 -version | --version | --versio | --versi | --vers | -V)
1241 ac_init_version=: ;;
1242
1243 -with-* | --with-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error $? "invalid package name: $ac_useropt"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1251 *"
1252 "with_$ac_useropt"
1253 "*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=\$ac_optarg ;;
1258
1259 -without-* | --without-*)
1260 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1263 as_fn_error $? "invalid package name: $ac_useropt"
1264 ac_useropt_orig=$ac_useropt
1265 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266 case $ac_user_opts in
1267 *"
1268 "with_$ac_useropt"
1269 "*) ;;
1270 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1271 ac_unrecognized_sep=', ';;
1272 esac
1273 eval with_$ac_useropt=no ;;
1274
1275 --x)
1276 # Obsolete; use --with-x.
1277 with_x=yes ;;
1278
1279 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1280 | --x-incl | --x-inc | --x-in | --x-i)
1281 ac_prev=x_includes ;;
1282 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1283 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1284 x_includes=$ac_optarg ;;
1285
1286 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1287 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1288 ac_prev=x_libraries ;;
1289 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1290 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1291 x_libraries=$ac_optarg ;;
1292
1293 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1294 Try \`$0 --help' for more information"
1295 ;;
1296
1297 *=*)
1298 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1299 # Reject names that are not valid shell variable names.
1300 case $ac_envvar in #(
1301 '' | [0-9]* | *[!_$as_cr_alnum]* )
1302 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1303 esac
1304 eval $ac_envvar=\$ac_optarg
1305 export $ac_envvar ;;
1306
1307 *)
1308 # FIXME: should be removed in autoconf 3.0.
1309 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1310 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1311 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1312 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1313 ;;
1314
1315 esac
1316 done
1317
1318 if test -n "$ac_prev"; then
1319 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1320 as_fn_error $? "missing argument to $ac_option"
1321 fi
1322
1323 if test -n "$ac_unrecognized_opts"; then
1324 case $enable_option_checking in
1325 no) ;;
1326 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1327 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1328 esac
1329 fi
1330
1331 # Check all directory arguments for consistency.
1332 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333 datadir sysconfdir sharedstatedir localstatedir includedir \
1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335 libdir localedir mandir
1336 do
1337 eval ac_val=\$$ac_var
1338 # Remove trailing slashes.
1339 case $ac_val in
1340 */ )
1341 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1342 eval $ac_var=\$ac_val;;
1343 esac
1344 # Be sure to have absolute directory names.
1345 case $ac_val in
1346 [\\/$]* | ?:[\\/]* ) continue;;
1347 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1348 esac
1349 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1350 done
1351
1352 # There might be people who depend on the old broken behavior: `$host'
1353 # used to hold the argument of --host etc.
1354 # FIXME: To remove some day.
1355 build=$build_alias
1356 host=$host_alias
1357 target=$target_alias
1358
1359 # FIXME: To remove some day.
1360 if test "x$host_alias" != x; then
1361 if test "x$build_alias" = x; then
1362 cross_compiling=maybe
1363 elif test "x$build_alias" != "x$host_alias"; then
1364 cross_compiling=yes
1365 fi
1366 fi
1367
1368 ac_tool_prefix=
1369 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370
1371 test "$silent" = yes && exec 6>/dev/null
1372
1373
1374 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375 ac_ls_di=`ls -di .` &&
1376 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377 as_fn_error $? "working directory cannot be determined"
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379 as_fn_error $? "pwd does not report name of working directory"
1380
1381
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384 ac_srcdir_defaulted=yes
1385 # Try the directory containing this script, then the parent directory.
1386 ac_confdir=`$as_dirname -- "$as_myself" ||
1387 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388 X"$as_myself" : 'X\(//\)[^/]' \| \
1389 X"$as_myself" : 'X\(//\)$' \| \
1390 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1391 $as_echo X"$as_myself" |
1392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393 s//\1/
1394 q
1395 }
1396 /^X\(\/\/\)[^/].*/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\/\)$/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\).*/{
1405 s//\1/
1406 q
1407 }
1408 s/.*/./; q'`
1409 srcdir=$ac_confdir
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411 srcdir=..
1412 fi
1413 else
1414 ac_srcdir_defaulted=no
1415 fi
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1419 fi
1420 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1421 ac_abs_confdir=`(
1422 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1423 pwd)`
1424 # When building in place, set srcdir=.
1425 if test "$ac_abs_confdir" = "$ac_pwd"; then
1426 srcdir=.
1427 fi
1428 # Remove unnecessary trailing slashes from srcdir.
1429 # Double slashes in file names in object file debugging info
1430 # mess up M-x gdb in Emacs.
1431 case $srcdir in
1432 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 esac
1434 for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439 done
1440
1441 #
1442 # Report the --help message.
1443 #
1444 if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1447 cat <<_ACEOF
1448 \`configure' configures courier-authlib 0.69.0 to adapt to many kinds of systems.
1449
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1451
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE. See below for descriptions of some of the useful variables.
1454
1455 Defaults for the options are specified in brackets.
1456
1457 Configuration:
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
1462 -q, --quiet, --silent do not print \`checking ...' messages
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1467
1468 Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
1470 [$ac_default_prefix]
1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1472 [PREFIX]
1473
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1478
1479 For better control, use the options below.
1480
1481 Fine tuning of the installation directories:
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/courier-authlib]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
1501 _ACEOF
1502
1503 cat <<\_ACEOF
1504
1505 Program names:
1506 --program-prefix=PREFIX prepend PREFIX to installed program names
1507 --program-suffix=SUFFIX append SUFFIX to installed program names
1508 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1509
1510 System types:
1511 --build=BUILD configure for building on BUILD [guessed]
1512 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513 _ACEOF
1514 fi
1515
1516 if test -n "$ac_init_help"; then
1517 case $ac_init_help in
1518 short | recursive ) echo "Configuration of courier-authlib 0.69.0:";;
1519 esac
1520 cat <<\_ACEOF
1521
1522 Optional Features:
1523 --disable-option-checking ignore unrecognized --enable/--with options
1524 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1525 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1526 --enable-silent-rules less verbose build output (undo: "make V=1")
1527 --disable-silent-rules verbose build output (undo: "make V=0")
1528 --enable-dependency-tracking
1529 do not reject slow dependency extractors
1530 --disable-dependency-tracking
1531 speeds up one-time build
1532 --enable-shared[=PKGS] build shared libraries [default=yes]
1533 --enable-static[=PKGS] build static libraries [default=yes]
1534 --enable-fast-install[=PKGS]
1535 optimize for fast installation [default=yes]
1536 --disable-libtool-lock avoid locking (might break parallel builds)
1537 --enable-ltdl-install install libltdl
1538
1539 Optional Packages:
1540 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1541 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1542 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1543 both]
1544 --with-aix-soname=aix|svr4|both
1545 shared library versioning (aka "SONAME") variant to
1546 provide on AIX, [default=aix].
1547 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1548 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1549 compiler's sysroot if not specified).
1550 --with-included-ltdl use the GNU ltdl sources included here
1551 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1552 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1553 --with-pkgconfdir=d Install config files in directory
1554 --with-db=gdbm Use the GDBM library.
1555 --with-db=db Use the libdb.a library.
1556 --without-authuserdb Do not include the authuserdb module
1557
1558
1559 --without-authpam Do not include the authpam module
1560 --with-authpam-libraries="libs" Link 'libs' with authpam, this may be
1561 required for FreeBSD 3.3
1562 --without-authldap Do not include the authldap module
1563 --with-authldaprc=filename Expect to find authldaprc here
1564 --without-authpwd Do not include the authpwd module
1565 --without-authshadow Do not include the authshadow module
1566 --with-authpgsqlrc=filename Expect to find authpgsql here
1567 --without-authpgsql Do not include the authpgsql module
1568 --with-pgsql-libs=DIR Look for pgsql libs in this dir
1569 --with-pgsql-includes=DIR Look for pgsql includes in this dir
1570 --with-authmysqlrc=filename Expect to find authmysql here
1571 --without-authmysql Do not include the authmysql module
1572 --with-mysql-libs=DIR Look for mysql libs in this dir
1573 --with-mysql-includes=DIR Look for mysql includes in this dir
1574 --with-authsqliterc=filename Expect to find authmysql here
1575 --without-authsqlite Do not include the authsqlite module
1576 --with-sqlite-libs=DIR Look for sqlite libs in this dir
1577 --with-sqlite-includes=DIR Look for sqlite includes in this dir
1578 --without-authcustom Do not include the authcustom module
1579 --with-pipeprog=filename Expect to find the pipe-prog here
1580 --without-authpipe Do not include the authpipe module
1581 --with-authdaemonrc=filename Expect to find authdaemonrc here
1582 --with-authdaemonvar=directory Directory where authdaemon.pid and
1583 the listening socket is created
1584 --with-mailuser=user Specify mail user name (defaults to
1585 courier, daemon, admin, bin, or root)
1586 --with-mailgroup=group Specify mail group name (defaults to courier,
1587 daemon, sys, adm, or root)
1588 --without-stdheaderdir Header files will be installed into a directory
1589 not in the compiler's default search path.
1590
1591 Some influential environment variables:
1592 CC C compiler command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1595 nonstandard directory <lib dir>
1596 LIBS libraries to pass to the linker, e.g. -l<library>
1597 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1598 you have headers in a nonstandard directory <include dir>
1599 CXX C++ compiler command
1600 CXXFLAGS C++ compiler flags
1601 CPP C preprocessor
1602 LT_SYS_LIBRARY_PATH
1603 User-defined run-time library search path.
1604 CXXCPP C++ preprocessor
1605
1606 Use these variables to override the choices made by `configure' or to help
1607 it to find libraries and programs with nonstandard names/locations.
1608
1609 Report bugs to <courier-users@lists.sourceforge.net>.
1610 _ACEOF
1611 ac_status=$?
1612 fi
1613
1614 if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1617 test -d "$ac_dir" ||
1618 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619 continue
1620 ac_builddir=.
1621
1622 case "$ac_dir" in
1623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *)
1625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1626 # A ".." for each directory in $ac_dir_suffix.
1627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1628 case $ac_top_builddir_sub in
1629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1631 esac ;;
1632 esac
1633 ac_abs_top_builddir=$ac_pwd
1634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635 # for backward compatibility:
1636 ac_top_builddir=$ac_top_build_prefix
1637
1638 case $srcdir in
1639 .) # We are building in place.
1640 ac_srcdir=.
1641 ac_top_srcdir=$ac_top_builddir_sub
1642 ac_abs_top_srcdir=$ac_pwd ;;
1643 [\\/]* | ?:[\\/]* ) # Absolute name.
1644 ac_srcdir=$srcdir$ac_dir_suffix;
1645 ac_top_srcdir=$srcdir
1646 ac_abs_top_srcdir=$srcdir ;;
1647 *) # Relative name.
1648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649 ac_top_srcdir=$ac_top_build_prefix$srcdir
1650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1651 esac
1652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653
1654 cd "$ac_dir" || { ac_status=$?; continue; }
1655 # Check for guested configure.
1656 if test -f "$ac_srcdir/configure.gnu"; then
1657 echo &&
1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659 elif test -f "$ac_srcdir/configure"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure" --help=recursive
1662 else
1663 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 fi || ac_status=$?
1665 cd "$ac_pwd" || { ac_status=$?; break; }
1666 done
1667 fi
1668
1669 test -n "$ac_init_help" && exit $ac_status
1670 if $ac_init_version; then
1671 cat <<\_ACEOF
1672 courier-authlib configure 0.69.0
1673 generated by GNU Autoconf 2.69
1674
1675 Copyright (C) 2012 Free Software Foundation, Inc.
1676 This configure script is free software; the Free Software Foundation
1677 gives unlimited permission to copy, distribute and modify it.
1678 _ACEOF
1679 exit
1680 fi
1681
1682 ## ------------------------ ##
1683 ## Autoconf initialization. ##
1684 ## ------------------------ ##
1685
1686 # ac_fn_c_try_compile LINENO
1687 # --------------------------
1688 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_compile ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext
1693 if { { ac_try="$ac_compile"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_compile") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest.$ac_objext; then :
1712 ac_retval=0
1713 else
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=1
1718 fi
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1721
1722 } # ac_fn_c_try_compile
1723
1724 # ac_fn_cxx_try_compile LINENO
1725 # ----------------------------
1726 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_cxx_try_compile ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext
1731 if { { ac_try="$ac_compile"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_cxx_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756 fi
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1759
1760 } # ac_fn_cxx_try_compile
1761
1762 # ac_fn_c_try_cpp LINENO
1763 # ----------------------
1764 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_cpp ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if { { ac_try="$ac_cpp conftest.$ac_ext"
1769 case "(($ac_try" in
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1776 ac_status=$?
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1781 fi
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } > conftest.i && {
1784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1786 }; then :
1787 ac_retval=0
1788 else
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1791
1792 ac_retval=1
1793 fi
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 as_fn_set_status $ac_retval
1796
1797 } # ac_fn_c_try_cpp
1798
1799 # ac_fn_c_try_link LINENO
1800 # -----------------------
1801 # Try to link conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_link ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext conftest$ac_exeext
1806 if { { ac_try="$ac_link"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_link") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1819 fi
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest$ac_exeext && {
1825 test "$cross_compiling" = yes ||
1826 test -x conftest$ac_exeext
1827 }; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833 ac_retval=1
1834 fi
1835 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837 # interfere with the next link command; also delete a directory that is
1838 # left behind by Apple's compiler. We do this before executing the actions.
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1842
1843 } # ac_fn_c_try_link
1844
1845 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1846 # -------------------------------------------------------
1847 # Tests whether HEADER exists and can be compiled using the include files in
1848 # INCLUDES, setting the cache variable VAR accordingly.
1849 ac_fn_c_check_header_compile ()
1850 {
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853 $as_echo_n "checking for $2... " >&6; }
1854 if eval \${$3+:} false; then :
1855 $as_echo_n "(cached) " >&6
1856 else
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1859 $4
1860 #include <$2>
1861 _ACEOF
1862 if ac_fn_c_try_compile "$LINENO"; then :
1863 eval "$3=yes"
1864 else
1865 eval "$3=no"
1866 fi
1867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868 fi
1869 eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874 } # ac_fn_c_check_header_compile
1875
1876 # ac_fn_c_try_run LINENO
1877 # ----------------------
1878 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1879 # that executables *can* be run.
1880 ac_fn_c_try_run ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if { { ac_try="$ac_link"
1884 case "(($ac_try" in
1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1887 esac
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_link") 2>&5
1891 ac_status=$?
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1894 { { case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_try") 2>&5
1901 ac_status=$?
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; }; }; then :
1904 ac_retval=0
1905 else
1906 $as_echo "$as_me: program exited with status $ac_status" >&5
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1909
1910 ac_retval=$ac_status
1911 fi
1912 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 as_fn_set_status $ac_retval
1915
1916 } # ac_fn_c_try_run
1917
1918 # ac_fn_c_check_func LINENO FUNC VAR
1919 # ----------------------------------
1920 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1921 ac_fn_c_check_func ()
1922 {
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if eval \${$3+:} false; then :
1927 $as_echo_n "(cached) " >&6
1928 else
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1931 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1933 #define $2 innocuous_$2
1934
1935 /* System header to define __stub macros and hopefully few prototypes,
1936 which can conflict with char $2 (); below.
1937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1938 <limits.h> exists even on freestanding compilers. */
1939
1940 #ifdef __STDC__
1941 # include <limits.h>
1942 #else
1943 # include <assert.h>
1944 #endif
1945
1946 #undef $2
1947
1948 /* Override any GCC internal prototype to avoid an error.
1949 Use char because int might match the return type of a GCC
1950 builtin and then its argument prototype would still apply. */
1951 #ifdef __cplusplus
1952 extern "C"
1953 #endif
1954 char $2 ();
1955 /* The GNU C library defines this for functions which it implements
1956 to always fail with ENOSYS. Some functions are actually named
1957 something starting with __ and the normal name is an alias. */
1958 #if defined __stub_$2 || defined __stub___$2
1959 choke me
1960 #endif
1961
1962 int
1963 main ()
1964 {
1965 return $2 ();
1966 ;
1967 return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_link "$LINENO"; then :
1971 eval "$3=yes"
1972 else
1973 eval "$3=no"
1974 fi
1975 rm -f core conftest.err conftest.$ac_objext \
1976 conftest$ac_exeext conftest.$ac_ext
1977 fi
1978 eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983 } # ac_fn_c_check_func
1984
1985 # ac_fn_cxx_try_cpp LINENO
1986 # ------------------------
1987 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1988 ac_fn_cxx_try_cpp ()
1989 {
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 if { { ac_try="$ac_cpp conftest.$ac_ext"
1992 case "(($ac_try" in
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1999 ac_status=$?
2000 if test -s conftest.err; then
2001 grep -v '^ *+' conftest.err >conftest.er1
2002 cat conftest.er1 >&5
2003 mv -f conftest.er1 conftest.err
2004 fi
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; } > conftest.i && {
2007 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2008 test ! -s conftest.err
2009 }; then :
2010 ac_retval=0
2011 else
2012 $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2014
2015 ac_retval=1
2016 fi
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 as_fn_set_status $ac_retval
2019
2020 } # ac_fn_cxx_try_cpp
2021
2022 # ac_fn_cxx_try_link LINENO
2023 # -------------------------
2024 # Try to link conftest.$ac_ext, and return whether this succeeded.
2025 ac_fn_cxx_try_link ()
2026 {
2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028 rm -f conftest.$ac_objext conftest$ac_exeext
2029 if { { ac_try="$ac_link"
2030 case "(($ac_try" in
2031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2032 *) ac_try_echo=$ac_try;;
2033 esac
2034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035 $as_echo "$ac_try_echo"; } >&5
2036 (eval "$ac_link") 2>conftest.err
2037 ac_status=$?
2038 if test -s conftest.err; then
2039 grep -v '^ *+' conftest.err >conftest.er1
2040 cat conftest.er1 >&5
2041 mv -f conftest.er1 conftest.err
2042 fi
2043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044 test $ac_status = 0; } && {
2045 test -z "$ac_cxx_werror_flag" ||
2046 test ! -s conftest.err
2047 } && test -s conftest$ac_exeext && {
2048 test "$cross_compiling" = yes ||
2049 test -x conftest$ac_exeext
2050 }; then :
2051 ac_retval=0
2052 else
2053 $as_echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2055
2056 ac_retval=1
2057 fi
2058 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2059 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2060 # interfere with the next link command; also delete a directory that is
2061 # left behind by Apple's compiler. We do this before executing the actions.
2062 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064 as_fn_set_status $ac_retval
2065
2066 } # ac_fn_cxx_try_link
2067
2068 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2069 # ---------------------------------------------
2070 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2071 # accordingly.
2072 ac_fn_c_check_decl ()
2073 {
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 as_decl_name=`echo $2|sed 's/ *(.*//'`
2076 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2078 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2079 if eval \${$3+:} false; then :
2080 $as_echo_n "(cached) " >&6
2081 else
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2084 $4
2085 int
2086 main ()
2087 {
2088 #ifndef $as_decl_name
2089 #ifdef __cplusplus
2090 (void) $as_decl_use;
2091 #else
2092 (void) $as_decl_name;
2093 #endif
2094 #endif
2095
2096 ;
2097 return 0;
2098 }
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 eval "$3=yes"
2102 else
2103 eval "$3=no"
2104 fi
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 fi
2107 eval ac_res=\$$3
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111
2112 } # ac_fn_c_check_decl
2113
2114 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2115 # -------------------------------------------
2116 # Tests whether TYPE exists after having included INCLUDES, setting cache
2117 # variable VAR accordingly.
2118 ac_fn_c_check_type ()
2119 {
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122 $as_echo_n "checking for $2... " >&6; }
2123 if eval \${$3+:} false; then :
2124 $as_echo_n "(cached) " >&6
2125 else
2126 eval "$3=no"
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2129 $4
2130 int
2131 main ()
2132 {
2133 if (sizeof ($2))
2134 return 0;
2135 ;
2136 return 0;
2137 }
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2142 $4
2143 int
2144 main ()
2145 {
2146 if (sizeof (($2)))
2147 return 0;
2148 ;
2149 return 0;
2150 }
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2153
2154 else
2155 eval "$3=yes"
2156 fi
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 fi
2161 eval ac_res=\$$3
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165
2166 } # ac_fn_c_check_type
2167
2168 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2169 # -------------------------------------------------------
2170 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2171 # the include files in INCLUDES and setting the cache variable VAR
2172 # accordingly.
2173 ac_fn_c_check_header_mongrel ()
2174 {
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 if eval \${$3+:} false; then :
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2178 $as_echo_n "checking for $2... " >&6; }
2179 if eval \${$3+:} false; then :
2180 $as_echo_n "(cached) " >&6
2181 fi
2182 eval ac_res=\$$3
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2185 else
2186 # Is the header compilable?
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2188 $as_echo_n "checking $2 usability... " >&6; }
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2191 $4
2192 #include <$2>
2193 _ACEOF
2194 if ac_fn_c_try_compile "$LINENO"; then :
2195 ac_header_compiler=yes
2196 else
2197 ac_header_compiler=no
2198 fi
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2201 $as_echo "$ac_header_compiler" >&6; }
2202
2203 # Is the header present?
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2205 $as_echo_n "checking $2 presence... " >&6; }
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2208 #include <$2>
2209 _ACEOF
2210 if ac_fn_c_try_cpp "$LINENO"; then :
2211 ac_header_preproc=yes
2212 else
2213 ac_header_preproc=no
2214 fi
2215 rm -f conftest.err conftest.i conftest.$ac_ext
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2217 $as_echo "$ac_header_preproc" >&6; }
2218
2219 # So? What about this header?
2220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2221 yes:no: )
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2223 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2225 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2226 ;;
2227 no:yes:* )
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2229 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2231 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2233 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2235 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2237 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2238 ( $as_echo "## -------------------------------------------------- ##
2239 ## Report this to courier-users@lists.sourceforge.net ##
2240 ## -------------------------------------------------- ##"
2241 ) | sed "s/^/$as_me: WARNING: /" >&2
2242 ;;
2243 esac
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2245 $as_echo_n "checking for $2... " >&6; }
2246 if eval \${$3+:} false; then :
2247 $as_echo_n "(cached) " >&6
2248 else
2249 eval "$3=\$ac_header_compiler"
2250 fi
2251 eval ac_res=\$$3
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 fi
2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256
2257 } # ac_fn_c_check_header_mongrel
2258 cat >config.log <<_ACEOF
2259 This file contains any messages produced by compilers while
2260 running configure, to aid debugging if configure makes a mistake.
2261
2262 It was created by courier-authlib $as_me 0.69.0, which was
2263 generated by GNU Autoconf 2.69. Invocation command line was
2264
2265 $ $0 $@
2266
2267 _ACEOF
2268 exec 5>>config.log
2269 {
2270 cat <<_ASUNAME
2271 ## --------- ##
2272 ## Platform. ##
2273 ## --------- ##
2274
2275 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2276 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2277 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2278 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2279 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2280
2281 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2282 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2283
2284 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2285 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2286 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2287 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2288 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2289 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2290 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2291
2292 _ASUNAME
2293
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2296 do
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 $as_echo "PATH: $as_dir"
2300 done
2301 IFS=$as_save_IFS
2302
2303 } >&5
2304
2305 cat >&5 <<_ACEOF
2306
2307
2308 ## ----------- ##
2309 ## Core tests. ##
2310 ## ----------- ##
2311
2312 _ACEOF
2313
2314
2315 # Keep a trace of the command line.
2316 # Strip out --no-create and --no-recursion so they do not pile up.
2317 # Strip out --silent because we don't want to record it for future runs.
2318 # Also quote any args containing shell meta-characters.
2319 # Make two passes to allow for proper duplicate-argument suppression.
2320 ac_configure_args=
2321 ac_configure_args0=
2322 ac_configure_args1=
2323 ac_must_keep_next=false
2324 for ac_pass in 1 2
2325 do
2326 for ac_arg
2327 do
2328 case $ac_arg in
2329 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2331 | -silent | --silent | --silen | --sile | --sil)
2332 continue ;;
2333 *\'*)
2334 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2335 esac
2336 case $ac_pass in
2337 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2338 2)
2339 as_fn_append ac_configure_args1 " '$ac_arg'"
2340 if test $ac_must_keep_next = true; then
2341 ac_must_keep_next=false # Got value, back to normal.
2342 else
2343 case $ac_arg in
2344 *=* | --config-cache | -C | -disable-* | --disable-* \
2345 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2346 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2347 | -with-* | --with-* | -without-* | --without-* | --x)
2348 case "$ac_configure_args0 " in
2349 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2350 esac
2351 ;;
2352 -* ) ac_must_keep_next=true ;;
2353 esac
2354 fi
2355 as_fn_append ac_configure_args " '$ac_arg'"
2356 ;;
2357 esac
2358 done
2359 done
2360 { ac_configure_args0=; unset ac_configure_args0;}
2361 { ac_configure_args1=; unset ac_configure_args1;}
2362
2363 # When interrupted or exit'd, cleanup temporary files, and complete
2364 # config.log. We remove comments because anyway the quotes in there
2365 # would cause problems or look ugly.
2366 # WARNING: Use '\'' to represent an apostrophe within the trap.
2367 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2368 trap 'exit_status=$?
2369 # Save into config.log some information that might help in debugging.
2370 {
2371 echo
2372
2373 $as_echo "## ---------------- ##
2374 ## Cache variables. ##
2375 ## ---------------- ##"
2376 echo
2377 # The following way of writing the cache mishandles newlines in values,
2378 (
2379 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2380 eval ac_val=\$$ac_var
2381 case $ac_val in #(
2382 *${as_nl}*)
2383 case $ac_var in #(
2384 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2385 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2386 esac
2387 case $ac_var in #(
2388 _ | IFS | as_nl) ;; #(
2389 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2390 *) { eval $ac_var=; unset $ac_var;} ;;
2391 esac ;;
2392 esac
2393 done
2394 (set) 2>&1 |
2395 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2396 *${as_nl}ac_space=\ *)
2397 sed -n \
2398 "s/'\''/'\''\\\\'\'''\''/g;
2399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2400 ;; #(
2401 *)
2402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2403 ;;
2404 esac |
2405 sort
2406 )
2407 echo
2408
2409 $as_echo "## ----------------- ##
2410 ## Output variables. ##
2411 ## ----------------- ##"
2412 echo
2413 for ac_var in $ac_subst_vars
2414 do
2415 eval ac_val=\$$ac_var
2416 case $ac_val in
2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418 esac
2419 $as_echo "$ac_var='\''$ac_val'\''"
2420 done | sort
2421 echo
2422
2423 if test -n "$ac_subst_files"; then
2424 $as_echo "## ------------------- ##
2425 ## File substitutions. ##
2426 ## ------------------- ##"
2427 echo
2428 for ac_var in $ac_subst_files
2429 do
2430 eval ac_val=\$$ac_var
2431 case $ac_val in
2432 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2433 esac
2434 $as_echo "$ac_var='\''$ac_val'\''"
2435 done | sort
2436 echo
2437 fi
2438
2439 if test -s confdefs.h; then
2440 $as_echo "## ----------- ##
2441 ## confdefs.h. ##
2442 ## ----------- ##"
2443 echo
2444 cat confdefs.h
2445 echo
2446 fi
2447 test "$ac_signal" != 0 &&
2448 $as_echo "$as_me: caught signal $ac_signal"
2449 $as_echo "$as_me: exit $exit_status"
2450 } >&5
2451 rm -f core *.core core.conftest.* &&
2452 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2453 exit $exit_status
2454 ' 0
2455 for ac_signal in 1 2 13 15; do
2456 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2457 done
2458 ac_signal=0
2459
2460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2461 rm -f -r conftest* confdefs.h
2462
2463 $as_echo "/* confdefs.h */" > confdefs.h
2464
2465 # Predefined preprocessor variables.
2466
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_NAME "$PACKAGE_NAME"
2469 _ACEOF
2470
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2473 _ACEOF
2474
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2477 _ACEOF
2478
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_STRING "$PACKAGE_STRING"
2481 _ACEOF
2482
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2485 _ACEOF
2486
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_URL "$PACKAGE_URL"
2489 _ACEOF
2490
2491
2492 # Let the site file select an alternate cache file if it wants to.
2493 # Prefer an explicitly selected file to automatically selected ones.
2494 ac_site_file1=NONE
2495 ac_site_file2=NONE
2496 if test -n "$CONFIG_SITE"; then
2497 # We do not want a PATH search for config.site.
2498 case $CONFIG_SITE in #((
2499 -*) ac_site_file1=./$CONFIG_SITE;;
2500 */*) ac_site_file1=$CONFIG_SITE;;
2501 *) ac_site_file1=./$CONFIG_SITE;;
2502 esac
2503 elif test "x$prefix" != xNONE; then
2504 ac_site_file1=$prefix/share/config.site
2505 ac_site_file2=$prefix/etc/config.site
2506 else
2507 ac_site_file1=$ac_default_prefix/share/config.site
2508 ac_site_file2=$ac_default_prefix/etc/config.site
2509 fi
2510 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2511 do
2512 test "x$ac_site_file" = xNONE && continue
2513 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2515 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2516 sed 's/^/| /' "$ac_site_file" >&5
2517 . "$ac_site_file" \
2518 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520 as_fn_error $? "failed to load site script $ac_site_file
2521 See \`config.log' for more details" "$LINENO" 5; }
2522 fi
2523 done
2524
2525 if test -r "$cache_file"; then
2526 # Some versions of bash will fail to source /dev/null (special files
2527 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2528 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2530 $as_echo "$as_me: loading cache $cache_file" >&6;}
2531 case $cache_file in
2532 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2533 *) . "./$cache_file";;
2534 esac
2535 fi
2536 else
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2538 $as_echo "$as_me: creating cache $cache_file" >&6;}
2539 >$cache_file
2540 fi
2541
2542 # Check that the precious variables saved in the cache have kept the same
2543 # value.
2544 ac_cache_corrupted=false
2545 for ac_var in $ac_precious_vars; do
2546 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2547 eval ac_new_set=\$ac_env_${ac_var}_set
2548 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2549 eval ac_new_val=\$ac_env_${ac_var}_value
2550 case $ac_old_set,$ac_new_set in
2551 set,)
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2553 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2554 ac_cache_corrupted=: ;;
2555 ,set)
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2557 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2558 ac_cache_corrupted=: ;;
2559 ,);;
2560 *)
2561 if test "x$ac_old_val" != "x$ac_new_val"; then
2562 # differences in whitespace do not lead to failure.
2563 ac_old_val_w=`echo x $ac_old_val`
2564 ac_new_val_w=`echo x $ac_new_val`
2565 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2567 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2568 ac_cache_corrupted=:
2569 else
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2571 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2572 eval $ac_var=\$ac_old_val
2573 fi
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2575 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2577 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2578 fi;;
2579 esac
2580 # Pass precious variables to config.status.
2581 if test "$ac_new_set" = set; then
2582 case $ac_new_val in
2583 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2584 *) ac_arg=$ac_var=$ac_new_val ;;
2585 esac
2586 case " $ac_configure_args " in
2587 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2588 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2589 esac
2590 fi
2591 done
2592 if $ac_cache_corrupted; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2596 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2597 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2598 fi
2599 ## -------------------- ##
2600 ## Main body of script. ##
2601 ## -------------------- ##
2602
2603 ac_ext=c
2604 ac_cpp='$CPP $CPPFLAGS'
2605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2608
2609
2610
2611
2612
2613 am__api_version='1.15'
2614
2615 ac_aux_dir=
2616 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2617 if test -f "$ac_dir/install-sh"; then
2618 ac_aux_dir=$ac_dir
2619 ac_install_sh="$ac_aux_dir/install-sh -c"
2620 break
2621 elif test -f "$ac_dir/install.sh"; then
2622 ac_aux_dir=$ac_dir
2623 ac_install_sh="$ac_aux_dir/install.sh -c"
2624 break
2625 elif test -f "$ac_dir/shtool"; then
2626 ac_aux_dir=$ac_dir
2627 ac_install_sh="$ac_aux_dir/shtool install -c"
2628 break
2629 fi
2630 done
2631 if test -z "$ac_aux_dir"; then
2632 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2633 fi
2634
2635 # These three variables are undocumented and unsupported,
2636 # and are intended to be withdrawn in a future Autoconf release.
2637 # They can cause serious problems if a builder's source tree is in a directory
2638 # whose full name contains unusual characters.
2639 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2640 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2641 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2642
2643
2644 # Find a good install program. We prefer a C program (faster),
2645 # so one script is as good as another. But avoid the broken or
2646 # incompatible versions:
2647 # SysV /etc/install, /usr/sbin/install
2648 # SunOS /usr/etc/install
2649 # IRIX /sbin/install
2650 # AIX /bin/install
2651 # AmigaOS /C/install, which installs bootblocks on floppy discs
2652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2655 # OS/2's system install, which has a completely different semantic
2656 # ./install, which can be erroneously created by make from ./install.sh.
2657 # Reject install programs that cannot install multiple files.
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2659 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2660 if test -z "$INSTALL"; then
2661 if ${ac_cv_path_install+:} false; then :
2662 $as_echo_n "(cached) " >&6
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 # Account for people who put trailing slashes in PATH elements.
2670 case $as_dir/ in #((
2671 ./ | .// | /[cC]/* | \
2672 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2673 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2674 /usr/ucb/* ) ;;
2675 *)
2676 # OSF1 and SCO ODT 3.0 have their own names for install.
2677 # Don't use installbsd from OSF since it installs stuff as root
2678 # by default.
2679 for ac_prog in ginstall scoinst install; do
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2682 if test $ac_prog = install &&
2683 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2684 # AIX install. It has an incompatible calling convention.
2685 :
2686 elif test $ac_prog = install &&
2687 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2688 # program-specific install script used by HP pwplus--don't use.
2689 :
2690 else
2691 rm -rf conftest.one conftest.two conftest.dir
2692 echo one > conftest.one
2693 echo two > conftest.two
2694 mkdir conftest.dir
2695 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2696 test -s conftest.one && test -s conftest.two &&
2697 test -s conftest.dir/conftest.one &&
2698 test -s conftest.dir/conftest.two
2699 then
2700 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2701 break 3
2702 fi
2703 fi
2704 fi
2705 done
2706 done
2707 ;;
2708 esac
2709
2710 done
2711 IFS=$as_save_IFS
2712
2713 rm -rf conftest.one conftest.two conftest.dir
2714
2715 fi
2716 if test "${ac_cv_path_install+set}" = set; then
2717 INSTALL=$ac_cv_path_install
2718 else
2719 # As a last resort, use the slow shell script. Don't cache a
2720 # value for INSTALL within a source directory, because that will
2721 # break other packages using the cache if that directory is
2722 # removed, or if the value is a relative name.
2723 INSTALL=$ac_install_sh
2724 fi
2725 fi
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2727 $as_echo "$INSTALL" >&6; }
2728
2729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2730 # It thinks the first close brace ends the variable substitution.
2731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2732
2733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2734
2735 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2736
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2738 $as_echo_n "checking whether build environment is sane... " >&6; }
2739 # Reject unsafe characters in $srcdir or the absolute working directory
2740 # name. Accept space and tab only in the latter.
2741 am_lf='
2742 '
2743 case `pwd` in
2744 *[\\\"\#\$\&\'\`$am_lf]*)
2745 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2746 esac
2747 case $srcdir in
2748 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2749 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2750 esac
2751
2752 # Do 'set' in a subshell so we don't clobber the current shell's
2753 # arguments. Must try -L first in case configure is actually a
2754 # symlink; some systems play weird games with the mod time of symlinks
2755 # (eg FreeBSD returns the mod time of the symlink's containing
2756 # directory).
2757 if (
2758 am_has_slept=no
2759 for am_try in 1 2; do
2760 echo "timestamp, slept: $am_has_slept" > conftest.file
2761 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2762 if test "$*" = "X"; then
2763 # -L didn't work.
2764 set X `ls -t "$srcdir/configure" conftest.file`
2765 fi
2766 if test "$*" != "X $srcdir/configure conftest.file" \
2767 && test "$*" != "X conftest.file $srcdir/configure"; then
2768
2769 # If neither matched, then we have a broken ls. This can happen
2770 # if, for instance, CONFIG_SHELL is bash and it inherits a
2771 # broken ls alias from the environment. This has actually
2772 # happened. Such a system could not be considered "sane".
2773 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2774 alias in your environment" "$LINENO" 5
2775 fi
2776 if test "$2" = conftest.file || test $am_try -eq 2; then
2777 break
2778 fi
2779 # Just in case.
2780 sleep 1
2781 am_has_slept=yes
2782 done
2783 test "$2" = conftest.file
2784 )
2785 then
2786 # Ok.
2787 :
2788 else
2789 as_fn_error $? "newly created file is older than distributed files!
2790 Check your system clock" "$LINENO" 5
2791 fi
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2793 $as_echo "yes" >&6; }
2794 # If we didn't sleep, we still need to ensure time stamps of config.status and
2795 # generated files are strictly newer.
2796 am_sleep_pid=
2797 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2798 ( sleep 1 ) &
2799 am_sleep_pid=$!
2800 fi
2801
2802 rm -f conftest.file
2803
2804 test "$program_prefix" != NONE &&
2805 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2806 # Use a double $ so make ignores it.
2807 test "$program_suffix" != NONE &&
2808 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2809 # Double any \ or $.
2810 # By default was `s,x,x', remove it if useless.
2811 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2812 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2813
2814 # Expand $ac_aux_dir to an absolute path.
2815 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2816
2817 if test x"${MISSING+set}" != xset; then
2818 case $am_aux_dir in
2819 *\ * | *\ *)
2820 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2821 *)
2822 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2823 esac
2824 fi
2825 # Use eval to expand $SHELL
2826 if eval "$MISSING --is-lightweight"; then
2827 am_missing_run="$MISSING "
2828 else
2829 am_missing_run=
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2831 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2832 fi
2833
2834 if test x"${install_sh+set}" != xset; then
2835 case $am_aux_dir in
2836 *\ * | *\ *)
2837 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2838 *)
2839 install_sh="\${SHELL} $am_aux_dir/install-sh"
2840 esac
2841 fi
2842
2843 # Installed binaries are usually stripped using 'strip' when the user
2844 # run "make install-strip". However 'strip' might not be the right
2845 # tool to use in cross-compilation environments, therefore Automake
2846 # will honor the 'STRIP' environment variable to overrule this program.
2847 if test "$cross_compiling" != no; then
2848 if test -n "$ac_tool_prefix"; then
2849 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2850 set dummy ${ac_tool_prefix}strip; ac_word=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_STRIP+:} false; then :
2854 $as_echo_n "(cached) " >&6
2855 else
2856 if test -n "$STRIP"; then
2857 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 break 2
2869 fi
2870 done
2871 done
2872 IFS=$as_save_IFS
2873
2874 fi
2875 fi
2876 STRIP=$ac_cv_prog_STRIP
2877 if test -n "$STRIP"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2879 $as_echo "$STRIP" >&6; }
2880 else
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2883 fi
2884
2885
2886 fi
2887 if test -z "$ac_cv_prog_STRIP"; then
2888 ac_ct_STRIP=$STRIP
2889 # Extract the first word of "strip", so it can be a program name with args.
2890 set dummy strip; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 if test -n "$ac_ct_STRIP"; then
2897 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_ac_ct_STRIP="strip"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910 done
2911 done
2912 IFS=$as_save_IFS
2913
2914 fi
2915 fi
2916 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2917 if test -n "$ac_ct_STRIP"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2919 $as_echo "$ac_ct_STRIP" >&6; }
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2923 fi
2924
2925 if test "x$ac_ct_STRIP" = x; then
2926 STRIP=":"
2927 else
2928 case $cross_compiling:$ac_tool_warned in
2929 yes:)
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932 ac_tool_warned=yes ;;
2933 esac
2934 STRIP=$ac_ct_STRIP
2935 fi
2936 else
2937 STRIP="$ac_cv_prog_STRIP"
2938 fi
2939
2940 fi
2941 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2942
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2944 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2945 if test -z "$MKDIR_P"; then
2946 if ${ac_cv_path_mkdir+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2951 do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_prog in mkdir gmkdir; do
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2957 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2958 'mkdir (GNU coreutils) '* | \
2959 'mkdir (coreutils) '* | \
2960 'mkdir (fileutils) '4.1*)
2961 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2962 break 3;;
2963 esac
2964 done
2965 done
2966 done
2967 IFS=$as_save_IFS
2968
2969 fi
2970
2971 test -d ./--version && rmdir ./--version
2972 if test "${ac_cv_path_mkdir+set}" = set; then
2973 MKDIR_P="$ac_cv_path_mkdir -p"
2974 else
2975 # As a last resort, use the slow shell script. Don't cache a
2976 # value for MKDIR_P within a source directory, because that will
2977 # break other packages using the cache if that directory is
2978 # removed, or if the value is a relative name.
2979 MKDIR_P="$ac_install_sh -d"
2980 fi
2981 fi
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2983 $as_echo "$MKDIR_P" >&6; }
2984
2985 for ac_prog in gawk mawk nawk awk
2986 do
2987 # Extract the first word of "$ac_prog", so it can be a program name with args.
2988 set dummy $ac_prog; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_AWK+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 if test -n "$AWK"; then
2995 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
2999 do
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_AWK="$ac_prog"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3007 fi
3008 done
3009 done
3010 IFS=$as_save_IFS
3011
3012 fi
3013 fi
3014 AWK=$ac_cv_prog_AWK
3015 if test -n "$AWK"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3017 $as_echo "$AWK" >&6; }
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3021 fi
3022
3023
3024 test -n "$AWK" && break
3025 done
3026
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3028 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3029 set x ${MAKE-make}
3030 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3031 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3032 $as_echo_n "(cached) " >&6
3033 else
3034 cat >conftest.make <<\_ACEOF
3035 SHELL = /bin/sh
3036 all:
3037 @echo '@@@%%%=$(MAKE)=@@@%%%'
3038 _ACEOF
3039 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3040 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3041 *@@@%%%=?*=@@@%%%*)
3042 eval ac_cv_prog_make_${ac_make}_set=yes;;
3043 *)
3044 eval ac_cv_prog_make_${ac_make}_set=no;;
3045 esac
3046 rm -f conftest.make
3047 fi
3048 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3050 $as_echo "yes" >&6; }
3051 SET_MAKE=
3052 else
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055 SET_MAKE="MAKE=${MAKE-make}"
3056 fi
3057
3058 rm -rf .tst 2>/dev/null
3059 mkdir .tst 2>/dev/null
3060 if test -d .tst; then
3061 am__leading_dot=.
3062 else
3063 am__leading_dot=_
3064 fi
3065 rmdir .tst 2>/dev/null
3066
3067 # Check whether --enable-silent-rules was given.
3068 if test "${enable_silent_rules+set}" = set; then :
3069 enableval=$enable_silent_rules;
3070 fi
3071
3072 case $enable_silent_rules in # (((
3073 yes) AM_DEFAULT_VERBOSITY=0;;
3074 no) AM_DEFAULT_VERBOSITY=1;;
3075 *) AM_DEFAULT_VERBOSITY=1;;
3076 esac
3077 am_make=${MAKE-make}
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3079 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3080 if ${am_cv_make_support_nested_variables+:} false; then :
3081 $as_echo_n "(cached) " >&6
3082 else
3083 if $as_echo 'TRUE=$(BAR$(V))
3084 BAR0=false
3085 BAR1=true
3086 V=1
3087 am__doit:
3088 @$(TRUE)
3089 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3090 am_cv_make_support_nested_variables=yes
3091 else
3092 am_cv_make_support_nested_variables=no
3093 fi
3094 fi
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3096 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3097 if test $am_cv_make_support_nested_variables = yes; then
3098 AM_V='$(V)'
3099 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3100 else
3101 AM_V=$AM_DEFAULT_VERBOSITY
3102 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3103 fi
3104 AM_BACKSLASH='\'
3105
3106 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3107 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3108 # is not polluted with repeated "-I."
3109 am__isrc=' -I$(srcdir)'
3110 # test to see if srcdir already configured
3111 if test -f $srcdir/config.status; then
3112 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3113 fi
3114 fi
3115
3116 # test whether we have cygpath
3117 if test -z "$CYGPATH_W"; then
3118 if (cygpath --version) >/dev/null 2>/dev/null; then
3119 CYGPATH_W='cygpath -w'
3120 else
3121 CYGPATH_W=echo
3122 fi
3123 fi
3124
3125
3126 # Define the identity of the package.
3127 PACKAGE='courier-authlib'
3128 VERSION='0.69.0'
3129
3130
3131 cat >>confdefs.h <<_ACEOF
3132 #define PACKAGE "$PACKAGE"
3133 _ACEOF
3134
3135
3136 cat >>confdefs.h <<_ACEOF
3137 #define VERSION "$VERSION"
3138 _ACEOF
3139
3140 # Some tools Automake needs.
3141
3142 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3143
3144
3145 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3146
3147
3148 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3149
3150
3151 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3152
3153
3154 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3155
3156 # For better backward compatibility. To be removed once Automake 1.9.x
3157 # dies out for good. For more background, see:
3158 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3159 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3160 mkdir_p='$(MKDIR_P)'
3161
3162 # We need awk for the "check" target (and possibly the TAP driver). The
3163 # system "awk" is bad on some platforms.
3164 # Always define AMTAR for backward compatibility. Yes, it's still used
3165 # in the wild :-( We should find a proper way to deprecate it ...
3166 AMTAR='$${TAR-tar}'
3167
3168
3169 # We'll loop over all known methods to create a tar archive until one works.
3170 _am_tools='gnutar pax cpio none'
3171
3172 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3173
3174
3175
3176
3177
3178
3179 # POSIX will say in a future version that running "rm -f" with no argument
3180 # is OK; and we want to be able to make that assumption in our Makefile
3181 # recipes. So use an aggressive probe to check that the usage we want is
3182 # actually supported "in the wild" to an acceptable degree.
3183 # See automake bug#10828.
3184 # To make any issue more visible, cause the running configure to be aborted
3185 # by default if the 'rm' program in use doesn't match our expectations; the
3186 # user can still override this though.
3187 if rm -f && rm -fr && rm -rf; then : OK; else
3188 cat >&2 <<'END'
3189 Oops!
3190
3191 Your 'rm' program seems unable to run without file operands specified
3192 on the command line, even when the '-f' option is present. This is contrary
3193 to the behaviour of most rm programs out there, and not conforming with
3194 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3195
3196 Please tell bug-automake@gnu.org about your system, including the value
3197 of your $PATH and any error possibly output before this message. This
3198 can help us improve future automake versions.
3199
3200 END
3201 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3202 echo 'Configuration will proceed anyway, since you have set the' >&2
3203 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3204 echo >&2
3205 else
3206 cat >&2 <<'END'
3207 Aborting the configuration process, to ensure you take notice of the issue.
3208
3209 You can download and install GNU coreutils to get an 'rm' implementation
3210 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3211
3212 If you want to complete the configuration process using your problematic
3213 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3214 to "yes", and re-run configure.
3215
3216 END
3217 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3218 fi
3219 fi
3220
3221 ac_config_headers="$ac_config_headers courier_auth_config.h"
3222
3223 >confdefs.h # Kill PACKAGE_ macros
3224
3225 LPATH="$PATH:/usr/local/bin"
3226
3227 for ac_prog in gawk mawk nawk awk
3228 do
3229 # Extract the first word of "$ac_prog", so it can be a program name with args.
3230 set dummy $ac_prog; ac_word=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if ${ac_cv_prog_AWK+:} false; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 if test -n "$AWK"; then
3237 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3238 else
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH
3241 do
3242 IFS=$as_save_IFS
3243 test -z "$as_dir" && as_dir=.
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3246 ac_cv_prog_AWK="$ac_prog"
3247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 break 2
3249 fi
3250 done
3251 done
3252 IFS=$as_save_IFS
3253
3254 fi
3255 fi
3256 AWK=$ac_cv_prog_AWK
3257 if test -n "$AWK"; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3259 $as_echo "$AWK" >&6; }
3260 else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 fi
3264
3265
3266 test -n "$AWK" && break
3267 done
3268
3269 ac_ext=c
3270 ac_cpp='$CPP $CPPFLAGS'
3271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274 if test -n "$ac_tool_prefix"; then
3275 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3276 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if ${ac_cv_prog_CC+:} false; then :
3280 $as_echo_n "(cached) " >&6
3281 else
3282 if test -n "$CC"; then
3283 ac_cv_prog_CC="$CC" # Let the user override the test.
3284 else
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 for as_dir in $PATH
3287 do
3288 IFS=$as_save_IFS
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 break 2
3295 fi
3296 done
3297 done
3298 IFS=$as_save_IFS
3299
3300 fi
3301 fi
3302 CC=$ac_cv_prog_CC
3303 if test -n "$CC"; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3305 $as_echo "$CC" >&6; }
3306 else
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 $as_echo "no" >&6; }
3309 fi
3310
3311
3312 fi
3313 if test -z "$ac_cv_prog_CC"; then
3314 ac_ct_CC=$CC
3315 # Extract the first word of "gcc", so it can be a program name with args.
3316 set dummy gcc; ac_word=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 if test -n "$ac_ct_CC"; then
3323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_ac_ct_CC="gcc"
3333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3335 fi
3336 done
3337 done
3338 IFS=$as_save_IFS
3339
3340 fi
3341 fi
3342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3343 if test -n "$ac_ct_CC"; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3345 $as_echo "$ac_ct_CC" >&6; }
3346 else
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 fi
3350
3351 if test "x$ac_ct_CC" = x; then
3352 CC=""
3353 else
3354 case $cross_compiling:$ac_tool_warned in
3355 yes:)
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3358 ac_tool_warned=yes ;;
3359 esac
3360 CC=$ac_ct_CC
3361 fi
3362 else
3363 CC="$ac_cv_prog_CC"
3364 fi
3365
3366 if test -z "$CC"; then
3367 if test -n "$ac_tool_prefix"; then
3368 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3369 set dummy ${ac_tool_prefix}cc; ac_word=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if ${ac_cv_prog_CC+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 if test -n "$CC"; then
3376 ac_cv_prog_CC="$CC" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385 ac_cv_prog_CC="${ac_tool_prefix}cc"
3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 break 2
3388 fi
3389 done
3390 done
3391 IFS=$as_save_IFS
3392
3393 fi
3394 fi
3395 CC=$ac_cv_prog_CC
3396 if test -n "$CC"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398 $as_echo "$CC" >&6; }
3399 else
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3402 fi
3403
3404
3405 fi
3406 fi
3407 if test -z "$CC"; then
3408 # Extract the first word of "cc", so it can be a program name with args.
3409 set dummy cc; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_CC+:} false; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC="$CC" # Let the user override the test.
3417 else
3418 ac_prog_rejected=no
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3421 do
3422 IFS=$as_save_IFS
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3426 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3427 ac_prog_rejected=yes
3428 continue
3429 fi
3430 ac_cv_prog_CC="cc"
3431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 break 2
3433 fi
3434 done
3435 done
3436 IFS=$as_save_IFS
3437
3438 if test $ac_prog_rejected = yes; then
3439 # We found a bogon in the path, so make sure we never use it.
3440 set dummy $ac_cv_prog_CC
3441 shift
3442 if test $# != 0; then
3443 # We chose a different compiler from the bogus one.
3444 # However, it has the same basename, so the bogon will be chosen
3445 # first if we set CC to just the basename; use the full file name.
3446 shift
3447 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3448 fi
3449 fi
3450 fi
3451 fi
3452 CC=$ac_cv_prog_CC
3453 if test -n "$CC"; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3455 $as_echo "$CC" >&6; }
3456 else
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3459 fi
3460
3461
3462 fi
3463 if test -z "$CC"; then
3464 if test -n "$ac_tool_prefix"; then
3465 for ac_prog in cl.exe
3466 do
3467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3468 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if ${ac_cv_prog_CC+:} false; then :
3472 $as_echo_n "(cached) " >&6
3473 else
3474 if test -n "$CC"; then
3475 ac_cv_prog_CC="$CC" # Let the user override the test.
3476 else
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3479 do
3480 IFS=$as_save_IFS
3481 test -z "$as_dir" && as_dir=.
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 break 2
3487 fi
3488 done
3489 done
3490 IFS=$as_save_IFS
3491
3492 fi
3493 fi
3494 CC=$ac_cv_prog_CC
3495 if test -n "$CC"; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3497 $as_echo "$CC" >&6; }
3498 else
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3501 fi
3502
3503
3504 test -n "$CC" && break
3505 done
3506 fi
3507 if test -z "$CC"; then
3508 ac_ct_CC=$CC
3509 for ac_prog in cl.exe
3510 do
3511 # Extract the first word of "$ac_prog", so it can be a program name with args.
3512 set dummy $ac_prog; ac_word=$2
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3516 $as_echo_n "(cached) " >&6
3517 else
3518 if test -n "$ac_ct_CC"; then
3519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3520 else
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3523 do
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528 ac_cv_prog_ac_ct_CC="$ac_prog"
3529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 break 2
3531 fi
3532 done
3533 done
3534 IFS=$as_save_IFS
3535
3536 fi
3537 fi
3538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3539 if test -n "$ac_ct_CC"; then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3541 $as_echo "$ac_ct_CC" >&6; }
3542 else
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3545 fi
3546
3547
3548 test -n "$ac_ct_CC" && break
3549 done
3550
3551 if test "x$ac_ct_CC" = x; then
3552 CC=""
3553 else
3554 case $cross_compiling:$ac_tool_warned in
3555 yes:)
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3558 ac_tool_warned=yes ;;
3559 esac
3560 CC=$ac_ct_CC
3561 fi
3562 fi
3563
3564 fi
3565
3566
3567 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3569 as_fn_error $? "no acceptable C compiler found in \$PATH
3570 See \`config.log' for more details" "$LINENO" 5; }
3571
3572 # Provide some information about the compiler.
3573 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3574 set X $ac_compile
3575 ac_compiler=$2
3576 for ac_option in --version -v -V -qversion; do
3577 { { ac_try="$ac_compiler $ac_option >&5"
3578 case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581 esac
3582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583 $as_echo "$ac_try_echo"; } >&5
3584 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3585 ac_status=$?
3586 if test -s conftest.err; then
3587 sed '10a\
3588 ... rest of stderr output deleted ...
3589 10q' conftest.err >conftest.er1
3590 cat conftest.er1 >&5
3591 fi
3592 rm -f conftest.er1 conftest.err
3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594 test $ac_status = 0; }
3595 done
3596
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3599
3600 int
3601 main ()
3602 {
3603
3604 ;
3605 return 0;
3606 }
3607 _ACEOF
3608 ac_clean_files_save=$ac_clean_files
3609 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3610 # Try to create an executable without -o first, disregard a.out.
3611 # It will help us diagnose broken compilers, and finding out an intuition
3612 # of exeext.
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3614 $as_echo_n "checking whether the C compiler works... " >&6; }
3615 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3616
3617 # The possible output files:
3618 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3619
3620 ac_rmfiles=
3621 for ac_file in $ac_files
3622 do
3623 case $ac_file in
3624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3625 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3626 esac
3627 done
3628 rm -f $ac_rmfiles
3629
3630 if { { ac_try="$ac_link_default"
3631 case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3634 esac
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_link_default") 2>&5
3638 ac_status=$?
3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 test $ac_status = 0; }; then :
3641 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3642 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3643 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3644 # so that the user can short-circuit this test for compilers unknown to
3645 # Autoconf.
3646 for ac_file in $ac_files ''
3647 do
3648 test -f "$ac_file" || continue
3649 case $ac_file in
3650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3651 ;;
3652 [ab].out )
3653 # We found the default executable, but exeext='' is most
3654 # certainly right.
3655 break;;
3656 *.* )
3657 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3658 then :; else
3659 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3660 fi
3661 # We set ac_cv_exeext here because the later test for it is not
3662 # safe: cross compilers may not add the suffix if given an `-o'
3663 # argument, so we may need to know it at that point already.
3664 # Even if this section looks crufty: it has the advantage of
3665 # actually working.
3666 break;;
3667 * )
3668 break;;
3669 esac
3670 done
3671 test "$ac_cv_exeext" = no && ac_cv_exeext=
3672
3673 else
3674 ac_file=''
3675 fi
3676 if test -z "$ac_file"; then :
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3679 $as_echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3681
3682 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3684 as_fn_error 77 "C compiler cannot create executables
3685 See \`config.log' for more details" "$LINENO" 5; }
3686 else
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3688 $as_echo "yes" >&6; }
3689 fi
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3691 $as_echo_n "checking for C compiler default output file name... " >&6; }
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3693 $as_echo "$ac_file" >&6; }
3694 ac_exeext=$ac_cv_exeext
3695
3696 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3697 ac_clean_files=$ac_clean_files_save
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3699 $as_echo_n "checking for suffix of executables... " >&6; }
3700 if { { ac_try="$ac_link"
3701 case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706 $as_echo "$ac_try_echo"; } >&5
3707 (eval "$ac_link") 2>&5
3708 ac_status=$?
3709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710 test $ac_status = 0; }; then :
3711 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3712 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3713 # work properly (i.e., refer to `conftest.exe'), while it won't with
3714 # `rm'.
3715 for ac_file in conftest.exe conftest conftest.*; do
3716 test -f "$ac_file" || continue
3717 case $ac_file in
3718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3719 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3720 break;;
3721 * ) break;;
3722 esac
3723 done
3724 else
3725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3727 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3728 See \`config.log' for more details" "$LINENO" 5; }
3729 fi
3730 rm -f conftest conftest$ac_cv_exeext
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3732 $as_echo "$ac_cv_exeext" >&6; }
3733
3734 rm -f conftest.$ac_ext
3735 EXEEXT=$ac_cv_exeext
3736 ac_exeext=$EXEEXT
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3739 #include <stdio.h>
3740 int
3741 main ()
3742 {
3743 FILE *f = fopen ("conftest.out", "w");
3744 return ferror (f) || fclose (f) != 0;
3745
3746 ;
3747 return 0;
3748 }
3749 _ACEOF
3750 ac_clean_files="$ac_clean_files conftest.out"
3751 # Check that the compiler produces executables we can run. If not, either
3752 # the compiler is broken, or we cross compile.
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3754 $as_echo_n "checking whether we are cross compiling... " >&6; }
3755 if test "$cross_compiling" != yes; then
3756 { { ac_try="$ac_link"
3757 case "(($ac_try" in
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3760 esac
3761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762 $as_echo "$ac_try_echo"; } >&5
3763 (eval "$ac_link") 2>&5
3764 ac_status=$?
3765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766 test $ac_status = 0; }
3767 if { ac_try='./conftest$ac_cv_exeext'
3768 { { case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771 esac
3772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773 $as_echo "$ac_try_echo"; } >&5
3774 (eval "$ac_try") 2>&5
3775 ac_status=$?
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }; }; then
3778 cross_compiling=no
3779 else
3780 if test "$cross_compiling" = maybe; then
3781 cross_compiling=yes
3782 else
3783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error $? "cannot run C compiled programs.
3786 If you meant to cross compile, use \`--host'.
3787 See \`config.log' for more details" "$LINENO" 5; }
3788 fi
3789 fi
3790 fi
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3792 $as_echo "$cross_compiling" >&6; }
3793
3794 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3795 ac_clean_files=$ac_clean_files_save
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3797 $as_echo_n "checking for suffix of object files... " >&6; }
3798 if ${ac_cv_objext+:} false; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3803
3804 int
3805 main ()
3806 {
3807
3808 ;
3809 return 0;
3810 }
3811 _ACEOF
3812 rm -f conftest.o conftest.obj
3813 if { { ac_try="$ac_compile"
3814 case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3817 esac
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_compile") 2>&5
3821 ac_status=$?
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }; then :
3824 for ac_file in conftest.o conftest.obj conftest.*; do
3825 test -f "$ac_file" || continue;
3826 case $ac_file in
3827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3828 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3829 break;;
3830 esac
3831 done
3832 else
3833 $as_echo "$as_me: failed program was:" >&5
3834 sed 's/^/| /' conftest.$ac_ext >&5
3835
3836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3838 as_fn_error $? "cannot compute suffix of object files: cannot compile
3839 See \`config.log' for more details" "$LINENO" 5; }
3840 fi
3841 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3844 $as_echo "$ac_cv_objext" >&6; }
3845 OBJEXT=$ac_cv_objext
3846 ac_objext=$OBJEXT
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3848 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3849 if ${ac_cv_c_compiler_gnu+:} false; then :
3850 $as_echo_n "(cached) " >&6
3851 else
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854
3855 int
3856 main ()
3857 {
3858 #ifndef __GNUC__
3859 choke me
3860 #endif
3861
3862 ;
3863 return 0;
3864 }
3865 _ACEOF
3866 if ac_fn_c_try_compile "$LINENO"; then :
3867 ac_compiler_gnu=yes
3868 else
3869 ac_compiler_gnu=no
3870 fi
3871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3872 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3873
3874 fi
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3876 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3877 if test $ac_compiler_gnu = yes; then
3878 GCC=yes
3879 else
3880 GCC=
3881 fi
3882 ac_test_CFLAGS=${CFLAGS+set}
3883 ac_save_CFLAGS=$CFLAGS
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3885 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3886 if ${ac_cv_prog_cc_g+:} false; then :
3887 $as_echo_n "(cached) " >&6
3888 else
3889 ac_save_c_werror_flag=$ac_c_werror_flag
3890 ac_c_werror_flag=yes
3891 ac_cv_prog_cc_g=no
3892 CFLAGS="-g"
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3895
3896 int
3897 main ()
3898 {
3899
3900 ;
3901 return 0;
3902 }
3903 _ACEOF
3904 if ac_fn_c_try_compile "$LINENO"; then :
3905 ac_cv_prog_cc_g=yes
3906 else
3907 CFLAGS=""
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3910
3911 int
3912 main ()
3913 {
3914
3915 ;
3916 return 0;
3917 }
3918 _ACEOF
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920
3921 else
3922 ac_c_werror_flag=$ac_save_c_werror_flag
3923 CFLAGS="-g"
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926
3927 int
3928 main ()
3929 {
3930
3931 ;
3932 return 0;
3933 }
3934 _ACEOF
3935 if ac_fn_c_try_compile "$LINENO"; then :
3936 ac_cv_prog_cc_g=yes
3937 fi
3938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939 fi
3940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941 fi
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 ac_c_werror_flag=$ac_save_c_werror_flag
3944 fi
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3946 $as_echo "$ac_cv_prog_cc_g" >&6; }
3947 if test "$ac_test_CFLAGS" = set; then
3948 CFLAGS=$ac_save_CFLAGS
3949 elif test $ac_cv_prog_cc_g = yes; then
3950 if test "$GCC" = yes; then
3951 CFLAGS="-g -O2"
3952 else
3953 CFLAGS="-g"
3954 fi
3955 else
3956 if test "$GCC" = yes; then
3957 CFLAGS="-O2"
3958 else
3959 CFLAGS=
3960 fi
3961 fi
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3963 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3964 if ${ac_cv_prog_cc_c89+:} false; then :
3965 $as_echo_n "(cached) " >&6
3966 else
3967 ac_cv_prog_cc_c89=no
3968 ac_save_CC=$CC
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3971 #include <stdarg.h>
3972 #include <stdio.h>
3973 struct stat;
3974 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3975 struct buf { int x; };
3976 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3977 static char *e (p, i)
3978 char **p;
3979 int i;
3980 {
3981 return p[i];
3982 }
3983 static char *f (char * (*g) (char **, int), char **p, ...)
3984 {
3985 char *s;
3986 va_list v;
3987 va_start (v,p);
3988 s = g (p, va_arg (v,int));
3989 va_end (v);
3990 return s;
3991 }
3992
3993 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3994 function prototypes and stuff, but not '\xHH' hex character constants.
3995 These don't provoke an error unfortunately, instead are silently treated
3996 as 'x'. The following induces an error, until -std is added to get
3997 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3998 array size at least. It's necessary to write '\x00'==0 to get something
3999 that's true only with -std. */
4000 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4001
4002 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4003 inside strings and character constants. */
4004 #define FOO(x) 'x'
4005 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4006
4007 int test (int i, double x);
4008 struct s1 {int (*f) (int a);};
4009 struct s2 {int (*f) (double a);};
4010 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4011 int argc;
4012 char **argv;
4013 int
4014 main ()
4015 {
4016 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4017 ;
4018 return 0;
4019 }
4020 _ACEOF
4021 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4022 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4023 do
4024 CC="$ac_save_CC $ac_arg"
4025 if ac_fn_c_try_compile "$LINENO"; then :
4026 ac_cv_prog_cc_c89=$ac_arg
4027 fi
4028 rm -f core conftest.err conftest.$ac_objext
4029 test "x$ac_cv_prog_cc_c89" != "xno" && break
4030 done
4031 rm -f conftest.$ac_ext
4032 CC=$ac_save_CC
4033
4034 fi
4035 # AC_CACHE_VAL
4036 case "x$ac_cv_prog_cc_c89" in
4037 x)
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4039 $as_echo "none needed" >&6; } ;;
4040 xno)
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4042 $as_echo "unsupported" >&6; } ;;
4043 *)
4044 CC="$CC $ac_cv_prog_cc_c89"
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4046 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4047 esac
4048 if test "x$ac_cv_prog_cc_c89" != xno; then :
4049
4050 fi
4051
4052 ac_ext=c
4053 ac_cpp='$CPP $CPPFLAGS'
4054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057
4058 ac_ext=c
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4064 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4065 if ${am_cv_prog_cc_c_o+:} false; then :
4066 $as_echo_n "(cached) " >&6
4067 else
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4070
4071 int
4072 main ()
4073 {
4074
4075 ;
4076 return 0;
4077 }
4078 _ACEOF
4079 # Make sure it works both with $CC and with simple cc.
4080 # Following AC_PROG_CC_C_O, we do the test twice because some
4081 # compilers refuse to overwrite an existing .o file with -o,
4082 # though they will create one.
4083 am_cv_prog_cc_c_o=yes
4084 for am_i in 1 2; do
4085 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4086 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4087 ac_status=$?
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } \
4090 && test -f conftest2.$ac_objext; then
4091 : OK
4092 else
4093 am_cv_prog_cc_c_o=no
4094 break
4095 fi
4096 done
4097 rm -f core conftest*
4098 unset am_i
4099 fi
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4101 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4102 if test "$am_cv_prog_cc_c_o" != yes; then
4103 # Losing compiler, so override with the script.
4104 # FIXME: It is wrong to rewrite CC.
4105 # But if we don't then we get into trouble of one sort or another.
4106 # A longer-term fix would be to have automake use am__CC in this case,
4107 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4108 CC="$am_aux_dir/compile $CC"
4109 fi
4110 ac_ext=c
4111 ac_cpp='$CPP $CPPFLAGS'
4112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115
4116 DEPDIR="${am__leading_dot}deps"
4117
4118 ac_config_commands="$ac_config_commands depfiles"
4119
4120
4121 am_make=${MAKE-make}
4122 cat > confinc << 'END'
4123 am__doit:
4124 @echo this is the am__doit target
4125 .PHONY: am__doit
4126 END
4127 # If we don't find an include directive, just comment out the code.
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4129 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4130 am__include="#"
4131 am__quote=
4132 _am_result=none
4133 # First try GNU make style include.
4134 echo "include confinc" > confmf
4135 # Ignore all kinds of additional output from 'make'.
4136 case `$am_make -s -f confmf 2> /dev/null` in #(
4137 *the\ am__doit\ target*)
4138 am__include=include
4139 am__quote=
4140 _am_result=GNU
4141 ;;
4142 esac
4143 # Now try BSD make style include.
4144 if test "$am__include" = "#"; then
4145 echo '.include "confinc"' > confmf
4146 case `$am_make -s -f confmf 2> /dev/null` in #(
4147 *the\ am__doit\ target*)
4148 am__include=.include
4149 am__quote="\""
4150 _am_result=BSD
4151 ;;
4152 esac
4153 fi
4154
4155
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4157 $as_echo "$_am_result" >&6; }
4158 rm -f confinc confmf
4159
4160 # Check whether --enable-dependency-tracking was given.
4161 if test "${enable_dependency_tracking+set}" = set; then :
4162 enableval=$enable_dependency_tracking;
4163 fi
4164
4165 if test "x$enable_dependency_tracking" != xno; then
4166 am_depcomp="$ac_aux_dir/depcomp"
4167 AMDEPBACKSLASH='\'
4168 am__nodep='_no'
4169 fi
4170 if test "x$enable_dependency_tracking" != xno; then
4171 AMDEP_TRUE=
4172 AMDEP_FALSE='#'
4173 else
4174 AMDEP_TRUE='#'
4175 AMDEP_FALSE=
4176 fi
4177
4178
4179
4180 depcc="$CC" am_compiler_list=
4181
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4183 $as_echo_n "checking dependency style of $depcc... " >&6; }
4184 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4187 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4188 # We make a subdir and do the tests there. Otherwise we can end up
4189 # making bogus files that we don't know about and never remove. For
4190 # instance it was reported that on HP-UX the gcc test will end up
4191 # making a dummy file named 'D' -- because '-MD' means "put the output
4192 # in D".
4193 rm -rf conftest.dir
4194 mkdir conftest.dir
4195 # Copy depcomp to subdir because otherwise we won't find it if we're
4196 # using a relative directory.
4197 cp "$am_depcomp" conftest.dir
4198 cd conftest.dir
4199 # We will build objects and dependencies in a subdirectory because
4200 # it helps to detect inapplicable dependency modes. For instance
4201 # both Tru64's cc and ICC support -MD to output dependencies as a
4202 # side effect of compilation, but ICC will put the dependencies in
4203 # the current directory while Tru64 will put them in the object
4204 # directory.
4205 mkdir sub
4206
4207 am_cv_CC_dependencies_compiler_type=none
4208 if test "$am_compiler_list" = ""; then
4209 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4210 fi
4211 am__universal=false
4212 case " $depcc " in #(
4213 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4214 esac
4215
4216 for depmode in $am_compiler_list; do
4217 # Setup a source with many dependencies, because some compilers
4218 # like to wrap large dependency lists on column 80 (with \), and
4219 # we should not choose a depcomp mode which is confused by this.
4220 #
4221 # We need to recreate these files for each test, as the compiler may
4222 # overwrite some of them when testing with obscure command lines.
4223 # This happens at least with the AIX C compiler.
4224 : > sub/conftest.c
4225 for i in 1 2 3 4 5 6; do
4226 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4227 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4228 # Solaris 10 /bin/sh.
4229 echo '/* dummy */' > sub/conftst$i.h
4230 done
4231 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4232
4233 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4234 # mode. It turns out that the SunPro C++ compiler does not properly
4235 # handle '-M -o', and we need to detect this. Also, some Intel
4236 # versions had trouble with output in subdirs.
4237 am__obj=sub/conftest.${OBJEXT-o}
4238 am__minus_obj="-o $am__obj"
4239 case $depmode in
4240 gcc)
4241 # This depmode causes a compiler race in universal mode.
4242 test "$am__universal" = false || continue
4243 ;;
4244 nosideeffect)
4245 # After this tag, mechanisms are not by side-effect, so they'll
4246 # only be used when explicitly requested.
4247 if test "x$enable_dependency_tracking" = xyes; then
4248 continue
4249 else
4250 break
4251 fi
4252 ;;
4253 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4254 # This compiler won't grok '-c -o', but also, the minuso test has
4255 # not run yet. These depmodes are late enough in the game, and
4256 # so weak that their functioning should not be impacted.
4257 am__obj=conftest.${OBJEXT-o}
4258 am__minus_obj=
4259 ;;
4260 none) break ;;
4261 esac
4262 if depmode=$depmode \
4263 source=sub/conftest.c object=$am__obj \
4264 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4265 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4266 >/dev/null 2>conftest.err &&
4267 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4268 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4269 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4270 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4271 # icc doesn't choke on unknown options, it will just issue warnings
4272 # or remarks (even with -Werror). So we grep stderr for any message
4273 # that says an option was ignored or not supported.
4274 # When given -MP, icc 7.0 and 7.1 complain thusly:
4275 # icc: Command line warning: ignoring option '-M'; no argument required
4276 # The diagnosis changed in icc 8.0:
4277 # icc: Command line remark: option '-MP' not supported
4278 if (grep 'ignoring option' conftest.err ||
4279 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4280 am_cv_CC_dependencies_compiler_type=$depmode
4281 break
4282 fi
4283 fi
4284 done
4285
4286 cd ..
4287 rm -rf conftest.dir
4288 else
4289 am_cv_CC_dependencies_compiler_type=none
4290 fi
4291
4292 fi
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4294 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4295 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4296
4297 if
4298 test "x$enable_dependency_tracking" != xno \
4299 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4300 am__fastdepCC_TRUE=
4301 am__fastdepCC_FALSE='#'
4302 else
4303 am__fastdepCC_TRUE='#'
4304 am__fastdepCC_FALSE=
4305 fi
4306
4307
4308 ac_ext=cpp
4309 ac_cpp='$CXXCPP $CPPFLAGS'
4310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4313 if test -z "$CXX"; then
4314 if test -n "$CCC"; then
4315 CXX=$CCC
4316 else
4317 if test -n "$ac_tool_prefix"; then
4318 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4319 do
4320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323 $as_echo_n "checking for $ac_word... " >&6; }
4324 if ${ac_cv_prog_CXX+:} false; then :
4325 $as_echo_n "(cached) " >&6
4326 else
4327 if test -n "$CXX"; then
4328 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4329 else
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH
4332 do
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4337 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 break 2
4340 fi
4341 done
4342 done
4343 IFS=$as_save_IFS
4344
4345 fi
4346 fi
4347 CXX=$ac_cv_prog_CXX
4348 if test -n "$CXX"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4350 $as_echo "$CXX" >&6; }
4351 else
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4354 fi
4355
4356
4357 test -n "$CXX" && break
4358 done
4359 fi
4360 if test -z "$CXX"; then
4361 ac_ct_CXX=$CXX
4362 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4363 do
4364 # Extract the first word of "$ac_prog", so it can be a program name with args.
4365 set dummy $ac_prog; ac_word=$2
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367 $as_echo_n "checking for $ac_word... " >&6; }
4368 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 if test -n "$ac_ct_CXX"; then
4372 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4373 else
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4376 do
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381 ac_cv_prog_ac_ct_CXX="$ac_prog"
4382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 break 2
4384 fi
4385 done
4386 done
4387 IFS=$as_save_IFS
4388
4389 fi
4390 fi
4391 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4392 if test -n "$ac_ct_CXX"; then
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4394 $as_echo "$ac_ct_CXX" >&6; }
4395 else
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397 $as_echo "no" >&6; }
4398 fi
4399
4400
4401 test -n "$ac_ct_CXX" && break
4402 done
4403
4404 if test "x$ac_ct_CXX" = x; then
4405 CXX="g++"
4406 else
4407 case $cross_compiling:$ac_tool_warned in
4408 yes:)
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4411 ac_tool_warned=yes ;;
4412 esac
4413 CXX=$ac_ct_CXX
4414 fi
4415 fi
4416
4417 fi
4418 fi
4419 # Provide some information about the compiler.
4420 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4421 set X $ac_compile
4422 ac_compiler=$2
4423 for ac_option in --version -v -V -qversion; do
4424 { { ac_try="$ac_compiler $ac_option >&5"
4425 case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4428 esac
4429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430 $as_echo "$ac_try_echo"; } >&5
4431 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4432 ac_status=$?
4433 if test -s conftest.err; then
4434 sed '10a\
4435 ... rest of stderr output deleted ...
4436 10q' conftest.err >conftest.er1
4437 cat conftest.er1 >&5
4438 fi
4439 rm -f conftest.er1 conftest.err
4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; }
4442 done
4443
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4445 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4446 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451
4452 int
4453 main ()
4454 {
4455 #ifndef __GNUC__
4456 choke me
4457 #endif
4458
4459 ;
4460 return 0;
4461 }
4462 _ACEOF
4463 if ac_fn_cxx_try_compile "$LINENO"; then :
4464 ac_compiler_gnu=yes
4465 else
4466 ac_compiler_gnu=no
4467 fi
4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4470
4471 fi
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4473 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4474 if test $ac_compiler_gnu = yes; then
4475 GXX=yes
4476 else
4477 GXX=
4478 fi
4479 ac_test_CXXFLAGS=${CXXFLAGS+set}
4480 ac_save_CXXFLAGS=$CXXFLAGS
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4482 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4483 if ${ac_cv_prog_cxx_g+:} false; then :
4484 $as_echo_n "(cached) " >&6
4485 else
4486 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4487 ac_cxx_werror_flag=yes
4488 ac_cv_prog_cxx_g=no
4489 CXXFLAGS="-g"
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4492
4493 int
4494 main ()
4495 {
4496
4497 ;
4498 return 0;
4499 }
4500 _ACEOF
4501 if ac_fn_cxx_try_compile "$LINENO"; then :
4502 ac_cv_prog_cxx_g=yes
4503 else
4504 CXXFLAGS=""
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507
4508 int
4509 main ()
4510 {
4511
4512 ;
4513 return 0;
4514 }
4515 _ACEOF
4516 if ac_fn_cxx_try_compile "$LINENO"; then :
4517
4518 else
4519 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4520 CXXFLAGS="-g"
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4523
4524 int
4525 main ()
4526 {
4527
4528 ;
4529 return 0;
4530 }
4531 _ACEOF
4532 if ac_fn_cxx_try_compile "$LINENO"; then :
4533 ac_cv_prog_cxx_g=yes
4534 fi
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 fi
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 fi
4539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4543 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4544 if test "$ac_test_CXXFLAGS" = set; then
4545 CXXFLAGS=$ac_save_CXXFLAGS
4546 elif test $ac_cv_prog_cxx_g = yes; then
4547 if test "$GXX" = yes; then
4548 CXXFLAGS="-g -O2"
4549 else
4550 CXXFLAGS="-g"
4551 fi
4552 else
4553 if test "$GXX" = yes; then
4554 CXXFLAGS="-O2"
4555 else
4556 CXXFLAGS=
4557 fi
4558 fi
4559 ac_ext=c
4560 ac_cpp='$CPP $CPPFLAGS'
4561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4564
4565 depcc="$CXX" am_compiler_list=
4566
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4568 $as_echo_n "checking dependency style of $depcc... " >&6; }
4569 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4573 # We make a subdir and do the tests there. Otherwise we can end up
4574 # making bogus files that we don't know about and never remove. For
4575 # instance it was reported that on HP-UX the gcc test will end up
4576 # making a dummy file named 'D' -- because '-MD' means "put the output
4577 # in D".
4578 rm -rf conftest.dir
4579 mkdir conftest.dir
4580 # Copy depcomp to subdir because otherwise we won't find it if we're
4581 # using a relative directory.
4582 cp "$am_depcomp" conftest.dir
4583 cd conftest.dir
4584 # We will build objects and dependencies in a subdirectory because
4585 # it helps to detect inapplicable dependency modes. For instance
4586 # both Tru64's cc and ICC support -MD to output dependencies as a
4587 # side effect of compilation, but ICC will put the dependencies in
4588 # the current directory while Tru64 will put them in the object
4589 # directory.
4590 mkdir sub
4591
4592 am_cv_CXX_dependencies_compiler_type=none
4593 if test "$am_compiler_list" = ""; then
4594 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4595 fi
4596 am__universal=false
4597 case " $depcc " in #(
4598 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4599 esac
4600
4601 for depmode in $am_compiler_list; do
4602 # Setup a source with many dependencies, because some compilers
4603 # like to wrap large dependency lists on column 80 (with \), and
4604 # we should not choose a depcomp mode which is confused by this.
4605 #
4606 # We need to recreate these files for each test, as the compiler may
4607 # overwrite some of them when testing with obscure command lines.
4608 # This happens at least with the AIX C compiler.
4609 : > sub/conftest.c
4610 for i in 1 2 3 4 5 6; do
4611 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4612 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4613 # Solaris 10 /bin/sh.
4614 echo '/* dummy */' > sub/conftst$i.h
4615 done
4616 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4617
4618 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4619 # mode. It turns out that the SunPro C++ compiler does not properly
4620 # handle '-M -o', and we need to detect this. Also, some Intel
4621 # versions had trouble with output in subdirs.
4622 am__obj=sub/conftest.${OBJEXT-o}
4623 am__minus_obj="-o $am__obj"
4624 case $depmode in
4625 gcc)
4626 # This depmode causes a compiler race in universal mode.
4627 test "$am__universal" = false || continue
4628 ;;
4629 nosideeffect)
4630 # After this tag, mechanisms are not by side-effect, so they'll
4631 # only be used when explicitly requested.
4632 if test "x$enable_dependency_tracking" = xyes; then
4633 continue
4634 else
4635 break
4636 fi
4637 ;;
4638 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4639 # This compiler won't grok '-c -o', but also, the minuso test has
4640 # not run yet. These depmodes are late enough in the game, and
4641 # so weak that their functioning should not be impacted.
4642 am__obj=conftest.${OBJEXT-o}
4643 am__minus_obj=
4644 ;;
4645 none) break ;;
4646 esac
4647 if depmode=$depmode \
4648 source=sub/conftest.c object=$am__obj \
4649 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4650 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4651 >/dev/null 2>conftest.err &&
4652 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4653 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4654 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4655 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4656 # icc doesn't choke on unknown options, it will just issue warnings
4657 # or remarks (even with -Werror). So we grep stderr for any message
4658 # that says an option was ignored or not supported.
4659 # When given -MP, icc 7.0 and 7.1 complain thusly:
4660 # icc: Command line warning: ignoring option '-M'; no argument required
4661 # The diagnosis changed in icc 8.0:
4662 # icc: Command line remark: option '-MP' not supported
4663 if (grep 'ignoring option' conftest.err ||
4664 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4665 am_cv_CXX_dependencies_compiler_type=$depmode
4666 break
4667 fi
4668 fi
4669 done
4670
4671 cd ..
4672 rm -rf conftest.dir
4673 else
4674 am_cv_CXX_dependencies_compiler_type=none
4675 fi
4676
4677 fi
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4679 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4680 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4681
4682 if
4683 test "x$enable_dependency_tracking" != xno \
4684 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4685 am__fastdepCXX_TRUE=
4686 am__fastdepCXX_FALSE='#'
4687 else
4688 am__fastdepCXX_TRUE='#'
4689 am__fastdepCXX_FALSE=
4690 fi
4691
4692
4693 ac_ext=c
4694 ac_cpp='$CPP $CPPFLAGS'
4695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4699 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4700 # On Suns, sometimes $CPP names a directory.
4701 if test -n "$CPP" && test -d "$CPP"; then
4702 CPP=
4703 fi
4704 if test -z "$CPP"; then
4705 if ${ac_cv_prog_CPP+:} false; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 # Double quotes because CPP needs to be expanded
4709 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4710 do
4711 ac_preproc_ok=false
4712 for ac_c_preproc_warn_flag in '' yes
4713 do
4714 # Use a header file that comes with gcc, so configuring glibc
4715 # with a fresh cross-compiler works.
4716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4717 # <limits.h> exists even on freestanding compilers.
4718 # On the NeXT, cc -E runs the code through the compiler's parser,
4719 # not just through cpp. "Syntax error" is here to catch this case.
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4722 #ifdef __STDC__
4723 # include <limits.h>
4724 #else
4725 # include <assert.h>
4726 #endif
4727 Syntax error
4728 _ACEOF
4729 if ac_fn_c_try_cpp "$LINENO"; then :
4730
4731 else
4732 # Broken: fails on valid input.
4733 continue
4734 fi
4735 rm -f conftest.err conftest.i conftest.$ac_ext
4736
4737 # OK, works on sane cases. Now check whether nonexistent headers
4738 # can be detected and how.
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4741 #include <ac_nonexistent.h>
4742 _ACEOF
4743 if ac_fn_c_try_cpp "$LINENO"; then :
4744 # Broken: success on invalid input.
4745 continue
4746 else
4747 # Passes both tests.
4748 ac_preproc_ok=:
4749 break
4750 fi
4751 rm -f conftest.err conftest.i conftest.$ac_ext
4752
4753 done
4754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4755 rm -f conftest.i conftest.err conftest.$ac_ext
4756 if $ac_preproc_ok; then :
4757 break
4758 fi
4759
4760 done
4761 ac_cv_prog_CPP=$CPP
4762
4763 fi
4764 CPP=$ac_cv_prog_CPP
4765 else
4766 ac_cv_prog_CPP=$CPP
4767 fi
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4769 $as_echo "$CPP" >&6; }
4770 ac_preproc_ok=false
4771 for ac_c_preproc_warn_flag in '' yes
4772 do
4773 # Use a header file that comes with gcc, so configuring glibc
4774 # with a fresh cross-compiler works.
4775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4776 # <limits.h> exists even on freestanding compilers.
4777 # On the NeXT, cc -E runs the code through the compiler's parser,
4778 # not just through cpp. "Syntax error" is here to catch this case.
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4781 #ifdef __STDC__
4782 # include <limits.h>
4783 #else
4784 # include <assert.h>
4785 #endif
4786 Syntax error
4787 _ACEOF
4788 if ac_fn_c_try_cpp "$LINENO"; then :
4789
4790 else
4791 # Broken: fails on valid input.
4792 continue
4793 fi
4794 rm -f conftest.err conftest.i conftest.$ac_ext
4795
4796 # OK, works on sane cases. Now check whether nonexistent headers
4797 # can be detected and how.
4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h. */
4800 #include <ac_nonexistent.h>
4801 _ACEOF
4802 if ac_fn_c_try_cpp "$LINENO"; then :
4803 # Broken: success on invalid input.
4804 continue
4805 else
4806 # Passes both tests.
4807 ac_preproc_ok=:
4808 break
4809 fi
4810 rm -f conftest.err conftest.i conftest.$ac_ext
4811
4812 done
4813 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4814 rm -f conftest.i conftest.err conftest.$ac_ext
4815 if $ac_preproc_ok; then :
4816
4817 else
4818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4820 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4821 See \`config.log' for more details" "$LINENO" 5; }
4822 fi
4823
4824 ac_ext=c
4825 ac_cpp='$CPP $CPPFLAGS'
4826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4829
4830
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4832 $as_echo_n "checking whether ln -s works... " >&6; }
4833 LN_S=$as_ln_s
4834 if test "$LN_S" = "ln -s"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4836 $as_echo "yes" >&6; }
4837 else
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4839 $as_echo "no, using $LN_S" >&6; }
4840 fi
4841
4842
4843
4844 for ac_prog in perl5 perl
4845 do
4846 # Extract the first word of "$ac_prog", so it can be a program name with args.
4847 set dummy $ac_prog; ac_word=$2
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849 $as_echo_n "checking for $ac_word... " >&6; }
4850 if ${ac_cv_path_SYSCONFTOOL_PERL+:} false; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4853 case $SYSCONFTOOL_PERL in
4854 [\\/]* | ?:[\\/]*)
4855 ac_cv_path_SYSCONFTOOL_PERL="$SYSCONFTOOL_PERL" # Let the user override the test with a path.
4856 ;;
4857 *)
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4860 do
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865 ac_cv_path_SYSCONFTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4868 fi
4869 done
4870 done
4871 IFS=$as_save_IFS
4872
4873 ;;
4874 esac
4875 fi
4876 SYSCONFTOOL_PERL=$ac_cv_path_SYSCONFTOOL_PERL
4877 if test -n "$SYSCONFTOOL_PERL"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFTOOL_PERL" >&5
4879 $as_echo "$SYSCONFTOOL_PERL" >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4883 fi
4884
4885
4886 test -n "$SYSCONFTOOL_PERL" && break
4887 done
4888 test -n "$SYSCONFTOOL_PERL" || SYSCONFTOOL_PERL="perl"
4889
4890
4891 if test "$SYSCONFTOOL_PERL" = "perl"
4892 then
4893 as_fn_error $? "perl not found - please install perl" "$LINENO" 5
4894 fi
4895
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconftool..." >&5
4897 $as_echo_n "checking for sysconftool...... " >&6; }
4898 SYSCONFTOOL=""
4899 for sysconf_dir in $ac_aux_dir . .. ../..
4900 do
4901 if test -f $srcdir/$sysconf_dir/sysconftool
4902 then
4903 SYSCONFTOOL=$srcdir/$sysconf_dir/sysconftool
4904 break
4905 fi
4906 done
4907
4908 if test "$SYSCONFTOOL" = ""
4909 then
4910 as_fn_error $? "sysconftool missing - not in the package" "$LINENO" 5
4911 fi
4912
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFTOOL" >&5
4914 $as_echo "$SYSCONFTOOL" >&6; }
4915 SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL"
4916
4917
4918
4919 case `pwd` in
4920 *\ * | *\ *)
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4922 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4923 esac
4924
4925
4926
4927 macro_version='2.4.6'
4928 macro_revision='2.4.6'
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942 ltmain=$ac_aux_dir/ltmain.sh
4943
4944 # Make sure we can run config.sub.
4945 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4946 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4947
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4949 $as_echo_n "checking build system type... " >&6; }
4950 if ${ac_cv_build+:} false; then :
4951 $as_echo_n "(cached) " >&6
4952 else
4953 ac_build_alias=$build_alias
4954 test "x$ac_build_alias" = x &&
4955 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4956 test "x$ac_build_alias" = x &&
4957 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4958 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4959 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4960
4961 fi
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4963 $as_echo "$ac_cv_build" >&6; }
4964 case $ac_cv_build in
4965 *-*-*) ;;
4966 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4967 esac
4968 build=$ac_cv_build
4969 ac_save_IFS=$IFS; IFS='-'
4970 set x $ac_cv_build
4971 shift
4972 build_cpu=$1
4973 build_vendor=$2
4974 shift; shift
4975 # Remember, the first character of IFS is used to create $*,
4976 # except with old shells:
4977 build_os=$*
4978 IFS=$ac_save_IFS
4979 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4980
4981
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4983 $as_echo_n "checking host system type... " >&6; }
4984 if ${ac_cv_host+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 if test "x$host_alias" = x; then
4988 ac_cv_host=$ac_cv_build
4989 else
4990 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4991 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4992 fi
4993
4994 fi
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4996 $as_echo "$ac_cv_host" >&6; }
4997 case $ac_cv_host in
4998 *-*-*) ;;
4999 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5000 esac
5001 host=$ac_cv_host
5002 ac_save_IFS=$IFS; IFS='-'
5003 set x $ac_cv_host
5004 shift
5005 host_cpu=$1
5006 host_vendor=$2
5007 shift; shift
5008 # Remember, the first character of IFS is used to create $*,
5009 # except with old shells:
5010 host_os=$*
5011 IFS=$ac_save_IFS
5012 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5013
5014
5015 # Backslashify metacharacters that are still active within
5016 # double-quoted strings.
5017 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5018
5019 # Same as above, but do not quote variable references.
5020 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5021
5022 # Sed substitution to delay expansion of an escaped shell variable in a
5023 # double_quote_subst'ed string.
5024 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5025
5026 # Sed substitution to delay expansion of an escaped single quote.
5027 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5028
5029 # Sed substitution to avoid accidental globbing in evaled expressions
5030 no_glob_subst='s/\*/\\\*/g'
5031
5032 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5033 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5034 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5035
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5037 $as_echo_n "checking how to print strings... " >&6; }
5038 # Test print first, because it will be a builtin if present.
5039 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5040 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5041 ECHO='print -r --'
5042 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5043 ECHO='printf %s\n'
5044 else
5045 # Use this function as a fallback that always works.
5046 func_fallback_echo ()
5047 {
5048 eval 'cat <<_LTECHO_EOF
5049 $1
5050 _LTECHO_EOF'
5051 }
5052 ECHO='func_fallback_echo'
5053 fi
5054
5055 # func_echo_all arg...
5056 # Invoke $ECHO with all args, space-separated.
5057 func_echo_all ()
5058 {
5059 $ECHO ""
5060 }
5061
5062 case $ECHO in
5063 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5064 $as_echo "printf" >&6; } ;;
5065 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5066 $as_echo "print -r" >&6; } ;;
5067 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5068 $as_echo "cat" >&6; } ;;
5069 esac
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5085 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5086 if ${ac_cv_path_SED+:} false; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5090 for ac_i in 1 2 3 4 5 6 7; do
5091 ac_script="$ac_script$as_nl$ac_script"
5092 done
5093 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5094 { ac_script=; unset ac_script;}
5095 if test -z "$SED"; then
5096 ac_path_SED_found=false
5097 # Loop through the user's path and test for each of PROGNAME-LIST
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5100 do
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_prog in sed gsed; do
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5106 as_fn_executable_p "$ac_path_SED" || continue
5107 # Check for GNU ac_path_SED and select it if it is found.
5108 # Check for GNU $ac_path_SED
5109 case `"$ac_path_SED" --version 2>&1` in
5110 *GNU*)
5111 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5112 *)
5113 ac_count=0
5114 $as_echo_n 0123456789 >"conftest.in"
5115 while :
5116 do
5117 cat "conftest.in" "conftest.in" >"conftest.tmp"
5118 mv "conftest.tmp" "conftest.in"
5119 cp "conftest.in" "conftest.nl"
5120 $as_echo '' >> "conftest.nl"
5121 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5123 as_fn_arith $ac_count + 1 && ac_count=$as_val
5124 if test $ac_count -gt ${ac_path_SED_max-0}; then
5125 # Best one so far, save it but keep looking for a better one
5126 ac_cv_path_SED="$ac_path_SED"
5127 ac_path_SED_max=$ac_count
5128 fi
5129 # 10*(2^10) chars as input seems more than enough
5130 test $ac_count -gt 10 && break
5131 done
5132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5133 esac
5134
5135 $ac_path_SED_found && break 3
5136 done
5137 done
5138 done
5139 IFS=$as_save_IFS
5140 if test -z "$ac_cv_path_SED"; then
5141 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5142 fi
5143 else
5144 ac_cv_path_SED=$SED
5145 fi
5146
5147 fi
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5149 $as_echo "$ac_cv_path_SED" >&6; }
5150 SED="$ac_cv_path_SED"
5151 rm -f conftest.sed
5152
5153 test -z "$SED" && SED=sed
5154 Xsed="$SED -e 1s/^X//"
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5167 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5168 if ${ac_cv_path_GREP+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 if test -z "$GREP"; then
5172 ac_path_GREP_found=false
5173 # Loop through the user's path and test for each of PROGNAME-LIST
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5176 do
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_prog in grep ggrep; do
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5182 as_fn_executable_p "$ac_path_GREP" || continue
5183 # Check for GNU ac_path_GREP and select it if it is found.
5184 # Check for GNU $ac_path_GREP
5185 case `"$ac_path_GREP" --version 2>&1` in
5186 *GNU*)
5187 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5188 *)
5189 ac_count=0
5190 $as_echo_n 0123456789 >"conftest.in"
5191 while :
5192 do
5193 cat "conftest.in" "conftest.in" >"conftest.tmp"
5194 mv "conftest.tmp" "conftest.in"
5195 cp "conftest.in" "conftest.nl"
5196 $as_echo 'GREP' >> "conftest.nl"
5197 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5199 as_fn_arith $ac_count + 1 && ac_count=$as_val
5200 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5201 # Best one so far, save it but keep looking for a better one
5202 ac_cv_path_GREP="$ac_path_GREP"
5203 ac_path_GREP_max=$ac_count
5204 fi
5205 # 10*(2^10) chars as input seems more than enough
5206 test $ac_count -gt 10 && break
5207 done
5208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5209 esac
5210
5211 $ac_path_GREP_found && break 3
5212 done
5213 done
5214 done
5215 IFS=$as_save_IFS
5216 if test -z "$ac_cv_path_GREP"; then
5217 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5218 fi
5219 else
5220 ac_cv_path_GREP=$GREP
5221 fi
5222
5223 fi
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5225 $as_echo "$ac_cv_path_GREP" >&6; }
5226 GREP="$ac_cv_path_GREP"
5227
5228
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5230 $as_echo_n "checking for egrep... " >&6; }
5231 if ${ac_cv_path_EGREP+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5235 then ac_cv_path_EGREP="$GREP -E"
5236 else
5237 if test -z "$EGREP"; then
5238 ac_path_EGREP_found=false
5239 # Loop through the user's path and test for each of PROGNAME-LIST
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5242 do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_prog in egrep; do
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5248 as_fn_executable_p "$ac_path_EGREP" || continue
5249 # Check for GNU ac_path_EGREP and select it if it is found.
5250 # Check for GNU $ac_path_EGREP
5251 case `"$ac_path_EGREP" --version 2>&1` in
5252 *GNU*)
5253 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5254 *)
5255 ac_count=0
5256 $as_echo_n 0123456789 >"conftest.in"
5257 while :
5258 do
5259 cat "conftest.in" "conftest.in" >"conftest.tmp"
5260 mv "conftest.tmp" "conftest.in"
5261 cp "conftest.in" "conftest.nl"
5262 $as_echo 'EGREP' >> "conftest.nl"
5263 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5265 as_fn_arith $ac_count + 1 && ac_count=$as_val
5266 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5267 # Best one so far, save it but keep looking for a better one
5268 ac_cv_path_EGREP="$ac_path_EGREP"
5269 ac_path_EGREP_max=$ac_count
5270 fi
5271 # 10*(2^10) chars as input seems more than enough
5272 test $ac_count -gt 10 && break
5273 done
5274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5275 esac
5276
5277 $ac_path_EGREP_found && break 3
5278 done
5279 done
5280 done
5281 IFS=$as_save_IFS
5282 if test -z "$ac_cv_path_EGREP"; then
5283 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5284 fi
5285 else
5286 ac_cv_path_EGREP=$EGREP
5287 fi
5288
5289 fi
5290 fi
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5292 $as_echo "$ac_cv_path_EGREP" >&6; }
5293 EGREP="$ac_cv_path_EGREP"
5294
5295
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5297 $as_echo_n "checking for fgrep... " >&6; }
5298 if ${ac_cv_path_FGREP+:} false; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5301 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5302 then ac_cv_path_FGREP="$GREP -F"
5303 else
5304 if test -z "$FGREP"; then
5305 ac_path_FGREP_found=false
5306 # Loop through the user's path and test for each of PROGNAME-LIST
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5309 do
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_prog in fgrep; do
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5315 as_fn_executable_p "$ac_path_FGREP" || continue
5316 # Check for GNU ac_path_FGREP and select it if it is found.
5317 # Check for GNU $ac_path_FGREP
5318 case `"$ac_path_FGREP" --version 2>&1` in
5319 *GNU*)
5320 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5321 *)
5322 ac_count=0
5323 $as_echo_n 0123456789 >"conftest.in"
5324 while :
5325 do
5326 cat "conftest.in" "conftest.in" >"conftest.tmp"
5327 mv "conftest.tmp" "conftest.in"
5328 cp "conftest.in" "conftest.nl"
5329 $as_echo 'FGREP' >> "conftest.nl"
5330 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5331 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5332 as_fn_arith $ac_count + 1 && ac_count=$as_val
5333 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5334 # Best one so far, save it but keep looking for a better one
5335 ac_cv_path_FGREP="$ac_path_FGREP"
5336 ac_path_FGREP_max=$ac_count
5337 fi
5338 # 10*(2^10) chars as input seems more than enough
5339 test $ac_count -gt 10 && break
5340 done
5341 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5342 esac
5343
5344 $ac_path_FGREP_found && break 3
5345 done
5346 done
5347 done
5348 IFS=$as_save_IFS
5349 if test -z "$ac_cv_path_FGREP"; then
5350 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5351 fi
5352 else
5353 ac_cv_path_FGREP=$FGREP
5354 fi
5355
5356 fi
5357 fi
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5359 $as_echo "$ac_cv_path_FGREP" >&6; }
5360 FGREP="$ac_cv_path_FGREP"
5361
5362
5363 test -z "$GREP" && GREP=grep
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383 # Check whether --with-gnu-ld was given.
5384 if test "${with_gnu_ld+set}" = set; then :
5385 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5386 else
5387 with_gnu_ld=no
5388 fi
5389
5390 ac_prog=ld
5391 if test yes = "$GCC"; then
5392 # Check if gcc -print-prog-name=ld gives a path.
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5394 $as_echo_n "checking for ld used by $CC... " >&6; }
5395 case $host in
5396 *-*-mingw*)
5397 # gcc leaves a trailing carriage return, which upsets mingw
5398 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5399 *)
5400 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5401 esac
5402 case $ac_prog in
5403 # Accept absolute paths.
5404 [\\/]* | ?:[\\/]*)
5405 re_direlt='/[^/][^/]*/\.\./'
5406 # Canonicalize the pathname of ld
5407 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5408 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5409 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5410 done
5411 test -z "$LD" && LD=$ac_prog
5412 ;;
5413 "")
5414 # If it fails, then pretend we aren't using GCC.
5415 ac_prog=ld
5416 ;;
5417 *)
5418 # If it is relative, then search for the first ld in PATH.
5419 with_gnu_ld=unknown
5420 ;;
5421 esac
5422 elif test yes = "$with_gnu_ld"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5424 $as_echo_n "checking for GNU ld... " >&6; }
5425 else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5427 $as_echo_n "checking for non-GNU ld... " >&6; }
5428 fi
5429 if ${lt_cv_path_LD+:} false; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 if test -z "$LD"; then
5433 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5434 for ac_dir in $PATH; do
5435 IFS=$lt_save_ifs
5436 test -z "$ac_dir" && ac_dir=.
5437 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5438 lt_cv_path_LD=$ac_dir/$ac_prog
5439 # Check to see if the program is GNU ld. I'd rather use --version,
5440 # but apparently some variants of GNU ld only accept -v.
5441 # Break only if it was the GNU/non-GNU ld that we prefer.
5442 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5443 *GNU* | *'with BFD'*)
5444 test no != "$with_gnu_ld" && break
5445 ;;
5446 *)
5447 test yes != "$with_gnu_ld" && break
5448 ;;
5449 esac
5450 fi
5451 done
5452 IFS=$lt_save_ifs
5453 else
5454 lt_cv_path_LD=$LD # Let the user override the test with a path.
5455 fi
5456 fi
5457
5458 LD=$lt_cv_path_LD
5459 if test -n "$LD"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5461 $as_echo "$LD" >&6; }
5462 else
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5465 fi
5466 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5468 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5469 if ${lt_cv_prog_gnu_ld+:} false; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5473 case `$LD -v 2>&1 </dev/null` in
5474 *GNU* | *'with BFD'*)
5475 lt_cv_prog_gnu_ld=yes
5476 ;;
5477 *)
5478 lt_cv_prog_gnu_ld=no
5479 ;;
5480 esac
5481 fi
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5483 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5484 with_gnu_ld=$lt_cv_prog_gnu_ld
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5495 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5496 if ${lt_cv_path_NM+:} false; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 if test -n "$NM"; then
5500 # Let the user override the test.
5501 lt_cv_path_NM=$NM
5502 else
5503 lt_nm_to_check=${ac_tool_prefix}nm
5504 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5505 lt_nm_to_check="$lt_nm_to_check nm"
5506 fi
5507 for lt_tmp_nm in $lt_nm_to_check; do
5508 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5509 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5510 IFS=$lt_save_ifs
5511 test -z "$ac_dir" && ac_dir=.
5512 tmp_nm=$ac_dir/$lt_tmp_nm
5513 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5514 # Check to see if the nm accepts a BSD-compat flag.
5515 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5516 # nm: unknown option "B" ignored
5517 # Tru64's nm complains that /dev/null is an invalid object file
5518 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5519 case $build_os in
5520 mingw*) lt_bad_file=conftest.nm/nofile ;;
5521 *) lt_bad_file=/dev/null ;;
5522 esac
5523 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5524 *$lt_bad_file* | *'Invalid file or object type'*)
5525 lt_cv_path_NM="$tmp_nm -B"
5526 break 2
5527 ;;
5528 *)
5529 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5530 */dev/null*)
5531 lt_cv_path_NM="$tmp_nm -p"
5532 break 2
5533 ;;
5534 *)
5535 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5536 continue # so that we can try to find one that supports BSD flags
5537 ;;
5538 esac
5539 ;;
5540 esac
5541 fi
5542 done
5543 IFS=$lt_save_ifs
5544 done
5545 : ${lt_cv_path_NM=no}
5546 fi
5547 fi
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5549 $as_echo "$lt_cv_path_NM" >&6; }
5550 if test no != "$lt_cv_path_NM"; then
5551 NM=$lt_cv_path_NM
5552 else
5553 # Didn't find any BSD compatible name lister, look for dumpbin.
5554 if test -n "$DUMPBIN"; then :
5555 # Let the user override the test.
5556 else
5557 if test -n "$ac_tool_prefix"; then
5558 for ac_prog in dumpbin "link -dump"
5559 do
5560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if ${ac_cv_prog_DUMPBIN+:} false; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 if test -n "$DUMPBIN"; then
5568 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5569 else
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 for as_dir in $PATH
5572 do
5573 IFS=$as_save_IFS
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579 break 2
5580 fi
5581 done
5582 done
5583 IFS=$as_save_IFS
5584
5585 fi
5586 fi
5587 DUMPBIN=$ac_cv_prog_DUMPBIN
5588 if test -n "$DUMPBIN"; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5590 $as_echo "$DUMPBIN" >&6; }
5591 else
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5594 fi
5595
5596
5597 test -n "$DUMPBIN" && break
5598 done
5599 fi
5600 if test -z "$DUMPBIN"; then
5601 ac_ct_DUMPBIN=$DUMPBIN
5602 for ac_prog in dumpbin "link -dump"
5603 do
5604 # Extract the first word of "$ac_prog", so it can be a program name with args.
5605 set dummy $ac_prog; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 if test -n "$ac_ct_DUMPBIN"; then
5612 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5624 fi
5625 done
5626 done
5627 IFS=$as_save_IFS
5628
5629 fi
5630 fi
5631 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5632 if test -n "$ac_ct_DUMPBIN"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5634 $as_echo "$ac_ct_DUMPBIN" >&6; }
5635 else
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639
5640
5641 test -n "$ac_ct_DUMPBIN" && break
5642 done
5643
5644 if test "x$ac_ct_DUMPBIN" = x; then
5645 DUMPBIN=":"
5646 else
5647 case $cross_compiling:$ac_tool_warned in
5648 yes:)
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5651 ac_tool_warned=yes ;;
5652 esac
5653 DUMPBIN=$ac_ct_DUMPBIN
5654 fi
5655 fi
5656
5657 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5658 *COFF*)
5659 DUMPBIN="$DUMPBIN -symbols -headers"
5660 ;;
5661 *)
5662 DUMPBIN=:
5663 ;;
5664 esac
5665 fi
5666
5667 if test : != "$DUMPBIN"; then
5668 NM=$DUMPBIN
5669 fi
5670 fi
5671 test -z "$NM" && NM=nm
5672
5673
5674
5675
5676
5677
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5679 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5680 if ${lt_cv_nm_interface+:} false; then :
5681 $as_echo_n "(cached) " >&6
5682 else
5683 lt_cv_nm_interface="BSD nm"
5684 echo "int some_variable = 0;" > conftest.$ac_ext
5685 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5686 (eval "$ac_compile" 2>conftest.err)
5687 cat conftest.err >&5
5688 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5689 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5690 cat conftest.err >&5
5691 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5692 cat conftest.out >&5
5693 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5694 lt_cv_nm_interface="MS dumpbin"
5695 fi
5696 rm -f conftest*
5697 fi
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5699 $as_echo "$lt_cv_nm_interface" >&6; }
5700
5701 # find the maximum length of command line arguments
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5703 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5704 if ${lt_cv_sys_max_cmd_len+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 i=0
5708 teststring=ABCD
5709
5710 case $build_os in
5711 msdosdjgpp*)
5712 # On DJGPP, this test can blow up pretty badly due to problems in libc
5713 # (any single argument exceeding 2000 bytes causes a buffer overrun
5714 # during glob expansion). Even if it were fixed, the result of this
5715 # check would be larger than it should be.
5716 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5717 ;;
5718
5719 gnu*)
5720 # Under GNU Hurd, this test is not required because there is
5721 # no limit to the length of command line arguments.
5722 # Libtool will interpret -1 as no limit whatsoever
5723 lt_cv_sys_max_cmd_len=-1;
5724 ;;
5725
5726 cygwin* | mingw* | cegcc*)
5727 # On Win9x/ME, this test blows up -- it succeeds, but takes
5728 # about 5 minutes as the teststring grows exponentially.
5729 # Worse, since 9x/ME are not pre-emptively multitasking,
5730 # you end up with a "frozen" computer, even though with patience
5731 # the test eventually succeeds (with a max line length of 256k).
5732 # Instead, let's just punt: use the minimum linelength reported by
5733 # all of the supported platforms: 8192 (on NT/2K/XP).
5734 lt_cv_sys_max_cmd_len=8192;
5735 ;;
5736
5737 mint*)
5738 # On MiNT this can take a long time and run out of memory.
5739 lt_cv_sys_max_cmd_len=8192;
5740 ;;
5741
5742 amigaos*)
5743 # On AmigaOS with pdksh, this test takes hours, literally.
5744 # So we just punt and use a minimum line length of 8192.
5745 lt_cv_sys_max_cmd_len=8192;
5746 ;;
5747
5748 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5749 # This has been around since 386BSD, at least. Likely further.
5750 if test -x /sbin/sysctl; then
5751 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5752 elif test -x /usr/sbin/sysctl; then
5753 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5754 else
5755 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5756 fi
5757 # And add a safety zone
5758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5760 ;;
5761
5762 interix*)
5763 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5764 lt_cv_sys_max_cmd_len=196608
5765 ;;
5766
5767 os2*)
5768 # The test takes a long time on OS/2.
5769 lt_cv_sys_max_cmd_len=8192
5770 ;;
5771
5772 osf*)
5773 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5774 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5775 # nice to cause kernel panics so lets avoid the loop below.
5776 # First set a reasonable default.
5777 lt_cv_sys_max_cmd_len=16384
5778 #
5779 if test -x /sbin/sysconfig; then
5780 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5781 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5782 esac
5783 fi
5784 ;;
5785 sco3.2v5*)
5786 lt_cv_sys_max_cmd_len=102400
5787 ;;
5788 sysv5* | sco5v6* | sysv4.2uw2*)
5789 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5790 if test -n "$kargmax"; then
5791 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5792 else
5793 lt_cv_sys_max_cmd_len=32768
5794 fi
5795 ;;
5796 *)
5797 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5798 if test -n "$lt_cv_sys_max_cmd_len" && \
5799 test undefined != "$lt_cv_sys_max_cmd_len"; then
5800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5802 else
5803 # Make teststring a little bigger before we do anything with it.
5804 # a 1K string should be a reasonable start.
5805 for i in 1 2 3 4 5 6 7 8; do
5806 teststring=$teststring$teststring
5807 done
5808 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5809 # If test is not a shell built-in, we'll probably end up computing a
5810 # maximum length that is only half of the actual maximum length, but
5811 # we can't tell.
5812 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5813 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5814 test 17 != "$i" # 1/2 MB should be enough
5815 do
5816 i=`expr $i + 1`
5817 teststring=$teststring$teststring
5818 done
5819 # Only check the string length outside the loop.
5820 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5821 teststring=
5822 # Add a significant safety factor because C++ compilers can tack on
5823 # massive amounts of additional arguments before passing them to the
5824 # linker. It appears as though 1/2 is a usable value.
5825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5826 fi
5827 ;;
5828 esac
5829
5830 fi
5831
5832 if test -n "$lt_cv_sys_max_cmd_len"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5834 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5835 else
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5837 $as_echo "none" >&6; }
5838 fi
5839 max_cmd_len=$lt_cv_sys_max_cmd_len
5840
5841
5842
5843
5844
5845
5846 : ${CP="cp -f"}
5847 : ${MV="mv -f"}
5848 : ${RM="rm -f"}
5849
5850 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5851 lt_unset=unset
5852 else
5853 lt_unset=false
5854 fi
5855
5856
5857
5858
5859
5860 # test EBCDIC or ASCII
5861 case `echo X|tr X '\101'` in
5862 A) # ASCII based system
5863 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5864 lt_SP2NL='tr \040 \012'
5865 lt_NL2SP='tr \015\012 \040\040'
5866 ;;
5867 *) # EBCDIC based system
5868 lt_SP2NL='tr \100 \n'
5869 lt_NL2SP='tr \r\n \100\100'
5870 ;;
5871 esac
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5882 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5883 if ${lt_cv_to_host_file_cmd+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 case $host in
5887 *-*-mingw* )
5888 case $build in
5889 *-*-mingw* ) # actually msys
5890 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5891 ;;
5892 *-*-cygwin* )
5893 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5894 ;;
5895 * ) # otherwise, assume *nix
5896 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5897 ;;
5898 esac
5899 ;;
5900 *-*-cygwin* )
5901 case $build in
5902 *-*-mingw* ) # actually msys
5903 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5904 ;;
5905 *-*-cygwin* )
5906 lt_cv_to_host_file_cmd=func_convert_file_noop
5907 ;;
5908 * ) # otherwise, assume *nix
5909 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5910 ;;
5911 esac
5912 ;;
5913 * ) # unhandled hosts (and "normal" native builds)
5914 lt_cv_to_host_file_cmd=func_convert_file_noop
5915 ;;
5916 esac
5917
5918 fi
5919
5920 to_host_file_cmd=$lt_cv_to_host_file_cmd
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5922 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5923
5924
5925
5926
5927
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5929 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5930 if ${lt_cv_to_tool_file_cmd+:} false; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 #assume ordinary cross tools, or native build.
5934 lt_cv_to_tool_file_cmd=func_convert_file_noop
5935 case $host in
5936 *-*-mingw* )
5937 case $build in
5938 *-*-mingw* ) # actually msys
5939 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5940 ;;
5941 esac
5942 ;;
5943 esac
5944
5945 fi
5946
5947 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5949 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5950
5951
5952
5953
5954
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5956 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5957 if ${lt_cv_ld_reload_flag+:} false; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 lt_cv_ld_reload_flag='-r'
5961 fi
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5963 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5964 reload_flag=$lt_cv_ld_reload_flag
5965 case $reload_flag in
5966 "" | " "*) ;;
5967 *) reload_flag=" $reload_flag" ;;
5968 esac
5969 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5970 case $host_os in
5971 cygwin* | mingw* | pw32* | cegcc*)
5972 if test yes != "$GCC"; then
5973 reload_cmds=false
5974 fi
5975 ;;
5976 darwin*)
5977 if test yes = "$GCC"; then
5978 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5979 else
5980 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5981 fi
5982 ;;
5983 esac
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993 if test -n "$ac_tool_prefix"; then
5994 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5995 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if ${ac_cv_prog_OBJDUMP+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 if test -n "$OBJDUMP"; then
6002 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015 done
6016 done
6017 IFS=$as_save_IFS
6018
6019 fi
6020 fi
6021 OBJDUMP=$ac_cv_prog_OBJDUMP
6022 if test -n "$OBJDUMP"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6024 $as_echo "$OBJDUMP" >&6; }
6025 else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6028 fi
6029
6030
6031 fi
6032 if test -z "$ac_cv_prog_OBJDUMP"; then
6033 ac_ct_OBJDUMP=$OBJDUMP
6034 # Extract the first word of "objdump", so it can be a program name with args.
6035 set dummy objdump; ac_word=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 if test -n "$ac_ct_OBJDUMP"; then
6042 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 break 2
6054 fi
6055 done
6056 done
6057 IFS=$as_save_IFS
6058
6059 fi
6060 fi
6061 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6062 if test -n "$ac_ct_OBJDUMP"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6064 $as_echo "$ac_ct_OBJDUMP" >&6; }
6065 else
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6068 fi
6069
6070 if test "x$ac_ct_OBJDUMP" = x; then
6071 OBJDUMP="false"
6072 else
6073 case $cross_compiling:$ac_tool_warned in
6074 yes:)
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6077 ac_tool_warned=yes ;;
6078 esac
6079 OBJDUMP=$ac_ct_OBJDUMP
6080 fi
6081 else
6082 OBJDUMP="$ac_cv_prog_OBJDUMP"
6083 fi
6084
6085 test -z "$OBJDUMP" && OBJDUMP=objdump
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6096 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6097 if ${lt_cv_deplibs_check_method+:} false; then :
6098 $as_echo_n "(cached) " >&6
6099 else
6100 lt_cv_file_magic_cmd='$MAGIC_CMD'
6101 lt_cv_file_magic_test_file=
6102 lt_cv_deplibs_check_method='unknown'
6103 # Need to set the preceding variable on all platforms that support
6104 # interlibrary dependencies.
6105 # 'none' -- dependencies not supported.
6106 # 'unknown' -- same as none, but documents that we really don't know.
6107 # 'pass_all' -- all dependencies passed with no checks.
6108 # 'test_compile' -- check by making test program.
6109 # 'file_magic [[regex]]' -- check by looking for files in library path
6110 # that responds to the $file_magic_cmd with a given extended regex.
6111 # If you have 'file' or equivalent on your system and you're not sure
6112 # whether 'pass_all' will *always* work, you probably want this one.
6113
6114 case $host_os in
6115 aix[4-9]*)
6116 lt_cv_deplibs_check_method=pass_all
6117 ;;
6118
6119 beos*)
6120 lt_cv_deplibs_check_method=pass_all
6121 ;;
6122
6123 bsdi[45]*)
6124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6125 lt_cv_file_magic_cmd='/usr/bin/file -L'
6126 lt_cv_file_magic_test_file=/shlib/libc.so
6127 ;;
6128
6129 cygwin*)
6130 # func_win32_libid is a shell function defined in ltmain.sh
6131 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6132 lt_cv_file_magic_cmd='func_win32_libid'
6133 ;;
6134
6135 mingw* | pw32*)
6136 # Base MSYS/MinGW do not provide the 'file' command needed by
6137 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6138 # unless we find 'file', for example because we are cross-compiling.
6139 if ( file / ) >/dev/null 2>&1; then
6140 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6141 lt_cv_file_magic_cmd='func_win32_libid'
6142 else
6143 # Keep this pattern in sync with the one in func_win32_libid.
6144 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6145 lt_cv_file_magic_cmd='$OBJDUMP -f'
6146 fi
6147 ;;
6148
6149 cegcc*)
6150 # use the weaker test based on 'objdump'. See mingw*.
6151 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6152 lt_cv_file_magic_cmd='$OBJDUMP -f'
6153 ;;
6154
6155 darwin* | rhapsody*)
6156 lt_cv_deplibs_check_method=pass_all
6157 ;;
6158
6159 freebsd* | dragonfly*)
6160 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6161 case $host_cpu in
6162 i*86 )
6163 # Not sure whether the presence of OpenBSD here was a mistake.
6164 # Let's accept both of them until this is cleared up.
6165 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6166 lt_cv_file_magic_cmd=/usr/bin/file
6167 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6168 ;;
6169 esac
6170 else
6171 lt_cv_deplibs_check_method=pass_all
6172 fi
6173 ;;
6174
6175 haiku*)
6176 lt_cv_deplibs_check_method=pass_all
6177 ;;
6178
6179 hpux10.20* | hpux11*)
6180 lt_cv_file_magic_cmd=/usr/bin/file
6181 case $host_cpu in
6182 ia64*)
6183 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6184 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6185 ;;
6186 hppa*64*)
6187 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]'
6188 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6189 ;;
6190 *)
6191 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6192 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6193 ;;
6194 esac
6195 ;;
6196
6197 interix[3-9]*)
6198 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6200 ;;
6201
6202 irix5* | irix6* | nonstopux*)
6203 case $LD in
6204 *-32|*"-32 ") libmagic=32-bit;;
6205 *-n32|*"-n32 ") libmagic=N32;;
6206 *-64|*"-64 ") libmagic=64-bit;;
6207 *) libmagic=never-match;;
6208 esac
6209 lt_cv_deplibs_check_method=pass_all
6210 ;;
6211
6212 # This must be glibc/ELF.
6213 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6214 lt_cv_deplibs_check_method=pass_all
6215 ;;
6216
6217 netbsd*)
6218 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6220 else
6221 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6222 fi
6223 ;;
6224
6225 newos6*)
6226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6227 lt_cv_file_magic_cmd=/usr/bin/file
6228 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6229 ;;
6230
6231 *nto* | *qnx*)
6232 lt_cv_deplibs_check_method=pass_all
6233 ;;
6234
6235 openbsd* | bitrig*)
6236 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6238 else
6239 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6240 fi
6241 ;;
6242
6243 osf3* | osf4* | osf5*)
6244 lt_cv_deplibs_check_method=pass_all
6245 ;;
6246
6247 rdos*)
6248 lt_cv_deplibs_check_method=pass_all
6249 ;;
6250
6251 solaris*)
6252 lt_cv_deplibs_check_method=pass_all
6253 ;;
6254
6255 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6256 lt_cv_deplibs_check_method=pass_all
6257 ;;
6258
6259 sysv4 | sysv4.3*)
6260 case $host_vendor in
6261 motorola)
6262 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]'
6263 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6264 ;;
6265 ncr)
6266 lt_cv_deplibs_check_method=pass_all
6267 ;;
6268 sequent)
6269 lt_cv_file_magic_cmd='/bin/file'
6270 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6271 ;;
6272 sni)
6273 lt_cv_file_magic_cmd='/bin/file'
6274 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6275 lt_cv_file_magic_test_file=/lib/libc.so
6276 ;;
6277 siemens)
6278 lt_cv_deplibs_check_method=pass_all
6279 ;;
6280 pc)
6281 lt_cv_deplibs_check_method=pass_all
6282 ;;
6283 esac
6284 ;;
6285
6286 tpf*)
6287 lt_cv_deplibs_check_method=pass_all
6288 ;;
6289 os2*)
6290 lt_cv_deplibs_check_method=pass_all
6291 ;;
6292 esac
6293
6294 fi
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6296 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6297
6298 file_magic_glob=
6299 want_nocaseglob=no
6300 if test "$build" = "$host"; then
6301 case $host_os in
6302 mingw* | pw32*)
6303 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6304 want_nocaseglob=yes
6305 else
6306 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6307 fi
6308 ;;
6309 esac
6310 fi
6311
6312 file_magic_cmd=$lt_cv_file_magic_cmd
6313 deplibs_check_method=$lt_cv_deplibs_check_method
6314 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337 if test -n "$ac_tool_prefix"; then
6338 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6339 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if ${ac_cv_prog_DLLTOOL+:} false; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 if test -n "$DLLTOOL"; then
6346 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6347 else
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6350 do
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6355 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 break 2
6358 fi
6359 done
6360 done
6361 IFS=$as_save_IFS
6362
6363 fi
6364 fi
6365 DLLTOOL=$ac_cv_prog_DLLTOOL
6366 if test -n "$DLLTOOL"; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6368 $as_echo "$DLLTOOL" >&6; }
6369 else
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371 $as_echo "no" >&6; }
6372 fi
6373
6374
6375 fi
6376 if test -z "$ac_cv_prog_DLLTOOL"; then
6377 ac_ct_DLLTOOL=$DLLTOOL
6378 # Extract the first word of "dlltool", so it can be a program name with args.
6379 set dummy dlltool; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 if test -n "$ac_ct_DLLTOOL"; then
6386 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6387 else
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6390 do
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 break 2
6398 fi
6399 done
6400 done
6401 IFS=$as_save_IFS
6402
6403 fi
6404 fi
6405 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6406 if test -n "$ac_ct_DLLTOOL"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6408 $as_echo "$ac_ct_DLLTOOL" >&6; }
6409 else
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6412 fi
6413
6414 if test "x$ac_ct_DLLTOOL" = x; then
6415 DLLTOOL="false"
6416 else
6417 case $cross_compiling:$ac_tool_warned in
6418 yes:)
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6421 ac_tool_warned=yes ;;
6422 esac
6423 DLLTOOL=$ac_ct_DLLTOOL
6424 fi
6425 else
6426 DLLTOOL="$ac_cv_prog_DLLTOOL"
6427 fi
6428
6429 test -z "$DLLTOOL" && DLLTOOL=dlltool
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6441 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6442 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 lt_cv_sharedlib_from_linklib_cmd='unknown'
6446
6447 case $host_os in
6448 cygwin* | mingw* | pw32* | cegcc*)
6449 # two different shell functions defined in ltmain.sh;
6450 # decide which one to use based on capabilities of $DLLTOOL
6451 case `$DLLTOOL --help 2>&1` in
6452 *--identify-strict*)
6453 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6454 ;;
6455 *)
6456 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6457 ;;
6458 esac
6459 ;;
6460 *)
6461 # fallback: assume linklib IS sharedlib
6462 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6463 ;;
6464 esac
6465
6466 fi
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6468 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6469 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6470 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6471
6472
6473
6474
6475
6476
6477
6478
6479 if test -n "$ac_tool_prefix"; then
6480 for ac_prog in ar
6481 do
6482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if ${ac_cv_prog_AR+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 if test -n "$AR"; then
6490 ac_cv_prog_AR="$AR" # Let the user override the test.
6491 else
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6494 do
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6502 fi
6503 done
6504 done
6505 IFS=$as_save_IFS
6506
6507 fi
6508 fi
6509 AR=$ac_cv_prog_AR
6510 if test -n "$AR"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6512 $as_echo "$AR" >&6; }
6513 else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6516 fi
6517
6518
6519 test -n "$AR" && break
6520 done
6521 fi
6522 if test -z "$AR"; then
6523 ac_ct_AR=$AR
6524 for ac_prog in ar
6525 do
6526 # Extract the first word of "$ac_prog", so it can be a program name with args.
6527 set dummy $ac_prog; ac_word=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6531 $as_echo_n "(cached) " >&6
6532 else
6533 if test -n "$ac_ct_AR"; then
6534 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539 IFS=$as_save_IFS
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6543 ac_cv_prog_ac_ct_AR="$ac_prog"
6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 break 2
6546 fi
6547 done
6548 done
6549 IFS=$as_save_IFS
6550
6551 fi
6552 fi
6553 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6554 if test -n "$ac_ct_AR"; then
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6556 $as_echo "$ac_ct_AR" >&6; }
6557 else
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6560 fi
6561
6562
6563 test -n "$ac_ct_AR" && break
6564 done
6565
6566 if test "x$ac_ct_AR" = x; then
6567 AR="false"
6568 else
6569 case $cross_compiling:$ac_tool_warned in
6570 yes:)
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6573 ac_tool_warned=yes ;;
6574 esac
6575 AR=$ac_ct_AR
6576 fi
6577 fi
6578
6579 : ${AR=ar}
6580 : ${AR_FLAGS=cru}
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6593 $as_echo_n "checking for archiver @FILE support... " >&6; }
6594 if ${lt_cv_ar_at_file+:} false; then :
6595 $as_echo_n "(cached) " >&6
6596 else
6597 lt_cv_ar_at_file=no
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6600
6601 int
6602 main ()
6603 {
6604
6605 ;
6606 return 0;
6607 }
6608 _ACEOF
6609 if ac_fn_c_try_compile "$LINENO"; then :
6610 echo conftest.$ac_objext > conftest.lst
6611 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6613 (eval $lt_ar_try) 2>&5
6614 ac_status=$?
6615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616 test $ac_status = 0; }
6617 if test 0 -eq "$ac_status"; then
6618 # Ensure the archiver fails upon bogus file names.
6619 rm -f conftest.$ac_objext libconftest.a
6620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6621 (eval $lt_ar_try) 2>&5
6622 ac_status=$?
6623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624 test $ac_status = 0; }
6625 if test 0 -ne "$ac_status"; then
6626 lt_cv_ar_at_file=@
6627 fi
6628 fi
6629 rm -f conftest.* libconftest.a
6630
6631 fi
6632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633
6634 fi
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6636 $as_echo "$lt_cv_ar_at_file" >&6; }
6637
6638 if test no = "$lt_cv_ar_at_file"; then
6639 archiver_list_spec=
6640 else
6641 archiver_list_spec=$lt_cv_ar_at_file
6642 fi
6643
6644
6645
6646
6647
6648
6649
6650 if test -n "$ac_tool_prefix"; then
6651 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6652 set dummy ${ac_tool_prefix}strip; ac_word=$2
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654 $as_echo_n "checking for $ac_word... " >&6; }
6655 if ${ac_cv_prog_STRIP+:} false; then :
6656 $as_echo_n "(cached) " >&6
6657 else
6658 if test -n "$STRIP"; then
6659 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6660 else
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662 for as_dir in $PATH
6663 do
6664 IFS=$as_save_IFS
6665 test -z "$as_dir" && as_dir=.
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 break 2
6671 fi
6672 done
6673 done
6674 IFS=$as_save_IFS
6675
6676 fi
6677 fi
6678 STRIP=$ac_cv_prog_STRIP
6679 if test -n "$STRIP"; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6681 $as_echo "$STRIP" >&6; }
6682 else
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6685 fi
6686
6687
6688 fi
6689 if test -z "$ac_cv_prog_STRIP"; then
6690 ac_ct_STRIP=$STRIP
6691 # Extract the first word of "strip", so it can be a program name with args.
6692 set dummy strip; ac_word=$2
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694 $as_echo_n "checking for $ac_word... " >&6; }
6695 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 if test -n "$ac_ct_STRIP"; then
6699 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704 IFS=$as_save_IFS
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6708 ac_cv_prog_ac_ct_STRIP="strip"
6709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 break 2
6711 fi
6712 done
6713 done
6714 IFS=$as_save_IFS
6715
6716 fi
6717 fi
6718 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6719 if test -n "$ac_ct_STRIP"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6721 $as_echo "$ac_ct_STRIP" >&6; }
6722 else
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6725 fi
6726
6727 if test "x$ac_ct_STRIP" = x; then
6728 STRIP=":"
6729 else
6730 case $cross_compiling:$ac_tool_warned in
6731 yes:)
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6734 ac_tool_warned=yes ;;
6735 esac
6736 STRIP=$ac_ct_STRIP
6737 fi
6738 else
6739 STRIP="$ac_cv_prog_STRIP"
6740 fi
6741
6742 test -z "$STRIP" && STRIP=:
6743
6744
6745
6746
6747
6748
6749 if test -n "$ac_tool_prefix"; then
6750 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6751 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753 $as_echo_n "checking for $ac_word... " >&6; }
6754 if ${ac_cv_prog_RANLIB+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 if test -n "$RANLIB"; then
6758 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6759 else
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6762 do
6763 IFS=$as_save_IFS
6764 test -z "$as_dir" && as_dir=.
6765 for ac_exec_ext in '' $ac_executable_extensions; do
6766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6767 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 break 2
6770 fi
6771 done
6772 done
6773 IFS=$as_save_IFS
6774
6775 fi
6776 fi
6777 RANLIB=$ac_cv_prog_RANLIB
6778 if test -n "$RANLIB"; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6780 $as_echo "$RANLIB" >&6; }
6781 else
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783 $as_echo "no" >&6; }
6784 fi
6785
6786
6787 fi
6788 if test -z "$ac_cv_prog_RANLIB"; then
6789 ac_ct_RANLIB=$RANLIB
6790 # Extract the first word of "ranlib", so it can be a program name with args.
6791 set dummy ranlib; ac_word=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6795 $as_echo_n "(cached) " >&6
6796 else
6797 if test -n "$ac_ct_RANLIB"; then
6798 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807 ac_cv_prog_ac_ct_RANLIB="ranlib"
6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6810 fi
6811 done
6812 done
6813 IFS=$as_save_IFS
6814
6815 fi
6816 fi
6817 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6818 if test -n "$ac_ct_RANLIB"; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6820 $as_echo "$ac_ct_RANLIB" >&6; }
6821 else
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6824 fi
6825
6826 if test "x$ac_ct_RANLIB" = x; then
6827 RANLIB=":"
6828 else
6829 case $cross_compiling:$ac_tool_warned in
6830 yes:)
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6833 ac_tool_warned=yes ;;
6834 esac
6835 RANLIB=$ac_ct_RANLIB
6836 fi
6837 else
6838 RANLIB="$ac_cv_prog_RANLIB"
6839 fi
6840
6841 test -z "$RANLIB" && RANLIB=:
6842
6843
6844
6845
6846
6847
6848 # Determine commands to create old-style static archives.
6849 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6850 old_postinstall_cmds='chmod 644 $oldlib'
6851 old_postuninstall_cmds=
6852
6853 if test -n "$RANLIB"; then
6854 case $host_os in
6855 bitrig* | openbsd*)
6856 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6857 ;;
6858 *)
6859 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6860 ;;
6861 esac
6862 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6863 fi
6864
6865 case $host_os in
6866 darwin*)
6867 lock_old_archive_extraction=yes ;;
6868 *)
6869 lock_old_archive_extraction=no ;;
6870 esac
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910 # If no C compiler was specified, use CC.
6911 LTCC=${LTCC-"$CC"}
6912
6913 # If no C compiler flags were specified, use CFLAGS.
6914 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6915
6916 # Allow CC to be a program name with arguments.
6917 compiler=$CC
6918
6919
6920 # Check for command to grab the raw symbol name followed by C symbol from nm.
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6922 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6923 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926
6927 # These are sane defaults that work on at least a few old systems.
6928 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6929
6930 # Character class describing NM global symbol codes.
6931 symcode='[BCDEGRST]'
6932
6933 # Regexp to match symbols that can be accessed directly from C.
6934 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6935
6936 # Define system-specific variables.
6937 case $host_os in
6938 aix*)
6939 symcode='[BCDT]'
6940 ;;
6941 cygwin* | mingw* | pw32* | cegcc*)
6942 symcode='[ABCDGISTW]'
6943 ;;
6944 hpux*)
6945 if test ia64 = "$host_cpu"; then
6946 symcode='[ABCDEGRST]'
6947 fi
6948 ;;
6949 irix* | nonstopux*)
6950 symcode='[BCDEGRST]'
6951 ;;
6952 osf*)
6953 symcode='[BCDEGQRST]'
6954 ;;
6955 solaris*)
6956 symcode='[BDRT]'
6957 ;;
6958 sco3.2v5*)
6959 symcode='[DT]'
6960 ;;
6961 sysv4.2uw2*)
6962 symcode='[DT]'
6963 ;;
6964 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6965 symcode='[ABDT]'
6966 ;;
6967 sysv4)
6968 symcode='[DFNSTU]'
6969 ;;
6970 esac
6971
6972 # If we're using GNU nm, then use its standard symbol codes.
6973 case `$NM -V 2>&1` in
6974 *GNU* | *'with BFD'*)
6975 symcode='[ABCDGIRSTW]' ;;
6976 esac
6977
6978 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6979 # Gets list of data symbols to import.
6980 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6981 # Adjust the below global symbol transforms to fixup imported variables.
6982 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6983 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6984 lt_c_name_lib_hook="\
6985 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6986 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6987 else
6988 # Disable hooks by default.
6989 lt_cv_sys_global_symbol_to_import=
6990 lt_cdecl_hook=
6991 lt_c_name_hook=
6992 lt_c_name_lib_hook=
6993 fi
6994
6995 # Transform an extracted symbol line into a proper C declaration.
6996 # Some systems (esp. on ia64) link data and code symbols differently,
6997 # so use this general approach.
6998 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6999 $lt_cdecl_hook\
7000 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7001 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7002
7003 # Transform an extracted symbol line into symbol name and symbol address
7004 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7005 $lt_c_name_hook\
7006 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7007 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7008
7009 # Transform an extracted symbol line into symbol name with lib prefix and
7010 # symbol address.
7011 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7012 $lt_c_name_lib_hook\
7013 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7014 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7015 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7016
7017 # Handle CRLF in mingw tool chain
7018 opt_cr=
7019 case $build_os in
7020 mingw*)
7021 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7022 ;;
7023 esac
7024
7025 # Try without a prefix underscore, then with it.
7026 for ac_symprfx in "" "_"; do
7027
7028 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7029 symxfrm="\\1 $ac_symprfx\\2 \\2"
7030
7031 # Write the raw and C identifiers.
7032 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7033 # Fake it for dumpbin and say T for any non-static function,
7034 # D for any global variable and I for any imported variable.
7035 # Also find C++ and __fastcall symbols from MSVC++,
7036 # which start with @ or ?.
7037 lt_cv_sys_global_symbol_pipe="$AWK '"\
7038 " {last_section=section; section=\$ 3};"\
7039 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7040 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7041 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7042 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7043 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7044 " \$ 0!~/External *\|/{next};"\
7045 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7046 " {if(hide[section]) next};"\
7047 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7048 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7049 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7050 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7051 " ' prfx=^$ac_symprfx"
7052 else
7053 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7054 fi
7055 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7056
7057 # Check to see that the pipe works correctly.
7058 pipe_works=no
7059
7060 rm -f conftest*
7061 cat > conftest.$ac_ext <<_LT_EOF
7062 #ifdef __cplusplus
7063 extern "C" {
7064 #endif
7065 char nm_test_var;
7066 void nm_test_func(void);
7067 void nm_test_func(void){}
7068 #ifdef __cplusplus
7069 }
7070 #endif
7071 int main(){nm_test_var='a';nm_test_func();return(0);}
7072 _LT_EOF
7073
7074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7075 (eval $ac_compile) 2>&5
7076 ac_status=$?
7077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7078 test $ac_status = 0; }; then
7079 # Now try to grab the symbols.
7080 nlist=conftest.nm
7081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7082 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7083 ac_status=$?
7084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7085 test $ac_status = 0; } && test -s "$nlist"; then
7086 # Try sorting and uniquifying the output.
7087 if sort "$nlist" | uniq > "$nlist"T; then
7088 mv -f "$nlist"T "$nlist"
7089 else
7090 rm -f "$nlist"T
7091 fi
7092
7093 # Make sure that we snagged all the symbols we need.
7094 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7095 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7096 cat <<_LT_EOF > conftest.$ac_ext
7097 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7098 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7099 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7100 relocations are performed -- see ld's documentation on pseudo-relocs. */
7101 # define LT_DLSYM_CONST
7102 #elif defined __osf__
7103 /* This system does not cope well with relocations in const data. */
7104 # define LT_DLSYM_CONST
7105 #else
7106 # define LT_DLSYM_CONST const
7107 #endif
7108
7109 #ifdef __cplusplus
7110 extern "C" {
7111 #endif
7112
7113 _LT_EOF
7114 # Now generate the symbol file.
7115 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7116
7117 cat <<_LT_EOF >> conftest.$ac_ext
7118
7119 /* The mapping between symbol names and symbols. */
7120 LT_DLSYM_CONST struct {
7121 const char *name;
7122 void *address;
7123 }
7124 lt__PROGRAM__LTX_preloaded_symbols[] =
7125 {
7126 { "@PROGRAM@", (void *) 0 },
7127 _LT_EOF
7128 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7129 cat <<\_LT_EOF >> conftest.$ac_ext
7130 {0, (void *) 0}
7131 };
7132
7133 /* This works around a problem in FreeBSD linker */
7134 #ifdef FREEBSD_WORKAROUND
7135 static const void *lt_preloaded_setup() {
7136 return lt__PROGRAM__LTX_preloaded_symbols;
7137 }
7138 #endif
7139
7140 #ifdef __cplusplus
7141 }
7142 #endif
7143 _LT_EOF
7144 # Now try linking the two files.
7145 mv conftest.$ac_objext conftstm.$ac_objext
7146 lt_globsym_save_LIBS=$LIBS
7147 lt_globsym_save_CFLAGS=$CFLAGS
7148 LIBS=conftstm.$ac_objext
7149 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7151 (eval $ac_link) 2>&5
7152 ac_status=$?
7153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7154 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7155 pipe_works=yes
7156 fi
7157 LIBS=$lt_globsym_save_LIBS
7158 CFLAGS=$lt_globsym_save_CFLAGS
7159 else
7160 echo "cannot find nm_test_func in $nlist" >&5
7161 fi
7162 else
7163 echo "cannot find nm_test_var in $nlist" >&5
7164 fi
7165 else
7166 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7167 fi
7168 else
7169 echo "$progname: failed program was:" >&5
7170 cat conftest.$ac_ext >&5
7171 fi
7172 rm -rf conftest* conftst*
7173
7174 # Do not use the global_symbol_pipe unless it works.
7175 if test yes = "$pipe_works"; then
7176 break
7177 else
7178 lt_cv_sys_global_symbol_pipe=
7179 fi
7180 done
7181
7182 fi
7183
7184 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7185 lt_cv_sys_global_symbol_to_cdecl=
7186 fi
7187 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7189 $as_echo "failed" >&6; }
7190 else
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7192 $as_echo "ok" >&6; }
7193 fi
7194
7195 # Response file support.
7196 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7197 nm_file_list_spec='@'
7198 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7199 nm_file_list_spec='@'
7200 fi
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7239 $as_echo_n "checking for sysroot... " >&6; }
7240
7241 # Check whether --with-sysroot was given.
7242 if test "${with_sysroot+set}" = set; then :
7243 withval=$with_sysroot;
7244 else
7245 with_sysroot=no
7246 fi
7247
7248
7249 lt_sysroot=
7250 case $with_sysroot in #(
7251 yes)
7252 if test yes = "$GCC"; then
7253 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7254 fi
7255 ;; #(
7256 /*)
7257 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7258 ;; #(
7259 no|'')
7260 ;; #(
7261 *)
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7263 $as_echo "$with_sysroot" >&6; }
7264 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7265 ;;
7266 esac
7267
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7269 $as_echo "${lt_sysroot:-no}" >&6; }
7270
7271
7272
7273
7274
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7276 $as_echo_n "checking for a working dd... " >&6; }
7277 if ${ac_cv_path_lt_DD+:} false; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 printf 0123456789abcdef0123456789abcdef >conftest.i
7281 cat conftest.i conftest.i >conftest2.i
7282 : ${lt_DD:=$DD}
7283 if test -z "$lt_DD"; then
7284 ac_path_lt_DD_found=false
7285 # Loop through the user's path and test for each of PROGNAME-LIST
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7288 do
7289 IFS=$as_save_IFS
7290 test -z "$as_dir" && as_dir=.
7291 for ac_prog in dd; do
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7294 as_fn_executable_p "$ac_path_lt_DD" || continue
7295 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7296 cmp -s conftest.i conftest.out \
7297 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7298 fi
7299 $ac_path_lt_DD_found && break 3
7300 done
7301 done
7302 done
7303 IFS=$as_save_IFS
7304 if test -z "$ac_cv_path_lt_DD"; then
7305 :
7306 fi
7307 else
7308 ac_cv_path_lt_DD=$lt_DD
7309 fi
7310
7311 rm -f conftest.i conftest2.i conftest.out
7312 fi
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7314 $as_echo "$ac_cv_path_lt_DD" >&6; }
7315
7316
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7318 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7319 if ${lt_cv_truncate_bin+:} false; then :
7320 $as_echo_n "(cached) " >&6
7321 else
7322 printf 0123456789abcdef0123456789abcdef >conftest.i
7323 cat conftest.i conftest.i >conftest2.i
7324 lt_cv_truncate_bin=
7325 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7326 cmp -s conftest.i conftest.out \
7327 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7328 fi
7329 rm -f conftest.i conftest2.i conftest.out
7330 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7331 fi
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7333 $as_echo "$lt_cv_truncate_bin" >&6; }
7334
7335
7336
7337
7338
7339
7340
7341 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7342 func_cc_basename ()
7343 {
7344 for cc_temp in $*""; do
7345 case $cc_temp in
7346 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7347 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7348 \-*) ;;
7349 *) break;;
7350 esac
7351 done
7352 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7353 }
7354
7355 # Check whether --enable-libtool-lock was given.
7356 if test "${enable_libtool_lock+set}" = set; then :
7357 enableval=$enable_libtool_lock;
7358 fi
7359
7360 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7361
7362 # Some flags need to be propagated to the compiler or linker for good
7363 # libtool support.
7364 case $host in
7365 ia64-*-hpux*)
7366 # Find out what ABI is being produced by ac_compile, and set mode
7367 # options accordingly.
7368 echo 'int i;' > conftest.$ac_ext
7369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7370 (eval $ac_compile) 2>&5
7371 ac_status=$?
7372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7373 test $ac_status = 0; }; then
7374 case `/usr/bin/file conftest.$ac_objext` in
7375 *ELF-32*)
7376 HPUX_IA64_MODE=32
7377 ;;
7378 *ELF-64*)
7379 HPUX_IA64_MODE=64
7380 ;;
7381 esac
7382 fi
7383 rm -rf conftest*
7384 ;;
7385 *-*-irix6*)
7386 # Find out what ABI is being produced by ac_compile, and set linker
7387 # options accordingly.
7388 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7390 (eval $ac_compile) 2>&5
7391 ac_status=$?
7392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393 test $ac_status = 0; }; then
7394 if test yes = "$lt_cv_prog_gnu_ld"; then
7395 case `/usr/bin/file conftest.$ac_objext` in
7396 *32-bit*)
7397 LD="${LD-ld} -melf32bsmip"
7398 ;;
7399 *N32*)
7400 LD="${LD-ld} -melf32bmipn32"
7401 ;;
7402 *64-bit*)
7403 LD="${LD-ld} -melf64bmip"
7404 ;;
7405 esac
7406 else
7407 case `/usr/bin/file conftest.$ac_objext` in
7408 *32-bit*)
7409 LD="${LD-ld} -32"
7410 ;;
7411 *N32*)
7412 LD="${LD-ld} -n32"
7413 ;;
7414 *64-bit*)
7415 LD="${LD-ld} -64"
7416 ;;
7417 esac
7418 fi
7419 fi
7420 rm -rf conftest*
7421 ;;
7422
7423 mips64*-*linux*)
7424 # Find out what ABI is being produced by ac_compile, and set linker
7425 # options accordingly.
7426 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7428 (eval $ac_compile) 2>&5
7429 ac_status=$?
7430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7431 test $ac_status = 0; }; then
7432 emul=elf
7433 case `/usr/bin/file conftest.$ac_objext` in
7434 *32-bit*)
7435 emul="${emul}32"
7436 ;;
7437 *64-bit*)
7438 emul="${emul}64"
7439 ;;
7440 esac
7441 case `/usr/bin/file conftest.$ac_objext` in
7442 *MSB*)
7443 emul="${emul}btsmip"
7444 ;;
7445 *LSB*)
7446 emul="${emul}ltsmip"
7447 ;;
7448 esac
7449 case `/usr/bin/file conftest.$ac_objext` in
7450 *N32*)
7451 emul="${emul}n32"
7452 ;;
7453 esac
7454 LD="${LD-ld} -m $emul"
7455 fi
7456 rm -rf conftest*
7457 ;;
7458
7459 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7460 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7461 # Find out what ABI is being produced by ac_compile, and set linker
7462 # options accordingly. Note that the listed cases only cover the
7463 # situations where additional linker options are needed (such as when
7464 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7465 # vice versa); the common cases where no linker options are needed do
7466 # not appear in the list.
7467 echo 'int i;' > conftest.$ac_ext
7468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7469 (eval $ac_compile) 2>&5
7470 ac_status=$?
7471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7472 test $ac_status = 0; }; then
7473 case `/usr/bin/file conftest.o` in
7474 *32-bit*)
7475 case $host in
7476 x86_64-*kfreebsd*-gnu)
7477 LD="${LD-ld} -m elf_i386_fbsd"
7478 ;;
7479 x86_64-*linux*)
7480 case `/usr/bin/file conftest.o` in
7481 *x86-64*)
7482 LD="${LD-ld} -m elf32_x86_64"
7483 ;;
7484 *)
7485 LD="${LD-ld} -m elf_i386"
7486 ;;
7487 esac
7488 ;;
7489 powerpc64le-*linux*)
7490 LD="${LD-ld} -m elf32lppclinux"
7491 ;;
7492 powerpc64-*linux*)
7493 LD="${LD-ld} -m elf32ppclinux"
7494 ;;
7495 s390x-*linux*)
7496 LD="${LD-ld} -m elf_s390"
7497 ;;
7498 sparc64-*linux*)
7499 LD="${LD-ld} -m elf32_sparc"
7500 ;;
7501 esac
7502 ;;
7503 *64-bit*)
7504 case $host in
7505 x86_64-*kfreebsd*-gnu)
7506 LD="${LD-ld} -m elf_x86_64_fbsd"
7507 ;;
7508 x86_64-*linux*)
7509 LD="${LD-ld} -m elf_x86_64"
7510 ;;
7511 powerpcle-*linux*)
7512 LD="${LD-ld} -m elf64lppc"
7513 ;;
7514 powerpc-*linux*)
7515 LD="${LD-ld} -m elf64ppc"
7516 ;;
7517 s390*-*linux*|s390*-*tpf*)
7518 LD="${LD-ld} -m elf64_s390"
7519 ;;
7520 sparc*-*linux*)
7521 LD="${LD-ld} -m elf64_sparc"
7522 ;;
7523 esac
7524 ;;
7525 esac
7526 fi
7527 rm -rf conftest*
7528 ;;
7529
7530 *-*-sco3.2v5*)
7531 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7532 SAVE_CFLAGS=$CFLAGS
7533 CFLAGS="$CFLAGS -belf"
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7535 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7536 if ${lt_cv_cc_needs_belf+:} false; then :
7537 $as_echo_n "(cached) " >&6
7538 else
7539 ac_ext=c
7540 ac_cpp='$CPP $CPPFLAGS'
7541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7544
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7547
7548 int
7549 main ()
7550 {
7551
7552 ;
7553 return 0;
7554 }
7555 _ACEOF
7556 if ac_fn_c_try_link "$LINENO"; then :
7557 lt_cv_cc_needs_belf=yes
7558 else
7559 lt_cv_cc_needs_belf=no
7560 fi
7561 rm -f core conftest.err conftest.$ac_objext \
7562 conftest$ac_exeext conftest.$ac_ext
7563 ac_ext=c
7564 ac_cpp='$CPP $CPPFLAGS'
7565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7568
7569 fi
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7571 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7572 if test yes != "$lt_cv_cc_needs_belf"; then
7573 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7574 CFLAGS=$SAVE_CFLAGS
7575 fi
7576 ;;
7577 *-*solaris*)
7578 # Find out what ABI is being produced by ac_compile, and set linker
7579 # options accordingly.
7580 echo 'int i;' > conftest.$ac_ext
7581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7582 (eval $ac_compile) 2>&5
7583 ac_status=$?
7584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7585 test $ac_status = 0; }; then
7586 case `/usr/bin/file conftest.o` in
7587 *64-bit*)
7588 case $lt_cv_prog_gnu_ld in
7589 yes*)
7590 case $host in
7591 i?86-*-solaris*|x86_64-*-solaris*)
7592 LD="${LD-ld} -m elf_x86_64"
7593 ;;
7594 sparc*-*-solaris*)
7595 LD="${LD-ld} -m elf64_sparc"
7596 ;;
7597 esac
7598 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7599 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7600 LD=${LD-ld}_sol2
7601 fi
7602 ;;
7603 *)
7604 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7605 LD="${LD-ld} -64"
7606 fi
7607 ;;
7608 esac
7609 ;;
7610 esac
7611 fi
7612 rm -rf conftest*
7613 ;;
7614 esac
7615
7616 need_locks=$enable_libtool_lock
7617
7618 if test -n "$ac_tool_prefix"; then
7619 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7620 set dummy ${ac_tool_prefix}mt; ac_word=$2
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622 $as_echo_n "checking for $ac_word... " >&6; }
7623 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7624 $as_echo_n "(cached) " >&6
7625 else
7626 if test -n "$MANIFEST_TOOL"; then
7627 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7628 else
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 for as_dir in $PATH
7631 do
7632 IFS=$as_save_IFS
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 break 2
7639 fi
7640 done
7641 done
7642 IFS=$as_save_IFS
7643
7644 fi
7645 fi
7646 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7647 if test -n "$MANIFEST_TOOL"; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7649 $as_echo "$MANIFEST_TOOL" >&6; }
7650 else
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7653 fi
7654
7655
7656 fi
7657 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7658 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7659 # Extract the first word of "mt", so it can be a program name with args.
7660 set dummy mt; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 if test -n "$ac_ct_MANIFEST_TOOL"; then
7667 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7668 else
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7671 do
7672 IFS=$as_save_IFS
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 break 2
7679 fi
7680 done
7681 done
7682 IFS=$as_save_IFS
7683
7684 fi
7685 fi
7686 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7687 if test -n "$ac_ct_MANIFEST_TOOL"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7689 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7690 else
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7693 fi
7694
7695 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7696 MANIFEST_TOOL=":"
7697 else
7698 case $cross_compiling:$ac_tool_warned in
7699 yes:)
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7702 ac_tool_warned=yes ;;
7703 esac
7704 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7705 fi
7706 else
7707 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7708 fi
7709
7710 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7712 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7713 if ${lt_cv_path_mainfest_tool+:} false; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 lt_cv_path_mainfest_tool=no
7717 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7718 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7719 cat conftest.err >&5
7720 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7721 lt_cv_path_mainfest_tool=yes
7722 fi
7723 rm -f conftest*
7724 fi
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7726 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7727 if test yes != "$lt_cv_path_mainfest_tool"; then
7728 MANIFEST_TOOL=:
7729 fi
7730
7731
7732
7733
7734
7735
7736 case $host_os in
7737 rhapsody* | darwin*)
7738 if test -n "$ac_tool_prefix"; then
7739 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7740 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742 $as_echo_n "checking for $ac_word... " >&6; }
7743 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7744 $as_echo_n "(cached) " >&6
7745 else
7746 if test -n "$DSYMUTIL"; then
7747 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7748 else
7749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 for as_dir in $PATH
7751 do
7752 IFS=$as_save_IFS
7753 test -z "$as_dir" && as_dir=.
7754 for ac_exec_ext in '' $ac_executable_extensions; do
7755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7756 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7758 break 2
7759 fi
7760 done
7761 done
7762 IFS=$as_save_IFS
7763
7764 fi
7765 fi
7766 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7767 if test -n "$DSYMUTIL"; then
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7769 $as_echo "$DSYMUTIL" >&6; }
7770 else
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772 $as_echo "no" >&6; }
7773 fi
7774
7775
7776 fi
7777 if test -z "$ac_cv_prog_DSYMUTIL"; then
7778 ac_ct_DSYMUTIL=$DSYMUTIL
7779 # Extract the first word of "dsymutil", so it can be a program name with args.
7780 set dummy dsymutil; ac_word=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7784 $as_echo_n "(cached) " >&6
7785 else
7786 if test -n "$ac_ct_DSYMUTIL"; then
7787 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7788 else
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790 for as_dir in $PATH
7791 do
7792 IFS=$as_save_IFS
7793 test -z "$as_dir" && as_dir=.
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7796 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798 break 2
7799 fi
7800 done
7801 done
7802 IFS=$as_save_IFS
7803
7804 fi
7805 fi
7806 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7807 if test -n "$ac_ct_DSYMUTIL"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7809 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7810 else
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7813 fi
7814
7815 if test "x$ac_ct_DSYMUTIL" = x; then
7816 DSYMUTIL=":"
7817 else
7818 case $cross_compiling:$ac_tool_warned in
7819 yes:)
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7822 ac_tool_warned=yes ;;
7823 esac
7824 DSYMUTIL=$ac_ct_DSYMUTIL
7825 fi
7826 else
7827 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7828 fi
7829
7830 if test -n "$ac_tool_prefix"; then
7831 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7832 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 $as_echo_n "checking for $ac_word... " >&6; }
7835 if ${ac_cv_prog_NMEDIT+:} false; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 if test -n "$NMEDIT"; then
7839 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7840 else
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 for as_dir in $PATH
7843 do
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 break 2
7851 fi
7852 done
7853 done
7854 IFS=$as_save_IFS
7855
7856 fi
7857 fi
7858 NMEDIT=$ac_cv_prog_NMEDIT
7859 if test -n "$NMEDIT"; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7861 $as_echo "$NMEDIT" >&6; }
7862 else
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7865 fi
7866
7867
7868 fi
7869 if test -z "$ac_cv_prog_NMEDIT"; then
7870 ac_ct_NMEDIT=$NMEDIT
7871 # Extract the first word of "nmedit", so it can be a program name with args.
7872 set dummy nmedit; ac_word=$2
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874 $as_echo_n "checking for $ac_word... " >&6; }
7875 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7876 $as_echo_n "(cached) " >&6
7877 else
7878 if test -n "$ac_ct_NMEDIT"; then
7879 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7880 else
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 for as_dir in $PATH
7883 do
7884 IFS=$as_save_IFS
7885 test -z "$as_dir" && as_dir=.
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7888 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 break 2
7891 fi
7892 done
7893 done
7894 IFS=$as_save_IFS
7895
7896 fi
7897 fi
7898 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7899 if test -n "$ac_ct_NMEDIT"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7901 $as_echo "$ac_ct_NMEDIT" >&6; }
7902 else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7905 fi
7906
7907 if test "x$ac_ct_NMEDIT" = x; then
7908 NMEDIT=":"
7909 else
7910 case $cross_compiling:$ac_tool_warned in
7911 yes:)
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7914 ac_tool_warned=yes ;;
7915 esac
7916 NMEDIT=$ac_ct_NMEDIT
7917 fi
7918 else
7919 NMEDIT="$ac_cv_prog_NMEDIT"
7920 fi
7921
7922 if test -n "$ac_tool_prefix"; then
7923 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7924 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if ${ac_cv_prog_LIPO+:} false; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 if test -n "$LIPO"; then
7931 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7932 else
7933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934 for as_dir in $PATH
7935 do
7936 IFS=$as_save_IFS
7937 test -z "$as_dir" && as_dir=.
7938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7940 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942 break 2
7943 fi
7944 done
7945 done
7946 IFS=$as_save_IFS
7947
7948 fi
7949 fi
7950 LIPO=$ac_cv_prog_LIPO
7951 if test -n "$LIPO"; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7953 $as_echo "$LIPO" >&6; }
7954 else
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7957 fi
7958
7959
7960 fi
7961 if test -z "$ac_cv_prog_LIPO"; then
7962 ac_ct_LIPO=$LIPO
7963 # Extract the first word of "lipo", so it can be a program name with args.
7964 set dummy lipo; ac_word=$2
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7966 $as_echo_n "checking for $ac_word... " >&6; }
7967 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7968 $as_echo_n "(cached) " >&6
7969 else
7970 if test -n "$ac_ct_LIPO"; then
7971 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7972 else
7973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 for as_dir in $PATH
7975 do
7976 IFS=$as_save_IFS
7977 test -z "$as_dir" && as_dir=.
7978 for ac_exec_ext in '' $ac_executable_extensions; do
7979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7980 ac_cv_prog_ac_ct_LIPO="lipo"
7981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7982 break 2
7983 fi
7984 done
7985 done
7986 IFS=$as_save_IFS
7987
7988 fi
7989 fi
7990 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7991 if test -n "$ac_ct_LIPO"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7993 $as_echo "$ac_ct_LIPO" >&6; }
7994 else
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
7997 fi
7998
7999 if test "x$ac_ct_LIPO" = x; then
8000 LIPO=":"
8001 else
8002 case $cross_compiling:$ac_tool_warned in
8003 yes:)
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8006 ac_tool_warned=yes ;;
8007 esac
8008 LIPO=$ac_ct_LIPO
8009 fi
8010 else
8011 LIPO="$ac_cv_prog_LIPO"
8012 fi
8013
8014 if test -n "$ac_tool_prefix"; then
8015 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8016 set dummy ${ac_tool_prefix}otool; ac_word=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if ${ac_cv_prog_OTOOL+:} false; then :
8020 $as_echo_n "(cached) " >&6
8021 else
8022 if test -n "$OTOOL"; then
8023 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 break 2
8035 fi
8036 done
8037 done
8038 IFS=$as_save_IFS
8039
8040 fi
8041 fi
8042 OTOOL=$ac_cv_prog_OTOOL
8043 if test -n "$OTOOL"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8045 $as_echo "$OTOOL" >&6; }
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8049 fi
8050
8051
8052 fi
8053 if test -z "$ac_cv_prog_OTOOL"; then
8054 ac_ct_OTOOL=$OTOOL
8055 # Extract the first word of "otool", so it can be a program name with args.
8056 set dummy otool; ac_word=$2
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058 $as_echo_n "checking for $ac_word... " >&6; }
8059 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8060 $as_echo_n "(cached) " >&6
8061 else
8062 if test -n "$ac_ct_OTOOL"; then
8063 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8064 else
8065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 for as_dir in $PATH
8067 do
8068 IFS=$as_save_IFS
8069 test -z "$as_dir" && as_dir=.
8070 for ac_exec_ext in '' $ac_executable_extensions; do
8071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8072 ac_cv_prog_ac_ct_OTOOL="otool"
8073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8074 break 2
8075 fi
8076 done
8077 done
8078 IFS=$as_save_IFS
8079
8080 fi
8081 fi
8082 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8083 if test -n "$ac_ct_OTOOL"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8085 $as_echo "$ac_ct_OTOOL" >&6; }
8086 else
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8089 fi
8090
8091 if test "x$ac_ct_OTOOL" = x; then
8092 OTOOL=":"
8093 else
8094 case $cross_compiling:$ac_tool_warned in
8095 yes:)
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8098 ac_tool_warned=yes ;;
8099 esac
8100 OTOOL=$ac_ct_OTOOL
8101 fi
8102 else
8103 OTOOL="$ac_cv_prog_OTOOL"
8104 fi
8105
8106 if test -n "$ac_tool_prefix"; then
8107 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8108 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if ${ac_cv_prog_OTOOL64+:} false; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 if test -n "$OTOOL64"; then
8115 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8116 else
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8119 do
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
8122 for ac_exec_ext in '' $ac_executable_extensions; do
8123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 break 2
8127 fi
8128 done
8129 done
8130 IFS=$as_save_IFS
8131
8132 fi
8133 fi
8134 OTOOL64=$ac_cv_prog_OTOOL64
8135 if test -n "$OTOOL64"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8137 $as_echo "$OTOOL64" >&6; }
8138 else
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8141 fi
8142
8143
8144 fi
8145 if test -z "$ac_cv_prog_OTOOL64"; then
8146 ac_ct_OTOOL64=$OTOOL64
8147 # Extract the first word of "otool64", so it can be a program name with args.
8148 set dummy otool64; ac_word=$2
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8150 $as_echo_n "checking for $ac_word... " >&6; }
8151 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8152 $as_echo_n "(cached) " >&6
8153 else
8154 if test -n "$ac_ct_OTOOL64"; then
8155 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8156 else
8157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158 for as_dir in $PATH
8159 do
8160 IFS=$as_save_IFS
8161 test -z "$as_dir" && as_dir=.
8162 for ac_exec_ext in '' $ac_executable_extensions; do
8163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8164 ac_cv_prog_ac_ct_OTOOL64="otool64"
8165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8166 break 2
8167 fi
8168 done
8169 done
8170 IFS=$as_save_IFS
8171
8172 fi
8173 fi
8174 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8175 if test -n "$ac_ct_OTOOL64"; then
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8177 $as_echo "$ac_ct_OTOOL64" >&6; }
8178 else
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 $as_echo "no" >&6; }
8181 fi
8182
8183 if test "x$ac_ct_OTOOL64" = x; then
8184 OTOOL64=":"
8185 else
8186 case $cross_compiling:$ac_tool_warned in
8187 yes:)
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8190 ac_tool_warned=yes ;;
8191 esac
8192 OTOOL64=$ac_ct_OTOOL64
8193 fi
8194 else
8195 OTOOL64="$ac_cv_prog_OTOOL64"
8196 fi
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8225 $as_echo_n "checking for -single_module linker flag... " >&6; }
8226 if ${lt_cv_apple_cc_single_mod+:} false; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 lt_cv_apple_cc_single_mod=no
8230 if test -z "$LT_MULTI_MODULE"; then
8231 # By default we will add the -single_module flag. You can override
8232 # by either setting the environment variable LT_MULTI_MODULE
8233 # non-empty at configure time, or by adding -multi_module to the
8234 # link flags.
8235 rm -rf libconftest.dylib*
8236 echo "int foo(void){return 1;}" > conftest.c
8237 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8238 -dynamiclib -Wl,-single_module conftest.c" >&5
8239 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8240 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8241 _lt_result=$?
8242 # If there is a non-empty error log, and "single_module"
8243 # appears in it, assume the flag caused a linker warning
8244 if test -s conftest.err && $GREP single_module conftest.err; then
8245 cat conftest.err >&5
8246 # Otherwise, if the output was created with a 0 exit code from
8247 # the compiler, it worked.
8248 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8249 lt_cv_apple_cc_single_mod=yes
8250 else
8251 cat conftest.err >&5
8252 fi
8253 rm -rf libconftest.dylib*
8254 rm -f conftest.*
8255 fi
8256 fi
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8258 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8259
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8261 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8262 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8263 $as_echo_n "(cached) " >&6
8264 else
8265 lt_cv_ld_exported_symbols_list=no
8266 save_LDFLAGS=$LDFLAGS
8267 echo "_main" > conftest.sym
8268 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8271
8272 int
8273 main ()
8274 {
8275
8276 ;
8277 return 0;
8278 }
8279 _ACEOF
8280 if ac_fn_c_try_link "$LINENO"; then :
8281 lt_cv_ld_exported_symbols_list=yes
8282 else
8283 lt_cv_ld_exported_symbols_list=no
8284 fi
8285 rm -f core conftest.err conftest.$ac_objext \
8286 conftest$ac_exeext conftest.$ac_ext
8287 LDFLAGS=$save_LDFLAGS
8288
8289 fi
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8291 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8292
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8294 $as_echo_n "checking for -force_load linker flag... " >&6; }
8295 if ${lt_cv_ld_force_load+:} false; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 lt_cv_ld_force_load=no
8299 cat > conftest.c << _LT_EOF
8300 int forced_loaded() { return 2;}
8301 _LT_EOF
8302 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8303 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8304 echo "$AR cru libconftest.a conftest.o" >&5
8305 $AR cru libconftest.a conftest.o 2>&5
8306 echo "$RANLIB libconftest.a" >&5
8307 $RANLIB libconftest.a 2>&5
8308 cat > conftest.c << _LT_EOF
8309 int main() { return 0;}
8310 _LT_EOF
8311 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8312 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8313 _lt_result=$?
8314 if test -s conftest.err && $GREP force_load conftest.err; then
8315 cat conftest.err >&5
8316 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8317 lt_cv_ld_force_load=yes
8318 else
8319 cat conftest.err >&5
8320 fi
8321 rm -f conftest.err libconftest.a conftest conftest.c
8322 rm -rf conftest.dSYM
8323
8324 fi
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8326 $as_echo "$lt_cv_ld_force_load" >&6; }
8327 case $host_os in
8328 rhapsody* | darwin1.[012])
8329 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8330 darwin1.*)
8331 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8332 darwin*) # darwin 5.x on
8333 # if running on 10.5 or later, the deployment target defaults
8334 # to the OS version, if on x86, and 10.4, the deployment
8335 # target defaults to 10.4. Don't you love it?
8336 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8337 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8338 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8339 10.[012][,.]*)
8340 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8341 10.*)
8342 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8343 esac
8344 ;;
8345 esac
8346 if test yes = "$lt_cv_apple_cc_single_mod"; then
8347 _lt_dar_single_mod='$single_module'
8348 fi
8349 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8350 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8351 else
8352 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8353 fi
8354 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8355 _lt_dsymutil='~$DSYMUTIL $lib || :'
8356 else
8357 _lt_dsymutil=
8358 fi
8359 ;;
8360 esac
8361
8362 # func_munge_path_list VARIABLE PATH
8363 # -----------------------------------
8364 # VARIABLE is name of variable containing _space_ separated list of
8365 # directories to be munged by the contents of PATH, which is string
8366 # having a format:
8367 # "DIR[:DIR]:"
8368 # string "DIR[ DIR]" will be prepended to VARIABLE
8369 # ":DIR[:DIR]"
8370 # string "DIR[ DIR]" will be appended to VARIABLE
8371 # "DIRP[:DIRP]::[DIRA:]DIRA"
8372 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8373 # "DIRA[ DIRA]" will be appended to VARIABLE
8374 # "DIR[:DIR]"
8375 # VARIABLE will be replaced by "DIR[ DIR]"
8376 func_munge_path_list ()
8377 {
8378 case x$2 in
8379 x)
8380 ;;
8381 *:)
8382 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8383 ;;
8384 x:*)
8385 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8386 ;;
8387 *::*)
8388 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8389 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8390 ;;
8391 *)
8392 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8393 ;;
8394 esac
8395 }
8396
8397
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8399 $as_echo_n "checking for ANSI C header files... " >&6; }
8400 if ${ac_cv_header_stdc+:} false; then :
8401 $as_echo_n "(cached) " >&6
8402 else
8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8405 #include <stdlib.h>
8406 #include <stdarg.h>
8407 #include <string.h>
8408 #include <float.h>
8409
8410 int
8411 main ()
8412 {
8413
8414 ;
8415 return 0;
8416 }
8417 _ACEOF
8418 if ac_fn_c_try_compile "$LINENO"; then :
8419 ac_cv_header_stdc=yes
8420 else
8421 ac_cv_header_stdc=no
8422 fi
8423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8424
8425 if test $ac_cv_header_stdc = yes; then
8426 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h. */
8429 #include <string.h>
8430
8431 _ACEOF
8432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8433 $EGREP "memchr" >/dev/null 2>&1; then :
8434
8435 else
8436 ac_cv_header_stdc=no
8437 fi
8438 rm -f conftest*
8439
8440 fi
8441
8442 if test $ac_cv_header_stdc = yes; then
8443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445 /* end confdefs.h. */
8446 #include <stdlib.h>
8447
8448 _ACEOF
8449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8450 $EGREP "free" >/dev/null 2>&1; then :
8451
8452 else
8453 ac_cv_header_stdc=no
8454 fi
8455 rm -f conftest*
8456
8457 fi
8458
8459 if test $ac_cv_header_stdc = yes; then
8460 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8461 if test "$cross_compiling" = yes; then :
8462 :
8463 else
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8466 #include <ctype.h>
8467 #include <stdlib.h>
8468 #if ((' ' & 0x0FF) == 0x020)
8469 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8470 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8471 #else
8472 # define ISLOWER(c) \
8473 (('a' <= (c) && (c) <= 'i') \
8474 || ('j' <= (c) && (c) <= 'r') \
8475 || ('s' <= (c) && (c) <= 'z'))
8476 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8477 #endif
8478
8479 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8480 int
8481 main ()
8482 {
8483 int i;
8484 for (i = 0; i < 256; i++)
8485 if (XOR (islower (i), ISLOWER (i))
8486 || toupper (i) != TOUPPER (i))
8487 return 2;
8488 return 0;
8489 }
8490 _ACEOF
8491 if ac_fn_c_try_run "$LINENO"; then :
8492
8493 else
8494 ac_cv_header_stdc=no
8495 fi
8496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8497 conftest.$ac_objext conftest.beam conftest.$ac_ext
8498 fi
8499
8500 fi
8501 fi
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8503 $as_echo "$ac_cv_header_stdc" >&6; }
8504 if test $ac_cv_header_stdc = yes; then
8505
8506 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8507
8508 fi
8509
8510 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8511 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8512 inttypes.h stdint.h unistd.h
8513 do :
8514 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8515 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8516 "
8517 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8518 cat >>confdefs.h <<_ACEOF
8519 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8520 _ACEOF
8521
8522 fi
8523
8524 done
8525
8526
8527 for ac_header in dlfcn.h
8528 do :
8529 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8530 "
8531 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8532 cat >>confdefs.h <<_ACEOF
8533 #define HAVE_DLFCN_H 1
8534 _ACEOF
8535
8536 fi
8537
8538 done
8539
8540
8541
8542
8543 func_stripname_cnf ()
8544 {
8545 case $2 in
8546 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8547 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8548 esac
8549 } # func_stripname_cnf
8550
8551
8552
8553
8554
8555 # Set options
8556 enable_dlopen=yes
8557
8558
8559
8560
8561 enable_win32_dll=no
8562
8563
8564 # Check whether --enable-shared was given.
8565 if test "${enable_shared+set}" = set; then :
8566 enableval=$enable_shared; p=${PACKAGE-default}
8567 case $enableval in
8568 yes) enable_shared=yes ;;
8569 no) enable_shared=no ;;
8570 *)
8571 enable_shared=no
8572 # Look at the argument we got. We use all the common list separators.
8573 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8574 for pkg in $enableval; do
8575 IFS=$lt_save_ifs
8576 if test "X$pkg" = "X$p"; then
8577 enable_shared=yes
8578 fi
8579 done
8580 IFS=$lt_save_ifs
8581 ;;
8582 esac
8583 else
8584 enable_shared=yes
8585 fi
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595 # Check whether --enable-static was given.
8596 if test "${enable_static+set}" = set; then :
8597 enableval=$enable_static; p=${PACKAGE-default}
8598 case $enableval in
8599 yes) enable_static=yes ;;
8600 no) enable_static=no ;;
8601 *)
8602 enable_static=no
8603 # Look at the argument we got. We use all the common list separators.
8604 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8605 for pkg in $enableval; do
8606 IFS=$lt_save_ifs
8607 if test "X$pkg" = "X$p"; then
8608 enable_static=yes
8609 fi
8610 done
8611 IFS=$lt_save_ifs
8612 ;;
8613 esac
8614 else
8615 enable_static=yes
8616 fi
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627 # Check whether --with-pic was given.
8628 if test "${with_pic+set}" = set; then :
8629 withval=$with_pic; lt_p=${PACKAGE-default}
8630 case $withval in
8631 yes|no) pic_mode=$withval ;;
8632 *)
8633 pic_mode=default
8634 # Look at the argument we got. We use all the common list separators.
8635 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8636 for lt_pkg in $withval; do
8637 IFS=$lt_save_ifs
8638 if test "X$lt_pkg" = "X$lt_p"; then
8639 pic_mode=yes
8640 fi
8641 done
8642 IFS=$lt_save_ifs
8643 ;;
8644 esac
8645 else
8646 pic_mode=default
8647 fi
8648
8649
8650
8651
8652
8653
8654
8655
8656 # Check whether --enable-fast-install was given.
8657 if test "${enable_fast_install+set}" = set; then :
8658 enableval=$enable_fast_install; p=${PACKAGE-default}
8659 case $enableval in
8660 yes) enable_fast_install=yes ;;
8661 no) enable_fast_install=no ;;
8662 *)
8663 enable_fast_install=no
8664 # Look at the argument we got. We use all the common list separators.
8665 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8666 for pkg in $enableval; do
8667 IFS=$lt_save_ifs
8668 if test "X$pkg" = "X$p"; then
8669 enable_fast_install=yes
8670 fi
8671 done
8672 IFS=$lt_save_ifs
8673 ;;
8674 esac
8675 else
8676 enable_fast_install=yes
8677 fi
8678
8679
8680
8681
8682
8683
8684
8685
8686 shared_archive_member_spec=
8687 case $host,$enable_shared in
8688 power*-*-aix[5-9]*,yes)
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8690 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8691
8692 # Check whether --with-aix-soname was given.
8693 if test "${with_aix_soname+set}" = set; then :
8694 withval=$with_aix_soname; case $withval in
8695 aix|svr4|both)
8696 ;;
8697 *)
8698 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8699 ;;
8700 esac
8701 lt_cv_with_aix_soname=$with_aix_soname
8702 else
8703 if ${lt_cv_with_aix_soname+:} false; then :
8704 $as_echo_n "(cached) " >&6
8705 else
8706 lt_cv_with_aix_soname=aix
8707 fi
8708
8709 with_aix_soname=$lt_cv_with_aix_soname
8710 fi
8711
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8713 $as_echo "$with_aix_soname" >&6; }
8714 if test aix != "$with_aix_soname"; then
8715 # For the AIX way of multilib, we name the shared archive member
8716 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8717 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8718 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8719 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8720 if test 64 = "${OBJECT_MODE-32}"; then
8721 shared_archive_member_spec=shr_64
8722 else
8723 shared_archive_member_spec=shr
8724 fi
8725 fi
8726 ;;
8727 *)
8728 with_aix_soname=aix
8729 ;;
8730 esac
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741 # This can be used to rebuild libtool when needed
8742 LIBTOOL_DEPS=$ltmain
8743
8744 # Always use our own libtool.
8745 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776 test -z "$LN_S" && LN_S="ln -s"
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791 if test -n "${ZSH_VERSION+set}"; then
8792 setopt NO_GLOB_SUBST
8793 fi
8794
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8796 $as_echo_n "checking for objdir... " >&6; }
8797 if ${lt_cv_objdir+:} false; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 rm -f .libs 2>/dev/null
8801 mkdir .libs 2>/dev/null
8802 if test -d .libs; then
8803 lt_cv_objdir=.libs
8804 else
8805 # MS-DOS does not allow filenames that begin with a dot.
8806 lt_cv_objdir=_libs
8807 fi
8808 rmdir .libs 2>/dev/null
8809 fi
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8811 $as_echo "$lt_cv_objdir" >&6; }
8812 objdir=$lt_cv_objdir
8813
8814
8815
8816
8817
8818 cat >>confdefs.h <<_ACEOF
8819 #define LT_OBJDIR "$lt_cv_objdir/"
8820 _ACEOF
8821
8822
8823
8824
8825 case $host_os in
8826 aix3*)
8827 # AIX sometimes has problems with the GCC collect2 program. For some
8828 # reason, if we set the COLLECT_NAMES environment variable, the problems
8829 # vanish in a puff of smoke.
8830 if test set != "${COLLECT_NAMES+set}"; then
8831 COLLECT_NAMES=
8832 export COLLECT_NAMES
8833 fi
8834 ;;
8835 esac
8836
8837 # Global variables:
8838 ofile=libtool
8839 can_build_shared=yes
8840
8841 # All known linkers require a '.a' archive for static linking (except MSVC,
8842 # which needs '.lib').
8843 libext=a
8844
8845 with_gnu_ld=$lt_cv_prog_gnu_ld
8846
8847 old_CC=$CC
8848 old_CFLAGS=$CFLAGS
8849
8850 # Set sane defaults for various variables
8851 test -z "$CC" && CC=cc
8852 test -z "$LTCC" && LTCC=$CC
8853 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8854 test -z "$LD" && LD=ld
8855 test -z "$ac_objext" && ac_objext=o
8856
8857 func_cc_basename $compiler
8858 cc_basename=$func_cc_basename_result
8859
8860
8861 # Only perform the check for file, if the check method requires it
8862 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8863 case $deplibs_check_method in
8864 file_magic*)
8865 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8867 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8868 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 case $MAGIC_CMD in
8872 [\\/*] | ?:[\\/]*)
8873 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8874 ;;
8875 *)
8876 lt_save_MAGIC_CMD=$MAGIC_CMD
8877 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8878 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8879 for ac_dir in $ac_dummy; do
8880 IFS=$lt_save_ifs
8881 test -z "$ac_dir" && ac_dir=.
8882 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8883 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8884 if test -n "$file_magic_test_file"; then
8885 case $deplibs_check_method in
8886 "file_magic "*)
8887 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8888 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8889 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8890 $EGREP "$file_magic_regex" > /dev/null; then
8891 :
8892 else
8893 cat <<_LT_EOF 1>&2
8894
8895 *** Warning: the command libtool uses to detect shared libraries,
8896 *** $file_magic_cmd, produces output that libtool cannot recognize.
8897 *** The result is that libtool may fail to recognize shared libraries
8898 *** as such. This will affect the creation of libtool libraries that
8899 *** depend on shared libraries, but programs linked with such libtool
8900 *** libraries will work regardless of this problem. Nevertheless, you
8901 *** may want to report the problem to your system manager and/or to
8902 *** bug-libtool@gnu.org
8903
8904 _LT_EOF
8905 fi ;;
8906 esac
8907 fi
8908 break
8909 fi
8910 done
8911 IFS=$lt_save_ifs
8912 MAGIC_CMD=$lt_save_MAGIC_CMD
8913 ;;
8914 esac
8915 fi
8916
8917 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8918 if test -n "$MAGIC_CMD"; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8920 $as_echo "$MAGIC_CMD" >&6; }
8921 else
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 $as_echo "no" >&6; }
8924 fi
8925
8926
8927
8928
8929
8930 if test -z "$lt_cv_path_MAGIC_CMD"; then
8931 if test -n "$ac_tool_prefix"; then
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8933 $as_echo_n "checking for file... " >&6; }
8934 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8935 $as_echo_n "(cached) " >&6
8936 else
8937 case $MAGIC_CMD in
8938 [\\/*] | ?:[\\/]*)
8939 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8940 ;;
8941 *)
8942 lt_save_MAGIC_CMD=$MAGIC_CMD
8943 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8944 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8945 for ac_dir in $ac_dummy; do
8946 IFS=$lt_save_ifs
8947 test -z "$ac_dir" && ac_dir=.
8948 if test -f "$ac_dir/file"; then
8949 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8950 if test -n "$file_magic_test_file"; then
8951 case $deplibs_check_method in
8952 "file_magic "*)
8953 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8954 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8955 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8956 $EGREP "$file_magic_regex" > /dev/null; then
8957 :
8958 else
8959 cat <<_LT_EOF 1>&2
8960
8961 *** Warning: the command libtool uses to detect shared libraries,
8962 *** $file_magic_cmd, produces output that libtool cannot recognize.
8963 *** The result is that libtool may fail to recognize shared libraries
8964 *** as such. This will affect the creation of libtool libraries that
8965 *** depend on shared libraries, but programs linked with such libtool
8966 *** libraries will work regardless of this problem. Nevertheless, you
8967 *** may want to report the problem to your system manager and/or to
8968 *** bug-libtool@gnu.org
8969
8970 _LT_EOF
8971 fi ;;
8972 esac
8973 fi
8974 break
8975 fi
8976 done
8977 IFS=$lt_save_ifs
8978 MAGIC_CMD=$lt_save_MAGIC_CMD
8979 ;;
8980 esac
8981 fi
8982
8983 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8984 if test -n "$MAGIC_CMD"; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8986 $as_echo "$MAGIC_CMD" >&6; }
8987 else
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 $as_echo "no" >&6; }
8990 fi
8991
8992
8993 else
8994 MAGIC_CMD=:
8995 fi
8996 fi
8997
8998 fi
8999 ;;
9000 esac
9001
9002 # Use C for the default configuration in the libtool script
9003
9004 lt_save_CC=$CC
9005 ac_ext=c
9006 ac_cpp='$CPP $CPPFLAGS'
9007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9010
9011
9012 # Source file extension for C test sources.
9013 ac_ext=c
9014
9015 # Object file extension for compiled C test sources.
9016 objext=o
9017 objext=$objext
9018
9019 # Code to be used in simple compile tests
9020 lt_simple_compile_test_code="int some_variable = 0;"
9021
9022 # Code to be used in simple link tests
9023 lt_simple_link_test_code='int main(){return(0);}'
9024
9025
9026
9027
9028
9029
9030
9031 # If no C compiler was specified, use CC.
9032 LTCC=${LTCC-"$CC"}
9033
9034 # If no C compiler flags were specified, use CFLAGS.
9035 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9036
9037 # Allow CC to be a program name with arguments.
9038 compiler=$CC
9039
9040 # Save the default compiler, since it gets overwritten when the other
9041 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9042 compiler_DEFAULT=$CC
9043
9044 # save warnings/boilerplate of simple test code
9045 ac_outfile=conftest.$ac_objext
9046 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9047 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9048 _lt_compiler_boilerplate=`cat conftest.err`
9049 $RM conftest*
9050
9051 ac_outfile=conftest.$ac_objext
9052 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9053 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9054 _lt_linker_boilerplate=`cat conftest.err`
9055 $RM -r conftest*
9056
9057
9058 if test -n "$compiler"; then
9059
9060 lt_prog_compiler_no_builtin_flag=
9061
9062 if test yes = "$GCC"; then
9063 case $cc_basename in
9064 nvcc*)
9065 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9066 *)
9067 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9068 esac
9069
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9071 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9072 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9073 $as_echo_n "(cached) " >&6
9074 else
9075 lt_cv_prog_compiler_rtti_exceptions=no
9076 ac_outfile=conftest.$ac_objext
9077 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9078 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9079 # Insert the option either (1) after the last *FLAGS variable, or
9080 # (2) before a word containing "conftest.", or (3) at the end.
9081 # Note that $ac_compile itself does not contain backslashes and begins
9082 # with a dollar sign (not a hyphen), so the echo should work correctly.
9083 # The option is referenced via a variable to avoid confusing sed.
9084 lt_compile=`echo "$ac_compile" | $SED \
9085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9087 -e 's:$: $lt_compiler_flag:'`
9088 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9089 (eval "$lt_compile" 2>conftest.err)
9090 ac_status=$?
9091 cat conftest.err >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 if (exit $ac_status) && test -s "$ac_outfile"; then
9094 # The compiler can only warn and ignore the option if not recognized
9095 # So say no if there are warnings other than the usual output.
9096 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9097 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9098 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9099 lt_cv_prog_compiler_rtti_exceptions=yes
9100 fi
9101 fi
9102 $RM conftest*
9103
9104 fi
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9106 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9107
9108 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9109 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9110 else
9111 :
9112 fi
9113
9114 fi
9115
9116
9117
9118
9119
9120
9121 lt_prog_compiler_wl=
9122 lt_prog_compiler_pic=
9123 lt_prog_compiler_static=
9124
9125
9126 if test yes = "$GCC"; then
9127 lt_prog_compiler_wl='-Wl,'
9128 lt_prog_compiler_static='-static'
9129
9130 case $host_os in
9131 aix*)
9132 # All AIX code is PIC.
9133 if test ia64 = "$host_cpu"; then
9134 # AIX 5 now supports IA64 processor
9135 lt_prog_compiler_static='-Bstatic'
9136 fi
9137 lt_prog_compiler_pic='-fPIC'
9138 ;;
9139
9140 amigaos*)
9141 case $host_cpu in
9142 powerpc)
9143 # see comment about AmigaOS4 .so support
9144 lt_prog_compiler_pic='-fPIC'
9145 ;;
9146 m68k)
9147 # FIXME: we need at least 68020 code to build shared libraries, but
9148 # adding the '-m68020' flag to GCC prevents building anything better,
9149 # like '-m68040'.
9150 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9151 ;;
9152 esac
9153 ;;
9154
9155 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9156 # PIC is the default for these OSes.
9157 ;;
9158
9159 mingw* | cygwin* | pw32* | os2* | cegcc*)
9160 # This hack is so that the source file can tell whether it is being
9161 # built for inclusion in a dll (and should export symbols for example).
9162 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9163 # (--disable-auto-import) libraries
9164 lt_prog_compiler_pic='-DDLL_EXPORT'
9165 case $host_os in
9166 os2*)
9167 lt_prog_compiler_static='$wl-static'
9168 ;;
9169 esac
9170 ;;
9171
9172 darwin* | rhapsody*)
9173 # PIC is the default on this platform
9174 # Common symbols not allowed in MH_DYLIB files
9175 lt_prog_compiler_pic='-fno-common'
9176 ;;
9177
9178 haiku*)
9179 # PIC is the default for Haiku.
9180 # The "-static" flag exists, but is broken.
9181 lt_prog_compiler_static=
9182 ;;
9183
9184 hpux*)
9185 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9186 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9187 # sets the default TLS model and affects inlining.
9188 case $host_cpu in
9189 hppa*64*)
9190 # +Z the default
9191 ;;
9192 *)
9193 lt_prog_compiler_pic='-fPIC'
9194 ;;
9195 esac
9196 ;;
9197
9198 interix[3-9]*)
9199 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9200 # Instead, we relocate shared libraries at runtime.
9201 ;;
9202
9203 msdosdjgpp*)
9204 # Just because we use GCC doesn't mean we suddenly get shared libraries
9205 # on systems that don't support them.
9206 lt_prog_compiler_can_build_shared=no
9207 enable_shared=no
9208 ;;
9209
9210 *nto* | *qnx*)
9211 # QNX uses GNU C++, but need to define -shared option too, otherwise
9212 # it will coredump.
9213 lt_prog_compiler_pic='-fPIC -shared'
9214 ;;
9215
9216 sysv4*MP*)
9217 if test -d /usr/nec; then
9218 lt_prog_compiler_pic=-Kconform_pic
9219 fi
9220 ;;
9221
9222 *)
9223 lt_prog_compiler_pic='-fPIC'
9224 ;;
9225 esac
9226
9227 case $cc_basename in
9228 nvcc*) # Cuda Compiler Driver 2.2
9229 lt_prog_compiler_wl='-Xlinker '
9230 if test -n "$lt_prog_compiler_pic"; then
9231 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9232 fi
9233 ;;
9234 esac
9235 else
9236 # PORTME Check for flag to pass linker flags through the system compiler.
9237 case $host_os in
9238 aix*)
9239 lt_prog_compiler_wl='-Wl,'
9240 if test ia64 = "$host_cpu"; then
9241 # AIX 5 now supports IA64 processor
9242 lt_prog_compiler_static='-Bstatic'
9243 else
9244 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9245 fi
9246 ;;
9247
9248 darwin* | rhapsody*)
9249 # PIC is the default on this platform
9250 # Common symbols not allowed in MH_DYLIB files
9251 lt_prog_compiler_pic='-fno-common'
9252 case $cc_basename in
9253 nagfor*)
9254 # NAG Fortran compiler
9255 lt_prog_compiler_wl='-Wl,-Wl,,'
9256 lt_prog_compiler_pic='-PIC'
9257 lt_prog_compiler_static='-Bstatic'
9258 ;;
9259 esac
9260 ;;
9261
9262 mingw* | cygwin* | pw32* | os2* | cegcc*)
9263 # This hack is so that the source file can tell whether it is being
9264 # built for inclusion in a dll (and should export symbols for example).
9265 lt_prog_compiler_pic='-DDLL_EXPORT'
9266 case $host_os in
9267 os2*)
9268 lt_prog_compiler_static='$wl-static'
9269 ;;
9270 esac
9271 ;;
9272
9273 hpux9* | hpux10* | hpux11*)
9274 lt_prog_compiler_wl='-Wl,'
9275 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9276 # not for PA HP-UX.
9277 case $host_cpu in
9278 hppa*64*|ia64*)
9279 # +Z the default
9280 ;;
9281 *)
9282 lt_prog_compiler_pic='+Z'
9283 ;;
9284 esac
9285 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9286 lt_prog_compiler_static='$wl-a ${wl}archive'
9287 ;;
9288
9289 irix5* | irix6* | nonstopux*)
9290 lt_prog_compiler_wl='-Wl,'
9291 # PIC (with -KPIC) is the default.
9292 lt_prog_compiler_static='-non_shared'
9293 ;;
9294
9295 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9296 case $cc_basename in
9297 # old Intel for x86_64, which still supported -KPIC.
9298 ecc*)
9299 lt_prog_compiler_wl='-Wl,'
9300 lt_prog_compiler_pic='-KPIC'
9301 lt_prog_compiler_static='-static'
9302 ;;
9303 # icc used to be incompatible with GCC.
9304 # ICC 10 doesn't accept -KPIC any more.
9305 icc* | ifort*)
9306 lt_prog_compiler_wl='-Wl,'
9307 lt_prog_compiler_pic='-fPIC'
9308 lt_prog_compiler_static='-static'
9309 ;;
9310 # Lahey Fortran 8.1.
9311 lf95*)
9312 lt_prog_compiler_wl='-Wl,'
9313 lt_prog_compiler_pic='--shared'
9314 lt_prog_compiler_static='--static'
9315 ;;
9316 nagfor*)
9317 # NAG Fortran compiler
9318 lt_prog_compiler_wl='-Wl,-Wl,,'
9319 lt_prog_compiler_pic='-PIC'
9320 lt_prog_compiler_static='-Bstatic'
9321 ;;
9322 tcc*)
9323 # Fabrice Bellard et al's Tiny C Compiler
9324 lt_prog_compiler_wl='-Wl,'
9325 lt_prog_compiler_pic='-fPIC'
9326 lt_prog_compiler_static='-static'
9327 ;;
9328 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9329 # Portland Group compilers (*not* the Pentium gcc compiler,
9330 # which looks to be a dead project)
9331 lt_prog_compiler_wl='-Wl,'
9332 lt_prog_compiler_pic='-fpic'
9333 lt_prog_compiler_static='-Bstatic'
9334 ;;
9335 ccc*)
9336 lt_prog_compiler_wl='-Wl,'
9337 # All Alpha code is PIC.
9338 lt_prog_compiler_static='-non_shared'
9339 ;;
9340 xl* | bgxl* | bgf* | mpixl*)
9341 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9342 lt_prog_compiler_wl='-Wl,'
9343 lt_prog_compiler_pic='-qpic'
9344 lt_prog_compiler_static='-qstaticlink'
9345 ;;
9346 *)
9347 case `$CC -V 2>&1 | sed 5q` in
9348 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9349 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9350 lt_prog_compiler_pic='-KPIC'
9351 lt_prog_compiler_static='-Bstatic'
9352 lt_prog_compiler_wl=''
9353 ;;
9354 *Sun\ F* | *Sun*Fortran*)
9355 lt_prog_compiler_pic='-KPIC'
9356 lt_prog_compiler_static='-Bstatic'
9357 lt_prog_compiler_wl='-Qoption ld '
9358 ;;
9359 *Sun\ C*)
9360 # Sun C 5.9
9361 lt_prog_compiler_pic='-KPIC'
9362 lt_prog_compiler_static='-Bstatic'
9363 lt_prog_compiler_wl='-Wl,'
9364 ;;
9365 *Intel*\ [CF]*Compiler*)
9366 lt_prog_compiler_wl='-Wl,'
9367 lt_prog_compiler_pic='-fPIC'
9368 lt_prog_compiler_static='-static'
9369 ;;
9370 *Portland\ Group*)
9371 lt_prog_compiler_wl='-Wl,'
9372 lt_prog_compiler_pic='-fpic'
9373 lt_prog_compiler_static='-Bstatic'
9374 ;;
9375 esac
9376 ;;
9377 esac
9378 ;;
9379
9380 newsos6)
9381 lt_prog_compiler_pic='-KPIC'
9382 lt_prog_compiler_static='-Bstatic'
9383 ;;
9384
9385 *nto* | *qnx*)
9386 # QNX uses GNU C++, but need to define -shared option too, otherwise
9387 # it will coredump.
9388 lt_prog_compiler_pic='-fPIC -shared'
9389 ;;
9390
9391 osf3* | osf4* | osf5*)
9392 lt_prog_compiler_wl='-Wl,'
9393 # All OSF/1 code is PIC.
9394 lt_prog_compiler_static='-non_shared'
9395 ;;
9396
9397 rdos*)
9398 lt_prog_compiler_static='-non_shared'
9399 ;;
9400
9401 solaris*)
9402 lt_prog_compiler_pic='-KPIC'
9403 lt_prog_compiler_static='-Bstatic'
9404 case $cc_basename in
9405 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9406 lt_prog_compiler_wl='-Qoption ld ';;
9407 *)
9408 lt_prog_compiler_wl='-Wl,';;
9409 esac
9410 ;;
9411
9412 sunos4*)
9413 lt_prog_compiler_wl='-Qoption ld '
9414 lt_prog_compiler_pic='-PIC'
9415 lt_prog_compiler_static='-Bstatic'
9416 ;;
9417
9418 sysv4 | sysv4.2uw2* | sysv4.3*)
9419 lt_prog_compiler_wl='-Wl,'
9420 lt_prog_compiler_pic='-KPIC'
9421 lt_prog_compiler_static='-Bstatic'
9422 ;;
9423
9424 sysv4*MP*)
9425 if test -d /usr/nec; then
9426 lt_prog_compiler_pic='-Kconform_pic'
9427 lt_prog_compiler_static='-Bstatic'
9428 fi
9429 ;;
9430
9431 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9432 lt_prog_compiler_wl='-Wl,'
9433 lt_prog_compiler_pic='-KPIC'
9434 lt_prog_compiler_static='-Bstatic'
9435 ;;
9436
9437 unicos*)
9438 lt_prog_compiler_wl='-Wl,'
9439 lt_prog_compiler_can_build_shared=no
9440 ;;
9441
9442 uts4*)
9443 lt_prog_compiler_pic='-pic'
9444 lt_prog_compiler_static='-Bstatic'
9445 ;;
9446
9447 *)
9448 lt_prog_compiler_can_build_shared=no
9449 ;;
9450 esac
9451 fi
9452
9453 case $host_os in
9454 # For platforms that do not support PIC, -DPIC is meaningless:
9455 *djgpp*)
9456 lt_prog_compiler_pic=
9457 ;;
9458 *)
9459 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9460 ;;
9461 esac
9462
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9464 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9465 if ${lt_cv_prog_compiler_pic+:} false; then :
9466 $as_echo_n "(cached) " >&6
9467 else
9468 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9469 fi
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9471 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9472 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9473
9474 #
9475 # Check to make sure the PIC flag actually works.
9476 #
9477 if test -n "$lt_prog_compiler_pic"; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9479 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9480 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9481 $as_echo_n "(cached) " >&6
9482 else
9483 lt_cv_prog_compiler_pic_works=no
9484 ac_outfile=conftest.$ac_objext
9485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9486 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9487 # Insert the option either (1) after the last *FLAGS variable, or
9488 # (2) before a word containing "conftest.", or (3) at the end.
9489 # Note that $ac_compile itself does not contain backslashes and begins
9490 # with a dollar sign (not a hyphen), so the echo should work correctly.
9491 # The option is referenced via a variable to avoid confusing sed.
9492 lt_compile=`echo "$ac_compile" | $SED \
9493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9495 -e 's:$: $lt_compiler_flag:'`
9496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9497 (eval "$lt_compile" 2>conftest.err)
9498 ac_status=$?
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 if (exit $ac_status) && test -s "$ac_outfile"; then
9502 # The compiler can only warn and ignore the option if not recognized
9503 # So say no if there are warnings other than the usual output.
9504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9507 lt_cv_prog_compiler_pic_works=yes
9508 fi
9509 fi
9510 $RM conftest*
9511
9512 fi
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9514 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9515
9516 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9517 case $lt_prog_compiler_pic in
9518 "" | " "*) ;;
9519 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9520 esac
9521 else
9522 lt_prog_compiler_pic=
9523 lt_prog_compiler_can_build_shared=no
9524 fi
9525
9526 fi
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538 #
9539 # Check to make sure the static flag actually works.
9540 #
9541 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9543 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9544 if ${lt_cv_prog_compiler_static_works+:} false; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 lt_cv_prog_compiler_static_works=no
9548 save_LDFLAGS=$LDFLAGS
9549 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9550 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9551 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9552 # The linker can only warn and ignore the option if not recognized
9553 # So say no if there are warnings
9554 if test -s conftest.err; then
9555 # Append any errors to the config.log.
9556 cat conftest.err 1>&5
9557 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9559 if diff conftest.exp conftest.er2 >/dev/null; then
9560 lt_cv_prog_compiler_static_works=yes
9561 fi
9562 else
9563 lt_cv_prog_compiler_static_works=yes
9564 fi
9565 fi
9566 $RM -r conftest*
9567 LDFLAGS=$save_LDFLAGS
9568
9569 fi
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9571 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9572
9573 if test yes = "$lt_cv_prog_compiler_static_works"; then
9574 :
9575 else
9576 lt_prog_compiler_static=
9577 fi
9578
9579
9580
9581
9582
9583
9584
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9586 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9587 if ${lt_cv_prog_compiler_c_o+:} false; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 lt_cv_prog_compiler_c_o=no
9591 $RM -r conftest 2>/dev/null
9592 mkdir conftest
9593 cd conftest
9594 mkdir out
9595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9596
9597 lt_compiler_flag="-o out/conftest2.$ac_objext"
9598 # Insert the option either (1) after the last *FLAGS variable, or
9599 # (2) before a word containing "conftest.", or (3) at the end.
9600 # Note that $ac_compile itself does not contain backslashes and begins
9601 # with a dollar sign (not a hyphen), so the echo should work correctly.
9602 lt_compile=`echo "$ac_compile" | $SED \
9603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9605 -e 's:$: $lt_compiler_flag:'`
9606 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9607 (eval "$lt_compile" 2>out/conftest.err)
9608 ac_status=$?
9609 cat out/conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9612 then
9613 # The compiler can only warn and ignore the option if not recognized
9614 # So say no if there are warnings
9615 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9616 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9617 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9618 lt_cv_prog_compiler_c_o=yes
9619 fi
9620 fi
9621 chmod u+w . 2>&5
9622 $RM conftest*
9623 # SGI C++ compiler will create directory out/ii_files/ for
9624 # template instantiation
9625 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9626 $RM out/* && rmdir out
9627 cd ..
9628 $RM -r conftest
9629 $RM conftest*
9630
9631 fi
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9633 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9634
9635
9636
9637
9638
9639
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9641 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9642 if ${lt_cv_prog_compiler_c_o+:} false; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 lt_cv_prog_compiler_c_o=no
9646 $RM -r conftest 2>/dev/null
9647 mkdir conftest
9648 cd conftest
9649 mkdir out
9650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9651
9652 lt_compiler_flag="-o out/conftest2.$ac_objext"
9653 # Insert the option either (1) after the last *FLAGS variable, or
9654 # (2) before a word containing "conftest.", or (3) at the end.
9655 # Note that $ac_compile itself does not contain backslashes and begins
9656 # with a dollar sign (not a hyphen), so the echo should work correctly.
9657 lt_compile=`echo "$ac_compile" | $SED \
9658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9660 -e 's:$: $lt_compiler_flag:'`
9661 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9662 (eval "$lt_compile" 2>out/conftest.err)
9663 ac_status=$?
9664 cat out/conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9667 then
9668 # The compiler can only warn and ignore the option if not recognized
9669 # So say no if there are warnings
9670 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9671 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9672 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9673 lt_cv_prog_compiler_c_o=yes
9674 fi
9675 fi
9676 chmod u+w . 2>&5
9677 $RM conftest*
9678 # SGI C++ compiler will create directory out/ii_files/ for
9679 # template instantiation
9680 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9681 $RM out/* && rmdir out
9682 cd ..
9683 $RM -r conftest
9684 $RM conftest*
9685
9686 fi
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9688 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9689
9690
9691
9692
9693 hard_links=nottested
9694 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9695 # do not overwrite the value of need_locks provided by the user
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9697 $as_echo_n "checking if we can lock with hard links... " >&6; }
9698 hard_links=yes
9699 $RM conftest*
9700 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9701 touch conftest.a
9702 ln conftest.a conftest.b 2>&5 || hard_links=no
9703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9705 $as_echo "$hard_links" >&6; }
9706 if test no = "$hard_links"; then
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9708 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9709 need_locks=warn
9710 fi
9711 else
9712 need_locks=no
9713 fi
9714
9715
9716
9717
9718
9719
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9721 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9722
9723 runpath_var=
9724 allow_undefined_flag=
9725 always_export_symbols=no
9726 archive_cmds=
9727 archive_expsym_cmds=
9728 compiler_needs_object=no
9729 enable_shared_with_static_runtimes=no
9730 export_dynamic_flag_spec=
9731 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9732 hardcode_automatic=no
9733 hardcode_direct=no
9734 hardcode_direct_absolute=no
9735 hardcode_libdir_flag_spec=
9736 hardcode_libdir_separator=
9737 hardcode_minus_L=no
9738 hardcode_shlibpath_var=unsupported
9739 inherit_rpath=no
9740 link_all_deplibs=unknown
9741 module_cmds=
9742 module_expsym_cmds=
9743 old_archive_from_new_cmds=
9744 old_archive_from_expsyms_cmds=
9745 thread_safe_flag_spec=
9746 whole_archive_flag_spec=
9747 # include_expsyms should be a list of space-separated symbols to be *always*
9748 # included in the symbol list
9749 include_expsyms=
9750 # exclude_expsyms can be an extended regexp of symbols to exclude
9751 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9752 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9753 # as well as any symbol that contains 'd'.
9754 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9755 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9756 # platforms (ab)use it in PIC code, but their linkers get confused if
9757 # the symbol is explicitly referenced. Since portable code cannot
9758 # rely on this symbol name, it's probably fine to never include it in
9759 # preloaded symbol tables.
9760 # Exclude shared library initialization/finalization symbols.
9761 extract_expsyms_cmds=
9762
9763 case $host_os in
9764 cygwin* | mingw* | pw32* | cegcc*)
9765 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9766 # When not using gcc, we currently assume that we are using
9767 # Microsoft Visual C++.
9768 if test yes != "$GCC"; then
9769 with_gnu_ld=no
9770 fi
9771 ;;
9772 interix*)
9773 # we just hope/assume this is gcc and not c89 (= MSVC++)
9774 with_gnu_ld=yes
9775 ;;
9776 openbsd* | bitrig*)
9777 with_gnu_ld=no
9778 ;;
9779 esac
9780
9781 ld_shlibs=yes
9782
9783 # On some targets, GNU ld is compatible enough with the native linker
9784 # that we're better off using the native interface for both.
9785 lt_use_gnu_ld_interface=no
9786 if test yes = "$with_gnu_ld"; then
9787 case $host_os in
9788 aix*)
9789 # The AIX port of GNU ld has always aspired to compatibility
9790 # with the native linker. However, as the warning in the GNU ld
9791 # block says, versions before 2.19.5* couldn't really create working
9792 # shared libraries, regardless of the interface used.
9793 case `$LD -v 2>&1` in
9794 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9795 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9796 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9797 *)
9798 lt_use_gnu_ld_interface=yes
9799 ;;
9800 esac
9801 ;;
9802 *)
9803 lt_use_gnu_ld_interface=yes
9804 ;;
9805 esac
9806 fi
9807
9808 if test yes = "$lt_use_gnu_ld_interface"; then
9809 # If archive_cmds runs LD, not CC, wlarc should be empty
9810 wlarc='$wl'
9811
9812 # Set some defaults for GNU ld with shared library support. These
9813 # are reset later if shared libraries are not supported. Putting them
9814 # here allows them to be overridden if necessary.
9815 runpath_var=LD_RUN_PATH
9816 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9817 export_dynamic_flag_spec='$wl--export-dynamic'
9818 # ancient GNU ld didn't support --whole-archive et. al.
9819 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9820 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9821 else
9822 whole_archive_flag_spec=
9823 fi
9824 supports_anon_versioning=no
9825 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9826 *GNU\ gold*) supports_anon_versioning=yes ;;
9827 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9828 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9829 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9830 *\ 2.11.*) ;; # other 2.11 versions
9831 *) supports_anon_versioning=yes ;;
9832 esac
9833
9834 # See if GNU ld supports shared libraries.
9835 case $host_os in
9836 aix[3-9]*)
9837 # On AIX/PPC, the GNU linker is very broken
9838 if test ia64 != "$host_cpu"; then
9839 ld_shlibs=no
9840 cat <<_LT_EOF 1>&2
9841
9842 *** Warning: the GNU linker, at least up to release 2.19, is reported
9843 *** to be unable to reliably create shared libraries on AIX.
9844 *** Therefore, libtool is disabling shared libraries support. If you
9845 *** really care for shared libraries, you may want to install binutils
9846 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9847 *** You will then need to restart the configuration process.
9848
9849 _LT_EOF
9850 fi
9851 ;;
9852
9853 amigaos*)
9854 case $host_cpu in
9855 powerpc)
9856 # see comment about AmigaOS4 .so support
9857 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9858 archive_expsym_cmds=''
9859 ;;
9860 m68k)
9861 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)'
9862 hardcode_libdir_flag_spec='-L$libdir'
9863 hardcode_minus_L=yes
9864 ;;
9865 esac
9866 ;;
9867
9868 beos*)
9869 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9870 allow_undefined_flag=unsupported
9871 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9872 # support --undefined. This deserves some investigation. FIXME
9873 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9874 else
9875 ld_shlibs=no
9876 fi
9877 ;;
9878
9879 cygwin* | mingw* | pw32* | cegcc*)
9880 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9881 # as there is no search path for DLLs.
9882 hardcode_libdir_flag_spec='-L$libdir'
9883 export_dynamic_flag_spec='$wl--export-all-symbols'
9884 allow_undefined_flag=unsupported
9885 always_export_symbols=no
9886 enable_shared_with_static_runtimes=yes
9887 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'
9888 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9889
9890 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9891 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9892 # If the export-symbols file already is a .def file, use it as
9893 # is; otherwise, prepend EXPORTS...
9894 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9895 cp $export_symbols $output_objdir/$soname.def;
9896 else
9897 echo EXPORTS > $output_objdir/$soname.def;
9898 cat $export_symbols >> $output_objdir/$soname.def;
9899 fi~
9900 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9901 else
9902 ld_shlibs=no
9903 fi
9904 ;;
9905
9906 haiku*)
9907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9908 link_all_deplibs=yes
9909 ;;
9910
9911 os2*)
9912 hardcode_libdir_flag_spec='-L$libdir'
9913 hardcode_minus_L=yes
9914 allow_undefined_flag=unsupported
9915 shrext_cmds=.dll
9916 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9917 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9918 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9919 $ECHO EXPORTS >> $output_objdir/$libname.def~
9920 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9921 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9922 emximp -o $lib $output_objdir/$libname.def'
9923 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9924 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9925 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9926 $ECHO EXPORTS >> $output_objdir/$libname.def~
9927 prefix_cmds="$SED"~
9928 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9929 prefix_cmds="$prefix_cmds -e 1d";
9930 fi~
9931 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9932 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9933 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9934 emximp -o $lib $output_objdir/$libname.def'
9935 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9936 enable_shared_with_static_runtimes=yes
9937 ;;
9938
9939 interix[3-9]*)
9940 hardcode_direct=no
9941 hardcode_shlibpath_var=no
9942 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9943 export_dynamic_flag_spec='$wl-E'
9944 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9945 # Instead, shared libraries are loaded at an image base (0x10000000 by
9946 # default) and relocated if they conflict, which is a slow very memory
9947 # consuming and fragmenting process. To avoid this, we pick a random,
9948 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9949 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9950 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9951 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'
9952 ;;
9953
9954 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9955 tmp_diet=no
9956 if test linux-dietlibc = "$host_os"; then
9957 case $cc_basename in
9958 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9959 esac
9960 fi
9961 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9962 && test no = "$tmp_diet"
9963 then
9964 tmp_addflag=' $pic_flag'
9965 tmp_sharedflag='-shared'
9966 case $cc_basename,$host_cpu in
9967 pgcc*) # Portland Group C compiler
9968 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'
9969 tmp_addflag=' $pic_flag'
9970 ;;
9971 pgf77* | pgf90* | pgf95* | pgfortran*)
9972 # Portland Group f77 and f90 compilers
9973 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'
9974 tmp_addflag=' $pic_flag -Mnomain' ;;
9975 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9976 tmp_addflag=' -i_dynamic' ;;
9977 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9978 tmp_addflag=' -i_dynamic -nofor_main' ;;
9979 ifc* | ifort*) # Intel Fortran compiler
9980 tmp_addflag=' -nofor_main' ;;
9981 lf95*) # Lahey Fortran 8.1
9982 whole_archive_flag_spec=
9983 tmp_sharedflag='--shared' ;;
9984 nagfor*) # NAGFOR 5.3
9985 tmp_sharedflag='-Wl,-shared' ;;
9986 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9987 tmp_sharedflag='-qmkshrobj'
9988 tmp_addflag= ;;
9989 nvcc*) # Cuda Compiler Driver 2.2
9990 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'
9991 compiler_needs_object=yes
9992 ;;
9993 esac
9994 case `$CC -V 2>&1 | sed 5q` in
9995 *Sun\ C*) # Sun C 5.9
9996 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'
9997 compiler_needs_object=yes
9998 tmp_sharedflag='-G' ;;
9999 *Sun\ F*) # Sun Fortran 8.3
10000 tmp_sharedflag='-G' ;;
10001 esac
10002 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10003
10004 if test yes = "$supports_anon_versioning"; then
10005 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10006 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10007 echo "local: *; };" >> $output_objdir/$libname.ver~
10008 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10009 fi
10010
10011 case $cc_basename in
10012 tcc*)
10013 export_dynamic_flag_spec='-rdynamic'
10014 ;;
10015 xlf* | bgf* | bgxlf* | mpixlf*)
10016 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10017 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10018 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10019 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10020 if test yes = "$supports_anon_versioning"; then
10021 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10022 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10023 echo "local: *; };" >> $output_objdir/$libname.ver~
10024 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10025 fi
10026 ;;
10027 esac
10028 else
10029 ld_shlibs=no
10030 fi
10031 ;;
10032
10033 netbsd*)
10034 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10035 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10036 wlarc=
10037 else
10038 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10039 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10040 fi
10041 ;;
10042
10043 solaris*)
10044 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10045 ld_shlibs=no
10046 cat <<_LT_EOF 1>&2
10047
10048 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10049 *** create shared libraries on Solaris systems. Therefore, libtool
10050 *** is disabling shared libraries support. We urge you to upgrade GNU
10051 *** binutils to release 2.9.1 or newer. Another option is to modify
10052 *** your PATH or compiler configuration so that the native linker is
10053 *** used, and then restart.
10054
10055 _LT_EOF
10056 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10057 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10058 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10059 else
10060 ld_shlibs=no
10061 fi
10062 ;;
10063
10064 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10065 case `$LD -v 2>&1` in
10066 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10067 ld_shlibs=no
10068 cat <<_LT_EOF 1>&2
10069
10070 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10071 *** reliably create shared libraries on SCO systems. Therefore, libtool
10072 *** is disabling shared libraries support. We urge you to upgrade GNU
10073 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10074 *** your PATH or compiler configuration so that the native linker is
10075 *** used, and then restart.
10076
10077 _LT_EOF
10078 ;;
10079 *)
10080 # For security reasons, it is highly recommended that you always
10081 # use absolute paths for naming shared libraries, and exclude the
10082 # DT_RUNPATH tag from executables and libraries. But doing so
10083 # requires that you compile everything twice, which is a pain.
10084 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10085 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10087 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10088 else
10089 ld_shlibs=no
10090 fi
10091 ;;
10092 esac
10093 ;;
10094
10095 sunos4*)
10096 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10097 wlarc=
10098 hardcode_direct=yes
10099 hardcode_shlibpath_var=no
10100 ;;
10101
10102 *)
10103 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10104 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10105 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10106 else
10107 ld_shlibs=no
10108 fi
10109 ;;
10110 esac
10111
10112 if test no = "$ld_shlibs"; then
10113 runpath_var=
10114 hardcode_libdir_flag_spec=
10115 export_dynamic_flag_spec=
10116 whole_archive_flag_spec=
10117 fi
10118 else
10119 # PORTME fill in a description of your system's linker (not GNU ld)
10120 case $host_os in
10121 aix3*)
10122 allow_undefined_flag=unsupported
10123 always_export_symbols=yes
10124 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'
10125 # Note: this linker hardcodes the directories in LIBPATH if there
10126 # are no directories specified by -L.
10127 hardcode_minus_L=yes
10128 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10129 # Neither direct hardcoding nor static linking is supported with a
10130 # broken collect2.
10131 hardcode_direct=unsupported
10132 fi
10133 ;;
10134
10135 aix[4-9]*)
10136 if test ia64 = "$host_cpu"; then
10137 # On IA64, the linker does run time linking by default, so we don't
10138 # have to do anything special.
10139 aix_use_runtimelinking=no
10140 exp_sym_flag='-Bexport'
10141 no_entry_flag=
10142 else
10143 # If we're using GNU nm, then we don't want the "-C" option.
10144 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10145 # Without the "-l" option, or with the "-B" option, AIX nm treats
10146 # weak defined symbols like other global defined symbols, whereas
10147 # GNU nm marks them as "W".
10148 # While the 'weak' keyword is ignored in the Export File, we need
10149 # it in the Import File for the 'aix-soname' feature, so we have
10150 # to replace the "-B" option with "-P" for AIX nm.
10151 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10152 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10153 else
10154 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10155 fi
10156 aix_use_runtimelinking=no
10157
10158 # Test if we are trying to use run time linking or normal
10159 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10160 # have runtime linking enabled, and use it for executables.
10161 # For shared libraries, we enable/disable runtime linking
10162 # depending on the kind of the shared library created -
10163 # when "with_aix_soname,aix_use_runtimelinking" is:
10164 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10165 # "aix,yes" lib.so shared, rtl:yes, for executables
10166 # lib.a static archive
10167 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10168 # lib.a(lib.so.V) shared, rtl:no, for executables
10169 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10170 # lib.a(lib.so.V) shared, rtl:no
10171 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10172 # lib.a static archive
10173 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10174 for ld_flag in $LDFLAGS; do
10175 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10176 aix_use_runtimelinking=yes
10177 break
10178 fi
10179 done
10180 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10181 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10182 # so we don't have lib.a shared libs to link our executables.
10183 # We have to force runtime linking in this case.
10184 aix_use_runtimelinking=yes
10185 LDFLAGS="$LDFLAGS -Wl,-brtl"
10186 fi
10187 ;;
10188 esac
10189
10190 exp_sym_flag='-bexport'
10191 no_entry_flag='-bnoentry'
10192 fi
10193
10194 # When large executables or shared objects are built, AIX ld can
10195 # have problems creating the table of contents. If linking a library
10196 # or program results in "error TOC overflow" add -mminimal-toc to
10197 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10198 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10199
10200 archive_cmds=''
10201 hardcode_direct=yes
10202 hardcode_direct_absolute=yes
10203 hardcode_libdir_separator=':'
10204 link_all_deplibs=yes
10205 file_list_spec='$wl-f,'
10206 case $with_aix_soname,$aix_use_runtimelinking in
10207 aix,*) ;; # traditional, no import file
10208 svr4,* | *,yes) # use import file
10209 # The Import File defines what to hardcode.
10210 hardcode_direct=no
10211 hardcode_direct_absolute=no
10212 ;;
10213 esac
10214
10215 if test yes = "$GCC"; then
10216 case $host_os in aix4.[012]|aix4.[012].*)
10217 # We only want to do this on AIX 4.2 and lower, the check
10218 # below for broken collect2 doesn't work under 4.3+
10219 collect2name=`$CC -print-prog-name=collect2`
10220 if test -f "$collect2name" &&
10221 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10222 then
10223 # We have reworked collect2
10224 :
10225 else
10226 # We have old collect2
10227 hardcode_direct=unsupported
10228 # It fails to find uninstalled libraries when the uninstalled
10229 # path is not listed in the libpath. Setting hardcode_minus_L
10230 # to unsupported forces relinking
10231 hardcode_minus_L=yes
10232 hardcode_libdir_flag_spec='-L$libdir'
10233 hardcode_libdir_separator=
10234 fi
10235 ;;
10236 esac
10237 shared_flag='-shared'
10238 if test yes = "$aix_use_runtimelinking"; then
10239 shared_flag="$shared_flag "'$wl-G'
10240 fi
10241 # Need to ensure runtime linking is disabled for the traditional
10242 # shared library, or the linker may eventually find shared libraries
10243 # /with/ Import File - we do not want to mix them.
10244 shared_flag_aix='-shared'
10245 shared_flag_svr4='-shared $wl-G'
10246 else
10247 # not using gcc
10248 if test ia64 = "$host_cpu"; then
10249 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10250 # chokes on -Wl,-G. The following line is correct:
10251 shared_flag='-G'
10252 else
10253 if test yes = "$aix_use_runtimelinking"; then
10254 shared_flag='$wl-G'
10255 else
10256 shared_flag='$wl-bM:SRE'
10257 fi
10258 shared_flag_aix='$wl-bM:SRE'
10259 shared_flag_svr4='$wl-G'
10260 fi
10261 fi
10262
10263 export_dynamic_flag_spec='$wl-bexpall'
10264 # It seems that -bexpall does not export symbols beginning with
10265 # underscore (_), so it is better to generate a list of symbols to export.
10266 always_export_symbols=yes
10267 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10268 # Warning - without using the other runtime loading flags (-brtl),
10269 # -berok will link without error, but may produce a broken library.
10270 allow_undefined_flag='-berok'
10271 # Determine the default libpath from the value encoded in an
10272 # empty executable.
10273 if test set = "${lt_cv_aix_libpath+set}"; then
10274 aix_libpath=$lt_cv_aix_libpath
10275 else
10276 if ${lt_cv_aix_libpath_+:} false; then :
10277 $as_echo_n "(cached) " >&6
10278 else
10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10281
10282 int
10283 main ()
10284 {
10285
10286 ;
10287 return 0;
10288 }
10289 _ACEOF
10290 if ac_fn_c_try_link "$LINENO"; then :
10291
10292 lt_aix_libpath_sed='
10293 /Import File Strings/,/^$/ {
10294 /^0/ {
10295 s/^0 *\([^ ]*\) *$/\1/
10296 p
10297 }
10298 }'
10299 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10300 # Check for a 64-bit object if we didn't find anything.
10301 if test -z "$lt_cv_aix_libpath_"; then
10302 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10303 fi
10304 fi
10305 rm -f core conftest.err conftest.$ac_objext \
10306 conftest$ac_exeext conftest.$ac_ext
10307 if test -z "$lt_cv_aix_libpath_"; then
10308 lt_cv_aix_libpath_=/usr/lib:/lib
10309 fi
10310
10311 fi
10312
10313 aix_libpath=$lt_cv_aix_libpath_
10314 fi
10315
10316 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10317 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10318 else
10319 if test ia64 = "$host_cpu"; then
10320 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10321 allow_undefined_flag="-z nodefs"
10322 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"
10323 else
10324 # Determine the default libpath from the value encoded in an
10325 # empty executable.
10326 if test set = "${lt_cv_aix_libpath+set}"; then
10327 aix_libpath=$lt_cv_aix_libpath
10328 else
10329 if ${lt_cv_aix_libpath_+:} false; then :
10330 $as_echo_n "(cached) " >&6
10331 else
10332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10333 /* end confdefs.h. */
10334
10335 int
10336 main ()
10337 {
10338
10339 ;
10340 return 0;
10341 }
10342 _ACEOF
10343 if ac_fn_c_try_link "$LINENO"; then :
10344
10345 lt_aix_libpath_sed='
10346 /Import File Strings/,/^$/ {
10347 /^0/ {
10348 s/^0 *\([^ ]*\) *$/\1/
10349 p
10350 }
10351 }'
10352 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10353 # Check for a 64-bit object if we didn't find anything.
10354 if test -z "$lt_cv_aix_libpath_"; then
10355 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10356 fi
10357 fi
10358 rm -f core conftest.err conftest.$ac_objext \
10359 conftest$ac_exeext conftest.$ac_ext
10360 if test -z "$lt_cv_aix_libpath_"; then
10361 lt_cv_aix_libpath_=/usr/lib:/lib
10362 fi
10363
10364 fi
10365
10366 aix_libpath=$lt_cv_aix_libpath_
10367 fi
10368
10369 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10370 # Warning - without using the other run time loading flags,
10371 # -berok will link without error, but may produce a broken library.
10372 no_undefined_flag=' $wl-bernotok'
10373 allow_undefined_flag=' $wl-berok'
10374 if test yes = "$with_gnu_ld"; then
10375 # We only use this code for GNU lds that support --whole-archive.
10376 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10377 else
10378 # Exported symbols can be pulled into shared objects from archives
10379 whole_archive_flag_spec='$convenience'
10380 fi
10381 archive_cmds_need_lc=yes
10382 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10383 # -brtl affects multiple linker settings, -berok does not and is overridden later
10384 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10385 if test svr4 != "$with_aix_soname"; then
10386 # This is similar to how AIX traditionally builds its shared libraries.
10387 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10388 fi
10389 if test aix != "$with_aix_soname"; then
10390 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10391 else
10392 # used by -dlpreopen to get the symbols
10393 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10394 fi
10395 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10396 fi
10397 fi
10398 ;;
10399
10400 amigaos*)
10401 case $host_cpu in
10402 powerpc)
10403 # see comment about AmigaOS4 .so support
10404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10405 archive_expsym_cmds=''
10406 ;;
10407 m68k)
10408 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)'
10409 hardcode_libdir_flag_spec='-L$libdir'
10410 hardcode_minus_L=yes
10411 ;;
10412 esac
10413 ;;
10414
10415 bsdi[45]*)
10416 export_dynamic_flag_spec=-rdynamic
10417 ;;
10418
10419 cygwin* | mingw* | pw32* | cegcc*)
10420 # When not using gcc, we currently assume that we are using
10421 # Microsoft Visual C++.
10422 # hardcode_libdir_flag_spec is actually meaningless, as there is
10423 # no search path for DLLs.
10424 case $cc_basename in
10425 cl*)
10426 # Native MSVC
10427 hardcode_libdir_flag_spec=' '
10428 allow_undefined_flag=unsupported
10429 always_export_symbols=yes
10430 file_list_spec='@'
10431 # Tell ltmain to make .lib files, not .a files.
10432 libext=lib
10433 # Tell ltmain to make .dll files, not .so files.
10434 shrext_cmds=.dll
10435 # FIXME: Setting linknames here is a bad hack.
10436 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10437 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10438 cp "$export_symbols" "$output_objdir/$soname.def";
10439 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10440 else
10441 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10442 fi~
10443 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10444 linknames='
10445 # The linker will not automatically build a static lib if we build a DLL.
10446 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10447 enable_shared_with_static_runtimes=yes
10448 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10449 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10450 # Don't use ranlib
10451 old_postinstall_cmds='chmod 644 $oldlib'
10452 postlink_cmds='lt_outputfile="@OUTPUT@"~
10453 lt_tool_outputfile="@TOOL_OUTPUT@"~
10454 case $lt_outputfile in
10455 *.exe|*.EXE) ;;
10456 *)
10457 lt_outputfile=$lt_outputfile.exe
10458 lt_tool_outputfile=$lt_tool_outputfile.exe
10459 ;;
10460 esac~
10461 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10462 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10463 $RM "$lt_outputfile.manifest";
10464 fi'
10465 ;;
10466 *)
10467 # Assume MSVC wrapper
10468 hardcode_libdir_flag_spec=' '
10469 allow_undefined_flag=unsupported
10470 # Tell ltmain to make .lib files, not .a files.
10471 libext=lib
10472 # Tell ltmain to make .dll files, not .so files.
10473 shrext_cmds=.dll
10474 # FIXME: Setting linknames here is a bad hack.
10475 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10476 # The linker will automatically build a .lib file if we build a DLL.
10477 old_archive_from_new_cmds='true'
10478 # FIXME: Should let the user specify the lib program.
10479 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10480 enable_shared_with_static_runtimes=yes
10481 ;;
10482 esac
10483 ;;
10484
10485 darwin* | rhapsody*)
10486
10487
10488 archive_cmds_need_lc=no
10489 hardcode_direct=no
10490 hardcode_automatic=yes
10491 hardcode_shlibpath_var=unsupported
10492 if test yes = "$lt_cv_ld_force_load"; then
10493 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\"`'
10494
10495 else
10496 whole_archive_flag_spec=''
10497 fi
10498 link_all_deplibs=yes
10499 allow_undefined_flag=$_lt_dar_allow_undefined
10500 case $cc_basename in
10501 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10502 *) _lt_dar_can_shared=$GCC ;;
10503 esac
10504 if test yes = "$_lt_dar_can_shared"; then
10505 output_verbose_link_cmd=func_echo_all
10506 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10507 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10508 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"
10509 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"
10510
10511 else
10512 ld_shlibs=no
10513 fi
10514
10515 ;;
10516
10517 dgux*)
10518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10519 hardcode_libdir_flag_spec='-L$libdir'
10520 hardcode_shlibpath_var=no
10521 ;;
10522
10523 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10524 # support. Future versions do this automatically, but an explicit c++rt0.o
10525 # does not break anything, and helps significantly (at the cost of a little
10526 # extra space).
10527 freebsd2.2*)
10528 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10529 hardcode_libdir_flag_spec='-R$libdir'
10530 hardcode_direct=yes
10531 hardcode_shlibpath_var=no
10532 ;;
10533
10534 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10535 freebsd2.*)
10536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10537 hardcode_direct=yes
10538 hardcode_minus_L=yes
10539 hardcode_shlibpath_var=no
10540 ;;
10541
10542 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10543 freebsd* | dragonfly*)
10544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10545 hardcode_libdir_flag_spec='-R$libdir'
10546 hardcode_direct=yes
10547 hardcode_shlibpath_var=no
10548 ;;
10549
10550 hpux9*)
10551 if test yes = "$GCC"; then
10552 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10553 else
10554 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10555 fi
10556 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10557 hardcode_libdir_separator=:
10558 hardcode_direct=yes
10559
10560 # hardcode_minus_L: Not really in the search PATH,
10561 # but as the default location of the library.
10562 hardcode_minus_L=yes
10563 export_dynamic_flag_spec='$wl-E'
10564 ;;
10565
10566 hpux10*)
10567 if test yes,no = "$GCC,$with_gnu_ld"; then
10568 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10569 else
10570 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10571 fi
10572 if test no = "$with_gnu_ld"; then
10573 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10574 hardcode_libdir_separator=:
10575 hardcode_direct=yes
10576 hardcode_direct_absolute=yes
10577 export_dynamic_flag_spec='$wl-E'
10578 # hardcode_minus_L: Not really in the search PATH,
10579 # but as the default location of the library.
10580 hardcode_minus_L=yes
10581 fi
10582 ;;
10583
10584 hpux11*)
10585 if test yes,no = "$GCC,$with_gnu_ld"; then
10586 case $host_cpu in
10587 hppa*64*)
10588 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10589 ;;
10590 ia64*)
10591 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10592 ;;
10593 *)
10594 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10595 ;;
10596 esac
10597 else
10598 case $host_cpu in
10599 hppa*64*)
10600 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10601 ;;
10602 ia64*)
10603 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10604 ;;
10605 *)
10606
10607 # Older versions of the 11.00 compiler do not understand -b yet
10608 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10610 $as_echo_n "checking if $CC understands -b... " >&6; }
10611 if ${lt_cv_prog_compiler__b+:} false; then :
10612 $as_echo_n "(cached) " >&6
10613 else
10614 lt_cv_prog_compiler__b=no
10615 save_LDFLAGS=$LDFLAGS
10616 LDFLAGS="$LDFLAGS -b"
10617 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10618 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10619 # The linker can only warn and ignore the option if not recognized
10620 # So say no if there are warnings
10621 if test -s conftest.err; then
10622 # Append any errors to the config.log.
10623 cat conftest.err 1>&5
10624 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10625 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10626 if diff conftest.exp conftest.er2 >/dev/null; then
10627 lt_cv_prog_compiler__b=yes
10628 fi
10629 else
10630 lt_cv_prog_compiler__b=yes
10631 fi
10632 fi
10633 $RM -r conftest*
10634 LDFLAGS=$save_LDFLAGS
10635
10636 fi
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10638 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10639
10640 if test yes = "$lt_cv_prog_compiler__b"; then
10641 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10642 else
10643 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10644 fi
10645
10646 ;;
10647 esac
10648 fi
10649 if test no = "$with_gnu_ld"; then
10650 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10651 hardcode_libdir_separator=:
10652
10653 case $host_cpu in
10654 hppa*64*|ia64*)
10655 hardcode_direct=no
10656 hardcode_shlibpath_var=no
10657 ;;
10658 *)
10659 hardcode_direct=yes
10660 hardcode_direct_absolute=yes
10661 export_dynamic_flag_spec='$wl-E'
10662
10663 # hardcode_minus_L: Not really in the search PATH,
10664 # but as the default location of the library.
10665 hardcode_minus_L=yes
10666 ;;
10667 esac
10668 fi
10669 ;;
10670
10671 irix5* | irix6* | nonstopux*)
10672 if test yes = "$GCC"; then
10673 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'
10674 # Try to use the -exported_symbol ld option, if it does not
10675 # work, assume that -exports_file does not work either and
10676 # implicitly export all symbols.
10677 # This should be the same for all languages, so no per-tag cache variable.
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10679 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10680 if ${lt_cv_irix_exported_symbol+:} false; then :
10681 $as_echo_n "(cached) " >&6
10682 else
10683 save_LDFLAGS=$LDFLAGS
10684 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10687 int foo (void) { return 0; }
10688 _ACEOF
10689 if ac_fn_c_try_link "$LINENO"; then :
10690 lt_cv_irix_exported_symbol=yes
10691 else
10692 lt_cv_irix_exported_symbol=no
10693 fi
10694 rm -f core conftest.err conftest.$ac_objext \
10695 conftest$ac_exeext conftest.$ac_ext
10696 LDFLAGS=$save_LDFLAGS
10697 fi
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10699 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10700 if test yes = "$lt_cv_irix_exported_symbol"; then
10701 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'
10702 fi
10703 else
10704 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'
10705 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'
10706 fi
10707 archive_cmds_need_lc='no'
10708 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10709 hardcode_libdir_separator=:
10710 inherit_rpath=yes
10711 link_all_deplibs=yes
10712 ;;
10713
10714 linux*)
10715 case $cc_basename in
10716 tcc*)
10717 # Fabrice Bellard et al's Tiny C Compiler
10718 ld_shlibs=yes
10719 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10720 ;;
10721 esac
10722 ;;
10723
10724 netbsd*)
10725 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10726 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10727 else
10728 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10729 fi
10730 hardcode_libdir_flag_spec='-R$libdir'
10731 hardcode_direct=yes
10732 hardcode_shlibpath_var=no
10733 ;;
10734
10735 newsos6)
10736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10737 hardcode_direct=yes
10738 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10739 hardcode_libdir_separator=:
10740 hardcode_shlibpath_var=no
10741 ;;
10742
10743 *nto* | *qnx*)
10744 ;;
10745
10746 openbsd* | bitrig*)
10747 if test -f /usr/libexec/ld.so; then
10748 hardcode_direct=yes
10749 hardcode_shlibpath_var=no
10750 hardcode_direct_absolute=yes
10751 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10752 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10753 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10754 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10755 export_dynamic_flag_spec='$wl-E'
10756 else
10757 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10758 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10759 fi
10760 else
10761 ld_shlibs=no
10762 fi
10763 ;;
10764
10765 os2*)
10766 hardcode_libdir_flag_spec='-L$libdir'
10767 hardcode_minus_L=yes
10768 allow_undefined_flag=unsupported
10769 shrext_cmds=.dll
10770 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10771 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10772 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10773 $ECHO EXPORTS >> $output_objdir/$libname.def~
10774 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10775 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10776 emximp -o $lib $output_objdir/$libname.def'
10777 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10778 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10779 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10780 $ECHO EXPORTS >> $output_objdir/$libname.def~
10781 prefix_cmds="$SED"~
10782 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10783 prefix_cmds="$prefix_cmds -e 1d";
10784 fi~
10785 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10786 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10787 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10788 emximp -o $lib $output_objdir/$libname.def'
10789 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10790 enable_shared_with_static_runtimes=yes
10791 ;;
10792
10793 osf3*)
10794 if test yes = "$GCC"; then
10795 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10796 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'
10797 else
10798 allow_undefined_flag=' -expect_unresolved \*'
10799 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'
10800 fi
10801 archive_cmds_need_lc='no'
10802 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10803 hardcode_libdir_separator=:
10804 ;;
10805
10806 osf4* | osf5*) # as osf3* with the addition of -msym flag
10807 if test yes = "$GCC"; then
10808 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10809 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'
10810 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10811 else
10812 allow_undefined_flag=' -expect_unresolved \*'
10813 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'
10814 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~
10815 $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'
10816
10817 # Both c and cxx compiler support -rpath directly
10818 hardcode_libdir_flag_spec='-rpath $libdir'
10819 fi
10820 archive_cmds_need_lc='no'
10821 hardcode_libdir_separator=:
10822 ;;
10823
10824 solaris*)
10825 no_undefined_flag=' -z defs'
10826 if test yes = "$GCC"; then
10827 wlarc='$wl'
10828 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10829 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10830 $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'
10831 else
10832 case `$CC -V 2>&1` in
10833 *"Compilers 5.0"*)
10834 wlarc=''
10835 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10836 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10837 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10838 ;;
10839 *)
10840 wlarc='$wl'
10841 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10842 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10843 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10844 ;;
10845 esac
10846 fi
10847 hardcode_libdir_flag_spec='-R$libdir'
10848 hardcode_shlibpath_var=no
10849 case $host_os in
10850 solaris2.[0-5] | solaris2.[0-5].*) ;;
10851 *)
10852 # The compiler driver will combine and reorder linker options,
10853 # but understands '-z linker_flag'. GCC discards it without '$wl',
10854 # but is careful enough not to reorder.
10855 # Supported since Solaris 2.6 (maybe 2.5.1?)
10856 if test yes = "$GCC"; then
10857 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10858 else
10859 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10860 fi
10861 ;;
10862 esac
10863 link_all_deplibs=yes
10864 ;;
10865
10866 sunos4*)
10867 if test sequent = "$host_vendor"; then
10868 # Use $CC to link under sequent, because it throws in some extra .o
10869 # files that make .init and .fini sections work.
10870 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10871 else
10872 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10873 fi
10874 hardcode_libdir_flag_spec='-L$libdir'
10875 hardcode_direct=yes
10876 hardcode_minus_L=yes
10877 hardcode_shlibpath_var=no
10878 ;;
10879
10880 sysv4)
10881 case $host_vendor in
10882 sni)
10883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10884 hardcode_direct=yes # is this really true???
10885 ;;
10886 siemens)
10887 ## LD is ld it makes a PLAMLIB
10888 ## CC just makes a GrossModule.
10889 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10890 reload_cmds='$CC -r -o $output$reload_objs'
10891 hardcode_direct=no
10892 ;;
10893 motorola)
10894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10895 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10896 ;;
10897 esac
10898 runpath_var='LD_RUN_PATH'
10899 hardcode_shlibpath_var=no
10900 ;;
10901
10902 sysv4.3*)
10903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10904 hardcode_shlibpath_var=no
10905 export_dynamic_flag_spec='-Bexport'
10906 ;;
10907
10908 sysv4*MP*)
10909 if test -d /usr/nec; then
10910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10911 hardcode_shlibpath_var=no
10912 runpath_var=LD_RUN_PATH
10913 hardcode_runpath_var=yes
10914 ld_shlibs=yes
10915 fi
10916 ;;
10917
10918 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10919 no_undefined_flag='$wl-z,text'
10920 archive_cmds_need_lc=no
10921 hardcode_shlibpath_var=no
10922 runpath_var='LD_RUN_PATH'
10923
10924 if test yes = "$GCC"; then
10925 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10926 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10927 else
10928 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10929 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10930 fi
10931 ;;
10932
10933 sysv5* | sco3.2v5* | sco5v6*)
10934 # Note: We CANNOT use -z defs as we might desire, because we do not
10935 # link with -lc, and that would cause any symbols used from libc to
10936 # always be unresolved, which means just about no library would
10937 # ever link correctly. If we're not using GNU ld we use -z text
10938 # though, which does catch some bad symbols but isn't as heavy-handed
10939 # as -z defs.
10940 no_undefined_flag='$wl-z,text'
10941 allow_undefined_flag='$wl-z,nodefs'
10942 archive_cmds_need_lc=no
10943 hardcode_shlibpath_var=no
10944 hardcode_libdir_flag_spec='$wl-R,$libdir'
10945 hardcode_libdir_separator=':'
10946 link_all_deplibs=yes
10947 export_dynamic_flag_spec='$wl-Bexport'
10948 runpath_var='LD_RUN_PATH'
10949
10950 if test yes = "$GCC"; then
10951 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10952 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10953 else
10954 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10955 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10956 fi
10957 ;;
10958
10959 uts4*)
10960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10961 hardcode_libdir_flag_spec='-L$libdir'
10962 hardcode_shlibpath_var=no
10963 ;;
10964
10965 *)
10966 ld_shlibs=no
10967 ;;
10968 esac
10969
10970 if test sni = "$host_vendor"; then
10971 case $host in
10972 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10973 export_dynamic_flag_spec='$wl-Blargedynsym'
10974 ;;
10975 esac
10976 fi
10977 fi
10978
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10980 $as_echo "$ld_shlibs" >&6; }
10981 test no = "$ld_shlibs" && can_build_shared=no
10982
10983 with_gnu_ld=$with_gnu_ld
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999 #
11000 # Do we need to explicitly link libc?
11001 #
11002 case "x$archive_cmds_need_lc" in
11003 x|xyes)
11004 # Assume -lc should be added
11005 archive_cmds_need_lc=yes
11006
11007 if test yes,yes = "$GCC,$enable_shared"; then
11008 case $archive_cmds in
11009 *'~'*)
11010 # FIXME: we may have to deal with multi-command sequences.
11011 ;;
11012 '$CC '*)
11013 # Test whether the compiler implicitly links with -lc since on some
11014 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11015 # to ld, don't add -lc before -lgcc.
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11017 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11018 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 $RM conftest*
11022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11023
11024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11025 (eval $ac_compile) 2>&5
11026 ac_status=$?
11027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11028 test $ac_status = 0; } 2>conftest.err; then
11029 soname=conftest
11030 lib=conftest
11031 libobjs=conftest.$ac_objext
11032 deplibs=
11033 wl=$lt_prog_compiler_wl
11034 pic_flag=$lt_prog_compiler_pic
11035 compiler_flags=-v
11036 linker_flags=-v
11037 verstring=
11038 output_objdir=.
11039 libname=conftest
11040 lt_save_allow_undefined_flag=$allow_undefined_flag
11041 allow_undefined_flag=
11042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11043 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11044 ac_status=$?
11045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11046 test $ac_status = 0; }
11047 then
11048 lt_cv_archive_cmds_need_lc=no
11049 else
11050 lt_cv_archive_cmds_need_lc=yes
11051 fi
11052 allow_undefined_flag=$lt_save_allow_undefined_flag
11053 else
11054 cat conftest.err 1>&5
11055 fi
11056 $RM conftest*
11057
11058 fi
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11060 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11061 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11062 ;;
11063 esac
11064 fi
11065 ;;
11066 esac
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11220 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11221
11222 if test yes = "$GCC"; then
11223 case $host_os in
11224 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11225 *) lt_awk_arg='/^libraries:/' ;;
11226 esac
11227 case $host_os in
11228 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11229 *) lt_sed_strip_eq='s|=/|/|g' ;;
11230 esac
11231 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11232 case $lt_search_path_spec in
11233 *\;*)
11234 # if the path contains ";" then we assume it to be the separator
11235 # otherwise default to the standard path separator (i.e. ":") - it is
11236 # assumed that no part of a normal pathname contains ";" but that should
11237 # okay in the real world where ";" in dirpaths is itself problematic.
11238 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11239 ;;
11240 *)
11241 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11242 ;;
11243 esac
11244 # Ok, now we have the path, separated by spaces, we can step through it
11245 # and add multilib dir if necessary...
11246 lt_tmp_lt_search_path_spec=
11247 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11248 # ...but if some path component already ends with the multilib dir we assume
11249 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11250 case "$lt_multi_os_dir; $lt_search_path_spec " in
11251 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11252 lt_multi_os_dir=
11253 ;;
11254 esac
11255 for lt_sys_path in $lt_search_path_spec; do
11256 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11257 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11258 elif test -n "$lt_multi_os_dir"; then
11259 test -d "$lt_sys_path" && \
11260 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11261 fi
11262 done
11263 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11264 BEGIN {RS = " "; FS = "/|\n";} {
11265 lt_foo = "";
11266 lt_count = 0;
11267 for (lt_i = NF; lt_i > 0; lt_i--) {
11268 if ($lt_i != "" && $lt_i != ".") {
11269 if ($lt_i == "..") {
11270 lt_count++;
11271 } else {
11272 if (lt_count == 0) {
11273 lt_foo = "/" $lt_i lt_foo;
11274 } else {
11275 lt_count--;
11276 }
11277 }
11278 }
11279 }
11280 if (lt_foo != "") { lt_freq[lt_foo]++; }
11281 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11282 }'`
11283 # AWK program above erroneously prepends '/' to C:/dos/paths
11284 # for these hosts.
11285 case $host_os in
11286 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11287 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11288 esac
11289 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11290 else
11291 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11292 fi
11293 library_names_spec=
11294 libname_spec='lib$name'
11295 soname_spec=
11296 shrext_cmds=.so
11297 postinstall_cmds=
11298 postuninstall_cmds=
11299 finish_cmds=
11300 finish_eval=
11301 shlibpath_var=
11302 shlibpath_overrides_runpath=unknown
11303 version_type=none
11304 dynamic_linker="$host_os ld.so"
11305 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11306 need_lib_prefix=unknown
11307 hardcode_into_libs=no
11308
11309 # when you set need_version to no, make sure it does not cause -set_version
11310 # flags to be left without arguments
11311 need_version=unknown
11312
11313
11314
11315 case $host_os in
11316 aix3*)
11317 version_type=linux # correct to gnu/linux during the next big refactor
11318 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11319 shlibpath_var=LIBPATH
11320
11321 # AIX 3 has no versioning support, so we append a major version to the name.
11322 soname_spec='$libname$release$shared_ext$major'
11323 ;;
11324
11325 aix[4-9]*)
11326 version_type=linux # correct to gnu/linux during the next big refactor
11327 need_lib_prefix=no
11328 need_version=no
11329 hardcode_into_libs=yes
11330 if test ia64 = "$host_cpu"; then
11331 # AIX 5 supports IA64
11332 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11333 shlibpath_var=LD_LIBRARY_PATH
11334 else
11335 # With GCC up to 2.95.x, collect2 would create an import file
11336 # for dependence libraries. The import file would start with
11337 # the line '#! .'. This would cause the generated library to
11338 # depend on '.', always an invalid library. This was fixed in
11339 # development snapshots of GCC prior to 3.0.
11340 case $host_os in
11341 aix4 | aix4.[01] | aix4.[01].*)
11342 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11343 echo ' yes '
11344 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11345 :
11346 else
11347 can_build_shared=no
11348 fi
11349 ;;
11350 esac
11351 # Using Import Files as archive members, it is possible to support
11352 # filename-based versioning of shared library archives on AIX. While
11353 # this would work for both with and without runtime linking, it will
11354 # prevent static linking of such archives. So we do filename-based
11355 # shared library versioning with .so extension only, which is used
11356 # when both runtime linking and shared linking is enabled.
11357 # Unfortunately, runtime linking may impact performance, so we do
11358 # not want this to be the default eventually. Also, we use the
11359 # versioned .so libs for executables only if there is the -brtl
11360 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11361 # To allow for filename-based versioning support, we need to create
11362 # libNAME.so.V as an archive file, containing:
11363 # *) an Import File, referring to the versioned filename of the
11364 # archive as well as the shared archive member, telling the
11365 # bitwidth (32 or 64) of that shared object, and providing the
11366 # list of exported symbols of that shared object, eventually
11367 # decorated with the 'weak' keyword
11368 # *) the shared object with the F_LOADONLY flag set, to really avoid
11369 # it being seen by the linker.
11370 # At run time we better use the real file rather than another symlink,
11371 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11372
11373 case $with_aix_soname,$aix_use_runtimelinking in
11374 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11375 # soname into executable. Probably we can add versioning support to
11376 # collect2, so additional links can be useful in future.
11377 aix,yes) # traditional libtool
11378 dynamic_linker='AIX unversionable lib.so'
11379 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11380 # instead of lib<name>.a to let people know that these are not
11381 # typical AIX shared libraries.
11382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11383 ;;
11384 aix,no) # traditional AIX only
11385 dynamic_linker='AIX lib.a(lib.so.V)'
11386 # We preserve .a as extension for shared libraries through AIX4.2
11387 # and later when we are not doing run time linking.
11388 library_names_spec='$libname$release.a $libname.a'
11389 soname_spec='$libname$release$shared_ext$major'
11390 ;;
11391 svr4,*) # full svr4 only
11392 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11393 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11394 # We do not specify a path in Import Files, so LIBPATH fires.
11395 shlibpath_overrides_runpath=yes
11396 ;;
11397 *,yes) # both, prefer svr4
11398 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11399 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11400 # unpreferred sharedlib libNAME.a needs extra handling
11401 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11402 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11403 # We do not specify a path in Import Files, so LIBPATH fires.
11404 shlibpath_overrides_runpath=yes
11405 ;;
11406 *,no) # both, prefer aix
11407 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11408 library_names_spec='$libname$release.a $libname.a'
11409 soname_spec='$libname$release$shared_ext$major'
11410 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11411 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11412 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11413 ;;
11414 esac
11415 shlibpath_var=LIBPATH
11416 fi
11417 ;;
11418
11419 amigaos*)
11420 case $host_cpu in
11421 powerpc)
11422 # Since July 2007 AmigaOS4 officially supports .so libraries.
11423 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11424 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11425 ;;
11426 m68k)
11427 library_names_spec='$libname.ixlibrary $libname.a'
11428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11429 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11430 ;;
11431 esac
11432 ;;
11433
11434 beos*)
11435 library_names_spec='$libname$shared_ext'
11436 dynamic_linker="$host_os ld.so"
11437 shlibpath_var=LIBRARY_PATH
11438 ;;
11439
11440 bsdi[45]*)
11441 version_type=linux # correct to gnu/linux during the next big refactor
11442 need_version=no
11443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11444 soname_spec='$libname$release$shared_ext$major'
11445 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11446 shlibpath_var=LD_LIBRARY_PATH
11447 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11448 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11449 # the default ld.so.conf also contains /usr/contrib/lib and
11450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11451 # libtool to hard-code these into programs
11452 ;;
11453
11454 cygwin* | mingw* | pw32* | cegcc*)
11455 version_type=windows
11456 shrext_cmds=.dll
11457 need_version=no
11458 need_lib_prefix=no
11459
11460 case $GCC,$cc_basename in
11461 yes,*)
11462 # gcc
11463 library_names_spec='$libname.dll.a'
11464 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11465 postinstall_cmds='base_file=`basename \$file`~
11466 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11467 dldir=$destdir/`dirname \$dlpath`~
11468 test -d \$dldir || mkdir -p \$dldir~
11469 $install_prog $dir/$dlname \$dldir/$dlname~
11470 chmod a+x \$dldir/$dlname~
11471 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11472 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11473 fi'
11474 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11475 dlpath=$dir/\$dldll~
11476 $RM \$dlpath'
11477 shlibpath_overrides_runpath=yes
11478
11479 case $host_os in
11480 cygwin*)
11481 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11482 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11483
11484 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11485 ;;
11486 mingw* | cegcc*)
11487 # MinGW DLLs use traditional 'lib' prefix
11488 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11489 ;;
11490 pw32*)
11491 # pw32 DLLs use 'pw' prefix rather than 'lib'
11492 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11493 ;;
11494 esac
11495 dynamic_linker='Win32 ld.exe'
11496 ;;
11497
11498 *,cl*)
11499 # Native MSVC
11500 libname_spec='$name'
11501 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11502 library_names_spec='$libname.dll.lib'
11503
11504 case $build_os in
11505 mingw*)
11506 sys_lib_search_path_spec=
11507 lt_save_ifs=$IFS
11508 IFS=';'
11509 for lt_path in $LIB
11510 do
11511 IFS=$lt_save_ifs
11512 # Let DOS variable expansion print the short 8.3 style file name.
11513 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11514 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11515 done
11516 IFS=$lt_save_ifs
11517 # Convert to MSYS style.
11518 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11519 ;;
11520 cygwin*)
11521 # Convert to unix form, then to dos form, then back to unix form
11522 # but this time dos style (no spaces!) so that the unix form looks
11523 # like /cygdrive/c/PROGRA~1:/cygdr...
11524 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11525 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11526 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11527 ;;
11528 *)
11529 sys_lib_search_path_spec=$LIB
11530 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11531 # It is most probably a Windows format PATH.
11532 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11533 else
11534 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11535 fi
11536 # FIXME: find the short name or the path components, as spaces are
11537 # common. (e.g. "Program Files" -> "PROGRA~1")
11538 ;;
11539 esac
11540
11541 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11542 postinstall_cmds='base_file=`basename \$file`~
11543 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11544 dldir=$destdir/`dirname \$dlpath`~
11545 test -d \$dldir || mkdir -p \$dldir~
11546 $install_prog $dir/$dlname \$dldir/$dlname'
11547 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11548 dlpath=$dir/\$dldll~
11549 $RM \$dlpath'
11550 shlibpath_overrides_runpath=yes
11551 dynamic_linker='Win32 link.exe'
11552 ;;
11553
11554 *)
11555 # Assume MSVC wrapper
11556 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11557 dynamic_linker='Win32 ld.exe'
11558 ;;
11559 esac
11560 # FIXME: first we should search . and the directory the executable is in
11561 shlibpath_var=PATH
11562 ;;
11563
11564 darwin* | rhapsody*)
11565 dynamic_linker="$host_os dyld"
11566 version_type=darwin
11567 need_lib_prefix=no
11568 need_version=no
11569 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11570 soname_spec='$libname$release$major$shared_ext'
11571 shlibpath_overrides_runpath=yes
11572 shlibpath_var=DYLD_LIBRARY_PATH
11573 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11574
11575 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11576 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11577 ;;
11578
11579 dgux*)
11580 version_type=linux # correct to gnu/linux during the next big refactor
11581 need_lib_prefix=no
11582 need_version=no
11583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11584 soname_spec='$libname$release$shared_ext$major'
11585 shlibpath_var=LD_LIBRARY_PATH
11586 ;;
11587
11588 freebsd* | dragonfly*)
11589 # DragonFly does not have aout. When/if they implement a new
11590 # versioning mechanism, adjust this.
11591 if test -x /usr/bin/objformat; then
11592 objformat=`/usr/bin/objformat`
11593 else
11594 case $host_os in
11595 freebsd[23].*) objformat=aout ;;
11596 *) objformat=elf ;;
11597 esac
11598 fi
11599 version_type=freebsd-$objformat
11600 case $version_type in
11601 freebsd-elf*)
11602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11603 soname_spec='$libname$release$shared_ext$major'
11604 need_version=no
11605 need_lib_prefix=no
11606 ;;
11607 freebsd-*)
11608 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11609 need_version=yes
11610 ;;
11611 esac
11612 shlibpath_var=LD_LIBRARY_PATH
11613 case $host_os in
11614 freebsd2.*)
11615 shlibpath_overrides_runpath=yes
11616 ;;
11617 freebsd3.[01]* | freebsdelf3.[01]*)
11618 shlibpath_overrides_runpath=yes
11619 hardcode_into_libs=yes
11620 ;;
11621 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11622 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11623 shlibpath_overrides_runpath=no
11624 hardcode_into_libs=yes
11625 ;;
11626 *) # from 4.6 on, and DragonFly
11627 shlibpath_overrides_runpath=yes
11628 hardcode_into_libs=yes
11629 ;;
11630 esac
11631 ;;
11632
11633 haiku*)
11634 version_type=linux # correct to gnu/linux during the next big refactor
11635 need_lib_prefix=no
11636 need_version=no
11637 dynamic_linker="$host_os runtime_loader"
11638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11639 soname_spec='$libname$release$shared_ext$major'
11640 shlibpath_var=LIBRARY_PATH
11641 shlibpath_overrides_runpath=no
11642 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11643 hardcode_into_libs=yes
11644 ;;
11645
11646 hpux9* | hpux10* | hpux11*)
11647 # Give a soname corresponding to the major version so that dld.sl refuses to
11648 # link against other versions.
11649 version_type=sunos
11650 need_lib_prefix=no
11651 need_version=no
11652 case $host_cpu in
11653 ia64*)
11654 shrext_cmds='.so'
11655 hardcode_into_libs=yes
11656 dynamic_linker="$host_os dld.so"
11657 shlibpath_var=LD_LIBRARY_PATH
11658 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11660 soname_spec='$libname$release$shared_ext$major'
11661 if test 32 = "$HPUX_IA64_MODE"; then
11662 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11663 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11664 else
11665 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11666 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11667 fi
11668 ;;
11669 hppa*64*)
11670 shrext_cmds='.sl'
11671 hardcode_into_libs=yes
11672 dynamic_linker="$host_os dld.sl"
11673 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11674 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11676 soname_spec='$libname$release$shared_ext$major'
11677 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11679 ;;
11680 *)
11681 shrext_cmds='.sl'
11682 dynamic_linker="$host_os dld.sl"
11683 shlibpath_var=SHLIB_PATH
11684 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11686 soname_spec='$libname$release$shared_ext$major'
11687 ;;
11688 esac
11689 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11690 postinstall_cmds='chmod 555 $lib'
11691 # or fails outright, so override atomically:
11692 install_override_mode=555
11693 ;;
11694
11695 interix[3-9]*)
11696 version_type=linux # correct to gnu/linux during the next big refactor
11697 need_lib_prefix=no
11698 need_version=no
11699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11700 soname_spec='$libname$release$shared_ext$major'
11701 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11702 shlibpath_var=LD_LIBRARY_PATH
11703 shlibpath_overrides_runpath=no
11704 hardcode_into_libs=yes
11705 ;;
11706
11707 irix5* | irix6* | nonstopux*)
11708 case $host_os in
11709 nonstopux*) version_type=nonstopux ;;
11710 *)
11711 if test yes = "$lt_cv_prog_gnu_ld"; then
11712 version_type=linux # correct to gnu/linux during the next big refactor
11713 else
11714 version_type=irix
11715 fi ;;
11716 esac
11717 need_lib_prefix=no
11718 need_version=no
11719 soname_spec='$libname$release$shared_ext$major'
11720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11721 case $host_os in
11722 irix5* | nonstopux*)
11723 libsuff= shlibsuff=
11724 ;;
11725 *)
11726 case $LD in # libtool.m4 will add one of these switches to LD
11727 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11728 libsuff= shlibsuff= libmagic=32-bit;;
11729 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11730 libsuff=32 shlibsuff=N32 libmagic=N32;;
11731 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11732 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11733 *) libsuff= shlibsuff= libmagic=never-match;;
11734 esac
11735 ;;
11736 esac
11737 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11738 shlibpath_overrides_runpath=no
11739 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11740 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11741 hardcode_into_libs=yes
11742 ;;
11743
11744 # No shared lib support for Linux oldld, aout, or coff.
11745 linux*oldld* | linux*aout* | linux*coff*)
11746 dynamic_linker=no
11747 ;;
11748
11749 linux*android*)
11750 version_type=none # Android doesn't support versioned libraries.
11751 need_lib_prefix=no
11752 need_version=no
11753 library_names_spec='$libname$release$shared_ext'
11754 soname_spec='$libname$release$shared_ext'
11755 finish_cmds=
11756 shlibpath_var=LD_LIBRARY_PATH
11757 shlibpath_overrides_runpath=yes
11758
11759 # This implies no fast_install, which is unacceptable.
11760 # Some rework will be needed to allow for fast_install
11761 # before this can be enabled.
11762 hardcode_into_libs=yes
11763
11764 dynamic_linker='Android linker'
11765 # Don't embed -rpath directories since the linker doesn't support them.
11766 hardcode_libdir_flag_spec='-L$libdir'
11767 ;;
11768
11769 # This must be glibc/ELF.
11770 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11771 version_type=linux # correct to gnu/linux during the next big refactor
11772 need_lib_prefix=no
11773 need_version=no
11774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11775 soname_spec='$libname$release$shared_ext$major'
11776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11777 shlibpath_var=LD_LIBRARY_PATH
11778 shlibpath_overrides_runpath=no
11779
11780 # Some binutils ld are patched to set DT_RUNPATH
11781 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11782 $as_echo_n "(cached) " >&6
11783 else
11784 lt_cv_shlibpath_overrides_runpath=no
11785 save_LDFLAGS=$LDFLAGS
11786 save_libdir=$libdir
11787 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11788 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11791
11792 int
11793 main ()
11794 {
11795
11796 ;
11797 return 0;
11798 }
11799 _ACEOF
11800 if ac_fn_c_try_link "$LINENO"; then :
11801 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11802 lt_cv_shlibpath_overrides_runpath=yes
11803 fi
11804 fi
11805 rm -f core conftest.err conftest.$ac_objext \
11806 conftest$ac_exeext conftest.$ac_ext
11807 LDFLAGS=$save_LDFLAGS
11808 libdir=$save_libdir
11809
11810 fi
11811
11812 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11813
11814 # This implies no fast_install, which is unacceptable.
11815 # Some rework will be needed to allow for fast_install
11816 # before this can be enabled.
11817 hardcode_into_libs=yes
11818
11819 # Add ABI-specific directories to the system library path.
11820 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11821
11822 # Ideally, we could use ldconfig to report *all* directores which are
11823 # searched for libraries, however this is still not possible. Aside from not
11824 # being certain /sbin/ldconfig is available, command
11825 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11826 # even though it is searched at run-time. Try to do the best guess by
11827 # appending ld.so.conf contents (and includes) to the search path.
11828 if test -f /etc/ld.so.conf; then
11829 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' ' '`
11830 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11831 fi
11832
11833 # We used to test for /lib/ld.so.1 and disable shared libraries on
11834 # powerpc, because MkLinux only supported shared libraries with the
11835 # GNU dynamic linker. Since this was broken with cross compilers,
11836 # most powerpc-linux boxes support dynamic linking these days and
11837 # people can always --disable-shared, the test was removed, and we
11838 # assume the GNU/Linux dynamic linker is in use.
11839 dynamic_linker='GNU/Linux ld.so'
11840 ;;
11841
11842 netbsd*)
11843 version_type=sunos
11844 need_lib_prefix=no
11845 need_version=no
11846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11847 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11849 dynamic_linker='NetBSD (a.out) ld.so'
11850 else
11851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11852 soname_spec='$libname$release$shared_ext$major'
11853 dynamic_linker='NetBSD ld.elf_so'
11854 fi
11855 shlibpath_var=LD_LIBRARY_PATH
11856 shlibpath_overrides_runpath=yes
11857 hardcode_into_libs=yes
11858 ;;
11859
11860 newsos6)
11861 version_type=linux # correct to gnu/linux during the next big refactor
11862 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11863 shlibpath_var=LD_LIBRARY_PATH
11864 shlibpath_overrides_runpath=yes
11865 ;;
11866
11867 *nto* | *qnx*)
11868 version_type=qnx
11869 need_lib_prefix=no
11870 need_version=no
11871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872 soname_spec='$libname$release$shared_ext$major'
11873 shlibpath_var=LD_LIBRARY_PATH
11874 shlibpath_overrides_runpath=no
11875 hardcode_into_libs=yes
11876 dynamic_linker='ldqnx.so'
11877 ;;
11878
11879 openbsd* | bitrig*)
11880 version_type=sunos
11881 sys_lib_dlsearch_path_spec=/usr/lib
11882 need_lib_prefix=no
11883 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11884 need_version=no
11885 else
11886 need_version=yes
11887 fi
11888 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11890 shlibpath_var=LD_LIBRARY_PATH
11891 shlibpath_overrides_runpath=yes
11892 ;;
11893
11894 os2*)
11895 libname_spec='$name'
11896 version_type=windows
11897 shrext_cmds=.dll
11898 need_version=no
11899 need_lib_prefix=no
11900 # OS/2 can only load a DLL with a base name of 8 characters or less.
11901 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11902 v=$($ECHO $release$versuffix | tr -d .-);
11903 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11904 $ECHO $n$v`$shared_ext'
11905 library_names_spec='${libname}_dll.$libext'
11906 dynamic_linker='OS/2 ld.exe'
11907 shlibpath_var=BEGINLIBPATH
11908 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11910 postinstall_cmds='base_file=`basename \$file`~
11911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11912 dldir=$destdir/`dirname \$dlpath`~
11913 test -d \$dldir || mkdir -p \$dldir~
11914 $install_prog $dir/$dlname \$dldir/$dlname~
11915 chmod a+x \$dldir/$dlname~
11916 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11917 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11918 fi'
11919 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11920 dlpath=$dir/\$dldll~
11921 $RM \$dlpath'
11922 ;;
11923
11924 osf3* | osf4* | osf5*)
11925 version_type=osf
11926 need_lib_prefix=no
11927 need_version=no
11928 soname_spec='$libname$release$shared_ext$major'
11929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11930 shlibpath_var=LD_LIBRARY_PATH
11931 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11933 ;;
11934
11935 rdos*)
11936 dynamic_linker=no
11937 ;;
11938
11939 solaris*)
11940 version_type=linux # correct to gnu/linux during the next big refactor
11941 need_lib_prefix=no
11942 need_version=no
11943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11944 soname_spec='$libname$release$shared_ext$major'
11945 shlibpath_var=LD_LIBRARY_PATH
11946 shlibpath_overrides_runpath=yes
11947 hardcode_into_libs=yes
11948 # ldd complains unless libraries are executable
11949 postinstall_cmds='chmod +x $lib'
11950 ;;
11951
11952 sunos4*)
11953 version_type=sunos
11954 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11955 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11956 shlibpath_var=LD_LIBRARY_PATH
11957 shlibpath_overrides_runpath=yes
11958 if test yes = "$with_gnu_ld"; then
11959 need_lib_prefix=no
11960 fi
11961 need_version=yes
11962 ;;
11963
11964 sysv4 | sysv4.3*)
11965 version_type=linux # correct to gnu/linux during the next big refactor
11966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11967 soname_spec='$libname$release$shared_ext$major'
11968 shlibpath_var=LD_LIBRARY_PATH
11969 case $host_vendor in
11970 sni)
11971 shlibpath_overrides_runpath=no
11972 need_lib_prefix=no
11973 runpath_var=LD_RUN_PATH
11974 ;;
11975 siemens)
11976 need_lib_prefix=no
11977 ;;
11978 motorola)
11979 need_lib_prefix=no
11980 need_version=no
11981 shlibpath_overrides_runpath=no
11982 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11983 ;;
11984 esac
11985 ;;
11986
11987 sysv4*MP*)
11988 if test -d /usr/nec; then
11989 version_type=linux # correct to gnu/linux during the next big refactor
11990 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11991 soname_spec='$libname$shared_ext.$major'
11992 shlibpath_var=LD_LIBRARY_PATH
11993 fi
11994 ;;
11995
11996 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11997 version_type=sco
11998 need_lib_prefix=no
11999 need_version=no
12000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12001 soname_spec='$libname$release$shared_ext$major'
12002 shlibpath_var=LD_LIBRARY_PATH
12003 shlibpath_overrides_runpath=yes
12004 hardcode_into_libs=yes
12005 if test yes = "$with_gnu_ld"; then
12006 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12007 else
12008 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12009 case $host_os in
12010 sco3.2v5*)
12011 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12012 ;;
12013 esac
12014 fi
12015 sys_lib_dlsearch_path_spec='/usr/lib'
12016 ;;
12017
12018 tpf*)
12019 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12020 version_type=linux # correct to gnu/linux during the next big refactor
12021 need_lib_prefix=no
12022 need_version=no
12023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12024 shlibpath_var=LD_LIBRARY_PATH
12025 shlibpath_overrides_runpath=no
12026 hardcode_into_libs=yes
12027 ;;
12028
12029 uts4*)
12030 version_type=linux # correct to gnu/linux during the next big refactor
12031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12032 soname_spec='$libname$release$shared_ext$major'
12033 shlibpath_var=LD_LIBRARY_PATH
12034 ;;
12035
12036 *)
12037 dynamic_linker=no
12038 ;;
12039 esac
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12041 $as_echo "$dynamic_linker" >&6; }
12042 test no = "$dynamic_linker" && can_build_shared=no
12043
12044 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12045 if test yes = "$GCC"; then
12046 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12047 fi
12048
12049 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12050 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12051 fi
12052
12053 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12054 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12055 fi
12056
12057 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12058 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12059
12060 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12061 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12062
12063 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12064 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12163 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12164 hardcode_action=
12165 if test -n "$hardcode_libdir_flag_spec" ||
12166 test -n "$runpath_var" ||
12167 test yes = "$hardcode_automatic"; then
12168
12169 # We can hardcode non-existent directories.
12170 if test no != "$hardcode_direct" &&
12171 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12172 # have to relink, otherwise we might link with an installed library
12173 # when we should be linking with a yet-to-be-installed one
12174 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12175 test no != "$hardcode_minus_L"; then
12176 # Linking always hardcodes the temporary library directory.
12177 hardcode_action=relink
12178 else
12179 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12180 hardcode_action=immediate
12181 fi
12182 else
12183 # We cannot hardcode anything, or else we can only hardcode existing
12184 # directories.
12185 hardcode_action=unsupported
12186 fi
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12188 $as_echo "$hardcode_action" >&6; }
12189
12190 if test relink = "$hardcode_action" ||
12191 test yes = "$inherit_rpath"; then
12192 # Fast installation is not supported
12193 enable_fast_install=no
12194 elif test yes = "$shlibpath_overrides_runpath" ||
12195 test no = "$enable_shared"; then
12196 # Fast installation is not necessary
12197 enable_fast_install=needless
12198 fi
12199
12200
12201
12202
12203
12204
12205 if test yes != "$enable_dlopen"; then
12206 enable_dlopen=unknown
12207 enable_dlopen_self=unknown
12208 enable_dlopen_self_static=unknown
12209 else
12210 lt_cv_dlopen=no
12211 lt_cv_dlopen_libs=
12212
12213 case $host_os in
12214 beos*)
12215 lt_cv_dlopen=load_add_on
12216 lt_cv_dlopen_libs=
12217 lt_cv_dlopen_self=yes
12218 ;;
12219
12220 mingw* | pw32* | cegcc*)
12221 lt_cv_dlopen=LoadLibrary
12222 lt_cv_dlopen_libs=
12223 ;;
12224
12225 cygwin*)
12226 lt_cv_dlopen=dlopen
12227 lt_cv_dlopen_libs=
12228 ;;
12229
12230 darwin*)
12231 # if libdl is installed we need to link against it
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12233 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12234 if ${ac_cv_lib_dl_dlopen+:} false; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 ac_check_lib_save_LIBS=$LIBS
12238 LIBS="-ldl $LIBS"
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241
12242 /* Override any GCC internal prototype to avoid an error.
12243 Use char because int might match the return type of a GCC
12244 builtin and then its argument prototype would still apply. */
12245 #ifdef __cplusplus
12246 extern "C"
12247 #endif
12248 char dlopen ();
12249 int
12250 main ()
12251 {
12252 return dlopen ();
12253 ;
12254 return 0;
12255 }
12256 _ACEOF
12257 if ac_fn_c_try_link "$LINENO"; then :
12258 ac_cv_lib_dl_dlopen=yes
12259 else
12260 ac_cv_lib_dl_dlopen=no
12261 fi
12262 rm -f core conftest.err conftest.$ac_objext \
12263 conftest$ac_exeext conftest.$ac_ext
12264 LIBS=$ac_check_lib_save_LIBS
12265 fi
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12267 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12268 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12269 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12270 else
12271
12272 lt_cv_dlopen=dyld
12273 lt_cv_dlopen_libs=
12274 lt_cv_dlopen_self=yes
12275
12276 fi
12277
12278 ;;
12279
12280 tpf*)
12281 # Don't try to run any link tests for TPF. We know it's impossible
12282 # because TPF is a cross-compiler, and we know how we open DSOs.
12283 lt_cv_dlopen=dlopen
12284 lt_cv_dlopen_libs=
12285 lt_cv_dlopen_self=no
12286 ;;
12287
12288 *)
12289 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12290 if test "x$ac_cv_func_shl_load" = xyes; then :
12291 lt_cv_dlopen=shl_load
12292 else
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12294 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12295 if ${ac_cv_lib_dld_shl_load+:} false; then :
12296 $as_echo_n "(cached) " >&6
12297 else
12298 ac_check_lib_save_LIBS=$LIBS
12299 LIBS="-ldld $LIBS"
12300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h. */
12302
12303 /* Override any GCC internal prototype to avoid an error.
12304 Use char because int might match the return type of a GCC
12305 builtin and then its argument prototype would still apply. */
12306 #ifdef __cplusplus
12307 extern "C"
12308 #endif
12309 char shl_load ();
12310 int
12311 main ()
12312 {
12313 return shl_load ();
12314 ;
12315 return 0;
12316 }
12317 _ACEOF
12318 if ac_fn_c_try_link "$LINENO"; then :
12319 ac_cv_lib_dld_shl_load=yes
12320 else
12321 ac_cv_lib_dld_shl_load=no
12322 fi
12323 rm -f core conftest.err conftest.$ac_objext \
12324 conftest$ac_exeext conftest.$ac_ext
12325 LIBS=$ac_check_lib_save_LIBS
12326 fi
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12328 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12329 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12330 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12331 else
12332 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12333 if test "x$ac_cv_func_dlopen" = xyes; then :
12334 lt_cv_dlopen=dlopen
12335 else
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12337 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12338 if ${ac_cv_lib_dl_dlopen+:} false; then :
12339 $as_echo_n "(cached) " >&6
12340 else
12341 ac_check_lib_save_LIBS=$LIBS
12342 LIBS="-ldl $LIBS"
12343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h. */
12345
12346 /* Override any GCC internal prototype to avoid an error.
12347 Use char because int might match the return type of a GCC
12348 builtin and then its argument prototype would still apply. */
12349 #ifdef __cplusplus
12350 extern "C"
12351 #endif
12352 char dlopen ();
12353 int
12354 main ()
12355 {
12356 return dlopen ();
12357 ;
12358 return 0;
12359 }
12360 _ACEOF
12361 if ac_fn_c_try_link "$LINENO"; then :
12362 ac_cv_lib_dl_dlopen=yes
12363 else
12364 ac_cv_lib_dl_dlopen=no
12365 fi
12366 rm -f core conftest.err conftest.$ac_objext \
12367 conftest$ac_exeext conftest.$ac_ext
12368 LIBS=$ac_check_lib_save_LIBS
12369 fi
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12371 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12372 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12373 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12374 else
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12376 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12377 if ${ac_cv_lib_svld_dlopen+:} false; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12380 ac_check_lib_save_LIBS=$LIBS
12381 LIBS="-lsvld $LIBS"
12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h. */
12384
12385 /* Override any GCC internal prototype to avoid an error.
12386 Use char because int might match the return type of a GCC
12387 builtin and then its argument prototype would still apply. */
12388 #ifdef __cplusplus
12389 extern "C"
12390 #endif
12391 char dlopen ();
12392 int
12393 main ()
12394 {
12395 return dlopen ();
12396 ;
12397 return 0;
12398 }
12399 _ACEOF
12400 if ac_fn_c_try_link "$LINENO"; then :
12401 ac_cv_lib_svld_dlopen=yes
12402 else
12403 ac_cv_lib_svld_dlopen=no
12404 fi
12405 rm -f core conftest.err conftest.$ac_objext \
12406 conftest$ac_exeext conftest.$ac_ext
12407 LIBS=$ac_check_lib_save_LIBS
12408 fi
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12410 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12411 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12412 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12413 else
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12415 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12416 if ${ac_cv_lib_dld_dld_link+:} false; then :
12417 $as_echo_n "(cached) " >&6
12418 else
12419 ac_check_lib_save_LIBS=$LIBS
12420 LIBS="-ldld $LIBS"
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12423
12424 /* Override any GCC internal prototype to avoid an error.
12425 Use char because int might match the return type of a GCC
12426 builtin and then its argument prototype would still apply. */
12427 #ifdef __cplusplus
12428 extern "C"
12429 #endif
12430 char dld_link ();
12431 int
12432 main ()
12433 {
12434 return dld_link ();
12435 ;
12436 return 0;
12437 }
12438 _ACEOF
12439 if ac_fn_c_try_link "$LINENO"; then :
12440 ac_cv_lib_dld_dld_link=yes
12441 else
12442 ac_cv_lib_dld_dld_link=no
12443 fi
12444 rm -f core conftest.err conftest.$ac_objext \
12445 conftest$ac_exeext conftest.$ac_ext
12446 LIBS=$ac_check_lib_save_LIBS
12447 fi
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12449 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12450 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12451 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12452 fi
12453
12454
12455 fi
12456
12457
12458 fi
12459
12460
12461 fi
12462
12463
12464 fi
12465
12466
12467 fi
12468
12469 ;;
12470 esac
12471
12472 if test no = "$lt_cv_dlopen"; then
12473 enable_dlopen=no
12474 else
12475 enable_dlopen=yes
12476 fi
12477
12478 case $lt_cv_dlopen in
12479 dlopen)
12480 save_CPPFLAGS=$CPPFLAGS
12481 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12482
12483 save_LDFLAGS=$LDFLAGS
12484 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12485
12486 save_LIBS=$LIBS
12487 LIBS="$lt_cv_dlopen_libs $LIBS"
12488
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12490 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12491 if ${lt_cv_dlopen_self+:} false; then :
12492 $as_echo_n "(cached) " >&6
12493 else
12494 if test yes = "$cross_compiling"; then :
12495 lt_cv_dlopen_self=cross
12496 else
12497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12498 lt_status=$lt_dlunknown
12499 cat > conftest.$ac_ext <<_LT_EOF
12500 #line $LINENO "configure"
12501 #include "confdefs.h"
12502
12503 #if HAVE_DLFCN_H
12504 #include <dlfcn.h>
12505 #endif
12506
12507 #include <stdio.h>
12508
12509 #ifdef RTLD_GLOBAL
12510 # define LT_DLGLOBAL RTLD_GLOBAL
12511 #else
12512 # ifdef DL_GLOBAL
12513 # define LT_DLGLOBAL DL_GLOBAL
12514 # else
12515 # define LT_DLGLOBAL 0
12516 # endif
12517 #endif
12518
12519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12520 find out it does not work in some platform. */
12521 #ifndef LT_DLLAZY_OR_NOW
12522 # ifdef RTLD_LAZY
12523 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12524 # else
12525 # ifdef DL_LAZY
12526 # define LT_DLLAZY_OR_NOW DL_LAZY
12527 # else
12528 # ifdef RTLD_NOW
12529 # define LT_DLLAZY_OR_NOW RTLD_NOW
12530 # else
12531 # ifdef DL_NOW
12532 # define LT_DLLAZY_OR_NOW DL_NOW
12533 # else
12534 # define LT_DLLAZY_OR_NOW 0
12535 # endif
12536 # endif
12537 # endif
12538 # endif
12539 #endif
12540
12541 /* When -fvisibility=hidden is used, assume the code has been annotated
12542 correspondingly for the symbols needed. */
12543 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12544 int fnord () __attribute__((visibility("default")));
12545 #endif
12546
12547 int fnord () { return 42; }
12548 int main ()
12549 {
12550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12551 int status = $lt_dlunknown;
12552
12553 if (self)
12554 {
12555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12556 else
12557 {
12558 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12559 else puts (dlerror ());
12560 }
12561 /* dlclose (self); */
12562 }
12563 else
12564 puts (dlerror ());
12565
12566 return status;
12567 }
12568 _LT_EOF
12569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12570 (eval $ac_link) 2>&5
12571 ac_status=$?
12572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12573 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12574 (./conftest; exit; ) >&5 2>/dev/null
12575 lt_status=$?
12576 case x$lt_status in
12577 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12578 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12579 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12580 esac
12581 else :
12582 # compilation failed
12583 lt_cv_dlopen_self=no
12584 fi
12585 fi
12586 rm -fr conftest*
12587
12588
12589 fi
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12591 $as_echo "$lt_cv_dlopen_self" >&6; }
12592
12593 if test yes = "$lt_cv_dlopen_self"; then
12594 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12596 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12597 if ${lt_cv_dlopen_self_static+:} false; then :
12598 $as_echo_n "(cached) " >&6
12599 else
12600 if test yes = "$cross_compiling"; then :
12601 lt_cv_dlopen_self_static=cross
12602 else
12603 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12604 lt_status=$lt_dlunknown
12605 cat > conftest.$ac_ext <<_LT_EOF
12606 #line $LINENO "configure"
12607 #include "confdefs.h"
12608
12609 #if HAVE_DLFCN_H
12610 #include <dlfcn.h>
12611 #endif
12612
12613 #include <stdio.h>
12614
12615 #ifdef RTLD_GLOBAL
12616 # define LT_DLGLOBAL RTLD_GLOBAL
12617 #else
12618 # ifdef DL_GLOBAL
12619 # define LT_DLGLOBAL DL_GLOBAL
12620 # else
12621 # define LT_DLGLOBAL 0
12622 # endif
12623 #endif
12624
12625 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12626 find out it does not work in some platform. */
12627 #ifndef LT_DLLAZY_OR_NOW
12628 # ifdef RTLD_LAZY
12629 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12630 # else
12631 # ifdef DL_LAZY
12632 # define LT_DLLAZY_OR_NOW DL_LAZY
12633 # else
12634 # ifdef RTLD_NOW
12635 # define LT_DLLAZY_OR_NOW RTLD_NOW
12636 # else
12637 # ifdef DL_NOW
12638 # define LT_DLLAZY_OR_NOW DL_NOW
12639 # else
12640 # define LT_DLLAZY_OR_NOW 0
12641 # endif
12642 # endif
12643 # endif
12644 # endif
12645 #endif
12646
12647 /* When -fvisibility=hidden is used, assume the code has been annotated
12648 correspondingly for the symbols needed. */
12649 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12650 int fnord () __attribute__((visibility("default")));
12651 #endif
12652
12653 int fnord () { return 42; }
12654 int main ()
12655 {
12656 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12657 int status = $lt_dlunknown;
12658
12659 if (self)
12660 {
12661 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12662 else
12663 {
12664 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12665 else puts (dlerror ());
12666 }
12667 /* dlclose (self); */
12668 }
12669 else
12670 puts (dlerror ());
12671
12672 return status;
12673 }
12674 _LT_EOF
12675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12676 (eval $ac_link) 2>&5
12677 ac_status=$?
12678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12679 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12680 (./conftest; exit; ) >&5 2>/dev/null
12681 lt_status=$?
12682 case x$lt_status in
12683 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12684 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12685 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12686 esac
12687 else :
12688 # compilation failed
12689 lt_cv_dlopen_self_static=no
12690 fi
12691 fi
12692 rm -fr conftest*
12693
12694
12695 fi
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12697 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12698 fi
12699
12700 CPPFLAGS=$save_CPPFLAGS
12701 LDFLAGS=$save_LDFLAGS
12702 LIBS=$save_LIBS
12703 ;;
12704 esac
12705
12706 case $lt_cv_dlopen_self in
12707 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12708 *) enable_dlopen_self=unknown ;;
12709 esac
12710
12711 case $lt_cv_dlopen_self_static in
12712 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12713 *) enable_dlopen_self_static=unknown ;;
12714 esac
12715 fi
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733 striplib=
12734 old_striplib=
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12736 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12737 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12738 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12739 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12741 $as_echo "yes" >&6; }
12742 else
12743 # FIXME - insert some real tests, host_os isn't really good enough
12744 case $host_os in
12745 darwin*)
12746 if test -n "$STRIP"; then
12747 striplib="$STRIP -x"
12748 old_striplib="$STRIP -S"
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12750 $as_echo "yes" >&6; }
12751 else
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12754 fi
12755 ;;
12756 *)
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758 $as_echo "no" >&6; }
12759 ;;
12760 esac
12761 fi
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774 # Report what library types will actually be built
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12776 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12778 $as_echo "$can_build_shared" >&6; }
12779
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12781 $as_echo_n "checking whether to build shared libraries... " >&6; }
12782 test no = "$can_build_shared" && enable_shared=no
12783
12784 # On AIX, shared libraries and static libraries use the same namespace, and
12785 # are all built from PIC.
12786 case $host_os in
12787 aix3*)
12788 test yes = "$enable_shared" && enable_static=no
12789 if test -n "$RANLIB"; then
12790 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12791 postinstall_cmds='$RANLIB $lib'
12792 fi
12793 ;;
12794
12795 aix[4-9]*)
12796 if test ia64 != "$host_cpu"; then
12797 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12798 yes,aix,yes) ;; # shared object as lib.so file only
12799 yes,svr4,*) ;; # shared object as lib.so archive member only
12800 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12801 esac
12802 fi
12803 ;;
12804 esac
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12806 $as_echo "$enable_shared" >&6; }
12807
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12809 $as_echo_n "checking whether to build static libraries... " >&6; }
12810 # Make sure either enable_shared or enable_static is yes.
12811 test yes = "$enable_shared" || enable_static=yes
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12813 $as_echo "$enable_static" >&6; }
12814
12815
12816
12817
12818 fi
12819 ac_ext=c
12820 ac_cpp='$CPP $CPPFLAGS'
12821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12824
12825 CC=$lt_save_CC
12826
12827 if test -n "$CXX" && ( test no != "$CXX" &&
12828 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12829 (test g++ != "$CXX"))); then
12830 ac_ext=cpp
12831 ac_cpp='$CXXCPP $CPPFLAGS'
12832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12836 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12837 if test -z "$CXXCPP"; then
12838 if ${ac_cv_prog_CXXCPP+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 # Double quotes because CXXCPP needs to be expanded
12842 for CXXCPP in "$CXX -E" "/lib/cpp"
12843 do
12844 ac_preproc_ok=false
12845 for ac_cxx_preproc_warn_flag in '' yes
12846 do
12847 # Use a header file that comes with gcc, so configuring glibc
12848 # with a fresh cross-compiler works.
12849 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12850 # <limits.h> exists even on freestanding compilers.
12851 # On the NeXT, cc -E runs the code through the compiler's parser,
12852 # not just through cpp. "Syntax error" is here to catch this case.
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12855 #ifdef __STDC__
12856 # include <limits.h>
12857 #else
12858 # include <assert.h>
12859 #endif
12860 Syntax error
12861 _ACEOF
12862 if ac_fn_cxx_try_cpp "$LINENO"; then :
12863
12864 else
12865 # Broken: fails on valid input.
12866 continue
12867 fi
12868 rm -f conftest.err conftest.i conftest.$ac_ext
12869
12870 # OK, works on sane cases. Now check whether nonexistent headers
12871 # can be detected and how.
12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12874 #include <ac_nonexistent.h>
12875 _ACEOF
12876 if ac_fn_cxx_try_cpp "$LINENO"; then :
12877 # Broken: success on invalid input.
12878 continue
12879 else
12880 # Passes both tests.
12881 ac_preproc_ok=:
12882 break
12883 fi
12884 rm -f conftest.err conftest.i conftest.$ac_ext
12885
12886 done
12887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12888 rm -f conftest.i conftest.err conftest.$ac_ext
12889 if $ac_preproc_ok; then :
12890 break
12891 fi
12892
12893 done
12894 ac_cv_prog_CXXCPP=$CXXCPP
12895
12896 fi
12897 CXXCPP=$ac_cv_prog_CXXCPP
12898 else
12899 ac_cv_prog_CXXCPP=$CXXCPP
12900 fi
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12902 $as_echo "$CXXCPP" >&6; }
12903 ac_preproc_ok=false
12904 for ac_cxx_preproc_warn_flag in '' yes
12905 do
12906 # Use a header file that comes with gcc, so configuring glibc
12907 # with a fresh cross-compiler works.
12908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12909 # <limits.h> exists even on freestanding compilers.
12910 # On the NeXT, cc -E runs the code through the compiler's parser,
12911 # not just through cpp. "Syntax error" is here to catch this case.
12912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12913 /* end confdefs.h. */
12914 #ifdef __STDC__
12915 # include <limits.h>
12916 #else
12917 # include <assert.h>
12918 #endif
12919 Syntax error
12920 _ACEOF
12921 if ac_fn_cxx_try_cpp "$LINENO"; then :
12922
12923 else
12924 # Broken: fails on valid input.
12925 continue
12926 fi
12927 rm -f conftest.err conftest.i conftest.$ac_ext
12928
12929 # OK, works on sane cases. Now check whether nonexistent headers
12930 # can be detected and how.
12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12933 #include <ac_nonexistent.h>
12934 _ACEOF
12935 if ac_fn_cxx_try_cpp "$LINENO"; then :
12936 # Broken: success on invalid input.
12937 continue
12938 else
12939 # Passes both tests.
12940 ac_preproc_ok=:
12941 break
12942 fi
12943 rm -f conftest.err conftest.i conftest.$ac_ext
12944
12945 done
12946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12947 rm -f conftest.i conftest.err conftest.$ac_ext
12948 if $ac_preproc_ok; then :
12949
12950 else
12951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12953 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12954 See \`config.log' for more details" "$LINENO" 5; }
12955 fi
12956
12957 ac_ext=c
12958 ac_cpp='$CPP $CPPFLAGS'
12959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12962
12963 else
12964 _lt_caught_CXX_error=yes
12965 fi
12966
12967 ac_ext=cpp
12968 ac_cpp='$CXXCPP $CPPFLAGS'
12969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12972
12973 archive_cmds_need_lc_CXX=no
12974 allow_undefined_flag_CXX=
12975 always_export_symbols_CXX=no
12976 archive_expsym_cmds_CXX=
12977 compiler_needs_object_CXX=no
12978 export_dynamic_flag_spec_CXX=
12979 hardcode_direct_CXX=no
12980 hardcode_direct_absolute_CXX=no
12981 hardcode_libdir_flag_spec_CXX=
12982 hardcode_libdir_separator_CXX=
12983 hardcode_minus_L_CXX=no
12984 hardcode_shlibpath_var_CXX=unsupported
12985 hardcode_automatic_CXX=no
12986 inherit_rpath_CXX=no
12987 module_cmds_CXX=
12988 module_expsym_cmds_CXX=
12989 link_all_deplibs_CXX=unknown
12990 old_archive_cmds_CXX=$old_archive_cmds
12991 reload_flag_CXX=$reload_flag
12992 reload_cmds_CXX=$reload_cmds
12993 no_undefined_flag_CXX=
12994 whole_archive_flag_spec_CXX=
12995 enable_shared_with_static_runtimes_CXX=no
12996
12997 # Source file extension for C++ test sources.
12998 ac_ext=cpp
12999
13000 # Object file extension for compiled C++ test sources.
13001 objext=o
13002 objext_CXX=$objext
13003
13004 # No sense in running all these tests if we already determined that
13005 # the CXX compiler isn't working. Some variables (like enable_shared)
13006 # are currently assumed to apply to all compilers on this platform,
13007 # and will be corrupted by setting them based on a non-working compiler.
13008 if test yes != "$_lt_caught_CXX_error"; then
13009 # Code to be used in simple compile tests
13010 lt_simple_compile_test_code="int some_variable = 0;"
13011
13012 # Code to be used in simple link tests
13013 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13014
13015 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13016
13017
13018
13019
13020
13021
13022 # If no C compiler was specified, use CC.
13023 LTCC=${LTCC-"$CC"}
13024
13025 # If no C compiler flags were specified, use CFLAGS.
13026 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13027
13028 # Allow CC to be a program name with arguments.
13029 compiler=$CC
13030
13031
13032 # save warnings/boilerplate of simple test code
13033 ac_outfile=conftest.$ac_objext
13034 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13035 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13036 _lt_compiler_boilerplate=`cat conftest.err`
13037 $RM conftest*
13038
13039 ac_outfile=conftest.$ac_objext
13040 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13041 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13042 _lt_linker_boilerplate=`cat conftest.err`
13043 $RM -r conftest*
13044
13045
13046 # Allow CC to be a program name with arguments.
13047 lt_save_CC=$CC
13048 lt_save_CFLAGS=$CFLAGS
13049 lt_save_LD=$LD
13050 lt_save_GCC=$GCC
13051 GCC=$GXX
13052 lt_save_with_gnu_ld=$with_gnu_ld
13053 lt_save_path_LD=$lt_cv_path_LD
13054 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13055 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13056 else
13057 $as_unset lt_cv_prog_gnu_ld
13058 fi
13059 if test -n "${lt_cv_path_LDCXX+set}"; then
13060 lt_cv_path_LD=$lt_cv_path_LDCXX
13061 else
13062 $as_unset lt_cv_path_LD
13063 fi
13064 test -z "${LDCXX+set}" || LD=$LDCXX
13065 CC=${CXX-"c++"}
13066 CFLAGS=$CXXFLAGS
13067 compiler=$CC
13068 compiler_CXX=$CC
13069 func_cc_basename $compiler
13070 cc_basename=$func_cc_basename_result
13071
13072
13073 if test -n "$compiler"; then
13074 # We don't want -fno-exception when compiling C++ code, so set the
13075 # no_builtin_flag separately
13076 if test yes = "$GXX"; then
13077 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13078 else
13079 lt_prog_compiler_no_builtin_flag_CXX=
13080 fi
13081
13082 if test yes = "$GXX"; then
13083 # Set up default GNU C++ configuration
13084
13085
13086
13087 # Check whether --with-gnu-ld was given.
13088 if test "${with_gnu_ld+set}" = set; then :
13089 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13090 else
13091 with_gnu_ld=no
13092 fi
13093
13094 ac_prog=ld
13095 if test yes = "$GCC"; then
13096 # Check if gcc -print-prog-name=ld gives a path.
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13098 $as_echo_n "checking for ld used by $CC... " >&6; }
13099 case $host in
13100 *-*-mingw*)
13101 # gcc leaves a trailing carriage return, which upsets mingw
13102 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13103 *)
13104 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13105 esac
13106 case $ac_prog in
13107 # Accept absolute paths.
13108 [\\/]* | ?:[\\/]*)
13109 re_direlt='/[^/][^/]*/\.\./'
13110 # Canonicalize the pathname of ld
13111 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13112 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13113 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13114 done
13115 test -z "$LD" && LD=$ac_prog
13116 ;;
13117 "")
13118 # If it fails, then pretend we aren't using GCC.
13119 ac_prog=ld
13120 ;;
13121 *)
13122 # If it is relative, then search for the first ld in PATH.
13123 with_gnu_ld=unknown
13124 ;;
13125 esac
13126 elif test yes = "$with_gnu_ld"; then
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13128 $as_echo_n "checking for GNU ld... " >&6; }
13129 else
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13131 $as_echo_n "checking for non-GNU ld... " >&6; }
13132 fi
13133 if ${lt_cv_path_LD+:} false; then :
13134 $as_echo_n "(cached) " >&6
13135 else
13136 if test -z "$LD"; then
13137 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13138 for ac_dir in $PATH; do
13139 IFS=$lt_save_ifs
13140 test -z "$ac_dir" && ac_dir=.
13141 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13142 lt_cv_path_LD=$ac_dir/$ac_prog
13143 # Check to see if the program is GNU ld. I'd rather use --version,
13144 # but apparently some variants of GNU ld only accept -v.
13145 # Break only if it was the GNU/non-GNU ld that we prefer.
13146 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13147 *GNU* | *'with BFD'*)
13148 test no != "$with_gnu_ld" && break
13149 ;;
13150 *)
13151 test yes != "$with_gnu_ld" && break
13152 ;;
13153 esac
13154 fi
13155 done
13156 IFS=$lt_save_ifs
13157 else
13158 lt_cv_path_LD=$LD # Let the user override the test with a path.
13159 fi
13160 fi
13161
13162 LD=$lt_cv_path_LD
13163 if test -n "$LD"; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13165 $as_echo "$LD" >&6; }
13166 else
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13169 fi
13170 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13172 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13173 if ${lt_cv_prog_gnu_ld+:} false; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13177 case `$LD -v 2>&1 </dev/null` in
13178 *GNU* | *'with BFD'*)
13179 lt_cv_prog_gnu_ld=yes
13180 ;;
13181 *)
13182 lt_cv_prog_gnu_ld=no
13183 ;;
13184 esac
13185 fi
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13187 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13188 with_gnu_ld=$lt_cv_prog_gnu_ld
13189
13190
13191
13192
13193
13194
13195
13196 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13197 # archiving commands below assume that GNU ld is being used.
13198 if test yes = "$with_gnu_ld"; then
13199 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13200 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13201
13202 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13203 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13204
13205 # If archive_cmds runs LD, not CC, wlarc should be empty
13206 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13207 # investigate it a little bit more. (MM)
13208 wlarc='$wl'
13209
13210 # ancient GNU ld didn't support --whole-archive et. al.
13211 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13212 $GREP 'no-whole-archive' > /dev/null; then
13213 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13214 else
13215 whole_archive_flag_spec_CXX=
13216 fi
13217 else
13218 with_gnu_ld=no
13219 wlarc=
13220
13221 # A generic and very simple default shared library creation
13222 # command for GNU C++ for the case where it uses the native
13223 # linker, instead of GNU ld. If possible, this setting should
13224 # overridden to take advantage of the native linker features on
13225 # the platform it is being used on.
13226 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13227 fi
13228
13229 # Commands to make compiler produce verbose output that lists
13230 # what "hidden" libraries, object files and flags are used when
13231 # linking a shared library.
13232 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13233
13234 else
13235 GXX=no
13236 with_gnu_ld=no
13237 wlarc=
13238 fi
13239
13240 # PORTME: fill in a description of your system's C++ link characteristics
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13242 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13243 ld_shlibs_CXX=yes
13244 case $host_os in
13245 aix3*)
13246 # FIXME: insert proper C++ library support
13247 ld_shlibs_CXX=no
13248 ;;
13249 aix[4-9]*)
13250 if test ia64 = "$host_cpu"; then
13251 # On IA64, the linker does run time linking by default, so we don't
13252 # have to do anything special.
13253 aix_use_runtimelinking=no
13254 exp_sym_flag='-Bexport'
13255 no_entry_flag=
13256 else
13257 aix_use_runtimelinking=no
13258
13259 # Test if we are trying to use run time linking or normal
13260 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13261 # have runtime linking enabled, and use it for executables.
13262 # For shared libraries, we enable/disable runtime linking
13263 # depending on the kind of the shared library created -
13264 # when "with_aix_soname,aix_use_runtimelinking" is:
13265 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13266 # "aix,yes" lib.so shared, rtl:yes, for executables
13267 # lib.a static archive
13268 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13269 # lib.a(lib.so.V) shared, rtl:no, for executables
13270 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13271 # lib.a(lib.so.V) shared, rtl:no
13272 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13273 # lib.a static archive
13274 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13275 for ld_flag in $LDFLAGS; do
13276 case $ld_flag in
13277 *-brtl*)
13278 aix_use_runtimelinking=yes
13279 break
13280 ;;
13281 esac
13282 done
13283 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13284 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13285 # so we don't have lib.a shared libs to link our executables.
13286 # We have to force runtime linking in this case.
13287 aix_use_runtimelinking=yes
13288 LDFLAGS="$LDFLAGS -Wl,-brtl"
13289 fi
13290 ;;
13291 esac
13292
13293 exp_sym_flag='-bexport'
13294 no_entry_flag='-bnoentry'
13295 fi
13296
13297 # When large executables or shared objects are built, AIX ld can
13298 # have problems creating the table of contents. If linking a library
13299 # or program results in "error TOC overflow" add -mminimal-toc to
13300 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13301 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13302
13303 archive_cmds_CXX=''
13304 hardcode_direct_CXX=yes
13305 hardcode_direct_absolute_CXX=yes
13306 hardcode_libdir_separator_CXX=':'
13307 link_all_deplibs_CXX=yes
13308 file_list_spec_CXX='$wl-f,'
13309 case $with_aix_soname,$aix_use_runtimelinking in
13310 aix,*) ;; # no import file
13311 svr4,* | *,yes) # use import file
13312 # The Import File defines what to hardcode.
13313 hardcode_direct_CXX=no
13314 hardcode_direct_absolute_CXX=no
13315 ;;
13316 esac
13317
13318 if test yes = "$GXX"; then
13319 case $host_os in aix4.[012]|aix4.[012].*)
13320 # We only want to do this on AIX 4.2 and lower, the check
13321 # below for broken collect2 doesn't work under 4.3+
13322 collect2name=`$CC -print-prog-name=collect2`
13323 if test -f "$collect2name" &&
13324 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13325 then
13326 # We have reworked collect2
13327 :
13328 else
13329 # We have old collect2
13330 hardcode_direct_CXX=unsupported
13331 # It fails to find uninstalled libraries when the uninstalled
13332 # path is not listed in the libpath. Setting hardcode_minus_L
13333 # to unsupported forces relinking
13334 hardcode_minus_L_CXX=yes
13335 hardcode_libdir_flag_spec_CXX='-L$libdir'
13336 hardcode_libdir_separator_CXX=
13337 fi
13338 esac
13339 shared_flag='-shared'
13340 if test yes = "$aix_use_runtimelinking"; then
13341 shared_flag=$shared_flag' $wl-G'
13342 fi
13343 # Need to ensure runtime linking is disabled for the traditional
13344 # shared library, or the linker may eventually find shared libraries
13345 # /with/ Import File - we do not want to mix them.
13346 shared_flag_aix='-shared'
13347 shared_flag_svr4='-shared $wl-G'
13348 else
13349 # not using gcc
13350 if test ia64 = "$host_cpu"; then
13351 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13352 # chokes on -Wl,-G. The following line is correct:
13353 shared_flag='-G'
13354 else
13355 if test yes = "$aix_use_runtimelinking"; then
13356 shared_flag='$wl-G'
13357 else
13358 shared_flag='$wl-bM:SRE'
13359 fi
13360 shared_flag_aix='$wl-bM:SRE'
13361 shared_flag_svr4='$wl-G'
13362 fi
13363 fi
13364
13365 export_dynamic_flag_spec_CXX='$wl-bexpall'
13366 # It seems that -bexpall does not export symbols beginning with
13367 # underscore (_), so it is better to generate a list of symbols to
13368 # export.
13369 always_export_symbols_CXX=yes
13370 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13371 # Warning - without using the other runtime loading flags (-brtl),
13372 # -berok will link without error, but may produce a broken library.
13373 # The "-G" linker flag allows undefined symbols.
13374 no_undefined_flag_CXX='-bernotok'
13375 # Determine the default libpath from the value encoded in an empty
13376 # executable.
13377 if test set = "${lt_cv_aix_libpath+set}"; then
13378 aix_libpath=$lt_cv_aix_libpath
13379 else
13380 if ${lt_cv_aix_libpath__CXX+:} false; then :
13381 $as_echo_n "(cached) " >&6
13382 else
13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13385
13386 int
13387 main ()
13388 {
13389
13390 ;
13391 return 0;
13392 }
13393 _ACEOF
13394 if ac_fn_cxx_try_link "$LINENO"; then :
13395
13396 lt_aix_libpath_sed='
13397 /Import File Strings/,/^$/ {
13398 /^0/ {
13399 s/^0 *\([^ ]*\) *$/\1/
13400 p
13401 }
13402 }'
13403 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13404 # Check for a 64-bit object if we didn't find anything.
13405 if test -z "$lt_cv_aix_libpath__CXX"; then
13406 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13407 fi
13408 fi
13409 rm -f core conftest.err conftest.$ac_objext \
13410 conftest$ac_exeext conftest.$ac_ext
13411 if test -z "$lt_cv_aix_libpath__CXX"; then
13412 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13413 fi
13414
13415 fi
13416
13417 aix_libpath=$lt_cv_aix_libpath__CXX
13418 fi
13419
13420 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13421
13422 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13423 else
13424 if test ia64 = "$host_cpu"; then
13425 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13426 allow_undefined_flag_CXX="-z nodefs"
13427 archive_expsym_cmds_CXX="\$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"
13428 else
13429 # Determine the default libpath from the value encoded in an
13430 # empty executable.
13431 if test set = "${lt_cv_aix_libpath+set}"; then
13432 aix_libpath=$lt_cv_aix_libpath
13433 else
13434 if ${lt_cv_aix_libpath__CXX+:} false; then :
13435 $as_echo_n "(cached) " >&6
13436 else
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13439
13440 int
13441 main ()
13442 {
13443
13444 ;
13445 return 0;
13446 }
13447 _ACEOF
13448 if ac_fn_cxx_try_link "$LINENO"; then :
13449
13450 lt_aix_libpath_sed='
13451 /Import File Strings/,/^$/ {
13452 /^0/ {
13453 s/^0 *\([^ ]*\) *$/\1/
13454 p
13455 }
13456 }'
13457 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13458 # Check for a 64-bit object if we didn't find anything.
13459 if test -z "$lt_cv_aix_libpath__CXX"; then
13460 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13461 fi
13462 fi
13463 rm -f core conftest.err conftest.$ac_objext \
13464 conftest$ac_exeext conftest.$ac_ext
13465 if test -z "$lt_cv_aix_libpath__CXX"; then
13466 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13467 fi
13468
13469 fi
13470
13471 aix_libpath=$lt_cv_aix_libpath__CXX
13472 fi
13473
13474 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13475 # Warning - without using the other run time loading flags,
13476 # -berok will link without error, but may produce a broken library.
13477 no_undefined_flag_CXX=' $wl-bernotok'
13478 allow_undefined_flag_CXX=' $wl-berok'
13479 if test yes = "$with_gnu_ld"; then
13480 # We only use this code for GNU lds that support --whole-archive.
13481 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13482 else
13483 # Exported symbols can be pulled into shared objects from archives
13484 whole_archive_flag_spec_CXX='$convenience'
13485 fi
13486 archive_cmds_need_lc_CXX=yes
13487 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13488 # -brtl affects multiple linker settings, -berok does not and is overridden later
13489 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13490 if test svr4 != "$with_aix_soname"; then
13491 # This is similar to how AIX traditionally builds its shared
13492 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13493 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13494 fi
13495 if test aix != "$with_aix_soname"; then
13496 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13497 else
13498 # used by -dlpreopen to get the symbols
13499 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13500 fi
13501 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13502 fi
13503 fi
13504 ;;
13505
13506 beos*)
13507 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13508 allow_undefined_flag_CXX=unsupported
13509 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13510 # support --undefined. This deserves some investigation. FIXME
13511 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13512 else
13513 ld_shlibs_CXX=no
13514 fi
13515 ;;
13516
13517 chorus*)
13518 case $cc_basename in
13519 *)
13520 # FIXME: insert proper C++ library support
13521 ld_shlibs_CXX=no
13522 ;;
13523 esac
13524 ;;
13525
13526 cygwin* | mingw* | pw32* | cegcc*)
13527 case $GXX,$cc_basename in
13528 ,cl* | no,cl*)
13529 # Native MSVC
13530 # hardcode_libdir_flag_spec is actually meaningless, as there is
13531 # no search path for DLLs.
13532 hardcode_libdir_flag_spec_CXX=' '
13533 allow_undefined_flag_CXX=unsupported
13534 always_export_symbols_CXX=yes
13535 file_list_spec_CXX='@'
13536 # Tell ltmain to make .lib files, not .a files.
13537 libext=lib
13538 # Tell ltmain to make .dll files, not .so files.
13539 shrext_cmds=.dll
13540 # FIXME: Setting linknames here is a bad hack.
13541 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13542 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13543 cp "$export_symbols" "$output_objdir/$soname.def";
13544 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13545 else
13546 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13547 fi~
13548 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13549 linknames='
13550 # The linker will not automatically build a static lib if we build a DLL.
13551 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13552 enable_shared_with_static_runtimes_CXX=yes
13553 # Don't use ranlib
13554 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13555 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13556 lt_tool_outputfile="@TOOL_OUTPUT@"~
13557 case $lt_outputfile in
13558 *.exe|*.EXE) ;;
13559 *)
13560 lt_outputfile=$lt_outputfile.exe
13561 lt_tool_outputfile=$lt_tool_outputfile.exe
13562 ;;
13563 esac~
13564 func_to_tool_file "$lt_outputfile"~
13565 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13566 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13567 $RM "$lt_outputfile.manifest";
13568 fi'
13569 ;;
13570 *)
13571 # g++
13572 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13573 # as there is no search path for DLLs.
13574 hardcode_libdir_flag_spec_CXX='-L$libdir'
13575 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13576 allow_undefined_flag_CXX=unsupported
13577 always_export_symbols_CXX=no
13578 enable_shared_with_static_runtimes_CXX=yes
13579
13580 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13581 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13582 # If the export-symbols file already is a .def file, use it as
13583 # is; otherwise, prepend EXPORTS...
13584 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13585 cp $export_symbols $output_objdir/$soname.def;
13586 else
13587 echo EXPORTS > $output_objdir/$soname.def;
13588 cat $export_symbols >> $output_objdir/$soname.def;
13589 fi~
13590 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13591 else
13592 ld_shlibs_CXX=no
13593 fi
13594 ;;
13595 esac
13596 ;;
13597 darwin* | rhapsody*)
13598
13599
13600 archive_cmds_need_lc_CXX=no
13601 hardcode_direct_CXX=no
13602 hardcode_automatic_CXX=yes
13603 hardcode_shlibpath_var_CXX=unsupported
13604 if test yes = "$lt_cv_ld_force_load"; then
13605 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13606
13607 else
13608 whole_archive_flag_spec_CXX=''
13609 fi
13610 link_all_deplibs_CXX=yes
13611 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13612 case $cc_basename in
13613 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13614 *) _lt_dar_can_shared=$GCC ;;
13615 esac
13616 if test yes = "$_lt_dar_can_shared"; then
13617 output_verbose_link_cmd=func_echo_all
13618 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13619 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13620 archive_expsym_cmds_CXX="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"
13621 module_expsym_cmds_CXX="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"
13622 if test yes != "$lt_cv_apple_cc_single_mod"; then
13623 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
13624 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
13625 fi
13626
13627 else
13628 ld_shlibs_CXX=no
13629 fi
13630
13631 ;;
13632
13633 os2*)
13634 hardcode_libdir_flag_spec_CXX='-L$libdir'
13635 hardcode_minus_L_CXX=yes
13636 allow_undefined_flag_CXX=unsupported
13637 shrext_cmds=.dll
13638 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13639 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13640 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13641 $ECHO EXPORTS >> $output_objdir/$libname.def~
13642 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13643 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13644 emximp -o $lib $output_objdir/$libname.def'
13645 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13646 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13647 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13648 $ECHO EXPORTS >> $output_objdir/$libname.def~
13649 prefix_cmds="$SED"~
13650 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13651 prefix_cmds="$prefix_cmds -e 1d";
13652 fi~
13653 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13654 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13655 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13656 emximp -o $lib $output_objdir/$libname.def'
13657 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13658 enable_shared_with_static_runtimes_CXX=yes
13659 ;;
13660
13661 dgux*)
13662 case $cc_basename in
13663 ec++*)
13664 # FIXME: insert proper C++ library support
13665 ld_shlibs_CXX=no
13666 ;;
13667 ghcx*)
13668 # Green Hills C++ Compiler
13669 # FIXME: insert proper C++ library support
13670 ld_shlibs_CXX=no
13671 ;;
13672 *)
13673 # FIXME: insert proper C++ library support
13674 ld_shlibs_CXX=no
13675 ;;
13676 esac
13677 ;;
13678
13679 freebsd2.*)
13680 # C++ shared libraries reported to be fairly broken before
13681 # switch to ELF
13682 ld_shlibs_CXX=no
13683 ;;
13684
13685 freebsd-elf*)
13686 archive_cmds_need_lc_CXX=no
13687 ;;
13688
13689 freebsd* | dragonfly*)
13690 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13691 # conventions
13692 ld_shlibs_CXX=yes
13693 ;;
13694
13695 haiku*)
13696 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13697 link_all_deplibs_CXX=yes
13698 ;;
13699
13700 hpux9*)
13701 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13702 hardcode_libdir_separator_CXX=:
13703 export_dynamic_flag_spec_CXX='$wl-E'
13704 hardcode_direct_CXX=yes
13705 hardcode_minus_L_CXX=yes # Not in the search PATH,
13706 # but as the default
13707 # location of the library.
13708
13709 case $cc_basename in
13710 CC*)
13711 # FIXME: insert proper C++ library support
13712 ld_shlibs_CXX=no
13713 ;;
13714 aCC*)
13715 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13716 # Commands to make compiler produce verbose output that lists
13717 # what "hidden" libraries, object files and flags are used when
13718 # linking a shared library.
13719 #
13720 # There doesn't appear to be a way to prevent this compiler from
13721 # explicitly linking system object files so we need to strip them
13722 # from the output so that they don't get included in the library
13723 # dependencies.
13724 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13725 ;;
13726 *)
13727 if test yes = "$GXX"; then
13728 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13729 else
13730 # FIXME: insert proper C++ library support
13731 ld_shlibs_CXX=no
13732 fi
13733 ;;
13734 esac
13735 ;;
13736
13737 hpux10*|hpux11*)
13738 if test no = "$with_gnu_ld"; then
13739 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13740 hardcode_libdir_separator_CXX=:
13741
13742 case $host_cpu in
13743 hppa*64*|ia64*)
13744 ;;
13745 *)
13746 export_dynamic_flag_spec_CXX='$wl-E'
13747 ;;
13748 esac
13749 fi
13750 case $host_cpu in
13751 hppa*64*|ia64*)
13752 hardcode_direct_CXX=no
13753 hardcode_shlibpath_var_CXX=no
13754 ;;
13755 *)
13756 hardcode_direct_CXX=yes
13757 hardcode_direct_absolute_CXX=yes
13758 hardcode_minus_L_CXX=yes # Not in the search PATH,
13759 # but as the default
13760 # location of the library.
13761 ;;
13762 esac
13763
13764 case $cc_basename in
13765 CC*)
13766 # FIXME: insert proper C++ library support
13767 ld_shlibs_CXX=no
13768 ;;
13769 aCC*)
13770 case $host_cpu in
13771 hppa*64*)
13772 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13773 ;;
13774 ia64*)
13775 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13776 ;;
13777 *)
13778 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13779 ;;
13780 esac
13781 # Commands to make compiler produce verbose output that lists
13782 # what "hidden" libraries, object files and flags are used when
13783 # linking a shared library.
13784 #
13785 # There doesn't appear to be a way to prevent this compiler from
13786 # explicitly linking system object files so we need to strip them
13787 # from the output so that they don't get included in the library
13788 # dependencies.
13789 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13790 ;;
13791 *)
13792 if test yes = "$GXX"; then
13793 if test no = "$with_gnu_ld"; then
13794 case $host_cpu in
13795 hppa*64*)
13796 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13797 ;;
13798 ia64*)
13799 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13800 ;;
13801 *)
13802 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13803 ;;
13804 esac
13805 fi
13806 else
13807 # FIXME: insert proper C++ library support
13808 ld_shlibs_CXX=no
13809 fi
13810 ;;
13811 esac
13812 ;;
13813
13814 interix[3-9]*)
13815 hardcode_direct_CXX=no
13816 hardcode_shlibpath_var_CXX=no
13817 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13818 export_dynamic_flag_spec_CXX='$wl-E'
13819 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13820 # Instead, shared libraries are loaded at an image base (0x10000000 by
13821 # default) and relocated if they conflict, which is a slow very memory
13822 # consuming and fragmenting process. To avoid this, we pick a random,
13823 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13824 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13825 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13826 archive_expsym_cmds_CXX='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'
13827 ;;
13828 irix5* | irix6*)
13829 case $cc_basename in
13830 CC*)
13831 # SGI C++
13832 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13833
13834 # Archives containing C++ object files must be created using
13835 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13836 # necessary to make sure instantiated templates are included
13837 # in the archive.
13838 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13839 ;;
13840 *)
13841 if test yes = "$GXX"; then
13842 if test no = "$with_gnu_ld"; then
13843 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13844 else
13845 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
13846 fi
13847 fi
13848 link_all_deplibs_CXX=yes
13849 ;;
13850 esac
13851 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13852 hardcode_libdir_separator_CXX=:
13853 inherit_rpath_CXX=yes
13854 ;;
13855
13856 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13857 case $cc_basename in
13858 KCC*)
13859 # Kuck and Associates, Inc. (KAI) C++ Compiler
13860
13861 # KCC will only create a shared library if the output file
13862 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13863 # to its proper name (with version) after linking.
13864 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13865 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
13866 # Commands to make compiler produce verbose output that lists
13867 # what "hidden" libraries, object files and flags are used when
13868 # linking a shared library.
13869 #
13870 # There doesn't appear to be a way to prevent this compiler from
13871 # explicitly linking system object files so we need to strip them
13872 # from the output so that they don't get included in the library
13873 # dependencies.
13874 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13875
13876 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13877 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13878
13879 # Archives containing C++ object files must be created using
13880 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13881 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13882 ;;
13883 icpc* | ecpc* )
13884 # Intel C++
13885 with_gnu_ld=yes
13886 # version 8.0 and above of icpc choke on multiply defined symbols
13887 # if we add $predep_objects and $postdep_objects, however 7.1 and
13888 # earlier do not add the objects themselves.
13889 case `$CC -V 2>&1` in
13890 *"Version 7."*)
13891 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13892 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13893 ;;
13894 *) # Version 8.0 or newer
13895 tmp_idyn=
13896 case $host_cpu in
13897 ia64*) tmp_idyn=' -i_dynamic';;
13898 esac
13899 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13900 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13901 ;;
13902 esac
13903 archive_cmds_need_lc_CXX=no
13904 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13905 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13906 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13907 ;;
13908 pgCC* | pgcpp*)
13909 # Portland Group C++ compiler
13910 case `$CC -V` in
13911 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13912 prelink_cmds_CXX='tpldir=Template.dir~
13913 rm -rf $tpldir~
13914 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13915 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13916 old_archive_cmds_CXX='tpldir=Template.dir~
13917 rm -rf $tpldir~
13918 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13919 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13920 $RANLIB $oldlib'
13921 archive_cmds_CXX='tpldir=Template.dir~
13922 rm -rf $tpldir~
13923 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13924 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13925 archive_expsym_cmds_CXX='tpldir=Template.dir~
13926 rm -rf $tpldir~
13927 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13928 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13929 ;;
13930 *) # Version 6 and above use weak symbols
13931 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13932 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13933 ;;
13934 esac
13935
13936 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13937 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13938 whole_archive_flag_spec_CXX='$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'
13939 ;;
13940 cxx*)
13941 # Compaq C++
13942 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13943 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
13944
13945 runpath_var=LD_RUN_PATH
13946 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13947 hardcode_libdir_separator_CXX=:
13948
13949 # Commands to make compiler produce verbose output that lists
13950 # what "hidden" libraries, object files and flags are used when
13951 # linking a shared library.
13952 #
13953 # There doesn't appear to be a way to prevent this compiler from
13954 # explicitly linking system object files so we need to strip them
13955 # from the output so that they don't get included in the library
13956 # dependencies.
13957 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13958 ;;
13959 xl* | mpixl* | bgxl*)
13960 # IBM XL 8.0 on PPC, with GNU ld
13961 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13962 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13963 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13964 if test yes = "$supports_anon_versioning"; then
13965 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13966 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13967 echo "local: *; };" >> $output_objdir/$libname.ver~
13968 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13969 fi
13970 ;;
13971 *)
13972 case `$CC -V 2>&1 | sed 5q` in
13973 *Sun\ C*)
13974 # Sun C++ 5.9
13975 no_undefined_flag_CXX=' -zdefs'
13976 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13977 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
13978 hardcode_libdir_flag_spec_CXX='-R$libdir'
13979 whole_archive_flag_spec_CXX='$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'
13980 compiler_needs_object_CXX=yes
13981
13982 # Not sure whether something based on
13983 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13984 # would be better.
13985 output_verbose_link_cmd='func_echo_all'
13986
13987 # Archives containing C++ object files must be created using
13988 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13989 # necessary to make sure instantiated templates are included
13990 # in the archive.
13991 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13992 ;;
13993 esac
13994 ;;
13995 esac
13996 ;;
13997
13998 lynxos*)
13999 # FIXME: insert proper C++ library support
14000 ld_shlibs_CXX=no
14001 ;;
14002
14003 m88k*)
14004 # FIXME: insert proper C++ library support
14005 ld_shlibs_CXX=no
14006 ;;
14007
14008 mvs*)
14009 case $cc_basename in
14010 cxx*)
14011 # FIXME: insert proper C++ library support
14012 ld_shlibs_CXX=no
14013 ;;
14014 *)
14015 # FIXME: insert proper C++ library support
14016 ld_shlibs_CXX=no
14017 ;;
14018 esac
14019 ;;
14020
14021 netbsd*)
14022 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14023 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14024 wlarc=
14025 hardcode_libdir_flag_spec_CXX='-R$libdir'
14026 hardcode_direct_CXX=yes
14027 hardcode_shlibpath_var_CXX=no
14028 fi
14029 # Workaround some broken pre-1.5 toolchains
14030 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14031 ;;
14032
14033 *nto* | *qnx*)
14034 ld_shlibs_CXX=yes
14035 ;;
14036
14037 openbsd* | bitrig*)
14038 if test -f /usr/libexec/ld.so; then
14039 hardcode_direct_CXX=yes
14040 hardcode_shlibpath_var_CXX=no
14041 hardcode_direct_absolute_CXX=yes
14042 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14043 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14044 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14045 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14046 export_dynamic_flag_spec_CXX='$wl-E'
14047 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14048 fi
14049 output_verbose_link_cmd=func_echo_all
14050 else
14051 ld_shlibs_CXX=no
14052 fi
14053 ;;
14054
14055 osf3* | osf4* | osf5*)
14056 case $cc_basename in
14057 KCC*)
14058 # Kuck and Associates, Inc. (KAI) C++ Compiler
14059
14060 # KCC will only create a shared library if the output file
14061 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14062 # to its proper name (with version) after linking.
14063 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14064
14065 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14066 hardcode_libdir_separator_CXX=:
14067
14068 # Archives containing C++ object files must be created using
14069 # the KAI C++ compiler.
14070 case $host in
14071 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14072 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14073 esac
14074 ;;
14075 RCC*)
14076 # Rational C++ 2.4.1
14077 # FIXME: insert proper C++ library support
14078 ld_shlibs_CXX=no
14079 ;;
14080 cxx*)
14081 case $host in
14082 osf3*)
14083 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14084 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14085 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14086 ;;
14087 *)
14088 allow_undefined_flag_CXX=' -expect_unresolved \*'
14089 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14090 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14091 echo "-hidden">> $lib.exp~
14092 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
14093 $RM $lib.exp'
14094 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14095 ;;
14096 esac
14097
14098 hardcode_libdir_separator_CXX=:
14099
14100 # Commands to make compiler produce verbose output that lists
14101 # what "hidden" libraries, object files and flags are used when
14102 # linking a shared library.
14103 #
14104 # There doesn't appear to be a way to prevent this compiler from
14105 # explicitly linking system object files so we need to strip them
14106 # from the output so that they don't get included in the library
14107 # dependencies.
14108 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14109 ;;
14110 *)
14111 if test yes,no = "$GXX,$with_gnu_ld"; then
14112 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14113 case $host in
14114 osf3*)
14115 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
14116 ;;
14117 *)
14118 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
14119 ;;
14120 esac
14121
14122 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14123 hardcode_libdir_separator_CXX=:
14124
14125 # Commands to make compiler produce verbose output that lists
14126 # what "hidden" libraries, object files and flags are used when
14127 # linking a shared library.
14128 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14129
14130 else
14131 # FIXME: insert proper C++ library support
14132 ld_shlibs_CXX=no
14133 fi
14134 ;;
14135 esac
14136 ;;
14137
14138 psos*)
14139 # FIXME: insert proper C++ library support
14140 ld_shlibs_CXX=no
14141 ;;
14142
14143 sunos4*)
14144 case $cc_basename in
14145 CC*)
14146 # Sun C++ 4.x
14147 # FIXME: insert proper C++ library support
14148 ld_shlibs_CXX=no
14149 ;;
14150 lcc*)
14151 # Lucid
14152 # FIXME: insert proper C++ library support
14153 ld_shlibs_CXX=no
14154 ;;
14155 *)
14156 # FIXME: insert proper C++ library support
14157 ld_shlibs_CXX=no
14158 ;;
14159 esac
14160 ;;
14161
14162 solaris*)
14163 case $cc_basename in
14164 CC* | sunCC*)
14165 # Sun C++ 4.2, 5.x and Centerline C++
14166 archive_cmds_need_lc_CXX=yes
14167 no_undefined_flag_CXX=' -zdefs'
14168 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14169 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14170 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14171
14172 hardcode_libdir_flag_spec_CXX='-R$libdir'
14173 hardcode_shlibpath_var_CXX=no
14174 case $host_os in
14175 solaris2.[0-5] | solaris2.[0-5].*) ;;
14176 *)
14177 # The compiler driver will combine and reorder linker options,
14178 # but understands '-z linker_flag'.
14179 # Supported since Solaris 2.6 (maybe 2.5.1?)
14180 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14181 ;;
14182 esac
14183 link_all_deplibs_CXX=yes
14184
14185 output_verbose_link_cmd='func_echo_all'
14186
14187 # Archives containing C++ object files must be created using
14188 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14189 # necessary to make sure instantiated templates are included
14190 # in the archive.
14191 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14192 ;;
14193 gcx*)
14194 # Green Hills C++ Compiler
14195 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14196
14197 # The C++ compiler must be used to create the archive.
14198 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14199 ;;
14200 *)
14201 # GNU C++ compiler with Solaris linker
14202 if test yes,no = "$GXX,$with_gnu_ld"; then
14203 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14204 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14205 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14206 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14207 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14208
14209 # Commands to make compiler produce verbose output that lists
14210 # what "hidden" libraries, object files and flags are used when
14211 # linking a shared library.
14212 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14213 else
14214 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14215 # platform.
14216 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14217 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14218 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14219
14220 # Commands to make compiler produce verbose output that lists
14221 # what "hidden" libraries, object files and flags are used when
14222 # linking a shared library.
14223 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14224 fi
14225
14226 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14227 case $host_os in
14228 solaris2.[0-5] | solaris2.[0-5].*) ;;
14229 *)
14230 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14231 ;;
14232 esac
14233 fi
14234 ;;
14235 esac
14236 ;;
14237
14238 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14239 no_undefined_flag_CXX='$wl-z,text'
14240 archive_cmds_need_lc_CXX=no
14241 hardcode_shlibpath_var_CXX=no
14242 runpath_var='LD_RUN_PATH'
14243
14244 case $cc_basename in
14245 CC*)
14246 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14247 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14248 ;;
14249 *)
14250 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14251 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14252 ;;
14253 esac
14254 ;;
14255
14256 sysv5* | sco3.2v5* | sco5v6*)
14257 # Note: We CANNOT use -z defs as we might desire, because we do not
14258 # link with -lc, and that would cause any symbols used from libc to
14259 # always be unresolved, which means just about no library would
14260 # ever link correctly. If we're not using GNU ld we use -z text
14261 # though, which does catch some bad symbols but isn't as heavy-handed
14262 # as -z defs.
14263 no_undefined_flag_CXX='$wl-z,text'
14264 allow_undefined_flag_CXX='$wl-z,nodefs'
14265 archive_cmds_need_lc_CXX=no
14266 hardcode_shlibpath_var_CXX=no
14267 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14268 hardcode_libdir_separator_CXX=':'
14269 link_all_deplibs_CXX=yes
14270 export_dynamic_flag_spec_CXX='$wl-Bexport'
14271 runpath_var='LD_RUN_PATH'
14272
14273 case $cc_basename in
14274 CC*)
14275 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14276 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14277 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14278 '"$old_archive_cmds_CXX"
14279 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14280 '"$reload_cmds_CXX"
14281 ;;
14282 *)
14283 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14284 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14285 ;;
14286 esac
14287 ;;
14288
14289 tandem*)
14290 case $cc_basename in
14291 NCC*)
14292 # NonStop-UX NCC 3.20
14293 # FIXME: insert proper C++ library support
14294 ld_shlibs_CXX=no
14295 ;;
14296 *)
14297 # FIXME: insert proper C++ library support
14298 ld_shlibs_CXX=no
14299 ;;
14300 esac
14301 ;;
14302
14303 vxworks*)
14304 # FIXME: insert proper C++ library support
14305 ld_shlibs_CXX=no
14306 ;;
14307
14308 *)
14309 # FIXME: insert proper C++ library support
14310 ld_shlibs_CXX=no
14311 ;;
14312 esac
14313
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14315 $as_echo "$ld_shlibs_CXX" >&6; }
14316 test no = "$ld_shlibs_CXX" && can_build_shared=no
14317
14318 GCC_CXX=$GXX
14319 LD_CXX=$LD
14320
14321 ## CAVEAT EMPTOR:
14322 ## There is no encapsulation within the following macros, do not change
14323 ## the running order or otherwise move them around unless you know exactly
14324 ## what you are doing...
14325 # Dependencies to place before and after the object being linked:
14326 predep_objects_CXX=
14327 postdep_objects_CXX=
14328 predeps_CXX=
14329 postdeps_CXX=
14330 compiler_lib_search_path_CXX=
14331
14332 cat > conftest.$ac_ext <<_LT_EOF
14333 class Foo
14334 {
14335 public:
14336 Foo (void) { a = 0; }
14337 private:
14338 int a;
14339 };
14340 _LT_EOF
14341
14342
14343 _lt_libdeps_save_CFLAGS=$CFLAGS
14344 case "$CC $CFLAGS " in #(
14345 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14346 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14347 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14348 esac
14349
14350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14351 (eval $ac_compile) 2>&5
14352 ac_status=$?
14353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14354 test $ac_status = 0; }; then
14355 # Parse the compiler output and extract the necessary
14356 # objects, libraries and library flags.
14357
14358 # Sentinel used to keep track of whether or not we are before
14359 # the conftest object file.
14360 pre_test_object_deps_done=no
14361
14362 for p in `eval "$output_verbose_link_cmd"`; do
14363 case $prev$p in
14364
14365 -L* | -R* | -l*)
14366 # Some compilers place space between "-{L,R}" and the path.
14367 # Remove the space.
14368 if test x-L = "$p" ||
14369 test x-R = "$p"; then
14370 prev=$p
14371 continue
14372 fi
14373
14374 # Expand the sysroot to ease extracting the directories later.
14375 if test -z "$prev"; then
14376 case $p in
14377 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14378 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14379 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14380 esac
14381 fi
14382 case $p in
14383 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14384 esac
14385 if test no = "$pre_test_object_deps_done"; then
14386 case $prev in
14387 -L | -R)
14388 # Internal compiler library paths should come after those
14389 # provided the user. The postdeps already come after the
14390 # user supplied libs so there is no need to process them.
14391 if test -z "$compiler_lib_search_path_CXX"; then
14392 compiler_lib_search_path_CXX=$prev$p
14393 else
14394 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14395 fi
14396 ;;
14397 # The "-l" case would never come before the object being
14398 # linked, so don't bother handling this case.
14399 esac
14400 else
14401 if test -z "$postdeps_CXX"; then
14402 postdeps_CXX=$prev$p
14403 else
14404 postdeps_CXX="${postdeps_CXX} $prev$p"
14405 fi
14406 fi
14407 prev=
14408 ;;
14409
14410 *.lto.$objext) ;; # Ignore GCC LTO objects
14411 *.$objext)
14412 # This assumes that the test object file only shows up
14413 # once in the compiler output.
14414 if test "$p" = "conftest.$objext"; then
14415 pre_test_object_deps_done=yes
14416 continue
14417 fi
14418
14419 if test no = "$pre_test_object_deps_done"; then
14420 if test -z "$predep_objects_CXX"; then
14421 predep_objects_CXX=$p
14422 else
14423 predep_objects_CXX="$predep_objects_CXX $p"
14424 fi
14425 else
14426 if test -z "$postdep_objects_CXX"; then
14427 postdep_objects_CXX=$p
14428 else
14429 postdep_objects_CXX="$postdep_objects_CXX $p"
14430 fi
14431 fi
14432 ;;
14433
14434 *) ;; # Ignore the rest.
14435
14436 esac
14437 done
14438
14439 # Clean up.
14440 rm -f a.out a.exe
14441 else
14442 echo "libtool.m4: error: problem compiling CXX test program"
14443 fi
14444
14445 $RM -f confest.$objext
14446 CFLAGS=$_lt_libdeps_save_CFLAGS
14447
14448 # PORTME: override above test on systems where it is broken
14449 case $host_os in
14450 interix[3-9]*)
14451 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14452 # hack all around it, let's just trust "g++" to DTRT.
14453 predep_objects_CXX=
14454 postdep_objects_CXX=
14455 postdeps_CXX=
14456 ;;
14457 esac
14458
14459
14460 case " $postdeps_CXX " in
14461 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14462 esac
14463 compiler_lib_search_dirs_CXX=
14464 if test -n "${compiler_lib_search_path_CXX}"; then
14465 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14466 fi
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498 lt_prog_compiler_wl_CXX=
14499 lt_prog_compiler_pic_CXX=
14500 lt_prog_compiler_static_CXX=
14501
14502
14503 # C++ specific cases for pic, static, wl, etc.
14504 if test yes = "$GXX"; then
14505 lt_prog_compiler_wl_CXX='-Wl,'
14506 lt_prog_compiler_static_CXX='-static'
14507
14508 case $host_os in
14509 aix*)
14510 # All AIX code is PIC.
14511 if test ia64 = "$host_cpu"; then
14512 # AIX 5 now supports IA64 processor
14513 lt_prog_compiler_static_CXX='-Bstatic'
14514 fi
14515 lt_prog_compiler_pic_CXX='-fPIC'
14516 ;;
14517
14518 amigaos*)
14519 case $host_cpu in
14520 powerpc)
14521 # see comment about AmigaOS4 .so support
14522 lt_prog_compiler_pic_CXX='-fPIC'
14523 ;;
14524 m68k)
14525 # FIXME: we need at least 68020 code to build shared libraries, but
14526 # adding the '-m68020' flag to GCC prevents building anything better,
14527 # like '-m68040'.
14528 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14529 ;;
14530 esac
14531 ;;
14532
14533 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14534 # PIC is the default for these OSes.
14535 ;;
14536 mingw* | cygwin* | os2* | pw32* | cegcc*)
14537 # This hack is so that the source file can tell whether it is being
14538 # built for inclusion in a dll (and should export symbols for example).
14539 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14540 # (--disable-auto-import) libraries
14541 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14542 case $host_os in
14543 os2*)
14544 lt_prog_compiler_static_CXX='$wl-static'
14545 ;;
14546 esac
14547 ;;
14548 darwin* | rhapsody*)
14549 # PIC is the default on this platform
14550 # Common symbols not allowed in MH_DYLIB files
14551 lt_prog_compiler_pic_CXX='-fno-common'
14552 ;;
14553 *djgpp*)
14554 # DJGPP does not support shared libraries at all
14555 lt_prog_compiler_pic_CXX=
14556 ;;
14557 haiku*)
14558 # PIC is the default for Haiku.
14559 # The "-static" flag exists, but is broken.
14560 lt_prog_compiler_static_CXX=
14561 ;;
14562 interix[3-9]*)
14563 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14564 # Instead, we relocate shared libraries at runtime.
14565 ;;
14566 sysv4*MP*)
14567 if test -d /usr/nec; then
14568 lt_prog_compiler_pic_CXX=-Kconform_pic
14569 fi
14570 ;;
14571 hpux*)
14572 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14573 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14574 # sets the default TLS model and affects inlining.
14575 case $host_cpu in
14576 hppa*64*)
14577 ;;
14578 *)
14579 lt_prog_compiler_pic_CXX='-fPIC'
14580 ;;
14581 esac
14582 ;;
14583 *qnx* | *nto*)
14584 # QNX uses GNU C++, but need to define -shared option too, otherwise
14585 # it will coredump.
14586 lt_prog_compiler_pic_CXX='-fPIC -shared'
14587 ;;
14588 *)
14589 lt_prog_compiler_pic_CXX='-fPIC'
14590 ;;
14591 esac
14592 else
14593 case $host_os in
14594 aix[4-9]*)
14595 # All AIX code is PIC.
14596 if test ia64 = "$host_cpu"; then
14597 # AIX 5 now supports IA64 processor
14598 lt_prog_compiler_static_CXX='-Bstatic'
14599 else
14600 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14601 fi
14602 ;;
14603 chorus*)
14604 case $cc_basename in
14605 cxch68*)
14606 # Green Hills C++ Compiler
14607 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14608 ;;
14609 esac
14610 ;;
14611 mingw* | cygwin* | os2* | pw32* | cegcc*)
14612 # This hack is so that the source file can tell whether it is being
14613 # built for inclusion in a dll (and should export symbols for example).
14614 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14615 ;;
14616 dgux*)
14617 case $cc_basename in
14618 ec++*)
14619 lt_prog_compiler_pic_CXX='-KPIC'
14620 ;;
14621 ghcx*)
14622 # Green Hills C++ Compiler
14623 lt_prog_compiler_pic_CXX='-pic'
14624 ;;
14625 *)
14626 ;;
14627 esac
14628 ;;
14629 freebsd* | dragonfly*)
14630 # FreeBSD uses GNU C++
14631 ;;
14632 hpux9* | hpux10* | hpux11*)
14633 case $cc_basename in
14634 CC*)
14635 lt_prog_compiler_wl_CXX='-Wl,'
14636 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14637 if test ia64 != "$host_cpu"; then
14638 lt_prog_compiler_pic_CXX='+Z'
14639 fi
14640 ;;
14641 aCC*)
14642 lt_prog_compiler_wl_CXX='-Wl,'
14643 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14644 case $host_cpu in
14645 hppa*64*|ia64*)
14646 # +Z the default
14647 ;;
14648 *)
14649 lt_prog_compiler_pic_CXX='+Z'
14650 ;;
14651 esac
14652 ;;
14653 *)
14654 ;;
14655 esac
14656 ;;
14657 interix*)
14658 # This is c89, which is MS Visual C++ (no shared libs)
14659 # Anyone wants to do a port?
14660 ;;
14661 irix5* | irix6* | nonstopux*)
14662 case $cc_basename in
14663 CC*)
14664 lt_prog_compiler_wl_CXX='-Wl,'
14665 lt_prog_compiler_static_CXX='-non_shared'
14666 # CC pic flag -KPIC is the default.
14667 ;;
14668 *)
14669 ;;
14670 esac
14671 ;;
14672 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14673 case $cc_basename in
14674 KCC*)
14675 # KAI C++ Compiler
14676 lt_prog_compiler_wl_CXX='--backend -Wl,'
14677 lt_prog_compiler_pic_CXX='-fPIC'
14678 ;;
14679 ecpc* )
14680 # old Intel C++ for x86_64, which still supported -KPIC.
14681 lt_prog_compiler_wl_CXX='-Wl,'
14682 lt_prog_compiler_pic_CXX='-KPIC'
14683 lt_prog_compiler_static_CXX='-static'
14684 ;;
14685 icpc* )
14686 # Intel C++, used to be incompatible with GCC.
14687 # ICC 10 doesn't accept -KPIC any more.
14688 lt_prog_compiler_wl_CXX='-Wl,'
14689 lt_prog_compiler_pic_CXX='-fPIC'
14690 lt_prog_compiler_static_CXX='-static'
14691 ;;
14692 pgCC* | pgcpp*)
14693 # Portland Group C++ compiler
14694 lt_prog_compiler_wl_CXX='-Wl,'
14695 lt_prog_compiler_pic_CXX='-fpic'
14696 lt_prog_compiler_static_CXX='-Bstatic'
14697 ;;
14698 cxx*)
14699 # Compaq C++
14700 # Make sure the PIC flag is empty. It appears that all Alpha
14701 # Linux and Compaq Tru64 Unix objects are PIC.
14702 lt_prog_compiler_pic_CXX=
14703 lt_prog_compiler_static_CXX='-non_shared'
14704 ;;
14705 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14706 # IBM XL 8.0, 9.0 on PPC and BlueGene
14707 lt_prog_compiler_wl_CXX='-Wl,'
14708 lt_prog_compiler_pic_CXX='-qpic'
14709 lt_prog_compiler_static_CXX='-qstaticlink'
14710 ;;
14711 *)
14712 case `$CC -V 2>&1 | sed 5q` in
14713 *Sun\ C*)
14714 # Sun C++ 5.9
14715 lt_prog_compiler_pic_CXX='-KPIC'
14716 lt_prog_compiler_static_CXX='-Bstatic'
14717 lt_prog_compiler_wl_CXX='-Qoption ld '
14718 ;;
14719 esac
14720 ;;
14721 esac
14722 ;;
14723 lynxos*)
14724 ;;
14725 m88k*)
14726 ;;
14727 mvs*)
14728 case $cc_basename in
14729 cxx*)
14730 lt_prog_compiler_pic_CXX='-W c,exportall'
14731 ;;
14732 *)
14733 ;;
14734 esac
14735 ;;
14736 netbsd*)
14737 ;;
14738 *qnx* | *nto*)
14739 # QNX uses GNU C++, but need to define -shared option too, otherwise
14740 # it will coredump.
14741 lt_prog_compiler_pic_CXX='-fPIC -shared'
14742 ;;
14743 osf3* | osf4* | osf5*)
14744 case $cc_basename in
14745 KCC*)
14746 lt_prog_compiler_wl_CXX='--backend -Wl,'
14747 ;;
14748 RCC*)
14749 # Rational C++ 2.4.1
14750 lt_prog_compiler_pic_CXX='-pic'
14751 ;;
14752 cxx*)
14753 # Digital/Compaq C++
14754 lt_prog_compiler_wl_CXX='-Wl,'
14755 # Make sure the PIC flag is empty. It appears that all Alpha
14756 # Linux and Compaq Tru64 Unix objects are PIC.
14757 lt_prog_compiler_pic_CXX=
14758 lt_prog_compiler_static_CXX='-non_shared'
14759 ;;
14760 *)
14761 ;;
14762 esac
14763 ;;
14764 psos*)
14765 ;;
14766 solaris*)
14767 case $cc_basename in
14768 CC* | sunCC*)
14769 # Sun C++ 4.2, 5.x and Centerline C++
14770 lt_prog_compiler_pic_CXX='-KPIC'
14771 lt_prog_compiler_static_CXX='-Bstatic'
14772 lt_prog_compiler_wl_CXX='-Qoption ld '
14773 ;;
14774 gcx*)
14775 # Green Hills C++ Compiler
14776 lt_prog_compiler_pic_CXX='-PIC'
14777 ;;
14778 *)
14779 ;;
14780 esac
14781 ;;
14782 sunos4*)
14783 case $cc_basename in
14784 CC*)
14785 # Sun C++ 4.x
14786 lt_prog_compiler_pic_CXX='-pic'
14787 lt_prog_compiler_static_CXX='-Bstatic'
14788 ;;
14789 lcc*)
14790 # Lucid
14791 lt_prog_compiler_pic_CXX='-pic'
14792 ;;
14793 *)
14794 ;;
14795 esac
14796 ;;
14797 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14798 case $cc_basename in
14799 CC*)
14800 lt_prog_compiler_wl_CXX='-Wl,'
14801 lt_prog_compiler_pic_CXX='-KPIC'
14802 lt_prog_compiler_static_CXX='-Bstatic'
14803 ;;
14804 esac
14805 ;;
14806 tandem*)
14807 case $cc_basename in
14808 NCC*)
14809 # NonStop-UX NCC 3.20
14810 lt_prog_compiler_pic_CXX='-KPIC'
14811 ;;
14812 *)
14813 ;;
14814 esac
14815 ;;
14816 vxworks*)
14817 ;;
14818 *)
14819 lt_prog_compiler_can_build_shared_CXX=no
14820 ;;
14821 esac
14822 fi
14823
14824 case $host_os in
14825 # For platforms that do not support PIC, -DPIC is meaningless:
14826 *djgpp*)
14827 lt_prog_compiler_pic_CXX=
14828 ;;
14829 *)
14830 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14831 ;;
14832 esac
14833
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14835 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14836 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14837 $as_echo_n "(cached) " >&6
14838 else
14839 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14840 fi
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14842 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14843 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14844
14845 #
14846 # Check to make sure the PIC flag actually works.
14847 #
14848 if test -n "$lt_prog_compiler_pic_CXX"; then
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14850 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14851 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14852 $as_echo_n "(cached) " >&6
14853 else
14854 lt_cv_prog_compiler_pic_works_CXX=no
14855 ac_outfile=conftest.$ac_objext
14856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14857 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14858 # Insert the option either (1) after the last *FLAGS variable, or
14859 # (2) before a word containing "conftest.", or (3) at the end.
14860 # Note that $ac_compile itself does not contain backslashes and begins
14861 # with a dollar sign (not a hyphen), so the echo should work correctly.
14862 # The option is referenced via a variable to avoid confusing sed.
14863 lt_compile=`echo "$ac_compile" | $SED \
14864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14866 -e 's:$: $lt_compiler_flag:'`
14867 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14868 (eval "$lt_compile" 2>conftest.err)
14869 ac_status=$?
14870 cat conftest.err >&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 if (exit $ac_status) && test -s "$ac_outfile"; then
14873 # The compiler can only warn and ignore the option if not recognized
14874 # So say no if there are warnings other than the usual output.
14875 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14877 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14878 lt_cv_prog_compiler_pic_works_CXX=yes
14879 fi
14880 fi
14881 $RM conftest*
14882
14883 fi
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14885 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14886
14887 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14888 case $lt_prog_compiler_pic_CXX in
14889 "" | " "*) ;;
14890 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14891 esac
14892 else
14893 lt_prog_compiler_pic_CXX=
14894 lt_prog_compiler_can_build_shared_CXX=no
14895 fi
14896
14897 fi
14898
14899
14900
14901
14902
14903 #
14904 # Check to make sure the static flag actually works.
14905 #
14906 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14908 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14909 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14910 $as_echo_n "(cached) " >&6
14911 else
14912 lt_cv_prog_compiler_static_works_CXX=no
14913 save_LDFLAGS=$LDFLAGS
14914 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14915 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14916 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14917 # The linker can only warn and ignore the option if not recognized
14918 # So say no if there are warnings
14919 if test -s conftest.err; then
14920 # Append any errors to the config.log.
14921 cat conftest.err 1>&5
14922 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14924 if diff conftest.exp conftest.er2 >/dev/null; then
14925 lt_cv_prog_compiler_static_works_CXX=yes
14926 fi
14927 else
14928 lt_cv_prog_compiler_static_works_CXX=yes
14929 fi
14930 fi
14931 $RM -r conftest*
14932 LDFLAGS=$save_LDFLAGS
14933
14934 fi
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14936 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14937
14938 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14939 :
14940 else
14941 lt_prog_compiler_static_CXX=
14942 fi
14943
14944
14945
14946
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14948 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14949 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14950 $as_echo_n "(cached) " >&6
14951 else
14952 lt_cv_prog_compiler_c_o_CXX=no
14953 $RM -r conftest 2>/dev/null
14954 mkdir conftest
14955 cd conftest
14956 mkdir out
14957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14958
14959 lt_compiler_flag="-o out/conftest2.$ac_objext"
14960 # Insert the option either (1) after the last *FLAGS variable, or
14961 # (2) before a word containing "conftest.", or (3) at the end.
14962 # Note that $ac_compile itself does not contain backslashes and begins
14963 # with a dollar sign (not a hyphen), so the echo should work correctly.
14964 lt_compile=`echo "$ac_compile" | $SED \
14965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14967 -e 's:$: $lt_compiler_flag:'`
14968 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14969 (eval "$lt_compile" 2>out/conftest.err)
14970 ac_status=$?
14971 cat out/conftest.err >&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14974 then
14975 # The compiler can only warn and ignore the option if not recognized
14976 # So say no if there are warnings
14977 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14978 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14979 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14980 lt_cv_prog_compiler_c_o_CXX=yes
14981 fi
14982 fi
14983 chmod u+w . 2>&5
14984 $RM conftest*
14985 # SGI C++ compiler will create directory out/ii_files/ for
14986 # template instantiation
14987 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14988 $RM out/* && rmdir out
14989 cd ..
14990 $RM -r conftest
14991 $RM conftest*
14992
14993 fi
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14995 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14996
14997
14998
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15000 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15001 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15002 $as_echo_n "(cached) " >&6
15003 else
15004 lt_cv_prog_compiler_c_o_CXX=no
15005 $RM -r conftest 2>/dev/null
15006 mkdir conftest
15007 cd conftest
15008 mkdir out
15009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15010
15011 lt_compiler_flag="-o out/conftest2.$ac_objext"
15012 # Insert the option either (1) after the last *FLAGS variable, or
15013 # (2) before a word containing "conftest.", or (3) at the end.
15014 # Note that $ac_compile itself does not contain backslashes and begins
15015 # with a dollar sign (not a hyphen), so the echo should work correctly.
15016 lt_compile=`echo "$ac_compile" | $SED \
15017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15019 -e 's:$: $lt_compiler_flag:'`
15020 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15021 (eval "$lt_compile" 2>out/conftest.err)
15022 ac_status=$?
15023 cat out/conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15026 then
15027 # The compiler can only warn and ignore the option if not recognized
15028 # So say no if there are warnings
15029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15030 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15031 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15032 lt_cv_prog_compiler_c_o_CXX=yes
15033 fi
15034 fi
15035 chmod u+w . 2>&5
15036 $RM conftest*
15037 # SGI C++ compiler will create directory out/ii_files/ for
15038 # template instantiation
15039 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15040 $RM out/* && rmdir out
15041 cd ..
15042 $RM -r conftest
15043 $RM conftest*
15044
15045 fi
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15047 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15048
15049
15050
15051
15052 hard_links=nottested
15053 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15054 # do not overwrite the value of need_locks provided by the user
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15056 $as_echo_n "checking if we can lock with hard links... " >&6; }
15057 hard_links=yes
15058 $RM conftest*
15059 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15060 touch conftest.a
15061 ln conftest.a conftest.b 2>&5 || hard_links=no
15062 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15064 $as_echo "$hard_links" >&6; }
15065 if test no = "$hard_links"; then
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15067 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15068 need_locks=warn
15069 fi
15070 else
15071 need_locks=no
15072 fi
15073
15074
15075
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15077 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15078
15079 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15080 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15081 case $host_os in
15082 aix[4-9]*)
15083 # If we're using GNU nm, then we don't want the "-C" option.
15084 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15085 # Without the "-l" option, or with the "-B" option, AIX nm treats
15086 # weak defined symbols like other global defined symbols, whereas
15087 # GNU nm marks them as "W".
15088 # While the 'weak' keyword is ignored in the Export File, we need
15089 # it in the Import File for the 'aix-soname' feature, so we have
15090 # to replace the "-B" option with "-P" for AIX nm.
15091 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15092 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15093 else
15094 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15095 fi
15096 ;;
15097 pw32*)
15098 export_symbols_cmds_CXX=$ltdll_cmds
15099 ;;
15100 cygwin* | mingw* | cegcc*)
15101 case $cc_basename in
15102 cl*)
15103 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15104 ;;
15105 *)
15106 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15107 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15108 ;;
15109 esac
15110 ;;
15111 *)
15112 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15113 ;;
15114 esac
15115
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15117 $as_echo "$ld_shlibs_CXX" >&6; }
15118 test no = "$ld_shlibs_CXX" && can_build_shared=no
15119
15120 with_gnu_ld_CXX=$with_gnu_ld
15121
15122
15123
15124
15125
15126
15127 #
15128 # Do we need to explicitly link libc?
15129 #
15130 case "x$archive_cmds_need_lc_CXX" in
15131 x|xyes)
15132 # Assume -lc should be added
15133 archive_cmds_need_lc_CXX=yes
15134
15135 if test yes,yes = "$GCC,$enable_shared"; then
15136 case $archive_cmds_CXX in
15137 *'~'*)
15138 # FIXME: we may have to deal with multi-command sequences.
15139 ;;
15140 '$CC '*)
15141 # Test whether the compiler implicitly links with -lc since on some
15142 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15143 # to ld, don't add -lc before -lgcc.
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15145 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15146 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15147 $as_echo_n "(cached) " >&6
15148 else
15149 $RM conftest*
15150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15151
15152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15153 (eval $ac_compile) 2>&5
15154 ac_status=$?
15155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15156 test $ac_status = 0; } 2>conftest.err; then
15157 soname=conftest
15158 lib=conftest
15159 libobjs=conftest.$ac_objext
15160 deplibs=
15161 wl=$lt_prog_compiler_wl_CXX
15162 pic_flag=$lt_prog_compiler_pic_CXX
15163 compiler_flags=-v
15164 linker_flags=-v
15165 verstring=
15166 output_objdir=.
15167 libname=conftest
15168 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15169 allow_undefined_flag_CXX=
15170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15171 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15172 ac_status=$?
15173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15174 test $ac_status = 0; }
15175 then
15176 lt_cv_archive_cmds_need_lc_CXX=no
15177 else
15178 lt_cv_archive_cmds_need_lc_CXX=yes
15179 fi
15180 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15181 else
15182 cat conftest.err 1>&5
15183 fi
15184 $RM conftest*
15185
15186 fi
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15188 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15189 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15190 ;;
15191 esac
15192 fi
15193 ;;
15194 esac
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15258 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15259
15260 library_names_spec=
15261 libname_spec='lib$name'
15262 soname_spec=
15263 shrext_cmds=.so
15264 postinstall_cmds=
15265 postuninstall_cmds=
15266 finish_cmds=
15267 finish_eval=
15268 shlibpath_var=
15269 shlibpath_overrides_runpath=unknown
15270 version_type=none
15271 dynamic_linker="$host_os ld.so"
15272 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15273 need_lib_prefix=unknown
15274 hardcode_into_libs=no
15275
15276 # when you set need_version to no, make sure it does not cause -set_version
15277 # flags to be left without arguments
15278 need_version=unknown
15279
15280
15281
15282 case $host_os in
15283 aix3*)
15284 version_type=linux # correct to gnu/linux during the next big refactor
15285 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15286 shlibpath_var=LIBPATH
15287
15288 # AIX 3 has no versioning support, so we append a major version to the name.
15289 soname_spec='$libname$release$shared_ext$major'
15290 ;;
15291
15292 aix[4-9]*)
15293 version_type=linux # correct to gnu/linux during the next big refactor
15294 need_lib_prefix=no
15295 need_version=no
15296 hardcode_into_libs=yes
15297 if test ia64 = "$host_cpu"; then
15298 # AIX 5 supports IA64
15299 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15300 shlibpath_var=LD_LIBRARY_PATH
15301 else
15302 # With GCC up to 2.95.x, collect2 would create an import file
15303 # for dependence libraries. The import file would start with
15304 # the line '#! .'. This would cause the generated library to
15305 # depend on '.', always an invalid library. This was fixed in
15306 # development snapshots of GCC prior to 3.0.
15307 case $host_os in
15308 aix4 | aix4.[01] | aix4.[01].*)
15309 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15310 echo ' yes '
15311 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15312 :
15313 else
15314 can_build_shared=no
15315 fi
15316 ;;
15317 esac
15318 # Using Import Files as archive members, it is possible to support
15319 # filename-based versioning of shared library archives on AIX. While
15320 # this would work for both with and without runtime linking, it will
15321 # prevent static linking of such archives. So we do filename-based
15322 # shared library versioning with .so extension only, which is used
15323 # when both runtime linking and shared linking is enabled.
15324 # Unfortunately, runtime linking may impact performance, so we do
15325 # not want this to be the default eventually. Also, we use the
15326 # versioned .so libs for executables only if there is the -brtl
15327 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15328 # To allow for filename-based versioning support, we need to create
15329 # libNAME.so.V as an archive file, containing:
15330 # *) an Import File, referring to the versioned filename of the
15331 # archive as well as the shared archive member, telling the
15332 # bitwidth (32 or 64) of that shared object, and providing the
15333 # list of exported symbols of that shared object, eventually
15334 # decorated with the 'weak' keyword
15335 # *) the shared object with the F_LOADONLY flag set, to really avoid
15336 # it being seen by the linker.
15337 # At run time we better use the real file rather than another symlink,
15338 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15339
15340 case $with_aix_soname,$aix_use_runtimelinking in
15341 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15342 # soname into executable. Probably we can add versioning support to
15343 # collect2, so additional links can be useful in future.
15344 aix,yes) # traditional libtool
15345 dynamic_linker='AIX unversionable lib.so'
15346 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15347 # instead of lib<name>.a to let people know that these are not
15348 # typical AIX shared libraries.
15349 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15350 ;;
15351 aix,no) # traditional AIX only
15352 dynamic_linker='AIX lib.a(lib.so.V)'
15353 # We preserve .a as extension for shared libraries through AIX4.2
15354 # and later when we are not doing run time linking.
15355 library_names_spec='$libname$release.a $libname.a'
15356 soname_spec='$libname$release$shared_ext$major'
15357 ;;
15358 svr4,*) # full svr4 only
15359 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15360 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15361 # We do not specify a path in Import Files, so LIBPATH fires.
15362 shlibpath_overrides_runpath=yes
15363 ;;
15364 *,yes) # both, prefer svr4
15365 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15366 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15367 # unpreferred sharedlib libNAME.a needs extra handling
15368 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15369 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15370 # We do not specify a path in Import Files, so LIBPATH fires.
15371 shlibpath_overrides_runpath=yes
15372 ;;
15373 *,no) # both, prefer aix
15374 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15375 library_names_spec='$libname$release.a $libname.a'
15376 soname_spec='$libname$release$shared_ext$major'
15377 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15378 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15379 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15380 ;;
15381 esac
15382 shlibpath_var=LIBPATH
15383 fi
15384 ;;
15385
15386 amigaos*)
15387 case $host_cpu in
15388 powerpc)
15389 # Since July 2007 AmigaOS4 officially supports .so libraries.
15390 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15392 ;;
15393 m68k)
15394 library_names_spec='$libname.ixlibrary $libname.a'
15395 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15396 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15397 ;;
15398 esac
15399 ;;
15400
15401 beos*)
15402 library_names_spec='$libname$shared_ext'
15403 dynamic_linker="$host_os ld.so"
15404 shlibpath_var=LIBRARY_PATH
15405 ;;
15406
15407 bsdi[45]*)
15408 version_type=linux # correct to gnu/linux during the next big refactor
15409 need_version=no
15410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15411 soname_spec='$libname$release$shared_ext$major'
15412 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15413 shlibpath_var=LD_LIBRARY_PATH
15414 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15415 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15416 # the default ld.so.conf also contains /usr/contrib/lib and
15417 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15418 # libtool to hard-code these into programs
15419 ;;
15420
15421 cygwin* | mingw* | pw32* | cegcc*)
15422 version_type=windows
15423 shrext_cmds=.dll
15424 need_version=no
15425 need_lib_prefix=no
15426
15427 case $GCC,$cc_basename in
15428 yes,*)
15429 # gcc
15430 library_names_spec='$libname.dll.a'
15431 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15432 postinstall_cmds='base_file=`basename \$file`~
15433 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15434 dldir=$destdir/`dirname \$dlpath`~
15435 test -d \$dldir || mkdir -p \$dldir~
15436 $install_prog $dir/$dlname \$dldir/$dlname~
15437 chmod a+x \$dldir/$dlname~
15438 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15439 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15440 fi'
15441 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15442 dlpath=$dir/\$dldll~
15443 $RM \$dlpath'
15444 shlibpath_overrides_runpath=yes
15445
15446 case $host_os in
15447 cygwin*)
15448 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15449 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15450
15451 ;;
15452 mingw* | cegcc*)
15453 # MinGW DLLs use traditional 'lib' prefix
15454 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15455 ;;
15456 pw32*)
15457 # pw32 DLLs use 'pw' prefix rather than 'lib'
15458 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15459 ;;
15460 esac
15461 dynamic_linker='Win32 ld.exe'
15462 ;;
15463
15464 *,cl*)
15465 # Native MSVC
15466 libname_spec='$name'
15467 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15468 library_names_spec='$libname.dll.lib'
15469
15470 case $build_os in
15471 mingw*)
15472 sys_lib_search_path_spec=
15473 lt_save_ifs=$IFS
15474 IFS=';'
15475 for lt_path in $LIB
15476 do
15477 IFS=$lt_save_ifs
15478 # Let DOS variable expansion print the short 8.3 style file name.
15479 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15480 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15481 done
15482 IFS=$lt_save_ifs
15483 # Convert to MSYS style.
15484 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15485 ;;
15486 cygwin*)
15487 # Convert to unix form, then to dos form, then back to unix form
15488 # but this time dos style (no spaces!) so that the unix form looks
15489 # like /cygdrive/c/PROGRA~1:/cygdr...
15490 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15491 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15492 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15493 ;;
15494 *)
15495 sys_lib_search_path_spec=$LIB
15496 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15497 # It is most probably a Windows format PATH.
15498 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15499 else
15500 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15501 fi
15502 # FIXME: find the short name or the path components, as spaces are
15503 # common. (e.g. "Program Files" -> "PROGRA~1")
15504 ;;
15505 esac
15506
15507 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15508 postinstall_cmds='base_file=`basename \$file`~
15509 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15510 dldir=$destdir/`dirname \$dlpath`~
15511 test -d \$dldir || mkdir -p \$dldir~
15512 $install_prog $dir/$dlname \$dldir/$dlname'
15513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15514 dlpath=$dir/\$dldll~
15515 $RM \$dlpath'
15516 shlibpath_overrides_runpath=yes
15517 dynamic_linker='Win32 link.exe'
15518 ;;
15519
15520 *)
15521 # Assume MSVC wrapper
15522 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15523 dynamic_linker='Win32 ld.exe'
15524 ;;
15525 esac
15526 # FIXME: first we should search . and the directory the executable is in
15527 shlibpath_var=PATH
15528 ;;
15529
15530 darwin* | rhapsody*)
15531 dynamic_linker="$host_os dyld"
15532 version_type=darwin
15533 need_lib_prefix=no
15534 need_version=no
15535 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15536 soname_spec='$libname$release$major$shared_ext'
15537 shlibpath_overrides_runpath=yes
15538 shlibpath_var=DYLD_LIBRARY_PATH
15539 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15540
15541 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15542 ;;
15543
15544 dgux*)
15545 version_type=linux # correct to gnu/linux during the next big refactor
15546 need_lib_prefix=no
15547 need_version=no
15548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15549 soname_spec='$libname$release$shared_ext$major'
15550 shlibpath_var=LD_LIBRARY_PATH
15551 ;;
15552
15553 freebsd* | dragonfly*)
15554 # DragonFly does not have aout. When/if they implement a new
15555 # versioning mechanism, adjust this.
15556 if test -x /usr/bin/objformat; then
15557 objformat=`/usr/bin/objformat`
15558 else
15559 case $host_os in
15560 freebsd[23].*) objformat=aout ;;
15561 *) objformat=elf ;;
15562 esac
15563 fi
15564 version_type=freebsd-$objformat
15565 case $version_type in
15566 freebsd-elf*)
15567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15568 soname_spec='$libname$release$shared_ext$major'
15569 need_version=no
15570 need_lib_prefix=no
15571 ;;
15572 freebsd-*)
15573 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15574 need_version=yes
15575 ;;
15576 esac
15577 shlibpath_var=LD_LIBRARY_PATH
15578 case $host_os in
15579 freebsd2.*)
15580 shlibpath_overrides_runpath=yes
15581 ;;
15582 freebsd3.[01]* | freebsdelf3.[01]*)
15583 shlibpath_overrides_runpath=yes
15584 hardcode_into_libs=yes
15585 ;;
15586 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15587 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15588 shlibpath_overrides_runpath=no
15589 hardcode_into_libs=yes
15590 ;;
15591 *) # from 4.6 on, and DragonFly
15592 shlibpath_overrides_runpath=yes
15593 hardcode_into_libs=yes
15594 ;;
15595 esac
15596 ;;
15597
15598 haiku*)
15599 version_type=linux # correct to gnu/linux during the next big refactor
15600 need_lib_prefix=no
15601 need_version=no
15602 dynamic_linker="$host_os runtime_loader"
15603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15604 soname_spec='$libname$release$shared_ext$major'
15605 shlibpath_var=LIBRARY_PATH
15606 shlibpath_overrides_runpath=no
15607 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15608 hardcode_into_libs=yes
15609 ;;
15610
15611 hpux9* | hpux10* | hpux11*)
15612 # Give a soname corresponding to the major version so that dld.sl refuses to
15613 # link against other versions.
15614 version_type=sunos
15615 need_lib_prefix=no
15616 need_version=no
15617 case $host_cpu in
15618 ia64*)
15619 shrext_cmds='.so'
15620 hardcode_into_libs=yes
15621 dynamic_linker="$host_os dld.so"
15622 shlibpath_var=LD_LIBRARY_PATH
15623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15625 soname_spec='$libname$release$shared_ext$major'
15626 if test 32 = "$HPUX_IA64_MODE"; then
15627 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15628 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15629 else
15630 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15631 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15632 fi
15633 ;;
15634 hppa*64*)
15635 shrext_cmds='.sl'
15636 hardcode_into_libs=yes
15637 dynamic_linker="$host_os dld.sl"
15638 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15639 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15641 soname_spec='$libname$release$shared_ext$major'
15642 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15643 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15644 ;;
15645 *)
15646 shrext_cmds='.sl'
15647 dynamic_linker="$host_os dld.sl"
15648 shlibpath_var=SHLIB_PATH
15649 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15651 soname_spec='$libname$release$shared_ext$major'
15652 ;;
15653 esac
15654 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15655 postinstall_cmds='chmod 555 $lib'
15656 # or fails outright, so override atomically:
15657 install_override_mode=555
15658 ;;
15659
15660 interix[3-9]*)
15661 version_type=linux # correct to gnu/linux during the next big refactor
15662 need_lib_prefix=no
15663 need_version=no
15664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15665 soname_spec='$libname$release$shared_ext$major'
15666 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15667 shlibpath_var=LD_LIBRARY_PATH
15668 shlibpath_overrides_runpath=no
15669 hardcode_into_libs=yes
15670 ;;
15671
15672 irix5* | irix6* | nonstopux*)
15673 case $host_os in
15674 nonstopux*) version_type=nonstopux ;;
15675 *)
15676 if test yes = "$lt_cv_prog_gnu_ld"; then
15677 version_type=linux # correct to gnu/linux during the next big refactor
15678 else
15679 version_type=irix
15680 fi ;;
15681 esac
15682 need_lib_prefix=no
15683 need_version=no
15684 soname_spec='$libname$release$shared_ext$major'
15685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15686 case $host_os in
15687 irix5* | nonstopux*)
15688 libsuff= shlibsuff=
15689 ;;
15690 *)
15691 case $LD in # libtool.m4 will add one of these switches to LD
15692 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15693 libsuff= shlibsuff= libmagic=32-bit;;
15694 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15695 libsuff=32 shlibsuff=N32 libmagic=N32;;
15696 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15697 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15698 *) libsuff= shlibsuff= libmagic=never-match;;
15699 esac
15700 ;;
15701 esac
15702 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15703 shlibpath_overrides_runpath=no
15704 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15705 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15706 hardcode_into_libs=yes
15707 ;;
15708
15709 # No shared lib support for Linux oldld, aout, or coff.
15710 linux*oldld* | linux*aout* | linux*coff*)
15711 dynamic_linker=no
15712 ;;
15713
15714 linux*android*)
15715 version_type=none # Android doesn't support versioned libraries.
15716 need_lib_prefix=no
15717 need_version=no
15718 library_names_spec='$libname$release$shared_ext'
15719 soname_spec='$libname$release$shared_ext'
15720 finish_cmds=
15721 shlibpath_var=LD_LIBRARY_PATH
15722 shlibpath_overrides_runpath=yes
15723
15724 # This implies no fast_install, which is unacceptable.
15725 # Some rework will be needed to allow for fast_install
15726 # before this can be enabled.
15727 hardcode_into_libs=yes
15728
15729 dynamic_linker='Android linker'
15730 # Don't embed -rpath directories since the linker doesn't support them.
15731 hardcode_libdir_flag_spec_CXX='-L$libdir'
15732 ;;
15733
15734 # This must be glibc/ELF.
15735 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15736 version_type=linux # correct to gnu/linux during the next big refactor
15737 need_lib_prefix=no
15738 need_version=no
15739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15740 soname_spec='$libname$release$shared_ext$major'
15741 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15742 shlibpath_var=LD_LIBRARY_PATH
15743 shlibpath_overrides_runpath=no
15744
15745 # Some binutils ld are patched to set DT_RUNPATH
15746 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15747 $as_echo_n "(cached) " >&6
15748 else
15749 lt_cv_shlibpath_overrides_runpath=no
15750 save_LDFLAGS=$LDFLAGS
15751 save_libdir=$libdir
15752 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15753 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15755 /* end confdefs.h. */
15756
15757 int
15758 main ()
15759 {
15760
15761 ;
15762 return 0;
15763 }
15764 _ACEOF
15765 if ac_fn_cxx_try_link "$LINENO"; then :
15766 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15767 lt_cv_shlibpath_overrides_runpath=yes
15768 fi
15769 fi
15770 rm -f core conftest.err conftest.$ac_objext \
15771 conftest$ac_exeext conftest.$ac_ext
15772 LDFLAGS=$save_LDFLAGS
15773 libdir=$save_libdir
15774
15775 fi
15776
15777 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15778
15779 # This implies no fast_install, which is unacceptable.
15780 # Some rework will be needed to allow for fast_install
15781 # before this can be enabled.
15782 hardcode_into_libs=yes
15783
15784 # Add ABI-specific directories to the system library path.
15785 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15786
15787 # Ideally, we could use ldconfig to report *all* directores which are
15788 # searched for libraries, however this is still not possible. Aside from not
15789 # being certain /sbin/ldconfig is available, command
15790 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15791 # even though it is searched at run-time. Try to do the best guess by
15792 # appending ld.so.conf contents (and includes) to the search path.
15793 if test -f /etc/ld.so.conf; then
15794 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' ' '`
15795 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15796 fi
15797
15798 # We used to test for /lib/ld.so.1 and disable shared libraries on
15799 # powerpc, because MkLinux only supported shared libraries with the
15800 # GNU dynamic linker. Since this was broken with cross compilers,
15801 # most powerpc-linux boxes support dynamic linking these days and
15802 # people can always --disable-shared, the test was removed, and we
15803 # assume the GNU/Linux dynamic linker is in use.
15804 dynamic_linker='GNU/Linux ld.so'
15805 ;;
15806
15807 netbsd*)
15808 version_type=sunos
15809 need_lib_prefix=no
15810 need_version=no
15811 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15812 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15814 dynamic_linker='NetBSD (a.out) ld.so'
15815 else
15816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15817 soname_spec='$libname$release$shared_ext$major'
15818 dynamic_linker='NetBSD ld.elf_so'
15819 fi
15820 shlibpath_var=LD_LIBRARY_PATH
15821 shlibpath_overrides_runpath=yes
15822 hardcode_into_libs=yes
15823 ;;
15824
15825 newsos6)
15826 version_type=linux # correct to gnu/linux during the next big refactor
15827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15828 shlibpath_var=LD_LIBRARY_PATH
15829 shlibpath_overrides_runpath=yes
15830 ;;
15831
15832 *nto* | *qnx*)
15833 version_type=qnx
15834 need_lib_prefix=no
15835 need_version=no
15836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15837 soname_spec='$libname$release$shared_ext$major'
15838 shlibpath_var=LD_LIBRARY_PATH
15839 shlibpath_overrides_runpath=no
15840 hardcode_into_libs=yes
15841 dynamic_linker='ldqnx.so'
15842 ;;
15843
15844 openbsd* | bitrig*)
15845 version_type=sunos
15846 sys_lib_dlsearch_path_spec=/usr/lib
15847 need_lib_prefix=no
15848 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15849 need_version=no
15850 else
15851 need_version=yes
15852 fi
15853 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15855 shlibpath_var=LD_LIBRARY_PATH
15856 shlibpath_overrides_runpath=yes
15857 ;;
15858
15859 os2*)
15860 libname_spec='$name'
15861 version_type=windows
15862 shrext_cmds=.dll
15863 need_version=no
15864 need_lib_prefix=no
15865 # OS/2 can only load a DLL with a base name of 8 characters or less.
15866 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15867 v=$($ECHO $release$versuffix | tr -d .-);
15868 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15869 $ECHO $n$v`$shared_ext'
15870 library_names_spec='${libname}_dll.$libext'
15871 dynamic_linker='OS/2 ld.exe'
15872 shlibpath_var=BEGINLIBPATH
15873 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15874 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15875 postinstall_cmds='base_file=`basename \$file`~
15876 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15877 dldir=$destdir/`dirname \$dlpath`~
15878 test -d \$dldir || mkdir -p \$dldir~
15879 $install_prog $dir/$dlname \$dldir/$dlname~
15880 chmod a+x \$dldir/$dlname~
15881 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15882 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15883 fi'
15884 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15885 dlpath=$dir/\$dldll~
15886 $RM \$dlpath'
15887 ;;
15888
15889 osf3* | osf4* | osf5*)
15890 version_type=osf
15891 need_lib_prefix=no
15892 need_version=no
15893 soname_spec='$libname$release$shared_ext$major'
15894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15895 shlibpath_var=LD_LIBRARY_PATH
15896 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15897 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15898 ;;
15899
15900 rdos*)
15901 dynamic_linker=no
15902 ;;
15903
15904 solaris*)
15905 version_type=linux # correct to gnu/linux during the next big refactor
15906 need_lib_prefix=no
15907 need_version=no
15908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15909 soname_spec='$libname$release$shared_ext$major'
15910 shlibpath_var=LD_LIBRARY_PATH
15911 shlibpath_overrides_runpath=yes
15912 hardcode_into_libs=yes
15913 # ldd complains unless libraries are executable
15914 postinstall_cmds='chmod +x $lib'
15915 ;;
15916
15917 sunos4*)
15918 version_type=sunos
15919 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15920 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15921 shlibpath_var=LD_LIBRARY_PATH
15922 shlibpath_overrides_runpath=yes
15923 if test yes = "$with_gnu_ld"; then
15924 need_lib_prefix=no
15925 fi
15926 need_version=yes
15927 ;;
15928
15929 sysv4 | sysv4.3*)
15930 version_type=linux # correct to gnu/linux during the next big refactor
15931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15932 soname_spec='$libname$release$shared_ext$major'
15933 shlibpath_var=LD_LIBRARY_PATH
15934 case $host_vendor in
15935 sni)
15936 shlibpath_overrides_runpath=no
15937 need_lib_prefix=no
15938 runpath_var=LD_RUN_PATH
15939 ;;
15940 siemens)
15941 need_lib_prefix=no
15942 ;;
15943 motorola)
15944 need_lib_prefix=no
15945 need_version=no
15946 shlibpath_overrides_runpath=no
15947 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15948 ;;
15949 esac
15950 ;;
15951
15952 sysv4*MP*)
15953 if test -d /usr/nec; then
15954 version_type=linux # correct to gnu/linux during the next big refactor
15955 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15956 soname_spec='$libname$shared_ext.$major'
15957 shlibpath_var=LD_LIBRARY_PATH
15958 fi
15959 ;;
15960
15961 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15962 version_type=sco
15963 need_lib_prefix=no
15964 need_version=no
15965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15966 soname_spec='$libname$release$shared_ext$major'
15967 shlibpath_var=LD_LIBRARY_PATH
15968 shlibpath_overrides_runpath=yes
15969 hardcode_into_libs=yes
15970 if test yes = "$with_gnu_ld"; then
15971 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15972 else
15973 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15974 case $host_os in
15975 sco3.2v5*)
15976 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15977 ;;
15978 esac
15979 fi
15980 sys_lib_dlsearch_path_spec='/usr/lib'
15981 ;;
15982
15983 tpf*)
15984 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15985 version_type=linux # correct to gnu/linux during the next big refactor
15986 need_lib_prefix=no
15987 need_version=no
15988 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15989 shlibpath_var=LD_LIBRARY_PATH
15990 shlibpath_overrides_runpath=no
15991 hardcode_into_libs=yes
15992 ;;
15993
15994 uts4*)
15995 version_type=linux # correct to gnu/linux during the next big refactor
15996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15997 soname_spec='$libname$release$shared_ext$major'
15998 shlibpath_var=LD_LIBRARY_PATH
15999 ;;
16000
16001 *)
16002 dynamic_linker=no
16003 ;;
16004 esac
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16006 $as_echo "$dynamic_linker" >&6; }
16007 test no = "$dynamic_linker" && can_build_shared=no
16008
16009 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16010 if test yes = "$GCC"; then
16011 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16012 fi
16013
16014 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16015 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16016 fi
16017
16018 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16019 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16020 fi
16021
16022 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16023 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16024
16025 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16026 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16027
16028 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16029 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16071 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16072 hardcode_action_CXX=
16073 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16074 test -n "$runpath_var_CXX" ||
16075 test yes = "$hardcode_automatic_CXX"; then
16076
16077 # We can hardcode non-existent directories.
16078 if test no != "$hardcode_direct_CXX" &&
16079 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16080 # have to relink, otherwise we might link with an installed library
16081 # when we should be linking with a yet-to-be-installed one
16082 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16083 test no != "$hardcode_minus_L_CXX"; then
16084 # Linking always hardcodes the temporary library directory.
16085 hardcode_action_CXX=relink
16086 else
16087 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16088 hardcode_action_CXX=immediate
16089 fi
16090 else
16091 # We cannot hardcode anything, or else we can only hardcode existing
16092 # directories.
16093 hardcode_action_CXX=unsupported
16094 fi
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16096 $as_echo "$hardcode_action_CXX" >&6; }
16097
16098 if test relink = "$hardcode_action_CXX" ||
16099 test yes = "$inherit_rpath_CXX"; then
16100 # Fast installation is not supported
16101 enable_fast_install=no
16102 elif test yes = "$shlibpath_overrides_runpath" ||
16103 test no = "$enable_shared"; then
16104 # Fast installation is not necessary
16105 enable_fast_install=needless
16106 fi
16107
16108
16109
16110
16111
16112
16113
16114 fi # test -n "$compiler"
16115
16116 CC=$lt_save_CC
16117 CFLAGS=$lt_save_CFLAGS
16118 LDCXX=$LD
16119 LD=$lt_save_LD
16120 GCC=$lt_save_GCC
16121 with_gnu_ld=$lt_save_with_gnu_ld
16122 lt_cv_path_LDCXX=$lt_cv_path_LD
16123 lt_cv_path_LD=$lt_save_path_LD
16124 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16125 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16126 fi # test yes != "$_lt_caught_CXX_error"
16127
16128 ac_ext=c
16129 ac_cpp='$CPP $CPPFLAGS'
16130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148 ac_config_commands="$ac_config_commands libtool"
16149
16150
16151
16152
16153 # Only expand once:
16154
16155
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
16157 $as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
16158 if ${libltdl_cv_shlibext+:} false; then :
16159 $as_echo_n "(cached) " >&6
16160 else
16161
16162 module=yes
16163 eval libltdl_cv_shlibext=$shrext_cmds
16164 module=no
16165 eval libltdl_cv_shrext=$shrext_cmds
16166
16167 fi
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
16169 $as_echo "$libltdl_cv_shlibext" >&6; }
16170 if test -n "$libltdl_cv_shlibext"; then
16171
16172 cat >>confdefs.h <<_ACEOF
16173 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
16174 _ACEOF
16175
16176 fi
16177 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
16178
16179 cat >>confdefs.h <<_ACEOF
16180 #define LT_SHARED_EXT "$libltdl_cv_shrext"
16181 _ACEOF
16182
16183 fi
16184 if test -n "$shared_archive_member_spec"; then
16185
16186 cat >>confdefs.h <<_ACEOF
16187 #define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
16188 _ACEOF
16189
16190 fi
16191
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
16193 $as_echo_n "checking what variable specifies run-time module search path... " >&6; }
16194 if ${lt_cv_module_path_var+:} false; then :
16195 $as_echo_n "(cached) " >&6
16196 else
16197 lt_cv_module_path_var=$shlibpath_var
16198 fi
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
16200 $as_echo "$lt_cv_module_path_var" >&6; }
16201 if test -n "$lt_cv_module_path_var"; then
16202
16203 cat >>confdefs.h <<_ACEOF
16204 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
16205 _ACEOF
16206
16207 fi
16208
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
16210 $as_echo_n "checking for the default library search path... " >&6; }
16211 if ${lt_cv_sys_dlsearch_path+:} false; then :
16212 $as_echo_n "(cached) " >&6
16213 else
16214 lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec
16215 fi
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
16217 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
16218 if test -n "$lt_cv_sys_dlsearch_path"; then
16219 sys_dlsearch_path=
16220 for dir in $lt_cv_sys_dlsearch_path; do
16221 if test -z "$sys_dlsearch_path"; then
16222 sys_dlsearch_path=$dir
16223 else
16224 sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
16225 fi
16226 done
16227
16228 cat >>confdefs.h <<_ACEOF
16229 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
16230 _ACEOF
16231
16232 fi
16233
16234
16235 LT_DLLOADERS=
16236
16237
16238 ac_ext=c
16239 ac_cpp='$CPP $CPPFLAGS'
16240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16243
16244 lt_dlload_save_LIBS=$LIBS
16245
16246 LIBADD_DLOPEN=
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16248 $as_echo_n "checking for library containing dlopen... " >&6; }
16249 if ${ac_cv_search_dlopen+:} false; then :
16250 $as_echo_n "(cached) " >&6
16251 else
16252 ac_func_search_save_LIBS=$LIBS
16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h. */
16255
16256 /* Override any GCC internal prototype to avoid an error.
16257 Use char because int might match the return type of a GCC
16258 builtin and then its argument prototype would still apply. */
16259 #ifdef __cplusplus
16260 extern "C"
16261 #endif
16262 char dlopen ();
16263 int
16264 main ()
16265 {
16266 return dlopen ();
16267 ;
16268 return 0;
16269 }
16270 _ACEOF
16271 for ac_lib in '' dl; do
16272 if test -z "$ac_lib"; then
16273 ac_res="none required"
16274 else
16275 ac_res=-l$ac_lib
16276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16277 fi
16278 if ac_fn_c_try_link "$LINENO"; then :
16279 ac_cv_search_dlopen=$ac_res
16280 fi
16281 rm -f core conftest.err conftest.$ac_objext \
16282 conftest$ac_exeext
16283 if ${ac_cv_search_dlopen+:} false; then :
16284 break
16285 fi
16286 done
16287 if ${ac_cv_search_dlopen+:} false; then :
16288
16289 else
16290 ac_cv_search_dlopen=no
16291 fi
16292 rm conftest.$ac_ext
16293 LIBS=$ac_func_search_save_LIBS
16294 fi
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16296 $as_echo "$ac_cv_search_dlopen" >&6; }
16297 ac_res=$ac_cv_search_dlopen
16298 if test "$ac_res" != no; then :
16299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16300
16301 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16302
16303 if test "$ac_cv_search_dlopen" != "none required"; then
16304 LIBADD_DLOPEN=-ldl
16305 fi
16306 libltdl_cv_lib_dl_dlopen=yes
16307 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16308 else
16309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310 /* end confdefs.h. */
16311 #if HAVE_DLFCN_H
16312 # include <dlfcn.h>
16313 #endif
16314
16315 int
16316 main ()
16317 {
16318 dlopen(0, 0);
16319 ;
16320 return 0;
16321 }
16322 _ACEOF
16323 if ac_fn_c_try_link "$LINENO"; then :
16324
16325 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16326
16327 libltdl_cv_func_dlopen=yes
16328 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16329 else
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16331 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16332 if ${ac_cv_lib_svld_dlopen+:} false; then :
16333 $as_echo_n "(cached) " >&6
16334 else
16335 ac_check_lib_save_LIBS=$LIBS
16336 LIBS="-lsvld $LIBS"
16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h. */
16339
16340 /* Override any GCC internal prototype to avoid an error.
16341 Use char because int might match the return type of a GCC
16342 builtin and then its argument prototype would still apply. */
16343 #ifdef __cplusplus
16344 extern "C"
16345 #endif
16346 char dlopen ();
16347 int
16348 main ()
16349 {
16350 return dlopen ();
16351 ;
16352 return 0;
16353 }
16354 _ACEOF
16355 if ac_fn_c_try_link "$LINENO"; then :
16356 ac_cv_lib_svld_dlopen=yes
16357 else
16358 ac_cv_lib_svld_dlopen=no
16359 fi
16360 rm -f core conftest.err conftest.$ac_objext \
16361 conftest$ac_exeext conftest.$ac_ext
16362 LIBS=$ac_check_lib_save_LIBS
16363 fi
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16365 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16366 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16367
16368 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16369
16370 LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
16371 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16372 fi
16373
16374 fi
16375 rm -f core conftest.err conftest.$ac_objext \
16376 conftest$ac_exeext conftest.$ac_ext
16377 fi
16378
16379 if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
16380 then
16381 lt_save_LIBS=$LIBS
16382 LIBS="$LIBS $LIBADD_DLOPEN"
16383 for ac_func in dlerror
16384 do :
16385 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16386 if test "x$ac_cv_func_dlerror" = xyes; then :
16387 cat >>confdefs.h <<_ACEOF
16388 #define HAVE_DLERROR 1
16389 _ACEOF
16390
16391 fi
16392 done
16393
16394 LIBS=$lt_save_LIBS
16395 fi
16396
16397
16398 LIBADD_SHL_LOAD=
16399 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16400 if test "x$ac_cv_func_shl_load" = xyes; then :
16401
16402 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16403
16404 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16405 else
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16407 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16408 if ${ac_cv_lib_dld_shl_load+:} false; then :
16409 $as_echo_n "(cached) " >&6
16410 else
16411 ac_check_lib_save_LIBS=$LIBS
16412 LIBS="-ldld $LIBS"
16413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16414 /* end confdefs.h. */
16415
16416 /* Override any GCC internal prototype to avoid an error.
16417 Use char because int might match the return type of a GCC
16418 builtin and then its argument prototype would still apply. */
16419 #ifdef __cplusplus
16420 extern "C"
16421 #endif
16422 char shl_load ();
16423 int
16424 main ()
16425 {
16426 return shl_load ();
16427 ;
16428 return 0;
16429 }
16430 _ACEOF
16431 if ac_fn_c_try_link "$LINENO"; then :
16432 ac_cv_lib_dld_shl_load=yes
16433 else
16434 ac_cv_lib_dld_shl_load=no
16435 fi
16436 rm -f core conftest.err conftest.$ac_objext \
16437 conftest$ac_exeext conftest.$ac_ext
16438 LIBS=$ac_check_lib_save_LIBS
16439 fi
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16441 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16442 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16443
16444 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16445
16446 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16447 LIBADD_SHL_LOAD=-ldld
16448 fi
16449
16450 fi
16451
16452
16453
16454 case $host_os in
16455 darwin[1567].*)
16456 # We only want this for pre-Mac OS X 10.4.
16457 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16458 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16459
16460 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16461
16462 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16463 fi
16464
16465 ;;
16466 beos*)
16467 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16468 ;;
16469 cygwin* | mingw* | pw32*)
16470 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16471 "
16472 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16473 ac_have_decl=1
16474 else
16475 ac_have_decl=0
16476 fi
16477
16478 cat >>confdefs.h <<_ACEOF
16479 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16480 _ACEOF
16481
16482 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16483 ;;
16484 esac
16485
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16487 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16488 if ${ac_cv_lib_dld_dld_link+:} false; then :
16489 $as_echo_n "(cached) " >&6
16490 else
16491 ac_check_lib_save_LIBS=$LIBS
16492 LIBS="-ldld $LIBS"
16493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494 /* end confdefs.h. */
16495
16496 /* Override any GCC internal prototype to avoid an error.
16497 Use char because int might match the return type of a GCC
16498 builtin and then its argument prototype would still apply. */
16499 #ifdef __cplusplus
16500 extern "C"
16501 #endif
16502 char dld_link ();
16503 int
16504 main ()
16505 {
16506 return dld_link ();
16507 ;
16508 return 0;
16509 }
16510 _ACEOF
16511 if ac_fn_c_try_link "$LINENO"; then :
16512 ac_cv_lib_dld_dld_link=yes
16513 else
16514 ac_cv_lib_dld_dld_link=no
16515 fi
16516 rm -f core conftest.err conftest.$ac_objext \
16517 conftest$ac_exeext conftest.$ac_ext
16518 LIBS=$ac_check_lib_save_LIBS
16519 fi
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16521 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16522 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16523
16524 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16525
16526 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16527 fi
16528
16529
16530
16531
16532 LT_DLPREOPEN=
16533 if test -n "$LT_DLLOADERS"
16534 then
16535 for lt_loader in $LT_DLLOADERS; do
16536 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16537 done
16538
16539 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16540
16541 fi
16542
16543
16544 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16545
16546
16547 LIBS=$lt_dlload_save_LIBS
16548 ac_ext=c
16549 ac_cpp='$CPP $CPPFLAGS'
16550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16553
16554
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
16556 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
16557 if ${lt_cv_sys_symbol_underscore+:} false; then :
16558 $as_echo_n "(cached) " >&6
16559 else
16560 lt_cv_sys_symbol_underscore=no
16561 cat > conftest.$ac_ext <<_LT_EOF
16562 void nm_test_func(){}
16563 int main(){nm_test_func;return 0;}
16564 _LT_EOF
16565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16566 (eval $ac_compile) 2>&5
16567 ac_status=$?
16568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16569 test $ac_status = 0; }; then
16570 # Now try to grab the symbols.
16571 ac_nlist=conftest.nm
16572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
16573 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16574 ac_status=$?
16575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16576 test $ac_status = 0; } && test -s "$ac_nlist"; then
16577 # See whether the symbols have a leading underscore.
16578 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16579 lt_cv_sys_symbol_underscore=yes
16580 else
16581 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16582 :
16583 else
16584 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16585 fi
16586 fi
16587 else
16588 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16589 fi
16590 else
16591 echo "configure: failed program was:" >&5
16592 cat conftest.c >&5
16593 fi
16594 rm -rf conftest*
16595
16596 fi
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
16598 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
16599 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
16600
16601
16602 if test yes = "$lt_cv_sys_symbol_underscore"; then
16603 if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
16605 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
16606 if ${libltdl_cv_need_uscore+:} false; then :
16607 $as_echo_n "(cached) " >&6
16608 else
16609 libltdl_cv_need_uscore=unknown
16610 dlsym_uscore_save_LIBS=$LIBS
16611 LIBS="$LIBS $LIBADD_DLOPEN"
16612 libname=conftmod # stay within 8.3 filename limits!
16613 cat >$libname.$ac_ext <<_LT_EOF
16614 #line $LINENO "configure"
16615 #include "confdefs.h"
16616 /* When -fvisibility=hidden is used, assume the code has been annotated
16617 correspondingly for the symbols needed. */
16618 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16619 int fnord () __attribute__((visibility("default")));
16620 #endif
16621 int fnord () { return 42; }
16622 _LT_EOF
16623
16624 # ltfn_module_cmds module_cmds
16625 # Execute tilde-delimited MODULE_CMDS with environment primed for
16626 # $module_cmds or $archive_cmds type content.
16627 ltfn_module_cmds ()
16628 {( # subshell avoids polluting parent global environment
16629 module_cmds_save_ifs=$IFS; IFS='~'
16630 for cmd in $1; do
16631 IFS=$module_cmds_save_ifs
16632 libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
16633 rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
16634 major=; versuffix=; verstring=; deplibs=
16635 ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
16636 eval $cmd
16637 done
16638 IFS=$module_cmds_save_ifs
16639 )}
16640
16641 # Compile a loadable module using libtool macro expansion results.
16642 $CC $pic_flag -c $libname.$ac_ext
16643 ltfn_module_cmds "${module_cmds:-$archive_cmds}"
16644
16645 # Try to fetch fnord with dlsym().
16646 libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
16647 cat >conftest.$ac_ext <<_LT_EOF
16648 #line $LINENO "configure"
16649 #include "confdefs.h"
16650 #if HAVE_DLFCN_H
16651 #include <dlfcn.h>
16652 #endif
16653 #include <stdio.h>
16654 #ifndef RTLD_GLOBAL
16655 # ifdef DL_GLOBAL
16656 # define RTLD_GLOBAL DL_GLOBAL
16657 # else
16658 # define RTLD_GLOBAL 0
16659 # endif
16660 #endif
16661 #ifndef RTLD_NOW
16662 # ifdef DL_NOW
16663 # define RTLD_NOW DL_NOW
16664 # else
16665 # define RTLD_NOW 0
16666 # endif
16667 #endif
16668 int main () {
16669 void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
16670 int status = $libltdl_dlunknown;
16671 if (handle) {
16672 if (dlsym (handle, "fnord"))
16673 status = $libltdl_dlnouscore;
16674 else {
16675 if (dlsym (handle, "_fnord"))
16676 status = $libltdl_dluscore;
16677 else
16678 puts (dlerror ());
16679 }
16680 dlclose (handle);
16681 } else
16682 puts (dlerror ());
16683 return status;
16684 }
16685 _LT_EOF
16686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16687 (eval $ac_link) 2>&5
16688 ac_status=$?
16689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16690 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16691 (./conftest; exit; ) >&5 2>/dev/null
16692 libltdl_status=$?
16693 case x$libltdl_status in
16694 x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
16695 x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
16696 x*) libltdl_cv_need_uscore=unknown ;;
16697 esac
16698 fi
16699 rm -rf conftest* $libname*
16700 LIBS=$dlsym_uscore_save_LIBS
16701
16702 fi
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
16704 $as_echo "$libltdl_cv_need_uscore" >&6; }
16705 fi
16706 fi
16707
16708 if test yes = "$libltdl_cv_need_uscore"; then
16709
16710 $as_echo "#define NEED_USCORE 1" >>confdefs.h
16711
16712 fi
16713
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
16715 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
16716 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
16717 $as_echo_n "(cached) " >&6
16718 else
16719 # PORTME does your system automatically load deplibs for dlopen?
16720 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16721 # For now, we just catch OSes we know something about -- in the
16722 # future, we'll try test this programmatically.
16723 lt_cv_sys_dlopen_deplibs=unknown
16724 case $host_os in
16725 aix3*|aix4.1.*|aix4.2.*)
16726 # Unknown whether this is true for these versions of AIX, but
16727 # we want this 'case' here to explicitly catch those versions.
16728 lt_cv_sys_dlopen_deplibs=unknown
16729 ;;
16730 aix[4-9]*)
16731 lt_cv_sys_dlopen_deplibs=yes
16732 ;;
16733 amigaos*)
16734 case $host_cpu in
16735 powerpc)
16736 lt_cv_sys_dlopen_deplibs=no
16737 ;;
16738 esac
16739 ;;
16740 bitrig*)
16741 lt_cv_sys_dlopen_deplibs=yes
16742 ;;
16743 darwin*)
16744 # Assuming the user has installed a libdl from somewhere, this is true
16745 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16746 lt_cv_sys_dlopen_deplibs=yes
16747 ;;
16748 freebsd* | dragonfly*)
16749 lt_cv_sys_dlopen_deplibs=yes
16750 ;;
16751 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
16752 # GNU and its variants, using gnu ld.so (Glibc)
16753 lt_cv_sys_dlopen_deplibs=yes
16754 ;;
16755 hpux10*|hpux11*)
16756 lt_cv_sys_dlopen_deplibs=yes
16757 ;;
16758 interix*)
16759 lt_cv_sys_dlopen_deplibs=yes
16760 ;;
16761 irix[12345]*|irix6.[01]*)
16762 # Catch all versions of IRIX before 6.2, and indicate that we don't
16763 # know how it worked for any of those versions.
16764 lt_cv_sys_dlopen_deplibs=unknown
16765 ;;
16766 irix*)
16767 # The case above catches anything before 6.2, and it's known that
16768 # at 6.2 and later dlopen does load deplibs.
16769 lt_cv_sys_dlopen_deplibs=yes
16770 ;;
16771 netbsd*)
16772 lt_cv_sys_dlopen_deplibs=yes
16773 ;;
16774 openbsd*)
16775 lt_cv_sys_dlopen_deplibs=yes
16776 ;;
16777 osf[1234]*)
16778 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16779 # it did *not* use an RPATH in a shared library to find objects the
16780 # library depends on, so we explicitly say 'no'.
16781 lt_cv_sys_dlopen_deplibs=no
16782 ;;
16783 osf5.0|osf5.0a|osf5.1)
16784 # dlopen *does* load deplibs and with the right loader patch applied
16785 # it even uses RPATH in a shared library to search for shared objects
16786 # that the library depends on, but there's no easy way to know if that
16787 # patch is installed. Since this is the case, all we can really
16788 # say is unknown -- it depends on the patch being installed. If
16789 # it is, this changes to 'yes'. Without it, it would be 'no'.
16790 lt_cv_sys_dlopen_deplibs=unknown
16791 ;;
16792 osf*)
16793 # the two cases above should catch all versions of osf <= 5.1. Read
16794 # the comments above for what we know about them.
16795 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16796 # is used to find them so we can finally say 'yes'.
16797 lt_cv_sys_dlopen_deplibs=yes
16798 ;;
16799 qnx*)
16800 lt_cv_sys_dlopen_deplibs=yes
16801 ;;
16802 solaris*)
16803 lt_cv_sys_dlopen_deplibs=yes
16804 ;;
16805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16806 libltdl_cv_sys_dlopen_deplibs=yes
16807 ;;
16808 esac
16809
16810 fi
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
16812 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
16813 if test yes != "$lt_cv_sys_dlopen_deplibs"; then
16814
16815 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
16816
16817 fi
16818
16819
16820 for ac_header in argz.h
16821 do :
16822 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
16823 "
16824 if test "x$ac_cv_header_argz_h" = xyes; then :
16825 cat >>confdefs.h <<_ACEOF
16826 #define HAVE_ARGZ_H 1
16827 _ACEOF
16828
16829 fi
16830
16831 done
16832
16833
16834 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
16835 # include <argz.h>
16836 #endif
16837 "
16838 if test "x$ac_cv_type_error_t" = xyes; then :
16839
16840 cat >>confdefs.h <<_ACEOF
16841 #define HAVE_ERROR_T 1
16842 _ACEOF
16843
16844
16845 else
16846
16847 $as_echo "#define error_t int" >>confdefs.h
16848
16849
16850 $as_echo "#define __error_t_defined 1" >>confdefs.h
16851
16852 fi
16853
16854
16855 LT_ARGZ_H=
16856 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16857 argz_next argz_stringify
16858 do :
16859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16860 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16861 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16862 cat >>confdefs.h <<_ACEOF
16863 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16864 _ACEOF
16865
16866 else
16867 LT_ARGZ_H=lt__argz.h;
16868
16869 _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
16870
16871 fi
16872 done
16873
16874
16875 if test -z "$LT_ARGZ_H"; then :
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
16877 $as_echo_n "checking if argz actually works... " >&6; }
16878 if ${lt_cv_sys_argz_works+:} false; then :
16879 $as_echo_n "(cached) " >&6
16880 else
16881 case $host_os in #(
16882 *cygwin*)
16883 lt_cv_sys_argz_works=no
16884 if test no != "$cross_compiling"; then
16885 lt_cv_sys_argz_works="guessing no"
16886 else
16887 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16888 save_IFS=$IFS
16889 IFS=-.
16890 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16891 IFS=$save_IFS
16892 lt_os_major=${2-0}
16893 lt_os_minor=${3-0}
16894 lt_os_micro=${4-0}
16895 if test 1 -lt "$lt_os_major" \
16896 || { test 1 -eq "$lt_os_major" \
16897 && { test 5 -lt "$lt_os_minor" \
16898 || { test 5 -eq "$lt_os_minor" \
16899 && test 24 -lt "$lt_os_micro"; }; }; }; then
16900 lt_cv_sys_argz_works=yes
16901 fi
16902 fi
16903 ;; #(
16904 *) lt_cv_sys_argz_works=yes ;;
16905 esac
16906 fi
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
16908 $as_echo "$lt_cv_sys_argz_works" >&6; }
16909 if test yes = "$lt_cv_sys_argz_works"; then :
16910
16911 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
16912
16913 else
16914 LT_ARGZ_H=lt__argz.h
16915
16916
16917 _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
16918
16919 fi
16920 fi
16921
16922
16923
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
16925 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
16926 if ${libltdl_cv_preloaded_symbols+:} false; then :
16927 $as_echo_n "(cached) " >&6
16928 else
16929 if test -n "$lt_cv_sys_global_symbol_pipe"; then
16930 libltdl_cv_preloaded_symbols=yes
16931 else
16932 libltdl_cv_preloaded_symbols=no
16933 fi
16934
16935 fi
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
16937 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
16938 if test yes = "$libltdl_cv_preloaded_symbols"; then
16939
16940 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
16941
16942 fi
16943
16944
16945
16946 # Set options
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959 # Check whether --with-included_ltdl was given.
16960 if test "${with_included_ltdl+set}" = set; then :
16961 withval=$with_included_ltdl;
16962 fi
16963
16964
16965 if test yes != "$with_included_ltdl"; then
16966 # We are not being forced to use the included libltdl sources, so
16967 # decide whether there is a useful installed version we can use.
16968 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
16969
16970 "
16971 if test "x$ac_cv_header_ltdl_h" = xyes; then :
16972 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
16973 #include <ltdl.h>
16974 "
16975 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
16977 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
16978 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
16979 $as_echo_n "(cached) " >&6
16980 else
16981 ac_check_lib_save_LIBS=$LIBS
16982 LIBS="-lltdl $LIBS"
16983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984 /* end confdefs.h. */
16985
16986 /* Override any GCC internal prototype to avoid an error.
16987 Use char because int might match the return type of a GCC
16988 builtin and then its argument prototype would still apply. */
16989 #ifdef __cplusplus
16990 extern "C"
16991 #endif
16992 char lt_dladvise_preload ();
16993 int
16994 main ()
16995 {
16996 return lt_dladvise_preload ();
16997 ;
16998 return 0;
16999 }
17000 _ACEOF
17001 if ac_fn_c_try_link "$LINENO"; then :
17002 ac_cv_lib_ltdl_lt_dladvise_preload=yes
17003 else
17004 ac_cv_lib_ltdl_lt_dladvise_preload=no
17005 fi
17006 rm -f core conftest.err conftest.$ac_objext \
17007 conftest$ac_exeext conftest.$ac_ext
17008 LIBS=$ac_check_lib_save_LIBS
17009 fi
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
17011 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
17012 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
17013 with_included_ltdl=no
17014 else
17015 with_included_ltdl=yes
17016 fi
17017
17018 else
17019 with_included_ltdl=yes
17020 fi
17021
17022 else
17023 with_included_ltdl=yes
17024 fi
17025
17026
17027 fi
17028
17029
17030
17031
17032
17033
17034
17035
17036 # Check whether --with-ltdl_include was given.
17037 if test "${with_ltdl_include+set}" = set; then :
17038 withval=$with_ltdl_include;
17039 fi
17040
17041
17042 if test -n "$with_ltdl_include"; then
17043 if test -f "$with_ltdl_include/ltdl.h"; then :
17044 else
17045 as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
17046 fi
17047 else
17048 with_ltdl_include=no
17049 fi
17050
17051
17052 # Check whether --with-ltdl_lib was given.
17053 if test "${with_ltdl_lib+set}" = set; then :
17054 withval=$with_ltdl_lib;
17055 fi
17056
17057
17058 if test -n "$with_ltdl_lib"; then
17059 if test -f "$with_ltdl_lib/libltdl.la"; then :
17060 else
17061 as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
17062 fi
17063 else
17064 with_ltdl_lib=no
17065 fi
17066
17067 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
17068 ,yes,no,no,)
17069 case $enable_ltdl_convenience in
17070 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
17071 "") enable_ltdl_convenience=yes
17072 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
17073 esac
17074 LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
17075 LTDLDEPS=$LIBLTDL
17076 LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
17077
17078
17079
17080
17081
17082 # For backwards non-gettext consistent compatibility...
17083 INCLTDL=$LTDLINCL
17084
17085
17086 ;;
17087 ,no,no,no,)
17088 # If the included ltdl is not to be used, then use the
17089 # preinstalled libltdl we found.
17090
17091 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
17092
17093 LIBLTDL=-lltdl
17094 LTDLDEPS=
17095 LTDLINCL=
17096 ;;
17097 ,no*,no,*)
17098 as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
17099 ;;
17100 *) with_included_ltdl=no
17101 LIBLTDL="-L$with_ltdl_lib -lltdl"
17102 LTDLDEPS=
17103 LTDLINCL=-I$with_ltdl_include
17104 ;;
17105 esac
17106 INCLTDL=$LTDLINCL
17107
17108 # Report our decision...
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
17110 $as_echo_n "checking where to find libltdl headers... " >&6; }
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
17112 $as_echo "$LTDLINCL" >&6; }
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
17114 $as_echo_n "checking where to find libltdl library... " >&6; }
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
17116 $as_echo "$LIBLTDL" >&6; }
17117
17118
17119
17120 # Check whether --enable-ltdl-install was given.
17121 if test "${enable_ltdl_install+set}" = set; then :
17122 enableval=$enable_ltdl_install;
17123 fi
17124
17125
17126 case ,$enable_ltdl_install,$enable_ltdl_convenience in
17127 *yes*) ;;
17128 *) enable_ltdl_convenience=yes ;;
17129 esac
17130
17131 if test no != "${enable_ltdl_install-no}"; then
17132 INSTALL_LTDL_TRUE=
17133 INSTALL_LTDL_FALSE='#'
17134 else
17135 INSTALL_LTDL_TRUE='#'
17136 INSTALL_LTDL_FALSE=
17137 fi
17138
17139 if test no != "${enable_ltdl_convenience-no}"; then
17140 CONVENIENCE_LTDL_TRUE=
17141 CONVENIENCE_LTDL_FALSE='#'
17142 else
17143 CONVENIENCE_LTDL_TRUE='#'
17144 CONVENIENCE_LTDL_FALSE=
17145 fi
17146
17147
17148
17149 subdirs="$subdirs libltdl"
17150
17151
17152
17153
17154 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17155 # the user used. This is so that ltdl.h can pick up the parent projects
17156 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17157 # definitions required by ltdl.c.
17158 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17159
17160
17161
17162 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
17163 do :
17164 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17165 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17166 "
17167 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17168 cat >>confdefs.h <<_ACEOF
17169 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17170 _ACEOF
17171
17172 fi
17173
17174 done
17175
17176
17177 for ac_func in closedir opendir readdir
17178 do :
17179 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17180 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17181 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17182 cat >>confdefs.h <<_ACEOF
17183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17184 _ACEOF
17185
17186 else
17187
17188
17189 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
17190
17191 fi
17192 done
17193
17194 for ac_func in strlcat strlcpy
17195 do :
17196 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17197 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17198 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17199 cat >>confdefs.h <<_ACEOF
17200 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17201 _ACEOF
17202
17203 else
17204
17205
17206 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
17207
17208 fi
17209 done
17210
17211
17212
17213 cat >>confdefs.h <<_ACEOF
17214 #define LT_LIBEXT "$libext"
17215 _ACEOF
17216
17217
17218 name=
17219 eval "lt_libprefix=\"$libname_spec\""
17220
17221 cat >>confdefs.h <<_ACEOF
17222 #define LT_LIBPREFIX "$lt_libprefix"
17223 _ACEOF
17224
17225
17226 name=ltdl
17227 eval "LTDLOPEN=\"$libname_spec\""
17228
17229
17230
17231
17232
17233
17234
17235
17236 # Only expand once:
17237
17238
17239
17240
17241 for ac_prog in perl5 perl
17242 do
17243 # Extract the first word of "$ac_prog", so it can be a program name with args.
17244 set dummy $ac_prog; ac_word=$2
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17246 $as_echo_n "checking for $ac_word... " >&6; }
17247 if ${ac_cv_path_PERL+:} false; then :
17248 $as_echo_n "(cached) " >&6
17249 else
17250 case $PERL in
17251 [\\/]* | ?:[\\/]*)
17252 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
17253 ;;
17254 *)
17255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17256 for as_dir in $LPATH
17257 do
17258 IFS=$as_save_IFS
17259 test -z "$as_dir" && as_dir=.
17260 for ac_exec_ext in '' $ac_executable_extensions; do
17261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17262 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
17263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17264 break 2
17265 fi
17266 done
17267 done
17268 IFS=$as_save_IFS
17269
17270 ;;
17271 esac
17272 fi
17273 PERL=$ac_cv_path_PERL
17274 if test -n "$PERL"; then
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
17276 $as_echo "$PERL" >&6; }
17277 else
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17279 $as_echo "no" >&6; }
17280 fi
17281
17282
17283 test -n "$PERL" && break
17284 done
17285 test -n "$PERL" || PERL="perl"
17286
17287 for ac_prog in courier-config
17288 do
17289 # Extract the first word of "$ac_prog", so it can be a program name with args.
17290 set dummy $ac_prog; ac_word=$2
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17292 $as_echo_n "checking for $ac_word... " >&6; }
17293 if ${ac_cv_path_COURIERCONFIG+:} false; then :
17294 $as_echo_n "(cached) " >&6
17295 else
17296 case $COURIERCONFIG in
17297 [\\/]* | ?:[\\/]*)
17298 ac_cv_path_COURIERCONFIG="$COURIERCONFIG" # Let the user override the test with a path.
17299 ;;
17300 *)
17301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17302 for as_dir in $LPATH
17303 do
17304 IFS=$as_save_IFS
17305 test -z "$as_dir" && as_dir=.
17306 for ac_exec_ext in '' $ac_executable_extensions; do
17307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17308 ac_cv_path_COURIERCONFIG="$as_dir/$ac_word$ac_exec_ext"
17309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17310 break 2
17311 fi
17312 done
17313 done
17314 IFS=$as_save_IFS
17315
17316 ;;
17317 esac
17318 fi
17319 COURIERCONFIG=$ac_cv_path_COURIERCONFIG
17320 if test -n "$COURIERCONFIG"; then
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COURIERCONFIG" >&5
17322 $as_echo "$COURIERCONFIG" >&6; }
17323 else
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17325 $as_echo "no" >&6; }
17326 fi
17327
17328
17329 test -n "$COURIERCONFIG" && break
17330 done
17331 test -n "$COURIERCONFIG" || COURIERCONFIG="courier-config"
17332
17333
17334 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
17335 if test "x$ac_cv_header_ltdl_h" = xyes; then :
17336 :
17337 else
17338 as_fn_error $? "Unable to find ltdl.h. Please install Libtool's ltdl library" "$LINENO" 5
17339 fi
17340
17341
17342
17343 if test "$PERL" = "perl"
17344 then
17345 as_fn_error $? "Perl is required" "$LINENO" 5
17346 fi
17347
17348 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17349 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17350 eval "prefix=$prefix"
17351 eval "exec_prefix=$exec_prefix"
17352 eval "sysconfdir=$sysconfdir"
17353 eval "bindir=$bindir"
17354 eval "sbindir=$sbindir"
17355 eval "localstatedir=$localstatedir"
17356 eval "libexecdir=$libexecdir"
17357 eval "datarootdir=$datarootdir"
17358 eval "datedir=$datadir"
17359
17360 for ac_prog in expect
17361 do
17362 # Extract the first word of "$ac_prog", so it can be a program name with args.
17363 set dummy $ac_prog; ac_word=$2
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17365 $as_echo_n "checking for $ac_word... " >&6; }
17366 if ${ac_cv_path_EXPECT+:} false; then :
17367 $as_echo_n "(cached) " >&6
17368 else
17369 case $EXPECT in
17370 [\\/]* | ?:[\\/]*)
17371 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
17372 ;;
17373 *)
17374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17375 for as_dir in $LPATH
17376 do
17377 IFS=$as_save_IFS
17378 test -z "$as_dir" && as_dir=.
17379 for ac_exec_ext in '' $ac_executable_extensions; do
17380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17381 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
17382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17383 break 2
17384 fi
17385 done
17386 done
17387 IFS=$as_save_IFS
17388
17389 ;;
17390 esac
17391 fi
17392 EXPECT=$ac_cv_path_EXPECT
17393 if test -n "$EXPECT"; then
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
17395 $as_echo "$EXPECT" >&6; }
17396 else
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17398 $as_echo "no" >&6; }
17399 fi
17400
17401
17402 test -n "$EXPECT" && break
17403 done
17404 test -n "$EXPECT" || EXPECT="expect"
17405
17406
17407 if test "$EXPECT" = "expect"
17408 then
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -----------------------------------------------------" >&5
17410 $as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expect not found - will not be able to change passwds" >&5
17412 $as_echo "$as_me: WARNING: expect not found - will not be able to change passwds" >&2;}
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: in webmail" >&5
17414 $as_echo "$as_me: WARNING: in webmail" >&2;}
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -----------------------------------------------------" >&5
17416 $as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
17417 sleep 5
17418 else
17419
17420 cat >>confdefs.h <<_ACEOF
17421 #define HAVE_EXPECT 1
17422 _ACEOF
17423
17424 fi
17425
17426 for ac_prog in passwd
17427 do
17428 # Extract the first word of "$ac_prog", so it can be a program name with args.
17429 set dummy $ac_prog; ac_word=$2
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17431 $as_echo_n "checking for $ac_word... " >&6; }
17432 if ${ac_cv_path_PASSWD+:} false; then :
17433 $as_echo_n "(cached) " >&6
17434 else
17435 case $PASSWD in
17436 [\\/]* | ?:[\\/]*)
17437 ac_cv_path_PASSWD="$PASSWD" # Let the user override the test with a path.
17438 ;;
17439 *)
17440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17441 for as_dir in $LPATH
17442 do
17443 IFS=$as_save_IFS
17444 test -z "$as_dir" && as_dir=.
17445 for ac_exec_ext in '' $ac_executable_extensions; do
17446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17447 ac_cv_path_PASSWD="$as_dir/$ac_word$ac_exec_ext"
17448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17449 break 2
17450 fi
17451 done
17452 done
17453 IFS=$as_save_IFS
17454
17455 ;;
17456 esac
17457 fi
17458 PASSWD=$ac_cv_path_PASSWD
17459 if test -n "$PASSWD"; then
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PASSWD" >&5
17461 $as_echo "$PASSWD" >&6; }
17462 else
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17464 $as_echo "no" >&6; }
17465 fi
17466
17467
17468 test -n "$PASSWD" && break
17469 done
17470 test -n "$PASSWD" || PASSWD="passwd"
17471
17472
17473
17474 if test "$GCC" = "yes"
17475 then
17476 CFLAGS="$CFLAGS -Wall"
17477 CXXFLAGS="$CXXFLAGS -Wall"
17478 fi
17479
17480 CFLAGS="$CFLAGS -Ilibs -I${srcdir}/libs"
17481 CXXFLAGS="$CXXFLAGS -Ilibs -I${srcdir}/libs"
17482
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lm is needed for floor" >&5
17484 $as_echo_n "checking whether -lm is needed for floor... " >&6; }
17485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h. */
17487
17488 /* Override any GCC internal prototype to avoid an error.
17489 Use char because int might match the return type of a GCC
17490 builtin and then its argument prototype would still apply. */
17491 #ifdef __cplusplus
17492 extern "C"
17493 #endif
17494 char floor ();
17495 int
17496 main ()
17497 {
17498 return floor ();
17499 ;
17500 return 0;
17501 }
17502 _ACEOF
17503 if ac_fn_c_try_link "$LINENO"; then :
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17505 $as_echo "no" >&6; }
17506 else
17507 LIBM="-lm"
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17509 $as_echo "yes" >&6; }
17510 fi
17511 rm -f core conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
17513
17514
17515 # Check whether --with-pkgconfdir was given.
17516 if test "${with_pkgconfdir+set}" = set; then :
17517 withval=$with_pkgconfdir; pkgconfdir="$withval"
17518 else
17519 pkgconfdir="$sysconfdir/authlib"
17520 fi
17521
17522
17523 saveLIBS="$LIBS"
17524 NETLIBS=""
17525 USENSL=no
17526
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17528 $as_echo_n "checking for socket in -lsocket... " >&6; }
17529 if ${ac_cv_lib_socket_socket+:} false; then :
17530 $as_echo_n "(cached) " >&6
17531 else
17532 ac_check_lib_save_LIBS=$LIBS
17533 LIBS="-lsocket $LIBS"
17534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h. */
17536
17537 /* Override any GCC internal prototype to avoid an error.
17538 Use char because int might match the return type of a GCC
17539 builtin and then its argument prototype would still apply. */
17540 #ifdef __cplusplus
17541 extern "C"
17542 #endif
17543 char socket ();
17544 int
17545 main ()
17546 {
17547 return socket ();
17548 ;
17549 return 0;
17550 }
17551 _ACEOF
17552 if ac_fn_c_try_link "$LINENO"; then :
17553 ac_cv_lib_socket_socket=yes
17554 else
17555 ac_cv_lib_socket_socket=no
17556 fi
17557 rm -f core conftest.err conftest.$ac_objext \
17558 conftest$ac_exeext conftest.$ac_ext
17559 LIBS=$ac_check_lib_save_LIBS
17560 fi
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17562 $as_echo "$ac_cv_lib_socket_socket" >&6; }
17563 if test "x$ac_cv_lib_socket_socket" = xyes; then :
17564 result=yes
17565 else
17566 result=no
17567 fi
17568
17569 if test $result = yes; then
17570 NETLIBS="-lsocket"
17571 else
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17573 $as_echo_n "checking for socket in -lsocket... " >&6; }
17574 if ${ac_cv_lib_socket_socket+:} false; then :
17575 $as_echo_n "(cached) " >&6
17576 else
17577 ac_check_lib_save_LIBS=$LIBS
17578 LIBS="-lsocket -lnsl $LIBS"
17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h. */
17581
17582 /* Override any GCC internal prototype to avoid an error.
17583 Use char because int might match the return type of a GCC
17584 builtin and then its argument prototype would still apply. */
17585 #ifdef __cplusplus
17586 extern "C"
17587 #endif
17588 char socket ();
17589 int
17590 main ()
17591 {
17592 return socket ();
17593 ;
17594 return 0;
17595 }
17596 _ACEOF
17597 if ac_fn_c_try_link "$LINENO"; then :
17598 ac_cv_lib_socket_socket=yes
17599 else
17600 ac_cv_lib_socket_socket=no
17601 fi
17602 rm -f core conftest.err conftest.$ac_objext \
17603 conftest$ac_exeext conftest.$ac_ext
17604 LIBS=$ac_check_lib_save_LIBS
17605 fi
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17607 $as_echo "$ac_cv_lib_socket_socket" >&6; }
17608 if test "x$ac_cv_lib_socket_socket" = xyes; then :
17609 result=yes
17610 else
17611 result=no
17612 fi
17613
17614 if test $result = yes; then
17615 NETLIBS = "-lsocket -lnsl"
17616 USENSL=yes
17617 else
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
17619 $as_echo_n "checking for connect in -lsocket... " >&6; }
17620 if ${ac_cv_lib_socket_connect+:} false; then :
17621 $as_echo_n "(cached) " >&6
17622 else
17623 ac_check_lib_save_LIBS=$LIBS
17624 LIBS="-lsocket $LIBS"
17625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17626 /* end confdefs.h. */
17627
17628 /* Override any GCC internal prototype to avoid an error.
17629 Use char because int might match the return type of a GCC
17630 builtin and then its argument prototype would still apply. */
17631 #ifdef __cplusplus
17632 extern "C"
17633 #endif
17634 char connect ();
17635 int
17636 main ()
17637 {
17638 return connect ();
17639 ;
17640 return 0;
17641 }
17642 _ACEOF
17643 if ac_fn_c_try_link "$LINENO"; then :
17644 ac_cv_lib_socket_connect=yes
17645 else
17646 ac_cv_lib_socket_connect=no
17647 fi
17648 rm -f core conftest.err conftest.$ac_objext \
17649 conftest$ac_exeext conftest.$ac_ext
17650 LIBS=$ac_check_lib_save_LIBS
17651 fi
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
17653 $as_echo "$ac_cv_lib_socket_connect" >&6; }
17654 if test "x$ac_cv_lib_socket_connect" = xyes; then :
17655 result=yes
17656 else
17657 result=no
17658 fi
17659
17660 if test $result = yes; then
17661 NETLIBS="-lsocket"
17662 else
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
17664 $as_echo_n "checking for connect in -lsocket... " >&6; }
17665 if ${ac_cv_lib_socket_connect+:} false; then :
17666 $as_echo_n "(cached) " >&6
17667 else
17668 ac_check_lib_save_LIBS=$LIBS
17669 LIBS="-lsocket -lnsl $LIBS"
17670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671 /* end confdefs.h. */
17672
17673 /* Override any GCC internal prototype to avoid an error.
17674 Use char because int might match the return type of a GCC
17675 builtin and then its argument prototype would still apply. */
17676 #ifdef __cplusplus
17677 extern "C"
17678 #endif
17679 char connect ();
17680 int
17681 main ()
17682 {
17683 return connect ();
17684 ;
17685 return 0;
17686 }
17687 _ACEOF
17688 if ac_fn_c_try_link "$LINENO"; then :
17689 ac_cv_lib_socket_connect=yes
17690 else
17691 ac_cv_lib_socket_connect=no
17692 fi
17693 rm -f core conftest.err conftest.$ac_objext \
17694 conftest$ac_exeext conftest.$ac_ext
17695 LIBS=$ac_check_lib_save_LIBS
17696 fi
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
17698 $as_echo "$ac_cv_lib_socket_connect" >&6; }
17699 if test "x$ac_cv_lib_socket_connect" = xyes; then :
17700 result=yes
17701 else
17702 result=no
17703 fi
17704
17705 if test $result = yes; then
17706 NETLIBS="-lsocket -lnsl"
17707 USENSL=yes
17708 fi
17709 fi
17710 fi
17711 fi
17712
17713 if test $USENSL != yes; then
17714 LIBS="$LIBS $NETLIBS"
17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17716 /* end confdefs.h. */
17717
17718 /* Override any GCC internal prototype to avoid an error.
17719 Use char because int might match the return type of a GCC
17720 builtin and then its argument prototype would still apply. */
17721 #ifdef __cplusplus
17722 extern "C"
17723 #endif
17724 char inet_addr ();
17725 int
17726 main ()
17727 {
17728 return inet_addr ();
17729 ;
17730 return 0;
17731 }
17732 _ACEOF
17733 if ac_fn_c_try_link "$LINENO"; then :
17734 :
17735 else
17736
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
17738 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
17739 if ${ac_cv_lib_nsl_inet_addr+:} false; then :
17740 $as_echo_n "(cached) " >&6
17741 else
17742 ac_check_lib_save_LIBS=$LIBS
17743 LIBS="-lnsl $LIBS"
17744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17745 /* end confdefs.h. */
17746
17747 /* Override any GCC internal prototype to avoid an error.
17748 Use char because int might match the return type of a GCC
17749 builtin and then its argument prototype would still apply. */
17750 #ifdef __cplusplus
17751 extern "C"
17752 #endif
17753 char inet_addr ();
17754 int
17755 main ()
17756 {
17757 return inet_addr ();
17758 ;
17759 return 0;
17760 }
17761 _ACEOF
17762 if ac_fn_c_try_link "$LINENO"; then :
17763 ac_cv_lib_nsl_inet_addr=yes
17764 else
17765 ac_cv_lib_nsl_inet_addr=no
17766 fi
17767 rm -f core conftest.err conftest.$ac_objext \
17768 conftest$ac_exeext conftest.$ac_ext
17769 LIBS=$ac_check_lib_save_LIBS
17770 fi
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
17772 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
17773 if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then :
17774 result=yes
17775 else
17776 result=no
17777 fi
17778
17779 if test $result = yes; then
17780 NETLIBS="$NETLIBS -lnsl"
17781 fi
17782
17783 fi
17784 rm -f core conftest.err conftest.$ac_objext \
17785 conftest$ac_exeext conftest.$ac_ext
17786 fi
17787
17788 LIBS="$saveLIBS"
17789
17790
17791
17792
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking courier-unicode library and version" >&5
17794 $as_echo_n "checking courier-unicode library and version... " >&6; }
17795
17796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17797 /* end confdefs.h. */
17798
17799 #include <courier-unicode.h>
17800 #ifndef COURIER_UNICODE_VERSION
17801 #define COURIER_UNICODE_VERSION 0
17802 #endif
17803
17804 #if COURIER_UNICODE_VERSION < 210
17805 #error "courier-unicode 2.1 library is required"
17806 #endif
17807
17808
17809 int
17810 main ()
17811 {
17812
17813 ;
17814 return 0;
17815 }
17816 _ACEOF
17817 if ac_fn_c_try_compile "$LINENO"; then :
17818
17819 else
17820 as_fn_error $? "
17821 ERROR: The Courier Unicode Library 2.1 header files appear not to be installed.
17822 You may need to upgrade the library or install a separate development
17823 subpackage in addition to the main package." "$LINENO" 5
17824
17825 fi
17826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17827
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17829 $as_echo "ok" >&6; }
17830
17831
17832
17833
17834
17835
17836
17837 # Check whether --with-db was given.
17838 if test "${with_db+set}" = set; then :
17839 withval=$with_db; db="$withval"
17840 else
17841 needs_withdb=1
17842 fi
17843
17844
17845 case "$db" in
17846 gdbm)
17847 ;;
17848 db)
17849 ;;
17850 "")
17851 ;;
17852 *)
17853 as_fn_error $? "Invalid --with-db option." "$LINENO" 5
17854 ;;
17855 esac
17856
17857 saveLIBS="$LIBS"
17858
17859 if test "$db" != "db"
17860 then
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
17862 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
17863 if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
17864 $as_echo_n "(cached) " >&6
17865 else
17866 ac_check_lib_save_LIBS=$LIBS
17867 LIBS="-lgdbm $LIBS"
17868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17869 /* end confdefs.h. */
17870
17871 /* Override any GCC internal prototype to avoid an error.
17872 Use char because int might match the return type of a GCC
17873 builtin and then its argument prototype would still apply. */
17874 #ifdef __cplusplus
17875 extern "C"
17876 #endif
17877 char gdbm_open ();
17878 int
17879 main ()
17880 {
17881 return gdbm_open ();
17882 ;
17883 return 0;
17884 }
17885 _ACEOF
17886 if ac_fn_c_try_link "$LINENO"; then :
17887 ac_cv_lib_gdbm_gdbm_open=yes
17888 else
17889 ac_cv_lib_gdbm_gdbm_open=no
17890 fi
17891 rm -f core conftest.err conftest.$ac_objext \
17892 conftest$ac_exeext conftest.$ac_ext
17893 LIBS=$ac_check_lib_save_LIBS
17894 fi
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
17896 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
17897 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
17898 LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS"
17899 fi
17900
17901 ac_fn_c_check_func "$LINENO" "gdbm_open" "ac_cv_func_gdbm_open"
17902 if test "x$ac_cv_func_gdbm_open" = xyes; then :
17903 HAVE_GDBM=y
17904 fi
17905
17906 fi
17907
17908 LIBS="$saveLIBS"
17909
17910 if test "$db" != "gdbm"
17911 then
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -ldb" >&5
17913 $as_echo_n "checking for dbopen in -ldb... " >&6; }
17914 if ${ac_cv_lib_db_dbopen+:} false; then :
17915 $as_echo_n "(cached) " >&6
17916 else
17917 ac_check_lib_save_LIBS=$LIBS
17918 LIBS="-ldb $LIBS"
17919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920 /* end confdefs.h. */
17921
17922 /* Override any GCC internal prototype to avoid an error.
17923 Use char because int might match the return type of a GCC
17924 builtin and then its argument prototype would still apply. */
17925 #ifdef __cplusplus
17926 extern "C"
17927 #endif
17928 char dbopen ();
17929 int
17930 main ()
17931 {
17932 return dbopen ();
17933 ;
17934 return 0;
17935 }
17936 _ACEOF
17937 if ac_fn_c_try_link "$LINENO"; then :
17938 ac_cv_lib_db_dbopen=yes
17939 else
17940 ac_cv_lib_db_dbopen=no
17941 fi
17942 rm -f core conftest.err conftest.$ac_objext \
17943 conftest$ac_exeext conftest.$ac_ext
17944 LIBS=$ac_check_lib_save_LIBS
17945 fi
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_dbopen" >&5
17947 $as_echo "$ac_cv_lib_db_dbopen" >&6; }
17948 if test "x$ac_cv_lib_db_dbopen" = xyes; then :
17949 LIBDB=-ldb ; LIBS="-ldb $LIBS"
17950 else
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -ldb" >&5
17952 $as_echo_n "checking for db_open in -ldb... " >&6; }
17953 if ${ac_cv_lib_db_db_open+:} false; then :
17954 $as_echo_n "(cached) " >&6
17955 else
17956 ac_check_lib_save_LIBS=$LIBS
17957 LIBS="-ldb $LIBS"
17958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17959 /* end confdefs.h. */
17960
17961 /* Override any GCC internal prototype to avoid an error.
17962 Use char because int might match the return type of a GCC
17963 builtin and then its argument prototype would still apply. */
17964 #ifdef __cplusplus
17965 extern "C"
17966 #endif
17967 char db_open ();
17968 int
17969 main ()
17970 {
17971 return db_open ();
17972 ;
17973 return 0;
17974 }
17975 _ACEOF
17976 if ac_fn_c_try_link "$LINENO"; then :
17977 ac_cv_lib_db_db_open=yes
17978 else
17979 ac_cv_lib_db_db_open=no
17980 fi
17981 rm -f core conftest.err conftest.$ac_objext \
17982 conftest$ac_exeext conftest.$ac_ext
17983 LIBS=$ac_check_lib_save_LIBS
17984 fi
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_open" >&5
17986 $as_echo "$ac_cv_lib_db_db_open" >&6; }
17987 if test "x$ac_cv_lib_db_db_open" = xyes; then :
17988 LIBDB=-ldb ; LIBS="-ldb $LIBS"
17989 else
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb" >&5
17991 $as_echo_n "checking for db_env_create in -ldb... " >&6; }
17992 if ${ac_cv_lib_db_db_env_create+:} false; then :
17993 $as_echo_n "(cached) " >&6
17994 else
17995 ac_check_lib_save_LIBS=$LIBS
17996 LIBS="-ldb $LIBS"
17997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h. */
17999
18000 /* Override any GCC internal prototype to avoid an error.
18001 Use char because int might match the return type of a GCC
18002 builtin and then its argument prototype would still apply. */
18003 #ifdef __cplusplus
18004 extern "C"
18005 #endif
18006 char db_env_create ();
18007 int
18008 main ()
18009 {
18010 return db_env_create ();
18011 ;
18012 return 0;
18013 }
18014 _ACEOF
18015 if ac_fn_c_try_link "$LINENO"; then :
18016 ac_cv_lib_db_db_env_create=yes
18017 else
18018 ac_cv_lib_db_db_env_create=no
18019 fi
18020 rm -f core conftest.err conftest.$ac_objext \
18021 conftest$ac_exeext conftest.$ac_ext
18022 LIBS=$ac_check_lib_save_LIBS
18023 fi
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_env_create" >&5
18025 $as_echo "$ac_cv_lib_db_db_env_create" >&6; }
18026 if test "x$ac_cv_lib_db_db_env_create" = xyes; then :
18027 LIBDB=-ldb; LIBS="-ldb $LIBS"
18028 fi
18029
18030
18031 fi
18032
18033 fi
18034
18035
18036 ac_fn_c_check_func "$LINENO" "dbopen" "ac_cv_func_dbopen"
18037 if test "x$ac_cv_func_dbopen" = xyes; then :
18038 HAVE_BDB=1
18039 fi
18040
18041 ac_fn_c_check_func "$LINENO" "db_open" "ac_cv_func_db_open"
18042 if test "x$ac_cv_func_db_open" = xyes; then :
18043 HAVE_BDB=1
18044 fi
18045
18046 ac_fn_c_check_func "$LINENO" "db_env_create" "ac_cv_func_db_env_create"
18047 if test "x$ac_cv_func_db_env_create" = xyes; then :
18048 HAVE_BDB=1
18049 fi
18050
18051 fi
18052
18053 LIBS="$saveLIBS"
18054
18055 if test "$HAVE_GDBM$HAVE_BDB" = ""
18056 then
18057 as_fn_error $? "Cannot find either the gdbm or the db library." "$LINENO" 5
18058 fi
18059
18060 USE_GDBM=0
18061 USE_DB=0
18062
18063 if test "$HAVE_GDBM" = "y"
18064 then
18065 LIBDB=""
18066 USE_GDBM=1
18067 if test "$needs_withdb" = 1
18068 then
18069 ac_configure_args="$ac_configure_args --with-db=gdbm"
18070 fi
18071 dblibrary=libs/gdbmobj/libgdbmobj.la
18072 else
18073 LIBGDBM=""
18074 USE_DB=1
18075 if test "$needs_withdb" = 1
18076 then
18077 ac_configure_args="$ac_configure_args --with-db=db"
18078 fi
18079 dblibrary=libs/bdbobj/libbdbobj.la
18080 fi
18081
18082
18083
18084
18085
18086 # Check whether --with-authuserdb was given.
18087 if test "${with_authuserdb+set}" = set; then :
18088 withval=$with_authuserdb; doauthuserdb="$withval"
18089 else
18090 doauthuserdb="no"
18091 if test -d ${srcdir}/userdb
18092 then
18093 doauthuserdb="yes"
18094 fi
18095 fi
18096
18097
18098 if test "$doauthuserdb" = "no"
18099 then
18100 AUTHUSERDB=""
18101 else
18102 AUTHUSERDB="authuserdb"
18103 LIBAUTHUSERDB="libauthuserdb.la"
18104
18105 fi
18106
18107
18108 # Check whether --with-makedatprog was given.
18109 if test "${with_makedatprog+set}" = set; then :
18110 withval=$with_makedatprog; :
18111 else
18112
18113 ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog"
18114
18115 fi
18116
18117
18118 cat >dbobj.config <<EOF
18119 LIBDB=$LIBDB
18120 LIBGDBM=$LIBGDBM
18121 dblibrary=$dblibrary
18122 EOF
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132 userdb="$pkgconfdir/userdb"
18133
18134 # Check whether --with-userdb was given.
18135 if test "${with_userdb+set}" = set; then :
18136 withval=$with_userdb; userdb="$withval"
18137 else
18138 ac_configure_args="$ac_configure_args '--with-userdb=$userdb'"
18139 fi
18140
18141
18142
18143 cat >>confdefs.h <<_ACEOF
18144 #define USERDB "$userdb"
18145 _ACEOF
18146
18147
18148
18149 for ac_header in stdio.h
18150 do :
18151 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
18152 if test "x$ac_cv_header_stdio_h" = xyes; then :
18153 cat >>confdefs.h <<_ACEOF
18154 #define HAVE_STDIO_H 1
18155 _ACEOF
18156
18157 fi
18158
18159 done
18160
18161
18162
18163
18164
18165
18166 # Check whether --with-authpam was given.
18167 if test "${with_authpam+set}" = set; then :
18168 withval=$with_authpam; doauthpam="$withval"
18169 fi
18170
18171
18172 for ac_header in security/pam_appl.h Pam/pam_appl.h
18173 do :
18174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18175 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18176 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18177 cat >>confdefs.h <<_ACEOF
18178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18179 _ACEOF
18180
18181 fi
18182
18183 done
18184
18185 if test "$doauthpam" = "no"
18186 then
18187 LIBDL=""
18188 else
18189 saveLIBS="$LIBS"
18190 LIBDL=""
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18192 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18193 if ${ac_cv_lib_dl_dlopen+:} false; then :
18194 $as_echo_n "(cached) " >&6
18195 else
18196 ac_check_lib_save_LIBS=$LIBS
18197 LIBS="-ldl $LIBS"
18198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18199 /* end confdefs.h. */
18200
18201 /* Override any GCC internal prototype to avoid an error.
18202 Use char because int might match the return type of a GCC
18203 builtin and then its argument prototype would still apply. */
18204 #ifdef __cplusplus
18205 extern "C"
18206 #endif
18207 char dlopen ();
18208 int
18209 main ()
18210 {
18211 return dlopen ();
18212 ;
18213 return 0;
18214 }
18215 _ACEOF
18216 if ac_fn_c_try_link "$LINENO"; then :
18217 ac_cv_lib_dl_dlopen=yes
18218 else
18219 ac_cv_lib_dl_dlopen=no
18220 fi
18221 rm -f core conftest.err conftest.$ac_objext \
18222 conftest$ac_exeext conftest.$ac_ext
18223 LIBS=$ac_check_lib_save_LIBS
18224 fi
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18226 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18227 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18228 LIBDL="-ldl"
18229 fi
18230
18231 LIBS="$saveLIBS"
18232
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18234 $as_echo_n "checking for pam_start in -lpam... " >&6; }
18235 if ${ac_cv_lib_pam_pam_start+:} false; then :
18236 $as_echo_n "(cached) " >&6
18237 else
18238 ac_check_lib_save_LIBS=$LIBS
18239 LIBS="-lpam $LIBDL $LIBS"
18240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18241 /* end confdefs.h. */
18242
18243 /* Override any GCC internal prototype to avoid an error.
18244 Use char because int might match the return type of a GCC
18245 builtin and then its argument prototype would still apply. */
18246 #ifdef __cplusplus
18247 extern "C"
18248 #endif
18249 char pam_start ();
18250 int
18251 main ()
18252 {
18253 return pam_start ();
18254 ;
18255 return 0;
18256 }
18257 _ACEOF
18258 if ac_fn_c_try_link "$LINENO"; then :
18259 ac_cv_lib_pam_pam_start=yes
18260 else
18261 ac_cv_lib_pam_pam_start=no
18262 fi
18263 rm -f core conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext conftest.$ac_ext
18265 LIBS=$ac_check_lib_save_LIBS
18266 fi
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
18268 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
18269 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
18270 HAVE_PAM=1
18271 LIBS="-lpam $LIBDL $LIBS"
18272 for ac_func in pam_setcred
18273 do :
18274 ac_fn_c_check_func "$LINENO" "pam_setcred" "ac_cv_func_pam_setcred"
18275 if test "x$ac_cv_func_pam_setcred" = xyes; then :
18276 cat >>confdefs.h <<_ACEOF
18277 #define HAVE_PAM_SETCRED 1
18278 _ACEOF
18279
18280 fi
18281 done
18282
18283 else
18284 HAVE_PAM=0
18285 fi
18286
18287 LIBS="$saveLIBS"
18288 fi
18289
18290
18291 LIBAUTHPAM=""
18292 if test "$HAVE_PAM" = 1
18293 then
18294 LIBAUTHPAM=libauthpam.la
18295 fi
18296
18297
18298 # Check whether --with-authpam-libraries was given.
18299 if test "${with_authpam_libraries+set}" = set; then :
18300 withval=$with_authpam_libraries; authpamcrypt="$withval"
18301 fi
18302
18303
18304 AUTHPAMCRYPT="$authpamcrypt"
18305
18306
18307
18308
18309
18310
18311
18312 # Check whether --with-authldap was given.
18313 if test "${with_authldap+set}" = set; then :
18314 withval=$with_authldap; doauthldap="$withval"
18315 else
18316 doauthldap="yes"
18317 fi
18318
18319
18320 for ac_header in lber.h
18321 do :
18322 ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
18323 if test "x$ac_cv_header_lber_h" = xyes; then :
18324 cat >>confdefs.h <<_ACEOF
18325 #define HAVE_LBER_H 1
18326 _ACEOF
18327
18328 fi
18329
18330 done
18331
18332 for ac_header in ldap.h
18333 do :
18334 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
18335 if test "x$ac_cv_header_ldap_h" = xyes; then :
18336 cat >>confdefs.h <<_ACEOF
18337 #define HAVE_LDAP_H 1
18338 _ACEOF
18339
18340 fi
18341
18342 done
18343
18344 for ac_header in netinet/in.h
18345 do :
18346 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
18347 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
18348 cat >>confdefs.h <<_ACEOF
18349 #define HAVE_NETINET_IN_H 1
18350 _ACEOF
18351
18352 fi
18353
18354 done
18355
18356
18357 if test "$doauthldap" = "no"
18358 then
18359 HAVE_LDAP=0
18360 else
18361 saveLIBS="$LIBS"
18362 LIBS="$NETLIBS $LIBS"
18363 LDAPLIBS=""
18364
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lresolv is needed for res_query" >&5
18366 $as_echo_n "checking whether -lresolv is needed for res_query... " >&6; }
18367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h. */
18369
18370 #include <sys/types.h>
18371 #if HAVE_NETINET_IN_H
18372 #include <netinet/in.h>
18373 #endif
18374 #include <resolv.h>
18375
18376 void (*func)()= (void (*)())res_query;
18377
18378 int
18379 main ()
18380 {
18381 (*func)();
18382 ;
18383 return 0;
18384 }
18385 _ACEOF
18386 if ac_fn_c_try_link "$LINENO"; then :
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18388 $as_echo "no" >&6; }
18389 else
18390
18391 LIBS="-lresolv $LIBS"
18392
18393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394 /* end confdefs.h. */
18395
18396 #include <sys/types.h>
18397 #if HAVE_NETINET_IN_H
18398 #include <netinet/in.h>
18399 #endif
18400 #include <resolv.h>
18401
18402 void (*func)()= (void (*)())res_query;
18403
18404 int
18405 main ()
18406 {
18407 (*func)();
18408 ;
18409 return 0;
18410 }
18411 _ACEOF
18412 if ac_fn_c_try_link "$LINENO"; then :
18413
18414 LDAPLIBS="-lresolv $LDAPLIBS"
18415 HAVE_LDAP=1
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18417 $as_echo "yes" >&6; }
18418
18419 else
18420 as_fn_error $? "Cannot find function res_query" "$LINENO" 5
18421 fi
18422 rm -f core conftest.err conftest.$ac_objext \
18423 conftest$ac_exeext conftest.$ac_ext
18424
18425 fi
18426 rm -f core conftest.err conftest.$ac_objext \
18427 conftest$ac_exeext conftest.$ac_ext
18428
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_scanf in -llber" >&5
18430 $as_echo_n "checking for ber_scanf in -llber... " >&6; }
18431 if ${ac_cv_lib_lber_ber_scanf+:} false; then :
18432 $as_echo_n "(cached) " >&6
18433 else
18434 ac_check_lib_save_LIBS=$LIBS
18435 LIBS="-llber $LIBS"
18436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18437 /* end confdefs.h. */
18438
18439 /* Override any GCC internal prototype to avoid an error.
18440 Use char because int might match the return type of a GCC
18441 builtin and then its argument prototype would still apply. */
18442 #ifdef __cplusplus
18443 extern "C"
18444 #endif
18445 char ber_scanf ();
18446 int
18447 main ()
18448 {
18449 return ber_scanf ();
18450 ;
18451 return 0;
18452 }
18453 _ACEOF
18454 if ac_fn_c_try_link "$LINENO"; then :
18455 ac_cv_lib_lber_ber_scanf=yes
18456 else
18457 ac_cv_lib_lber_ber_scanf=no
18458 fi
18459 rm -f core conftest.err conftest.$ac_objext \
18460 conftest$ac_exeext conftest.$ac_ext
18461 LIBS=$ac_check_lib_save_LIBS
18462 fi
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_scanf" >&5
18464 $as_echo "$ac_cv_lib_lber_ber_scanf" >&6; }
18465 if test "x$ac_cv_lib_lber_ber_scanf" = xyes; then :
18466 LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS"
18467 fi
18468
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_open in -lldap" >&5
18470 $as_echo_n "checking for ldap_open in -lldap... " >&6; }
18471 if ${ac_cv_lib_ldap_ldap_open+:} false; then :
18472 $as_echo_n "(cached) " >&6
18473 else
18474 ac_check_lib_save_LIBS=$LIBS
18475 LIBS="-lldap $LIBS"
18476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18477 /* end confdefs.h. */
18478
18479 /* Override any GCC internal prototype to avoid an error.
18480 Use char because int might match the return type of a GCC
18481 builtin and then its argument prototype would still apply. */
18482 #ifdef __cplusplus
18483 extern "C"
18484 #endif
18485 char ldap_open ();
18486 int
18487 main ()
18488 {
18489 return ldap_open ();
18490 ;
18491 return 0;
18492 }
18493 _ACEOF
18494 if ac_fn_c_try_link "$LINENO"; then :
18495 ac_cv_lib_ldap_ldap_open=yes
18496 else
18497 ac_cv_lib_ldap_ldap_open=no
18498 fi
18499 rm -f core conftest.err conftest.$ac_objext \
18500 conftest$ac_exeext conftest.$ac_ext
18501 LIBS=$ac_check_lib_save_LIBS
18502 fi
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_open" >&5
18504 $as_echo "$ac_cv_lib_ldap_ldap_open" >&6; }
18505 if test "x$ac_cv_lib_ldap_ldap_open" = xyes; then :
18506 LDAPLIBS="-lldap $LDAPLIBS" ; LIBS="-lldap $LIBS"
18507 fi
18508
18509 ac_fn_c_check_func "$LINENO" "ldap_search_st" "ac_cv_func_ldap_search_st"
18510 if test "x$ac_cv_func_ldap_search_st" = xyes; then :
18511 HAVE_LDAP=1
18512 else
18513 HAVE_LDAP=0
18514 fi
18515
18516 ac_fn_c_check_func "$LINENO" "ldap_start_tls_s" "ac_cv_func_ldap_start_tls_s"
18517 if test "x$ac_cv_func_ldap_start_tls_s" = xyes; then :
18518 HAVE_LDAP_TLS=1
18519 else
18520 HAVE_LDAP_TLS=0
18521 fi
18522
18523 ac_fn_c_check_func "$LINENO" "ldap_result2error" "ac_cv_func_ldap_result2error"
18524 if test "x$ac_cv_func_ldap_result2error" = xyes; then :
18525 HAVE_LDAP_RESULT2ERROR=1
18526 else
18527 HAVE_LDAP_RESULT2ERROR=0
18528 fi
18529
18530 ac_fn_c_check_func "$LINENO" "ldap_parse_result" "ac_cv_func_ldap_parse_result"
18531 if test "x$ac_cv_func_ldap_parse_result" = xyes; then :
18532 HAVE_LDAP_PARSE_RESULT=1
18533 else
18534 HAVE_LDAP_PARSE_RESULT=0
18535 fi
18536
18537 LIBS="$saveLIBS"
18538 fi
18539
18540
18541 # Check whether --with-authldaprc was given.
18542 if test "${with_authldaprc+set}" = set; then :
18543 withval=$with_authldaprc; authldaprc="$withval"
18544 else
18545 authldaprc="$pkgconfdir/authldaprc"
18546 fi
18547
18548
18549
18550 LIBAUTHLDAP=""
18551 if test "$HAVE_LDAP" = 1
18552 then
18553 LIBAUTHLDAP="libauthldap.la"
18554 else
18555 authldaprc=""
18556 fi
18557
18558
18559
18560 if test "$HAVE_LDAP" = 1; then
18561 HAVE_LDAP_TRUE=
18562 HAVE_LDAP_FALSE='#'
18563 else
18564 HAVE_LDAP_TRUE='#'
18565 HAVE_LDAP_FALSE=
18566 fi
18567
18568
18569 cat >>confdefs.h <<_ACEOF
18570 #define HAVE_LDAP_TLS $HAVE_LDAP_TLS
18571 _ACEOF
18572
18573
18574 cat >>confdefs.h <<_ACEOF
18575 #define HAVE_LDAP_RESULT2ERROR $HAVE_LDAP_RESULT2ERROR
18576 _ACEOF
18577
18578
18579 cat >>confdefs.h <<_ACEOF
18580 #define HAVE_LDAP_PARSE_RESULT $HAVE_LDAP_PARSE_RESULT
18581 _ACEOF
18582
18583
18584
18585
18586
18587 # Check whether --with-authpwd was given.
18588 if test "${with_authpwd+set}" = set; then :
18589 withval=$with_authpwd; doauthpwd="$withval"
18590 else
18591 doauthpwd="yes"
18592 test "$HAVE_PAM" = 1 && doauthpwd="no"
18593 test "$HAVE_LDAP" = 1 && doauthpwd="no"
18594
18595 fi
18596
18597
18598 HAVE_PWD=1
18599 if test "$doauthpwd" = "no"
18600 then
18601 HAVE_PWD=0
18602 fi
18603 for ac_func in endpwent
18604 do :
18605 ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent"
18606 if test "x$ac_cv_func_endpwent" = xyes; then :
18607 cat >>confdefs.h <<_ACEOF
18608 #define HAVE_ENDPWENT 1
18609 _ACEOF
18610
18611 fi
18612 done
18613
18614
18615
18616
18617
18618
18619 # Check whether --with-authshadow was given.
18620 if test "${with_authshadow+set}" = set; then :
18621 withval=$with_authshadow; doauthshadow="$withval"
18622 else
18623 doauthshadow="yes"
18624 test "$HAVE_PAM" = 1 && doauthshadow="no"
18625 test "$HAVE_LDAP" = 1 && doauthshadow="no"
18626 fi
18627
18628
18629 for ac_header in shadow.h
18630 do :
18631 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
18632 if test "x$ac_cv_header_shadow_h" = xyes; then :
18633 cat >>confdefs.h <<_ACEOF
18634 #define HAVE_SHADOW_H 1
18635 _ACEOF
18636
18637 fi
18638
18639 done
18640
18641 saveLIBS="$LIBS"
18642 SHADOWLIBS=""
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspent in -lshadow" >&5
18644 $as_echo_n "checking for getspent in -lshadow... " >&6; }
18645 if ${ac_cv_lib_shadow_getspent+:} false; then :
18646 $as_echo_n "(cached) " >&6
18647 else
18648 ac_check_lib_save_LIBS=$LIBS
18649 LIBS="-lshadow $LIBS"
18650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18651 /* end confdefs.h. */
18652
18653 /* Override any GCC internal prototype to avoid an error.
18654 Use char because int might match the return type of a GCC
18655 builtin and then its argument prototype would still apply. */
18656 #ifdef __cplusplus
18657 extern "C"
18658 #endif
18659 char getspent ();
18660 int
18661 main ()
18662 {
18663 return getspent ();
18664 ;
18665 return 0;
18666 }
18667 _ACEOF
18668 if ac_fn_c_try_link "$LINENO"; then :
18669 ac_cv_lib_shadow_getspent=yes
18670 else
18671 ac_cv_lib_shadow_getspent=no
18672 fi
18673 rm -f core conftest.err conftest.$ac_objext \
18674 conftest$ac_exeext conftest.$ac_ext
18675 LIBS=$ac_check_lib_save_LIBS
18676 fi
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shadow_getspent" >&5
18678 $as_echo "$ac_cv_lib_shadow_getspent" >&6; }
18679 if test "x$ac_cv_lib_shadow_getspent" = xyes; then :
18680 SHADOWLIBS="-lshadow" ; LIBS="-lshadow $LIBS"
18681 fi
18682
18683 for ac_func in endspent getspent
18684 do :
18685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18686 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18687 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18688 cat >>confdefs.h <<_ACEOF
18689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18690 _ACEOF
18691
18692 fi
18693 done
18694
18695 LIBS="$saveLIBS"
18696
18697 if test "$doauthshadow" = "no"
18698 then
18699 HAVE_SHADOW=0
18700 else
18701
18702 saveLIBS="$LIBS"
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspent in -lshadow" >&5
18704 $as_echo_n "checking for getspent in -lshadow... " >&6; }
18705 if ${ac_cv_lib_shadow_getspent+:} false; then :
18706 $as_echo_n "(cached) " >&6
18707 else
18708 ac_check_lib_save_LIBS=$LIBS
18709 LIBS="-lshadow $LIBS"
18710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18711 /* end confdefs.h. */
18712
18713 /* Override any GCC internal prototype to avoid an error.
18714 Use char because int might match the return type of a GCC
18715 builtin and then its argument prototype would still apply. */
18716 #ifdef __cplusplus
18717 extern "C"
18718 #endif
18719 char getspent ();
18720 int
18721 main ()
18722 {
18723 return getspent ();
18724 ;
18725 return 0;
18726 }
18727 _ACEOF
18728 if ac_fn_c_try_link "$LINENO"; then :
18729 ac_cv_lib_shadow_getspent=yes
18730 else
18731 ac_cv_lib_shadow_getspent=no
18732 fi
18733 rm -f core conftest.err conftest.$ac_objext \
18734 conftest$ac_exeext conftest.$ac_ext
18735 LIBS=$ac_check_lib_save_LIBS
18736 fi
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shadow_getspent" >&5
18738 $as_echo "$ac_cv_lib_shadow_getspent" >&6; }
18739 if test "x$ac_cv_lib_shadow_getspent" = xyes; then :
18740 cat >>confdefs.h <<_ACEOF
18741 #define HAVE_LIBSHADOW 1
18742 _ACEOF
18743
18744 LIBS="-lshadow $LIBS"
18745
18746 fi
18747
18748 ac_fn_c_check_func "$LINENO" "getspent" "ac_cv_func_getspent"
18749 if test "x$ac_cv_func_getspent" = xyes; then :
18750 HAVE_SHADOW=1
18751 else
18752 HAVE_SHADOW=0
18753 fi
18754
18755 LIBS="$saveLIBS"
18756 fi
18757
18758 LIBAUTHSHADOW=""
18759 if test "$HAVE_SHADOW" = 1
18760 then
18761 LIBAUTHSHADOW="libauthshadow.la"
18762 fi
18763
18764
18765
18766 LIBAUTHPWD=""
18767 if test "$HAVE_PWD" = 1
18768 then
18769 LIBAUTHPWD="libauthpwd.la"
18770 fi
18771
18772
18773
18774
18775
18776
18777 # Check whether --with-authpgsqlrc was given.
18778 if test "${with_authpgsqlrc+set}" = set; then :
18779 withval=$with_authpgsqlrc; authpgsqlrc="$withval"
18780 else
18781 authpgsqlrc="$pkgconfdir/authpgsqlrc"
18782 fi
18783
18784
18785
18786
18787 # Check whether --with-authpgsql was given.
18788 if test "${with_authpgsql+set}" = set; then :
18789 withval=$with_authpgsql; doauthpgsql="$withval"
18790 fi
18791
18792
18793 for ac_prog in pg_config
18794 do
18795 # Extract the first word of "$ac_prog", so it can be a program name with args.
18796 set dummy $ac_prog; ac_word=$2
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18798 $as_echo_n "checking for $ac_word... " >&6; }
18799 if ${ac_cv_path_PG_CONFIG+:} false; then :
18800 $as_echo_n "(cached) " >&6
18801 else
18802 case $PG_CONFIG in
18803 [\\/]* | ?:[\\/]*)
18804 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
18805 ;;
18806 *)
18807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18808 for as_dir in $LPATH
18809 do
18810 IFS=$as_save_IFS
18811 test -z "$as_dir" && as_dir=.
18812 for ac_exec_ext in '' $ac_executable_extensions; do
18813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18814 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18816 break 2
18817 fi
18818 done
18819 done
18820 IFS=$as_save_IFS
18821
18822 ;;
18823 esac
18824 fi
18825 PG_CONFIG=$ac_cv_path_PG_CONFIG
18826 if test -n "$PG_CONFIG"; then
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
18828 $as_echo "$PG_CONFIG" >&6; }
18829 else
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18831 $as_echo "no" >&6; }
18832 fi
18833
18834
18835 test -n "$PG_CONFIG" && break
18836 done
18837 test -n "$PG_CONFIG" || PG_CONFIG="pg_config"
18838
18839
18840 PGSQL_LIBS="-lpq"
18841
18842 # Check whether --with-pgsql-libs was given.
18843 if test "${with_pgsql_libs+set}" = set; then :
18844 withval=$with_pgsql_libs; PGSQL_LIBS="-L$withval $PGSQL_LIBS"
18845 else
18846 if test -x $PG_CONFIG
18847 then
18848 PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS"
18849 fi
18850
18851 fi
18852
18853
18854 # Check whether --with-pgsql-includes was given.
18855 if test "${with_pgsql_includes+set}" = set; then :
18856 withval=$with_pgsql_includes; PGSQL_CFLAGS="-I$withval"
18857 else
18858 if test -x $PG_CONFIG
18859 then
18860 PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`"
18861 fi
18862
18863 fi
18864
18865
18866 if test "$doauthpgsql" = ""
18867 then
18868 LIBS="$PGSQL_LIBS $LIBS"
18869 ac_fn_c_check_func "$LINENO" "PQsetdbLogin" "ac_cv_func_PQsetdbLogin"
18870 if test "x$ac_cv_func_PQsetdbLogin" = xyes; then :
18871 doauthpgsql="yes"
18872
18873 fi
18874
18875 LIBS="$saveLIBS"
18876 fi
18877
18878 if test "$doauthpgsql" != "yes"
18879 then
18880 LIBAUTHPGSQL=""
18881 HAVE_AUTHPGSQL=0
18882 else
18883 saveLIBS="$LIBS"
18884 LIBS="$PGSQL_LIBS $LIBS"
18885 ac_fn_c_check_func "$LINENO" "PQsetdbLogin" "ac_cv_func_PQsetdbLogin"
18886 if test "x$ac_cv_func_PQsetdbLogin" = xyes; then :
18887 AUTHPGSQL="authpgsql"
18888 HAVE_AUTHPGSQL=1
18889 else
18890 as_fn_error $? "--with-authpgsql specified but no libpq.so" "$LINENO" 5
18891 fi
18892
18893 LIBS="$saveLIBS"
18894 HAVE_AUTHPGSQL=1
18895 CFLAGS="$PGSQL_CFLAGS $CFLAGS"
18896 CXXFLAGS="$PGSQL_CFLAGS $CXXFLAGS"
18897 LIBAUTHPGSQL="libauthpgsql.la"
18898 fi
18899
18900
18901
18902 if test "$HAVE_AUTHPGSQL" = 1; then
18903 HAVE_AUTHPGSQL_TRUE=
18904 HAVE_AUTHPGSQL_FALSE='#'
18905 else
18906 HAVE_AUTHPGSQL_TRUE='#'
18907 HAVE_AUTHPGSQL_FALSE=
18908 fi
18909
18910
18911
18912
18913
18914
18915 # Check whether --with-authmysqlrc was given.
18916 if test "${with_authmysqlrc+set}" = set; then :
18917 withval=$with_authmysqlrc; authmysqlrc="$withval"
18918 else
18919 authmysqlrc="$pkgconfdir/authmysqlrc"
18920 fi
18921
18922
18923
18924
18925 # Check whether --with-authmysql was given.
18926 if test "${with_authmysql+set}" = set; then :
18927 withval=$with_authmysql; doauthmysql="$withval"
18928 fi
18929
18930
18931 # Check whether --with-mysql-libs was given.
18932 if test "${with_mysql_libs+set}" = set; then :
18933 withval=$with_mysql_libs; MYSQL_LIBS="-L$withval -lmysqlclient"
18934
18935 fi
18936
18937
18938 # Check whether --with-mysql-includes was given.
18939 if test "${with_mysql_includes+set}" = set; then :
18940 withval=$with_mysql_includes; MYSQL_CFLAGS="-I$withval"
18941
18942 fi
18943
18944
18945 for ac_prog in mysql_config
18946 do
18947 # Extract the first word of "$ac_prog", so it can be a program name with args.
18948 set dummy $ac_prog; ac_word=$2
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18950 $as_echo_n "checking for $ac_word... " >&6; }
18951 if ${ac_cv_path_MYSQL_CONFIG+:} false; then :
18952 $as_echo_n "(cached) " >&6
18953 else
18954 case $MYSQL_CONFIG in
18955 [\\/]* | ?:[\\/]*)
18956 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
18957 ;;
18958 *)
18959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18960 for as_dir in $LPATH
18961 do
18962 IFS=$as_save_IFS
18963 test -z "$as_dir" && as_dir=.
18964 for ac_exec_ext in '' $ac_executable_extensions; do
18965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18966 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18968 break 2
18969 fi
18970 done
18971 done
18972 IFS=$as_save_IFS
18973
18974 ;;
18975 esac
18976 fi
18977 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
18978 if test -n "$MYSQL_CONFIG"; then
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
18980 $as_echo "$MYSQL_CONFIG" >&6; }
18981 else
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18983 $as_echo "no" >&6; }
18984 fi
18985
18986
18987 test -n "$MYSQL_CONFIG" && break
18988 done
18989 test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="mysql_config"
18990
18991
18992 if test -x "$MYSQL_CONFIG"
18993 then
18994 MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`"
18995 MYSQL_LIBS="`$MYSQL_CONFIG --libs`"
18996
18997 eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\`\""
18998 eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\`\""
18999 fi
19000
19001 if test "$doauthmysql" = ""
19002 then
19003 LIBS="$MYSQL_LIBS $LIBS"
19004 ac_fn_c_check_func "$LINENO" "mysql_connect" "ac_cv_func_mysql_connect"
19005 if test "x$ac_cv_func_mysql_connect" = xyes; then :
19006 doauthmysql="yes"
19007
19008 fi
19009
19010 ac_fn_c_check_func "$LINENO" "mysql_real_connect" "ac_cv_func_mysql_real_connect"
19011 if test "x$ac_cv_func_mysql_real_connect" = xyes; then :
19012 doauthmysql="yes"
19013
19014 fi
19015
19016 LIBS="$saveLIBS"
19017 fi
19018
19019 if test "$doauthmysql" != "yes"
19020 then
19021 LIBAUTHMYSQL=""
19022 HAVE_AUTHMYSQL=0
19023 else
19024 saveLIBS="$LIBS"
19025 LIBS="$MYSQL_LIBS $LIBS"
19026 ac_fn_c_check_func "$LINENO" "mysql_connect" "ac_cv_func_mysql_connect"
19027 if test "x$ac_cv_func_mysql_connect" = xyes; then :
19028 LIBAUTHMYSQL="libauthmysql.la"
19029 HAVE_AUTHMYSQL=1
19030 else
19031
19032 ac_fn_c_check_func "$LINENO" "mysql_real_connect" "ac_cv_func_mysql_real_connect"
19033 if test "x$ac_cv_func_mysql_real_connect" = xyes; then :
19034 LIBAUTHMYSQL="libauthmysql.la"
19035 HAVE_AUTHMYSQL=1
19036 else
19037 as_fn_error $? "--with-authmysql specified but no mysqlclient.so" "$LINENO" 5
19038
19039 fi
19040
19041
19042
19043 fi
19044
19045 LIBS="$saveLIBS"
19046 HAVE_AUTHMYSQL=1
19047 CFLAGS="$MYSQL_CFLAGS $CFLAGS"
19048 CXXFLAGS="$MYSQL_CFLAGS $CXXFLAGS"
19049 fi
19050
19051
19052 if test "$HAVE_AUTHMYSQL" = 1; then
19053 HAVE_AUTHMYSQL_TRUE=
19054 HAVE_AUTHMYSQL_FALSE='#'
19055 else
19056 HAVE_AUTHMYSQL_TRUE='#'
19057 HAVE_AUTHMYSQL_FALSE=
19058 fi
19059
19060
19061
19062
19063
19064
19065 # Check whether --with-authsqliterc was given.
19066 if test "${with_authsqliterc+set}" = set; then :
19067 withval=$with_authsqliterc; authsqliterc="$withval"
19068 else
19069 authsqliterc="$pkgconfdir/authsqliterc"
19070 fi
19071
19072
19073
19074
19075 # Check whether --with-authsqlite was given.
19076 if test "${with_authsqlite+set}" = set; then :
19077 withval=$with_authsqlite; doauthsqlite="$withval"
19078 fi
19079
19080
19081
19082 # Check whether --with-sqlite-libs was given.
19083 if test "${with_sqlite_libs+set}" = set; then :
19084 withval=$with_sqlite_libs; SQLITE_LIBS="-lsqlite3"
19085
19086 fi
19087
19088
19089 # Check whether --with-sqlite-includes was given.
19090 if test "${with_sqlite_includes+set}" = set; then :
19091 withval=$with_sqlite_includes; SQLITE_CFLAGS="-I$withval"
19092
19093 fi
19094
19095
19096 if test "$doauthsqlite" = ""
19097 then
19098 SQLITE_CFLAGS="`pkg-config --cflags sqlite3 2>/dev/null`"
19099 SQLITE_LIBS="`pkg-config --libs sqlite3 2>/dev/null`"
19100 saveLIBS="$LIBS"
19101 LIBS="$SQLITE_LIBS $LIBS"
19102 ac_fn_c_check_func "$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version"
19103 if test "x$ac_cv_func_sqlite3_version" = xyes; then :
19104 doauthsqlite="yes"
19105
19106 fi
19107
19108 LIBS="$saveLIBS"
19109 fi
19110
19111 if test "$doauthsqlite" != "yes"
19112 then
19113 SQLITE_LIBS=""
19114 SQLITE_CFLAGS=""
19115 HAVE_AUTHSQLITE=0
19116 LIBAUTHSQLITE=""
19117 else
19118 saveLIBS="$LIBS"
19119 LIBS="$SQLITE_LIBS $LIBS"
19120 ac_fn_c_check_func "$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version"
19121 if test "x$ac_cv_func_sqlite3_version" = xyes; then :
19122 :
19123 else
19124 as_fn_error $? "Cannot link with $SQLITE_LIBS" "$LINENO" 5
19125
19126 fi
19127
19128 LIBS="$saveLIBS"
19129 HAVE_AUTHSQLITE=1
19130 CFLAGS="$SQLITE_CFLAGS $CFLAGS"
19131 CXXFLAGS="$SQLITE_CXXFLAGS $CFLAGS"
19132 LIBAUTHSQLITE="libauthsqlite.la"
19133
19134 fi
19135
19136
19137 if test "$HAVE_AUTHSQLITE" = 1; then
19138 HAVE_AUTHSQLITE_TRUE=
19139 HAVE_AUTHSQLITE_FALSE='#'
19140 else
19141 HAVE_AUTHSQLITE_TRUE='#'
19142 HAVE_AUTHSQLITE_FALSE=
19143 fi
19144
19145
19146
19147
19148
19149
19150
19151 # Check whether --with-authcustom was given.
19152 if test "${with_authcustom+set}" = set; then :
19153 withval=$with_authcustom; doauthcustom="$withval"
19154 else
19155 doauthcustom=yes
19156 fi
19157
19158
19159 LIBAUTHCUSTOM=""
19160
19161 if test "$doauthcustom" = "yes"
19162 then
19163 LIBAUTHCUSTOM="libauthcustom.la"
19164 fi
19165
19166 if test "$AUTHCUSTOM" != ""; then
19167 HAVE_CUSTOM_TRUE=
19168 HAVE_CUSTOM_FALSE='#'
19169 else
19170 HAVE_CUSTOM_TRUE='#'
19171 HAVE_CUSTOM_FALSE=
19172 fi
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182 # Check whether --with-pipeprog was given.
19183 if test "${with_pipeprog+set}" = set; then :
19184 withval=$with_pipeprog; authProg="$withval"
19185 else
19186 authProg="$pkgconfdir/authProg"
19187 fi
19188
19189
19190
19191
19192 # Check whether --with-authpipe was given.
19193 if test "${with_authpipe+set}" = set; then :
19194 withval=$with_authpipe; doauthpipe="$withval"
19195 else
19196 doauthpipe=yes
19197 fi
19198
19199
19200 LIBAUTHPIPE=""
19201
19202 if test "$doauthpipe" = "yes"
19203 then
19204 LIBAUTHPIPE="libauthpipe.la"
19205 fi
19206
19207 if test "$AUTHPIPE" != ""; then
19208 HAVE_PIPE_TRUE=
19209 HAVE_PIPE_FALSE='#'
19210 else
19211 HAVE_PIPE_TRUE='#'
19212 HAVE_PIPE_FALSE=
19213 fi
19214
19215
19216
19217
19218
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19220 $as_echo_n "checking for ANSI C header files... " >&6; }
19221 if ${ac_cv_header_stdc+:} false; then :
19222 $as_echo_n "(cached) " >&6
19223 else
19224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19225 /* end confdefs.h. */
19226 #include <stdlib.h>
19227 #include <stdarg.h>
19228 #include <string.h>
19229 #include <float.h>
19230
19231 int
19232 main ()
19233 {
19234
19235 ;
19236 return 0;
19237 }
19238 _ACEOF
19239 if ac_fn_c_try_compile "$LINENO"; then :
19240 ac_cv_header_stdc=yes
19241 else
19242 ac_cv_header_stdc=no
19243 fi
19244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19245
19246 if test $ac_cv_header_stdc = yes; then
19247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19249 /* end confdefs.h. */
19250 #include <string.h>
19251
19252 _ACEOF
19253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19254 $EGREP "memchr" >/dev/null 2>&1; then :
19255
19256 else
19257 ac_cv_header_stdc=no
19258 fi
19259 rm -f conftest*
19260
19261 fi
19262
19263 if test $ac_cv_header_stdc = yes; then
19264 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19266 /* end confdefs.h. */
19267 #include <stdlib.h>
19268
19269 _ACEOF
19270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19271 $EGREP "free" >/dev/null 2>&1; then :
19272
19273 else
19274 ac_cv_header_stdc=no
19275 fi
19276 rm -f conftest*
19277
19278 fi
19279
19280 if test $ac_cv_header_stdc = yes; then
19281 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19282 if test "$cross_compiling" = yes; then :
19283 :
19284 else
19285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19286 /* end confdefs.h. */
19287 #include <ctype.h>
19288 #include <stdlib.h>
19289 #if ((' ' & 0x0FF) == 0x020)
19290 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19291 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19292 #else
19293 # define ISLOWER(c) \
19294 (('a' <= (c) && (c) <= 'i') \
19295 || ('j' <= (c) && (c) <= 'r') \
19296 || ('s' <= (c) && (c) <= 'z'))
19297 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19298 #endif
19299
19300 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19301 int
19302 main ()
19303 {
19304 int i;
19305 for (i = 0; i < 256; i++)
19306 if (XOR (islower (i), ISLOWER (i))
19307 || toupper (i) != TOUPPER (i))
19308 return 2;
19309 return 0;
19310 }
19311 _ACEOF
19312 if ac_fn_c_try_run "$LINENO"; then :
19313
19314 else
19315 ac_cv_header_stdc=no
19316 fi
19317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19318 conftest.$ac_objext conftest.beam conftest.$ac_ext
19319 fi
19320
19321 fi
19322 fi
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19324 $as_echo "$ac_cv_header_stdc" >&6; }
19325 if test $ac_cv_header_stdc = yes; then
19326
19327 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19328
19329 fi
19330
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
19332 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
19333 if ${ac_cv_header_sys_wait_h+:} false; then :
19334 $as_echo_n "(cached) " >&6
19335 else
19336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19337 /* end confdefs.h. */
19338 #include <sys/types.h>
19339 #include <sys/wait.h>
19340 #ifndef WEXITSTATUS
19341 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19342 #endif
19343 #ifndef WIFEXITED
19344 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19345 #endif
19346
19347 int
19348 main ()
19349 {
19350 int s;
19351 wait (&s);
19352 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19353 ;
19354 return 0;
19355 }
19356 _ACEOF
19357 if ac_fn_c_try_compile "$LINENO"; then :
19358 ac_cv_header_sys_wait_h=yes
19359 else
19360 ac_cv_header_sys_wait_h=no
19361 fi
19362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19363 fi
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
19365 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
19366 if test $ac_cv_header_sys_wait_h = yes; then
19367
19368 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
19369
19370 fi
19371
19372 for ac_header in sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h
19373 do :
19374 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19375 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19376 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19377 cat >>confdefs.h <<_ACEOF
19378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19379 _ACEOF
19380
19381 fi
19382
19383 done
19384
19385
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19387 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19388 if ${ac_cv_c_const+:} false; then :
19389 $as_echo_n "(cached) " >&6
19390 else
19391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19392 /* end confdefs.h. */
19393
19394 int
19395 main ()
19396 {
19397
19398 #ifndef __cplusplus
19399 /* Ultrix mips cc rejects this sort of thing. */
19400 typedef int charset[2];
19401 const charset cs = { 0, 0 };
19402 /* SunOS 4.1.1 cc rejects this. */
19403 char const *const *pcpcc;
19404 char **ppc;
19405 /* NEC SVR4.0.2 mips cc rejects this. */
19406 struct point {int x, y;};
19407 static struct point const zero = {0,0};
19408 /* AIX XL C 1.02.0.0 rejects this.
19409 It does not let you subtract one const X* pointer from another in
19410 an arm of an if-expression whose if-part is not a constant
19411 expression */
19412 const char *g = "string";
19413 pcpcc = &g + (g ? g-g : 0);
19414 /* HPUX 7.0 cc rejects these. */
19415 ++pcpcc;
19416 ppc = (char**) pcpcc;
19417 pcpcc = (char const *const *) ppc;
19418 { /* SCO 3.2v4 cc rejects this sort of thing. */
19419 char tx;
19420 char *t = &tx;
19421 char const *s = 0 ? (char *) 0 : (char const *) 0;
19422
19423 *t++ = 0;
19424 if (s) return 0;
19425 }
19426 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19427 int x[] = {25, 17};
19428 const int *foo = &x[0];
19429 ++foo;
19430 }
19431 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19432 typedef const int *iptr;
19433 iptr p = 0;
19434 ++p;
19435 }
19436 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19437 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19438 struct s { int j; const int *ap[3]; } bx;
19439 struct s *b = &bx; b->j = 5;
19440 }
19441 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19442 const int foo = 10;
19443 if (!foo) return 0;
19444 }
19445 return !cs[0] && !zero.x;
19446 #endif
19447
19448 ;
19449 return 0;
19450 }
19451 _ACEOF
19452 if ac_fn_c_try_compile "$LINENO"; then :
19453 ac_cv_c_const=yes
19454 else
19455 ac_cv_c_const=no
19456 fi
19457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19458 fi
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19460 $as_echo "$ac_cv_c_const" >&6; }
19461 if test $ac_cv_c_const = no; then
19462
19463 $as_echo "#define const /**/" >>confdefs.h
19464
19465 fi
19466
19467 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19468 if test "x$ac_cv_type_pid_t" = xyes; then :
19469
19470 else
19471
19472 cat >>confdefs.h <<_ACEOF
19473 #define pid_t int
19474 _ACEOF
19475
19476 fi
19477
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19479 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19480 if ${ac_cv_type_uid_t+:} false; then :
19481 $as_echo_n "(cached) " >&6
19482 else
19483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19484 /* end confdefs.h. */
19485 #include <sys/types.h>
19486
19487 _ACEOF
19488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19489 $EGREP "uid_t" >/dev/null 2>&1; then :
19490 ac_cv_type_uid_t=yes
19491 else
19492 ac_cv_type_uid_t=no
19493 fi
19494 rm -f conftest*
19495
19496 fi
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19498 $as_echo "$ac_cv_type_uid_t" >&6; }
19499 if test $ac_cv_type_uid_t = no; then
19500
19501 $as_echo "#define uid_t int" >>confdefs.h
19502
19503
19504 $as_echo "#define gid_t int" >>confdefs.h
19505
19506 fi
19507
19508 for ac_func in setsid setlogin
19509 do :
19510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19511 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19512 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19513 cat >>confdefs.h <<_ACEOF
19514 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19515 _ACEOF
19516
19517 fi
19518 done
19519
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
19521 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
19522 if ${ac_cv_lib_crypt_crypt+:} false; then :
19523 $as_echo_n "(cached) " >&6
19524 else
19525 ac_check_lib_save_LIBS=$LIBS
19526 LIBS="-lcrypt $LIBS"
19527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19528 /* end confdefs.h. */
19529
19530 /* Override any GCC internal prototype to avoid an error.
19531 Use char because int might match the return type of a GCC
19532 builtin and then its argument prototype would still apply. */
19533 #ifdef __cplusplus
19534 extern "C"
19535 #endif
19536 char crypt ();
19537 int
19538 main ()
19539 {
19540 return crypt ();
19541 ;
19542 return 0;
19543 }
19544 _ACEOF
19545 if ac_fn_c_try_link "$LINENO"; then :
19546 ac_cv_lib_crypt_crypt=yes
19547 else
19548 ac_cv_lib_crypt_crypt=no
19549 fi
19550 rm -f core conftest.err conftest.$ac_objext \
19551 conftest$ac_exeext conftest.$ac_ext
19552 LIBS=$ac_check_lib_save_LIBS
19553 fi
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
19555 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
19556 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
19557 CRYPTLIBS="-lcrypt"
19558 fi
19559
19560 saveLIBS="$LIBS"
19561 LIBS="$CRYPTLIBS $LIBS"
19562 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
19563 if test "x$ac_cv_func_crypt" = xyes; then :
19564
19565 cat >>confdefs.h <<_ACEOF
19566 #define HAVE_CRYPT 1
19567 _ACEOF
19568
19569 fi
19570
19571 ac_fn_c_check_func "$LINENO" "bcrypt" "ac_cv_func_bcrypt"
19572 if test "x$ac_cv_func_bcrypt" = xyes; then :
19573
19574 cat >>confdefs.h <<_ACEOF
19575 #define HAVE_BCRYPT 1
19576 _ACEOF
19577
19578 fi
19579
19580 LIBS="$saveLIBS"
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt() prototype" >&5
19582 $as_echo_n "checking for crypt() prototype... " >&6; }
19583 if ${userdb_cv_NEED_CRYPT_PROTOTYPE+:} false; then :
19584 $as_echo_n "(cached) " >&6
19585 else
19586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19587 /* end confdefs.h. */
19588
19589 #if HAVE_CRYPT_H
19590 #include <crypt.h>
19591 #endif
19592 #if HAVE_UNISTD_H
19593 #include <unistd.h>
19594 #endif
19595 int crypt(int, int);
19596
19597
19598 int
19599 main ()
19600 {
19601
19602 ;
19603 return 0;
19604 }
19605 _ACEOF
19606 if ac_fn_c_try_compile "$LINENO"; then :
19607 userdb_cv_NEED_CRYPT_PROTOTYPE=1
19608 else
19609 userdb_cv_NEED_CRYPT_PROTOTYPE=0
19610 fi
19611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19612
19613
19614 fi
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
19616 $as_echo "$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
19617
19618
19619 cat >>confdefs.h <<_ACEOF
19620 #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
19621 _ACEOF
19622
19623
19624
19625
19626
19627
19628
19629 # Check whether --with-authdaemonrc was given.
19630 if test "${with_authdaemonrc+set}" = set; then :
19631 withval=$with_authdaemonrc; authdaemonrc="$withval"
19632 else
19633 authdaemonrc="$pkgconfdir/authdaemonrc"
19634 fi
19635
19636
19637
19638
19639 # Check whether --with-authdaemonvar was given.
19640 if test "${with_authdaemonvar+set}" = set; then :
19641 withval=$with_authdaemonvar; authdaemonvar="$withval"
19642 else
19643 authdaemonvar="$localstatedir/spool/authdaemon"
19644 fi
19645
19646
19647
19648
19649
19650
19651 rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h
19652
19653
19654 result=""
19655
19656 if test -x "$COURIERCONFIG"
19657 then
19658 $COURIERCONFIG >conftest.out || exit 1
19659 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
19660 . ./conftest2.out
19661 rm -f conftest.out conftest2.out
19662
19663 cmailuser="$mailuser"
19664 cmailgroup="$mailgroup"
19665 result=" (from courier-config)"
19666 fi
19667
19668 if test -x "$bindir/courierauthconfig"
19669 then
19670 $bindir/courierauthconfig --configfiles >conftest.out || exit 1
19671 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
19672 . ./conftest2.out
19673 rm -f conftest.out conftest2.out
19674
19675 cmailuser="$mailuser"
19676 cmailgroup="$mailgroup"
19677 result=" (from previous courierauthconfig)"
19678 fi
19679
19680
19681
19682 LB='['
19683 RB=']'
19684
19685
19686
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mail userid" >&5
19688 $as_echo_n "checking for mail userid... " >&6; }
19689
19690
19691 # Check whether --with-mailuser was given.
19692 if test "${with_mailuser+set}" = set; then :
19693 withval=$with_mailuser; mailuser="$withval"
19694 else
19695 if test "$cmailuser" = ""
19696 then
19697 if test "$cross_compiling" = yes; then :
19698 as_fn_error $? "Must use --with-mailuser when cross compiling." "$LINENO" 5
19699 else
19700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19701 /* end confdefs.h. */
19702
19703 #include <stdio.h>
19704 #include <pwd.h>
19705 #include <stdlib.h>
19706
19707 static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0};
19708
19709 int main()
19710 {
19711 int i;
19712 FILE *f;
19713 char *p;
19714
19715 for (i=0; ids $LB i $RB; i++)
19716 if (getpwnam(ids $LB i $RB)) break;
19717
19718 f=fopen("conftest.out", "w");
19719 if (f && ids $LB i $RB)
19720 {
19721 fprintf(f, "%s\n", ids $LB i $RB);
19722 fclose(f);
19723 exit(0);
19724 }
19725 fclose(f);
19726 exit (1);
19727 return (1);
19728 }
19729
19730 _ACEOF
19731 if ac_fn_c_try_run "$LINENO"; then :
19732 mailuser=`cat conftest.out`
19733 else
19734 as_fn_error use --with-mailuser. "Cannot determine mail user" "$LINENO" 5
19735 fi
19736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19737 conftest.$ac_objext conftest.beam conftest.$ac_ext
19738 fi
19739
19740 else
19741 mailuser="$cmailuser"
19742 fi
19743 ac_configure_args="$ac_configure_args --with-mailuser=$mailuser"
19744 fi
19745
19746
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailuser $result" >&5
19748 $as_echo "$mailuser $result" >&6; }
19749
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mail group id" >&5
19751 $as_echo_n "checking for mail group id... " >&6; }
19752
19753
19754 # Check whether --with-mailgroup was given.
19755 if test "${with_mailgroup+set}" = set; then :
19756 withval=$with_mailgroup; mailgroup="$withval"
19757 else
19758 if test "$cmailgroup" = ""
19759 then
19760 if test "$cross_compiling" = yes; then :
19761 as_fn_error $? "Must use --with-mailgroup when cross compiling." "$LINENO" 5
19762 else
19763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19764 /* end confdefs.h. */
19765
19766 #include <stdio.h>
19767 #include <grp.h>
19768 #include <stdlib.h>
19769
19770 static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0};
19771
19772 int main()
19773 {
19774 int i;
19775 FILE *f;
19776
19777 for (i=0; ids $LB i $RB; i++)
19778 if (getgrnam(ids $LB i $RB)) break;
19779
19780 f=fopen("conftest.out", "w");
19781 if (f && ids $LB i $RB)
19782 {
19783 fprintf(f, "%s\n", ids $LB i $RB);
19784 fclose(f);
19785 exit(0);
19786 }
19787 fclose(f);
19788 exit (1);
19789 return (1);
19790 }
19791
19792 _ACEOF
19793 if ac_fn_c_try_run "$LINENO"; then :
19794 mailgroup=`cat conftest.out`
19795 else
19796 as_fn_error use --with-mailgroup. "Cannot determine mail group" "$LINENO" 5
19797 fi
19798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19799 conftest.$ac_objext conftest.beam conftest.$ac_ext
19800 fi
19801
19802 else
19803 mailgroup="$cmailgroup"
19804 fi
19805 ac_configure_args="$ac_configure_args --with-mailgroup=$mailgroup"
19806
19807 fi
19808
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailgroup $result" >&5
19810 $as_echo "$mailgroup $result" >&6; }
19811
19812
19813 rm -f conftest.out
19814
19815
19816 # Check whether --with-stdheaderdir was given.
19817 if test "${with_stdheaderdir+set}" = set; then :
19818 withval=$with_stdheaderdir;
19819 if test "$withval" = "no"
19820 then
19821
19822 cat >>confdefs.h <<_ACEOF
19823 #define HAVE_NOSTDHEADERDIR 1
19824 _ACEOF
19825
19826 fi
19827
19828 fi
19829
19830
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
19832 $as_echo_n "checking for socklen_t... " >&6; }
19833 if ${authlib_cv_hassocklen_t+:} false; then :
19834 $as_echo_n "(cached) " >&6
19835 else
19836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19837 /* end confdefs.h. */
19838
19839
19840 #include <sys/types.h>
19841 #include <sys/socket.h>
19842
19843 socklen_t sl_t;
19844
19845 _ACEOF
19846 if ac_fn_c_try_compile "$LINENO"; then :
19847 authlib_cv_hassocklen_t=yes
19848 else
19849 authlib_cv_hassocklen_t=no
19850 fi
19851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19852
19853 fi
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $authlib_cv_hassocklen_t" >&5
19855 $as_echo "$authlib_cv_hassocklen_t" >&6; }
19856
19857 socklen_t="int"
19858
19859 if test $authlib_cv_hassocklen_t = yes
19860 then
19861 :
19862 else
19863
19864 cat >>confdefs.h <<_ACEOF
19865 #define socklen_t int
19866 _ACEOF
19867
19868 fi
19869
19870
19871 # Check whether --with-repository was given.
19872 if test "${with_repository+set}" = set; then :
19873 withval=$with_repository; REPOSITORY="$withval"
19874 fi
19875
19876
19877
19878 if test -d ${srcdir}/libs/docbook; then
19879 HAVE_SGML_TRUE=
19880 HAVE_SGML_FALSE='#'
19881 else
19882 HAVE_SGML_TRUE='#'
19883 HAVE_SGML_FALSE=
19884 fi
19885
19886
19887 # This gets built by the make rule, and is not in the git repo
19888
19889 for f in authdaemonrc.in
19890 do
19891 if test ! -f "$srcdir/$f"
19892 then
19893 cp -p "$srcdir/$f.git" "$srcdir/$f"
19894 touch "$srcdir/$f.git"
19895 fi
19896 done
19897
19898 subdirs="$subdirs libs/bdbobj libs/gdbmobj libs/md5 libs/sha1 libs/libhmac libs/numlib libs/makedat userdb libs/rfc822 libs/random128 libs/liblock liblog"
19899
19900
19901 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"
19902
19903 cat >confcache <<\_ACEOF
19904 # This file is a shell script that caches the results of configure
19905 # tests run on this system so they can be shared between configure
19906 # scripts and configure runs, see configure's option --config-cache.
19907 # It is not useful on other systems. If it contains results you don't
19908 # want to keep, you may remove or edit it.
19909 #
19910 # config.status only pays attention to the cache file if you give it
19911 # the --recheck option to rerun configure.
19912 #
19913 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19914 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19915 # following values.
19916
19917 _ACEOF
19918
19919 # The following way of writing the cache mishandles newlines in values,
19920 # but we know of no workaround that is simple, portable, and efficient.
19921 # So, we kill variables containing newlines.
19922 # Ultrix sh set writes to stderr and can't be redirected directly,
19923 # and sets the high bit in the cache file unless we assign to the vars.
19924 (
19925 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19926 eval ac_val=\$$ac_var
19927 case $ac_val in #(
19928 *${as_nl}*)
19929 case $ac_var in #(
19930 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19931 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19932 esac
19933 case $ac_var in #(
19934 _ | IFS | as_nl) ;; #(
19935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19936 *) { eval $ac_var=; unset $ac_var;} ;;
19937 esac ;;
19938 esac
19939 done
19940
19941 (set) 2>&1 |
19942 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19943 *${as_nl}ac_space=\ *)
19944 # `set' does not quote correctly, so add quotes: double-quote
19945 # substitution turns \\\\ into \\, and sed turns \\ into \.
19946 sed -n \
19947 "s/'/'\\\\''/g;
19948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19949 ;; #(
19950 *)
19951 # `set' quotes correctly as required by POSIX, so do not add quotes.
19952 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19953 ;;
19954 esac |
19955 sort
19956 ) |
19957 sed '
19958 /^ac_cv_env_/b end
19959 t clear
19960 :clear
19961 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19962 t end
19963 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19964 :end' >>confcache
19965 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19966 if test -w "$cache_file"; then
19967 if test "x$cache_file" != "x/dev/null"; then
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19969 $as_echo "$as_me: updating cache $cache_file" >&6;}
19970 if test ! -f "$cache_file" || test -h "$cache_file"; then
19971 cat confcache >"$cache_file"
19972 else
19973 case $cache_file in #(
19974 */* | ?:*)
19975 mv -f confcache "$cache_file"$$ &&
19976 mv -f "$cache_file"$$ "$cache_file" ;; #(
19977 *)
19978 mv -f confcache "$cache_file" ;;
19979 esac
19980 fi
19981 fi
19982 else
19983 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19984 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19985 fi
19986 fi
19987 rm -f confcache
19988
19989 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19990 # Let make expand exec_prefix.
19991 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19992
19993 DEFS=-DHAVE_CONFIG_H
19994
19995 ac_libobjs=
19996 ac_ltlibobjs=
19997 U=
19998 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19999 # 1. Remove the extension, and $U if already installed.
20000 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20001 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20002 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20003 # will be set to the directory where LIBOBJS objects are built.
20004 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20005 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20006 done
20007 LIBOBJS=$ac_libobjs
20008
20009 LTLIBOBJS=$ac_ltlibobjs
20010
20011
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20013 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20014 if test -n "$am_sleep_pid"; then
20015 # Hide warnings about reused PIDs.
20016 wait $am_sleep_pid 2>/dev/null
20017 fi
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20019 $as_echo "done" >&6; }
20020 if test -n "$EXEEXT"; then
20021 am__EXEEXT_TRUE=
20022 am__EXEEXT_FALSE='#'
20023 else
20024 am__EXEEXT_TRUE='#'
20025 am__EXEEXT_FALSE=
20026 fi
20027
20028 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20029 as_fn_error $? "conditional \"AMDEP\" was never defined.
20030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20031 fi
20032 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20033 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20035 fi
20036 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20037 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20039 fi
20040 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20041 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
20042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20043 fi
20044 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20045 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
20046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20047 fi
20048 LT_CONFIG_H=courier_auth_config.h
20049
20050 _ltdl_libobjs=
20051 _ltdl_ltlibobjs=
20052 if test -n "$_LT_LIBOBJS"; then
20053 # Remove the extension.
20054 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
20055 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
20056 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
20057 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
20058 done
20059 fi
20060 ltdl_LIBOBJS=$_ltdl_libobjs
20061
20062 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
20063
20064
20065 if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
20066 as_fn_error $? "conditional \"HAVE_LDAP\" was never defined.
20067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20068 fi
20069 if test -z "${HAVE_AUTHPGSQL_TRUE}" && test -z "${HAVE_AUTHPGSQL_FALSE}"; then
20070 as_fn_error $? "conditional \"HAVE_AUTHPGSQL\" was never defined.
20071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20072 fi
20073 if test -z "${HAVE_AUTHMYSQL_TRUE}" && test -z "${HAVE_AUTHMYSQL_FALSE}"; then
20074 as_fn_error $? "conditional \"HAVE_AUTHMYSQL\" was never defined.
20075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20076 fi
20077 if test -z "${HAVE_AUTHSQLITE_TRUE}" && test -z "${HAVE_AUTHSQLITE_FALSE}"; then
20078 as_fn_error $? "conditional \"HAVE_AUTHSQLITE\" was never defined.
20079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20080 fi
20081 if test -z "${HAVE_CUSTOM_TRUE}" && test -z "${HAVE_CUSTOM_FALSE}"; then
20082 as_fn_error $? "conditional \"HAVE_CUSTOM\" was never defined.
20083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20084 fi
20085 if test -z "${HAVE_PIPE_TRUE}" && test -z "${HAVE_PIPE_FALSE}"; then
20086 as_fn_error $? "conditional \"HAVE_PIPE\" was never defined.
20087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20088 fi
20089 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
20090 as_fn_error $? "conditional \"HAVE_SGML\" was never defined.
20091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20092 fi
20093
20094 : "${CONFIG_STATUS=./config.status}"
20095 ac_write_fail=0
20096 ac_clean_files_save=$ac_clean_files
20097 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20099 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20100 as_write_fail=0
20101 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20102 #! $SHELL
20103 # Generated by $as_me.
20104 # Run this file to recreate the current configuration.
20105 # Compiler output produced by configure, useful for debugging
20106 # configure, is in config.log if it exists.
20107
20108 debug=false
20109 ac_cs_recheck=false
20110 ac_cs_silent=false
20111
20112 SHELL=\${CONFIG_SHELL-$SHELL}
20113 export SHELL
20114 _ASEOF
20115 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20116 ## -------------------- ##
20117 ## M4sh Initialization. ##
20118 ## -------------------- ##
20119
20120 # Be more Bourne compatible
20121 DUALCASE=1; export DUALCASE # for MKS sh
20122 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20123 emulate sh
20124 NULLCMD=:
20125 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20126 # is contrary to our usage. Disable this feature.
20127 alias -g '${1+"$@"}'='"$@"'
20128 setopt NO_GLOB_SUBST
20129 else
20130 case `(set -o) 2>/dev/null` in #(
20131 *posix*) :
20132 set -o posix ;; #(
20133 *) :
20134 ;;
20135 esac
20136 fi
20137
20138
20139 as_nl='
20140 '
20141 export as_nl
20142 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20143 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20144 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20145 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20146 # Prefer a ksh shell builtin over an external printf program on Solaris,
20147 # but without wasting forks for bash or zsh.
20148 if test -z "$BASH_VERSION$ZSH_VERSION" \
20149 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20150 as_echo='print -r --'
20151 as_echo_n='print -rn --'
20152 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20153 as_echo='printf %s\n'
20154 as_echo_n='printf %s'
20155 else
20156 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20157 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20158 as_echo_n='/usr/ucb/echo -n'
20159 else
20160 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20161 as_echo_n_body='eval
20162 arg=$1;
20163 case $arg in #(
20164 *"$as_nl"*)
20165 expr "X$arg" : "X\\(.*\\)$as_nl";
20166 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20167 esac;
20168 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20169 '
20170 export as_echo_n_body
20171 as_echo_n='sh -c $as_echo_n_body as_echo'
20172 fi
20173 export as_echo_body
20174 as_echo='sh -c $as_echo_body as_echo'
20175 fi
20176
20177 # The user is always right.
20178 if test "${PATH_SEPARATOR+set}" != set; then
20179 PATH_SEPARATOR=:
20180 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20181 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20182 PATH_SEPARATOR=';'
20183 }
20184 fi
20185
20186
20187 # IFS
20188 # We need space, tab and new line, in precisely that order. Quoting is
20189 # there to prevent editors from complaining about space-tab.
20190 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20191 # splitting by setting IFS to empty value.)
20192 IFS=" "" $as_nl"
20193
20194 # Find who we are. Look in the path if we contain no directory separator.
20195 as_myself=
20196 case $0 in #((
20197 *[\\/]* ) as_myself=$0 ;;
20198 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20199 for as_dir in $PATH
20200 do
20201 IFS=$as_save_IFS
20202 test -z "$as_dir" && as_dir=.
20203 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20204 done
20205 IFS=$as_save_IFS
20206
20207 ;;
20208 esac
20209 # We did not find ourselves, most probably we were run as `sh COMMAND'
20210 # in which case we are not to be found in the path.
20211 if test "x$as_myself" = x; then
20212 as_myself=$0
20213 fi
20214 if test ! -f "$as_myself"; then
20215 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20216 exit 1
20217 fi
20218
20219 # Unset variables that we do not need and which cause bugs (e.g. in
20220 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20221 # suppresses any "Segmentation fault" message there. '((' could
20222 # trigger a bug in pdksh 5.2.14.
20223 for as_var in BASH_ENV ENV MAIL MAILPATH
20224 do eval test x\${$as_var+set} = xset \
20225 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20226 done
20227 PS1='$ '
20228 PS2='> '
20229 PS4='+ '
20230
20231 # NLS nuisances.
20232 LC_ALL=C
20233 export LC_ALL
20234 LANGUAGE=C
20235 export LANGUAGE
20236
20237 # CDPATH.
20238 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20239
20240
20241 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20242 # ----------------------------------------
20243 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20244 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20245 # script with STATUS, using 1 if that was 0.
20246 as_fn_error ()
20247 {
20248 as_status=$1; test $as_status -eq 0 && as_status=1
20249 if test "$4"; then
20250 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20251 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20252 fi
20253 $as_echo "$as_me: error: $2" >&2
20254 as_fn_exit $as_status
20255 } # as_fn_error
20256
20257
20258 # as_fn_set_status STATUS
20259 # -----------------------
20260 # Set $? to STATUS, without forking.
20261 as_fn_set_status ()
20262 {
20263 return $1
20264 } # as_fn_set_status
20265
20266 # as_fn_exit STATUS
20267 # -----------------
20268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20269 as_fn_exit ()
20270 {
20271 set +e
20272 as_fn_set_status $1
20273 exit $1
20274 } # as_fn_exit
20275
20276 # as_fn_unset VAR
20277 # ---------------
20278 # Portably unset VAR.
20279 as_fn_unset ()
20280 {
20281 { eval $1=; unset $1;}
20282 }
20283 as_unset=as_fn_unset
20284 # as_fn_append VAR VALUE
20285 # ----------------------
20286 # Append the text in VALUE to the end of the definition contained in VAR. Take
20287 # advantage of any shell optimizations that allow amortized linear growth over
20288 # repeated appends, instead of the typical quadratic growth present in naive
20289 # implementations.
20290 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20291 eval 'as_fn_append ()
20292 {
20293 eval $1+=\$2
20294 }'
20295 else
20296 as_fn_append ()
20297 {
20298 eval $1=\$$1\$2
20299 }
20300 fi # as_fn_append
20301
20302 # as_fn_arith ARG...
20303 # ------------------
20304 # Perform arithmetic evaluation on the ARGs, and store the result in the
20305 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20306 # must be portable across $(()) and expr.
20307 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20308 eval 'as_fn_arith ()
20309 {
20310 as_val=$(( $* ))
20311 }'
20312 else
20313 as_fn_arith ()
20314 {
20315 as_val=`expr "$@" || test $? -eq 1`
20316 }
20317 fi # as_fn_arith
20318
20319
20320 if expr a : '\(a\)' >/dev/null 2>&1 &&
20321 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20322 as_expr=expr
20323 else
20324 as_expr=false
20325 fi
20326
20327 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20328 as_basename=basename
20329 else
20330 as_basename=false
20331 fi
20332
20333 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20334 as_dirname=dirname
20335 else
20336 as_dirname=false
20337 fi
20338
20339 as_me=`$as_basename -- "$0" ||
20340 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20341 X"$0" : 'X\(//\)$' \| \
20342 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20343 $as_echo X/"$0" |
20344 sed '/^.*\/\([^/][^/]*\)\/*$/{
20345 s//\1/
20346 q
20347 }
20348 /^X\/\(\/\/\)$/{
20349 s//\1/
20350 q
20351 }
20352 /^X\/\(\/\).*/{
20353 s//\1/
20354 q
20355 }
20356 s/.*/./; q'`
20357
20358 # Avoid depending upon Character Ranges.
20359 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20360 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20361 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20362 as_cr_digits='0123456789'
20363 as_cr_alnum=$as_cr_Letters$as_cr_digits
20364
20365 ECHO_C= ECHO_N= ECHO_T=
20366 case `echo -n x` in #(((((
20367 -n*)
20368 case `echo 'xy\c'` in
20369 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20370 xy) ECHO_C='\c';;
20371 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20372 ECHO_T=' ';;
20373 esac;;
20374 *)
20375 ECHO_N='-n';;
20376 esac
20377
20378 rm -f conf$$ conf$$.exe conf$$.file
20379 if test -d conf$$.dir; then
20380 rm -f conf$$.dir/conf$$.file
20381 else
20382 rm -f conf$$.dir
20383 mkdir conf$$.dir 2>/dev/null
20384 fi
20385 if (echo >conf$$.file) 2>/dev/null; then
20386 if ln -s conf$$.file conf$$ 2>/dev/null; then
20387 as_ln_s='ln -s'
20388 # ... but there are two gotchas:
20389 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20390 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20391 # In both cases, we have to default to `cp -pR'.
20392 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20393 as_ln_s='cp -pR'
20394 elif ln conf$$.file conf$$ 2>/dev/null; then
20395 as_ln_s=ln
20396 else
20397 as_ln_s='cp -pR'
20398 fi
20399 else
20400 as_ln_s='cp -pR'
20401 fi
20402 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20403 rmdir conf$$.dir 2>/dev/null
20404
20405
20406 # as_fn_mkdir_p
20407 # -------------
20408 # Create "$as_dir" as a directory, including parents if necessary.
20409 as_fn_mkdir_p ()
20410 {
20411
20412 case $as_dir in #(
20413 -*) as_dir=./$as_dir;;
20414 esac
20415 test -d "$as_dir" || eval $as_mkdir_p || {
20416 as_dirs=
20417 while :; do
20418 case $as_dir in #(
20419 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20420 *) as_qdir=$as_dir;;
20421 esac
20422 as_dirs="'$as_qdir' $as_dirs"
20423 as_dir=`$as_dirname -- "$as_dir" ||
20424 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20425 X"$as_dir" : 'X\(//\)[^/]' \| \
20426 X"$as_dir" : 'X\(//\)$' \| \
20427 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20428 $as_echo X"$as_dir" |
20429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20430 s//\1/
20431 q
20432 }
20433 /^X\(\/\/\)[^/].*/{
20434 s//\1/
20435 q
20436 }
20437 /^X\(\/\/\)$/{
20438 s//\1/
20439 q
20440 }
20441 /^X\(\/\).*/{
20442 s//\1/
20443 q
20444 }
20445 s/.*/./; q'`
20446 test -d "$as_dir" && break
20447 done
20448 test -z "$as_dirs" || eval "mkdir $as_dirs"
20449 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20450
20451
20452 } # as_fn_mkdir_p
20453 if mkdir -p . 2>/dev/null; then
20454 as_mkdir_p='mkdir -p "$as_dir"'
20455 else
20456 test -d ./-p && rmdir ./-p
20457 as_mkdir_p=false
20458 fi
20459
20460
20461 # as_fn_executable_p FILE
20462 # -----------------------
20463 # Test if FILE is an executable regular file.
20464 as_fn_executable_p ()
20465 {
20466 test -f "$1" && test -x "$1"
20467 } # as_fn_executable_p
20468 as_test_x='test -x'
20469 as_executable_p=as_fn_executable_p
20470
20471 # Sed expression to map a string onto a valid CPP name.
20472 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20473
20474 # Sed expression to map a string onto a valid variable name.
20475 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20476
20477
20478 exec 6>&1
20479 ## ----------------------------------- ##
20480 ## Main body of $CONFIG_STATUS script. ##
20481 ## ----------------------------------- ##
20482 _ASEOF
20483 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20484
20485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20486 # Save the log message, to keep $0 and so on meaningful, and to
20487 # report actual input values of CONFIG_FILES etc. instead of their
20488 # values after options handling.
20489 ac_log="
20490 This file was extended by courier-authlib $as_me 0.69.0, which was
20491 generated by GNU Autoconf 2.69. Invocation command line was
20492
20493 CONFIG_FILES = $CONFIG_FILES
20494 CONFIG_HEADERS = $CONFIG_HEADERS
20495 CONFIG_LINKS = $CONFIG_LINKS
20496 CONFIG_COMMANDS = $CONFIG_COMMANDS
20497 $ $0 $@
20498
20499 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20500 "
20501
20502 _ACEOF
20503
20504 case $ac_config_files in *"
20505 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20506 esac
20507
20508 case $ac_config_headers in *"
20509 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20510 esac
20511
20512
20513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20514 # Files that config.status was made for.
20515 config_files="$ac_config_files"
20516 config_headers="$ac_config_headers"
20517 config_commands="$ac_config_commands"
20518
20519 _ACEOF
20520
20521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20522 ac_cs_usage="\
20523 \`$as_me' instantiates files and other configuration actions
20524 from templates according to the current configuration. Unless the files
20525 and actions are specified as TAGs, all are instantiated by default.
20526
20527 Usage: $0 [OPTION]... [TAG]...
20528
20529 -h, --help print this help, then exit
20530 -V, --version print version number and configuration settings, then exit
20531 --config print configuration, then exit
20532 -q, --quiet, --silent
20533 do not print progress messages
20534 -d, --debug don't remove temporary files
20535 --recheck update $as_me by reconfiguring in the same conditions
20536 --file=FILE[:TEMPLATE]
20537 instantiate the configuration file FILE
20538 --header=FILE[:TEMPLATE]
20539 instantiate the configuration header FILE
20540
20541 Configuration files:
20542 $config_files
20543
20544 Configuration headers:
20545 $config_headers
20546
20547 Configuration commands:
20548 $config_commands
20549
20550 Report bugs to <courier-users@lists.sourceforge.net>."
20551
20552 _ACEOF
20553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20554 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20555 ac_cs_version="\\
20556 courier-authlib config.status 0.69.0
20557 configured by $0, generated by GNU Autoconf 2.69,
20558 with options \\"\$ac_cs_config\\"
20559
20560 Copyright (C) 2012 Free Software Foundation, Inc.
20561 This config.status script is free software; the Free Software Foundation
20562 gives unlimited permission to copy, distribute and modify it."
20563
20564 ac_pwd='$ac_pwd'
20565 srcdir='$srcdir'
20566 INSTALL='$INSTALL'
20567 MKDIR_P='$MKDIR_P'
20568 AWK='$AWK'
20569 test -n "\$AWK" || AWK=awk
20570 _ACEOF
20571
20572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20573 # The default lists apply if the user does not specify any file.
20574 ac_need_defaults=:
20575 while test $# != 0
20576 do
20577 case $1 in
20578 --*=?*)
20579 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20580 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20581 ac_shift=:
20582 ;;
20583 --*=)
20584 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20585 ac_optarg=
20586 ac_shift=:
20587 ;;
20588 *)
20589 ac_option=$1
20590 ac_optarg=$2
20591 ac_shift=shift
20592 ;;
20593 esac
20594
20595 case $ac_option in
20596 # Handling of the options.
20597 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20598 ac_cs_recheck=: ;;
20599 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20600 $as_echo "$ac_cs_version"; exit ;;
20601 --config | --confi | --conf | --con | --co | --c )
20602 $as_echo "$ac_cs_config"; exit ;;
20603 --debug | --debu | --deb | --de | --d | -d )
20604 debug=: ;;
20605 --file | --fil | --fi | --f )
20606 $ac_shift
20607 case $ac_optarg in
20608 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20609 '') as_fn_error $? "missing file argument" ;;
20610 esac
20611 as_fn_append CONFIG_FILES " '$ac_optarg'"
20612 ac_need_defaults=false;;
20613 --header | --heade | --head | --hea )
20614 $ac_shift
20615 case $ac_optarg in
20616 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20617 esac
20618 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20619 ac_need_defaults=false;;
20620 --he | --h)
20621 # Conflict between --help and --header
20622 as_fn_error $? "ambiguous option: \`$1'
20623 Try \`$0 --help' for more information.";;
20624 --help | --hel | -h )
20625 $as_echo "$ac_cs_usage"; exit ;;
20626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20627 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20628 ac_cs_silent=: ;;
20629
20630 # This is an error.
20631 -*) as_fn_error $? "unrecognized option: \`$1'
20632 Try \`$0 --help' for more information." ;;
20633
20634 *) as_fn_append ac_config_targets " $1"
20635 ac_need_defaults=false ;;
20636
20637 esac
20638 shift
20639 done
20640
20641 ac_configure_extra_args=
20642
20643 if $ac_cs_silent; then
20644 exec 6>/dev/null
20645 ac_configure_extra_args="$ac_configure_extra_args --silent"
20646 fi
20647
20648 _ACEOF
20649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20650 if \$ac_cs_recheck; then
20651 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20652 shift
20653 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20654 CONFIG_SHELL='$SHELL'
20655 export CONFIG_SHELL
20656 exec "\$@"
20657 fi
20658
20659 _ACEOF
20660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20661 exec 5>>config.log
20662 {
20663 echo
20664 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20665 ## Running $as_me. ##
20666 _ASBOX
20667 $as_echo "$ac_log"
20668 } >&5
20669
20670 _ACEOF
20671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20672 #
20673 # INIT-COMMANDS
20674 #
20675 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20676
20677
20678 # The HP-UX ksh and POSIX shell print the target directory to stdout
20679 # if CDPATH is set.
20680 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20681
20682 sed_quote_subst='$sed_quote_subst'
20683 double_quote_subst='$double_quote_subst'
20684 delay_variable_subst='$delay_variable_subst'
20685 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20686 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20687 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20688 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20689 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20690 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20691 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20692 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20693 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20694 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20695 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20696 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20697 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20698 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20699 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20700 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20701 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20702 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20703 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20704 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20705 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20706 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20707 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20708 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20709 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20710 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20711 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20712 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20713 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20714 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20715 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20716 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20717 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20718 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20719 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20720 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20721 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20722 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20723 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20724 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20725 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20726 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20727 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20728 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20729 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20730 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20731 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20732 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20733 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20734 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20735 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20736 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20737 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20738 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20739 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20740 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20741 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20742 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20743 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"`'
20744 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20745 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20746 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20747 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20748 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20749 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20750 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20751 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20752 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20753 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20754 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20755 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20756 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20757 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20758 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20759 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20760 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20761 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20762 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20763 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20764 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20765 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20766 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20767 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20768 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20769 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20770 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20771 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20772 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20773 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20774 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20775 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20776 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20777 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20778 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20779 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20780 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20781 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20782 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20783 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20784 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20785 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20786 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20787 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20788 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20789 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20790 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20791 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20792 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20793 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20794 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20795 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20796 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20797 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20798 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20799 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20800 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20801 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20802 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20803 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20804 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20805 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20806 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20807 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20808 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20809 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20810 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20811 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20812 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20813 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20814 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20815 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20816 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20817 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20818 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20819 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20820 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20821 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20822 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20823 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20824 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20825 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20826 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20827 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20828 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20829 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20830 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20831 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20832 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20833 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20834 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20835 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20836 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20837 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20838 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20839 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20840 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20841 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20842 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20843 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20844 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20845 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20846 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20847 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20848 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20849 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20850 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20851 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20852 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20853 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20854 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20855 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20856 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20857 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20858 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20859 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20860 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20861 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20862 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20863 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20864 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20865 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20866 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20867 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20868 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20869 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20870 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20871 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20872 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20873 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20874
20875 LTCC='$LTCC'
20876 LTCFLAGS='$LTCFLAGS'
20877 compiler='$compiler_DEFAULT'
20878
20879 # A function that is used when there is no print builtin or printf.
20880 func_fallback_echo ()
20881 {
20882 eval 'cat <<_LTECHO_EOF
20883 \$1
20884 _LTECHO_EOF'
20885 }
20886
20887 # Quote evaled strings.
20888 for var in SHELL \
20889 ECHO \
20890 PATH_SEPARATOR \
20891 SED \
20892 GREP \
20893 EGREP \
20894 FGREP \
20895 LD \
20896 NM \
20897 LN_S \
20898 lt_SP2NL \
20899 lt_NL2SP \
20900 reload_flag \
20901 OBJDUMP \
20902 deplibs_check_method \
20903 file_magic_cmd \
20904 file_magic_glob \
20905 want_nocaseglob \
20906 DLLTOOL \
20907 sharedlib_from_linklib_cmd \
20908 AR \
20909 AR_FLAGS \
20910 archiver_list_spec \
20911 STRIP \
20912 RANLIB \
20913 CC \
20914 CFLAGS \
20915 compiler \
20916 lt_cv_sys_global_symbol_pipe \
20917 lt_cv_sys_global_symbol_to_cdecl \
20918 lt_cv_sys_global_symbol_to_import \
20919 lt_cv_sys_global_symbol_to_c_name_address \
20920 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20921 lt_cv_nm_interface \
20922 nm_file_list_spec \
20923 lt_cv_truncate_bin \
20924 lt_prog_compiler_no_builtin_flag \
20925 lt_prog_compiler_pic \
20926 lt_prog_compiler_wl \
20927 lt_prog_compiler_static \
20928 lt_cv_prog_compiler_c_o \
20929 need_locks \
20930 MANIFEST_TOOL \
20931 DSYMUTIL \
20932 NMEDIT \
20933 LIPO \
20934 OTOOL \
20935 OTOOL64 \
20936 shrext_cmds \
20937 export_dynamic_flag_spec \
20938 whole_archive_flag_spec \
20939 compiler_needs_object \
20940 with_gnu_ld \
20941 allow_undefined_flag \
20942 no_undefined_flag \
20943 hardcode_libdir_flag_spec \
20944 hardcode_libdir_separator \
20945 exclude_expsyms \
20946 include_expsyms \
20947 file_list_spec \
20948 variables_saved_for_relink \
20949 libname_spec \
20950 library_names_spec \
20951 soname_spec \
20952 install_override_mode \
20953 finish_eval \
20954 old_striplib \
20955 striplib \
20956 compiler_lib_search_dirs \
20957 predep_objects \
20958 postdep_objects \
20959 predeps \
20960 postdeps \
20961 compiler_lib_search_path \
20962 LD_CXX \
20963 reload_flag_CXX \
20964 compiler_CXX \
20965 lt_prog_compiler_no_builtin_flag_CXX \
20966 lt_prog_compiler_pic_CXX \
20967 lt_prog_compiler_wl_CXX \
20968 lt_prog_compiler_static_CXX \
20969 lt_cv_prog_compiler_c_o_CXX \
20970 export_dynamic_flag_spec_CXX \
20971 whole_archive_flag_spec_CXX \
20972 compiler_needs_object_CXX \
20973 with_gnu_ld_CXX \
20974 allow_undefined_flag_CXX \
20975 no_undefined_flag_CXX \
20976 hardcode_libdir_flag_spec_CXX \
20977 hardcode_libdir_separator_CXX \
20978 exclude_expsyms_CXX \
20979 include_expsyms_CXX \
20980 file_list_spec_CXX \
20981 compiler_lib_search_dirs_CXX \
20982 predep_objects_CXX \
20983 postdep_objects_CXX \
20984 predeps_CXX \
20985 postdeps_CXX \
20986 compiler_lib_search_path_CXX; do
20987 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20988 *[\\\\\\\`\\"\\\$]*)
20989 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20990 ;;
20991 *)
20992 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20993 ;;
20994 esac
20995 done
20996
20997 # Double-quote double-evaled strings.
20998 for var in reload_cmds \
20999 old_postinstall_cmds \
21000 old_postuninstall_cmds \
21001 old_archive_cmds \
21002 extract_expsyms_cmds \
21003 old_archive_from_new_cmds \
21004 old_archive_from_expsyms_cmds \
21005 archive_cmds \
21006 archive_expsym_cmds \
21007 module_cmds \
21008 module_expsym_cmds \
21009 export_symbols_cmds \
21010 prelink_cmds \
21011 postlink_cmds \
21012 postinstall_cmds \
21013 postuninstall_cmds \
21014 finish_cmds \
21015 sys_lib_search_path_spec \
21016 configure_time_dlsearch_path \
21017 configure_time_lt_sys_library_path \
21018 reload_cmds_CXX \
21019 old_archive_cmds_CXX \
21020 old_archive_from_new_cmds_CXX \
21021 old_archive_from_expsyms_cmds_CXX \
21022 archive_cmds_CXX \
21023 archive_expsym_cmds_CXX \
21024 module_cmds_CXX \
21025 module_expsym_cmds_CXX \
21026 export_symbols_cmds_CXX \
21027 prelink_cmds_CXX \
21028 postlink_cmds_CXX; do
21029 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21030 *[\\\\\\\`\\"\\\$]*)
21031 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21032 ;;
21033 *)
21034 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21035 ;;
21036 esac
21037 done
21038
21039 ac_aux_dir='$ac_aux_dir'
21040
21041 # See if we are running on zsh, and set the options that allow our
21042 # commands through without removal of \ escapes INIT.
21043 if test -n "\${ZSH_VERSION+set}"; then
21044 setopt NO_GLOB_SUBST
21045 fi
21046
21047
21048 PACKAGE='$PACKAGE'
21049 VERSION='$VERSION'
21050 RM='$RM'
21051 ofile='$ofile'
21052
21053
21054
21055
21056
21057
21058 _ACEOF
21059
21060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21061
21062 # Handling of arguments.
21063 for ac_config_target in $ac_config_targets
21064 do
21065 case $ac_config_target in
21066 "courier_auth_config.h") CONFIG_HEADERS="$CONFIG_HEADERS courier_auth_config.h" ;;
21067 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21068 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21069 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21070 "authdaemond") CONFIG_FILES="$CONFIG_FILES authdaemond" ;;
21071 "authdaemonrc") CONFIG_FILES="$CONFIG_FILES authdaemonrc" ;;
21072 "authsystem.passwd") CONFIG_FILES="$CONFIG_FILES authsystem.passwd" ;;
21073 "README.authdebug.html") CONFIG_FILES="$CONFIG_FILES README.authdebug.html" ;;
21074 "dbobj.config") CONFIG_FILES="$CONFIG_FILES dbobj.config" ;;
21075 "dbobj.h") CONFIG_FILES="$CONFIG_FILES dbobj.h" ;;
21076 "authmigrate") CONFIG_FILES="$CONFIG_FILES authmigrate" ;;
21077 "courier-authlib.spec") CONFIG_FILES="$CONFIG_FILES courier-authlib.spec" ;;
21078 "courier-authlib.lpspec") CONFIG_FILES="$CONFIG_FILES courier-authlib.lpspec" ;;
21079 "courier-authlib.sysvinit") CONFIG_FILES="$CONFIG_FILES courier-authlib.sysvinit" ;;
21080 "courier-authlib.service") CONFIG_FILES="$CONFIG_FILES courier-authlib.service" ;;
21081 "userdb-test-cram-md5.pl") CONFIG_FILES="$CONFIG_FILES userdb-test-cram-md5.pl" ;;
21082
21083 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21084 esac
21085 done
21086
21087
21088 # If the user did not use the arguments to specify the items to instantiate,
21089 # then the envvar interface is used. Set only those that are not.
21090 # We use the long form for the default assignment because of an extremely
21091 # bizarre bug on SunOS 4.1.3.
21092 if $ac_need_defaults; then
21093 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21094 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21095 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21096 fi
21097
21098 # Have a temporary directory for convenience. Make it in the build tree
21099 # simply because there is no reason against having it here, and in addition,
21100 # creating and moving files from /tmp can sometimes cause problems.
21101 # Hook for its removal unless debugging.
21102 # Note that there is a small window in which the directory will not be cleaned:
21103 # after its creation but before its name has been assigned to `$tmp'.
21104 $debug ||
21105 {
21106 tmp= ac_tmp=
21107 trap 'exit_status=$?
21108 : "${ac_tmp:=$tmp}"
21109 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21110 ' 0
21111 trap 'as_fn_exit 1' 1 2 13 15
21112 }
21113 # Create a (secure) tmp directory for tmp files.
21114
21115 {
21116 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21117 test -d "$tmp"
21118 } ||
21119 {
21120 tmp=./conf$$-$RANDOM
21121 (umask 077 && mkdir "$tmp")
21122 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21123 ac_tmp=$tmp
21124
21125 # Set up the scripts for CONFIG_FILES section.
21126 # No need to generate them if there are no CONFIG_FILES.
21127 # This happens for instance with `./config.status config.h'.
21128 if test -n "$CONFIG_FILES"; then
21129
21130
21131 ac_cr=`echo X | tr X '\015'`
21132 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21133 # But we know of no other shell where ac_cr would be empty at this
21134 # point, so we can use a bashism as a fallback.
21135 if test "x$ac_cr" = x; then
21136 eval ac_cr=\$\'\\r\'
21137 fi
21138 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21139 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21140 ac_cs_awk_cr='\\r'
21141 else
21142 ac_cs_awk_cr=$ac_cr
21143 fi
21144
21145 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21146 _ACEOF
21147
21148
21149 {
21150 echo "cat >conf$$subs.awk <<_ACEOF" &&
21151 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21152 echo "_ACEOF"
21153 } >conf$$subs.sh ||
21154 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21155 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21156 ac_delim='%!_!# '
21157 for ac_last_try in false false false false false :; do
21158 . ./conf$$subs.sh ||
21159 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21160
21161 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21162 if test $ac_delim_n = $ac_delim_num; then
21163 break
21164 elif $ac_last_try; then
21165 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21166 else
21167 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21168 fi
21169 done
21170 rm -f conf$$subs.sh
21171
21172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21173 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21174 _ACEOF
21175 sed -n '
21176 h
21177 s/^/S["/; s/!.*/"]=/
21178 p
21179 g
21180 s/^[^!]*!//
21181 :repl
21182 t repl
21183 s/'"$ac_delim"'$//
21184 t delim
21185 :nl
21186 h
21187 s/\(.\{148\}\)..*/\1/
21188 t more1
21189 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21190 p
21191 n
21192 b repl
21193 :more1
21194 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21195 p
21196 g
21197 s/.\{148\}//
21198 t nl
21199 :delim
21200 h
21201 s/\(.\{148\}\)..*/\1/
21202 t more2
21203 s/["\\]/\\&/g; s/^/"/; s/$/"/
21204 p
21205 b
21206 :more2
21207 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21208 p
21209 g
21210 s/.\{148\}//
21211 t delim
21212 ' <conf$$subs.awk | sed '
21213 /^[^""]/{
21214 N
21215 s/\n//
21216 }
21217 ' >>$CONFIG_STATUS || ac_write_fail=1
21218 rm -f conf$$subs.awk
21219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21220 _ACAWK
21221 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21222 for (key in S) S_is_set[key] = 1
21223 FS = "\a"
21224
21225 }
21226 {
21227 line = $ 0
21228 nfields = split(line, field, "@")
21229 substed = 0
21230 len = length(field[1])
21231 for (i = 2; i < nfields; i++) {
21232 key = field[i]
21233 keylen = length(key)
21234 if (S_is_set[key]) {
21235 value = S[key]
21236 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21237 len += length(value) + length(field[++i])
21238 substed = 1
21239 } else
21240 len += 1 + keylen
21241 }
21242
21243 print line
21244 }
21245
21246 _ACAWK
21247 _ACEOF
21248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21249 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21250 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21251 else
21252 cat
21253 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21254 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21255 _ACEOF
21256
21257 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21258 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21259 # trailing colons and then remove the whole line if VPATH becomes empty
21260 # (actually we leave an empty line to preserve line numbers).
21261 if test "x$srcdir" = x.; then
21262 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21263 h
21264 s///
21265 s/^/:/
21266 s/[ ]*$/:/
21267 s/:\$(srcdir):/:/g
21268 s/:\${srcdir}:/:/g
21269 s/:@srcdir@:/:/g
21270 s/^:*//
21271 s/:*$//
21272 x
21273 s/\(=[ ]*\).*/\1/
21274 G
21275 s/\n//
21276 s/^[^=]*=[ ]*$//
21277 }'
21278 fi
21279
21280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21281 fi # test -n "$CONFIG_FILES"
21282
21283 # Set up the scripts for CONFIG_HEADERS section.
21284 # No need to generate them if there are no CONFIG_HEADERS.
21285 # This happens for instance with `./config.status Makefile'.
21286 if test -n "$CONFIG_HEADERS"; then
21287 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21288 BEGIN {
21289 _ACEOF
21290
21291 # Transform confdefs.h into an awk script `defines.awk', embedded as
21292 # here-document in config.status, that substitutes the proper values into
21293 # config.h.in to produce config.h.
21294
21295 # Create a delimiter string that does not exist in confdefs.h, to ease
21296 # handling of long lines.
21297 ac_delim='%!_!# '
21298 for ac_last_try in false false :; do
21299 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21300 if test -z "$ac_tt"; then
21301 break
21302 elif $ac_last_try; then
21303 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21304 else
21305 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21306 fi
21307 done
21308
21309 # For the awk script, D is an array of macro values keyed by name,
21310 # likewise P contains macro parameters if any. Preserve backslash
21311 # newline sequences.
21312
21313 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21314 sed -n '
21315 s/.\{148\}/&'"$ac_delim"'/g
21316 t rset
21317 :rset
21318 s/^[ ]*#[ ]*define[ ][ ]*/ /
21319 t def
21320 d
21321 :def
21322 s/\\$//
21323 t bsnl
21324 s/["\\]/\\&/g
21325 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21326 D["\1"]=" \3"/p
21327 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21328 d
21329 :bsnl
21330 s/["\\]/\\&/g
21331 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21332 D["\1"]=" \3\\\\\\n"\\/p
21333 t cont
21334 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21335 t cont
21336 d
21337 :cont
21338 n
21339 s/.\{148\}/&'"$ac_delim"'/g
21340 t clear
21341 :clear
21342 s/\\$//
21343 t bsnlc
21344 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21345 d
21346 :bsnlc
21347 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21348 b cont
21349 ' <confdefs.h | sed '
21350 s/'"$ac_delim"'/"\\\
21351 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21352
21353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21354 for (key in D) D_is_set[key] = 1
21355 FS = "\a"
21356 }
21357 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21358 line = \$ 0
21359 split(line, arg, " ")
21360 if (arg[1] == "#") {
21361 defundef = arg[2]
21362 mac1 = arg[3]
21363 } else {
21364 defundef = substr(arg[1], 2)
21365 mac1 = arg[2]
21366 }
21367 split(mac1, mac2, "(") #)
21368 macro = mac2[1]
21369 prefix = substr(line, 1, index(line, defundef) - 1)
21370 if (D_is_set[macro]) {
21371 # Preserve the white space surrounding the "#".
21372 print prefix "define", macro P[macro] D[macro]
21373 next
21374 } else {
21375 # Replace #undef with comments. This is necessary, for example,
21376 # in the case of _POSIX_SOURCE, which is predefined and required
21377 # on some systems where configure will not decide to define it.
21378 if (defundef == "undef") {
21379 print "/*", prefix defundef, macro, "*/"
21380 next
21381 }
21382 }
21383 }
21384 { print }
21385 _ACAWK
21386 _ACEOF
21387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21388 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21389 fi # test -n "$CONFIG_HEADERS"
21390
21391
21392 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21393 shift
21394 for ac_tag
21395 do
21396 case $ac_tag in
21397 :[FHLC]) ac_mode=$ac_tag; continue;;
21398 esac
21399 case $ac_mode$ac_tag in
21400 :[FHL]*:*);;
21401 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21402 :[FH]-) ac_tag=-:-;;
21403 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21404 esac
21405 ac_save_IFS=$IFS
21406 IFS=:
21407 set x $ac_tag
21408 IFS=$ac_save_IFS
21409 shift
21410 ac_file=$1
21411 shift
21412
21413 case $ac_mode in
21414 :L) ac_source=$1;;
21415 :[FH])
21416 ac_file_inputs=
21417 for ac_f
21418 do
21419 case $ac_f in
21420 -) ac_f="$ac_tmp/stdin";;
21421 *) # Look for the file first in the build tree, then in the source tree
21422 # (if the path is not absolute). The absolute path cannot be DOS-style,
21423 # because $ac_f cannot contain `:'.
21424 test -f "$ac_f" ||
21425 case $ac_f in
21426 [\\/$]*) false;;
21427 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21428 esac ||
21429 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21430 esac
21431 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21432 as_fn_append ac_file_inputs " '$ac_f'"
21433 done
21434
21435 # Let's still pretend it is `configure' which instantiates (i.e., don't
21436 # use $as_me), people would be surprised to read:
21437 # /* config.h. Generated by config.status. */
21438 configure_input='Generated from '`
21439 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21440 `' by configure.'
21441 if test x"$ac_file" != x-; then
21442 configure_input="$ac_file. $configure_input"
21443 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21444 $as_echo "$as_me: creating $ac_file" >&6;}
21445 fi
21446 # Neutralize special characters interpreted by sed in replacement strings.
21447 case $configure_input in #(
21448 *\&* | *\|* | *\\* )
21449 ac_sed_conf_input=`$as_echo "$configure_input" |
21450 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21451 *) ac_sed_conf_input=$configure_input;;
21452 esac
21453
21454 case $ac_tag in
21455 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21456 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21457 esac
21458 ;;
21459 esac
21460
21461 ac_dir=`$as_dirname -- "$ac_file" ||
21462 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21463 X"$ac_file" : 'X\(//\)[^/]' \| \
21464 X"$ac_file" : 'X\(//\)$' \| \
21465 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21466 $as_echo X"$ac_file" |
21467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21468 s//\1/
21469 q
21470 }
21471 /^X\(\/\/\)[^/].*/{
21472 s//\1/
21473 q
21474 }
21475 /^X\(\/\/\)$/{
21476 s//\1/
21477 q
21478 }
21479 /^X\(\/\).*/{
21480 s//\1/
21481 q
21482 }
21483 s/.*/./; q'`
21484 as_dir="$ac_dir"; as_fn_mkdir_p
21485 ac_builddir=.
21486
21487 case "$ac_dir" in
21488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21489 *)
21490 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21491 # A ".." for each directory in $ac_dir_suffix.
21492 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21493 case $ac_top_builddir_sub in
21494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21496 esac ;;
21497 esac
21498 ac_abs_top_builddir=$ac_pwd
21499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21500 # for backward compatibility:
21501 ac_top_builddir=$ac_top_build_prefix
21502
21503 case $srcdir in
21504 .) # We are building in place.
21505 ac_srcdir=.
21506 ac_top_srcdir=$ac_top_builddir_sub
21507 ac_abs_top_srcdir=$ac_pwd ;;
21508 [\\/]* | ?:[\\/]* ) # Absolute name.
21509 ac_srcdir=$srcdir$ac_dir_suffix;
21510 ac_top_srcdir=$srcdir
21511 ac_abs_top_srcdir=$srcdir ;;
21512 *) # Relative name.
21513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21514 ac_top_srcdir=$ac_top_build_prefix$srcdir
21515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21516 esac
21517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21518
21519
21520 case $ac_mode in
21521 :F)
21522 #
21523 # CONFIG_FILE
21524 #
21525
21526 case $INSTALL in
21527 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21528 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21529 esac
21530 ac_MKDIR_P=$MKDIR_P
21531 case $MKDIR_P in
21532 [\\/$]* | ?:[\\/]* ) ;;
21533 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21534 esac
21535 _ACEOF
21536
21537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21538 # If the template does not know about datarootdir, expand it.
21539 # FIXME: This hack should be removed a few years after 2.60.
21540 ac_datarootdir_hack=; ac_datarootdir_seen=
21541 ac_sed_dataroot='
21542 /datarootdir/ {
21543 p
21544 q
21545 }
21546 /@datadir@/p
21547 /@docdir@/p
21548 /@infodir@/p
21549 /@localedir@/p
21550 /@mandir@/p'
21551 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21552 *datarootdir*) ac_datarootdir_seen=yes;;
21553 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21555 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21556 _ACEOF
21557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21558 ac_datarootdir_hack='
21559 s&@datadir@&$datadir&g
21560 s&@docdir@&$docdir&g
21561 s&@infodir@&$infodir&g
21562 s&@localedir@&$localedir&g
21563 s&@mandir@&$mandir&g
21564 s&\\\${datarootdir}&$datarootdir&g' ;;
21565 esac
21566 _ACEOF
21567
21568 # Neutralize VPATH when `$srcdir' = `.'.
21569 # Shell code in configure.ac might set extrasub.
21570 # FIXME: do we really want to maintain this feature?
21571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21572 ac_sed_extra="$ac_vpsub
21573 $extrasub
21574 _ACEOF
21575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21576 :t
21577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21578 s|@configure_input@|$ac_sed_conf_input|;t t
21579 s&@top_builddir@&$ac_top_builddir_sub&;t t
21580 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21581 s&@srcdir@&$ac_srcdir&;t t
21582 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21583 s&@top_srcdir@&$ac_top_srcdir&;t t
21584 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21585 s&@builddir@&$ac_builddir&;t t
21586 s&@abs_builddir@&$ac_abs_builddir&;t t
21587 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21588 s&@INSTALL@&$ac_INSTALL&;t t
21589 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21590 $ac_datarootdir_hack
21591 "
21592 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21593 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21594
21595 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21596 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21597 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21598 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21600 which seems to be undefined. Please make sure it is defined" >&5
21601 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21602 which seems to be undefined. Please make sure it is defined" >&2;}
21603
21604 rm -f "$ac_tmp/stdin"
21605 case $ac_file in
21606 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21607 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21608 esac \
21609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21610 ;;
21611 :H)
21612 #
21613 # CONFIG_HEADER
21614 #
21615 if test x"$ac_file" != x-; then
21616 {
21617 $as_echo "/* $configure_input */" \
21618 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21619 } >"$ac_tmp/config.h" \
21620 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21621 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21623 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21624 else
21625 rm -f "$ac_file"
21626 mv "$ac_tmp/config.h" "$ac_file" \
21627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21628 fi
21629 else
21630 $as_echo "/* $configure_input */" \
21631 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21632 || as_fn_error $? "could not create -" "$LINENO" 5
21633 fi
21634 # Compute "$ac_file"'s index in $config_headers.
21635 _am_arg="$ac_file"
21636 _am_stamp_count=1
21637 for _am_header in $config_headers :; do
21638 case $_am_header in
21639 $_am_arg | $_am_arg:* )
21640 break ;;
21641 * )
21642 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21643 esac
21644 done
21645 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21646 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21647 X"$_am_arg" : 'X\(//\)[^/]' \| \
21648 X"$_am_arg" : 'X\(//\)$' \| \
21649 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21650 $as_echo X"$_am_arg" |
21651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21652 s//\1/
21653 q
21654 }
21655 /^X\(\/\/\)[^/].*/{
21656 s//\1/
21657 q
21658 }
21659 /^X\(\/\/\)$/{
21660 s//\1/
21661 q
21662 }
21663 /^X\(\/\).*/{
21664 s//\1/
21665 q
21666 }
21667 s/.*/./; q'`/stamp-h$_am_stamp_count
21668 ;;
21669
21670 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21671 $as_echo "$as_me: executing $ac_file commands" >&6;}
21672 ;;
21673 esac
21674
21675
21676 case $ac_file$ac_mode in
21677 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21678 # Older Autoconf quotes --file arguments for eval, but not when files
21679 # are listed without --file. Let's play safe and only enable the eval
21680 # if we detect the quoting.
21681 case $CONFIG_FILES in
21682 *\'*) eval set x "$CONFIG_FILES" ;;
21683 *) set x $CONFIG_FILES ;;
21684 esac
21685 shift
21686 for mf
21687 do
21688 # Strip MF so we end up with the name of the file.
21689 mf=`echo "$mf" | sed -e 's/:.*$//'`
21690 # Check whether this is an Automake generated Makefile or not.
21691 # We used to match only the files named 'Makefile.in', but
21692 # some people rename them; so instead we look at the file content.
21693 # Grep'ing the first line is not enough: some people post-process
21694 # each Makefile.in and add a new line on top of each file to say so.
21695 # Grep'ing the whole file is not good either: AIX grep has a line
21696 # limit of 2048, but all sed's we know have understand at least 4000.
21697 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21698 dirpart=`$as_dirname -- "$mf" ||
21699 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21700 X"$mf" : 'X\(//\)[^/]' \| \
21701 X"$mf" : 'X\(//\)$' \| \
21702 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21703 $as_echo X"$mf" |
21704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21705 s//\1/
21706 q
21707 }
21708 /^X\(\/\/\)[^/].*/{
21709 s//\1/
21710 q
21711 }
21712 /^X\(\/\/\)$/{
21713 s//\1/
21714 q
21715 }
21716 /^X\(\/\).*/{
21717 s//\1/
21718 q
21719 }
21720 s/.*/./; q'`
21721 else
21722 continue
21723 fi
21724 # Extract the definition of DEPDIR, am__include, and am__quote
21725 # from the Makefile without running 'make'.
21726 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21727 test -z "$DEPDIR" && continue
21728 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21729 test -z "$am__include" && continue
21730 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21731 # Find all dependency output files, they are included files with
21732 # $(DEPDIR) in their names. We invoke sed twice because it is the
21733 # simplest approach to changing $(DEPDIR) to its actual value in the
21734 # expansion.
21735 for file in `sed -n "
21736 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21737 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21738 # Make sure the directory exists.
21739 test -f "$dirpart/$file" && continue
21740 fdir=`$as_dirname -- "$file" ||
21741 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21742 X"$file" : 'X\(//\)[^/]' \| \
21743 X"$file" : 'X\(//\)$' \| \
21744 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21745 $as_echo X"$file" |
21746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21747 s//\1/
21748 q
21749 }
21750 /^X\(\/\/\)[^/].*/{
21751 s//\1/
21752 q
21753 }
21754 /^X\(\/\/\)$/{
21755 s//\1/
21756 q
21757 }
21758 /^X\(\/\).*/{
21759 s//\1/
21760 q
21761 }
21762 s/.*/./; q'`
21763 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21764 # echo "creating $dirpart/$file"
21765 echo '# dummy' > "$dirpart/$file"
21766 done
21767 done
21768 }
21769 ;;
21770 "libtool":C)
21771
21772 # See if we are running on zsh, and set the options that allow our
21773 # commands through without removal of \ escapes.
21774 if test -n "${ZSH_VERSION+set}"; then
21775 setopt NO_GLOB_SUBST
21776 fi
21777
21778 cfgfile=${ofile}T
21779 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21780 $RM "$cfgfile"
21781
21782 cat <<_LT_EOF >> "$cfgfile"
21783 #! $SHELL
21784 # Generated automatically by $as_me ($PACKAGE) $VERSION
21785 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21786 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21787
21788 # Provide generalized library-building support services.
21789 # Written by Gordon Matzigkeit, 1996
21790
21791 # Copyright (C) 2014 Free Software Foundation, Inc.
21792 # This is free software; see the source for copying conditions. There is NO
21793 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21794
21795 # GNU Libtool is free software; you can redistribute it and/or modify
21796 # it under the terms of the GNU General Public License as published by
21797 # the Free Software Foundation; either version 2 of of the License, or
21798 # (at your option) any later version.
21799 #
21800 # As a special exception to the GNU General Public License, if you
21801 # distribute this file as part of a program or library that is built
21802 # using GNU Libtool, you may include this file under the same
21803 # distribution terms that you use for the rest of that program.
21804 #
21805 # GNU Libtool is distributed in the hope that it will be useful, but
21806 # WITHOUT ANY WARRANTY; without even the implied warranty of
21807 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21808 # GNU General Public License for more details.
21809 #
21810 # You should have received a copy of the GNU General Public License
21811 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21812
21813
21814 # The names of the tagged configurations supported by this script.
21815 available_tags='CXX '
21816
21817 # Configured defaults for sys_lib_dlsearch_path munging.
21818 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21819
21820 # ### BEGIN LIBTOOL CONFIG
21821
21822 # Which release of libtool.m4 was used?
21823 macro_version=$macro_version
21824 macro_revision=$macro_revision
21825
21826 # Whether or not to build shared libraries.
21827 build_libtool_libs=$enable_shared
21828
21829 # Whether or not to build static libraries.
21830 build_old_libs=$enable_static
21831
21832 # What type of objects to build.
21833 pic_mode=$pic_mode
21834
21835 # Whether or not to optimize for fast installation.
21836 fast_install=$enable_fast_install
21837
21838 # Shared archive member basename,for filename based shared library versioning on AIX.
21839 shared_archive_member_spec=$shared_archive_member_spec
21840
21841 # Shell to use when invoking shell scripts.
21842 SHELL=$lt_SHELL
21843
21844 # An echo program that protects backslashes.
21845 ECHO=$lt_ECHO
21846
21847 # The PATH separator for the build system.
21848 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21849
21850 # The host system.
21851 host_alias=$host_alias
21852 host=$host
21853 host_os=$host_os
21854
21855 # The build system.
21856 build_alias=$build_alias
21857 build=$build
21858 build_os=$build_os
21859
21860 # A sed program that does not truncate output.
21861 SED=$lt_SED
21862
21863 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21864 Xsed="\$SED -e 1s/^X//"
21865
21866 # A grep program that handles long lines.
21867 GREP=$lt_GREP
21868
21869 # An ERE matcher.
21870 EGREP=$lt_EGREP
21871
21872 # A literal string matcher.
21873 FGREP=$lt_FGREP
21874
21875 # A BSD- or MS-compatible name lister.
21876 NM=$lt_NM
21877
21878 # Whether we need soft or hard links.
21879 LN_S=$lt_LN_S
21880
21881 # What is the maximum length of a command?
21882 max_cmd_len=$max_cmd_len
21883
21884 # Object file suffix (normally "o").
21885 objext=$ac_objext
21886
21887 # Executable file suffix (normally "").
21888 exeext=$exeext
21889
21890 # whether the shell understands "unset".
21891 lt_unset=$lt_unset
21892
21893 # turn spaces into newlines.
21894 SP2NL=$lt_lt_SP2NL
21895
21896 # turn newlines into spaces.
21897 NL2SP=$lt_lt_NL2SP
21898
21899 # convert \$build file names to \$host format.
21900 to_host_file_cmd=$lt_cv_to_host_file_cmd
21901
21902 # convert \$build files to toolchain format.
21903 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21904
21905 # An object symbol dumper.
21906 OBJDUMP=$lt_OBJDUMP
21907
21908 # Method to check whether dependent libraries are shared objects.
21909 deplibs_check_method=$lt_deplibs_check_method
21910
21911 # Command to use when deplibs_check_method = "file_magic".
21912 file_magic_cmd=$lt_file_magic_cmd
21913
21914 # How to find potential files when deplibs_check_method = "file_magic".
21915 file_magic_glob=$lt_file_magic_glob
21916
21917 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21918 want_nocaseglob=$lt_want_nocaseglob
21919
21920 # DLL creation program.
21921 DLLTOOL=$lt_DLLTOOL
21922
21923 # Command to associate shared and link libraries.
21924 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21925
21926 # The archiver.
21927 AR=$lt_AR
21928
21929 # Flags to create an archive.
21930 AR_FLAGS=$lt_AR_FLAGS
21931
21932 # How to feed a file listing to the archiver.
21933 archiver_list_spec=$lt_archiver_list_spec
21934
21935 # A symbol stripping program.
21936 STRIP=$lt_STRIP
21937
21938 # Commands used to install an old-style archive.
21939 RANLIB=$lt_RANLIB
21940 old_postinstall_cmds=$lt_old_postinstall_cmds
21941 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21942
21943 # Whether to use a lock for old archive extraction.
21944 lock_old_archive_extraction=$lock_old_archive_extraction
21945
21946 # A C compiler.
21947 LTCC=$lt_CC
21948
21949 # LTCC compiler flags.
21950 LTCFLAGS=$lt_CFLAGS
21951
21952 # Take the output of nm and produce a listing of raw symbols and C names.
21953 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21954
21955 # Transform the output of nm in a proper C declaration.
21956 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21957
21958 # Transform the output of nm into a list of symbols to manually relocate.
21959 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21960
21961 # Transform the output of nm in a C name address pair.
21962 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21963
21964 # Transform the output of nm in a C name address pair when lib prefix is needed.
21965 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21966
21967 # The name lister interface.
21968 nm_interface=$lt_lt_cv_nm_interface
21969
21970 # Specify filename containing input files for \$NM.
21971 nm_file_list_spec=$lt_nm_file_list_spec
21972
21973 # The root where to search for dependent libraries,and where our libraries should be installed.
21974 lt_sysroot=$lt_sysroot
21975
21976 # Command to truncate a binary pipe.
21977 lt_truncate_bin=$lt_lt_cv_truncate_bin
21978
21979 # The name of the directory that contains temporary libtool files.
21980 objdir=$objdir
21981
21982 # Used to examine libraries when file_magic_cmd begins with "file".
21983 MAGIC_CMD=$MAGIC_CMD
21984
21985 # Must we lock files when doing compilation?
21986 need_locks=$lt_need_locks
21987
21988 # Manifest tool.
21989 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21990
21991 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21992 DSYMUTIL=$lt_DSYMUTIL
21993
21994 # Tool to change global to local symbols on Mac OS X.
21995 NMEDIT=$lt_NMEDIT
21996
21997 # Tool to manipulate fat objects and archives on Mac OS X.
21998 LIPO=$lt_LIPO
21999
22000 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22001 OTOOL=$lt_OTOOL
22002
22003 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22004 OTOOL64=$lt_OTOOL64
22005
22006 # Old archive suffix (normally "a").
22007 libext=$libext
22008
22009 # Shared library suffix (normally ".so").
22010 shrext_cmds=$lt_shrext_cmds
22011
22012 # The commands to extract the exported symbol list from a shared archive.
22013 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22014
22015 # Variables whose values should be saved in libtool wrapper scripts and
22016 # restored at link time.
22017 variables_saved_for_relink=$lt_variables_saved_for_relink
22018
22019 # Do we need the "lib" prefix for modules?
22020 need_lib_prefix=$need_lib_prefix
22021
22022 # Do we need a version for libraries?
22023 need_version=$need_version
22024
22025 # Library versioning type.
22026 version_type=$version_type
22027
22028 # Shared library runtime path variable.
22029 runpath_var=$runpath_var
22030
22031 # Shared library path variable.
22032 shlibpath_var=$shlibpath_var
22033
22034 # Is shlibpath searched before the hard-coded library search path?
22035 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22036
22037 # Format of library name prefix.
22038 libname_spec=$lt_libname_spec
22039
22040 # List of archive names. First name is the real one, the rest are links.
22041 # The last name is the one that the linker finds with -lNAME
22042 library_names_spec=$lt_library_names_spec
22043
22044 # The coded name of the library, if different from the real name.
22045 soname_spec=$lt_soname_spec
22046
22047 # Permission mode override for installation of shared libraries.
22048 install_override_mode=$lt_install_override_mode
22049
22050 # Command to use after installation of a shared archive.
22051 postinstall_cmds=$lt_postinstall_cmds
22052
22053 # Command to use after uninstallation of a shared archive.
22054 postuninstall_cmds=$lt_postuninstall_cmds
22055
22056 # Commands used to finish a libtool library installation in a directory.
22057 finish_cmds=$lt_finish_cmds
22058
22059 # As "finish_cmds", except a single script fragment to be evaled but
22060 # not shown.
22061 finish_eval=$lt_finish_eval
22062
22063 # Whether we should hardcode library paths into libraries.
22064 hardcode_into_libs=$hardcode_into_libs
22065
22066 # Compile-time system search path for libraries.
22067 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22068
22069 # Detected run-time system search path for libraries.
22070 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22071
22072 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22073 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22074
22075 # Whether dlopen is supported.
22076 dlopen_support=$enable_dlopen
22077
22078 # Whether dlopen of programs is supported.
22079 dlopen_self=$enable_dlopen_self
22080
22081 # Whether dlopen of statically linked programs is supported.
22082 dlopen_self_static=$enable_dlopen_self_static
22083
22084 # Commands to strip libraries.
22085 old_striplib=$lt_old_striplib
22086 striplib=$lt_striplib
22087
22088
22089 # The linker used to build libraries.
22090 LD=$lt_LD
22091
22092 # How to create reloadable object files.
22093 reload_flag=$lt_reload_flag
22094 reload_cmds=$lt_reload_cmds
22095
22096 # Commands used to build an old-style archive.
22097 old_archive_cmds=$lt_old_archive_cmds
22098
22099 # A language specific compiler.
22100 CC=$lt_compiler
22101
22102 # Is the compiler the GNU compiler?
22103 with_gcc=$GCC
22104
22105 # Compiler flag to turn off builtin functions.
22106 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22107
22108 # Additional compiler flags for building library objects.
22109 pic_flag=$lt_lt_prog_compiler_pic
22110
22111 # How to pass a linker flag through the compiler.
22112 wl=$lt_lt_prog_compiler_wl
22113
22114 # Compiler flag to prevent dynamic linking.
22115 link_static_flag=$lt_lt_prog_compiler_static
22116
22117 # Does compiler simultaneously support -c and -o options?
22118 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22119
22120 # Whether or not to add -lc for building shared libraries.
22121 build_libtool_need_lc=$archive_cmds_need_lc
22122
22123 # Whether or not to disallow shared libs when runtime libs are static.
22124 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22125
22126 # Compiler flag to allow reflexive dlopens.
22127 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22128
22129 # Compiler flag to generate shared objects directly from archives.
22130 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22131
22132 # Whether the compiler copes with passing no objects directly.
22133 compiler_needs_object=$lt_compiler_needs_object
22134
22135 # Create an old-style archive from a shared archive.
22136 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22137
22138 # Create a temporary old-style archive to link instead of a shared archive.
22139 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22140
22141 # Commands used to build a shared archive.
22142 archive_cmds=$lt_archive_cmds
22143 archive_expsym_cmds=$lt_archive_expsym_cmds
22144
22145 # Commands used to build a loadable module if different from building
22146 # a shared archive.
22147 module_cmds=$lt_module_cmds
22148 module_expsym_cmds=$lt_module_expsym_cmds
22149
22150 # Whether we are building with GNU ld or not.
22151 with_gnu_ld=$lt_with_gnu_ld
22152
22153 # Flag that allows shared libraries with undefined symbols to be built.
22154 allow_undefined_flag=$lt_allow_undefined_flag
22155
22156 # Flag that enforces no undefined symbols.
22157 no_undefined_flag=$lt_no_undefined_flag
22158
22159 # Flag to hardcode \$libdir into a binary during linking.
22160 # This must work even if \$libdir does not exist
22161 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22162
22163 # Whether we need a single "-rpath" flag with a separated argument.
22164 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22165
22166 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22167 # DIR into the resulting binary.
22168 hardcode_direct=$hardcode_direct
22169
22170 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22171 # DIR into the resulting binary and the resulting library dependency is
22172 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22173 # library is relocated.
22174 hardcode_direct_absolute=$hardcode_direct_absolute
22175
22176 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22177 # into the resulting binary.
22178 hardcode_minus_L=$hardcode_minus_L
22179
22180 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22181 # into the resulting binary.
22182 hardcode_shlibpath_var=$hardcode_shlibpath_var
22183
22184 # Set to "yes" if building a shared library automatically hardcodes DIR
22185 # into the library and all subsequent libraries and executables linked
22186 # against it.
22187 hardcode_automatic=$hardcode_automatic
22188
22189 # Set to yes if linker adds runtime paths of dependent libraries
22190 # to runtime path list.
22191 inherit_rpath=$inherit_rpath
22192
22193 # Whether libtool must link a program against all its dependency libraries.
22194 link_all_deplibs=$link_all_deplibs
22195
22196 # Set to "yes" if exported symbols are required.
22197 always_export_symbols=$always_export_symbols
22198
22199 # The commands to list exported symbols.
22200 export_symbols_cmds=$lt_export_symbols_cmds
22201
22202 # Symbols that should not be listed in the preloaded symbols.
22203 exclude_expsyms=$lt_exclude_expsyms
22204
22205 # Symbols that must always be exported.
22206 include_expsyms=$lt_include_expsyms
22207
22208 # Commands necessary for linking programs (against libraries) with templates.
22209 prelink_cmds=$lt_prelink_cmds
22210
22211 # Commands necessary for finishing linking programs.
22212 postlink_cmds=$lt_postlink_cmds
22213
22214 # Specify filename containing input files.
22215 file_list_spec=$lt_file_list_spec
22216
22217 # How to hardcode a shared library path into an executable.
22218 hardcode_action=$hardcode_action
22219
22220 # The directories searched by this compiler when creating a shared library.
22221 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22222
22223 # Dependencies to place before and after the objects being linked to
22224 # create a shared library.
22225 predep_objects=$lt_predep_objects
22226 postdep_objects=$lt_postdep_objects
22227 predeps=$lt_predeps
22228 postdeps=$lt_postdeps
22229
22230 # The library search path used internally by the compiler when linking
22231 # a shared library.
22232 compiler_lib_search_path=$lt_compiler_lib_search_path
22233
22234 # ### END LIBTOOL CONFIG
22235
22236 _LT_EOF
22237
22238 cat <<'_LT_EOF' >> "$cfgfile"
22239
22240 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22241
22242 # func_munge_path_list VARIABLE PATH
22243 # -----------------------------------
22244 # VARIABLE is name of variable containing _space_ separated list of
22245 # directories to be munged by the contents of PATH, which is string
22246 # having a format:
22247 # "DIR[:DIR]:"
22248 # string "DIR[ DIR]" will be prepended to VARIABLE
22249 # ":DIR[:DIR]"
22250 # string "DIR[ DIR]" will be appended to VARIABLE
22251 # "DIRP[:DIRP]::[DIRA:]DIRA"
22252 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22253 # "DIRA[ DIRA]" will be appended to VARIABLE
22254 # "DIR[:DIR]"
22255 # VARIABLE will be replaced by "DIR[ DIR]"
22256 func_munge_path_list ()
22257 {
22258 case x$2 in
22259 x)
22260 ;;
22261 *:)
22262 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22263 ;;
22264 x:*)
22265 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22266 ;;
22267 *::*)
22268 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22269 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22270 ;;
22271 *)
22272 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22273 ;;
22274 esac
22275 }
22276
22277
22278 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22279 func_cc_basename ()
22280 {
22281 for cc_temp in $*""; do
22282 case $cc_temp in
22283 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22284 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22285 \-*) ;;
22286 *) break;;
22287 esac
22288 done
22289 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22290 }
22291
22292
22293 # ### END FUNCTIONS SHARED WITH CONFIGURE
22294
22295 _LT_EOF
22296
22297 case $host_os in
22298 aix3*)
22299 cat <<\_LT_EOF >> "$cfgfile"
22300 # AIX sometimes has problems with the GCC collect2 program. For some
22301 # reason, if we set the COLLECT_NAMES environment variable, the problems
22302 # vanish in a puff of smoke.
22303 if test set != "${COLLECT_NAMES+set}"; then
22304 COLLECT_NAMES=
22305 export COLLECT_NAMES
22306 fi
22307 _LT_EOF
22308 ;;
22309 esac
22310
22311
22312 ltmain=$ac_aux_dir/ltmain.sh
22313
22314
22315 # We use sed instead of cat because bash on DJGPP gets confused if
22316 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22317 # text mode, it properly converts lines to CR/LF. This bash problem
22318 # is reportedly fixed, but why not run on old versions too?
22319 sed '$q' "$ltmain" >> "$cfgfile" \
22320 || (rm -f "$cfgfile"; exit 1)
22321
22322 mv -f "$cfgfile" "$ofile" ||
22323 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22324 chmod +x "$ofile"
22325
22326
22327 cat <<_LT_EOF >> "$ofile"
22328
22329 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22330
22331 # The linker used to build libraries.
22332 LD=$lt_LD_CXX
22333
22334 # How to create reloadable object files.
22335 reload_flag=$lt_reload_flag_CXX
22336 reload_cmds=$lt_reload_cmds_CXX
22337
22338 # Commands used to build an old-style archive.
22339 old_archive_cmds=$lt_old_archive_cmds_CXX
22340
22341 # A language specific compiler.
22342 CC=$lt_compiler_CXX
22343
22344 # Is the compiler the GNU compiler?
22345 with_gcc=$GCC_CXX
22346
22347 # Compiler flag to turn off builtin functions.
22348 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22349
22350 # Additional compiler flags for building library objects.
22351 pic_flag=$lt_lt_prog_compiler_pic_CXX
22352
22353 # How to pass a linker flag through the compiler.
22354 wl=$lt_lt_prog_compiler_wl_CXX
22355
22356 # Compiler flag to prevent dynamic linking.
22357 link_static_flag=$lt_lt_prog_compiler_static_CXX
22358
22359 # Does compiler simultaneously support -c and -o options?
22360 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22361
22362 # Whether or not to add -lc for building shared libraries.
22363 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22364
22365 # Whether or not to disallow shared libs when runtime libs are static.
22366 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22367
22368 # Compiler flag to allow reflexive dlopens.
22369 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22370
22371 # Compiler flag to generate shared objects directly from archives.
22372 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22373
22374 # Whether the compiler copes with passing no objects directly.
22375 compiler_needs_object=$lt_compiler_needs_object_CXX
22376
22377 # Create an old-style archive from a shared archive.
22378 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22379
22380 # Create a temporary old-style archive to link instead of a shared archive.
22381 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22382
22383 # Commands used to build a shared archive.
22384 archive_cmds=$lt_archive_cmds_CXX
22385 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22386
22387 # Commands used to build a loadable module if different from building
22388 # a shared archive.
22389 module_cmds=$lt_module_cmds_CXX
22390 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22391
22392 # Whether we are building with GNU ld or not.
22393 with_gnu_ld=$lt_with_gnu_ld_CXX
22394
22395 # Flag that allows shared libraries with undefined symbols to be built.
22396 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22397
22398 # Flag that enforces no undefined symbols.
22399 no_undefined_flag=$lt_no_undefined_flag_CXX
22400
22401 # Flag to hardcode \$libdir into a binary during linking.
22402 # This must work even if \$libdir does not exist
22403 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22404
22405 # Whether we need a single "-rpath" flag with a separated argument.
22406 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22407
22408 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22409 # DIR into the resulting binary.
22410 hardcode_direct=$hardcode_direct_CXX
22411
22412 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22413 # DIR into the resulting binary and the resulting library dependency is
22414 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22415 # library is relocated.
22416 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22417
22418 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22419 # into the resulting binary.
22420 hardcode_minus_L=$hardcode_minus_L_CXX
22421
22422 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22423 # into the resulting binary.
22424 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22425
22426 # Set to "yes" if building a shared library automatically hardcodes DIR
22427 # into the library and all subsequent libraries and executables linked
22428 # against it.
22429 hardcode_automatic=$hardcode_automatic_CXX
22430
22431 # Set to yes if linker adds runtime paths of dependent libraries
22432 # to runtime path list.
22433 inherit_rpath=$inherit_rpath_CXX
22434
22435 # Whether libtool must link a program against all its dependency libraries.
22436 link_all_deplibs=$link_all_deplibs_CXX
22437
22438 # Set to "yes" if exported symbols are required.
22439 always_export_symbols=$always_export_symbols_CXX
22440
22441 # The commands to list exported symbols.
22442 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22443
22444 # Symbols that should not be listed in the preloaded symbols.
22445 exclude_expsyms=$lt_exclude_expsyms_CXX
22446
22447 # Symbols that must always be exported.
22448 include_expsyms=$lt_include_expsyms_CXX
22449
22450 # Commands necessary for linking programs (against libraries) with templates.
22451 prelink_cmds=$lt_prelink_cmds_CXX
22452
22453 # Commands necessary for finishing linking programs.
22454 postlink_cmds=$lt_postlink_cmds_CXX
22455
22456 # Specify filename containing input files.
22457 file_list_spec=$lt_file_list_spec_CXX
22458
22459 # How to hardcode a shared library path into an executable.
22460 hardcode_action=$hardcode_action_CXX
22461
22462 # The directories searched by this compiler when creating a shared library.
22463 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22464
22465 # Dependencies to place before and after the objects being linked to
22466 # create a shared library.
22467 predep_objects=$lt_predep_objects_CXX
22468 postdep_objects=$lt_postdep_objects_CXX
22469 predeps=$lt_predeps_CXX
22470 postdeps=$lt_postdeps_CXX
22471
22472 # The library search path used internally by the compiler when linking
22473 # a shared library.
22474 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22475
22476 # ### END LIBTOOL TAG CONFIG: CXX
22477 _LT_EOF
22478
22479 ;;
22480
22481 esac
22482 done # for ac_tag
22483
22484
22485 as_fn_exit 0
22486 _ACEOF
22487 ac_clean_files=$ac_clean_files_save
22488
22489 test $ac_write_fail = 0 ||
22490 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22491
22492
22493 # configure is writing to config.log, and then calls config.status.
22494 # config.status does its own redirection, appending to config.log.
22495 # Unfortunately, on DOS this fails, as config.log is still kept open
22496 # by configure, so config.status won't be able to write to it; its
22497 # output is simply discarded. So we exec the FD to /dev/null,
22498 # effectively closing config.log, so it can be properly (re)opened and
22499 # appended to by config.status. When coming back to configure, we
22500 # need to make the FD available again.
22501 if test "$no_create" != yes; then
22502 ac_cs_success=:
22503 ac_config_status_args=
22504 test "$silent" = yes &&
22505 ac_config_status_args="$ac_config_status_args --quiet"
22506 exec 5>/dev/null
22507 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22508 exec 5>>config.log
22509 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22510 # would make configure fail if this is the last instruction.
22511 $ac_cs_success || as_fn_exit 1
22512 fi
22513
22514 #
22515 # CONFIG_SUBDIRS section.
22516 #
22517 if test "$no_recursion" != yes; then
22518
22519 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
22520 # so they do not pile up.
22521 ac_sub_configure_args=
22522 ac_prev=
22523 eval "set x $ac_configure_args"
22524 shift
22525 for ac_arg
22526 do
22527 if test -n "$ac_prev"; then
22528 ac_prev=
22529 continue
22530 fi
22531 case $ac_arg in
22532 -cache-file | --cache-file | --cache-fil | --cache-fi \
22533 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22534 ac_prev=cache_file ;;
22535 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22536 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22537 | --c=*)
22538 ;;
22539 --config-cache | -C)
22540 ;;
22541 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22542 ac_prev=srcdir ;;
22543 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22544 ;;
22545 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22546 ac_prev=prefix ;;
22547 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22548 ;;
22549 --disable-option-checking)
22550 ;;
22551 *)
22552 case $ac_arg in
22553 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22554 esac
22555 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
22556 esac
22557 done
22558
22559 # Always prepend --prefix to ensure using the same prefix
22560 # in subdir configurations.
22561 ac_arg="--prefix=$prefix"
22562 case $ac_arg in
22563 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22564 esac
22565 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
22566
22567 # Pass --silent
22568 if test "$silent" = yes; then
22569 ac_sub_configure_args="--silent $ac_sub_configure_args"
22570 fi
22571
22572 # Always prepend --disable-option-checking to silence warnings, since
22573 # different subdirs can have different --enable and --with options.
22574 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
22575
22576 ac_popdir=`pwd`
22577 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22578
22579 # Do not complain, so a configure script can configure whichever
22580 # parts of a large source tree are present.
22581 test -d "$srcdir/$ac_dir" || continue
22582
22583 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22584 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
22585 $as_echo "$ac_msg" >&6
22586 as_dir="$ac_dir"; as_fn_mkdir_p
22587 ac_builddir=.
22588
22589 case "$ac_dir" in
22590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22591 *)
22592 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22593 # A ".." for each directory in $ac_dir_suffix.
22594 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22595 case $ac_top_builddir_sub in
22596 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22597 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22598 esac ;;
22599 esac
22600 ac_abs_top_builddir=$ac_pwd
22601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22602 # for backward compatibility:
22603 ac_top_builddir=$ac_top_build_prefix
22604
22605 case $srcdir in
22606 .) # We are building in place.
22607 ac_srcdir=.
22608 ac_top_srcdir=$ac_top_builddir_sub
22609 ac_abs_top_srcdir=$ac_pwd ;;
22610 [\\/]* | ?:[\\/]* ) # Absolute name.
22611 ac_srcdir=$srcdir$ac_dir_suffix;
22612 ac_top_srcdir=$srcdir
22613 ac_abs_top_srcdir=$srcdir ;;
22614 *) # Relative name.
22615 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22616 ac_top_srcdir=$ac_top_build_prefix$srcdir
22617 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22618 esac
22619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22620
22621
22622 cd "$ac_dir"
22623
22624 # Check for guested configure; otherwise get Cygnus style configure.
22625 if test -f "$ac_srcdir/configure.gnu"; then
22626 ac_sub_configure=$ac_srcdir/configure.gnu
22627 elif test -f "$ac_srcdir/configure"; then
22628 ac_sub_configure=$ac_srcdir/configure
22629 elif test -f "$ac_srcdir/configure.in"; then
22630 # This should be Cygnus configure.
22631 ac_sub_configure=$ac_aux_dir/configure
22632 else
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
22634 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22635 ac_sub_configure=
22636 fi
22637
22638 # The recursion is here.
22639 if test -n "$ac_sub_configure"; then
22640 # Make the cache file name correct relative to the subdirectory.
22641 case $cache_file in
22642 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22643 *) # Relative name.
22644 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22645 esac
22646
22647 { $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
22648 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22649 # The eval makes quoting arguments work.
22650 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22651 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22652 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
22653 fi
22654
22655 cd "$ac_popdir"
22656 done
22657 fi
22658 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22660 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22661 fi
22662