Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell [email protected] about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557
558 # Check that we are running under the correct shell.
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 case X$lt_ECHO in
562 X*--fallback-echo)
563 # Remove one level of quotation (which was required for Make).
564 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
565 ;;
566 esac
567
568 ECHO=${lt_ECHO-echo}
569 if test "X$1" = X--no-reexec; then
570 # Discard the --no-reexec flag, and continue.
571 shift
572 elif test "X$1" = X--fallback-echo; then
573 # Avoid inline document here, it may be left over
574 :
575 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
576 # Yippee, $ECHO works!
577 :
578 else
579 # Restart under the correct shell.
580 exec $SHELL "$0" --no-reexec ${1+"$@"}
581 fi
582
583 if test "X$1" = X--fallback-echo; then
584 # used as fallback echo
585 shift
586 cat <<_LT_EOF
587 $*
588 _LT_EOF
589 exit 0
590 fi
591
592 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 # if CDPATH is set.
594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595
596 if test -z "$lt_ECHO"; then
597 if test "X${echo_test_string+set}" != Xset; then
598 # find a string as large as possible, as long as the shell can cope with it
599 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
602 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
603 then
604 break
605 fi
606 done
607 fi
608
609 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 :
613 else
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
617 #
618 # So, first we look for a working echo in the user's PATH.
619
620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
622 IFS="$lt_save_ifs"
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 ECHO="$dir/echo"
628 break
629 fi
630 done
631 IFS="$lt_save_ifs"
632
633 if test "X$ECHO" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
639 ECHO='print -r'
640 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
646 export CONFIG_SHELL
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648 else
649 # Try using printf.
650 ECHO='printf %s\n'
651 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 # Cool, printf works
655 :
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 export CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
663 export SHELL
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 ECHO="$CONFIG_SHELL $0 --fallback-echo"
670 else
671 # maybe with a smaller string...
672 prev=:
673
674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
676 then
677 break
678 fi
679 prev="$cmd"
680 done
681
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 else
687 # Oops. We lost completely, so just stick with echo.
688 ECHO=echo
689 fi
690 fi
691 fi
692 fi
693 fi
694 fi
695
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
698 lt_ECHO=$ECHO
699 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 fi
702
703
704
705
706 lt_ltdl_dir='lib/libltdl'
707
708 lt_dlopen_dir="$lt_ltdl_dir"
709
710 test -n "$DJDIR" || exec 7<&0 </dev/null
711 exec 6>&1
712
713 # Name of the host.
714 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
715 # so uname gets run too.
716 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
717
718 #
719 # Initializations.
720 #
721 ac_default_prefix=/usr/local
722 ac_clean_files=
723 ac_config_libobj_dir=.
724 LIBOBJS=
725 cross_compiling=no
726 subdirs=
727 MFLAGS=
728 MAKEFLAGS=
729
730 # Identity of this package.
731 PACKAGE_NAME=
732 PACKAGE_TARNAME=
733 PACKAGE_VERSION=
734 PACKAGE_STRING=
735 PACKAGE_BUGREPORT=
736 PACKAGE_URL=
737
738 ac_unique_file="include/conf.h"
739 # Factoring default headers for most tests.
740 ac_includes_default="\
741 #include <stdio.h>
742 #ifdef HAVE_SYS_TYPES_H
743 # include <sys/types.h>
744 #endif
745 #ifdef HAVE_SYS_STAT_H
746 # include <sys/stat.h>
747 #endif
748 #ifdef STDC_HEADERS
749 # include <stdlib.h>
750 # include <stddef.h>
751 #else
752 # ifdef HAVE_STDLIB_H
753 # include <stdlib.h>
754 # endif
755 #endif
756 #ifdef HAVE_STRING_H
757 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 # include <memory.h>
759 # endif
760 # include <string.h>
761 #endif
762 #ifdef HAVE_STRINGS_H
763 # include <strings.h>
764 #endif
765 #ifdef HAVE_INTTYPES_H
766 # include <inttypes.h>
767 #endif
768 #ifdef HAVE_STDINT_H
769 # include <stdint.h>
770 #endif
771 #ifdef HAVE_UNISTD_H
772 # include <unistd.h>
773 #endif"
774
775 enable_option_checking=no
776 ac_subst_vars='ltdl_LTLIBOBJS
777 ltdl_LIBOBJS
778 LTLIBOBJS
779 LIBOBJS
780 RC_VERSION
781 RELEASE_VERSION
782 BUILD_VERSION
783 UTILS_LIBS
784 CURSES_LIBS
785 LIBRARIES
786 LIBDIRS
787 INCLUDES
788 ADDL_DIRS
789 ADDL_CPPFLAGS
790 BUILD_STATIC_MODULE_OBJS
791 BUILD_STATIC_MODULE_ARCHIVES
792 BUILD_SHARED_MODULE_OBJS
793 STATIC_MODULE_SRCS
794 STATIC_MODULE_OBJS
795 STATIC_MODULE_DIRS
796 SHARED_MODULE_SRCS
797 SHARED_MODULE_OBJS
798 SHARED_MODULE_LIBS
799 SHARED_MODULE_DIRS
800 MODULE_LDFLAGS
801 MODULE_DEPS
802 MAIN_LIBS
803 MAIN_LDFLAGS
804 LIBTOOL_DEPS
805 LIB_OBJS
806 LIB_DEPS
807 INSTALL_DEPS
808 INSTALL_STRIP
809 GLUE_MODULE_OBJS
810 ENABLE_TESTS
811 ENABLE_NLS
812 pkgconfigdir
813 ALLOCA
814 install_group
815 install_user
816 LTDLOPEN
817 LT_CONFIG_H
818 subdirs
819 ARGZ_H
820 sys_symbol_underscore
821 LIBADD_DL
822 LT_DLPREOPEN
823 LIBADD_DLD_LINK
824 LIBADD_SHL_LOAD
825 LIBADD_DLOPEN
826 LT_DLLOADERS
827 INCLTDL
828 LTDLINCL
829 LTDLDEPS
830 LIBLTDL
831 SYSCONFDIR
832 SBINDIR
833 PREFIX
834 RUNSTATEDIR
835 LOCALSTATEDIR
836 LIBEXECDIR
837 INCLUDEDIR
838 DATADIR
839 BINDIR
840 INSTALL_DATA
841 INSTALL_SCRIPT
842 INSTALL_PROGRAM
843 SET_MAKE
844 CXXCPP
845 ac_ct_CXX
846 CXXFLAGS
847 CXX
848 CPP
849 OTOOL64
850 OTOOL
851 LIPO
852 NMEDIT
853 DSYMUTIL
854 lt_ECHO
855 RANLIB
856 STRIP
857 AR
858 OBJDUMP
859 LN_S
860 NM
861 ac_ct_DUMPBIN
862 DUMPBIN
863 LD
864 FGREP
865 EGREP
866 GREP
867 SED
868 OBJEXT
869 EXEEXT
870 ac_ct_CC
871 CPPFLAGS
872 LDFLAGS
873 CFLAGS
874 CC
875 LIBTOOL
876 CONFIG_SHELL
877 OSTYPE
878 OSREL
879 BUILD_OPTS
880 target_os
881 target_vendor
882 target_cpu
883 target
884 host_os
885 host_vendor
886 host_cpu
887 host
888 build_os
889 build_vendor
890 build_cpu
891 build
892 target_alias
893 host_alias
894 build_alias
895 LIBS
896 ECHO_T
897 ECHO_N
898 ECHO_C
899 DEFS
900 mandir
901 localedir
902 libdir
903 psdir
904 pdfdir
905 dvidir
906 htmldir
907 infodir
908 docdir
909 oldincludedir
910 includedir
911 localstatedir
912 sharedstatedir
913 sysconfdir
914 datadir
915 datarootdir
916 libexecdir
917 sbindir
918 bindir
919 program_transform_name
920 prefix
921 exec_prefix
922 PACKAGE_URL
923 PACKAGE_BUGREPORT
924 PACKAGE_STRING
925 PACKAGE_VERSION
926 PACKAGE_TARNAME
927 PACKAGE_NAME
928 PATH_SEPARATOR
929 SHELL'
930 ac_subst_files=''
931 ac_user_opts='
932 enable_option_checking
933 enable_shared
934 enable_static
935 with_pic
936 enable_fast_install
937 with_gnu_ld
938 enable_libtool_lock
939 enable_largefile
940 with_getopt
941 with_lastlog
942 with_includes
943 with_libraries
944 with_modules
945 with_shared
946 with_mysql_config
947 with_openssl_cmdline
948 with_postgres_config
949 with_pkgconfig
950 enable_auth_file
951 enable_autoshadow
952 enable_auth_pam
953 enable_builtin_getaddrinfo
954 enable_builtin_getnameinfo
955 enable_cap
956 enable_ctrls
957 enable_facl
958 enable_curses
959 enable_dso
960 with_included_ltdl
961 with_ltdl_include
962 with_ltdl_lib
963 enable_ident
964 enable_memcache
965 enable_nls
966 enable_nonblocking_log_open
967 enable_ncurses
968 enable_openssl_api_compat
969 enable_pcre
970 enable_pcre2
971 enable_redis
972 enable_force_setpassent
973 enable_ipv6
974 enable_openssl
975 enable_sodium
976 enable_sendfile
977 enable_shadow
978 enable_sia
979 enable_tests
980 enable_trace
981 enable_xattr
982 enable_devel
983 enable_buffer_size
984 enable_pool_size
985 enable_scoreboard_buffer_size
986 enable_scoreboard_updates
987 enable_strip
988 enable_timeout_ident
989 enable_timeout_idle
990 enable_timeout_linger
991 enable_timeout_login
992 enable_timeout_no_transfer
993 enable_timeout_stalled
994 enable_parser_buffer_size
995 enable_transfer_buffer_size
996 '
997 ac_precious_vars='build_alias
998 host_alias
999 target_alias
1000 CC
1001 CFLAGS
1002 LDFLAGS
1003 LIBS
1004 CPPFLAGS
1005 CPP
1006 CXX
1007 CXXFLAGS
1008 CCC
1009 CXXCPP'
1010 ac_subdirs_all='lib/libltdl
1011 $ac_shared_module_dirs
1012 $ac_static_module_dirs'
1013
1014 # Initialize some variables set by options.
1015 ac_init_help=
1016 ac_init_version=false
1017 ac_unrecognized_opts=
1018 ac_unrecognized_sep=
1019 # The variables have the same names as the options, with
1020 # dashes changed to underlines.
1021 cache_file=/dev/null
1022 exec_prefix=NONE
1023 no_create=
1024 no_recursion=
1025 prefix=NONE
1026 program_prefix=NONE
1027 program_suffix=NONE
1028 program_transform_name=s,x,x,
1029 silent=
1030 site=
1031 srcdir=
1032 verbose=
1033 x_includes=NONE
1034 x_libraries=NONE
1035
1036 # Installation directory options.
1037 # These are left unexpanded so users can "make install exec_prefix=/foo"
1038 # and all the variables that are supposed to be based on exec_prefix
1039 # by default will actually change.
1040 # Use braces instead of parens because sh, perl, etc. also accept them.
1041 # (The list follows the same order as the GNU Coding Standards.)
1042 bindir='${exec_prefix}/bin'
1043 sbindir='${exec_prefix}/sbin'
1044 libexecdir='${exec_prefix}/libexec'
1045 datarootdir='${prefix}/share'
1046 datadir='${datarootdir}'
1047 sysconfdir='${prefix}/etc'
1048 sharedstatedir='${prefix}/com'
1049 localstatedir='${prefix}/var'
1050 includedir='${prefix}/include'
1051 oldincludedir='/usr/include'
1052 docdir='${datarootdir}/doc/${PACKAGE}'
1053 infodir='${datarootdir}/info'
1054 htmldir='${docdir}'
1055 dvidir='${docdir}'
1056 pdfdir='${docdir}'
1057 psdir='${docdir}'
1058 libdir='${exec_prefix}/lib'
1059 localedir='${datarootdir}/locale'
1060 mandir='${datarootdir}/man'
1061
1062 ac_prev=
1063 ac_dashdash=
1064 for ac_option
1065 do
1066 # If the previous option needs an argument, assign it.
1067 if test -n "$ac_prev"; then
1068 eval $ac_prev=\$ac_option
1069 ac_prev=
1070 continue
1071 fi
1072
1073 case $ac_option in
1074 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1075 *=) ac_optarg= ;;
1076 *) ac_optarg=yes ;;
1077 esac
1078
1079 # Accept the important Cygnus configure options, so we can diagnose typos.
1080
1081 case $ac_dashdash$ac_option in
1082 --)
1083 ac_dashdash=yes ;;
1084
1085 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1086 ac_prev=bindir ;;
1087 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1088 bindir=$ac_optarg ;;
1089
1090 -build | --build | --buil | --bui | --bu)
1091 ac_prev=build_alias ;;
1092 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1093 build_alias=$ac_optarg ;;
1094
1095 -cache-file | --cache-file | --cache-fil | --cache-fi \
1096 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1097 ac_prev=cache_file ;;
1098 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1099 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1100 cache_file=$ac_optarg ;;
1101
1102 --config-cache | -C)
1103 cache_file=config.cache ;;
1104
1105 -datadir | --datadir | --datadi | --datad)
1106 ac_prev=datadir ;;
1107 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1108 datadir=$ac_optarg ;;
1109
1110 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1111 | --dataroo | --dataro | --datar)
1112 ac_prev=datarootdir ;;
1113 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1114 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1115 datarootdir=$ac_optarg ;;
1116
1117 -disable-* | --disable-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid feature name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126 "enable_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval enable_$ac_useropt=no ;;
1132
1133 -docdir | --docdir | --docdi | --doc | --do)
1134 ac_prev=docdir ;;
1135 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1136 docdir=$ac_optarg ;;
1137
1138 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1139 ac_prev=dvidir ;;
1140 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1141 dvidir=$ac_optarg ;;
1142
1143 -enable-* | --enable-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid feature name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1151 *"
1152 "enable_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval enable_$ac_useropt=\$ac_optarg ;;
1158
1159 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1160 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1161 | --exec | --exe | --ex)
1162 ac_prev=exec_prefix ;;
1163 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1164 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1165 | --exec=* | --exe=* | --ex=*)
1166 exec_prefix=$ac_optarg ;;
1167
1168 -gas | --gas | --ga | --g)
1169 # Obsolete; use --with-gas.
1170 with_gas=yes ;;
1171
1172 -help | --help | --hel | --he | -h)
1173 ac_init_help=long ;;
1174 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1175 ac_init_help=recursive ;;
1176 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1177 ac_init_help=short ;;
1178
1179 -host | --host | --hos | --ho)
1180 ac_prev=host_alias ;;
1181 -host=* | --host=* | --hos=* | --ho=*)
1182 host_alias=$ac_optarg ;;
1183
1184 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1185 ac_prev=htmldir ;;
1186 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1187 | --ht=*)
1188 htmldir=$ac_optarg ;;
1189
1190 -includedir | --includedir | --includedi | --included | --include \
1191 | --includ | --inclu | --incl | --inc)
1192 ac_prev=includedir ;;
1193 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1194 | --includ=* | --inclu=* | --incl=* | --inc=*)
1195 includedir=$ac_optarg ;;
1196
1197 -infodir | --infodir | --infodi | --infod | --info | --inf)
1198 ac_prev=infodir ;;
1199 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1200 infodir=$ac_optarg ;;
1201
1202 -libdir | --libdir | --libdi | --libd)
1203 ac_prev=libdir ;;
1204 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1205 libdir=$ac_optarg ;;
1206
1207 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1208 | --libexe | --libex | --libe)
1209 ac_prev=libexecdir ;;
1210 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1211 | --libexe=* | --libex=* | --libe=*)
1212 libexecdir=$ac_optarg ;;
1213
1214 -localedir | --localedir | --localedi | --localed | --locale)
1215 ac_prev=localedir ;;
1216 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1217 localedir=$ac_optarg ;;
1218
1219 -localstatedir | --localstatedir | --localstatedi | --localstated \
1220 | --localstate | --localstat | --localsta | --localst | --locals)
1221 ac_prev=localstatedir ;;
1222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1223 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1224 localstatedir=$ac_optarg ;;
1225
1226 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1227 ac_prev=mandir ;;
1228 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1229 mandir=$ac_optarg ;;
1230
1231 -nfp | --nfp | --nf)
1232 # Obsolete; use --without-fp.
1233 with_fp=no ;;
1234
1235 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1236 | --no-cr | --no-c | -n)
1237 no_create=yes ;;
1238
1239 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1240 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1241 no_recursion=yes ;;
1242
1243 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1244 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1245 | --oldin | --oldi | --old | --ol | --o)
1246 ac_prev=oldincludedir ;;
1247 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1248 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1249 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1250 oldincludedir=$ac_optarg ;;
1251
1252 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1253 ac_prev=prefix ;;
1254 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1255 prefix=$ac_optarg ;;
1256
1257 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1258 | --program-pre | --program-pr | --program-p)
1259 ac_prev=program_prefix ;;
1260 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1261 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1262 program_prefix=$ac_optarg ;;
1263
1264 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1265 | --program-suf | --program-su | --program-s)
1266 ac_prev=program_suffix ;;
1267 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1268 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1269 program_suffix=$ac_optarg ;;
1270
1271 -program-transform-name | --program-transform-name \
1272 | --program-transform-nam | --program-transform-na \
1273 | --program-transform-n | --program-transform- \
1274 | --program-transform | --program-transfor \
1275 | --program-transfo | --program-transf \
1276 | --program-trans | --program-tran \
1277 | --progr-tra | --program-tr | --program-t)
1278 ac_prev=program_transform_name ;;
1279 -program-transform-name=* | --program-transform-name=* \
1280 | --program-transform-nam=* | --program-transform-na=* \
1281 | --program-transform-n=* | --program-transform-=* \
1282 | --program-transform=* | --program-transfor=* \
1283 | --program-transfo=* | --program-transf=* \
1284 | --program-trans=* | --program-tran=* \
1285 | --progr-tra=* | --program-tr=* | --program-t=*)
1286 program_transform_name=$ac_optarg ;;
1287
1288 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1289 ac_prev=pdfdir ;;
1290 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1291 pdfdir=$ac_optarg ;;
1292
1293 -psdir | --psdir | --psdi | --psd | --ps)
1294 ac_prev=psdir ;;
1295 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1296 psdir=$ac_optarg ;;
1297
1298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1299 | -silent | --silent | --silen | --sile | --sil)
1300 silent=yes ;;
1301
1302 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1303 ac_prev=sbindir ;;
1304 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1305 | --sbi=* | --sb=*)
1306 sbindir=$ac_optarg ;;
1307
1308 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1309 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1310 | --sharedst | --shareds | --shared | --share | --shar \
1311 | --sha | --sh)
1312 ac_prev=sharedstatedir ;;
1313 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1314 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1315 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1316 | --sha=* | --sh=*)
1317 sharedstatedir=$ac_optarg ;;
1318
1319 -site | --site | --sit)
1320 ac_prev=site ;;
1321 -site=* | --site=* | --sit=*)
1322 site=$ac_optarg ;;
1323
1324 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1325 ac_prev=srcdir ;;
1326 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1327 srcdir=$ac_optarg ;;
1328
1329 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1330 | --syscon | --sysco | --sysc | --sys | --sy)
1331 ac_prev=sysconfdir ;;
1332 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1333 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1334 sysconfdir=$ac_optarg ;;
1335
1336 -target | --target | --targe | --targ | --tar | --ta | --t)
1337 ac_prev=target_alias ;;
1338 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1339 target_alias=$ac_optarg ;;
1340
1341 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1342 verbose=yes ;;
1343
1344 -version | --version | --versio | --versi | --vers | -V)
1345 ac_init_version=: ;;
1346
1347 -with-* | --with-*)
1348 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1349 # Reject names that are not valid shell variable names.
1350 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1351 as_fn_error $? "invalid package name: $ac_useropt"
1352 ac_useropt_orig=$ac_useropt
1353 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1354 case $ac_user_opts in
1355 *"
1356 "with_$ac_useropt"
1357 "*) ;;
1358 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1359 ac_unrecognized_sep=', ';;
1360 esac
1361 eval with_$ac_useropt=\$ac_optarg ;;
1362
1363 -without-* | --without-*)
1364 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1365 # Reject names that are not valid shell variable names.
1366 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1367 as_fn_error $? "invalid package name: $ac_useropt"
1368 ac_useropt_orig=$ac_useropt
1369 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1370 case $ac_user_opts in
1371 *"
1372 "with_$ac_useropt"
1373 "*) ;;
1374 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1375 ac_unrecognized_sep=', ';;
1376 esac
1377 eval with_$ac_useropt=no ;;
1378
1379 --x)
1380 # Obsolete; use --with-x.
1381 with_x=yes ;;
1382
1383 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1384 | --x-incl | --x-inc | --x-in | --x-i)
1385 ac_prev=x_includes ;;
1386 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1387 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1388 x_includes=$ac_optarg ;;
1389
1390 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1391 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1392 ac_prev=x_libraries ;;
1393 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1394 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1395 x_libraries=$ac_optarg ;;
1396
1397 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1398 Try \`$0 --help' for more information"
1399 ;;
1400
1401 *=*)
1402 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1403 # Reject names that are not valid shell variable names.
1404 case $ac_envvar in #(
1405 '' | [0-9]* | *[!_$as_cr_alnum]* )
1406 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1407 esac
1408 eval $ac_envvar=\$ac_optarg
1409 export $ac_envvar ;;
1410
1411 *)
1412 # FIXME: should be removed in autoconf 3.0.
1413 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1414 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1415 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1416 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1417 ;;
1418
1419 esac
1420 done
1421
1422 if test -n "$ac_prev"; then
1423 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1424 as_fn_error $? "missing argument to $ac_option"
1425 fi
1426
1427 if test -n "$ac_unrecognized_opts"; then
1428 case $enable_option_checking in
1429 no) ;;
1430 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1431 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1432 esac
1433 fi
1434
1435 # Check all directory arguments for consistency.
1436 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1437 datadir sysconfdir sharedstatedir localstatedir includedir \
1438 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1439 libdir localedir mandir
1440 do
1441 eval ac_val=\$$ac_var
1442 # Remove trailing slashes.
1443 case $ac_val in
1444 */ )
1445 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1446 eval $ac_var=\$ac_val;;
1447 esac
1448 # Be sure to have absolute directory names.
1449 case $ac_val in
1450 [\\/$]* | ?:[\\/]* ) continue;;
1451 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1452 esac
1453 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1454 done
1455
1456 # There might be people who depend on the old broken behavior: `$host'
1457 # used to hold the argument of --host etc.
1458 # FIXME: To remove some day.
1459 build=$build_alias
1460 host=$host_alias
1461 target=$target_alias
1462
1463 # FIXME: To remove some day.
1464 if test "x$host_alias" != x; then
1465 if test "x$build_alias" = x; then
1466 cross_compiling=maybe
1467 elif test "x$build_alias" != "x$host_alias"; then
1468 cross_compiling=yes
1469 fi
1470 fi
1471
1472 ac_tool_prefix=
1473 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1474
1475 test "$silent" = yes && exec 6>/dev/null
1476
1477
1478 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1479 ac_ls_di=`ls -di .` &&
1480 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1481 as_fn_error $? "working directory cannot be determined"
1482 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1483 as_fn_error $? "pwd does not report name of working directory"
1484
1485
1486 # Find the source files, if location was not specified.
1487 if test -z "$srcdir"; then
1488 ac_srcdir_defaulted=yes
1489 # Try the directory containing this script, then the parent directory.
1490 ac_confdir=`$as_dirname -- "$as_myself" ||
1491 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1492 X"$as_myself" : 'X\(//\)[^/]' \| \
1493 X"$as_myself" : 'X\(//\)$' \| \
1494 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1495 $as_echo X"$as_myself" |
1496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1497 s//\1/
1498 q
1499 }
1500 /^X\(\/\/\)[^/].*/{
1501 s//\1/
1502 q
1503 }
1504 /^X\(\/\/\)$/{
1505 s//\1/
1506 q
1507 }
1508 /^X\(\/\).*/{
1509 s//\1/
1510 q
1511 }
1512 s/.*/./; q'`
1513 srcdir=$ac_confdir
1514 if test ! -r "$srcdir/$ac_unique_file"; then
1515 srcdir=..
1516 fi
1517 else
1518 ac_srcdir_defaulted=no
1519 fi
1520 if test ! -r "$srcdir/$ac_unique_file"; then
1521 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1522 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1523 fi
1524 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1525 ac_abs_confdir=`(
1526 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1527 pwd)`
1528 # When building in place, set srcdir=.
1529 if test "$ac_abs_confdir" = "$ac_pwd"; then
1530 srcdir=.
1531 fi
1532 # Remove unnecessary trailing slashes from srcdir.
1533 # Double slashes in file names in object file debugging info
1534 # mess up M-x gdb in Emacs.
1535 case $srcdir in
1536 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1537 esac
1538 for ac_var in $ac_precious_vars; do
1539 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1540 eval ac_env_${ac_var}_value=\$${ac_var}
1541 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1542 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1543 done
1544
1545 #
1546 # Report the --help message.
1547 #
1548 if test "$ac_init_help" = "long"; then
1549 # Omit some internal or obsolete options to make the list less imposing.
1550 # This message is too long to be a string in the A/UX 3.1 sh.
1551 cat <<_ACEOF
1552 \`configure' configures this package to adapt to many kinds of systems.
1553
1554 Usage: $0 [OPTION]... [VAR=VALUE]...
1555
1556 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1557 VAR=VALUE. See below for descriptions of some of the useful variables.
1558
1559 Defaults for the options are specified in brackets.
1560
1561 Configuration:
1562 -h, --help display this help and exit
1563 --help=short display options specific to this package
1564 --help=recursive display the short help of all the included packages
1565 -V, --version display version information and exit
1566 -q, --quiet, --silent do not print \`checking ...' messages
1567 --cache-file=FILE cache test results in FILE [disabled]
1568 -C, --config-cache alias for \`--cache-file=config.cache'
1569 -n, --no-create do not create output files
1570 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1571
1572 Installation directories:
1573 --prefix=PREFIX install architecture-independent files in PREFIX
1574 [$ac_default_prefix]
1575 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1576 [PREFIX]
1577
1578 By default, \`make install' will install all the files in
1579 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1580 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1581 for instance \`--prefix=\$HOME'.
1582
1583 For better control, use the options below.
1584
1585 Fine tuning of the installation directories:
1586 --bindir=DIR user executables [EPREFIX/bin]
1587 --sbindir=DIR system admin executables [EPREFIX/sbin]
1588 --libexecdir=DIR program executables [EPREFIX/libexec]
1589 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1590 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1591 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1592 --libdir=DIR object code libraries [EPREFIX/lib]
1593 --includedir=DIR C header files [PREFIX/include]
1594 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1595 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1596 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1597 --infodir=DIR info documentation [DATAROOTDIR/info]
1598 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1599 --mandir=DIR man documentation [DATAROOTDIR/man]
1600 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1601 --htmldir=DIR html documentation [DOCDIR]
1602 --dvidir=DIR dvi documentation [DOCDIR]
1603 --pdfdir=DIR pdf documentation [DOCDIR]
1604 --psdir=DIR ps documentation [DOCDIR]
1605 _ACEOF
1606
1607 cat <<\_ACEOF
1608
1609 System types:
1610 --build=BUILD configure for building on BUILD [guessed]
1611 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1612 --target=TARGET configure for building compilers for TARGET [HOST]
1613 _ACEOF
1614 fi
1615
1616 if test -n "$ac_init_help"; then
1617
1618 cat <<\_ACEOF
1619
1620 Optional Features:
1621 --disable-option-checking ignore unrecognized --enable/--with options
1622 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1623 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1624 --enable-shared[=PKGS] build shared libraries [default=yes]
1625 --enable-static[=PKGS] build static libraries [default=yes]
1626 --enable-fast-install[=PKGS]
1627 optimize for fast installation [default=yes]
1628 --disable-libtool-lock avoid locking (might break parallel builds)
1629 --disable-largefile omit support for large files
1630 --disable-auth-file omit mod_auth_file from core modules
1631
1632 --enable-autoshadow enable run-time auto-detection of shadowed passwords
1633 (requires shadow)
1634
1635 --enable-auth-pam enable PAM support (default=auto)
1636
1637 --enable-builtin-getaddrinfo
1638 force use of builtin getaddrinfo (default=no)
1639
1640 --enable-builtin-getnameinfo
1641 force use of builtin getnameinfo (default=no)
1642
1643 --enable-cap enable POSIX.1e capabilities (default=yes on Linux)
1644
1645 --enable-ctrls enable proftpd controls via ftpdctl (default=no)
1646
1647 --enable-facl enable support for POSIX ACLs
1648
1649 --disable-curses disable use of curses (default=no)
1650
1651 --enable-dso add mod_dso to core modules
1652
1653 --enable-ident enable use of ident (RFC1413) lookups (default=no)
1654
1655 --enable-memcache enable support for memcache (default=no)
1656
1657 --enable-nls enable Native Language Support (NLS) (default=no)
1658
1659 --disable-nonblocking-log-open
1660 disable use of nonblocking open of log files
1661 (default=no)
1662
1663 --disable-ncurses disable use of ncurses (default=no)
1664
1665 --disable-openssl-api-compat
1666 disable defining OpenSSL API compatibility
1667 (default=no)
1668
1669 --enable-pcre enable use of PCRE for POSIX regular expressions
1670 rather than the system library (default=no)
1671 --enable-pcre2 enable use of PCRE2 for POSIX regular expressions
1672 rather than the system library (default=no)
1673 --enable-redis enable support for Redis (default=no)
1674
1675 --enable-force-setpassent
1676 force use of setpassent (default=no on FreeBSD)
1677
1678 --disable-ipv6 disable IPv6 support (default=no)
1679
1680 --enable-openssl enable OpenSSL support (default=no)
1681
1682 --enable-sodium enable Sodium support (default=auto)
1683
1684 --disable-sendfile disable sendfile support (default=no)
1685
1686 --enable-shadow force compilation of shadowed password support
1687
1688 --enable-sia enable SIA authentication support (Tru64)
1689
1690 --enable-tests enable unit tests (default=no)
1691
1692 --disable-trace disable trace support (default=no)
1693
1694 --disable-xattr disable extended attribute support (default=auto)
1695
1696 --enable-devel enable developer-only code (default=no)
1697
1698 --enable-buffer-size tune the the size (in bytes) of internal buffers
1699 (default=1024)
1700
1701 --enable-pool-size tune the size (in bytes) of memory pools
1702 (default=512)
1703
1704 --enable-scoreboard-buffer-size
1705 tune the the size (in bytes) of certain scoreboard
1706 buffers (default=80)
1707
1708 --enable-scoreboard-updates
1709 set how often (in loops) the mod_xfer module updates
1710 the scoreboard (default=10)
1711
1712 --enable-strip strip debugging symbols from installed code
1713 (default=no)
1714
1715 --enable-timeout-ident set the default timeout (in secs) for RFC931
1716 connections (default=10)
1717
1718 --enable-timeout-idle set the default timeout (in secs) for idle
1719 connections (default=600)
1720
1721 --enable-timeout-linger set the default timeout (in secs) for lingering
1722 closes (default=30)
1723
1724 --enable-timeout-login set the default timeout (in secs) for logging in
1725 after connecting (default=300)
1726
1727 --enable-timeout-no-transfer
1728 set the default timeout (in secs) for no data
1729 transferred (default=300)
1730
1731 --enable-timeout-stalled
1732 set the default timeout (in secs) for stalled
1733 transfers (default=3600)
1734
1735 --enable-parser-buffer-size
1736 tune the the size (in bytes) of parser buffers
1737 (default=4096 bytes)
1738
1739 --enable-transfer-buffer-size
1740 tune the the size (in bytes) of data transfer
1741 buffers (default=OS dependent)
1742
1743
1744 Optional Packages:
1745 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1746 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1747 --with-pic try to use only PIC/non-PIC objects [default=use
1748 both]
1749 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1750 --without-getopt prevent proftpd from using its bundled getopt
1751 implementation. This is done automatically if the
1752 host supports getopt, but may need to be explicitly
1753 used when combining proftpd with other applications,
1754 such as MySQL
1755
1756 --with-lastlog=PATH specify lastlog location (Default: /var/adm/lastlog)
1757 --with-includes=LIST add additional include paths to proftpd. LIST is a
1758 colon-separated list of include paths to add e.g.
1759 --with-includes=/some/mysql/include:/my/include
1760
1761 --with-libraries=LIST add additional library paths to proftpd. LIST is a
1762 colon-separated list of library paths to add e.g.
1763 --with-libraries=/some/mysql/libdir:/my/libs
1764
1765 --with-modules=LIST add additional modules to proftpd. LIST is a
1766 colon-separated list of modules to add e.g.
1767 --with-modules=mod_readme:mod_ifsession
1768
1769 --with-shared=LIST build DSO modules for proftpd. LIST is a
1770 colon-separated list of modules to build as DSOs
1771 e.g. --with-shared=mod_rewrite:mod_ifsession
1772
1773 --with-mysql-config=PATH
1774 configure location of the MySQL mysql_config script
1775 (default=mysql_config)
1776
1777 --with-openssl-cmdline=PATH
1778 configure location of the openssl(1) command-line
1779 tool (default=openssl)
1780
1781 --with-postgres-config=PATH
1782 configure location of the Postgres pg_config script
1783 (default=pg_config)
1784
1785 --with-pkgconfig=PATH configure directory that will contain the proftpd.pc
1786 pkgconfig file (default=lib/pkgconfig)
1787
1788 --with-included-ltdl use the GNU ltdl sources included here
1789 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1790 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1791
1792 Some influential environment variables:
1793 CC C compiler command
1794 CFLAGS C compiler flags
1795 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1796 nonstandard directory <lib dir>
1797 LIBS libraries to pass to the linker, e.g. -l<library>
1798 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1799 you have headers in a nonstandard directory <include dir>
1800 CPP C preprocessor
1801 CXX C++ compiler command
1802 CXXFLAGS C++ compiler flags
1803 CXXCPP C++ preprocessor
1804
1805 Use these variables to override the choices made by `configure' or to help
1806 it to find libraries and programs with nonstandard names/locations.
1807
1808 Report bugs to the package provider.
1809 _ACEOF
1810 ac_status=$?
1811 fi
1812
1813 if test "$ac_init_help" = "recursive"; then
1814 # If there are subdirs, report their specific --help.
1815 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1816 test -d "$ac_dir" ||
1817 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1818 continue
1819 ac_builddir=.
1820
1821 case "$ac_dir" in
1822 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1823 *)
1824 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1825 # A ".." for each directory in $ac_dir_suffix.
1826 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1827 case $ac_top_builddir_sub in
1828 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1829 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1830 esac ;;
1831 esac
1832 ac_abs_top_builddir=$ac_pwd
1833 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1834 # for backward compatibility:
1835 ac_top_builddir=$ac_top_build_prefix
1836
1837 case $srcdir in
1838 .) # We are building in place.
1839 ac_srcdir=.
1840 ac_top_srcdir=$ac_top_builddir_sub
1841 ac_abs_top_srcdir=$ac_pwd ;;
1842 [\\/]* | ?:[\\/]* ) # Absolute name.
1843 ac_srcdir=$srcdir$ac_dir_suffix;
1844 ac_top_srcdir=$srcdir
1845 ac_abs_top_srcdir=$srcdir ;;
1846 *) # Relative name.
1847 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1848 ac_top_srcdir=$ac_top_build_prefix$srcdir
1849 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1850 esac
1851 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1852
1853 cd "$ac_dir" || { ac_status=$?; continue; }
1854 # Check for guested configure.
1855 if test -f "$ac_srcdir/configure.gnu"; then
1856 echo &&
1857 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1858 elif test -f "$ac_srcdir/configure"; then
1859 echo &&
1860 $SHELL "$ac_srcdir/configure" --help=recursive
1861 else
1862 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1863 fi || ac_status=$?
1864 cd "$ac_pwd" || { ac_status=$?; break; }
1865 done
1866 fi
1867
1868 test -n "$ac_init_help" && exit $ac_status
1869 if $ac_init_version; then
1870 cat <<\_ACEOF
1871 configure
1872 generated by GNU Autoconf 2.69
1873
1874 Copyright (C) 2012 Free Software Foundation, Inc.
1875 This configure script is free software; the Free Software Foundation
1876 gives unlimited permission to copy, distribute and modify it.
1877 _ACEOF
1878 exit
1879 fi
1880
1881 ## ------------------------ ##
1882 ## Autoconf initialization. ##
1883 ## ------------------------ ##
1884
1885 # ac_fn_c_try_compile LINENO
1886 # --------------------------
1887 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1888 ac_fn_c_try_compile ()
1889 {
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 rm -f conftest.$ac_objext
1892 if { { ac_try="$ac_compile"
1893 case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_compile") 2>conftest.err
1900 ac_status=$?
1901 if test -s conftest.err; then
1902 grep -v '^ *+' conftest.err >conftest.er1
1903 cat conftest.er1 >&5
1904 mv -f conftest.er1 conftest.err
1905 fi
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } && {
1908 test -z "$ac_c_werror_flag" ||
1909 test ! -s conftest.err
1910 } && test -s conftest.$ac_objext; then :
1911 ac_retval=0
1912 else
1913 $as_echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1915
1916 ac_retval=1
1917 fi
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1920
1921 } # ac_fn_c_try_compile
1922
1923 # ac_fn_c_try_link LINENO
1924 # -----------------------
1925 # Try to link conftest.$ac_ext, and return whether this succeeded.
1926 ac_fn_c_try_link ()
1927 {
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 rm -f conftest.$ac_objext conftest$ac_exeext
1930 if { { ac_try="$ac_link"
1931 case "(($ac_try" in
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1934 esac
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_link") 2>conftest.err
1938 ac_status=$?
1939 if test -s conftest.err; then
1940 grep -v '^ *+' conftest.err >conftest.er1
1941 cat conftest.er1 >&5
1942 mv -f conftest.er1 conftest.err
1943 fi
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } && {
1946 test -z "$ac_c_werror_flag" ||
1947 test ! -s conftest.err
1948 } && test -s conftest$ac_exeext && {
1949 test "$cross_compiling" = yes ||
1950 test -x conftest$ac_exeext
1951 }; then :
1952 ac_retval=0
1953 else
1954 $as_echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1956
1957 ac_retval=1
1958 fi
1959 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1960 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1961 # interfere with the next link command; also delete a directory that is
1962 # left behind by Apple's compiler. We do this before executing the actions.
1963 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965 as_fn_set_status $ac_retval
1966
1967 } # ac_fn_c_try_link
1968
1969 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1970 # -------------------------------------------------------
1971 # Tests whether HEADER exists and can be compiled using the include files in
1972 # INCLUDES, setting the cache variable VAR accordingly.
1973 ac_fn_c_check_header_compile ()
1974 {
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 $as_echo_n "checking for $2... " >&6; }
1978 if eval \${$3+:} false; then :
1979 $as_echo_n "(cached) " >&6
1980 else
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1983 $4
1984 #include <$2>
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987 eval "$3=yes"
1988 else
1989 eval "$3=no"
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 fi
1993 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997
1998 } # ac_fn_c_check_header_compile
1999
2000 # ac_fn_c_try_cpp LINENO
2001 # ----------------------
2002 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2003 ac_fn_c_try_cpp ()
2004 {
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 if { { ac_try="$ac_cpp conftest.$ac_ext"
2007 case "(($ac_try" in
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2010 esac
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2014 ac_status=$?
2015 if test -s conftest.err; then
2016 grep -v '^ *+' conftest.err >conftest.er1
2017 cat conftest.er1 >&5
2018 mv -f conftest.er1 conftest.err
2019 fi
2020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021 test $ac_status = 0; } > conftest.i && {
2022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2023 test ! -s conftest.err
2024 }; then :
2025 ac_retval=0
2026 else
2027 $as_echo "$as_me: failed program was:" >&5
2028 sed 's/^/| /' conftest.$ac_ext >&5
2029
2030 ac_retval=1
2031 fi
2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 as_fn_set_status $ac_retval
2034
2035 } # ac_fn_c_try_cpp
2036
2037 # ac_fn_c_try_run LINENO
2038 # ----------------------
2039 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2040 # that executables *can* be run.
2041 ac_fn_c_try_run ()
2042 {
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 if { { ac_try="$ac_link"
2045 case "(($ac_try" in
2046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047 *) ac_try_echo=$ac_try;;
2048 esac
2049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2050 $as_echo "$ac_try_echo"; } >&5
2051 (eval "$ac_link") 2>&5
2052 ac_status=$?
2053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2054 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2055 { { case "(($ac_try" in
2056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2057 *) ac_try_echo=$ac_try;;
2058 esac
2059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2060 $as_echo "$ac_try_echo"; } >&5
2061 (eval "$ac_try") 2>&5
2062 ac_status=$?
2063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2064 test $ac_status = 0; }; }; then :
2065 ac_retval=0
2066 else
2067 $as_echo "$as_me: program exited with status $ac_status" >&5
2068 $as_echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2070
2071 ac_retval=$ac_status
2072 fi
2073 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 as_fn_set_status $ac_retval
2076
2077 } # ac_fn_c_try_run
2078
2079 # ac_fn_c_check_func LINENO FUNC VAR
2080 # ----------------------------------
2081 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2082 ac_fn_c_check_func ()
2083 {
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if eval \${$3+:} false; then :
2088 $as_echo_n "(cached) " >&6
2089 else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2094 #define $2 innocuous_$2
2095
2096 /* System header to define __stub macros and hopefully few prototypes,
2097 which can conflict with char $2 (); below.
2098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2099 <limits.h> exists even on freestanding compilers. */
2100
2101 #ifdef __STDC__
2102 # include <limits.h>
2103 #else
2104 # include <assert.h>
2105 #endif
2106
2107 #undef $2
2108
2109 /* Override any GCC internal prototype to avoid an error.
2110 Use char because int might match the return type of a GCC
2111 builtin and then its argument prototype would still apply. */
2112 #ifdef __cplusplus
2113 extern "C"
2114 #endif
2115 char $2 ();
2116 /* The GNU C library defines this for functions which it implements
2117 to always fail with ENOSYS. Some functions are actually named
2118 something starting with __ and the normal name is an alias. */
2119 #if defined __stub_$2 || defined __stub___$2
2120 choke me
2121 #endif
2122
2123 int
2124 main ()
2125 {
2126 return $2 ();
2127 ;
2128 return 0;
2129 }
2130 _ACEOF
2131 if ac_fn_c_try_link "$LINENO"; then :
2132 eval "$3=yes"
2133 else
2134 eval "$3=no"
2135 fi
2136 rm -f core conftest.err conftest.$ac_objext \
2137 conftest$ac_exeext conftest.$ac_ext
2138 fi
2139 eval ac_res=\$$3
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2141 $as_echo "$ac_res" >&6; }
2142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2143
2144 } # ac_fn_c_check_func
2145
2146 # ac_fn_cxx_try_compile LINENO
2147 # ----------------------------
2148 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2149 ac_fn_cxx_try_compile ()
2150 {
2151 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152 rm -f conftest.$ac_objext
2153 if { { ac_try="$ac_compile"
2154 case "(($ac_try" in
2155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156 *) ac_try_echo=$ac_try;;
2157 esac
2158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2159 $as_echo "$ac_try_echo"; } >&5
2160 (eval "$ac_compile") 2>conftest.err
2161 ac_status=$?
2162 if test -s conftest.err; then
2163 grep -v '^ *+' conftest.err >conftest.er1
2164 cat conftest.er1 >&5
2165 mv -f conftest.er1 conftest.err
2166 fi
2167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2168 test $ac_status = 0; } && {
2169 test -z "$ac_cxx_werror_flag" ||
2170 test ! -s conftest.err
2171 } && test -s conftest.$ac_objext; then :
2172 ac_retval=0
2173 else
2174 $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2176
2177 ac_retval=1
2178 fi
2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180 as_fn_set_status $ac_retval
2181
2182 } # ac_fn_cxx_try_compile
2183
2184 # ac_fn_cxx_try_cpp LINENO
2185 # ------------------------
2186 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2187 ac_fn_cxx_try_cpp ()
2188 {
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 if { { ac_try="$ac_cpp conftest.$ac_ext"
2191 case "(($ac_try" in
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2194 esac
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2198 ac_status=$?
2199 if test -s conftest.err; then
2200 grep -v '^ *+' conftest.err >conftest.er1
2201 cat conftest.er1 >&5
2202 mv -f conftest.er1 conftest.err
2203 fi
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; } > conftest.i && {
2206 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2207 test ! -s conftest.err
2208 }; then :
2209 ac_retval=0
2210 else
2211 $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2213
2214 ac_retval=1
2215 fi
2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217 as_fn_set_status $ac_retval
2218
2219 } # ac_fn_cxx_try_cpp
2220
2221 # ac_fn_cxx_try_link LINENO
2222 # -------------------------
2223 # Try to link conftest.$ac_ext, and return whether this succeeded.
2224 ac_fn_cxx_try_link ()
2225 {
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 rm -f conftest.$ac_objext conftest$ac_exeext
2228 if { { ac_try="$ac_link"
2229 case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232 esac
2233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234 $as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_link") 2>conftest.err
2236 ac_status=$?
2237 if test -s conftest.err; then
2238 grep -v '^ *+' conftest.err >conftest.er1
2239 cat conftest.er1 >&5
2240 mv -f conftest.er1 conftest.err
2241 fi
2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243 test $ac_status = 0; } && {
2244 test -z "$ac_cxx_werror_flag" ||
2245 test ! -s conftest.err
2246 } && test -s conftest$ac_exeext && {
2247 test "$cross_compiling" = yes ||
2248 test -x conftest$ac_exeext
2249 }; then :
2250 ac_retval=0
2251 else
2252 $as_echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2254
2255 ac_retval=1
2256 fi
2257 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2258 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2259 # interfere with the next link command; also delete a directory that is
2260 # left behind by Apple's compiler. We do this before executing the actions.
2261 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263 as_fn_set_status $ac_retval
2264
2265 } # ac_fn_cxx_try_link
2266
2267 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2268 # -------------------------------------------------------
2269 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2270 # the include files in INCLUDES and setting the cache variable VAR
2271 # accordingly.
2272 ac_fn_c_check_header_mongrel ()
2273 {
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 if eval \${$3+:} false; then :
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2277 $as_echo_n "checking for $2... " >&6; }
2278 if eval \${$3+:} false; then :
2279 $as_echo_n "(cached) " >&6
2280 fi
2281 eval ac_res=\$$3
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283 $as_echo "$ac_res" >&6; }
2284 else
2285 # Is the header compilable?
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2287 $as_echo_n "checking $2 usability... " >&6; }
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2290 $4
2291 #include <$2>
2292 _ACEOF
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294 ac_header_compiler=yes
2295 else
2296 ac_header_compiler=no
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2300 $as_echo "$ac_header_compiler" >&6; }
2301
2302 # Is the header present?
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2304 $as_echo_n "checking $2 presence... " >&6; }
2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2307 #include <$2>
2308 _ACEOF
2309 if ac_fn_c_try_cpp "$LINENO"; then :
2310 ac_header_preproc=yes
2311 else
2312 ac_header_preproc=no
2313 fi
2314 rm -f conftest.err conftest.i conftest.$ac_ext
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2316 $as_echo "$ac_header_preproc" >&6; }
2317
2318 # So? What about this header?
2319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2320 yes:no: )
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2322 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2324 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2325 ;;
2326 no:yes:* )
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2328 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2330 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2332 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2334 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2336 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2337 ;;
2338 esac
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340 $as_echo_n "checking for $2... " >&6; }
2341 if eval \${$3+:} false; then :
2342 $as_echo_n "(cached) " >&6
2343 else
2344 eval "$3=\$ac_header_compiler"
2345 fi
2346 eval ac_res=\$$3
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2348 $as_echo "$ac_res" >&6; }
2349 fi
2350 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2351
2352 } # ac_fn_c_check_header_mongrel
2353
2354 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2355 # ---------------------------------------------
2356 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2357 # accordingly.
2358 ac_fn_c_check_decl ()
2359 {
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 as_decl_name=`echo $2|sed 's/ *(.*//'`
2362 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2364 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2365 if eval \${$3+:} false; then :
2366 $as_echo_n "(cached) " >&6
2367 else
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2370 $4
2371 int
2372 main ()
2373 {
2374 #ifndef $as_decl_name
2375 #ifdef __cplusplus
2376 (void) $as_decl_use;
2377 #else
2378 (void) $as_decl_name;
2379 #endif
2380 #endif
2381
2382 ;
2383 return 0;
2384 }
2385 _ACEOF
2386 if ac_fn_c_try_compile "$LINENO"; then :
2387 eval "$3=yes"
2388 else
2389 eval "$3=no"
2390 fi
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 fi
2393 eval ac_res=\$$3
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2396 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2397
2398 } # ac_fn_c_check_decl
2399
2400 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2401 # -------------------------------------------
2402 # Tests whether TYPE exists after having included INCLUDES, setting cache
2403 # variable VAR accordingly.
2404 ac_fn_c_check_type ()
2405 {
2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2408 $as_echo_n "checking for $2... " >&6; }
2409 if eval \${$3+:} false; then :
2410 $as_echo_n "(cached) " >&6
2411 else
2412 eval "$3=no"
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2415 $4
2416 int
2417 main ()
2418 {
2419 if (sizeof ($2))
2420 return 0;
2421 ;
2422 return 0;
2423 }
2424 _ACEOF
2425 if ac_fn_c_try_compile "$LINENO"; then :
2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427 /* end confdefs.h. */
2428 $4
2429 int
2430 main ()
2431 {
2432 if (sizeof (($2)))
2433 return 0;
2434 ;
2435 return 0;
2436 }
2437 _ACEOF
2438 if ac_fn_c_try_compile "$LINENO"; then :
2439
2440 else
2441 eval "$3=yes"
2442 fi
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444 fi
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 fi
2447 eval ac_res=\$$3
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2449 $as_echo "$ac_res" >&6; }
2450 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2451
2452 } # ac_fn_c_check_type
2453
2454 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2455 # ----------------------------------------------------
2456 # Tries to find if the field MEMBER exists in type AGGR, after including
2457 # INCLUDES, setting cache variable VAR accordingly.
2458 ac_fn_c_check_member ()
2459 {
2460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2462 $as_echo_n "checking for $2.$3... " >&6; }
2463 if eval \${$4+:} false; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2468 $5
2469 int
2470 main ()
2471 {
2472 static $2 ac_aggr;
2473 if (ac_aggr.$3)
2474 return 0;
2475 ;
2476 return 0;
2477 }
2478 _ACEOF
2479 if ac_fn_c_try_compile "$LINENO"; then :
2480 eval "$4=yes"
2481 else
2482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2483 /* end confdefs.h. */
2484 $5
2485 int
2486 main ()
2487 {
2488 static $2 ac_aggr;
2489 if (sizeof ac_aggr.$3)
2490 return 0;
2491 ;
2492 return 0;
2493 }
2494 _ACEOF
2495 if ac_fn_c_try_compile "$LINENO"; then :
2496 eval "$4=yes"
2497 else
2498 eval "$4=no"
2499 fi
2500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2501 fi
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503 fi
2504 eval ac_res=\$$4
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2506 $as_echo "$ac_res" >&6; }
2507 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2508
2509 } # ac_fn_c_check_member
2510
2511 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2512 # --------------------------------------------
2513 # Tries to find the compile-time value of EXPR in a program that includes
2514 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2515 # computed
2516 ac_fn_c_compute_int ()
2517 {
2518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519 if test "$cross_compiling" = yes; then
2520 # Depending upon the size, compute the lo and hi bounds.
2521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h. */
2523 $4
2524 int
2525 main ()
2526 {
2527 static int test_array [1 - 2 * !(($2) >= 0)];
2528 test_array [0] = 0;
2529 return test_array [0];
2530
2531 ;
2532 return 0;
2533 }
2534 _ACEOF
2535 if ac_fn_c_try_compile "$LINENO"; then :
2536 ac_lo=0 ac_mid=0
2537 while :; do
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2540 $4
2541 int
2542 main ()
2543 {
2544 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2545 test_array [0] = 0;
2546 return test_array [0];
2547
2548 ;
2549 return 0;
2550 }
2551 _ACEOF
2552 if ac_fn_c_try_compile "$LINENO"; then :
2553 ac_hi=$ac_mid; break
2554 else
2555 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2556 if test $ac_lo -le $ac_mid; then
2557 ac_lo= ac_hi=
2558 break
2559 fi
2560 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2561 fi
2562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563 done
2564 else
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566 /* end confdefs.h. */
2567 $4
2568 int
2569 main ()
2570 {
2571 static int test_array [1 - 2 * !(($2) < 0)];
2572 test_array [0] = 0;
2573 return test_array [0];
2574
2575 ;
2576 return 0;
2577 }
2578 _ACEOF
2579 if ac_fn_c_try_compile "$LINENO"; then :
2580 ac_hi=-1 ac_mid=-1
2581 while :; do
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2584 $4
2585 int
2586 main ()
2587 {
2588 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2589 test_array [0] = 0;
2590 return test_array [0];
2591
2592 ;
2593 return 0;
2594 }
2595 _ACEOF
2596 if ac_fn_c_try_compile "$LINENO"; then :
2597 ac_lo=$ac_mid; break
2598 else
2599 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2600 if test $ac_mid -le $ac_hi; then
2601 ac_lo= ac_hi=
2602 break
2603 fi
2604 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2605 fi
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 done
2608 else
2609 ac_lo= ac_hi=
2610 fi
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 fi
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 # Binary search between lo and hi bounds.
2615 while test "x$ac_lo" != "x$ac_hi"; do
2616 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618 /* end confdefs.h. */
2619 $4
2620 int
2621 main ()
2622 {
2623 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2624 test_array [0] = 0;
2625 return test_array [0];
2626
2627 ;
2628 return 0;
2629 }
2630 _ACEOF
2631 if ac_fn_c_try_compile "$LINENO"; then :
2632 ac_hi=$ac_mid
2633 else
2634 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2635 fi
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 done
2638 case $ac_lo in #((
2639 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2640 '') ac_retval=1 ;;
2641 esac
2642 else
2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644 /* end confdefs.h. */
2645 $4
2646 static long int longval () { return $2; }
2647 static unsigned long int ulongval () { return $2; }
2648 #include <stdio.h>
2649 #include <stdlib.h>
2650 int
2651 main ()
2652 {
2653
2654 FILE *f = fopen ("conftest.val", "w");
2655 if (! f)
2656 return 1;
2657 if (($2) < 0)
2658 {
2659 long int i = longval ();
2660 if (i != ($2))
2661 return 1;
2662 fprintf (f, "%ld", i);
2663 }
2664 else
2665 {
2666 unsigned long int i = ulongval ();
2667 if (i != ($2))
2668 return 1;
2669 fprintf (f, "%lu", i);
2670 }
2671 /* Do not output a trailing newline, as this causes \r\n confusion
2672 on some platforms. */
2673 return ferror (f) || fclose (f) != 0;
2674
2675 ;
2676 return 0;
2677 }
2678 _ACEOF
2679 if ac_fn_c_try_run "$LINENO"; then :
2680 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2681 else
2682 ac_retval=1
2683 fi
2684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2685 conftest.$ac_objext conftest.beam conftest.$ac_ext
2686 rm -f conftest.val
2687
2688 fi
2689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2690 as_fn_set_status $ac_retval
2691
2692 } # ac_fn_c_compute_int
2693 cat >config.log <<_ACEOF
2694 This file contains any messages produced by compilers while
2695 running configure, to aid debugging if configure makes a mistake.
2696
2697 It was created by $as_me, which was
2698 generated by GNU Autoconf 2.69. Invocation command line was
2699
2700 $ $0 $@
2701
2702 _ACEOF
2703 exec 5>>config.log
2704 {
2705 cat <<_ASUNAME
2706 ## --------- ##
2707 ## Platform. ##
2708 ## --------- ##
2709
2710 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2711 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2712 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2713 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2714 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2715
2716 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2717 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2718
2719 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2720 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2721 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2722 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2723 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2724 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2725 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2726
2727 _ASUNAME
2728
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 $as_echo "PATH: $as_dir"
2735 done
2736 IFS=$as_save_IFS
2737
2738 } >&5
2739
2740 cat >&5 <<_ACEOF
2741
2742
2743 ## ----------- ##
2744 ## Core tests. ##
2745 ## ----------- ##
2746
2747 _ACEOF
2748
2749
2750 # Keep a trace of the command line.
2751 # Strip out --no-create and --no-recursion so they do not pile up.
2752 # Strip out --silent because we don't want to record it for future runs.
2753 # Also quote any args containing shell meta-characters.
2754 # Make two passes to allow for proper duplicate-argument suppression.
2755 ac_configure_args=
2756 ac_configure_args0=
2757 ac_configure_args1=
2758 ac_must_keep_next=false
2759 for ac_pass in 1 2
2760 do
2761 for ac_arg
2762 do
2763 case $ac_arg in
2764 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2766 | -silent | --silent | --silen | --sile | --sil)
2767 continue ;;
2768 *\'*)
2769 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2770 esac
2771 case $ac_pass in
2772 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2773 2)
2774 as_fn_append ac_configure_args1 " '$ac_arg'"
2775 if test $ac_must_keep_next = true; then
2776 ac_must_keep_next=false # Got value, back to normal.
2777 else
2778 case $ac_arg in
2779 *=* | --config-cache | -C | -disable-* | --disable-* \
2780 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2781 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2782 | -with-* | --with-* | -without-* | --without-* | --x)
2783 case "$ac_configure_args0 " in
2784 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2785 esac
2786 ;;
2787 -* ) ac_must_keep_next=true ;;
2788 esac
2789 fi
2790 as_fn_append ac_configure_args " '$ac_arg'"
2791 ;;
2792 esac
2793 done
2794 done
2795 { ac_configure_args0=; unset ac_configure_args0;}
2796 { ac_configure_args1=; unset ac_configure_args1;}
2797
2798 # When interrupted or exit'd, cleanup temporary files, and complete
2799 # config.log. We remove comments because anyway the quotes in there
2800 # would cause problems or look ugly.
2801 # WARNING: Use '\'' to represent an apostrophe within the trap.
2802 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2803 trap 'exit_status=$?
2804 # Save into config.log some information that might help in debugging.
2805 {
2806 echo
2807
2808 $as_echo "## ---------------- ##
2809 ## Cache variables. ##
2810 ## ---------------- ##"
2811 echo
2812 # The following way of writing the cache mishandles newlines in values,
2813 (
2814 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2815 eval ac_val=\$$ac_var
2816 case $ac_val in #(
2817 *${as_nl}*)
2818 case $ac_var in #(
2819 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2820 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2821 esac
2822 case $ac_var in #(
2823 _ | IFS | as_nl) ;; #(
2824 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2825 *) { eval $ac_var=; unset $ac_var;} ;;
2826 esac ;;
2827 esac
2828 done
2829 (set) 2>&1 |
2830 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2831 *${as_nl}ac_space=\ *)
2832 sed -n \
2833 "s/'\''/'\''\\\\'\'''\''/g;
2834 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2835 ;; #(
2836 *)
2837 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2838 ;;
2839 esac |
2840 sort
2841 )
2842 echo
2843
2844 $as_echo "## ----------------- ##
2845 ## Output variables. ##
2846 ## ----------------- ##"
2847 echo
2848 for ac_var in $ac_subst_vars
2849 do
2850 eval ac_val=\$$ac_var
2851 case $ac_val in
2852 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2853 esac
2854 $as_echo "$ac_var='\''$ac_val'\''"
2855 done | sort
2856 echo
2857
2858 if test -n "$ac_subst_files"; then
2859 $as_echo "## ------------------- ##
2860 ## File substitutions. ##
2861 ## ------------------- ##"
2862 echo
2863 for ac_var in $ac_subst_files
2864 do
2865 eval ac_val=\$$ac_var
2866 case $ac_val in
2867 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2868 esac
2869 $as_echo "$ac_var='\''$ac_val'\''"
2870 done | sort
2871 echo
2872 fi
2873
2874 if test -s confdefs.h; then
2875 $as_echo "## ----------- ##
2876 ## confdefs.h. ##
2877 ## ----------- ##"
2878 echo
2879 cat confdefs.h
2880 echo
2881 fi
2882 test "$ac_signal" != 0 &&
2883 $as_echo "$as_me: caught signal $ac_signal"
2884 $as_echo "$as_me: exit $exit_status"
2885 } >&5
2886 rm -f core *.core core.conftest.* &&
2887 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2888 exit $exit_status
2889 ' 0
2890 for ac_signal in 1 2 13 15; do
2891 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2892 done
2893 ac_signal=0
2894
2895 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2896 rm -f -r conftest* confdefs.h
2897
2898 $as_echo "/* confdefs.h */" > confdefs.h
2899
2900 # Predefined preprocessor variables.
2901
2902 cat >>confdefs.h <<_ACEOF
2903 #define PACKAGE_NAME "$PACKAGE_NAME"
2904 _ACEOF
2905
2906 cat >>confdefs.h <<_ACEOF
2907 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2908 _ACEOF
2909
2910 cat >>confdefs.h <<_ACEOF
2911 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2912 _ACEOF
2913
2914 cat >>confdefs.h <<_ACEOF
2915 #define PACKAGE_STRING "$PACKAGE_STRING"
2916 _ACEOF
2917
2918 cat >>confdefs.h <<_ACEOF
2919 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2920 _ACEOF
2921
2922 cat >>confdefs.h <<_ACEOF
2923 #define PACKAGE_URL "$PACKAGE_URL"
2924 _ACEOF
2925
2926
2927 # Let the site file select an alternate cache file if it wants to.
2928 # Prefer an explicitly selected file to automatically selected ones.
2929 ac_site_file1=NONE
2930 ac_site_file2=NONE
2931 if test -n "$CONFIG_SITE"; then
2932 # We do not want a PATH search for config.site.
2933 case $CONFIG_SITE in #((
2934 -*) ac_site_file1=./$CONFIG_SITE;;
2935 */*) ac_site_file1=$CONFIG_SITE;;
2936 *) ac_site_file1=./$CONFIG_SITE;;
2937 esac
2938 elif test "x$prefix" != xNONE; then
2939 ac_site_file1=$prefix/share/config.site
2940 ac_site_file2=$prefix/etc/config.site
2941 else
2942 ac_site_file1=$ac_default_prefix/share/config.site
2943 ac_site_file2=$ac_default_prefix/etc/config.site
2944 fi
2945 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2946 do
2947 test "x$ac_site_file" = xNONE && continue
2948 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2950 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2951 sed 's/^/| /' "$ac_site_file" >&5
2952 . "$ac_site_file" \
2953 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2955 as_fn_error $? "failed to load site script $ac_site_file
2956 See \`config.log' for more details" "$LINENO" 5; }
2957 fi
2958 done
2959
2960 if test -r "$cache_file"; then
2961 # Some versions of bash will fail to source /dev/null (special files
2962 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2963 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2965 $as_echo "$as_me: loading cache $cache_file" >&6;}
2966 case $cache_file in
2967 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2968 *) . "./$cache_file";;
2969 esac
2970 fi
2971 else
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2973 $as_echo "$as_me: creating cache $cache_file" >&6;}
2974 >$cache_file
2975 fi
2976
2977 # Check that the precious variables saved in the cache have kept the same
2978 # value.
2979 ac_cache_corrupted=false
2980 for ac_var in $ac_precious_vars; do
2981 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2982 eval ac_new_set=\$ac_env_${ac_var}_set
2983 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2984 eval ac_new_val=\$ac_env_${ac_var}_value
2985 case $ac_old_set,$ac_new_set in
2986 set,)
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2988 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2989 ac_cache_corrupted=: ;;
2990 ,set)
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2992 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2993 ac_cache_corrupted=: ;;
2994 ,);;
2995 *)
2996 if test "x$ac_old_val" != "x$ac_new_val"; then
2997 # differences in whitespace do not lead to failure.
2998 ac_old_val_w=`echo x $ac_old_val`
2999 ac_new_val_w=`echo x $ac_new_val`
3000 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3002 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3003 ac_cache_corrupted=:
3004 else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3006 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3007 eval $ac_var=\$ac_old_val
3008 fi
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3010 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3012 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3013 fi;;
3014 esac
3015 # Pass precious variables to config.status.
3016 if test "$ac_new_set" = set; then
3017 case $ac_new_val in
3018 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3019 *) ac_arg=$ac_var=$ac_new_val ;;
3020 esac
3021 case " $ac_configure_args " in
3022 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3023 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3024 esac
3025 fi
3026 done
3027 if $ac_cache_corrupted; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3031 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3032 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3033 fi
3034 ## -------------------- ##
3035 ## Main body of script. ##
3036 ## -------------------- ##
3037
3038 ac_ext=c
3039 ac_cpp='$CPP $CPPFLAGS'
3040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3043
3044
3045
3046 ac_core_modules="mod_core.o mod_xfer.o mod_rlimit.o mod_auth_unix.o mod_auth_file.o mod_auth.o mod_ls.o mod_log.o mod_site.o mod_delay.o mod_facts.o"
3047
3048 ac_build_core_modules="modules/mod_core.o modules/mod_xfer.o modules/mod_rlimit.o modules/mod_auth_unix.o modules/mod_auth_file.o modules/mod_auth.o modules/mod_ls.o modules/mod_log.o modules/mod_site.o modules/mod_delay.o modules/mod_facts.o"
3049
3050 ac_aux_dir=
3051 for ac_dir in ./ "$srcdir"/./; do
3052 if test -f "$ac_dir/install-sh"; then
3053 ac_aux_dir=$ac_dir
3054 ac_install_sh="$ac_aux_dir/install-sh -c"
3055 break
3056 elif test -f "$ac_dir/install.sh"; then
3057 ac_aux_dir=$ac_dir
3058 ac_install_sh="$ac_aux_dir/install.sh -c"
3059 break
3060 elif test -f "$ac_dir/shtool"; then
3061 ac_aux_dir=$ac_dir
3062 ac_install_sh="$ac_aux_dir/shtool install -c"
3063 break
3064 fi
3065 done
3066 if test -z "$ac_aux_dir"; then
3067 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./ \"$srcdir\"/./" "$LINENO" 5
3068 fi
3069
3070 # These three variables are undocumented and unsupported,
3071 # and are intended to be withdrawn in a future Autoconf release.
3072 # They can cause serious problems if a builder's source tree is in a directory
3073 # whose full name contains unusual characters.
3074 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3075 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3076 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3077
3078
3079 # Make sure we can run config.sub.
3080 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3081 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3082
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3084 $as_echo_n "checking build system type... " >&6; }
3085 if ${ac_cv_build+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 ac_build_alias=$build_alias
3089 test "x$ac_build_alias" = x &&
3090 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3091 test "x$ac_build_alias" = x &&
3092 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3093 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3094 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3095
3096 fi
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3098 $as_echo "$ac_cv_build" >&6; }
3099 case $ac_cv_build in
3100 *-*-*) ;;
3101 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3102 esac
3103 build=$ac_cv_build
3104 ac_save_IFS=$IFS; IFS='-'
3105 set x $ac_cv_build
3106 shift
3107 build_cpu=$1
3108 build_vendor=$2
3109 shift; shift
3110 # Remember, the first character of IFS is used to create $*,
3111 # except with old shells:
3112 build_os=$*
3113 IFS=$ac_save_IFS
3114 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3115
3116
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3118 $as_echo_n "checking host system type... " >&6; }
3119 if ${ac_cv_host+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 if test "x$host_alias" = x; then
3123 ac_cv_host=$ac_cv_build
3124 else
3125 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3126 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3127 fi
3128
3129 fi
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3131 $as_echo "$ac_cv_host" >&6; }
3132 case $ac_cv_host in
3133 *-*-*) ;;
3134 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3135 esac
3136 host=$ac_cv_host
3137 ac_save_IFS=$IFS; IFS='-'
3138 set x $ac_cv_host
3139 shift
3140 host_cpu=$1
3141 host_vendor=$2
3142 shift; shift
3143 # Remember, the first character of IFS is used to create $*,
3144 # except with old shells:
3145 host_os=$*
3146 IFS=$ac_save_IFS
3147 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3148
3149
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3151 $as_echo_n "checking target system type... " >&6; }
3152 if ${ac_cv_target+:} false; then :
3153 $as_echo_n "(cached) " >&6
3154 else
3155 if test "x$target_alias" = x; then
3156 ac_cv_target=$ac_cv_host
3157 else
3158 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3159 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3160 fi
3161
3162 fi
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3164 $as_echo "$ac_cv_target" >&6; }
3165 case $ac_cv_target in
3166 *-*-*) ;;
3167 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3168 esac
3169 target=$ac_cv_target
3170 ac_save_IFS=$IFS; IFS='-'
3171 set x $ac_cv_target
3172 shift
3173 target_cpu=$1
3174 target_vendor=$2
3175 shift; shift
3176 # Remember, the first character of IFS is used to create $*,
3177 # except with old shells:
3178 target_os=$*
3179 IFS=$ac_save_IFS
3180 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3181
3182
3183 # The aliases save the names the user supplied, while $host etc.
3184 # will get canonicalized.
3185 test -n "$target_alias" &&
3186 test "$program_prefix$program_suffix$program_transform_name" = \
3187 NONENONEs,x,x, &&
3188 program_prefix=${target_alias}-
3189
3190
3191 ostype=`echo $build_os | sed 's/\..*$//g' | sed 's/-.*//g' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
3192 osrel=`echo $build_os | sed 's/-.*//g' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | tr '.' '_'`
3193
3194 OSTYPE="-D$ostype"
3195 OSREL="-D$osrel"
3196 platform="\"$ostype ($osrel)\""
3197
3198 if test "$OSTYPE" = "$OSREL" ; then
3199 OSTYPE=""
3200 platform="\"$ostype\""
3201 fi
3202
3203 BUILD_OPTS=`echo "$ac_configure_args"`
3204
3205 cat >>confdefs.h <<_ACEOF
3206 #define PR_BUILD_OPTS "$BUILD_OPTS"
3207 _ACEOF
3208
3209
3210 cat >>confdefs.h <<_ACEOF
3211 #define PR_PLATFORM $platform
3212 _ACEOF
3213
3214
3215
3216
3217
3218 if test "$OSTYPE" = "-DRHAPSODY5"; then
3219 CFLAGS="$CFLAGS -traditional-cpp -D__OT__"
3220 fi
3221
3222
3223
3224 top_builddir=.
3225 case `pwd` in
3226 *\ * | *\ *)
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3228 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3229 esac
3230
3231
3232
3233 macro_version='2.2.6'
3234 macro_revision='1.3012'
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248 ltmain="$ac_aux_dir/ltmain.sh"
3249
3250 ac_ext=c
3251 ac_cpp='$CPP $CPPFLAGS'
3252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255 if test -n "$ac_tool_prefix"; then
3256 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3257 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_CC+:} false; then :
3261 $as_echo_n "(cached) " >&6
3262 else
3263 if test -n "$CC"; then
3264 ac_cv_prog_CC="$CC" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269 IFS=$as_save_IFS
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 break 2
3276 fi
3277 done
3278 done
3279 IFS=$as_save_IFS
3280
3281 fi
3282 fi
3283 CC=$ac_cv_prog_CC
3284 if test -n "$CC"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3286 $as_echo "$CC" >&6; }
3287 else
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 fi
3291
3292
3293 fi
3294 if test -z "$ac_cv_prog_CC"; then
3295 ac_ct_CC=$CC
3296 # Extract the first word of "gcc", so it can be a program name with args.
3297 set dummy gcc; ac_word=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3301 $as_echo_n "(cached) " >&6
3302 else
3303 if test -n "$ac_ct_CC"; then
3304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3305 else
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309 IFS=$as_save_IFS
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313 ac_cv_prog_ac_ct_CC="gcc"
3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 break 2
3316 fi
3317 done
3318 done
3319 IFS=$as_save_IFS
3320
3321 fi
3322 fi
3323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3324 if test -n "$ac_ct_CC"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3326 $as_echo "$ac_ct_CC" >&6; }
3327 else
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 fi
3331
3332 if test "x$ac_ct_CC" = x; then
3333 CC=""
3334 else
3335 case $cross_compiling:$ac_tool_warned in
3336 yes:)
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3339 ac_tool_warned=yes ;;
3340 esac
3341 CC=$ac_ct_CC
3342 fi
3343 else
3344 CC="$ac_cv_prog_CC"
3345 fi
3346
3347 if test -z "$CC"; then
3348 if test -n "$ac_tool_prefix"; then
3349 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3350 set dummy ${ac_tool_prefix}cc; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if ${ac_cv_prog_CC+:} false; then :
3354 $as_echo_n "(cached) " >&6
3355 else
3356 if test -n "$CC"; then
3357 ac_cv_prog_CC="$CC" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362 IFS=$as_save_IFS
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3366 ac_cv_prog_CC="${ac_tool_prefix}cc"
3367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 break 2
3369 fi
3370 done
3371 done
3372 IFS=$as_save_IFS
3373
3374 fi
3375 fi
3376 CC=$ac_cv_prog_CC
3377 if test -n "$CC"; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3379 $as_echo "$CC" >&6; }
3380 else
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3383 fi
3384
3385
3386 fi
3387 fi
3388 if test -z "$CC"; then
3389 # Extract the first word of "cc", so it can be a program name with args.
3390 set dummy cc; ac_word=$2
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392 $as_echo_n "checking for $ac_word... " >&6; }
3393 if ${ac_cv_prog_CC+:} false; then :
3394 $as_echo_n "(cached) " >&6
3395 else
3396 if test -n "$CC"; then
3397 ac_cv_prog_CC="$CC" # Let the user override the test.
3398 else
3399 ac_prog_rejected=no
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3402 do
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3408 ac_prog_rejected=yes
3409 continue
3410 fi
3411 ac_cv_prog_CC="cc"
3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415 done
3416 done
3417 IFS=$as_save_IFS
3418
3419 if test $ac_prog_rejected = yes; then
3420 # We found a bogon in the path, so make sure we never use it.
3421 set dummy $ac_cv_prog_CC
3422 shift
3423 if test $# != 0; then
3424 # We chose a different compiler from the bogus one.
3425 # However, it has the same basename, so the bogon will be chosen
3426 # first if we set CC to just the basename; use the full file name.
3427 shift
3428 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3429 fi
3430 fi
3431 fi
3432 fi
3433 CC=$ac_cv_prog_CC
3434 if test -n "$CC"; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3436 $as_echo "$CC" >&6; }
3437 else
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3440 fi
3441
3442
3443 fi
3444 if test -z "$CC"; then
3445 if test -n "$ac_tool_prefix"; then
3446 for ac_prog in cl.exe
3447 do
3448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if ${ac_cv_prog_CC+:} false; then :
3453 $as_echo_n "(cached) " >&6
3454 else
3455 if test -n "$CC"; then
3456 ac_cv_prog_CC="$CC" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3460 do
3461 IFS=$as_save_IFS
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 break 2
3468 fi
3469 done
3470 done
3471 IFS=$as_save_IFS
3472
3473 fi
3474 fi
3475 CC=$ac_cv_prog_CC
3476 if test -n "$CC"; then
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3478 $as_echo "$CC" >&6; }
3479 else
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3482 fi
3483
3484
3485 test -n "$CC" && break
3486 done
3487 fi
3488 if test -z "$CC"; then
3489 ac_ct_CC=$CC
3490 for ac_prog in cl.exe
3491 do
3492 # Extract the first word of "$ac_prog", so it can be a program name with args.
3493 set dummy $ac_prog; ac_word=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3497 $as_echo_n "(cached) " >&6
3498 else
3499 if test -n "$ac_ct_CC"; then
3500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3509 ac_cv_prog_ac_ct_CC="$ac_prog"
3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 break 2
3512 fi
3513 done
3514 done
3515 IFS=$as_save_IFS
3516
3517 fi
3518 fi
3519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3520 if test -n "$ac_ct_CC"; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3522 $as_echo "$ac_ct_CC" >&6; }
3523 else
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3526 fi
3527
3528
3529 test -n "$ac_ct_CC" && break
3530 done
3531
3532 if test "x$ac_ct_CC" = x; then
3533 CC=""
3534 else
3535 case $cross_compiling:$ac_tool_warned in
3536 yes:)
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3539 ac_tool_warned=yes ;;
3540 esac
3541 CC=$ac_ct_CC
3542 fi
3543 fi
3544
3545 fi
3546
3547
3548 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550 as_fn_error $? "no acceptable C compiler found in \$PATH
3551 See \`config.log' for more details" "$LINENO" 5; }
3552
3553 # Provide some information about the compiler.
3554 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3555 set X $ac_compile
3556 ac_compiler=$2
3557 for ac_option in --version -v -V -qversion; do
3558 { { ac_try="$ac_compiler $ac_option >&5"
3559 case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562 esac
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3566 ac_status=$?
3567 if test -s conftest.err; then
3568 sed '10a\
3569 ... rest of stderr output deleted ...
3570 10q' conftest.err >conftest.er1
3571 cat conftest.er1 >&5
3572 fi
3573 rm -f conftest.er1 conftest.err
3574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575 test $ac_status = 0; }
3576 done
3577
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580
3581 int
3582 main ()
3583 {
3584
3585 ;
3586 return 0;
3587 }
3588 _ACEOF
3589 ac_clean_files_save=$ac_clean_files
3590 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3591 # Try to create an executable without -o first, disregard a.out.
3592 # It will help us diagnose broken compilers, and finding out an intuition
3593 # of exeext.
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3595 $as_echo_n "checking whether the C compiler works... " >&6; }
3596 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3597
3598 # The possible output files:
3599 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3600
3601 ac_rmfiles=
3602 for ac_file in $ac_files
3603 do
3604 case $ac_file in
3605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3606 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3607 esac
3608 done
3609 rm -f $ac_rmfiles
3610
3611 if { { ac_try="$ac_link_default"
3612 case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615 esac
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_link_default") 2>&5
3619 ac_status=$?
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }; then :
3622 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3623 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3624 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3625 # so that the user can short-circuit this test for compilers unknown to
3626 # Autoconf.
3627 for ac_file in $ac_files ''
3628 do
3629 test -f "$ac_file" || continue
3630 case $ac_file in
3631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3632 ;;
3633 [ab].out )
3634 # We found the default executable, but exeext='' is most
3635 # certainly right.
3636 break;;
3637 *.* )
3638 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3639 then :; else
3640 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3641 fi
3642 # We set ac_cv_exeext here because the later test for it is not
3643 # safe: cross compilers may not add the suffix if given an `-o'
3644 # argument, so we may need to know it at that point already.
3645 # Even if this section looks crufty: it has the advantage of
3646 # actually working.
3647 break;;
3648 * )
3649 break;;
3650 esac
3651 done
3652 test "$ac_cv_exeext" = no && ac_cv_exeext=
3653
3654 else
3655 ac_file=''
3656 fi
3657 if test -z "$ac_file"; then :
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3660 $as_echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3662
3663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 as_fn_error 77 "C compiler cannot create executables
3666 See \`config.log' for more details" "$LINENO" 5; }
3667 else
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3669 $as_echo "yes" >&6; }
3670 fi
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3672 $as_echo_n "checking for C compiler default output file name... " >&6; }
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3674 $as_echo "$ac_file" >&6; }
3675 ac_exeext=$ac_cv_exeext
3676
3677 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3678 ac_clean_files=$ac_clean_files_save
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3680 $as_echo_n "checking for suffix of executables... " >&6; }
3681 if { { ac_try="$ac_link"
3682 case "(($ac_try" in
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3685 esac
3686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3687 $as_echo "$ac_try_echo"; } >&5
3688 (eval "$ac_link") 2>&5
3689 ac_status=$?
3690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3691 test $ac_status = 0; }; then :
3692 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3693 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3694 # work properly (i.e., refer to `conftest.exe'), while it won't with
3695 # `rm'.
3696 for ac_file in conftest.exe conftest conftest.*; do
3697 test -f "$ac_file" || continue
3698 case $ac_file in
3699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3700 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3701 break;;
3702 * ) break;;
3703 esac
3704 done
3705 else
3706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3709 See \`config.log' for more details" "$LINENO" 5; }
3710 fi
3711 rm -f conftest conftest$ac_cv_exeext
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3713 $as_echo "$ac_cv_exeext" >&6; }
3714
3715 rm -f conftest.$ac_ext
3716 EXEEXT=$ac_cv_exeext
3717 ac_exeext=$EXEEXT
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3720 #include <stdio.h>
3721 int
3722 main ()
3723 {
3724 FILE *f = fopen ("conftest.out", "w");
3725 return ferror (f) || fclose (f) != 0;
3726
3727 ;
3728 return 0;
3729 }
3730 _ACEOF
3731 ac_clean_files="$ac_clean_files conftest.out"
3732 # Check that the compiler produces executables we can run. If not, either
3733 # the compiler is broken, or we cross compile.
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3735 $as_echo_n "checking whether we are cross compiling... " >&6; }
3736 if test "$cross_compiling" != yes; then
3737 { { ac_try="$ac_link"
3738 case "(($ac_try" in
3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3741 esac
3742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3743 $as_echo "$ac_try_echo"; } >&5
3744 (eval "$ac_link") 2>&5
3745 ac_status=$?
3746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3747 test $ac_status = 0; }
3748 if { ac_try='./conftest$ac_cv_exeext'
3749 { { case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752 esac
3753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754 $as_echo "$ac_try_echo"; } >&5
3755 (eval "$ac_try") 2>&5
3756 ac_status=$?
3757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758 test $ac_status = 0; }; }; then
3759 cross_compiling=no
3760 else
3761 if test "$cross_compiling" = maybe; then
3762 cross_compiling=yes
3763 else
3764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3766 as_fn_error $? "cannot run C compiled programs.
3767 If you meant to cross compile, use \`--host'.
3768 See \`config.log' for more details" "$LINENO" 5; }
3769 fi
3770 fi
3771 fi
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3773 $as_echo "$cross_compiling" >&6; }
3774
3775 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3776 ac_clean_files=$ac_clean_files_save
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3778 $as_echo_n "checking for suffix of object files... " >&6; }
3779 if ${ac_cv_objext+:} false; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3784
3785 int
3786 main ()
3787 {
3788
3789 ;
3790 return 0;
3791 }
3792 _ACEOF
3793 rm -f conftest.o conftest.obj
3794 if { { ac_try="$ac_compile"
3795 case "(($ac_try" in
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3798 esac
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 $as_echo "$ac_try_echo"; } >&5
3801 (eval "$ac_compile") 2>&5
3802 ac_status=$?
3803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3804 test $ac_status = 0; }; then :
3805 for ac_file in conftest.o conftest.obj conftest.*; do
3806 test -f "$ac_file" || continue;
3807 case $ac_file in
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3809 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3810 break;;
3811 esac
3812 done
3813 else
3814 $as_echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3816
3817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error $? "cannot compute suffix of object files: cannot compile
3820 See \`config.log' for more details" "$LINENO" 5; }
3821 fi
3822 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3823 fi
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3825 $as_echo "$ac_cv_objext" >&6; }
3826 OBJEXT=$ac_cv_objext
3827 ac_objext=$OBJEXT
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3829 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3830 if ${ac_cv_c_compiler_gnu+:} false; then :
3831 $as_echo_n "(cached) " >&6
3832 else
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3835
3836 int
3837 main ()
3838 {
3839 #ifndef __GNUC__
3840 choke me
3841 #endif
3842
3843 ;
3844 return 0;
3845 }
3846 _ACEOF
3847 if ac_fn_c_try_compile "$LINENO"; then :
3848 ac_compiler_gnu=yes
3849 else
3850 ac_compiler_gnu=no
3851 fi
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3854
3855 fi
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3857 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3858 if test $ac_compiler_gnu = yes; then
3859 GCC=yes
3860 else
3861 GCC=
3862 fi
3863 ac_test_CFLAGS=${CFLAGS+set}
3864 ac_save_CFLAGS=$CFLAGS
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3866 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3867 if ${ac_cv_prog_cc_g+:} false; then :
3868 $as_echo_n "(cached) " >&6
3869 else
3870 ac_save_c_werror_flag=$ac_c_werror_flag
3871 ac_c_werror_flag=yes
3872 ac_cv_prog_cc_g=no
3873 CFLAGS="-g"
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3876
3877 int
3878 main ()
3879 {
3880
3881 ;
3882 return 0;
3883 }
3884 _ACEOF
3885 if ac_fn_c_try_compile "$LINENO"; then :
3886 ac_cv_prog_cc_g=yes
3887 else
3888 CFLAGS=""
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3891
3892 int
3893 main ()
3894 {
3895
3896 ;
3897 return 0;
3898 }
3899 _ACEOF
3900 if ac_fn_c_try_compile "$LINENO"; then :
3901
3902 else
3903 ac_c_werror_flag=$ac_save_c_werror_flag
3904 CFLAGS="-g"
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3907
3908 int
3909 main ()
3910 {
3911
3912 ;
3913 return 0;
3914 }
3915 _ACEOF
3916 if ac_fn_c_try_compile "$LINENO"; then :
3917 ac_cv_prog_cc_g=yes
3918 fi
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 fi
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 fi
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 ac_c_werror_flag=$ac_save_c_werror_flag
3925 fi
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3927 $as_echo "$ac_cv_prog_cc_g" >&6; }
3928 if test "$ac_test_CFLAGS" = set; then
3929 CFLAGS=$ac_save_CFLAGS
3930 elif test $ac_cv_prog_cc_g = yes; then
3931 if test "$GCC" = yes; then
3932 CFLAGS="-g -O2"
3933 else
3934 CFLAGS="-g"
3935 fi
3936 else
3937 if test "$GCC" = yes; then
3938 CFLAGS="-O2"
3939 else
3940 CFLAGS=
3941 fi
3942 fi
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3944 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3945 if ${ac_cv_prog_cc_c89+:} false; then :
3946 $as_echo_n "(cached) " >&6
3947 else
3948 ac_cv_prog_cc_c89=no
3949 ac_save_CC=$CC
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3952 #include <stdarg.h>
3953 #include <stdio.h>
3954 struct stat;
3955 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3956 struct buf { int x; };
3957 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3958 static char *e (p, i)
3959 char **p;
3960 int i;
3961 {
3962 return p[i];
3963 }
3964 static char *f (char * (*g) (char **, int), char **p, ...)
3965 {
3966 char *s;
3967 va_list v;
3968 va_start (v,p);
3969 s = g (p, va_arg (v,int));
3970 va_end (v);
3971 return s;
3972 }
3973
3974 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3975 function prototypes and stuff, but not '\xHH' hex character constants.
3976 These don't provoke an error unfortunately, instead are silently treated
3977 as 'x'. The following induces an error, until -std is added to get
3978 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3979 array size at least. It's necessary to write '\x00'==0 to get something
3980 that's true only with -std. */
3981 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3982
3983 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3984 inside strings and character constants. */
3985 #define FOO(x) 'x'
3986 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3987
3988 int test (int i, double x);
3989 struct s1 {int (*f) (int a);};
3990 struct s2 {int (*f) (double a);};
3991 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3992 int argc;
3993 char **argv;
3994 int
3995 main ()
3996 {
3997 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3998 ;
3999 return 0;
4000 }
4001 _ACEOF
4002 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4003 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4004 do
4005 CC="$ac_save_CC $ac_arg"
4006 if ac_fn_c_try_compile "$LINENO"; then :
4007 ac_cv_prog_cc_c89=$ac_arg
4008 fi
4009 rm -f core conftest.err conftest.$ac_objext
4010 test "x$ac_cv_prog_cc_c89" != "xno" && break
4011 done
4012 rm -f conftest.$ac_ext
4013 CC=$ac_save_CC
4014
4015 fi
4016 # AC_CACHE_VAL
4017 case "x$ac_cv_prog_cc_c89" in
4018 x)
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4020 $as_echo "none needed" >&6; } ;;
4021 xno)
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4023 $as_echo "unsupported" >&6; } ;;
4024 *)
4025 CC="$CC $ac_cv_prog_cc_c89"
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4027 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4028 esac
4029 if test "x$ac_cv_prog_cc_c89" != xno; then :
4030
4031 fi
4032
4033 ac_ext=c
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4040 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4041 if ${ac_cv_path_SED+:} false; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4045 for ac_i in 1 2 3 4 5 6 7; do
4046 ac_script="$ac_script$as_nl$ac_script"
4047 done
4048 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4049 { ac_script=; unset ac_script;}
4050 if test -z "$SED"; then
4051 ac_path_SED_found=false
4052 # Loop through the user's path and test for each of PROGNAME-LIST
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4055 do
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_prog in sed gsed; do
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4061 as_fn_executable_p "$ac_path_SED" || continue
4062 # Check for GNU ac_path_SED and select it if it is found.
4063 # Check for GNU $ac_path_SED
4064 case `"$ac_path_SED" --version 2>&1` in
4065 *GNU*)
4066 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4067 *)
4068 ac_count=0
4069 $as_echo_n 0123456789 >"conftest.in"
4070 while :
4071 do
4072 cat "conftest.in" "conftest.in" >"conftest.tmp"
4073 mv "conftest.tmp" "conftest.in"
4074 cp "conftest.in" "conftest.nl"
4075 $as_echo '' >> "conftest.nl"
4076 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4078 as_fn_arith $ac_count + 1 && ac_count=$as_val
4079 if test $ac_count -gt ${ac_path_SED_max-0}; then
4080 # Best one so far, save it but keep looking for a better one
4081 ac_cv_path_SED="$ac_path_SED"
4082 ac_path_SED_max=$ac_count
4083 fi
4084 # 10*(2^10) chars as input seems more than enough
4085 test $ac_count -gt 10 && break
4086 done
4087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4088 esac
4089
4090 $ac_path_SED_found && break 3
4091 done
4092 done
4093 done
4094 IFS=$as_save_IFS
4095 if test -z "$ac_cv_path_SED"; then
4096 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4097 fi
4098 else
4099 ac_cv_path_SED=$SED
4100 fi
4101
4102 fi
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4104 $as_echo "$ac_cv_path_SED" >&6; }
4105 SED="$ac_cv_path_SED"
4106 rm -f conftest.sed
4107
4108 test -z "$SED" && SED=sed
4109 Xsed="$SED -e 1s/^X//"
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4122 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4123 if ${ac_cv_path_GREP+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 if test -z "$GREP"; then
4127 ac_path_GREP_found=false
4128 # Loop through the user's path and test for each of PROGNAME-LIST
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4131 do
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
4134 for ac_prog in grep ggrep; do
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4137 as_fn_executable_p "$ac_path_GREP" || continue
4138 # Check for GNU ac_path_GREP and select it if it is found.
4139 # Check for GNU $ac_path_GREP
4140 case `"$ac_path_GREP" --version 2>&1` in
4141 *GNU*)
4142 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4143 *)
4144 ac_count=0
4145 $as_echo_n 0123456789 >"conftest.in"
4146 while :
4147 do
4148 cat "conftest.in" "conftest.in" >"conftest.tmp"
4149 mv "conftest.tmp" "conftest.in"
4150 cp "conftest.in" "conftest.nl"
4151 $as_echo 'GREP' >> "conftest.nl"
4152 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4154 as_fn_arith $ac_count + 1 && ac_count=$as_val
4155 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4156 # Best one so far, save it but keep looking for a better one
4157 ac_cv_path_GREP="$ac_path_GREP"
4158 ac_path_GREP_max=$ac_count
4159 fi
4160 # 10*(2^10) chars as input seems more than enough
4161 test $ac_count -gt 10 && break
4162 done
4163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4164 esac
4165
4166 $ac_path_GREP_found && break 3
4167 done
4168 done
4169 done
4170 IFS=$as_save_IFS
4171 if test -z "$ac_cv_path_GREP"; then
4172 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4173 fi
4174 else
4175 ac_cv_path_GREP=$GREP
4176 fi
4177
4178 fi
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4180 $as_echo "$ac_cv_path_GREP" >&6; }
4181 GREP="$ac_cv_path_GREP"
4182
4183
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4185 $as_echo_n "checking for egrep... " >&6; }
4186 if ${ac_cv_path_EGREP+:} false; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4190 then ac_cv_path_EGREP="$GREP -E"
4191 else
4192 if test -z "$EGREP"; then
4193 ac_path_EGREP_found=false
4194 # Loop through the user's path and test for each of PROGNAME-LIST
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4197 do
4198 IFS=$as_save_IFS
4199 test -z "$as_dir" && as_dir=.
4200 for ac_prog in egrep; do
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4203 as_fn_executable_p "$ac_path_EGREP" || continue
4204 # Check for GNU ac_path_EGREP and select it if it is found.
4205 # Check for GNU $ac_path_EGREP
4206 case `"$ac_path_EGREP" --version 2>&1` in
4207 *GNU*)
4208 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4209 *)
4210 ac_count=0
4211 $as_echo_n 0123456789 >"conftest.in"
4212 while :
4213 do
4214 cat "conftest.in" "conftest.in" >"conftest.tmp"
4215 mv "conftest.tmp" "conftest.in"
4216 cp "conftest.in" "conftest.nl"
4217 $as_echo 'EGREP' >> "conftest.nl"
4218 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4219 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4220 as_fn_arith $ac_count + 1 && ac_count=$as_val
4221 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4222 # Best one so far, save it but keep looking for a better one
4223 ac_cv_path_EGREP="$ac_path_EGREP"
4224 ac_path_EGREP_max=$ac_count
4225 fi
4226 # 10*(2^10) chars as input seems more than enough
4227 test $ac_count -gt 10 && break
4228 done
4229 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4230 esac
4231
4232 $ac_path_EGREP_found && break 3
4233 done
4234 done
4235 done
4236 IFS=$as_save_IFS
4237 if test -z "$ac_cv_path_EGREP"; then
4238 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4239 fi
4240 else
4241 ac_cv_path_EGREP=$EGREP
4242 fi
4243
4244 fi
4245 fi
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4247 $as_echo "$ac_cv_path_EGREP" >&6; }
4248 EGREP="$ac_cv_path_EGREP"
4249
4250
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4252 $as_echo_n "checking for fgrep... " >&6; }
4253 if ${ac_cv_path_FGREP+:} false; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4257 then ac_cv_path_FGREP="$GREP -F"
4258 else
4259 if test -z "$FGREP"; then
4260 ac_path_FGREP_found=false
4261 # Loop through the user's path and test for each of PROGNAME-LIST
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4264 do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_prog in fgrep; do
4268 for ac_exec_ext in '' $ac_executable_extensions; do
4269 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4270 as_fn_executable_p "$ac_path_FGREP" || continue
4271 # Check for GNU ac_path_FGREP and select it if it is found.
4272 # Check for GNU $ac_path_FGREP
4273 case `"$ac_path_FGREP" --version 2>&1` in
4274 *GNU*)
4275 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4276 *)
4277 ac_count=0
4278 $as_echo_n 0123456789 >"conftest.in"
4279 while :
4280 do
4281 cat "conftest.in" "conftest.in" >"conftest.tmp"
4282 mv "conftest.tmp" "conftest.in"
4283 cp "conftest.in" "conftest.nl"
4284 $as_echo 'FGREP' >> "conftest.nl"
4285 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4287 as_fn_arith $ac_count + 1 && ac_count=$as_val
4288 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4289 # Best one so far, save it but keep looking for a better one
4290 ac_cv_path_FGREP="$ac_path_FGREP"
4291 ac_path_FGREP_max=$ac_count
4292 fi
4293 # 10*(2^10) chars as input seems more than enough
4294 test $ac_count -gt 10 && break
4295 done
4296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4297 esac
4298
4299 $ac_path_FGREP_found && break 3
4300 done
4301 done
4302 done
4303 IFS=$as_save_IFS
4304 if test -z "$ac_cv_path_FGREP"; then
4305 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4306 fi
4307 else
4308 ac_cv_path_FGREP=$FGREP
4309 fi
4310
4311 fi
4312 fi
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4314 $as_echo "$ac_cv_path_FGREP" >&6; }
4315 FGREP="$ac_cv_path_FGREP"
4316
4317
4318 test -z "$GREP" && GREP=grep
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338 # Check whether --with-gnu-ld was given.
4339 if test "${with_gnu_ld+set}" = set; then :
4340 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4341 else
4342 with_gnu_ld=no
4343 fi
4344
4345 ac_prog=ld
4346 if test "$GCC" = yes; then
4347 # Check if gcc -print-prog-name=ld gives a path.
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4349 $as_echo_n "checking for ld used by $CC... " >&6; }
4350 case $host in
4351 *-*-mingw*)
4352 # gcc leaves a trailing carriage return which upsets mingw
4353 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4354 *)
4355 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4356 esac
4357 case $ac_prog in
4358 # Accept absolute paths.
4359 [\\/]* | ?:[\\/]*)
4360 re_direlt='/[^/][^/]*/\.\./'
4361 # Canonicalize the pathname of ld
4362 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4363 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4364 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4365 done
4366 test -z "$LD" && LD="$ac_prog"
4367 ;;
4368 "")
4369 # If it fails, then pretend we aren't using GCC.
4370 ac_prog=ld
4371 ;;
4372 *)
4373 # If it is relative, then search for the first ld in PATH.
4374 with_gnu_ld=unknown
4375 ;;
4376 esac
4377 elif test "$with_gnu_ld" = yes; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4379 $as_echo_n "checking for GNU ld... " >&6; }
4380 else
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4382 $as_echo_n "checking for non-GNU ld... " >&6; }
4383 fi
4384 if ${lt_cv_path_LD+:} false; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 if test -z "$LD"; then
4388 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4389 for ac_dir in $PATH; do
4390 IFS="$lt_save_ifs"
4391 test -z "$ac_dir" && ac_dir=.
4392 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4393 lt_cv_path_LD="$ac_dir/$ac_prog"
4394 # Check to see if the program is GNU ld. I'd rather use --version,
4395 # but apparently some variants of GNU ld only accept -v.
4396 # Break only if it was the GNU/non-GNU ld that we prefer.
4397 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4398 *GNU* | *'with BFD'*)
4399 test "$with_gnu_ld" != no && break
4400 ;;
4401 *)
4402 test "$with_gnu_ld" != yes && break
4403 ;;
4404 esac
4405 fi
4406 done
4407 IFS="$lt_save_ifs"
4408 else
4409 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4410 fi
4411 fi
4412
4413 LD="$lt_cv_path_LD"
4414 if test -n "$LD"; then
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4416 $as_echo "$LD" >&6; }
4417 else
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419 $as_echo "no" >&6; }
4420 fi
4421 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4423 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4424 if ${lt_cv_prog_gnu_ld+:} false; then :
4425 $as_echo_n "(cached) " >&6
4426 else
4427 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4428 case `$LD -v 2>&1 </dev/null` in
4429 *GNU* | *'with BFD'*)
4430 lt_cv_prog_gnu_ld=yes
4431 ;;
4432 *)
4433 lt_cv_prog_gnu_ld=no
4434 ;;
4435 esac
4436 fi
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4438 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4439 with_gnu_ld=$lt_cv_prog_gnu_ld
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4450 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4451 if ${lt_cv_path_NM+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if test -n "$NM"; then
4455 # Let the user override the test.
4456 lt_cv_path_NM="$NM"
4457 else
4458 lt_nm_to_check="${ac_tool_prefix}nm"
4459 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4460 lt_nm_to_check="$lt_nm_to_check nm"
4461 fi
4462 for lt_tmp_nm in $lt_nm_to_check; do
4463 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4464 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4465 IFS="$lt_save_ifs"
4466 test -z "$ac_dir" && ac_dir=.
4467 tmp_nm="$ac_dir/$lt_tmp_nm"
4468 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4469 # Check to see if the nm accepts a BSD-compat flag.
4470 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4471 # nm: unknown option "B" ignored
4472 # Tru64's nm complains that /dev/null is an invalid object file
4473 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4474 */dev/null* | *'Invalid file or object type'*)
4475 lt_cv_path_NM="$tmp_nm -B"
4476 break
4477 ;;
4478 *)
4479 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4480 */dev/null*)
4481 lt_cv_path_NM="$tmp_nm -p"
4482 break
4483 ;;
4484 *)
4485 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4486 continue # so that we can try to find one that supports BSD flags
4487 ;;
4488 esac
4489 ;;
4490 esac
4491 fi
4492 done
4493 IFS="$lt_save_ifs"
4494 done
4495 : ${lt_cv_path_NM=no}
4496 fi
4497 fi
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4499 $as_echo "$lt_cv_path_NM" >&6; }
4500 if test "$lt_cv_path_NM" != "no"; then
4501 NM="$lt_cv_path_NM"
4502 else
4503 # Didn't find any BSD compatible name lister, look for dumpbin.
4504 if test -n "$ac_tool_prefix"; then
4505 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4506 do
4507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if ${ac_cv_prog_DUMPBIN+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -n "$DUMPBIN"; then
4515 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4527 fi
4528 done
4529 done
4530 IFS=$as_save_IFS
4531
4532 fi
4533 fi
4534 DUMPBIN=$ac_cv_prog_DUMPBIN
4535 if test -n "$DUMPBIN"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4537 $as_echo "$DUMPBIN" >&6; }
4538 else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4541 fi
4542
4543
4544 test -n "$DUMPBIN" && break
4545 done
4546 fi
4547 if test -z "$DUMPBIN"; then
4548 ac_ct_DUMPBIN=$DUMPBIN
4549 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4550 do
4551 # Extract the first word of "$ac_prog", so it can be a program name with args.
4552 set dummy $ac_prog; ac_word=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$ac_ct_DUMPBIN"; then
4559 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 fi
4577 fi
4578 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4579 if test -n "$ac_ct_DUMPBIN"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4581 $as_echo "$ac_ct_DUMPBIN" >&6; }
4582 else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4585 fi
4586
4587
4588 test -n "$ac_ct_DUMPBIN" && break
4589 done
4590
4591 if test "x$ac_ct_DUMPBIN" = x; then
4592 DUMPBIN=":"
4593 else
4594 case $cross_compiling:$ac_tool_warned in
4595 yes:)
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4598 ac_tool_warned=yes ;;
4599 esac
4600 DUMPBIN=$ac_ct_DUMPBIN
4601 fi
4602 fi
4603
4604
4605 if test "$DUMPBIN" != ":"; then
4606 NM="$DUMPBIN"
4607 fi
4608 fi
4609 test -z "$NM" && NM=nm
4610
4611
4612
4613
4614
4615
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4617 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4618 if ${lt_cv_nm_interface+:} false; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 lt_cv_nm_interface="BSD nm"
4622 echo "int some_variable = 0;" > conftest.$ac_ext
4623 (eval echo "\"\$as_me:4623: $ac_compile\"" >&5)
4624 (eval "$ac_compile" 2>conftest.err)
4625 cat conftest.err >&5
4626 (eval echo "\"\$as_me:4626: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4627 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4628 cat conftest.err >&5
4629 (eval echo "\"\$as_me:4629: output\"" >&5)
4630 cat conftest.out >&5
4631 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4632 lt_cv_nm_interface="MS dumpbin"
4633 fi
4634 rm -f conftest*
4635 fi
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4637 $as_echo "$lt_cv_nm_interface" >&6; }
4638
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4640 $as_echo_n "checking whether ln -s works... " >&6; }
4641 LN_S=$as_ln_s
4642 if test "$LN_S" = "ln -s"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4644 $as_echo "yes" >&6; }
4645 else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4647 $as_echo "no, using $LN_S" >&6; }
4648 fi
4649
4650 # find the maximum length of command line arguments
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4652 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4653 if ${lt_cv_sys_max_cmd_len+:} false; then :
4654 $as_echo_n "(cached) " >&6
4655 else
4656 i=0
4657 teststring="ABCD"
4658
4659 case $build_os in
4660 msdosdjgpp*)
4661 # On DJGPP, this test can blow up pretty badly due to problems in libc
4662 # (any single argument exceeding 2000 bytes causes a buffer overrun
4663 # during glob expansion). Even if it were fixed, the result of this
4664 # check would be larger than it should be.
4665 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4666 ;;
4667
4668 gnu*)
4669 # Under GNU Hurd, this test is not required because there is
4670 # no limit to the length of command line arguments.
4671 # Libtool will interpret -1 as no limit whatsoever
4672 lt_cv_sys_max_cmd_len=-1;
4673 ;;
4674
4675 cygwin* | mingw* | cegcc*)
4676 # On Win9x/ME, this test blows up -- it succeeds, but takes
4677 # about 5 minutes as the teststring grows exponentially.
4678 # Worse, since 9x/ME are not pre-emptively multitasking,
4679 # you end up with a "frozen" computer, even though with patience
4680 # the test eventually succeeds (with a max line length of 256k).
4681 # Instead, let's just punt: use the minimum linelength reported by
4682 # all of the supported platforms: 8192 (on NT/2K/XP).
4683 lt_cv_sys_max_cmd_len=8192;
4684 ;;
4685
4686 amigaos*)
4687 # On AmigaOS with pdksh, this test takes hours, literally.
4688 # So we just punt and use a minimum line length of 8192.
4689 lt_cv_sys_max_cmd_len=8192;
4690 ;;
4691
4692 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4693 # This has been around since 386BSD, at least. Likely further.
4694 if test -x /sbin/sysctl; then
4695 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4696 elif test -x /usr/sbin/sysctl; then
4697 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4698 else
4699 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4700 fi
4701 # And add a safety zone
4702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4703 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4704 ;;
4705
4706 interix*)
4707 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4708 lt_cv_sys_max_cmd_len=196608
4709 ;;
4710
4711 osf*)
4712 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4713 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4714 # nice to cause kernel panics so lets avoid the loop below.
4715 # First set a reasonable default.
4716 lt_cv_sys_max_cmd_len=16384
4717 #
4718 if test -x /sbin/sysconfig; then
4719 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4720 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4721 esac
4722 fi
4723 ;;
4724 sco3.2v5*)
4725 lt_cv_sys_max_cmd_len=102400
4726 ;;
4727 sysv5* | sco5v6* | sysv4.2uw2*)
4728 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4729 if test -n "$kargmax"; then
4730 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4731 else
4732 lt_cv_sys_max_cmd_len=32768
4733 fi
4734 ;;
4735 *)
4736 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4737 if test -n "$lt_cv_sys_max_cmd_len"; then
4738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4740 else
4741 # Make teststring a little bigger before we do anything with it.
4742 # a 1K string should be a reasonable start.
4743 for i in 1 2 3 4 5 6 7 8 ; do
4744 teststring=$teststring$teststring
4745 done
4746 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4747 # If test is not a shell built-in, we'll probably end up computing a
4748 # maximum length that is only half of the actual maximum length, but
4749 # we can't tell.
4750 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4751 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4752 test $i != 17 # 1/2 MB should be enough
4753 do
4754 i=`expr $i + 1`
4755 teststring=$teststring$teststring
4756 done
4757 # Only check the string length outside the loop.
4758 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4759 teststring=
4760 # Add a significant safety factor because C++ compilers can tack on
4761 # massive amounts of additional arguments before passing them to the
4762 # linker. It appears as though 1/2 is a usable value.
4763 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4764 fi
4765 ;;
4766 esac
4767
4768 fi
4769
4770 if test -n $lt_cv_sys_max_cmd_len ; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4772 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4773 else
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4775 $as_echo "none" >&6; }
4776 fi
4777 max_cmd_len=$lt_cv_sys_max_cmd_len
4778
4779
4780
4781
4782
4783
4784 : ${CP="cp -f"}
4785 : ${MV="mv -f"}
4786 : ${RM="rm -f"}
4787
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4789 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4790 # Try some XSI features
4791 xsi_shell=no
4792 ( _lt_dummy="a/b/c"
4793 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4794 = c,a/b,, \
4795 && eval 'test $(( 1 + 1 )) -eq 2 \
4796 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4797 && xsi_shell=yes
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4799 $as_echo "$xsi_shell" >&6; }
4800
4801
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4803 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4804 lt_shell_append=no
4805 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4806 >/dev/null 2>&1 \
4807 && lt_shell_append=yes
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4809 $as_echo "$lt_shell_append" >&6; }
4810
4811
4812 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4813 lt_unset=unset
4814 else
4815 lt_unset=false
4816 fi
4817
4818
4819
4820
4821
4822 # test EBCDIC or ASCII
4823 case `echo X|tr X '\101'` in
4824 A) # ASCII based system
4825 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4826 lt_SP2NL='tr \040 \012'
4827 lt_NL2SP='tr \015\012 \040\040'
4828 ;;
4829 *) # EBCDIC based system
4830 lt_SP2NL='tr \100 \n'
4831 lt_NL2SP='tr \r\n \100\100'
4832 ;;
4833 esac
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4844 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4845 if ${lt_cv_ld_reload_flag+:} false; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 lt_cv_ld_reload_flag='-r'
4849 fi
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4851 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4852 reload_flag=$lt_cv_ld_reload_flag
4853 case $reload_flag in
4854 "" | " "*) ;;
4855 *) reload_flag=" $reload_flag" ;;
4856 esac
4857 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4858 case $host_os in
4859 darwin*)
4860 if test "$GCC" = yes; then
4861 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4862 else
4863 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4864 fi
4865 ;;
4866 esac
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876 if test -n "$ac_tool_prefix"; then
4877 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4878 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880 $as_echo_n "checking for $ac_word... " >&6; }
4881 if ${ac_cv_prog_OBJDUMP+:} false; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 if test -n "$OBJDUMP"; then
4885 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4886 else
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4889 do
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4894 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 break 2
4897 fi
4898 done
4899 done
4900 IFS=$as_save_IFS
4901
4902 fi
4903 fi
4904 OBJDUMP=$ac_cv_prog_OBJDUMP
4905 if test -n "$OBJDUMP"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4907 $as_echo "$OBJDUMP" >&6; }
4908 else
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4911 fi
4912
4913
4914 fi
4915 if test -z "$ac_cv_prog_OBJDUMP"; then
4916 ac_ct_OBJDUMP=$OBJDUMP
4917 # Extract the first word of "objdump", so it can be a program name with args.
4918 set dummy objdump; ac_word=$2
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920 $as_echo_n "checking for $ac_word... " >&6; }
4921 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 if test -n "$ac_ct_OBJDUMP"; then
4925 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4926 else
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4929 do
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4934 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 break 2
4937 fi
4938 done
4939 done
4940 IFS=$as_save_IFS
4941
4942 fi
4943 fi
4944 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4945 if test -n "$ac_ct_OBJDUMP"; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4947 $as_echo "$ac_ct_OBJDUMP" >&6; }
4948 else
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 $as_echo "no" >&6; }
4951 fi
4952
4953 if test "x$ac_ct_OBJDUMP" = x; then
4954 OBJDUMP="false"
4955 else
4956 case $cross_compiling:$ac_tool_warned in
4957 yes:)
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4960 ac_tool_warned=yes ;;
4961 esac
4962 OBJDUMP=$ac_ct_OBJDUMP
4963 fi
4964 else
4965 OBJDUMP="$ac_cv_prog_OBJDUMP"
4966 fi
4967
4968 test -z "$OBJDUMP" && OBJDUMP=objdump
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4979 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4980 if ${lt_cv_deplibs_check_method+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 lt_cv_file_magic_cmd='$MAGIC_CMD'
4984 lt_cv_file_magic_test_file=
4985 lt_cv_deplibs_check_method='unknown'
4986 # Need to set the preceding variable on all platforms that support
4987 # interlibrary dependencies.
4988 # 'none' -- dependencies not supported.
4989 # `unknown' -- same as none, but documents that we really don't know.
4990 # 'pass_all' -- all dependencies passed with no checks.
4991 # 'test_compile' -- check by making test program.
4992 # 'file_magic [[regex]]' -- check by looking for files in library path
4993 # which responds to the $file_magic_cmd with a given extended regex.
4994 # If you have `file' or equivalent on your system and you're not sure
4995 # whether `pass_all' will *always* work, you probably want this one.
4996
4997 case $host_os in
4998 aix[4-9]*)
4999 lt_cv_deplibs_check_method=pass_all
5000 ;;
5001
5002 beos*)
5003 lt_cv_deplibs_check_method=pass_all
5004 ;;
5005
5006 bsdi[45]*)
5007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5008 lt_cv_file_magic_cmd='/usr/bin/file -L'
5009 lt_cv_file_magic_test_file=/shlib/libc.so
5010 ;;
5011
5012 cygwin*)
5013 # func_win32_libid is a shell function defined in ltmain.sh
5014 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5015 lt_cv_file_magic_cmd='func_win32_libid'
5016 ;;
5017
5018 mingw* | pw32*)
5019 # Base MSYS/MinGW do not provide the 'file' command needed by
5020 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5021 # unless we find 'file', for example because we are cross-compiling.
5022 if ( file / ) >/dev/null 2>&1; then
5023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5024 lt_cv_file_magic_cmd='func_win32_libid'
5025 else
5026 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5027 lt_cv_file_magic_cmd='$OBJDUMP -f'
5028 fi
5029 ;;
5030
5031 cegcc)
5032 # use the weaker test based on 'objdump'. See mingw*.
5033 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5034 lt_cv_file_magic_cmd='$OBJDUMP -f'
5035 ;;
5036
5037 darwin* | rhapsody*)
5038 lt_cv_deplibs_check_method=pass_all
5039 ;;
5040
5041 freebsd* | dragonfly*)
5042 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5043 case $host_cpu in
5044 i*86 )
5045 # Not sure whether the presence of OpenBSD here was a mistake.
5046 # Let's accept both of them until this is cleared up.
5047 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5048 lt_cv_file_magic_cmd=/usr/bin/file
5049 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5050 ;;
5051 esac
5052 else
5053 lt_cv_deplibs_check_method=pass_all
5054 fi
5055 ;;
5056
5057 gnu*)
5058 lt_cv_deplibs_check_method=pass_all
5059 ;;
5060
5061 hpux10.20* | hpux11*)
5062 lt_cv_file_magic_cmd=/usr/bin/file
5063 case $host_cpu in
5064 ia64*)
5065 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5066 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5067 ;;
5068 hppa*64*)
5069 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5070 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5071 ;;
5072 *)
5073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5074 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5075 ;;
5076 esac
5077 ;;
5078
5079 interix[3-9]*)
5080 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5082 ;;
5083
5084 irix5* | irix6* | nonstopux*)
5085 case $LD in
5086 *-32|*"-32 ") libmagic=32-bit;;
5087 *-n32|*"-n32 ") libmagic=N32;;
5088 *-64|*"-64 ") libmagic=64-bit;;
5089 *) libmagic=never-match;;
5090 esac
5091 lt_cv_deplibs_check_method=pass_all
5092 ;;
5093
5094 # This must be Linux ELF.
5095 linux* | k*bsd*-gnu)
5096 lt_cv_deplibs_check_method=pass_all
5097 ;;
5098
5099 netbsd* | netbsdelf*-gnu)
5100 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5102 else
5103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5104 fi
5105 ;;
5106
5107 newos6*)
5108 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5109 lt_cv_file_magic_cmd=/usr/bin/file
5110 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5111 ;;
5112
5113 *nto* | *qnx*)
5114 lt_cv_deplibs_check_method=pass_all
5115 ;;
5116
5117 openbsd*)
5118 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5119 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5120 else
5121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5122 fi
5123 ;;
5124
5125 osf3* | osf4* | osf5*)
5126 lt_cv_deplibs_check_method=pass_all
5127 ;;
5128
5129 rdos*)
5130 lt_cv_deplibs_check_method=pass_all
5131 ;;
5132
5133 solaris*)
5134 lt_cv_deplibs_check_method=pass_all
5135 ;;
5136
5137 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5138 lt_cv_deplibs_check_method=pass_all
5139 ;;
5140
5141 sysv4 | sysv4.3*)
5142 case $host_vendor in
5143 motorola)
5144 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]'
5145 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5146 ;;
5147 ncr)
5148 lt_cv_deplibs_check_method=pass_all
5149 ;;
5150 sequent)
5151 lt_cv_file_magic_cmd='/bin/file'
5152 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5153 ;;
5154 sni)
5155 lt_cv_file_magic_cmd='/bin/file'
5156 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5157 lt_cv_file_magic_test_file=/lib/libc.so
5158 ;;
5159 siemens)
5160 lt_cv_deplibs_check_method=pass_all
5161 ;;
5162 pc)
5163 lt_cv_deplibs_check_method=pass_all
5164 ;;
5165 esac
5166 ;;
5167
5168 tpf*)
5169 lt_cv_deplibs_check_method=pass_all
5170 ;;
5171 esac
5172
5173 fi
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5175 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5176 file_magic_cmd=$lt_cv_file_magic_cmd
5177 deplibs_check_method=$lt_cv_deplibs_check_method
5178 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191 if test -n "$ac_tool_prefix"; then
5192 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5193 set dummy ${ac_tool_prefix}ar; ac_word=$2
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195 $as_echo_n "checking for $ac_word... " >&6; }
5196 if ${ac_cv_prog_AR+:} false; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 if test -n "$AR"; then
5200 ac_cv_prog_AR="$AR" # Let the user override the test.
5201 else
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205 IFS=$as_save_IFS
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209 ac_cv_prog_AR="${ac_tool_prefix}ar"
5210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 break 2
5212 fi
5213 done
5214 done
5215 IFS=$as_save_IFS
5216
5217 fi
5218 fi
5219 AR=$ac_cv_prog_AR
5220 if test -n "$AR"; then
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5222 $as_echo "$AR" >&6; }
5223 else
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225 $as_echo "no" >&6; }
5226 fi
5227
5228
5229 fi
5230 if test -z "$ac_cv_prog_AR"; then
5231 ac_ct_AR=$AR
5232 # Extract the first word of "ar", so it can be a program name with args.
5233 set dummy ar; ac_word=$2
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235 $as_echo_n "checking for $ac_word... " >&6; }
5236 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 if test -n "$ac_ct_AR"; then
5240 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5241 else
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5244 do
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249 ac_cv_prog_ac_ct_AR="ar"
5250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 break 2
5252 fi
5253 done
5254 done
5255 IFS=$as_save_IFS
5256
5257 fi
5258 fi
5259 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5260 if test -n "$ac_ct_AR"; then
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5262 $as_echo "$ac_ct_AR" >&6; }
5263 else
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265 $as_echo "no" >&6; }
5266 fi
5267
5268 if test "x$ac_ct_AR" = x; then
5269 AR="false"
5270 else
5271 case $cross_compiling:$ac_tool_warned in
5272 yes:)
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5275 ac_tool_warned=yes ;;
5276 esac
5277 AR=$ac_ct_AR
5278 fi
5279 else
5280 AR="$ac_cv_prog_AR"
5281 fi
5282
5283 test -z "$AR" && AR=ar
5284 test -z "$AR_FLAGS" && AR_FLAGS=cru
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296 if test -n "$ac_tool_prefix"; then
5297 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5298 set dummy ${ac_tool_prefix}strip; ac_word=$2
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if ${ac_cv_prog_STRIP+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 if test -n "$STRIP"; then
5305 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5309 do
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5317 fi
5318 done
5319 done
5320 IFS=$as_save_IFS
5321
5322 fi
5323 fi
5324 STRIP=$ac_cv_prog_STRIP
5325 if test -n "$STRIP"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5327 $as_echo "$STRIP" >&6; }
5328 else
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5331 fi
5332
5333
5334 fi
5335 if test -z "$ac_cv_prog_STRIP"; then
5336 ac_ct_STRIP=$STRIP
5337 # Extract the first word of "strip", so it can be a program name with args.
5338 set dummy strip; ac_word=$2
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 if test -n "$ac_ct_STRIP"; then
5345 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5346 else
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5349 do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354 ac_cv_prog_ac_ct_STRIP="strip"
5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5357 fi
5358 done
5359 done
5360 IFS=$as_save_IFS
5361
5362 fi
5363 fi
5364 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5365 if test -n "$ac_ct_STRIP"; then
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5367 $as_echo "$ac_ct_STRIP" >&6; }
5368 else
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 $as_echo "no" >&6; }
5371 fi
5372
5373 if test "x$ac_ct_STRIP" = x; then
5374 STRIP=":"
5375 else
5376 case $cross_compiling:$ac_tool_warned in
5377 yes:)
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5380 ac_tool_warned=yes ;;
5381 esac
5382 STRIP=$ac_ct_STRIP
5383 fi
5384 else
5385 STRIP="$ac_cv_prog_STRIP"
5386 fi
5387
5388 test -z "$STRIP" && STRIP=:
5389
5390
5391
5392
5393
5394
5395 if test -n "$ac_tool_prefix"; then
5396 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5397 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_prog_RANLIB+:} false; then :
5401 $as_echo_n "(cached) " >&6
5402 else
5403 if test -n "$RANLIB"; then
5404 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5405 else
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5408 do
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 break 2
5416 fi
5417 done
5418 done
5419 IFS=$as_save_IFS
5420
5421 fi
5422 fi
5423 RANLIB=$ac_cv_prog_RANLIB
5424 if test -n "$RANLIB"; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5426 $as_echo "$RANLIB" >&6; }
5427 else
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5430 fi
5431
5432
5433 fi
5434 if test -z "$ac_cv_prog_RANLIB"; then
5435 ac_ct_RANLIB=$RANLIB
5436 # Extract the first word of "ranlib", so it can be a program name with args.
5437 set dummy ranlib; ac_word=$2
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439 $as_echo_n "checking for $ac_word... " >&6; }
5440 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 if test -n "$ac_ct_RANLIB"; then
5444 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5445 else
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH
5448 do
5449 IFS=$as_save_IFS
5450 test -z "$as_dir" && as_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5453 ac_cv_prog_ac_ct_RANLIB="ranlib"
5454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5455 break 2
5456 fi
5457 done
5458 done
5459 IFS=$as_save_IFS
5460
5461 fi
5462 fi
5463 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5464 if test -n "$ac_ct_RANLIB"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5466 $as_echo "$ac_ct_RANLIB" >&6; }
5467 else
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; }
5470 fi
5471
5472 if test "x$ac_ct_RANLIB" = x; then
5473 RANLIB=":"
5474 else
5475 case $cross_compiling:$ac_tool_warned in
5476 yes:)
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5479 ac_tool_warned=yes ;;
5480 esac
5481 RANLIB=$ac_ct_RANLIB
5482 fi
5483 else
5484 RANLIB="$ac_cv_prog_RANLIB"
5485 fi
5486
5487 test -z "$RANLIB" && RANLIB=:
5488
5489
5490
5491
5492
5493
5494 # Determine commands to create old-style static archives.
5495 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5496 old_postinstall_cmds='chmod 644 $oldlib'
5497 old_postuninstall_cmds=
5498
5499 if test -n "$RANLIB"; then
5500 case $host_os in
5501 openbsd*)
5502 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5503 ;;
5504 *)
5505 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5506 ;;
5507 esac
5508 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5509 fi
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544 # If no C compiler was specified, use CC.
5545 LTCC=${LTCC-"$CC"}
5546
5547 # If no C compiler flags were specified, use CFLAGS.
5548 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5549
5550 # Allow CC to be a program name with arguments.
5551 compiler=$CC
5552
5553
5554 # Check for command to grab the raw symbol name followed by C symbol from nm.
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5556 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5557 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560
5561 # These are sane defaults that work on at least a few old systems.
5562 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5563
5564 # Character class describing NM global symbol codes.
5565 symcode='[BCDEGRST]'
5566
5567 # Regexp to match symbols that can be accessed directly from C.
5568 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5569
5570 # Define system-specific variables.
5571 case $host_os in
5572 aix*)
5573 symcode='[BCDT]'
5574 ;;
5575 cygwin* | mingw* | pw32* | cegcc*)
5576 symcode='[ABCDGISTW]'
5577 ;;
5578 hpux*)
5579 if test "$host_cpu" = ia64; then
5580 symcode='[ABCDEGRST]'
5581 fi
5582 ;;
5583 irix* | nonstopux*)
5584 symcode='[BCDEGRST]'
5585 ;;
5586 osf*)
5587 symcode='[BCDEGQRST]'
5588 ;;
5589 solaris*)
5590 symcode='[BDRT]'
5591 ;;
5592 sco3.2v5*)
5593 symcode='[DT]'
5594 ;;
5595 sysv4.2uw2*)
5596 symcode='[DT]'
5597 ;;
5598 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5599 symcode='[ABDT]'
5600 ;;
5601 sysv4)
5602 symcode='[DFNSTU]'
5603 ;;
5604 esac
5605
5606 # If we're using GNU nm, then use its standard symbol codes.
5607 case `$NM -V 2>&1` in
5608 *GNU* | *'with BFD'*)
5609 symcode='[ABCDGIRSTW]' ;;
5610 esac
5611
5612 # Transform an extracted symbol line into a proper C declaration.
5613 # Some systems (esp. on ia64) link data and code symbols differently,
5614 # so use this general approach.
5615 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5616
5617 # Transform an extracted symbol line into symbol name and symbol address
5618 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5619 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5620
5621 # Handle CRLF in mingw tool chain
5622 opt_cr=
5623 case $build_os in
5624 mingw*)
5625 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5626 ;;
5627 esac
5628
5629 # Try without a prefix underscore, then with it.
5630 for ac_symprfx in "" "_"; do
5631
5632 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5633 symxfrm="\\1 $ac_symprfx\\2 \\2"
5634
5635 # Write the raw and C identifiers.
5636 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5637 # Fake it for dumpbin and say T for any non-static function
5638 # and D for any global variable.
5639 # Also find C++ and __fastcall symbols from MSVC++,
5640 # which start with @ or ?.
5641 lt_cv_sys_global_symbol_pipe="$AWK '"\
5642 " {last_section=section; section=\$ 3};"\
5643 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5644 " \$ 0!~/External *\|/{next};"\
5645 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5646 " {if(hide[section]) next};"\
5647 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5648 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5649 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5650 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5651 " ' prfx=^$ac_symprfx"
5652 else
5653 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5654 fi
5655
5656 # Check to see that the pipe works correctly.
5657 pipe_works=no
5658
5659 rm -f conftest*
5660 cat > conftest.$ac_ext <<_LT_EOF
5661 #ifdef __cplusplus
5662 extern "C" {
5663 #endif
5664 char nm_test_var;
5665 void nm_test_func(void);
5666 void nm_test_func(void){}
5667 #ifdef __cplusplus
5668 }
5669 #endif
5670 int main(){nm_test_var='a';nm_test_func();return(0);}
5671 _LT_EOF
5672
5673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5674 (eval $ac_compile) 2>&5
5675 ac_status=$?
5676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5677 test $ac_status = 0; }; then
5678 # Now try to grab the symbols.
5679 nlist=conftest.nm
5680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5681 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5682 ac_status=$?
5683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5684 test $ac_status = 0; } && test -s "$nlist"; then
5685 # Try sorting and uniquifying the output.
5686 if sort "$nlist" | uniq > "$nlist"T; then
5687 mv -f "$nlist"T "$nlist"
5688 else
5689 rm -f "$nlist"T
5690 fi
5691
5692 # Make sure that we snagged all the symbols we need.
5693 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5694 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5695 cat <<_LT_EOF > conftest.$ac_ext
5696 #ifdef __cplusplus
5697 extern "C" {
5698 #endif
5699
5700 _LT_EOF
5701 # Now generate the symbol file.
5702 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5703
5704 cat <<_LT_EOF >> conftest.$ac_ext
5705
5706 /* The mapping between symbol names and symbols. */
5707 const struct {
5708 const char *name;
5709 void *address;
5710 }
5711 lt__PROGRAM__LTX_preloaded_symbols[] =
5712 {
5713 { "@PROGRAM@", (void *) 0 },
5714 _LT_EOF
5715 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5716 cat <<\_LT_EOF >> conftest.$ac_ext
5717 {0, (void *) 0}
5718 };
5719
5720 /* This works around a problem in FreeBSD linker */
5721 #ifdef FREEBSD_WORKAROUND
5722 static const void *lt_preloaded_setup() {
5723 return lt__PROGRAM__LTX_preloaded_symbols;
5724 }
5725 #endif
5726
5727 #ifdef __cplusplus
5728 }
5729 #endif
5730 _LT_EOF
5731 # Now try linking the two files.
5732 mv conftest.$ac_objext conftstm.$ac_objext
5733 lt_save_LIBS="$LIBS"
5734 lt_save_CFLAGS="$CFLAGS"
5735 LIBS="conftstm.$ac_objext"
5736 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5738 (eval $ac_link) 2>&5
5739 ac_status=$?
5740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5741 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5742 pipe_works=yes
5743 fi
5744 LIBS="$lt_save_LIBS"
5745 CFLAGS="$lt_save_CFLAGS"
5746 else
5747 echo "cannot find nm_test_func in $nlist" >&5
5748 fi
5749 else
5750 echo "cannot find nm_test_var in $nlist" >&5
5751 fi
5752 else
5753 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5754 fi
5755 else
5756 echo "$progname: failed program was:" >&5
5757 cat conftest.$ac_ext >&5
5758 fi
5759 rm -rf conftest* conftst*
5760
5761 # Do not use the global_symbol_pipe unless it works.
5762 if test "$pipe_works" = yes; then
5763 break
5764 else
5765 lt_cv_sys_global_symbol_pipe=
5766 fi
5767 done
5768
5769 fi
5770
5771 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5772 lt_cv_sys_global_symbol_to_cdecl=
5773 fi
5774 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5776 $as_echo "failed" >&6; }
5777 else
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5779 $as_echo "ok" >&6; }
5780 fi
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804 # Check whether --enable-libtool-lock was given.
5805 if test "${enable_libtool_lock+set}" = set; then :
5806 enableval=$enable_libtool_lock;
5807 fi
5808
5809 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5810
5811 # Some flags need to be propagated to the compiler or linker for good
5812 # libtool support.
5813 case $host in
5814 ia64-*-hpux*)
5815 # Find out which ABI we are using.
5816 echo 'int i;' > conftest.$ac_ext
5817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5818 (eval $ac_compile) 2>&5
5819 ac_status=$?
5820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5821 test $ac_status = 0; }; then
5822 case `/usr/bin/file conftest.$ac_objext` in
5823 *ELF-32*)
5824 HPUX_IA64_MODE="32"
5825 ;;
5826 *ELF-64*)
5827 HPUX_IA64_MODE="64"
5828 ;;
5829 esac
5830 fi
5831 rm -rf conftest*
5832 ;;
5833 *-*-irix6*)
5834 # Find out which ABI we are using.
5835 echo '#line 5835 "configure"' > conftest.$ac_ext
5836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5837 (eval $ac_compile) 2>&5
5838 ac_status=$?
5839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5840 test $ac_status = 0; }; then
5841 if test "$lt_cv_prog_gnu_ld" = yes; then
5842 case `/usr/bin/file conftest.$ac_objext` in
5843 *32-bit*)
5844 LD="${LD-ld} -melf32bsmip"
5845 ;;
5846 *N32*)
5847 LD="${LD-ld} -melf32bmipn32"
5848 ;;
5849 *64-bit*)
5850 LD="${LD-ld} -melf64bmip"
5851 ;;
5852 esac
5853 else
5854 case `/usr/bin/file conftest.$ac_objext` in
5855 *32-bit*)
5856 LD="${LD-ld} -32"
5857 ;;
5858 *N32*)
5859 LD="${LD-ld} -n32"
5860 ;;
5861 *64-bit*)
5862 LD="${LD-ld} -64"
5863 ;;
5864 esac
5865 fi
5866 fi
5867 rm -rf conftest*
5868 ;;
5869
5870 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5871 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5872 # Find out which ABI we are using.
5873 echo 'int i;' > conftest.$ac_ext
5874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5875 (eval $ac_compile) 2>&5
5876 ac_status=$?
5877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5878 test $ac_status = 0; }; then
5879 case `/usr/bin/file conftest.o` in
5880 *32-bit*)
5881 case $host in
5882 x86_64-*kfreebsd*-gnu)
5883 LD="${LD-ld} -m elf_i386_fbsd"
5884 ;;
5885 x86_64-*linux*)
5886 LD="${LD-ld} -m elf_i386"
5887 ;;
5888 ppc64-*linux*|powerpc64-*linux*)
5889 LD="${LD-ld} -m elf32ppclinux"
5890 ;;
5891 s390x-*linux*)
5892 LD="${LD-ld} -m elf_s390"
5893 ;;
5894 sparc64-*linux*)
5895 LD="${LD-ld} -m elf32_sparc"
5896 ;;
5897 esac
5898 ;;
5899 *64-bit*)
5900 case $host in
5901 x86_64-*kfreebsd*-gnu)
5902 LD="${LD-ld} -m elf_x86_64_fbsd"
5903 ;;
5904 x86_64-*linux*)
5905 LD="${LD-ld} -m elf_x86_64"
5906 ;;
5907 ppc*-*linux*|powerpc*-*linux*)
5908 LD="${LD-ld} -m elf64ppc"
5909 ;;
5910 s390*-*linux*|s390*-*tpf*)
5911 LD="${LD-ld} -m elf64_s390"
5912 ;;
5913 sparc*-*linux*)
5914 LD="${LD-ld} -m elf64_sparc"
5915 ;;
5916 esac
5917 ;;
5918 esac
5919 fi
5920 rm -rf conftest*
5921 ;;
5922
5923 *-*-sco3.2v5*)
5924 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5925 SAVE_CFLAGS="$CFLAGS"
5926 CFLAGS="$CFLAGS -belf"
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5928 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5929 if ${lt_cv_cc_needs_belf+:} false; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 ac_ext=c
5933 ac_cpp='$CPP $CPPFLAGS'
5934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5937
5938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5939 /* end confdefs.h. */
5940
5941 int
5942 main ()
5943 {
5944
5945 ;
5946 return 0;
5947 }
5948 _ACEOF
5949 if ac_fn_c_try_link "$LINENO"; then :
5950 lt_cv_cc_needs_belf=yes
5951 else
5952 lt_cv_cc_needs_belf=no
5953 fi
5954 rm -f core conftest.err conftest.$ac_objext \
5955 conftest$ac_exeext conftest.$ac_ext
5956 ac_ext=c
5957 ac_cpp='$CPP $CPPFLAGS'
5958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5961
5962 fi
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5964 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5965 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5966 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5967 CFLAGS="$SAVE_CFLAGS"
5968 fi
5969 ;;
5970 sparc*-*solaris*)
5971 # Find out which ABI we are using.
5972 echo 'int i;' > conftest.$ac_ext
5973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5974 (eval $ac_compile) 2>&5
5975 ac_status=$?
5976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5977 test $ac_status = 0; }; then
5978 case `/usr/bin/file conftest.o` in
5979 *64-bit*)
5980 case $lt_cv_prog_gnu_ld in
5981 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5982 *)
5983 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5984 LD="${LD-ld} -64"
5985 fi
5986 ;;
5987 esac
5988 ;;
5989 esac
5990 fi
5991 rm -rf conftest*
5992 ;;
5993 esac
5994
5995 need_locks="$enable_libtool_lock"
5996
5997
5998 case $host_os in
5999 rhapsody* | darwin*)
6000 if test -n "$ac_tool_prefix"; then
6001 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6002 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6004 $as_echo_n "checking for $ac_word... " >&6; }
6005 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 if test -n "$DSYMUTIL"; then
6009 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6010 else
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH
6013 do
6014 IFS=$as_save_IFS
6015 test -z "$as_dir" && as_dir=.
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6018 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6020 break 2
6021 fi
6022 done
6023 done
6024 IFS=$as_save_IFS
6025
6026 fi
6027 fi
6028 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6029 if test -n "$DSYMUTIL"; then
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6031 $as_echo "$DSYMUTIL" >&6; }
6032 else
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6034 $as_echo "no" >&6; }
6035 fi
6036
6037
6038 fi
6039 if test -z "$ac_cv_prog_DSYMUTIL"; then
6040 ac_ct_DSYMUTIL=$DSYMUTIL
6041 # Extract the first word of "dsymutil", so it can be a program name with args.
6042 set dummy dsymutil; ac_word=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 if test -n "$ac_ct_DSYMUTIL"; then
6049 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6053 do
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6058 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 break 2
6061 fi
6062 done
6063 done
6064 IFS=$as_save_IFS
6065
6066 fi
6067 fi
6068 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6069 if test -n "$ac_ct_DSYMUTIL"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6071 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6072 else
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6075 fi
6076
6077 if test "x$ac_ct_DSYMUTIL" = x; then
6078 DSYMUTIL=":"
6079 else
6080 case $cross_compiling:$ac_tool_warned in
6081 yes:)
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6084 ac_tool_warned=yes ;;
6085 esac
6086 DSYMUTIL=$ac_ct_DSYMUTIL
6087 fi
6088 else
6089 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6090 fi
6091
6092 if test -n "$ac_tool_prefix"; then
6093 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6094 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6096 $as_echo_n "checking for $ac_word... " >&6; }
6097 if ${ac_cv_prog_NMEDIT+:} false; then :
6098 $as_echo_n "(cached) " >&6
6099 else
6100 if test -n "$NMEDIT"; then
6101 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6102 else
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6105 do
6106 IFS=$as_save_IFS
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 break 2
6113 fi
6114 done
6115 done
6116 IFS=$as_save_IFS
6117
6118 fi
6119 fi
6120 NMEDIT=$ac_cv_prog_NMEDIT
6121 if test -n "$NMEDIT"; then
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6123 $as_echo "$NMEDIT" >&6; }
6124 else
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6126 $as_echo "no" >&6; }
6127 fi
6128
6129
6130 fi
6131 if test -z "$ac_cv_prog_NMEDIT"; then
6132 ac_ct_NMEDIT=$NMEDIT
6133 # Extract the first word of "nmedit", so it can be a program name with args.
6134 set dummy nmedit; ac_word=$2
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 $as_echo_n "checking for $ac_word... " >&6; }
6137 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6138 $as_echo_n "(cached) " >&6
6139 else
6140 if test -n "$ac_ct_NMEDIT"; then
6141 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6142 else
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH
6145 do
6146 IFS=$as_save_IFS
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 break 2
6153 fi
6154 done
6155 done
6156 IFS=$as_save_IFS
6157
6158 fi
6159 fi
6160 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6161 if test -n "$ac_ct_NMEDIT"; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6163 $as_echo "$ac_ct_NMEDIT" >&6; }
6164 else
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166 $as_echo "no" >&6; }
6167 fi
6168
6169 if test "x$ac_ct_NMEDIT" = x; then
6170 NMEDIT=":"
6171 else
6172 case $cross_compiling:$ac_tool_warned in
6173 yes:)
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6176 ac_tool_warned=yes ;;
6177 esac
6178 NMEDIT=$ac_ct_NMEDIT
6179 fi
6180 else
6181 NMEDIT="$ac_cv_prog_NMEDIT"
6182 fi
6183
6184 if test -n "$ac_tool_prefix"; then
6185 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6186 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188 $as_echo_n "checking for $ac_word... " >&6; }
6189 if ${ac_cv_prog_LIPO+:} false; then :
6190 $as_echo_n "(cached) " >&6
6191 else
6192 if test -n "$LIPO"; then
6193 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6194 else
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH
6197 do
6198 IFS=$as_save_IFS
6199 test -z "$as_dir" && as_dir=.
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6202 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 break 2
6205 fi
6206 done
6207 done
6208 IFS=$as_save_IFS
6209
6210 fi
6211 fi
6212 LIPO=$ac_cv_prog_LIPO
6213 if test -n "$LIPO"; then
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6215 $as_echo "$LIPO" >&6; }
6216 else
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218 $as_echo "no" >&6; }
6219 fi
6220
6221
6222 fi
6223 if test -z "$ac_cv_prog_LIPO"; then
6224 ac_ct_LIPO=$LIPO
6225 # Extract the first word of "lipo", so it can be a program name with args.
6226 set dummy lipo; ac_word=$2
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232 if test -n "$ac_ct_LIPO"; then
6233 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6234 else
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH
6237 do
6238 IFS=$as_save_IFS
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6242 ac_cv_prog_ac_ct_LIPO="lipo"
6243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 break 2
6245 fi
6246 done
6247 done
6248 IFS=$as_save_IFS
6249
6250 fi
6251 fi
6252 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6253 if test -n "$ac_ct_LIPO"; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6255 $as_echo "$ac_ct_LIPO" >&6; }
6256 else
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6259 fi
6260
6261 if test "x$ac_ct_LIPO" = x; then
6262 LIPO=":"
6263 else
6264 case $cross_compiling:$ac_tool_warned in
6265 yes:)
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6268 ac_tool_warned=yes ;;
6269 esac
6270 LIPO=$ac_ct_LIPO
6271 fi
6272 else
6273 LIPO="$ac_cv_prog_LIPO"
6274 fi
6275
6276 if test -n "$ac_tool_prefix"; then
6277 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6278 set dummy ${ac_tool_prefix}otool; ac_word=$2
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 $as_echo_n "checking for $ac_word... " >&6; }
6281 if ${ac_cv_prog_OTOOL+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6284 if test -n "$OTOOL"; then
6285 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6289 do
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6297 fi
6298 done
6299 done
6300 IFS=$as_save_IFS
6301
6302 fi
6303 fi
6304 OTOOL=$ac_cv_prog_OTOOL
6305 if test -n "$OTOOL"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6307 $as_echo "$OTOOL" >&6; }
6308 else
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6311 fi
6312
6313
6314 fi
6315 if test -z "$ac_cv_prog_OTOOL"; then
6316 ac_ct_OTOOL=$OTOOL
6317 # Extract the first word of "otool", so it can be a program name with args.
6318 set dummy otool; ac_word=$2
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6320 $as_echo_n "checking for $ac_word... " >&6; }
6321 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6322 $as_echo_n "(cached) " >&6
6323 else
6324 if test -n "$ac_ct_OTOOL"; then
6325 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6326 else
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH
6329 do
6330 IFS=$as_save_IFS
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334 ac_cv_prog_ac_ct_OTOOL="otool"
6335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 break 2
6337 fi
6338 done
6339 done
6340 IFS=$as_save_IFS
6341
6342 fi
6343 fi
6344 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6345 if test -n "$ac_ct_OTOOL"; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6347 $as_echo "$ac_ct_OTOOL" >&6; }
6348 else
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6351 fi
6352
6353 if test "x$ac_ct_OTOOL" = x; then
6354 OTOOL=":"
6355 else
6356 case $cross_compiling:$ac_tool_warned in
6357 yes:)
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6360 ac_tool_warned=yes ;;
6361 esac
6362 OTOOL=$ac_ct_OTOOL
6363 fi
6364 else
6365 OTOOL="$ac_cv_prog_OTOOL"
6366 fi
6367
6368 if test -n "$ac_tool_prefix"; then
6369 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6370 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if ${ac_cv_prog_OTOOL64+:} false; then :
6374 $as_echo_n "(cached) " >&6
6375 else
6376 if test -n "$OTOOL64"; then
6377 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6378 else
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6381 do
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6386 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 break 2
6389 fi
6390 done
6391 done
6392 IFS=$as_save_IFS
6393
6394 fi
6395 fi
6396 OTOOL64=$ac_cv_prog_OTOOL64
6397 if test -n "$OTOOL64"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6399 $as_echo "$OTOOL64" >&6; }
6400 else
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 $as_echo "no" >&6; }
6403 fi
6404
6405
6406 fi
6407 if test -z "$ac_cv_prog_OTOOL64"; then
6408 ac_ct_OTOOL64=$OTOOL64
6409 # Extract the first word of "otool64", so it can be a program name with args.
6410 set dummy otool64; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 if test -n "$ac_ct_OTOOL64"; then
6417 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6418 else
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 for as_dir in $PATH
6421 do
6422 IFS=$as_save_IFS
6423 test -z "$as_dir" && as_dir=.
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6426 ac_cv_prog_ac_ct_OTOOL64="otool64"
6427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 break 2
6429 fi
6430 done
6431 done
6432 IFS=$as_save_IFS
6433
6434 fi
6435 fi
6436 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6437 if test -n "$ac_ct_OTOOL64"; then
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6439 $as_echo "$ac_ct_OTOOL64" >&6; }
6440 else
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 $as_echo "no" >&6; }
6443 fi
6444
6445 if test "x$ac_ct_OTOOL64" = x; then
6446 OTOOL64=":"
6447 else
6448 case $cross_compiling:$ac_tool_warned in
6449 yes:)
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6452 ac_tool_warned=yes ;;
6453 esac
6454 OTOOL64=$ac_ct_OTOOL64
6455 fi
6456 else
6457 OTOOL64="$ac_cv_prog_OTOOL64"
6458 fi
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6487 $as_echo_n "checking for -single_module linker flag... " >&6; }
6488 if ${lt_cv_apple_cc_single_mod+:} false; then :
6489 $as_echo_n "(cached) " >&6
6490 else
6491 lt_cv_apple_cc_single_mod=no
6492 if test -z "${LT_MULTI_MODULE}"; then
6493 # By default we will add the -single_module flag. You can override
6494 # by either setting the environment variable LT_MULTI_MODULE
6495 # non-empty at configure time, or by adding -multi_module to the
6496 # link flags.
6497 rm -rf libconftest.dylib*
6498 echo "int foo(void){return 1;}" > conftest.c
6499 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6500 -dynamiclib -Wl,-single_module conftest.c" >&5
6501 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6502 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6503 _lt_result=$?
6504 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6505 lt_cv_apple_cc_single_mod=yes
6506 else
6507 cat conftest.err >&5
6508 fi
6509 rm -rf libconftest.dylib*
6510 rm -f conftest.*
6511 fi
6512 fi
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6514 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6516 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6517 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520 lt_cv_ld_exported_symbols_list=no
6521 save_LDFLAGS=$LDFLAGS
6522 echo "_main" > conftest.sym
6523 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6526
6527 int
6528 main ()
6529 {
6530
6531 ;
6532 return 0;
6533 }
6534 _ACEOF
6535 if ac_fn_c_try_link "$LINENO"; then :
6536 lt_cv_ld_exported_symbols_list=yes
6537 else
6538 lt_cv_ld_exported_symbols_list=no
6539 fi
6540 rm -f core conftest.err conftest.$ac_objext \
6541 conftest$ac_exeext conftest.$ac_ext
6542 LDFLAGS="$save_LDFLAGS"
6543
6544 fi
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6546 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6547 case $host_os in
6548 rhapsody* | darwin1.[012])
6549 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6550 darwin1.*)
6551 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6552 darwin*) # darwin 5.x on
6553 # if running on 10.5 or later, the deployment target defaults
6554 # to the OS version, if on x86, and 10.4, the deployment
6555 # target defaults to 10.4. Don't you love it?
6556 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6557 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6558 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6559 10.[012]*)
6560 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6561 10.*)
6562 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6563 esac
6564 ;;
6565 esac
6566 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6567 _lt_dar_single_mod='$single_module'
6568 fi
6569 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6570 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6571 else
6572 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6573 fi
6574 if test "$DSYMUTIL" != ":"; then
6575 _lt_dsymutil='~$DSYMUTIL $lib || :'
6576 else
6577 _lt_dsymutil=
6578 fi
6579 ;;
6580 esac
6581
6582 ac_ext=c
6583 ac_cpp='$CPP $CPPFLAGS'
6584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6588 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6589 # On Suns, sometimes $CPP names a directory.
6590 if test -n "$CPP" && test -d "$CPP"; then
6591 CPP=
6592 fi
6593 if test -z "$CPP"; then
6594 if ${ac_cv_prog_CPP+:} false; then :
6595 $as_echo_n "(cached) " >&6
6596 else
6597 # Double quotes because CPP needs to be expanded
6598 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6599 do
6600 ac_preproc_ok=false
6601 for ac_c_preproc_warn_flag in '' yes
6602 do
6603 # Use a header file that comes with gcc, so configuring glibc
6604 # with a fresh cross-compiler works.
6605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6606 # <limits.h> exists even on freestanding compilers.
6607 # On the NeXT, cc -E runs the code through the compiler's parser,
6608 # not just through cpp. "Syntax error" is here to catch this case.
6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610 /* end confdefs.h. */
6611 #ifdef __STDC__
6612 # include <limits.h>
6613 #else
6614 # include <assert.h>
6615 #endif
6616 Syntax error
6617 _ACEOF
6618 if ac_fn_c_try_cpp "$LINENO"; then :
6619
6620 else
6621 # Broken: fails on valid input.
6622 continue
6623 fi
6624 rm -f conftest.err conftest.i conftest.$ac_ext
6625
6626 # OK, works on sane cases. Now check whether nonexistent headers
6627 # can be detected and how.
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6630 #include <ac_nonexistent.h>
6631 _ACEOF
6632 if ac_fn_c_try_cpp "$LINENO"; then :
6633 # Broken: success on invalid input.
6634 continue
6635 else
6636 # Passes both tests.
6637 ac_preproc_ok=:
6638 break
6639 fi
6640 rm -f conftest.err conftest.i conftest.$ac_ext
6641
6642 done
6643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6644 rm -f conftest.i conftest.err conftest.$ac_ext
6645 if $ac_preproc_ok; then :
6646 break
6647 fi
6648
6649 done
6650 ac_cv_prog_CPP=$CPP
6651
6652 fi
6653 CPP=$ac_cv_prog_CPP
6654 else
6655 ac_cv_prog_CPP=$CPP
6656 fi
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6658 $as_echo "$CPP" >&6; }
6659 ac_preproc_ok=false
6660 for ac_c_preproc_warn_flag in '' yes
6661 do
6662 # Use a header file that comes with gcc, so configuring glibc
6663 # with a fresh cross-compiler works.
6664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6665 # <limits.h> exists even on freestanding compilers.
6666 # On the NeXT, cc -E runs the code through the compiler's parser,
6667 # not just through cpp. "Syntax error" is here to catch this case.
6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h. */
6670 #ifdef __STDC__
6671 # include <limits.h>
6672 #else
6673 # include <assert.h>
6674 #endif
6675 Syntax error
6676 _ACEOF
6677 if ac_fn_c_try_cpp "$LINENO"; then :
6678
6679 else
6680 # Broken: fails on valid input.
6681 continue
6682 fi
6683 rm -f conftest.err conftest.i conftest.$ac_ext
6684
6685 # OK, works on sane cases. Now check whether nonexistent headers
6686 # can be detected and how.
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6689 #include <ac_nonexistent.h>
6690 _ACEOF
6691 if ac_fn_c_try_cpp "$LINENO"; then :
6692 # Broken: success on invalid input.
6693 continue
6694 else
6695 # Passes both tests.
6696 ac_preproc_ok=:
6697 break
6698 fi
6699 rm -f conftest.err conftest.i conftest.$ac_ext
6700
6701 done
6702 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6703 rm -f conftest.i conftest.err conftest.$ac_ext
6704 if $ac_preproc_ok; then :
6705
6706 else
6707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6709 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6710 See \`config.log' for more details" "$LINENO" 5; }
6711 fi
6712
6713 ac_ext=c
6714 ac_cpp='$CPP $CPPFLAGS'
6715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6718
6719
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6721 $as_echo_n "checking for ANSI C header files... " >&6; }
6722 if ${ac_cv_header_stdc+:} false; then :
6723 $as_echo_n "(cached) " >&6
6724 else
6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726 /* end confdefs.h. */
6727 #include <stdlib.h>
6728 #include <stdarg.h>
6729 #include <string.h>
6730 #include <float.h>
6731
6732 int
6733 main ()
6734 {
6735
6736 ;
6737 return 0;
6738 }
6739 _ACEOF
6740 if ac_fn_c_try_compile "$LINENO"; then :
6741 ac_cv_header_stdc=yes
6742 else
6743 ac_cv_header_stdc=no
6744 fi
6745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746
6747 if test $ac_cv_header_stdc = yes; then
6748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 #include <string.h>
6752
6753 _ACEOF
6754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6755 $EGREP "memchr" >/dev/null 2>&1; then :
6756
6757 else
6758 ac_cv_header_stdc=no
6759 fi
6760 rm -f conftest*
6761
6762 fi
6763
6764 if test $ac_cv_header_stdc = yes; then
6765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6768 #include <stdlib.h>
6769
6770 _ACEOF
6771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6772 $EGREP "free" >/dev/null 2>&1; then :
6773
6774 else
6775 ac_cv_header_stdc=no
6776 fi
6777 rm -f conftest*
6778
6779 fi
6780
6781 if test $ac_cv_header_stdc = yes; then
6782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6783 if test "$cross_compiling" = yes; then :
6784 :
6785 else
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6788 #include <ctype.h>
6789 #include <stdlib.h>
6790 #if ((' ' & 0x0FF) == 0x020)
6791 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6792 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6793 #else
6794 # define ISLOWER(c) \
6795 (('a' <= (c) && (c) <= 'i') \
6796 || ('j' <= (c) && (c) <= 'r') \
6797 || ('s' <= (c) && (c) <= 'z'))
6798 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6799 #endif
6800
6801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6802 int
6803 main ()
6804 {
6805 int i;
6806 for (i = 0; i < 256; i++)
6807 if (XOR (islower (i), ISLOWER (i))
6808 || toupper (i) != TOUPPER (i))
6809 return 2;
6810 return 0;
6811 }
6812 _ACEOF
6813 if ac_fn_c_try_run "$LINENO"; then :
6814
6815 else
6816 ac_cv_header_stdc=no
6817 fi
6818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6819 conftest.$ac_objext conftest.beam conftest.$ac_ext
6820 fi
6821
6822 fi
6823 fi
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6825 $as_echo "$ac_cv_header_stdc" >&6; }
6826 if test $ac_cv_header_stdc = yes; then
6827
6828 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6829
6830 fi
6831
6832 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6833 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6834 inttypes.h stdint.h unistd.h
6835 do :
6836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6837 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6838 "
6839 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6840 cat >>confdefs.h <<_ACEOF
6841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6842 _ACEOF
6843
6844 fi
6845
6846 done
6847
6848
6849 for ac_header in dlfcn.h
6850 do :
6851 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6852 "
6853 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6854 cat >>confdefs.h <<_ACEOF
6855 #define HAVE_DLFCN_H 1
6856 _ACEOF
6857
6858 fi
6859
6860 done
6861
6862
6863
6864 # Set options
6865 enable_dlopen=yes
6866
6867
6868
6869
6870 enable_win32_dll=no
6871
6872
6873 # Check whether --enable-shared was given.
6874 if test "${enable_shared+set}" = set; then :
6875 enableval=$enable_shared; p=${PACKAGE-default}
6876 case $enableval in
6877 yes) enable_shared=yes ;;
6878 no) enable_shared=no ;;
6879 *)
6880 enable_shared=no
6881 # Look at the argument we got. We use all the common list separators.
6882 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6883 for pkg in $enableval; do
6884 IFS="$lt_save_ifs"
6885 if test "X$pkg" = "X$p"; then
6886 enable_shared=yes
6887 fi
6888 done
6889 IFS="$lt_save_ifs"
6890 ;;
6891 esac
6892 else
6893 enable_shared=yes
6894 fi
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904 # Check whether --enable-static was given.
6905 if test "${enable_static+set}" = set; then :
6906 enableval=$enable_static; p=${PACKAGE-default}
6907 case $enableval in
6908 yes) enable_static=yes ;;
6909 no) enable_static=no ;;
6910 *)
6911 enable_static=no
6912 # Look at the argument we got. We use all the common list separators.
6913 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6914 for pkg in $enableval; do
6915 IFS="$lt_save_ifs"
6916 if test "X$pkg" = "X$p"; then
6917 enable_static=yes
6918 fi
6919 done
6920 IFS="$lt_save_ifs"
6921 ;;
6922 esac
6923 else
6924 enable_static=yes
6925 fi
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936 # Check whether --with-pic was given.
6937 if test "${with_pic+set}" = set; then :
6938 withval=$with_pic; pic_mode="$withval"
6939 else
6940 pic_mode=default
6941 fi
6942
6943
6944 test -z "$pic_mode" && pic_mode=default
6945
6946
6947
6948
6949
6950
6951
6952 # Check whether --enable-fast-install was given.
6953 if test "${enable_fast_install+set}" = set; then :
6954 enableval=$enable_fast_install; p=${PACKAGE-default}
6955 case $enableval in
6956 yes) enable_fast_install=yes ;;
6957 no) enable_fast_install=no ;;
6958 *)
6959 enable_fast_install=no
6960 # Look at the argument we got. We use all the common list separators.
6961 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6962 for pkg in $enableval; do
6963 IFS="$lt_save_ifs"
6964 if test "X$pkg" = "X$p"; then
6965 enable_fast_install=yes
6966 fi
6967 done
6968 IFS="$lt_save_ifs"
6969 ;;
6970 esac
6971 else
6972 enable_fast_install=yes
6973 fi
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985 # This can be used to rebuild libtool when needed
6986 LIBTOOL_DEPS="$ltmain"
6987
6988 # Always use our own libtool.
6989 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015 test -z "$LN_S" && LN_S="ln -s"
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030 if test -n "${ZSH_VERSION+set}" ; then
7031 setopt NO_GLOB_SUBST
7032 fi
7033
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7035 $as_echo_n "checking for objdir... " >&6; }
7036 if ${lt_cv_objdir+:} false; then :
7037 $as_echo_n "(cached) " >&6
7038 else
7039 rm -f .libs 2>/dev/null
7040 mkdir .libs 2>/dev/null
7041 if test -d .libs; then
7042 lt_cv_objdir=.libs
7043 else
7044 # MS-DOS does not allow filenames that begin with a dot.
7045 lt_cv_objdir=_libs
7046 fi
7047 rmdir .libs 2>/dev/null
7048 fi
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7050 $as_echo "$lt_cv_objdir" >&6; }
7051 objdir=$lt_cv_objdir
7052
7053
7054
7055
7056
7057 cat >>confdefs.h <<_ACEOF
7058 #define LT_OBJDIR "$lt_cv_objdir/"
7059 _ACEOF
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077 case $host_os in
7078 aix3*)
7079 # AIX sometimes has problems with the GCC collect2 program. For some
7080 # reason, if we set the COLLECT_NAMES environment variable, the problems
7081 # vanish in a puff of smoke.
7082 if test "X${COLLECT_NAMES+set}" != Xset; then
7083 COLLECT_NAMES=
7084 export COLLECT_NAMES
7085 fi
7086 ;;
7087 esac
7088
7089 # Sed substitution that helps us do robust quoting. It backslashifies
7090 # metacharacters that are still active within double-quoted strings.
7091 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7092
7093 # Same as above, but do not quote variable references.
7094 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7095
7096 # Sed substitution to delay expansion of an escaped shell variable in a
7097 # double_quote_subst'ed string.
7098 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7099
7100 # Sed substitution to delay expansion of an escaped single quote.
7101 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7102
7103 # Sed substitution to avoid accidental globbing in evaled expressions
7104 no_glob_subst='s/\*/\\\*/g'
7105
7106 # Global variables:
7107 ofile=libtool
7108 can_build_shared=yes
7109
7110 # All known linkers require a `.a' archive for static linking (except MSVC,
7111 # which needs '.lib').
7112 libext=a
7113
7114 with_gnu_ld="$lt_cv_prog_gnu_ld"
7115
7116 old_CC="$CC"
7117 old_CFLAGS="$CFLAGS"
7118
7119 # Set sane defaults for various variables
7120 test -z "$CC" && CC=cc
7121 test -z "$LTCC" && LTCC=$CC
7122 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7123 test -z "$LD" && LD=ld
7124 test -z "$ac_objext" && ac_objext=o
7125
7126 for cc_temp in $compiler""; do
7127 case $cc_temp in
7128 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7129 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7130 \-*) ;;
7131 *) break;;
7132 esac
7133 done
7134 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7135
7136
7137 # Only perform the check for file, if the check method requires it
7138 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7139 case $deplibs_check_method in
7140 file_magic*)
7141 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7143 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7144 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7145 $as_echo_n "(cached) " >&6
7146 else
7147 case $MAGIC_CMD in
7148 [\\/*] | ?:[\\/]*)
7149 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7150 ;;
7151 *)
7152 lt_save_MAGIC_CMD="$MAGIC_CMD"
7153 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7154 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7155 for ac_dir in $ac_dummy; do
7156 IFS="$lt_save_ifs"
7157 test -z "$ac_dir" && ac_dir=.
7158 if test -f $ac_dir/${ac_tool_prefix}file; then
7159 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7160 if test -n "$file_magic_test_file"; then
7161 case $deplibs_check_method in
7162 "file_magic "*)
7163 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7164 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7165 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7166 $EGREP "$file_magic_regex" > /dev/null; then
7167 :
7168 else
7169 cat <<_LT_EOF 1>&2
7170
7171 *** Warning: the command libtool uses to detect shared libraries,
7172 *** $file_magic_cmd, produces output that libtool cannot recognize.
7173 *** The result is that libtool may fail to recognize shared libraries
7174 *** as such. This will affect the creation of libtool libraries that
7175 *** depend on shared libraries, but programs linked with such libtool
7176 *** libraries will work regardless of this problem. Nevertheless, you
7177 *** may want to report the problem to your system manager and/or to
7178 *** [email protected]
7179
7180 _LT_EOF
7181 fi ;;
7182 esac
7183 fi
7184 break
7185 fi
7186 done
7187 IFS="$lt_save_ifs"
7188 MAGIC_CMD="$lt_save_MAGIC_CMD"
7189 ;;
7190 esac
7191 fi
7192
7193 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7194 if test -n "$MAGIC_CMD"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7196 $as_echo "$MAGIC_CMD" >&6; }
7197 else
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7201
7202
7203
7204
7205
7206 if test -z "$lt_cv_path_MAGIC_CMD"; then
7207 if test -n "$ac_tool_prefix"; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7209 $as_echo_n "checking for file... " >&6; }
7210 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 case $MAGIC_CMD in
7214 [\\/*] | ?:[\\/]*)
7215 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7216 ;;
7217 *)
7218 lt_save_MAGIC_CMD="$MAGIC_CMD"
7219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7220 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7221 for ac_dir in $ac_dummy; do
7222 IFS="$lt_save_ifs"
7223 test -z "$ac_dir" && ac_dir=.
7224 if test -f $ac_dir/file; then
7225 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7226 if test -n "$file_magic_test_file"; then
7227 case $deplibs_check_method in
7228 "file_magic "*)
7229 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7231 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7232 $EGREP "$file_magic_regex" > /dev/null; then
7233 :
7234 else
7235 cat <<_LT_EOF 1>&2
7236
7237 *** Warning: the command libtool uses to detect shared libraries,
7238 *** $file_magic_cmd, produces output that libtool cannot recognize.
7239 *** The result is that libtool may fail to recognize shared libraries
7240 *** as such. This will affect the creation of libtool libraries that
7241 *** depend on shared libraries, but programs linked with such libtool
7242 *** libraries will work regardless of this problem. Nevertheless, you
7243 *** may want to report the problem to your system manager and/or to
7244 *** [email protected]
7245
7246 _LT_EOF
7247 fi ;;
7248 esac
7249 fi
7250 break
7251 fi
7252 done
7253 IFS="$lt_save_ifs"
7254 MAGIC_CMD="$lt_save_MAGIC_CMD"
7255 ;;
7256 esac
7257 fi
7258
7259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7260 if test -n "$MAGIC_CMD"; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7262 $as_echo "$MAGIC_CMD" >&6; }
7263 else
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265 $as_echo "no" >&6; }
7266 fi
7267
7268
7269 else
7270 MAGIC_CMD=:
7271 fi
7272 fi
7273
7274 fi
7275 ;;
7276 esac
7277
7278 # Use C for the default configuration in the libtool script
7279
7280 lt_save_CC="$CC"
7281 ac_ext=c
7282 ac_cpp='$CPP $CPPFLAGS'
7283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7286
7287
7288 # Source file extension for C test sources.
7289 ac_ext=c
7290
7291 # Object file extension for compiled C test sources.
7292 objext=o
7293 objext=$objext
7294
7295 # Code to be used in simple compile tests
7296 lt_simple_compile_test_code="int some_variable = 0;"
7297
7298 # Code to be used in simple link tests
7299 lt_simple_link_test_code='int main(){return(0);}'
7300
7301
7302
7303
7304
7305
7306
7307 # If no C compiler was specified, use CC.
7308 LTCC=${LTCC-"$CC"}
7309
7310 # If no C compiler flags were specified, use CFLAGS.
7311 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7312
7313 # Allow CC to be a program name with arguments.
7314 compiler=$CC
7315
7316 # Save the default compiler, since it gets overwritten when the other
7317 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7318 compiler_DEFAULT=$CC
7319
7320 # save warnings/boilerplate of simple test code
7321 ac_outfile=conftest.$ac_objext
7322 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7323 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7324 _lt_compiler_boilerplate=`cat conftest.err`
7325 $RM conftest*
7326
7327 ac_outfile=conftest.$ac_objext
7328 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7329 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7330 _lt_linker_boilerplate=`cat conftest.err`
7331 $RM -r conftest*
7332
7333
7334 ## CAVEAT EMPTOR:
7335 ## There is no encapsulation within the following macros, do not change
7336 ## the running order or otherwise move them around unless you know exactly
7337 ## what you are doing...
7338 if test -n "$compiler"; then
7339
7340 lt_prog_compiler_no_builtin_flag=
7341
7342 if test "$GCC" = yes; then
7343 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7344
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7346 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7347 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 lt_cv_prog_compiler_rtti_exceptions=no
7351 ac_outfile=conftest.$ac_objext
7352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7353 lt_compiler_flag="-fno-rtti -fno-exceptions"
7354 # Insert the option either (1) after the last *FLAGS variable, or
7355 # (2) before a word containing "conftest.", or (3) at the end.
7356 # Note that $ac_compile itself does not contain backslashes and begins
7357 # with a dollar sign (not a hyphen), so the echo should work correctly.
7358 # The option is referenced via a variable to avoid confusing sed.
7359 lt_compile=`echo "$ac_compile" | $SED \
7360 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7362 -e 's:$: $lt_compiler_flag:'`
7363 (eval echo "\"\$as_me:7363: $lt_compile\"" >&5)
7364 (eval "$lt_compile" 2>conftest.err)
7365 ac_status=$?
7366 cat conftest.err >&5
7367 echo "$as_me:7367: \$? = $ac_status" >&5
7368 if (exit $ac_status) && test -s "$ac_outfile"; then
7369 # The compiler can only warn and ignore the option if not recognized
7370 # So say no if there are warnings other than the usual output.
7371 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7372 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7373 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7374 lt_cv_prog_compiler_rtti_exceptions=yes
7375 fi
7376 fi
7377 $RM conftest*
7378
7379 fi
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7381 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7382
7383 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7384 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7385 else
7386 :
7387 fi
7388
7389 fi
7390
7391
7392
7393
7394
7395
7396 lt_prog_compiler_wl=
7397 lt_prog_compiler_pic=
7398 lt_prog_compiler_static=
7399
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7401 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7402
7403 if test "$GCC" = yes; then
7404 lt_prog_compiler_wl='-Wl,'
7405 lt_prog_compiler_static='-static'
7406
7407 case $host_os in
7408 aix*)
7409 # All AIX code is PIC.
7410 if test "$host_cpu" = ia64; then
7411 # AIX 5 now supports IA64 processor
7412 lt_prog_compiler_static='-Bstatic'
7413 fi
7414 ;;
7415
7416 amigaos*)
7417 case $host_cpu in
7418 powerpc)
7419 # see comment about AmigaOS4 .so support
7420 lt_prog_compiler_pic='-fPIC'
7421 ;;
7422 m68k)
7423 # FIXME: we need at least 68020 code to build shared libraries, but
7424 # adding the `-m68020' flag to GCC prevents building anything better,
7425 # like `-m68040'.
7426 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7427 ;;
7428 esac
7429 ;;
7430
7431 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7432 # PIC is the default for these OSes.
7433 ;;
7434
7435 mingw* | cygwin* | pw32* | os2* | cegcc*)
7436 # This hack is so that the source file can tell whether it is being
7437 # built for inclusion in a dll (and should export symbols for example).
7438 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7439 # (--disable-auto-import) libraries
7440 lt_prog_compiler_pic='-DDLL_EXPORT'
7441 ;;
7442
7443 darwin* | rhapsody*)
7444 # PIC is the default on this platform
7445 # Common symbols not allowed in MH_DYLIB files
7446 lt_prog_compiler_pic='-fno-common'
7447 ;;
7448
7449 hpux*)
7450 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7451 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7452 # sets the default TLS model and affects inlining.
7453 case $host_cpu in
7454 hppa*64*)
7455 # +Z the default
7456 ;;
7457 *)
7458 lt_prog_compiler_pic='-fPIC'
7459 ;;
7460 esac
7461 ;;
7462
7463 interix[3-9]*)
7464 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7465 # Instead, we relocate shared libraries at runtime.
7466 ;;
7467
7468 msdosdjgpp*)
7469 # Just because we use GCC doesn't mean we suddenly get shared libraries
7470 # on systems that don't support them.
7471 lt_prog_compiler_can_build_shared=no
7472 enable_shared=no
7473 ;;
7474
7475 *nto* | *qnx*)
7476 # QNX uses GNU C++, but need to define -shared option too, otherwise
7477 # it will coredump.
7478 lt_prog_compiler_pic='-fPIC -shared'
7479 ;;
7480
7481 sysv4*MP*)
7482 if test -d /usr/nec; then
7483 lt_prog_compiler_pic=-Kconform_pic
7484 fi
7485 ;;
7486
7487 *)
7488 lt_prog_compiler_pic='-fPIC'
7489 ;;
7490 esac
7491 else
7492 # PORTME Check for flag to pass linker flags through the system compiler.
7493 case $host_os in
7494 aix*)
7495 lt_prog_compiler_wl='-Wl,'
7496 if test "$host_cpu" = ia64; then
7497 # AIX 5 now supports IA64 processor
7498 lt_prog_compiler_static='-Bstatic'
7499 else
7500 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7501 fi
7502 ;;
7503
7504 mingw* | cygwin* | pw32* | os2* | cegcc*)
7505 # This hack is so that the source file can tell whether it is being
7506 # built for inclusion in a dll (and should export symbols for example).
7507 lt_prog_compiler_pic='-DDLL_EXPORT'
7508 ;;
7509
7510 hpux9* | hpux10* | hpux11*)
7511 lt_prog_compiler_wl='-Wl,'
7512 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7513 # not for PA HP-UX.
7514 case $host_cpu in
7515 hppa*64*|ia64*)
7516 # +Z the default
7517 ;;
7518 *)
7519 lt_prog_compiler_pic='+Z'
7520 ;;
7521 esac
7522 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7523 lt_prog_compiler_static='${wl}-a ${wl}archive'
7524 ;;
7525
7526 irix5* | irix6* | nonstopux*)
7527 lt_prog_compiler_wl='-Wl,'
7528 # PIC (with -KPIC) is the default.
7529 lt_prog_compiler_static='-non_shared'
7530 ;;
7531
7532 linux* | k*bsd*-gnu)
7533 case $cc_basename in
7534 # old Intel for x86_64 which still supported -KPIC.
7535 ecc*)
7536 lt_prog_compiler_wl='-Wl,'
7537 lt_prog_compiler_pic='-KPIC'
7538 lt_prog_compiler_static='-static'
7539 ;;
7540 # icc used to be incompatible with GCC.
7541 # ICC 10 doesn't accept -KPIC any more.
7542 icc* | ifort*)
7543 lt_prog_compiler_wl='-Wl,'
7544 lt_prog_compiler_pic='-fPIC'
7545 lt_prog_compiler_static='-static'
7546 ;;
7547 # Lahey Fortran 8.1.
7548 lf95*)
7549 lt_prog_compiler_wl='-Wl,'
7550 lt_prog_compiler_pic='--shared'
7551 lt_prog_compiler_static='--static'
7552 ;;
7553 pgcc* | pgf77* | pgf90* | pgf95*)
7554 # Portland Group compilers (*not* the Pentium gcc compiler,
7555 # which looks to be a dead project)
7556 lt_prog_compiler_wl='-Wl,'
7557 lt_prog_compiler_pic='-fpic'
7558 lt_prog_compiler_static='-Bstatic'
7559 ;;
7560 ccc*)
7561 lt_prog_compiler_wl='-Wl,'
7562 # All Alpha code is PIC.
7563 lt_prog_compiler_static='-non_shared'
7564 ;;
7565 xl*)
7566 # IBM XL C 8.0/Fortran 10.1 on PPC
7567 lt_prog_compiler_wl='-Wl,'
7568 lt_prog_compiler_pic='-qpic'
7569 lt_prog_compiler_static='-qstaticlink'
7570 ;;
7571 *)
7572 case `$CC -V 2>&1 | sed 5q` in
7573 *Sun\ C*)
7574 # Sun C 5.9
7575 lt_prog_compiler_pic='-KPIC'
7576 lt_prog_compiler_static='-Bstatic'
7577 lt_prog_compiler_wl='-Wl,'
7578 ;;
7579 *Sun\ F*)
7580 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7581 lt_prog_compiler_pic='-KPIC'
7582 lt_prog_compiler_static='-Bstatic'
7583 lt_prog_compiler_wl=''
7584 ;;
7585 esac
7586 ;;
7587 esac
7588 ;;
7589
7590 newsos6)
7591 lt_prog_compiler_pic='-KPIC'
7592 lt_prog_compiler_static='-Bstatic'
7593 ;;
7594
7595 *nto* | *qnx*)
7596 # QNX uses GNU C++, but need to define -shared option too, otherwise
7597 # it will coredump.
7598 lt_prog_compiler_pic='-fPIC -shared'
7599 ;;
7600
7601 osf3* | osf4* | osf5*)
7602 lt_prog_compiler_wl='-Wl,'
7603 # All OSF/1 code is PIC.
7604 lt_prog_compiler_static='-non_shared'
7605 ;;
7606
7607 rdos*)
7608 lt_prog_compiler_static='-non_shared'
7609 ;;
7610
7611 solaris*)
7612 lt_prog_compiler_pic='-KPIC'
7613 lt_prog_compiler_static='-Bstatic'
7614 case $cc_basename in
7615 f77* | f90* | f95*)
7616 lt_prog_compiler_wl='-Qoption ld ';;
7617 *)
7618 lt_prog_compiler_wl='-Wl,';;
7619 esac
7620 ;;
7621
7622 sunos4*)
7623 lt_prog_compiler_wl='-Qoption ld '
7624 lt_prog_compiler_pic='-PIC'
7625 lt_prog_compiler_static='-Bstatic'
7626 ;;
7627
7628 sysv4 | sysv4.2uw2* | sysv4.3*)
7629 lt_prog_compiler_wl='-Wl,'
7630 lt_prog_compiler_pic='-KPIC'
7631 lt_prog_compiler_static='-Bstatic'
7632 ;;
7633
7634 sysv4*MP*)
7635 if test -d /usr/nec ;then
7636 lt_prog_compiler_pic='-Kconform_pic'
7637 lt_prog_compiler_static='-Bstatic'
7638 fi
7639 ;;
7640
7641 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7642 lt_prog_compiler_wl='-Wl,'
7643 lt_prog_compiler_pic='-KPIC'
7644 lt_prog_compiler_static='-Bstatic'
7645 ;;
7646
7647 unicos*)
7648 lt_prog_compiler_wl='-Wl,'
7649 lt_prog_compiler_can_build_shared=no
7650 ;;
7651
7652 uts4*)
7653 lt_prog_compiler_pic='-pic'
7654 lt_prog_compiler_static='-Bstatic'
7655 ;;
7656
7657 *)
7658 lt_prog_compiler_can_build_shared=no
7659 ;;
7660 esac
7661 fi
7662
7663 case $host_os in
7664 # For platforms which do not support PIC, -DPIC is meaningless:
7665 *djgpp*)
7666 lt_prog_compiler_pic=
7667 ;;
7668 *)
7669 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7670 ;;
7671 esac
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7673 $as_echo "$lt_prog_compiler_pic" >&6; }
7674
7675
7676
7677
7678
7679
7680 #
7681 # Check to make sure the PIC flag actually works.
7682 #
7683 if test -n "$lt_prog_compiler_pic"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7685 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7686 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7689 lt_cv_prog_compiler_pic_works=no
7690 ac_outfile=conftest.$ac_objext
7691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7692 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7693 # Insert the option either (1) after the last *FLAGS variable, or
7694 # (2) before a word containing "conftest.", or (3) at the end.
7695 # Note that $ac_compile itself does not contain backslashes and begins
7696 # with a dollar sign (not a hyphen), so the echo should work correctly.
7697 # The option is referenced via a variable to avoid confusing sed.
7698 lt_compile=`echo "$ac_compile" | $SED \
7699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7701 -e 's:$: $lt_compiler_flag:'`
7702 (eval echo "\"\$as_me:7702: $lt_compile\"" >&5)
7703 (eval "$lt_compile" 2>conftest.err)
7704 ac_status=$?
7705 cat conftest.err >&5
7706 echo "$as_me:7706: \$? = $ac_status" >&5
7707 if (exit $ac_status) && test -s "$ac_outfile"; then
7708 # The compiler can only warn and ignore the option if not recognized
7709 # So say no if there are warnings other than the usual output.
7710 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7713 lt_cv_prog_compiler_pic_works=yes
7714 fi
7715 fi
7716 $RM conftest*
7717
7718 fi
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7720 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7721
7722 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7723 case $lt_prog_compiler_pic in
7724 "" | " "*) ;;
7725 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7726 esac
7727 else
7728 lt_prog_compiler_pic=
7729 lt_prog_compiler_can_build_shared=no
7730 fi
7731
7732 fi
7733
7734
7735
7736
7737
7738
7739 #
7740 # Check to make sure the static flag actually works.
7741 #
7742 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7744 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7745 if ${lt_cv_prog_compiler_static_works+:} false; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748 lt_cv_prog_compiler_static_works=no
7749 save_LDFLAGS="$LDFLAGS"
7750 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7751 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7752 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7753 # The linker can only warn and ignore the option if not recognized
7754 # So say no if there are warnings
7755 if test -s conftest.err; then
7756 # Append any errors to the config.log.
7757 cat conftest.err 1>&5
7758 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7760 if diff conftest.exp conftest.er2 >/dev/null; then
7761 lt_cv_prog_compiler_static_works=yes
7762 fi
7763 else
7764 lt_cv_prog_compiler_static_works=yes
7765 fi
7766 fi
7767 $RM -r conftest*
7768 LDFLAGS="$save_LDFLAGS"
7769
7770 fi
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7772 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7773
7774 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7775 :
7776 else
7777 lt_prog_compiler_static=
7778 fi
7779
7780
7781
7782
7783
7784
7785
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7787 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7788 if ${lt_cv_prog_compiler_c_o+:} false; then :
7789 $as_echo_n "(cached) " >&6
7790 else
7791 lt_cv_prog_compiler_c_o=no
7792 $RM -r conftest 2>/dev/null
7793 mkdir conftest
7794 cd conftest
7795 mkdir out
7796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7797
7798 lt_compiler_flag="-o out/conftest2.$ac_objext"
7799 # Insert the option either (1) after the last *FLAGS variable, or
7800 # (2) before a word containing "conftest.", or (3) at the end.
7801 # Note that $ac_compile itself does not contain backslashes and begins
7802 # with a dollar sign (not a hyphen), so the echo should work correctly.
7803 lt_compile=`echo "$ac_compile" | $SED \
7804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7806 -e 's:$: $lt_compiler_flag:'`
7807 (eval echo "\"\$as_me:7807: $lt_compile\"" >&5)
7808 (eval "$lt_compile" 2>out/conftest.err)
7809 ac_status=$?
7810 cat out/conftest.err >&5
7811 echo "$as_me:7811: \$? = $ac_status" >&5
7812 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7813 then
7814 # The compiler can only warn and ignore the option if not recognized
7815 # So say no if there are warnings
7816 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7819 lt_cv_prog_compiler_c_o=yes
7820 fi
7821 fi
7822 chmod u+w . 2>&5
7823 $RM conftest*
7824 # SGI C++ compiler will create directory out/ii_files/ for
7825 # template instantiation
7826 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7827 $RM out/* && rmdir out
7828 cd ..
7829 $RM -r conftest
7830 $RM conftest*
7831
7832 fi
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7834 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7835
7836
7837
7838
7839
7840
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7842 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7843 if ${lt_cv_prog_compiler_c_o+:} false; then :
7844 $as_echo_n "(cached) " >&6
7845 else
7846 lt_cv_prog_compiler_c_o=no
7847 $RM -r conftest 2>/dev/null
7848 mkdir conftest
7849 cd conftest
7850 mkdir out
7851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7852
7853 lt_compiler_flag="-o out/conftest2.$ac_objext"
7854 # Insert the option either (1) after the last *FLAGS variable, or
7855 # (2) before a word containing "conftest.", or (3) at the end.
7856 # Note that $ac_compile itself does not contain backslashes and begins
7857 # with a dollar sign (not a hyphen), so the echo should work correctly.
7858 lt_compile=`echo "$ac_compile" | $SED \
7859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7861 -e 's:$: $lt_compiler_flag:'`
7862 (eval echo "\"\$as_me:7862: $lt_compile\"" >&5)
7863 (eval "$lt_compile" 2>out/conftest.err)
7864 ac_status=$?
7865 cat out/conftest.err >&5
7866 echo "$as_me:7866: \$? = $ac_status" >&5
7867 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7868 then
7869 # The compiler can only warn and ignore the option if not recognized
7870 # So say no if there are warnings
7871 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7872 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7873 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7874 lt_cv_prog_compiler_c_o=yes
7875 fi
7876 fi
7877 chmod u+w . 2>&5
7878 $RM conftest*
7879 # SGI C++ compiler will create directory out/ii_files/ for
7880 # template instantiation
7881 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7882 $RM out/* && rmdir out
7883 cd ..
7884 $RM -r conftest
7885 $RM conftest*
7886
7887 fi
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7889 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7890
7891
7892
7893
7894 hard_links="nottested"
7895 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7896 # do not overwrite the value of need_locks provided by the user
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7898 $as_echo_n "checking if we can lock with hard links... " >&6; }
7899 hard_links=yes
7900 $RM conftest*
7901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7902 touch conftest.a
7903 ln conftest.a conftest.b 2>&5 || hard_links=no
7904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7906 $as_echo "$hard_links" >&6; }
7907 if test "$hard_links" = no; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7909 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7910 need_locks=warn
7911 fi
7912 else
7913 need_locks=no
7914 fi
7915
7916
7917
7918
7919
7920
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7922 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7923
7924 runpath_var=
7925 allow_undefined_flag=
7926 always_export_symbols=no
7927 archive_cmds=
7928 archive_expsym_cmds=
7929 compiler_needs_object=no
7930 enable_shared_with_static_runtimes=no
7931 export_dynamic_flag_spec=
7932 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7933 hardcode_automatic=no
7934 hardcode_direct=no
7935 hardcode_direct_absolute=no
7936 hardcode_libdir_flag_spec=
7937 hardcode_libdir_flag_spec_ld=
7938 hardcode_libdir_separator=
7939 hardcode_minus_L=no
7940 hardcode_shlibpath_var=unsupported
7941 inherit_rpath=no
7942 link_all_deplibs=unknown
7943 module_cmds=
7944 module_expsym_cmds=
7945 old_archive_from_new_cmds=
7946 old_archive_from_expsyms_cmds=
7947 thread_safe_flag_spec=
7948 whole_archive_flag_spec=
7949 # include_expsyms should be a list of space-separated symbols to be *always*
7950 # included in the symbol list
7951 include_expsyms=
7952 # exclude_expsyms can be an extended regexp of symbols to exclude
7953 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7954 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7955 # as well as any symbol that contains `d'.
7956 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7957 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7958 # platforms (ab)use it in PIC code, but their linkers get confused if
7959 # the symbol is explicitly referenced. Since portable code cannot
7960 # rely on this symbol name, it's probably fine to never include it in
7961 # preloaded symbol tables.
7962 # Exclude shared library initialization/finalization symbols.
7963 extract_expsyms_cmds=
7964
7965 case $host_os in
7966 cygwin* | mingw* | pw32* | cegcc*)
7967 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7968 # When not using gcc, we currently assume that we are using
7969 # Microsoft Visual C++.
7970 if test "$GCC" != yes; then
7971 with_gnu_ld=no
7972 fi
7973 ;;
7974 interix*)
7975 # we just hope/assume this is gcc and not c89 (= MSVC++)
7976 with_gnu_ld=yes
7977 ;;
7978 openbsd*)
7979 with_gnu_ld=no
7980 ;;
7981 esac
7982
7983 ld_shlibs=yes
7984 if test "$with_gnu_ld" = yes; then
7985 # If archive_cmds runs LD, not CC, wlarc should be empty
7986 wlarc='${wl}'
7987
7988 # Set some defaults for GNU ld with shared library support. These
7989 # are reset later if shared libraries are not supported. Putting them
7990 # here allows them to be overridden if necessary.
7991 runpath_var=LD_RUN_PATH
7992 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7993 export_dynamic_flag_spec='${wl}--export-dynamic'
7994 # ancient GNU ld didn't support --whole-archive et. al.
7995 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7996 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7997 else
7998 whole_archive_flag_spec=
7999 fi
8000 supports_anon_versioning=no
8001 case `$LD -v 2>&1` in
8002 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8003 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8004 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8005 *\ 2.11.*) ;; # other 2.11 versions
8006 *) supports_anon_versioning=yes ;;
8007 esac
8008
8009 # See if GNU ld supports shared libraries.
8010 case $host_os in
8011 aix[3-9]*)
8012 # On AIX/PPC, the GNU linker is very broken
8013 if test "$host_cpu" != ia64; then
8014 ld_shlibs=no
8015 cat <<_LT_EOF 1>&2
8016
8017 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8018 *** to be unable to reliably create shared libraries on AIX.
8019 *** Therefore, libtool is disabling shared libraries support. If you
8020 *** really care for shared libraries, you may want to modify your PATH
8021 *** so that a non-GNU linker is found, and then restart.
8022
8023 _LT_EOF
8024 fi
8025 ;;
8026
8027 amigaos*)
8028 case $host_cpu in
8029 powerpc)
8030 # see comment about AmigaOS4 .so support
8031 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8032 archive_expsym_cmds=''
8033 ;;
8034 m68k)
8035 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)'
8036 hardcode_libdir_flag_spec='-L$libdir'
8037 hardcode_minus_L=yes
8038 ;;
8039 esac
8040 ;;
8041
8042 beos*)
8043 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8044 allow_undefined_flag=unsupported
8045 # Joseph Beckenbach <[email protected]> says some releases of gcc
8046 # support --undefined. This deserves some investigation. FIXME
8047 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8048 else
8049 ld_shlibs=no
8050 fi
8051 ;;
8052
8053 cygwin* | mingw* | pw32* | cegcc*)
8054 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8055 # as there is no search path for DLLs.
8056 hardcode_libdir_flag_spec='-L$libdir'
8057 allow_undefined_flag=unsupported
8058 always_export_symbols=no
8059 enable_shared_with_static_runtimes=yes
8060 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8061
8062 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8064 # If the export-symbols file already is a .def file (1st line
8065 # is EXPORTS), use it as is; otherwise, prepend...
8066 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8067 cp $export_symbols $output_objdir/$soname.def;
8068 else
8069 echo EXPORTS > $output_objdir/$soname.def;
8070 cat $export_symbols >> $output_objdir/$soname.def;
8071 fi~
8072 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8073 else
8074 ld_shlibs=no
8075 fi
8076 ;;
8077
8078 interix[3-9]*)
8079 hardcode_direct=no
8080 hardcode_shlibpath_var=no
8081 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8082 export_dynamic_flag_spec='${wl}-E'
8083 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8084 # Instead, shared libraries are loaded at an image base (0x10000000 by
8085 # default) and relocated if they conflict, which is a slow very memory
8086 # consuming and fragmenting process. To avoid this, we pick a random,
8087 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8088 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8089 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8090 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'
8091 ;;
8092
8093 gnu* | linux* | tpf* | k*bsd*-gnu)
8094 tmp_diet=no
8095 if test "$host_os" = linux-dietlibc; then
8096 case $cc_basename in
8097 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8098 esac
8099 fi
8100 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8101 && test "$tmp_diet" = no
8102 then
8103 tmp_addflag=
8104 tmp_sharedflag='-shared'
8105 case $cc_basename,$host_cpu in
8106 pgcc*) # Portland Group C compiler
8107 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8108 tmp_addflag=' $pic_flag'
8109 ;;
8110 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8111 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8112 tmp_addflag=' $pic_flag -Mnomain' ;;
8113 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8114 tmp_addflag=' -i_dynamic' ;;
8115 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8116 tmp_addflag=' -i_dynamic -nofor_main' ;;
8117 ifc* | ifort*) # Intel Fortran compiler
8118 tmp_addflag=' -nofor_main' ;;
8119 lf95*) # Lahey Fortran 8.1
8120 whole_archive_flag_spec=
8121 tmp_sharedflag='--shared' ;;
8122 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8123 tmp_sharedflag='-qmkshrobj'
8124 tmp_addflag= ;;
8125 esac
8126 case `$CC -V 2>&1 | sed 5q` in
8127 *Sun\ C*) # Sun C 5.9
8128 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8129 compiler_needs_object=yes
8130 tmp_sharedflag='-G' ;;
8131 *Sun\ F*) # Sun Fortran 8.3
8132 tmp_sharedflag='-G' ;;
8133 esac
8134 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8135
8136 if test "x$supports_anon_versioning" = xyes; then
8137 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8138 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8139 echo "local: *; };" >> $output_objdir/$libname.ver~
8140 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8141 fi
8142
8143 case $cc_basename in
8144 xlf*)
8145 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8146 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8147 hardcode_libdir_flag_spec=
8148 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8149 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8150 if test "x$supports_anon_versioning" = xyes; then
8151 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8152 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8153 echo "local: *; };" >> $output_objdir/$libname.ver~
8154 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8155 fi
8156 ;;
8157 esac
8158 else
8159 ld_shlibs=no
8160 fi
8161 ;;
8162
8163 netbsd* | netbsdelf*-gnu)
8164 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8165 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8166 wlarc=
8167 else
8168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8169 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8170 fi
8171 ;;
8172
8173 solaris*)
8174 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8175 ld_shlibs=no
8176 cat <<_LT_EOF 1>&2
8177
8178 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8179 *** create shared libraries on Solaris systems. Therefore, libtool
8180 *** is disabling shared libraries support. We urge you to upgrade GNU
8181 *** binutils to release 2.9.1 or newer. Another option is to modify
8182 *** your PATH or compiler configuration so that the native linker is
8183 *** used, and then restart.
8184
8185 _LT_EOF
8186 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8188 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8189 else
8190 ld_shlibs=no
8191 fi
8192 ;;
8193
8194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8195 case `$LD -v 2>&1` in
8196 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8197 ld_shlibs=no
8198 cat <<_LT_EOF 1>&2
8199
8200 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8201 *** reliably create shared libraries on SCO systems. Therefore, libtool
8202 *** is disabling shared libraries support. We urge you to upgrade GNU
8203 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8204 *** your PATH or compiler configuration so that the native linker is
8205 *** used, and then restart.
8206
8207 _LT_EOF
8208 ;;
8209 *)
8210 # For security reasons, it is highly recommended that you always
8211 # use absolute paths for naming shared libraries, and exclude the
8212 # DT_RUNPATH tag from executables and libraries. But doing so
8213 # requires that you compile everything twice, which is a pain.
8214 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8217 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8218 else
8219 ld_shlibs=no
8220 fi
8221 ;;
8222 esac
8223 ;;
8224
8225 sunos4*)
8226 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8227 wlarc=
8228 hardcode_direct=yes
8229 hardcode_shlibpath_var=no
8230 ;;
8231
8232 *)
8233 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8235 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8236 else
8237 ld_shlibs=no
8238 fi
8239 ;;
8240 esac
8241
8242 if test "$ld_shlibs" = no; then
8243 runpath_var=
8244 hardcode_libdir_flag_spec=
8245 export_dynamic_flag_spec=
8246 whole_archive_flag_spec=
8247 fi
8248 else
8249 # PORTME fill in a description of your system's linker (not GNU ld)
8250 case $host_os in
8251 aix3*)
8252 allow_undefined_flag=unsupported
8253 always_export_symbols=yes
8254 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'
8255 # Note: this linker hardcodes the directories in LIBPATH if there
8256 # are no directories specified by -L.
8257 hardcode_minus_L=yes
8258 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8259 # Neither direct hardcoding nor static linking is supported with a
8260 # broken collect2.
8261 hardcode_direct=unsupported
8262 fi
8263 ;;
8264
8265 aix[4-9]*)
8266 if test "$host_cpu" = ia64; then
8267 # On IA64, the linker does run time linking by default, so we don't
8268 # have to do anything special.
8269 aix_use_runtimelinking=no
8270 exp_sym_flag='-Bexport'
8271 no_entry_flag=""
8272 else
8273 # If we're using GNU nm, then we don't want the "-C" option.
8274 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8275 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8276 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8277 else
8278 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8279 fi
8280 aix_use_runtimelinking=no
8281
8282 # Test if we are trying to use run time linking or normal
8283 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8284 # need to do runtime linking.
8285 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8286 for ld_flag in $LDFLAGS; do
8287 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8288 aix_use_runtimelinking=yes
8289 break
8290 fi
8291 done
8292 ;;
8293 esac
8294
8295 exp_sym_flag='-bexport'
8296 no_entry_flag='-bnoentry'
8297 fi
8298
8299 # When large executables or shared objects are built, AIX ld can
8300 # have problems creating the table of contents. If linking a library
8301 # or program results in "error TOC overflow" add -mminimal-toc to
8302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8304
8305 archive_cmds=''
8306 hardcode_direct=yes
8307 hardcode_direct_absolute=yes
8308 hardcode_libdir_separator=':'
8309 link_all_deplibs=yes
8310 file_list_spec='${wl}-f,'
8311
8312 if test "$GCC" = yes; then
8313 case $host_os in aix4.[012]|aix4.[012].*)
8314 # We only want to do this on AIX 4.2 and lower, the check
8315 # below for broken collect2 doesn't work under 4.3+
8316 collect2name=`${CC} -print-prog-name=collect2`
8317 if test -f "$collect2name" &&
8318 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8319 then
8320 # We have reworked collect2
8321 :
8322 else
8323 # We have old collect2
8324 hardcode_direct=unsupported
8325 # It fails to find uninstalled libraries when the uninstalled
8326 # path is not listed in the libpath. Setting hardcode_minus_L
8327 # to unsupported forces relinking
8328 hardcode_minus_L=yes
8329 hardcode_libdir_flag_spec='-L$libdir'
8330 hardcode_libdir_separator=
8331 fi
8332 ;;
8333 esac
8334 shared_flag='-shared'
8335 if test "$aix_use_runtimelinking" = yes; then
8336 shared_flag="$shared_flag "'${wl}-G'
8337 fi
8338 link_all_deplibs=no
8339 else
8340 # not using gcc
8341 if test "$host_cpu" = ia64; then
8342 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8343 # chokes on -Wl,-G. The following line is correct:
8344 shared_flag='-G'
8345 else
8346 if test "$aix_use_runtimelinking" = yes; then
8347 shared_flag='${wl}-G'
8348 else
8349 shared_flag='${wl}-bM:SRE'
8350 fi
8351 fi
8352 fi
8353
8354 export_dynamic_flag_spec='${wl}-bexpall'
8355 # It seems that -bexpall does not export symbols beginning with
8356 # underscore (_), so it is better to generate a list of symbols to export.
8357 always_export_symbols=yes
8358 if test "$aix_use_runtimelinking" = yes; then
8359 # Warning - without using the other runtime loading flags (-brtl),
8360 # -berok will link without error, but may produce a broken library.
8361 allow_undefined_flag='-berok'
8362 # Determine the default libpath from the value encoded in an
8363 # empty executable.
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8366
8367 int
8368 main ()
8369 {
8370
8371 ;
8372 return 0;
8373 }
8374 _ACEOF
8375 if ac_fn_c_try_link "$LINENO"; then :
8376
8377 lt_aix_libpath_sed='
8378 /Import File Strings/,/^$/ {
8379 /^0/ {
8380 s/^0 *\(.*\)$/\1/
8381 p
8382 }
8383 }'
8384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8385 # Check for a 64-bit object if we didn't find anything.
8386 if test -z "$aix_libpath"; then
8387 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8388 fi
8389 fi
8390 rm -f core conftest.err conftest.$ac_objext \
8391 conftest$ac_exeext conftest.$ac_ext
8392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8393
8394 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8395 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8396 else
8397 if test "$host_cpu" = ia64; then
8398 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8399 allow_undefined_flag="-z nodefs"
8400 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"
8401 else
8402 # Determine the default libpath from the value encoded in an
8403 # empty executable.
8404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405 /* end confdefs.h. */
8406
8407 int
8408 main ()
8409 {
8410
8411 ;
8412 return 0;
8413 }
8414 _ACEOF
8415 if ac_fn_c_try_link "$LINENO"; then :
8416
8417 lt_aix_libpath_sed='
8418 /Import File Strings/,/^$/ {
8419 /^0/ {
8420 s/^0 *\(.*\)$/\1/
8421 p
8422 }
8423 }'
8424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8425 # Check for a 64-bit object if we didn't find anything.
8426 if test -z "$aix_libpath"; then
8427 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8428 fi
8429 fi
8430 rm -f core conftest.err conftest.$ac_objext \
8431 conftest$ac_exeext conftest.$ac_ext
8432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8433
8434 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8435 # Warning - without using the other run time loading flags,
8436 # -berok will link without error, but may produce a broken library.
8437 no_undefined_flag=' ${wl}-bernotok'
8438 allow_undefined_flag=' ${wl}-berok'
8439 # Exported symbols can be pulled into shared objects from archives
8440 whole_archive_flag_spec='$convenience'
8441 archive_cmds_need_lc=yes
8442 # This is similar to how AIX traditionally builds its shared libraries.
8443 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8444 fi
8445 fi
8446 ;;
8447
8448 amigaos*)
8449 case $host_cpu in
8450 powerpc)
8451 # see comment about AmigaOS4 .so support
8452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8453 archive_expsym_cmds=''
8454 ;;
8455 m68k)
8456 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)'
8457 hardcode_libdir_flag_spec='-L$libdir'
8458 hardcode_minus_L=yes
8459 ;;
8460 esac
8461 ;;
8462
8463 bsdi[45]*)
8464 export_dynamic_flag_spec=-rdynamic
8465 ;;
8466
8467 cygwin* | mingw* | pw32* | cegcc*)
8468 # When not using gcc, we currently assume that we are using
8469 # Microsoft Visual C++.
8470 # hardcode_libdir_flag_spec is actually meaningless, as there is
8471 # no search path for DLLs.
8472 hardcode_libdir_flag_spec=' '
8473 allow_undefined_flag=unsupported
8474 # Tell ltmain to make .lib files, not .a files.
8475 libext=lib
8476 # Tell ltmain to make .dll files, not .so files.
8477 shrext_cmds=".dll"
8478 # FIXME: Setting linknames here is a bad hack.
8479 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8480 # The linker will automatically build a .lib file if we build a DLL.
8481 old_archive_from_new_cmds='true'
8482 # FIXME: Should let the user specify the lib program.
8483 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8484 fix_srcfile_path='`cygpath -w "$srcfile"`'
8485 enable_shared_with_static_runtimes=yes
8486 ;;
8487
8488 darwin* | rhapsody*)
8489
8490
8491 archive_cmds_need_lc=no
8492 hardcode_direct=no
8493 hardcode_automatic=yes
8494 hardcode_shlibpath_var=unsupported
8495 whole_archive_flag_spec=''
8496 link_all_deplibs=yes
8497 allow_undefined_flag="$_lt_dar_allow_undefined"
8498 case $cc_basename in
8499 ifort*) _lt_dar_can_shared=yes ;;
8500 *) _lt_dar_can_shared=$GCC ;;
8501 esac
8502 if test "$_lt_dar_can_shared" = "yes"; then
8503 output_verbose_link_cmd=echo
8504 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8505 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8506 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}"
8507 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}"
8508
8509 else
8510 ld_shlibs=no
8511 fi
8512
8513 ;;
8514
8515 dgux*)
8516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8517 hardcode_libdir_flag_spec='-L$libdir'
8518 hardcode_shlibpath_var=no
8519 ;;
8520
8521 freebsd1*)
8522 ld_shlibs=no
8523 ;;
8524
8525 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8526 # support. Future versions do this automatically, but an explicit c++rt0.o
8527 # does not break anything, and helps significantly (at the cost of a little
8528 # extra space).
8529 freebsd2.2*)
8530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8531 hardcode_libdir_flag_spec='-R$libdir'
8532 hardcode_direct=yes
8533 hardcode_shlibpath_var=no
8534 ;;
8535
8536 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8537 freebsd2*)
8538 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8539 hardcode_direct=yes
8540 hardcode_minus_L=yes
8541 hardcode_shlibpath_var=no
8542 ;;
8543
8544 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8545 freebsd* | dragonfly*)
8546 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8547 hardcode_libdir_flag_spec='-R$libdir'
8548 hardcode_direct=yes
8549 hardcode_shlibpath_var=no
8550 ;;
8551
8552 hpux9*)
8553 if test "$GCC" = yes; then
8554 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8555 else
8556 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8557 fi
8558 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8559 hardcode_libdir_separator=:
8560 hardcode_direct=yes
8561
8562 # hardcode_minus_L: Not really in the search PATH,
8563 # but as the default location of the library.
8564 hardcode_minus_L=yes
8565 export_dynamic_flag_spec='${wl}-E'
8566 ;;
8567
8568 hpux10*)
8569 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8570 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8571 else
8572 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8573 fi
8574 if test "$with_gnu_ld" = no; then
8575 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8576 hardcode_libdir_flag_spec_ld='+b $libdir'
8577 hardcode_libdir_separator=:
8578 hardcode_direct=yes
8579 hardcode_direct_absolute=yes
8580 export_dynamic_flag_spec='${wl}-E'
8581 # hardcode_minus_L: Not really in the search PATH,
8582 # but as the default location of the library.
8583 hardcode_minus_L=yes
8584 fi
8585 ;;
8586
8587 hpux11*)
8588 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8589 case $host_cpu in
8590 hppa*64*)
8591 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8592 ;;
8593 ia64*)
8594 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8595 ;;
8596 *)
8597 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8598 ;;
8599 esac
8600 else
8601 case $host_cpu in
8602 hppa*64*)
8603 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8604 ;;
8605 ia64*)
8606 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8607 ;;
8608 *)
8609 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8610 ;;
8611 esac
8612 fi
8613 if test "$with_gnu_ld" = no; then
8614 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8615 hardcode_libdir_separator=:
8616
8617 case $host_cpu in
8618 hppa*64*|ia64*)
8619 hardcode_direct=no
8620 hardcode_shlibpath_var=no
8621 ;;
8622 *)
8623 hardcode_direct=yes
8624 hardcode_direct_absolute=yes
8625 export_dynamic_flag_spec='${wl}-E'
8626
8627 # hardcode_minus_L: Not really in the search PATH,
8628 # but as the default location of the library.
8629 hardcode_minus_L=yes
8630 ;;
8631 esac
8632 fi
8633 ;;
8634
8635 irix5* | irix6* | nonstopux*)
8636 if test "$GCC" = yes; then
8637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8638 # Try to use the -exported_symbol ld option, if it does not
8639 # work, assume that -exports_file does not work either and
8640 # implicitly export all symbols.
8641 save_LDFLAGS="$LDFLAGS"
8642 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8645 int foo(void) {}
8646 _ACEOF
8647 if ac_fn_c_try_link "$LINENO"; then :
8648 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8649
8650 fi
8651 rm -f core conftest.err conftest.$ac_objext \
8652 conftest$ac_exeext conftest.$ac_ext
8653 LDFLAGS="$save_LDFLAGS"
8654 else
8655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8656 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8657 fi
8658 archive_cmds_need_lc='no'
8659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8660 hardcode_libdir_separator=:
8661 inherit_rpath=yes
8662 link_all_deplibs=yes
8663 ;;
8664
8665 netbsd* | netbsdelf*-gnu)
8666 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8668 else
8669 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8670 fi
8671 hardcode_libdir_flag_spec='-R$libdir'
8672 hardcode_direct=yes
8673 hardcode_shlibpath_var=no
8674 ;;
8675
8676 newsos6)
8677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8678 hardcode_direct=yes
8679 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8680 hardcode_libdir_separator=:
8681 hardcode_shlibpath_var=no
8682 ;;
8683
8684 *nto* | *qnx*)
8685 ;;
8686
8687 openbsd*)
8688 if test -f /usr/libexec/ld.so; then
8689 hardcode_direct=yes
8690 hardcode_shlibpath_var=no
8691 hardcode_direct_absolute=yes
8692 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8693 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8694 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8695 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8696 export_dynamic_flag_spec='${wl}-E'
8697 else
8698 case $host_os in
8699 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8701 hardcode_libdir_flag_spec='-R$libdir'
8702 ;;
8703 *)
8704 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8705 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8706 ;;
8707 esac
8708 fi
8709 else
8710 ld_shlibs=no
8711 fi
8712 ;;
8713
8714 os2*)
8715 hardcode_libdir_flag_spec='-L$libdir'
8716 hardcode_minus_L=yes
8717 allow_undefined_flag=unsupported
8718 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8719 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8720 ;;
8721
8722 osf3*)
8723 if test "$GCC" = yes; then
8724 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8725 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8726 else
8727 allow_undefined_flag=' -expect_unresolved \*'
8728 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8729 fi
8730 archive_cmds_need_lc='no'
8731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8732 hardcode_libdir_separator=:
8733 ;;
8734
8735 osf4* | osf5*) # as osf3* with the addition of -msym flag
8736 if test "$GCC" = yes; then
8737 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8738 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8740 else
8741 allow_undefined_flag=' -expect_unresolved \*'
8742 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8743 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~
8744 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8745
8746 # Both c and cxx compiler support -rpath directly
8747 hardcode_libdir_flag_spec='-rpath $libdir'
8748 fi
8749 archive_cmds_need_lc='no'
8750 hardcode_libdir_separator=:
8751 ;;
8752
8753 solaris*)
8754 no_undefined_flag=' -z defs'
8755 if test "$GCC" = yes; then
8756 wlarc='${wl}'
8757 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8758 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8759 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8760 else
8761 case `$CC -V 2>&1` in
8762 *"Compilers 5.0"*)
8763 wlarc=''
8764 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8765 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8766 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8767 ;;
8768 *)
8769 wlarc='${wl}'
8770 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8771 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8772 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8773 ;;
8774 esac
8775 fi
8776 hardcode_libdir_flag_spec='-R$libdir'
8777 hardcode_shlibpath_var=no
8778 case $host_os in
8779 solaris2.[0-5] | solaris2.[0-5].*) ;;
8780 *)
8781 # The compiler driver will combine and reorder linker options,
8782 # but understands `-z linker_flag'. GCC discards it without `$wl',
8783 # but is careful enough not to reorder.
8784 # Supported since Solaris 2.6 (maybe 2.5.1?)
8785 if test "$GCC" = yes; then
8786 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8787 else
8788 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8789 fi
8790 ;;
8791 esac
8792 link_all_deplibs=yes
8793 ;;
8794
8795 sunos4*)
8796 if test "x$host_vendor" = xsequent; then
8797 # Use $CC to link under sequent, because it throws in some extra .o
8798 # files that make .init and .fini sections work.
8799 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8800 else
8801 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8802 fi
8803 hardcode_libdir_flag_spec='-L$libdir'
8804 hardcode_direct=yes
8805 hardcode_minus_L=yes
8806 hardcode_shlibpath_var=no
8807 ;;
8808
8809 sysv4)
8810 case $host_vendor in
8811 sni)
8812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8813 hardcode_direct=yes # is this really true???
8814 ;;
8815 siemens)
8816 ## LD is ld it makes a PLAMLIB
8817 ## CC just makes a GrossModule.
8818 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8819 reload_cmds='$CC -r -o $output$reload_objs'
8820 hardcode_direct=no
8821 ;;
8822 motorola)
8823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8824 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8825 ;;
8826 esac
8827 runpath_var='LD_RUN_PATH'
8828 hardcode_shlibpath_var=no
8829 ;;
8830
8831 sysv4.3*)
8832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8833 hardcode_shlibpath_var=no
8834 export_dynamic_flag_spec='-Bexport'
8835 ;;
8836
8837 sysv4*MP*)
8838 if test -d /usr/nec; then
8839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8840 hardcode_shlibpath_var=no
8841 runpath_var=LD_RUN_PATH
8842 hardcode_runpath_var=yes
8843 ld_shlibs=yes
8844 fi
8845 ;;
8846
8847 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8848 no_undefined_flag='${wl}-z,text'
8849 archive_cmds_need_lc=no
8850 hardcode_shlibpath_var=no
8851 runpath_var='LD_RUN_PATH'
8852
8853 if test "$GCC" = yes; then
8854 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8855 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8856 else
8857 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8858 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8859 fi
8860 ;;
8861
8862 sysv5* | sco3.2v5* | sco5v6*)
8863 # Note: We can NOT use -z defs as we might desire, because we do not
8864 # link with -lc, and that would cause any symbols used from libc to
8865 # always be unresolved, which means just about no library would
8866 # ever link correctly. If we're not using GNU ld we use -z text
8867 # though, which does catch some bad symbols but isn't as heavy-handed
8868 # as -z defs.
8869 no_undefined_flag='${wl}-z,text'
8870 allow_undefined_flag='${wl}-z,nodefs'
8871 archive_cmds_need_lc=no
8872 hardcode_shlibpath_var=no
8873 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8874 hardcode_libdir_separator=':'
8875 link_all_deplibs=yes
8876 export_dynamic_flag_spec='${wl}-Bexport'
8877 runpath_var='LD_RUN_PATH'
8878
8879 if test "$GCC" = yes; then
8880 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8881 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8882 else
8883 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8884 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8885 fi
8886 ;;
8887
8888 uts4*)
8889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8890 hardcode_libdir_flag_spec='-L$libdir'
8891 hardcode_shlibpath_var=no
8892 ;;
8893
8894 *)
8895 ld_shlibs=no
8896 ;;
8897 esac
8898
8899 if test x$host_vendor = xsni; then
8900 case $host in
8901 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8902 export_dynamic_flag_spec='${wl}-Blargedynsym'
8903 ;;
8904 esac
8905 fi
8906 fi
8907
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8909 $as_echo "$ld_shlibs" >&6; }
8910 test "$ld_shlibs" = no && can_build_shared=no
8911
8912 with_gnu_ld=$with_gnu_ld
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928 #
8929 # Do we need to explicitly link libc?
8930 #
8931 case "x$archive_cmds_need_lc" in
8932 x|xyes)
8933 # Assume -lc should be added
8934 archive_cmds_need_lc=yes
8935
8936 if test "$enable_shared" = yes && test "$GCC" = yes; then
8937 case $archive_cmds in
8938 *'~'*)
8939 # FIXME: we may have to deal with multi-command sequences.
8940 ;;
8941 '$CC '*)
8942 # Test whether the compiler implicitly links with -lc since on some
8943 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8944 # to ld, don't add -lc before -lgcc.
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8946 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8947 $RM conftest*
8948 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8949
8950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8951 (eval $ac_compile) 2>&5
8952 ac_status=$?
8953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8954 test $ac_status = 0; } 2>conftest.err; then
8955 soname=conftest
8956 lib=conftest
8957 libobjs=conftest.$ac_objext
8958 deplibs=
8959 wl=$lt_prog_compiler_wl
8960 pic_flag=$lt_prog_compiler_pic
8961 compiler_flags=-v
8962 linker_flags=-v
8963 verstring=
8964 output_objdir=.
8965 libname=conftest
8966 lt_save_allow_undefined_flag=$allow_undefined_flag
8967 allow_undefined_flag=
8968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8969 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8970 ac_status=$?
8971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8972 test $ac_status = 0; }
8973 then
8974 archive_cmds_need_lc=no
8975 else
8976 archive_cmds_need_lc=yes
8977 fi
8978 allow_undefined_flag=$lt_save_allow_undefined_flag
8979 else
8980 cat conftest.err 1>&5
8981 fi
8982 $RM conftest*
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8984 $as_echo "$archive_cmds_need_lc" >&6; }
8985 ;;
8986 esac
8987 fi
8988 ;;
8989 esac
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9148 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9149
9150 if test "$GCC" = yes; then
9151 case $host_os in
9152 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9153 *) lt_awk_arg="/^libraries:/" ;;
9154 esac
9155 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9156 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9157 # if the path contains ";" then we assume it to be the separator
9158 # otherwise default to the standard path separator (i.e. ":") - it is
9159 # assumed that no part of a normal pathname contains ";" but that should
9160 # okay in the real world where ";" in dirpaths is itself problematic.
9161 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9162 else
9163 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9164 fi
9165 # Ok, now we have the path, separated by spaces, we can step through it
9166 # and add multilib dir if necessary.
9167 lt_tmp_lt_search_path_spec=
9168 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9169 for lt_sys_path in $lt_search_path_spec; do
9170 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9171 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9172 else
9173 test -d "$lt_sys_path" && \
9174 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9175 fi
9176 done
9177 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9178 BEGIN {RS=" "; FS="/|\n";} {
9179 lt_foo="";
9180 lt_count=0;
9181 for (lt_i = NF; lt_i > 0; lt_i--) {
9182 if ($lt_i != "" && $lt_i != ".") {
9183 if ($lt_i == "..") {
9184 lt_count++;
9185 } else {
9186 if (lt_count == 0) {
9187 lt_foo="/" $lt_i lt_foo;
9188 } else {
9189 lt_count--;
9190 }
9191 }
9192 }
9193 }
9194 if (lt_foo != "") { lt_freq[lt_foo]++; }
9195 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9196 }'`
9197 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9198 else
9199 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9200 fi
9201 library_names_spec=
9202 libname_spec='lib$name'
9203 soname_spec=
9204 shrext_cmds=".so"
9205 postinstall_cmds=
9206 postuninstall_cmds=
9207 finish_cmds=
9208 finish_eval=
9209 shlibpath_var=
9210 shlibpath_overrides_runpath=unknown
9211 version_type=none
9212 dynamic_linker="$host_os ld.so"
9213 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9214 need_lib_prefix=unknown
9215 hardcode_into_libs=no
9216
9217 # when you set need_version to no, make sure it does not cause -set_version
9218 # flags to be left without arguments
9219 need_version=unknown
9220
9221 case $host_os in
9222 aix3*)
9223 version_type=linux
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9225 shlibpath_var=LIBPATH
9226
9227 # AIX 3 has no versioning support, so we append a major version to the name.
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 ;;
9230
9231 aix[4-9]*)
9232 version_type=linux
9233 need_lib_prefix=no
9234 need_version=no
9235 hardcode_into_libs=yes
9236 if test "$host_cpu" = ia64; then
9237 # AIX 5 supports IA64
9238 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9239 shlibpath_var=LD_LIBRARY_PATH
9240 else
9241 # With GCC up to 2.95.x, collect2 would create an import file
9242 # for dependence libraries. The import file would start with
9243 # the line `#! .'. This would cause the generated library to
9244 # depend on `.', always an invalid library. This was fixed in
9245 # development snapshots of GCC prior to 3.0.
9246 case $host_os in
9247 aix4 | aix4.[01] | aix4.[01].*)
9248 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9249 echo ' yes '
9250 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9251 :
9252 else
9253 can_build_shared=no
9254 fi
9255 ;;
9256 esac
9257 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9258 # soname into executable. Probably we can add versioning support to
9259 # collect2, so additional links can be useful in future.
9260 if test "$aix_use_runtimelinking" = yes; then
9261 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9262 # instead of lib<name>.a to let people know that these are not
9263 # typical AIX shared libraries.
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9265 else
9266 # We preserve .a as extension for shared libraries through AIX4.2
9267 # and later when we are not doing run time linking.
9268 library_names_spec='${libname}${release}.a $libname.a'
9269 soname_spec='${libname}${release}${shared_ext}$major'
9270 fi
9271 shlibpath_var=LIBPATH
9272 fi
9273 ;;
9274
9275 amigaos*)
9276 case $host_cpu in
9277 powerpc)
9278 # Since July 2007 AmigaOS4 officially supports .so libraries.
9279 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9281 ;;
9282 m68k)
9283 library_names_spec='$libname.ixlibrary $libname.a'
9284 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9285 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9286 ;;
9287 esac
9288 ;;
9289
9290 beos*)
9291 library_names_spec='${libname}${shared_ext}'
9292 dynamic_linker="$host_os ld.so"
9293 shlibpath_var=LIBRARY_PATH
9294 ;;
9295
9296 bsdi[45]*)
9297 version_type=linux
9298 need_version=no
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9300 soname_spec='${libname}${release}${shared_ext}$major'
9301 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9304 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9305 # the default ld.so.conf also contains /usr/contrib/lib and
9306 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9307 # libtool to hard-code these into programs
9308 ;;
9309
9310 cygwin* | mingw* | pw32* | cegcc*)
9311 version_type=windows
9312 shrext_cmds=".dll"
9313 need_version=no
9314 need_lib_prefix=no
9315
9316 case $GCC,$host_os in
9317 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9318 library_names_spec='$libname.dll.a'
9319 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9320 postinstall_cmds='base_file=`basename \${file}`~
9321 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9322 dldir=$destdir/`dirname \$dlpath`~
9323 test -d \$dldir || mkdir -p \$dldir~
9324 $install_prog $dir/$dlname \$dldir/$dlname~
9325 chmod a+x \$dldir/$dlname~
9326 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9327 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9328 fi'
9329 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9330 dlpath=$dir/\$dldll~
9331 $RM \$dlpath'
9332 shlibpath_overrides_runpath=yes
9333
9334 case $host_os in
9335 cygwin*)
9336 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9337 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9338 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9339 ;;
9340 mingw* | cegcc*)
9341 # MinGW DLLs use traditional 'lib' prefix
9342 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9343 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9344 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9345 # It is most probably a Windows format PATH printed by
9346 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9347 # path with ; separators, and with drive letters. We can handle the
9348 # drive letters (cygwin fileutils understands them), so leave them,
9349 # especially as we might pass files found there to a mingw objdump,
9350 # which wouldn't understand a cygwinified path. Ahh.
9351 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9352 else
9353 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9354 fi
9355 ;;
9356 pw32*)
9357 # pw32 DLLs use 'pw' prefix rather than 'lib'
9358 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9359 ;;
9360 esac
9361 ;;
9362
9363 *)
9364 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9365 ;;
9366 esac
9367 dynamic_linker='Win32 ld.exe'
9368 # FIXME: first we should search . and the directory the executable is in
9369 shlibpath_var=PATH
9370 ;;
9371
9372 darwin* | rhapsody*)
9373 dynamic_linker="$host_os dyld"
9374 version_type=darwin
9375 need_lib_prefix=no
9376 need_version=no
9377 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9378 soname_spec='${libname}${release}${major}$shared_ext'
9379 shlibpath_overrides_runpath=yes
9380 shlibpath_var=DYLD_LIBRARY_PATH
9381 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9382
9383 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9384 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9385 ;;
9386
9387 dgux*)
9388 version_type=linux
9389 need_lib_prefix=no
9390 need_version=no
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9392 soname_spec='${libname}${release}${shared_ext}$major'
9393 shlibpath_var=LD_LIBRARY_PATH
9394 ;;
9395
9396 freebsd1*)
9397 dynamic_linker=no
9398 ;;
9399
9400 freebsd* | dragonfly*)
9401 # DragonFly does not have aout. When/if they implement a new
9402 # versioning mechanism, adjust this.
9403 if test -x /usr/bin/objformat; then
9404 objformat=`/usr/bin/objformat`
9405 else
9406 case $host_os in
9407 freebsd[123]*) objformat=aout ;;
9408 *) objformat=elf ;;
9409 esac
9410 fi
9411 version_type=freebsd-$objformat
9412 case $version_type in
9413 freebsd-elf*)
9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9415 need_version=no
9416 need_lib_prefix=no
9417 ;;
9418 freebsd-*)
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9420 need_version=yes
9421 ;;
9422 esac
9423 shlibpath_var=LD_LIBRARY_PATH
9424 case $host_os in
9425 freebsd2*)
9426 shlibpath_overrides_runpath=yes
9427 ;;
9428 freebsd3.[01]* | freebsdelf3.[01]*)
9429 shlibpath_overrides_runpath=yes
9430 hardcode_into_libs=yes
9431 ;;
9432 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9433 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9434 shlibpath_overrides_runpath=no
9435 hardcode_into_libs=yes
9436 ;;
9437 *) # from 4.6 on, and DragonFly
9438 shlibpath_overrides_runpath=yes
9439 hardcode_into_libs=yes
9440 ;;
9441 esac
9442 ;;
9443
9444 gnu*)
9445 version_type=linux
9446 need_lib_prefix=no
9447 need_version=no
9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9449 soname_spec='${libname}${release}${shared_ext}$major'
9450 shlibpath_var=LD_LIBRARY_PATH
9451 hardcode_into_libs=yes
9452 ;;
9453
9454 hpux9* | hpux10* | hpux11*)
9455 # Give a soname corresponding to the major version so that dld.sl refuses to
9456 # link against other versions.
9457 version_type=sunos
9458 need_lib_prefix=no
9459 need_version=no
9460 case $host_cpu in
9461 ia64*)
9462 shrext_cmds='.so'
9463 hardcode_into_libs=yes
9464 dynamic_linker="$host_os dld.so"
9465 shlibpath_var=LD_LIBRARY_PATH
9466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9468 soname_spec='${libname}${release}${shared_ext}$major'
9469 if test "X$HPUX_IA64_MODE" = X32; then
9470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9471 else
9472 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9473 fi
9474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9475 ;;
9476 hppa*64*)
9477 shrext_cmds='.sl'
9478 hardcode_into_libs=yes
9479 dynamic_linker="$host_os dld.sl"
9480 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9486 ;;
9487 *)
9488 shrext_cmds='.sl'
9489 dynamic_linker="$host_os dld.sl"
9490 shlibpath_var=SHLIB_PATH
9491 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493 soname_spec='${libname}${release}${shared_ext}$major'
9494 ;;
9495 esac
9496 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9497 postinstall_cmds='chmod 555 $lib'
9498 ;;
9499
9500 interix[3-9]*)
9501 version_type=linux
9502 need_lib_prefix=no
9503 need_version=no
9504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9505 soname_spec='${libname}${release}${shared_ext}$major'
9506 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9507 shlibpath_var=LD_LIBRARY_PATH
9508 shlibpath_overrides_runpath=no
9509 hardcode_into_libs=yes
9510 ;;
9511
9512 irix5* | irix6* | nonstopux*)
9513 case $host_os in
9514 nonstopux*) version_type=nonstopux ;;
9515 *)
9516 if test "$lt_cv_prog_gnu_ld" = yes; then
9517 version_type=linux
9518 else
9519 version_type=irix
9520 fi ;;
9521 esac
9522 need_lib_prefix=no
9523 need_version=no
9524 soname_spec='${libname}${release}${shared_ext}$major'
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9526 case $host_os in
9527 irix5* | nonstopux*)
9528 libsuff= shlibsuff=
9529 ;;
9530 *)
9531 case $LD in # libtool.m4 will add one of these switches to LD
9532 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9533 libsuff= shlibsuff= libmagic=32-bit;;
9534 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9535 libsuff=32 shlibsuff=N32 libmagic=N32;;
9536 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9537 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9538 *) libsuff= shlibsuff= libmagic=never-match;;
9539 esac
9540 ;;
9541 esac
9542 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9543 shlibpath_overrides_runpath=no
9544 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9545 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9546 hardcode_into_libs=yes
9547 ;;
9548
9549 # No shared lib support for Linux oldld, aout, or coff.
9550 linux*oldld* | linux*aout* | linux*coff*)
9551 dynamic_linker=no
9552 ;;
9553
9554 # This must be Linux ELF.
9555 linux* | k*bsd*-gnu)
9556 version_type=linux
9557 need_lib_prefix=no
9558 need_version=no
9559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560 soname_spec='${libname}${release}${shared_ext}$major'
9561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9562 shlibpath_var=LD_LIBRARY_PATH
9563 shlibpath_overrides_runpath=no
9564 # Some binutils ld are patched to set DT_RUNPATH
9565 save_LDFLAGS=$LDFLAGS
9566 save_libdir=$libdir
9567 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9568 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9571
9572 int
9573 main ()
9574 {
9575
9576 ;
9577 return 0;
9578 }
9579 _ACEOF
9580 if ac_fn_c_try_link "$LINENO"; then :
9581 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9582 shlibpath_overrides_runpath=yes
9583 fi
9584 fi
9585 rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9587 LDFLAGS=$save_LDFLAGS
9588 libdir=$save_libdir
9589
9590 # This implies no fast_install, which is unacceptable.
9591 # Some rework will be needed to allow for fast_install
9592 # before this can be enabled.
9593 hardcode_into_libs=yes
9594
9595 # Append ld.so.conf contents to the search path
9596 if test -f /etc/ld.so.conf; then
9597 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;/^$/d' | tr '\n' ' '`
9598 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9599 fi
9600
9601 # We used to test for /lib/ld.so.1 and disable shared libraries on
9602 # powerpc, because MkLinux only supported shared libraries with the
9603 # GNU dynamic linker. Since this was broken with cross compilers,
9604 # most powerpc-linux boxes support dynamic linking these days and
9605 # people can always --disable-shared, the test was removed, and we
9606 # assume the GNU/Linux dynamic linker is in use.
9607 dynamic_linker='GNU/Linux ld.so'
9608 ;;
9609
9610 netbsdelf*-gnu)
9611 version_type=linux
9612 need_lib_prefix=no
9613 need_version=no
9614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9615 soname_spec='${libname}${release}${shared_ext}$major'
9616 shlibpath_var=LD_LIBRARY_PATH
9617 shlibpath_overrides_runpath=no
9618 hardcode_into_libs=yes
9619 dynamic_linker='NetBSD ld.elf_so'
9620 ;;
9621
9622 netbsd*)
9623 version_type=sunos
9624 need_lib_prefix=no
9625 need_version=no
9626 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9629 dynamic_linker='NetBSD (a.out) ld.so'
9630 else
9631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9632 soname_spec='${libname}${release}${shared_ext}$major'
9633 dynamic_linker='NetBSD ld.elf_so'
9634 fi
9635 shlibpath_var=LD_LIBRARY_PATH
9636 shlibpath_overrides_runpath=yes
9637 hardcode_into_libs=yes
9638 ;;
9639
9640 newsos6)
9641 version_type=linux
9642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9643 shlibpath_var=LD_LIBRARY_PATH
9644 shlibpath_overrides_runpath=yes
9645 ;;
9646
9647 *nto* | *qnx*)
9648 version_type=qnx
9649 need_lib_prefix=no
9650 need_version=no
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652 soname_spec='${libname}${release}${shared_ext}$major'
9653 shlibpath_var=LD_LIBRARY_PATH
9654 shlibpath_overrides_runpath=no
9655 hardcode_into_libs=yes
9656 dynamic_linker='ldqnx.so'
9657 ;;
9658
9659 openbsd*)
9660 version_type=sunos
9661 sys_lib_dlsearch_path_spec="/usr/lib"
9662 need_lib_prefix=no
9663 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9664 case $host_os in
9665 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9666 *) need_version=no ;;
9667 esac
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9670 shlibpath_var=LD_LIBRARY_PATH
9671 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9672 case $host_os in
9673 openbsd2.[89] | openbsd2.[89].*)
9674 shlibpath_overrides_runpath=no
9675 ;;
9676 *)
9677 shlibpath_overrides_runpath=yes
9678 ;;
9679 esac
9680 else
9681 shlibpath_overrides_runpath=yes
9682 fi
9683 ;;
9684
9685 os2*)
9686 libname_spec='$name'
9687 shrext_cmds=".dll"
9688 need_lib_prefix=no
9689 library_names_spec='$libname${shared_ext} $libname.a'
9690 dynamic_linker='OS/2 ld.exe'
9691 shlibpath_var=LIBPATH
9692 ;;
9693
9694 osf3* | osf4* | osf5*)
9695 version_type=osf
9696 need_lib_prefix=no
9697 need_version=no
9698 soname_spec='${libname}${release}${shared_ext}$major'
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9700 shlibpath_var=LD_LIBRARY_PATH
9701 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9702 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9703 ;;
9704
9705 rdos*)
9706 dynamic_linker=no
9707 ;;
9708
9709 solaris*)
9710 version_type=linux
9711 need_lib_prefix=no
9712 need_version=no
9713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9714 soname_spec='${libname}${release}${shared_ext}$major'
9715 shlibpath_var=LD_LIBRARY_PATH
9716 shlibpath_overrides_runpath=yes
9717 hardcode_into_libs=yes
9718 # ldd complains unless libraries are executable
9719 postinstall_cmds='chmod +x $lib'
9720 ;;
9721
9722 sunos4*)
9723 version_type=sunos
9724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9725 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9726 shlibpath_var=LD_LIBRARY_PATH
9727 shlibpath_overrides_runpath=yes
9728 if test "$with_gnu_ld" = yes; then
9729 need_lib_prefix=no
9730 fi
9731 need_version=yes
9732 ;;
9733
9734 sysv4 | sysv4.3*)
9735 version_type=linux
9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9737 soname_spec='${libname}${release}${shared_ext}$major'
9738 shlibpath_var=LD_LIBRARY_PATH
9739 case $host_vendor in
9740 sni)
9741 shlibpath_overrides_runpath=no
9742 need_lib_prefix=no
9743 runpath_var=LD_RUN_PATH
9744 ;;
9745 siemens)
9746 need_lib_prefix=no
9747 ;;
9748 motorola)
9749 need_lib_prefix=no
9750 need_version=no
9751 shlibpath_overrides_runpath=no
9752 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9753 ;;
9754 esac
9755 ;;
9756
9757 sysv4*MP*)
9758 if test -d /usr/nec ;then
9759 version_type=linux
9760 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9761 soname_spec='$libname${shared_ext}.$major'
9762 shlibpath_var=LD_LIBRARY_PATH
9763 fi
9764 ;;
9765
9766 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9767 version_type=freebsd-elf
9768 need_lib_prefix=no
9769 need_version=no
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9771 soname_spec='${libname}${release}${shared_ext}$major'
9772 shlibpath_var=LD_LIBRARY_PATH
9773 shlibpath_overrides_runpath=yes
9774 hardcode_into_libs=yes
9775 if test "$with_gnu_ld" = yes; then
9776 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9777 else
9778 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9779 case $host_os in
9780 sco3.2v5*)
9781 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9782 ;;
9783 esac
9784 fi
9785 sys_lib_dlsearch_path_spec='/usr/lib'
9786 ;;
9787
9788 tpf*)
9789 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9790 version_type=linux
9791 need_lib_prefix=no
9792 need_version=no
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794 shlibpath_var=LD_LIBRARY_PATH
9795 shlibpath_overrides_runpath=no
9796 hardcode_into_libs=yes
9797 ;;
9798
9799 uts4*)
9800 version_type=linux
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802 soname_spec='${libname}${release}${shared_ext}$major'
9803 shlibpath_var=LD_LIBRARY_PATH
9804 ;;
9805
9806 *)
9807 dynamic_linker=no
9808 ;;
9809 esac
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9811 $as_echo "$dynamic_linker" >&6; }
9812 test "$dynamic_linker" = no && can_build_shared=no
9813
9814 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9815 if test "$GCC" = yes; then
9816 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9817 fi
9818
9819 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9820 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9821 fi
9822 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9823 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9824 fi
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9913 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9914 hardcode_action=
9915 if test -n "$hardcode_libdir_flag_spec" ||
9916 test -n "$runpath_var" ||
9917 test "X$hardcode_automatic" = "Xyes" ; then
9918
9919 # We can hardcode non-existent directories.
9920 if test "$hardcode_direct" != no &&
9921 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9922 # have to relink, otherwise we might link with an installed library
9923 # when we should be linking with a yet-to-be-installed one
9924 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9925 test "$hardcode_minus_L" != no; then
9926 # Linking always hardcodes the temporary library directory.
9927 hardcode_action=relink
9928 else
9929 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9930 hardcode_action=immediate
9931 fi
9932 else
9933 # We cannot hardcode anything, or else we can only hardcode existing
9934 # directories.
9935 hardcode_action=unsupported
9936 fi
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9938 $as_echo "$hardcode_action" >&6; }
9939
9940 if test "$hardcode_action" = relink ||
9941 test "$inherit_rpath" = yes; then
9942 # Fast installation is not supported
9943 enable_fast_install=no
9944 elif test "$shlibpath_overrides_runpath" = yes ||
9945 test "$enable_shared" = no; then
9946 # Fast installation is not necessary
9947 enable_fast_install=needless
9948 fi
9949
9950
9951
9952
9953
9954
9955 if test "x$enable_dlopen" != xyes; then
9956 enable_dlopen=unknown
9957 enable_dlopen_self=unknown
9958 enable_dlopen_self_static=unknown
9959 else
9960 lt_cv_dlopen=no
9961 lt_cv_dlopen_libs=
9962
9963 case $host_os in
9964 beos*)
9965 lt_cv_dlopen="load_add_on"
9966 lt_cv_dlopen_libs=
9967 lt_cv_dlopen_self=yes
9968 ;;
9969
9970 mingw* | pw32* | cegcc*)
9971 lt_cv_dlopen="LoadLibrary"
9972 lt_cv_dlopen_libs=
9973 ;;
9974
9975 cygwin*)
9976 lt_cv_dlopen="dlopen"
9977 lt_cv_dlopen_libs=
9978 ;;
9979
9980 darwin*)
9981 # if libdl is installed we need to link against it
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9983 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9984 if ${ac_cv_lib_dl_dlopen+:} false; then :
9985 $as_echo_n "(cached) " >&6
9986 else
9987 ac_check_lib_save_LIBS=$LIBS
9988 LIBS="-ldl $LIBS"
9989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990 /* end confdefs.h. */
9991
9992 /* Override any GCC internal prototype to avoid an error.
9993 Use char because int might match the return type of a GCC
9994 builtin and then its argument prototype would still apply. */
9995 #ifdef __cplusplus
9996 extern "C"
9997 #endif
9998 char dlopen ();
9999 int
10000 main ()
10001 {
10002 return dlopen ();
10003 ;
10004 return 0;
10005 }
10006 _ACEOF
10007 if ac_fn_c_try_link "$LINENO"; then :
10008 ac_cv_lib_dl_dlopen=yes
10009 else
10010 ac_cv_lib_dl_dlopen=no
10011 fi
10012 rm -f core conftest.err conftest.$ac_objext \
10013 conftest$ac_exeext conftest.$ac_ext
10014 LIBS=$ac_check_lib_save_LIBS
10015 fi
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10017 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10018 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10020 else
10021
10022 lt_cv_dlopen="dyld"
10023 lt_cv_dlopen_libs=
10024 lt_cv_dlopen_self=yes
10025
10026 fi
10027
10028 ;;
10029
10030 *)
10031 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10032 if test "x$ac_cv_func_shl_load" = xyes; then :
10033 lt_cv_dlopen="shl_load"
10034 else
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10036 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10037 if ${ac_cv_lib_dld_shl_load+:} false; then :
10038 $as_echo_n "(cached) " >&6
10039 else
10040 ac_check_lib_save_LIBS=$LIBS
10041 LIBS="-ldld $LIBS"
10042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10043 /* end confdefs.h. */
10044
10045 /* Override any GCC internal prototype to avoid an error.
10046 Use char because int might match the return type of a GCC
10047 builtin and then its argument prototype would still apply. */
10048 #ifdef __cplusplus
10049 extern "C"
10050 #endif
10051 char shl_load ();
10052 int
10053 main ()
10054 {
10055 return shl_load ();
10056 ;
10057 return 0;
10058 }
10059 _ACEOF
10060 if ac_fn_c_try_link "$LINENO"; then :
10061 ac_cv_lib_dld_shl_load=yes
10062 else
10063 ac_cv_lib_dld_shl_load=no
10064 fi
10065 rm -f core conftest.err conftest.$ac_objext \
10066 conftest$ac_exeext conftest.$ac_ext
10067 LIBS=$ac_check_lib_save_LIBS
10068 fi
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10070 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10071 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10072 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10073 else
10074 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10075 if test "x$ac_cv_func_dlopen" = xyes; then :
10076 lt_cv_dlopen="dlopen"
10077 else
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10079 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10080 if ${ac_cv_lib_dl_dlopen+:} false; then :
10081 $as_echo_n "(cached) " >&6
10082 else
10083 ac_check_lib_save_LIBS=$LIBS
10084 LIBS="-ldl $LIBS"
10085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086 /* end confdefs.h. */
10087
10088 /* Override any GCC internal prototype to avoid an error.
10089 Use char because int might match the return type of a GCC
10090 builtin and then its argument prototype would still apply. */
10091 #ifdef __cplusplus
10092 extern "C"
10093 #endif
10094 char dlopen ();
10095 int
10096 main ()
10097 {
10098 return dlopen ();
10099 ;
10100 return 0;
10101 }
10102 _ACEOF
10103 if ac_fn_c_try_link "$LINENO"; then :
10104 ac_cv_lib_dl_dlopen=yes
10105 else
10106 ac_cv_lib_dl_dlopen=no
10107 fi
10108 rm -f core conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext conftest.$ac_ext
10110 LIBS=$ac_check_lib_save_LIBS
10111 fi
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10113 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10114 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10115 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10116 else
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10118 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10119 if ${ac_cv_lib_svld_dlopen+:} false; then :
10120 $as_echo_n "(cached) " >&6
10121 else
10122 ac_check_lib_save_LIBS=$LIBS
10123 LIBS="-lsvld $LIBS"
10124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10126
10127 /* Override any GCC internal prototype to avoid an error.
10128 Use char because int might match the return type of a GCC
10129 builtin and then its argument prototype would still apply. */
10130 #ifdef __cplusplus
10131 extern "C"
10132 #endif
10133 char dlopen ();
10134 int
10135 main ()
10136 {
10137 return dlopen ();
10138 ;
10139 return 0;
10140 }
10141 _ACEOF
10142 if ac_fn_c_try_link "$LINENO"; then :
10143 ac_cv_lib_svld_dlopen=yes
10144 else
10145 ac_cv_lib_svld_dlopen=no
10146 fi
10147 rm -f core conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
10149 LIBS=$ac_check_lib_save_LIBS
10150 fi
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10152 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10153 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10154 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10155 else
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10157 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10158 if ${ac_cv_lib_dld_dld_link+:} false; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161 ac_check_lib_save_LIBS=$LIBS
10162 LIBS="-ldld $LIBS"
10163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164 /* end confdefs.h. */
10165
10166 /* Override any GCC internal prototype to avoid an error.
10167 Use char because int might match the return type of a GCC
10168 builtin and then its argument prototype would still apply. */
10169 #ifdef __cplusplus
10170 extern "C"
10171 #endif
10172 char dld_link ();
10173 int
10174 main ()
10175 {
10176 return dld_link ();
10177 ;
10178 return 0;
10179 }
10180 _ACEOF
10181 if ac_fn_c_try_link "$LINENO"; then :
10182 ac_cv_lib_dld_dld_link=yes
10183 else
10184 ac_cv_lib_dld_dld_link=no
10185 fi
10186 rm -f core conftest.err conftest.$ac_objext \
10187 conftest$ac_exeext conftest.$ac_ext
10188 LIBS=$ac_check_lib_save_LIBS
10189 fi
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10191 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10192 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10193 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10194 fi
10195
10196
10197 fi
10198
10199
10200 fi
10201
10202
10203 fi
10204
10205
10206 fi
10207
10208
10209 fi
10210
10211 ;;
10212 esac
10213
10214 if test "x$lt_cv_dlopen" != xno; then
10215 enable_dlopen=yes
10216 else
10217 enable_dlopen=no
10218 fi
10219
10220 case $lt_cv_dlopen in
10221 dlopen)
10222 save_CPPFLAGS="$CPPFLAGS"
10223 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10224
10225 save_LDFLAGS="$LDFLAGS"
10226 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10227
10228 save_LIBS="$LIBS"
10229 LIBS="$lt_cv_dlopen_libs $LIBS"
10230
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10232 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10233 if ${lt_cv_dlopen_self+:} false; then :
10234 $as_echo_n "(cached) " >&6
10235 else
10236 if test "$cross_compiling" = yes; then :
10237 lt_cv_dlopen_self=cross
10238 else
10239 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10240 lt_status=$lt_dlunknown
10241 cat > conftest.$ac_ext <<_LT_EOF
10242 #line 10242 "configure"
10243 #include "confdefs.h"
10244
10245 #if HAVE_DLFCN_H
10246 #include <dlfcn.h>
10247 #endif
10248
10249 #include <stdio.h>
10250
10251 #ifdef RTLD_GLOBAL
10252 # define LT_DLGLOBAL RTLD_GLOBAL
10253 #else
10254 # ifdef DL_GLOBAL
10255 # define LT_DLGLOBAL DL_GLOBAL
10256 # else
10257 # define LT_DLGLOBAL 0
10258 # endif
10259 #endif
10260
10261 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10262 find out it does not work in some platform. */
10263 #ifndef LT_DLLAZY_OR_NOW
10264 # ifdef RTLD_LAZY
10265 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10266 # else
10267 # ifdef DL_LAZY
10268 # define LT_DLLAZY_OR_NOW DL_LAZY
10269 # else
10270 # ifdef RTLD_NOW
10271 # define LT_DLLAZY_OR_NOW RTLD_NOW
10272 # else
10273 # ifdef DL_NOW
10274 # define LT_DLLAZY_OR_NOW DL_NOW
10275 # else
10276 # define LT_DLLAZY_OR_NOW 0
10277 # endif
10278 # endif
10279 # endif
10280 # endif
10281 #endif
10282
10283 void fnord() { int i=42;}
10284 int main ()
10285 {
10286 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10287 int status = $lt_dlunknown;
10288
10289 if (self)
10290 {
10291 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10292 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10293 /* dlclose (self); */
10294 }
10295 else
10296 puts (dlerror ());
10297
10298 return status;
10299 }
10300 _LT_EOF
10301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10302 (eval $ac_link) 2>&5
10303 ac_status=$?
10304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10305 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10306 (./conftest; exit; ) >&5 2>/dev/null
10307 lt_status=$?
10308 case x$lt_status in
10309 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10310 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10311 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10312 esac
10313 else :
10314 # compilation failed
10315 lt_cv_dlopen_self=no
10316 fi
10317 fi
10318 rm -fr conftest*
10319
10320
10321 fi
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10323 $as_echo "$lt_cv_dlopen_self" >&6; }
10324
10325 if test "x$lt_cv_dlopen_self" = xyes; then
10326 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10328 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10329 if ${lt_cv_dlopen_self_static+:} false; then :
10330 $as_echo_n "(cached) " >&6
10331 else
10332 if test "$cross_compiling" = yes; then :
10333 lt_cv_dlopen_self_static=cross
10334 else
10335 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10336 lt_status=$lt_dlunknown
10337 cat > conftest.$ac_ext <<_LT_EOF
10338 #line 10338 "configure"
10339 #include "confdefs.h"
10340
10341 #if HAVE_DLFCN_H
10342 #include <dlfcn.h>
10343 #endif
10344
10345 #include <stdio.h>
10346
10347 #ifdef RTLD_GLOBAL
10348 # define LT_DLGLOBAL RTLD_GLOBAL
10349 #else
10350 # ifdef DL_GLOBAL
10351 # define LT_DLGLOBAL DL_GLOBAL
10352 # else
10353 # define LT_DLGLOBAL 0
10354 # endif
10355 #endif
10356
10357 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10358 find out it does not work in some platform. */
10359 #ifndef LT_DLLAZY_OR_NOW
10360 # ifdef RTLD_LAZY
10361 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10362 # else
10363 # ifdef DL_LAZY
10364 # define LT_DLLAZY_OR_NOW DL_LAZY
10365 # else
10366 # ifdef RTLD_NOW
10367 # define LT_DLLAZY_OR_NOW RTLD_NOW
10368 # else
10369 # ifdef DL_NOW
10370 # define LT_DLLAZY_OR_NOW DL_NOW
10371 # else
10372 # define LT_DLLAZY_OR_NOW 0
10373 # endif
10374 # endif
10375 # endif
10376 # endif
10377 #endif
10378
10379 void fnord() { int i=42;}
10380 int main ()
10381 {
10382 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10383 int status = $lt_dlunknown;
10384
10385 if (self)
10386 {
10387 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10388 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10389 /* dlclose (self); */
10390 }
10391 else
10392 puts (dlerror ());
10393
10394 return status;
10395 }
10396 _LT_EOF
10397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10398 (eval $ac_link) 2>&5
10399 ac_status=$?
10400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10401 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10402 (./conftest; exit; ) >&5 2>/dev/null
10403 lt_status=$?
10404 case x$lt_status in
10405 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10406 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10407 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10408 esac
10409 else :
10410 # compilation failed
10411 lt_cv_dlopen_self_static=no
10412 fi
10413 fi
10414 rm -fr conftest*
10415
10416
10417 fi
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10419 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10420 fi
10421
10422 CPPFLAGS="$save_CPPFLAGS"
10423 LDFLAGS="$save_LDFLAGS"
10424 LIBS="$save_LIBS"
10425 ;;
10426 esac
10427
10428 case $lt_cv_dlopen_self in
10429 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10430 *) enable_dlopen_self=unknown ;;
10431 esac
10432
10433 case $lt_cv_dlopen_self_static in
10434 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10435 *) enable_dlopen_self_static=unknown ;;
10436 esac
10437 fi
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455 striplib=
10456 old_striplib=
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10458 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10459 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10460 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10461 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10463 $as_echo "yes" >&6; }
10464 else
10465 # FIXME - insert some real tests, host_os isn't really good enough
10466 case $host_os in
10467 darwin*)
10468 if test -n "$STRIP" ; then
10469 striplib="$STRIP -x"
10470 old_striplib="$STRIP -S"
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10472 $as_echo "yes" >&6; }
10473 else
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10475 $as_echo "no" >&6; }
10476 fi
10477 ;;
10478 *)
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10480 $as_echo "no" >&6; }
10481 ;;
10482 esac
10483 fi
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496 # Report which library types will actually be built
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10498 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10500 $as_echo "$can_build_shared" >&6; }
10501
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10503 $as_echo_n "checking whether to build shared libraries... " >&6; }
10504 test "$can_build_shared" = "no" && enable_shared=no
10505
10506 # On AIX, shared libraries and static libraries use the same namespace, and
10507 # are all built from PIC.
10508 case $host_os in
10509 aix3*)
10510 test "$enable_shared" = yes && enable_static=no
10511 if test -n "$RANLIB"; then
10512 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10513 postinstall_cmds='$RANLIB $lib'
10514 fi
10515 ;;
10516
10517 aix[4-9]*)
10518 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10519 test "$enable_shared" = yes && enable_static=no
10520 fi
10521 ;;
10522 esac
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10524 $as_echo "$enable_shared" >&6; }
10525
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10527 $as_echo_n "checking whether to build static libraries... " >&6; }
10528 # Make sure either enable_shared or enable_static is yes.
10529 test "$enable_shared" = yes || enable_static=yes
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10531 $as_echo "$enable_static" >&6; }
10532
10533
10534
10535
10536 fi
10537 ac_ext=c
10538 ac_cpp='$CPP $CPPFLAGS'
10539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10542
10543 CC="$lt_save_CC"
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557 ac_config_commands="$ac_config_commands libtool"
10558
10559
10560
10561
10562 # Only expand once:
10563
10564
10565
10566 if test x"$CONFIG_SHELL" = x; then
10567 CONFIG_SHELL="$SHELL"
10568 fi
10569
10570 ac_ext=c
10571 ac_cpp='$CPP $CPPFLAGS'
10572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10575 if test -n "$ac_tool_prefix"; then
10576 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10577 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10579 $as_echo_n "checking for $ac_word... " >&6; }
10580 if ${ac_cv_prog_CC+:} false; then :
10581 $as_echo_n "(cached) " >&6
10582 else
10583 if test -n "$CC"; then
10584 ac_cv_prog_CC="$CC" # Let the user override the test.
10585 else
10586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587 for as_dir in $PATH
10588 do
10589 IFS=$as_save_IFS
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
10592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10593 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10595 break 2
10596 fi
10597 done
10598 done
10599 IFS=$as_save_IFS
10600
10601 fi
10602 fi
10603 CC=$ac_cv_prog_CC
10604 if test -n "$CC"; then
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10606 $as_echo "$CC" >&6; }
10607 else
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10610 fi
10611
10612
10613 fi
10614 if test -z "$ac_cv_prog_CC"; then
10615 ac_ct_CC=$CC
10616 # Extract the first word of "gcc", so it can be a program name with args.
10617 set dummy gcc; ac_word=$2
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10619 $as_echo_n "checking for $ac_word... " >&6; }
10620 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10621 $as_echo_n "(cached) " >&6
10622 else
10623 if test -n "$ac_ct_CC"; then
10624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10625 else
10626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627 for as_dir in $PATH
10628 do
10629 IFS=$as_save_IFS
10630 test -z "$as_dir" && as_dir=.
10631 for ac_exec_ext in '' $ac_executable_extensions; do
10632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10633 ac_cv_prog_ac_ct_CC="gcc"
10634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10635 break 2
10636 fi
10637 done
10638 done
10639 IFS=$as_save_IFS
10640
10641 fi
10642 fi
10643 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10644 if test -n "$ac_ct_CC"; then
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10646 $as_echo "$ac_ct_CC" >&6; }
10647 else
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649 $as_echo "no" >&6; }
10650 fi
10651
10652 if test "x$ac_ct_CC" = x; then
10653 CC=""
10654 else
10655 case $cross_compiling:$ac_tool_warned in
10656 yes:)
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10659 ac_tool_warned=yes ;;
10660 esac
10661 CC=$ac_ct_CC
10662 fi
10663 else
10664 CC="$ac_cv_prog_CC"
10665 fi
10666
10667 if test -z "$CC"; then
10668 if test -n "$ac_tool_prefix"; then
10669 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10670 set dummy ${ac_tool_prefix}cc; ac_word=$2
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10672 $as_echo_n "checking for $ac_word... " >&6; }
10673 if ${ac_cv_prog_CC+:} false; then :
10674 $as_echo_n "(cached) " >&6
10675 else
10676 if test -n "$CC"; then
10677 ac_cv_prog_CC="$CC" # Let the user override the test.
10678 else
10679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10680 for as_dir in $PATH
10681 do
10682 IFS=$as_save_IFS
10683 test -z "$as_dir" && as_dir=.
10684 for ac_exec_ext in '' $ac_executable_extensions; do
10685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10686 ac_cv_prog_CC="${ac_tool_prefix}cc"
10687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10688 break 2
10689 fi
10690 done
10691 done
10692 IFS=$as_save_IFS
10693
10694 fi
10695 fi
10696 CC=$ac_cv_prog_CC
10697 if test -n "$CC"; then
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10699 $as_echo "$CC" >&6; }
10700 else
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10702 $as_echo "no" >&6; }
10703 fi
10704
10705
10706 fi
10707 fi
10708 if test -z "$CC"; then
10709 # Extract the first word of "cc", so it can be a program name with args.
10710 set dummy cc; ac_word=$2
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10712 $as_echo_n "checking for $ac_word... " >&6; }
10713 if ${ac_cv_prog_CC+:} false; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 if test -n "$CC"; then
10717 ac_cv_prog_CC="$CC" # Let the user override the test.
10718 else
10719 ac_prog_rejected=no
10720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721 for as_dir in $PATH
10722 do
10723 IFS=$as_save_IFS
10724 test -z "$as_dir" && as_dir=.
10725 for ac_exec_ext in '' $ac_executable_extensions; do
10726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10727 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10728 ac_prog_rejected=yes
10729 continue
10730 fi
10731 ac_cv_prog_CC="cc"
10732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10733 break 2
10734 fi
10735 done
10736 done
10737 IFS=$as_save_IFS
10738
10739 if test $ac_prog_rejected = yes; then
10740 # We found a bogon in the path, so make sure we never use it.
10741 set dummy $ac_cv_prog_CC
10742 shift
10743 if test $# != 0; then
10744 # We chose a different compiler from the bogus one.
10745 # However, it has the same basename, so the bogon will be chosen
10746 # first if we set CC to just the basename; use the full file name.
10747 shift
10748 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10749 fi
10750 fi
10751 fi
10752 fi
10753 CC=$ac_cv_prog_CC
10754 if test -n "$CC"; then
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10756 $as_echo "$CC" >&6; }
10757 else
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10759 $as_echo "no" >&6; }
10760 fi
10761
10762
10763 fi
10764 if test -z "$CC"; then
10765 if test -n "$ac_tool_prefix"; then
10766 for ac_prog in cl.exe
10767 do
10768 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10769 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10771 $as_echo_n "checking for $ac_word... " >&6; }
10772 if ${ac_cv_prog_CC+:} false; then :
10773 $as_echo_n "(cached) " >&6
10774 else
10775 if test -n "$CC"; then
10776 ac_cv_prog_CC="$CC" # Let the user override the test.
10777 else
10778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779 for as_dir in $PATH
10780 do
10781 IFS=$as_save_IFS
10782 test -z "$as_dir" && as_dir=.
10783 for ac_exec_ext in '' $ac_executable_extensions; do
10784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10785 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10787 break 2
10788 fi
10789 done
10790 done
10791 IFS=$as_save_IFS
10792
10793 fi
10794 fi
10795 CC=$ac_cv_prog_CC
10796 if test -n "$CC"; then
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10798 $as_echo "$CC" >&6; }
10799 else
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 $as_echo "no" >&6; }
10802 fi
10803
10804
10805 test -n "$CC" && break
10806 done
10807 fi
10808 if test -z "$CC"; then
10809 ac_ct_CC=$CC
10810 for ac_prog in cl.exe
10811 do
10812 # Extract the first word of "$ac_prog", so it can be a program name with args.
10813 set dummy $ac_prog; ac_word=$2
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10815 $as_echo_n "checking for $ac_word... " >&6; }
10816 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10817 $as_echo_n "(cached) " >&6
10818 else
10819 if test -n "$ac_ct_CC"; then
10820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10821 else
10822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823 for as_dir in $PATH
10824 do
10825 IFS=$as_save_IFS
10826 test -z "$as_dir" && as_dir=.
10827 for ac_exec_ext in '' $ac_executable_extensions; do
10828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10829 ac_cv_prog_ac_ct_CC="$ac_prog"
10830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10831 break 2
10832 fi
10833 done
10834 done
10835 IFS=$as_save_IFS
10836
10837 fi
10838 fi
10839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10840 if test -n "$ac_ct_CC"; then
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10842 $as_echo "$ac_ct_CC" >&6; }
10843 else
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845 $as_echo "no" >&6; }
10846 fi
10847
10848
10849 test -n "$ac_ct_CC" && break
10850 done
10851
10852 if test "x$ac_ct_CC" = x; then
10853 CC=""
10854 else
10855 case $cross_compiling:$ac_tool_warned in
10856 yes:)
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10859 ac_tool_warned=yes ;;
10860 esac
10861 CC=$ac_ct_CC
10862 fi
10863 fi
10864
10865 fi
10866
10867
10868 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10870 as_fn_error $? "no acceptable C compiler found in \$PATH
10871 See \`config.log' for more details" "$LINENO" 5; }
10872
10873 # Provide some information about the compiler.
10874 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10875 set X $ac_compile
10876 ac_compiler=$2
10877 for ac_option in --version -v -V -qversion; do
10878 { { ac_try="$ac_compiler $ac_option >&5"
10879 case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10882 esac
10883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10884 $as_echo "$ac_try_echo"; } >&5
10885 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10886 ac_status=$?
10887 if test -s conftest.err; then
10888 sed '10a\
10889 ... rest of stderr output deleted ...
10890 10q' conftest.err >conftest.er1
10891 cat conftest.er1 >&5
10892 fi
10893 rm -f conftest.er1 conftest.err
10894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10895 test $ac_status = 0; }
10896 done
10897
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10899 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10900 if ${ac_cv_c_compiler_gnu+:} false; then :
10901 $as_echo_n "(cached) " >&6
10902 else
10903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10904 /* end confdefs.h. */
10905
10906 int
10907 main ()
10908 {
10909 #ifndef __GNUC__
10910 choke me
10911 #endif
10912
10913 ;
10914 return 0;
10915 }
10916 _ACEOF
10917 if ac_fn_c_try_compile "$LINENO"; then :
10918 ac_compiler_gnu=yes
10919 else
10920 ac_compiler_gnu=no
10921 fi
10922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10923 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10924
10925 fi
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10927 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10928 if test $ac_compiler_gnu = yes; then
10929 GCC=yes
10930 else
10931 GCC=
10932 fi
10933 ac_test_CFLAGS=${CFLAGS+set}
10934 ac_save_CFLAGS=$CFLAGS
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10936 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10937 if ${ac_cv_prog_cc_g+:} false; then :
10938 $as_echo_n "(cached) " >&6
10939 else
10940 ac_save_c_werror_flag=$ac_c_werror_flag
10941 ac_c_werror_flag=yes
10942 ac_cv_prog_cc_g=no
10943 CFLAGS="-g"
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10946
10947 int
10948 main ()
10949 {
10950
10951 ;
10952 return 0;
10953 }
10954 _ACEOF
10955 if ac_fn_c_try_compile "$LINENO"; then :
10956 ac_cv_prog_cc_g=yes
10957 else
10958 CFLAGS=""
10959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10960 /* end confdefs.h. */
10961
10962 int
10963 main ()
10964 {
10965
10966 ;
10967 return 0;
10968 }
10969 _ACEOF
10970 if ac_fn_c_try_compile "$LINENO"; then :
10971
10972 else
10973 ac_c_werror_flag=$ac_save_c_werror_flag
10974 CFLAGS="-g"
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h. */
10977
10978 int
10979 main ()
10980 {
10981
10982 ;
10983 return 0;
10984 }
10985 _ACEOF
10986 if ac_fn_c_try_compile "$LINENO"; then :
10987 ac_cv_prog_cc_g=yes
10988 fi
10989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10990 fi
10991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10992 fi
10993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10994 ac_c_werror_flag=$ac_save_c_werror_flag
10995 fi
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10997 $as_echo "$ac_cv_prog_cc_g" >&6; }
10998 if test "$ac_test_CFLAGS" = set; then
10999 CFLAGS=$ac_save_CFLAGS
11000 elif test $ac_cv_prog_cc_g = yes; then
11001 if test "$GCC" = yes; then
11002 CFLAGS="-g -O2"
11003 else
11004 CFLAGS="-g"
11005 fi
11006 else
11007 if test "$GCC" = yes; then
11008 CFLAGS="-O2"
11009 else
11010 CFLAGS=
11011 fi
11012 fi
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11014 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11015 if ${ac_cv_prog_cc_c89+:} false; then :
11016 $as_echo_n "(cached) " >&6
11017 else
11018 ac_cv_prog_cc_c89=no
11019 ac_save_CC=$CC
11020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11021 /* end confdefs.h. */
11022 #include <stdarg.h>
11023 #include <stdio.h>
11024 struct stat;
11025 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11026 struct buf { int x; };
11027 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11028 static char *e (p, i)
11029 char **p;
11030 int i;
11031 {
11032 return p[i];
11033 }
11034 static char *f (char * (*g) (char **, int), char **p, ...)
11035 {
11036 char *s;
11037 va_list v;
11038 va_start (v,p);
11039 s = g (p, va_arg (v,int));
11040 va_end (v);
11041 return s;
11042 }
11043
11044 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11045 function prototypes and stuff, but not '\xHH' hex character constants.
11046 These don't provoke an error unfortunately, instead are silently treated
11047 as 'x'. The following induces an error, until -std is added to get
11048 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11049 array size at least. It's necessary to write '\x00'==0 to get something
11050 that's true only with -std. */
11051 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11052
11053 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11054 inside strings and character constants. */
11055 #define FOO(x) 'x'
11056 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11057
11058 int test (int i, double x);
11059 struct s1 {int (*f) (int a);};
11060 struct s2 {int (*f) (double a);};
11061 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11062 int argc;
11063 char **argv;
11064 int
11065 main ()
11066 {
11067 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11068 ;
11069 return 0;
11070 }
11071 _ACEOF
11072 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11073 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11074 do
11075 CC="$ac_save_CC $ac_arg"
11076 if ac_fn_c_try_compile "$LINENO"; then :
11077 ac_cv_prog_cc_c89=$ac_arg
11078 fi
11079 rm -f core conftest.err conftest.$ac_objext
11080 test "x$ac_cv_prog_cc_c89" != "xno" && break
11081 done
11082 rm -f conftest.$ac_ext
11083 CC=$ac_save_CC
11084
11085 fi
11086 # AC_CACHE_VAL
11087 case "x$ac_cv_prog_cc_c89" in
11088 x)
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11090 $as_echo "none needed" >&6; } ;;
11091 xno)
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11093 $as_echo "unsupported" >&6; } ;;
11094 *)
11095 CC="$CC $ac_cv_prog_cc_c89"
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11097 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11098 esac
11099 if test "x$ac_cv_prog_cc_c89" != xno; then :
11100
11101 fi
11102
11103 ac_ext=c
11104 ac_cpp='$CPP $CPPFLAGS'
11105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11108
11109 ac_ext=cpp
11110 ac_cpp='$CXXCPP $CPPFLAGS'
11111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11114 if test -z "$CXX"; then
11115 if test -n "$CCC"; then
11116 CXX=$CCC
11117 else
11118 if test -n "$ac_tool_prefix"; then
11119 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11120 do
11121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11124 $as_echo_n "checking for $ac_word... " >&6; }
11125 if ${ac_cv_prog_CXX+:} false; then :
11126 $as_echo_n "(cached) " >&6
11127 else
11128 if test -n "$CXX"; then
11129 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11130 else
11131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132 for as_dir in $PATH
11133 do
11134 IFS=$as_save_IFS
11135 test -z "$as_dir" && as_dir=.
11136 for ac_exec_ext in '' $ac_executable_extensions; do
11137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11138 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11140 break 2
11141 fi
11142 done
11143 done
11144 IFS=$as_save_IFS
11145
11146 fi
11147 fi
11148 CXX=$ac_cv_prog_CXX
11149 if test -n "$CXX"; then
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11151 $as_echo "$CXX" >&6; }
11152 else
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154 $as_echo "no" >&6; }
11155 fi
11156
11157
11158 test -n "$CXX" && break
11159 done
11160 fi
11161 if test -z "$CXX"; then
11162 ac_ct_CXX=$CXX
11163 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11164 do
11165 # Extract the first word of "$ac_prog", so it can be a program name with args.
11166 set dummy $ac_prog; ac_word=$2
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168 $as_echo_n "checking for $ac_word... " >&6; }
11169 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11170 $as_echo_n "(cached) " >&6
11171 else
11172 if test -n "$ac_ct_CXX"; then
11173 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11174 else
11175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176 for as_dir in $PATH
11177 do
11178 IFS=$as_save_IFS
11179 test -z "$as_dir" && as_dir=.
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11182 ac_cv_prog_ac_ct_CXX="$ac_prog"
11183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11184 break 2
11185 fi
11186 done
11187 done
11188 IFS=$as_save_IFS
11189
11190 fi
11191 fi
11192 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11193 if test -n "$ac_ct_CXX"; then
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11195 $as_echo "$ac_ct_CXX" >&6; }
11196 else
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198 $as_echo "no" >&6; }
11199 fi
11200
11201
11202 test -n "$ac_ct_CXX" && break
11203 done
11204
11205 if test "x$ac_ct_CXX" = x; then
11206 CXX="g++"
11207 else
11208 case $cross_compiling:$ac_tool_warned in
11209 yes:)
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11212 ac_tool_warned=yes ;;
11213 esac
11214 CXX=$ac_ct_CXX
11215 fi
11216 fi
11217
11218 fi
11219 fi
11220 # Provide some information about the compiler.
11221 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11222 set X $ac_compile
11223 ac_compiler=$2
11224 for ac_option in --version -v -V -qversion; do
11225 { { ac_try="$ac_compiler $ac_option >&5"
11226 case "(($ac_try" in
11227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11228 *) ac_try_echo=$ac_try;;
11229 esac
11230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11231 $as_echo "$ac_try_echo"; } >&5
11232 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11233 ac_status=$?
11234 if test -s conftest.err; then
11235 sed '10a\
11236 ... rest of stderr output deleted ...
11237 10q' conftest.err >conftest.er1
11238 cat conftest.er1 >&5
11239 fi
11240 rm -f conftest.er1 conftest.err
11241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11242 test $ac_status = 0; }
11243 done
11244
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11246 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11247 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11248 $as_echo_n "(cached) " >&6
11249 else
11250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11251 /* end confdefs.h. */
11252
11253 int
11254 main ()
11255 {
11256 #ifndef __GNUC__
11257 choke me
11258 #endif
11259
11260 ;
11261 return 0;
11262 }
11263 _ACEOF
11264 if ac_fn_cxx_try_compile "$LINENO"; then :
11265 ac_compiler_gnu=yes
11266 else
11267 ac_compiler_gnu=no
11268 fi
11269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11270 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11271
11272 fi
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11274 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11275 if test $ac_compiler_gnu = yes; then
11276 GXX=yes
11277 else
11278 GXX=
11279 fi
11280 ac_test_CXXFLAGS=${CXXFLAGS+set}
11281 ac_save_CXXFLAGS=$CXXFLAGS
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11283 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11284 if ${ac_cv_prog_cxx_g+:} false; then :
11285 $as_echo_n "(cached) " >&6
11286 else
11287 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11288 ac_cxx_werror_flag=yes
11289 ac_cv_prog_cxx_g=no
11290 CXXFLAGS="-g"
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h. */
11293
11294 int
11295 main ()
11296 {
11297
11298 ;
11299 return 0;
11300 }
11301 _ACEOF
11302 if ac_fn_cxx_try_compile "$LINENO"; then :
11303 ac_cv_prog_cxx_g=yes
11304 else
11305 CXXFLAGS=""
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11308
11309 int
11310 main ()
11311 {
11312
11313 ;
11314 return 0;
11315 }
11316 _ACEOF
11317 if ac_fn_cxx_try_compile "$LINENO"; then :
11318
11319 else
11320 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11321 CXXFLAGS="-g"
11322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h. */
11324
11325 int
11326 main ()
11327 {
11328
11329 ;
11330 return 0;
11331 }
11332 _ACEOF
11333 if ac_fn_cxx_try_compile "$LINENO"; then :
11334 ac_cv_prog_cxx_g=yes
11335 fi
11336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11337 fi
11338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11339 fi
11340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11341 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11342 fi
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11344 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11345 if test "$ac_test_CXXFLAGS" = set; then
11346 CXXFLAGS=$ac_save_CXXFLAGS
11347 elif test $ac_cv_prog_cxx_g = yes; then
11348 if test "$GXX" = yes; then
11349 CXXFLAGS="-g -O2"
11350 else
11351 CXXFLAGS="-g"
11352 fi
11353 else
11354 if test "$GXX" = yes; then
11355 CXXFLAGS="-O2"
11356 else
11357 CXXFLAGS=
11358 fi
11359 fi
11360 ac_ext=c
11361 ac_cpp='$CPP $CPPFLAGS'
11362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11365
11366
11367 ac_ext=cpp
11368 ac_cpp='$CXXCPP $CPPFLAGS'
11369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11372 if test -z "$CXX"; then
11373 if test -n "$CCC"; then
11374 CXX=$CCC
11375 else
11376 if test -n "$ac_tool_prefix"; then
11377 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11378 do
11379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11380 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11382 $as_echo_n "checking for $ac_word... " >&6; }
11383 if ${ac_cv_prog_CXX+:} false; then :
11384 $as_echo_n "(cached) " >&6
11385 else
11386 if test -n "$CXX"; then
11387 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11388 else
11389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11390 for as_dir in $PATH
11391 do
11392 IFS=$as_save_IFS
11393 test -z "$as_dir" && as_dir=.
11394 for ac_exec_ext in '' $ac_executable_extensions; do
11395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11396 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11398 break 2
11399 fi
11400 done
11401 done
11402 IFS=$as_save_IFS
11403
11404 fi
11405 fi
11406 CXX=$ac_cv_prog_CXX
11407 if test -n "$CXX"; then
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11409 $as_echo "$CXX" >&6; }
11410 else
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412 $as_echo "no" >&6; }
11413 fi
11414
11415
11416 test -n "$CXX" && break
11417 done
11418 fi
11419 if test -z "$CXX"; then
11420 ac_ct_CXX=$CXX
11421 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11422 do
11423 # Extract the first word of "$ac_prog", so it can be a program name with args.
11424 set dummy $ac_prog; ac_word=$2
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11426 $as_echo_n "checking for $ac_word... " >&6; }
11427 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11428 $as_echo_n "(cached) " >&6
11429 else
11430 if test -n "$ac_ct_CXX"; then
11431 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11432 else
11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434 for as_dir in $PATH
11435 do
11436 IFS=$as_save_IFS
11437 test -z "$as_dir" && as_dir=.
11438 for ac_exec_ext in '' $ac_executable_extensions; do
11439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11440 ac_cv_prog_ac_ct_CXX="$ac_prog"
11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11442 break 2
11443 fi
11444 done
11445 done
11446 IFS=$as_save_IFS
11447
11448 fi
11449 fi
11450 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11451 if test -n "$ac_ct_CXX"; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11453 $as_echo "$ac_ct_CXX" >&6; }
11454 else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11457 fi
11458
11459
11460 test -n "$ac_ct_CXX" && break
11461 done
11462
11463 if test "x$ac_ct_CXX" = x; then
11464 CXX="g++"
11465 else
11466 case $cross_compiling:$ac_tool_warned in
11467 yes:)
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11470 ac_tool_warned=yes ;;
11471 esac
11472 CXX=$ac_ct_CXX
11473 fi
11474 fi
11475
11476 fi
11477 fi
11478 # Provide some information about the compiler.
11479 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11480 set X $ac_compile
11481 ac_compiler=$2
11482 for ac_option in --version -v -V -qversion; do
11483 { { ac_try="$ac_compiler $ac_option >&5"
11484 case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11487 esac
11488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11489 $as_echo "$ac_try_echo"; } >&5
11490 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11491 ac_status=$?
11492 if test -s conftest.err; then
11493 sed '10a\
11494 ... rest of stderr output deleted ...
11495 10q' conftest.err >conftest.er1
11496 cat conftest.er1 >&5
11497 fi
11498 rm -f conftest.er1 conftest.err
11499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11500 test $ac_status = 0; }
11501 done
11502
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11504 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11505 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11506 $as_echo_n "(cached) " >&6
11507 else
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11510
11511 int
11512 main ()
11513 {
11514 #ifndef __GNUC__
11515 choke me
11516 #endif
11517
11518 ;
11519 return 0;
11520 }
11521 _ACEOF
11522 if ac_fn_cxx_try_compile "$LINENO"; then :
11523 ac_compiler_gnu=yes
11524 else
11525 ac_compiler_gnu=no
11526 fi
11527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11528 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11529
11530 fi
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11532 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11533 if test $ac_compiler_gnu = yes; then
11534 GXX=yes
11535 else
11536 GXX=
11537 fi
11538 ac_test_CXXFLAGS=${CXXFLAGS+set}
11539 ac_save_CXXFLAGS=$CXXFLAGS
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11541 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11542 if ${ac_cv_prog_cxx_g+:} false; then :
11543 $as_echo_n "(cached) " >&6
11544 else
11545 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11546 ac_cxx_werror_flag=yes
11547 ac_cv_prog_cxx_g=no
11548 CXXFLAGS="-g"
11549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550 /* end confdefs.h. */
11551
11552 int
11553 main ()
11554 {
11555
11556 ;
11557 return 0;
11558 }
11559 _ACEOF
11560 if ac_fn_cxx_try_compile "$LINENO"; then :
11561 ac_cv_prog_cxx_g=yes
11562 else
11563 CXXFLAGS=""
11564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565 /* end confdefs.h. */
11566
11567 int
11568 main ()
11569 {
11570
11571 ;
11572 return 0;
11573 }
11574 _ACEOF
11575 if ac_fn_cxx_try_compile "$LINENO"; then :
11576
11577 else
11578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11579 CXXFLAGS="-g"
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11582
11583 int
11584 main ()
11585 {
11586
11587 ;
11588 return 0;
11589 }
11590 _ACEOF
11591 if ac_fn_cxx_try_compile "$LINENO"; then :
11592 ac_cv_prog_cxx_g=yes
11593 fi
11594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11595 fi
11596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11597 fi
11598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11599 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11600 fi
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11602 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11603 if test "$ac_test_CXXFLAGS" = set; then
11604 CXXFLAGS=$ac_save_CXXFLAGS
11605 elif test $ac_cv_prog_cxx_g = yes; then
11606 if test "$GXX" = yes; then
11607 CXXFLAGS="-g -O2"
11608 else
11609 CXXFLAGS="-g"
11610 fi
11611 else
11612 if test "$GXX" = yes; then
11613 CXXFLAGS="-O2"
11614 else
11615 CXXFLAGS=
11616 fi
11617 fi
11618 ac_ext=c
11619 ac_cpp='$CPP $CPPFLAGS'
11620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11623
11624 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11625 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11626 (test "X$CXX" != "Xg++"))) ; then
11627 ac_ext=cpp
11628 ac_cpp='$CXXCPP $CPPFLAGS'
11629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11633 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11634 if test -z "$CXXCPP"; then
11635 if ${ac_cv_prog_CXXCPP+:} false; then :
11636 $as_echo_n "(cached) " >&6
11637 else
11638 # Double quotes because CXXCPP needs to be expanded
11639 for CXXCPP in "$CXX -E" "/lib/cpp"
11640 do
11641 ac_preproc_ok=false
11642 for ac_cxx_preproc_warn_flag in '' yes
11643 do
11644 # Use a header file that comes with gcc, so configuring glibc
11645 # with a fresh cross-compiler works.
11646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11647 # <limits.h> exists even on freestanding compilers.
11648 # On the NeXT, cc -E runs the code through the compiler's parser,
11649 # not just through cpp. "Syntax error" is here to catch this case.
11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651 /* end confdefs.h. */
11652 #ifdef __STDC__
11653 # include <limits.h>
11654 #else
11655 # include <assert.h>
11656 #endif
11657 Syntax error
11658 _ACEOF
11659 if ac_fn_cxx_try_cpp "$LINENO"; then :
11660
11661 else
11662 # Broken: fails on valid input.
11663 continue
11664 fi
11665 rm -f conftest.err conftest.i conftest.$ac_ext
11666
11667 # OK, works on sane cases. Now check whether nonexistent headers
11668 # can be detected and how.
11669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h. */
11671 #include <ac_nonexistent.h>
11672 _ACEOF
11673 if ac_fn_cxx_try_cpp "$LINENO"; then :
11674 # Broken: success on invalid input.
11675 continue
11676 else
11677 # Passes both tests.
11678 ac_preproc_ok=:
11679 break
11680 fi
11681 rm -f conftest.err conftest.i conftest.$ac_ext
11682
11683 done
11684 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11685 rm -f conftest.i conftest.err conftest.$ac_ext
11686 if $ac_preproc_ok; then :
11687 break
11688 fi
11689
11690 done
11691 ac_cv_prog_CXXCPP=$CXXCPP
11692
11693 fi
11694 CXXCPP=$ac_cv_prog_CXXCPP
11695 else
11696 ac_cv_prog_CXXCPP=$CXXCPP
11697 fi
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11699 $as_echo "$CXXCPP" >&6; }
11700 ac_preproc_ok=false
11701 for ac_cxx_preproc_warn_flag in '' yes
11702 do
11703 # Use a header file that comes with gcc, so configuring glibc
11704 # with a fresh cross-compiler works.
11705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11706 # <limits.h> exists even on freestanding compilers.
11707 # On the NeXT, cc -E runs the code through the compiler's parser,
11708 # not just through cpp. "Syntax error" is here to catch this case.
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h. */
11711 #ifdef __STDC__
11712 # include <limits.h>
11713 #else
11714 # include <assert.h>
11715 #endif
11716 Syntax error
11717 _ACEOF
11718 if ac_fn_cxx_try_cpp "$LINENO"; then :
11719
11720 else
11721 # Broken: fails on valid input.
11722 continue
11723 fi
11724 rm -f conftest.err conftest.i conftest.$ac_ext
11725
11726 # OK, works on sane cases. Now check whether nonexistent headers
11727 # can be detected and how.
11728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11729 /* end confdefs.h. */
11730 #include <ac_nonexistent.h>
11731 _ACEOF
11732 if ac_fn_cxx_try_cpp "$LINENO"; then :
11733 # Broken: success on invalid input.
11734 continue
11735 else
11736 # Passes both tests.
11737 ac_preproc_ok=:
11738 break
11739 fi
11740 rm -f conftest.err conftest.i conftest.$ac_ext
11741
11742 done
11743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11744 rm -f conftest.i conftest.err conftest.$ac_ext
11745 if $ac_preproc_ok; then :
11746
11747 else
11748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11750 _lt_caught_CXX_error=yes; }
11751 fi
11752
11753 ac_ext=c
11754 ac_cpp='$CPP $CPPFLAGS'
11755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11758
11759 else
11760 _lt_caught_CXX_error=yes
11761 fi
11762
11763
11764
11765
11766 ac_ext=cpp
11767 ac_cpp='$CXXCPP $CPPFLAGS'
11768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11771
11772 archive_cmds_need_lc_CXX=no
11773 allow_undefined_flag_CXX=
11774 always_export_symbols_CXX=no
11775 archive_expsym_cmds_CXX=
11776 compiler_needs_object_CXX=no
11777 export_dynamic_flag_spec_CXX=
11778 hardcode_direct_CXX=no
11779 hardcode_direct_absolute_CXX=no
11780 hardcode_libdir_flag_spec_CXX=
11781 hardcode_libdir_flag_spec_ld_CXX=
11782 hardcode_libdir_separator_CXX=
11783 hardcode_minus_L_CXX=no
11784 hardcode_shlibpath_var_CXX=unsupported
11785 hardcode_automatic_CXX=no
11786 inherit_rpath_CXX=no
11787 module_cmds_CXX=
11788 module_expsym_cmds_CXX=
11789 link_all_deplibs_CXX=unknown
11790 old_archive_cmds_CXX=$old_archive_cmds
11791 no_undefined_flag_CXX=
11792 whole_archive_flag_spec_CXX=
11793 enable_shared_with_static_runtimes_CXX=no
11794
11795 # Source file extension for C++ test sources.
11796 ac_ext=cpp
11797
11798 # Object file extension for compiled C++ test sources.
11799 objext=o
11800 objext_CXX=$objext
11801
11802 # No sense in running all these tests if we already determined that
11803 # the CXX compiler isn't working. Some variables (like enable_shared)
11804 # are currently assumed to apply to all compilers on this platform,
11805 # and will be corrupted by setting them based on a non-working compiler.
11806 if test "$_lt_caught_CXX_error" != yes; then
11807 # Code to be used in simple compile tests
11808 lt_simple_compile_test_code="int some_variable = 0;"
11809
11810 # Code to be used in simple link tests
11811 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11812
11813 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11814
11815
11816
11817
11818
11819
11820 # If no C compiler was specified, use CC.
11821 LTCC=${LTCC-"$CC"}
11822
11823 # If no C compiler flags were specified, use CFLAGS.
11824 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11825
11826 # Allow CC to be a program name with arguments.
11827 compiler=$CC
11828
11829
11830 # save warnings/boilerplate of simple test code
11831 ac_outfile=conftest.$ac_objext
11832 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11833 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11834 _lt_compiler_boilerplate=`cat conftest.err`
11835 $RM conftest*
11836
11837 ac_outfile=conftest.$ac_objext
11838 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11839 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11840 _lt_linker_boilerplate=`cat conftest.err`
11841 $RM -r conftest*
11842
11843
11844 # Allow CC to be a program name with arguments.
11845 lt_save_CC=$CC
11846 lt_save_LD=$LD
11847 lt_save_GCC=$GCC
11848 GCC=$GXX
11849 lt_save_with_gnu_ld=$with_gnu_ld
11850 lt_save_path_LD=$lt_cv_path_LD
11851 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11852 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11853 else
11854 $as_unset lt_cv_prog_gnu_ld
11855 fi
11856 if test -n "${lt_cv_path_LDCXX+set}"; then
11857 lt_cv_path_LD=$lt_cv_path_LDCXX
11858 else
11859 $as_unset lt_cv_path_LD
11860 fi
11861 test -z "${LDCXX+set}" || LD=$LDCXX
11862 CC=${CXX-"c++"}
11863 compiler=$CC
11864 compiler_CXX=$CC
11865 for cc_temp in $compiler""; do
11866 case $cc_temp in
11867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11869 \-*) ;;
11870 *) break;;
11871 esac
11872 done
11873 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11874
11875
11876 if test -n "$compiler"; then
11877 # We don't want -fno-exception when compiling C++ code, so set the
11878 # no_builtin_flag separately
11879 if test "$GXX" = yes; then
11880 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11881 else
11882 lt_prog_compiler_no_builtin_flag_CXX=
11883 fi
11884
11885 if test "$GXX" = yes; then
11886 # Set up default GNU C++ configuration
11887
11888
11889
11890 # Check whether --with-gnu-ld was given.
11891 if test "${with_gnu_ld+set}" = set; then :
11892 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11893 else
11894 with_gnu_ld=no
11895 fi
11896
11897 ac_prog=ld
11898 if test "$GCC" = yes; then
11899 # Check if gcc -print-prog-name=ld gives a path.
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11901 $as_echo_n "checking for ld used by $CC... " >&6; }
11902 case $host in
11903 *-*-mingw*)
11904 # gcc leaves a trailing carriage return which upsets mingw
11905 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11906 *)
11907 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11908 esac
11909 case $ac_prog in
11910 # Accept absolute paths.
11911 [\\/]* | ?:[\\/]*)
11912 re_direlt='/[^/][^/]*/\.\./'
11913 # Canonicalize the pathname of ld
11914 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11915 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11916 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11917 done
11918 test -z "$LD" && LD="$ac_prog"
11919 ;;
11920 "")
11921 # If it fails, then pretend we aren't using GCC.
11922 ac_prog=ld
11923 ;;
11924 *)
11925 # If it is relative, then search for the first ld in PATH.
11926 with_gnu_ld=unknown
11927 ;;
11928 esac
11929 elif test "$with_gnu_ld" = yes; then
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11931 $as_echo_n "checking for GNU ld... " >&6; }
11932 else
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11934 $as_echo_n "checking for non-GNU ld... " >&6; }
11935 fi
11936 if ${lt_cv_path_LD+:} false; then :
11937 $as_echo_n "(cached) " >&6
11938 else
11939 if test -z "$LD"; then
11940 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11941 for ac_dir in $PATH; do
11942 IFS="$lt_save_ifs"
11943 test -z "$ac_dir" && ac_dir=.
11944 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11945 lt_cv_path_LD="$ac_dir/$ac_prog"
11946 # Check to see if the program is GNU ld. I'd rather use --version,
11947 # but apparently some variants of GNU ld only accept -v.
11948 # Break only if it was the GNU/non-GNU ld that we prefer.
11949 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11950 *GNU* | *'with BFD'*)
11951 test "$with_gnu_ld" != no && break
11952 ;;
11953 *)
11954 test "$with_gnu_ld" != yes && break
11955 ;;
11956 esac
11957 fi
11958 done
11959 IFS="$lt_save_ifs"
11960 else
11961 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11962 fi
11963 fi
11964
11965 LD="$lt_cv_path_LD"
11966 if test -n "$LD"; then
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11968 $as_echo "$LD" >&6; }
11969 else
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971 $as_echo "no" >&6; }
11972 fi
11973 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11975 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11976 if ${lt_cv_prog_gnu_ld+:} false; then :
11977 $as_echo_n "(cached) " >&6
11978 else
11979 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11980 case `$LD -v 2>&1 </dev/null` in
11981 *GNU* | *'with BFD'*)
11982 lt_cv_prog_gnu_ld=yes
11983 ;;
11984 *)
11985 lt_cv_prog_gnu_ld=no
11986 ;;
11987 esac
11988 fi
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11990 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11991 with_gnu_ld=$lt_cv_prog_gnu_ld
11992
11993
11994
11995
11996
11997
11998
11999 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12000 # archiving commands below assume that GNU ld is being used.
12001 if test "$with_gnu_ld" = yes; then
12002 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12003 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12004
12005 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12006 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12007
12008 # If archive_cmds runs LD, not CC, wlarc should be empty
12009 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12010 # investigate it a little bit more. (MM)
12011 wlarc='${wl}'
12012
12013 # ancient GNU ld didn't support --whole-archive et. al.
12014 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12015 $GREP 'no-whole-archive' > /dev/null; then
12016 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12017 else
12018 whole_archive_flag_spec_CXX=
12019 fi
12020 else
12021 with_gnu_ld=no
12022 wlarc=
12023
12024 # A generic and very simple default shared library creation
12025 # command for GNU C++ for the case where it uses the native
12026 # linker, instead of GNU ld. If possible, this setting should
12027 # overridden to take advantage of the native linker features on
12028 # the platform it is being used on.
12029 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12030 fi
12031
12032 # Commands to make compiler produce verbose output that lists
12033 # what "hidden" libraries, object files and flags are used when
12034 # linking a shared library.
12035 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12036
12037 else
12038 GXX=no
12039 with_gnu_ld=no
12040 wlarc=
12041 fi
12042
12043 # PORTME: fill in a description of your system's C++ link characteristics
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12045 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12046 ld_shlibs_CXX=yes
12047 case $host_os in
12048 aix3*)
12049 # FIXME: insert proper C++ library support
12050 ld_shlibs_CXX=no
12051 ;;
12052 aix[4-9]*)
12053 if test "$host_cpu" = ia64; then
12054 # On IA64, the linker does run time linking by default, so we don't
12055 # have to do anything special.
12056 aix_use_runtimelinking=no
12057 exp_sym_flag='-Bexport'
12058 no_entry_flag=""
12059 else
12060 aix_use_runtimelinking=no
12061
12062 # Test if we are trying to use run time linking or normal
12063 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12064 # need to do runtime linking.
12065 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12066 for ld_flag in $LDFLAGS; do
12067 case $ld_flag in
12068 *-brtl*)
12069 aix_use_runtimelinking=yes
12070 break
12071 ;;
12072 esac
12073 done
12074 ;;
12075 esac
12076
12077 exp_sym_flag='-bexport'
12078 no_entry_flag='-bnoentry'
12079 fi
12080
12081 # When large executables or shared objects are built, AIX ld can
12082 # have problems creating the table of contents. If linking a library
12083 # or program results in "error TOC overflow" add -mminimal-toc to
12084 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12085 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12086
12087 archive_cmds_CXX=''
12088 hardcode_direct_CXX=yes
12089 hardcode_direct_absolute_CXX=yes
12090 hardcode_libdir_separator_CXX=':'
12091 link_all_deplibs_CXX=yes
12092 file_list_spec_CXX='${wl}-f,'
12093
12094 if test "$GXX" = yes; then
12095 case $host_os in aix4.[012]|aix4.[012].*)
12096 # We only want to do this on AIX 4.2 and lower, the check
12097 # below for broken collect2 doesn't work under 4.3+
12098 collect2name=`${CC} -print-prog-name=collect2`
12099 if test -f "$collect2name" &&
12100 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12101 then
12102 # We have reworked collect2
12103 :
12104 else
12105 # We have old collect2
12106 hardcode_direct_CXX=unsupported
12107 # It fails to find uninstalled libraries when the uninstalled
12108 # path is not listed in the libpath. Setting hardcode_minus_L
12109 # to unsupported forces relinking
12110 hardcode_minus_L_CXX=yes
12111 hardcode_libdir_flag_spec_CXX='-L$libdir'
12112 hardcode_libdir_separator_CXX=
12113 fi
12114 esac
12115 shared_flag='-shared'
12116 if test "$aix_use_runtimelinking" = yes; then
12117 shared_flag="$shared_flag "'${wl}-G'
12118 fi
12119 else
12120 # not using gcc
12121 if test "$host_cpu" = ia64; then
12122 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12123 # chokes on -Wl,-G. The following line is correct:
12124 shared_flag='-G'
12125 else
12126 if test "$aix_use_runtimelinking" = yes; then
12127 shared_flag='${wl}-G'
12128 else
12129 shared_flag='${wl}-bM:SRE'
12130 fi
12131 fi
12132 fi
12133
12134 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12135 # It seems that -bexpall does not export symbols beginning with
12136 # underscore (_), so it is better to generate a list of symbols to
12137 # export.
12138 always_export_symbols_CXX=yes
12139 if test "$aix_use_runtimelinking" = yes; then
12140 # Warning - without using the other runtime loading flags (-brtl),
12141 # -berok will link without error, but may produce a broken library.
12142 allow_undefined_flag_CXX='-berok'
12143 # Determine the default libpath from the value encoded in an empty
12144 # executable.
12145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12146 /* end confdefs.h. */
12147
12148 int
12149 main ()
12150 {
12151
12152 ;
12153 return 0;
12154 }
12155 _ACEOF
12156 if ac_fn_cxx_try_link "$LINENO"; then :
12157
12158 lt_aix_libpath_sed='
12159 /Import File Strings/,/^$/ {
12160 /^0/ {
12161 s/^0 *\(.*\)$/\1/
12162 p
12163 }
12164 }'
12165 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12166 # Check for a 64-bit object if we didn't find anything.
12167 if test -z "$aix_libpath"; then
12168 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12169 fi
12170 fi
12171 rm -f core conftest.err conftest.$ac_objext \
12172 conftest$ac_exeext conftest.$ac_ext
12173 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12174
12175 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12176
12177 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12178 else
12179 if test "$host_cpu" = ia64; then
12180 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12181 allow_undefined_flag_CXX="-z nodefs"
12182 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"
12183 else
12184 # Determine the default libpath from the value encoded in an
12185 # empty executable.
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12188
12189 int
12190 main ()
12191 {
12192
12193 ;
12194 return 0;
12195 }
12196 _ACEOF
12197 if ac_fn_cxx_try_link "$LINENO"; then :
12198
12199 lt_aix_libpath_sed='
12200 /Import File Strings/,/^$/ {
12201 /^0/ {
12202 s/^0 *\(.*\)$/\1/
12203 p
12204 }
12205 }'
12206 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12207 # Check for a 64-bit object if we didn't find anything.
12208 if test -z "$aix_libpath"; then
12209 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12210 fi
12211 fi
12212 rm -f core conftest.err conftest.$ac_objext \
12213 conftest$ac_exeext conftest.$ac_ext
12214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12215
12216 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12217 # Warning - without using the other run time loading flags,
12218 # -berok will link without error, but may produce a broken library.
12219 no_undefined_flag_CXX=' ${wl}-bernotok'
12220 allow_undefined_flag_CXX=' ${wl}-berok'
12221 # Exported symbols can be pulled into shared objects from archives
12222 whole_archive_flag_spec_CXX='$convenience'
12223 archive_cmds_need_lc_CXX=yes
12224 # This is similar to how AIX traditionally builds its shared
12225 # libraries.
12226 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12227 fi
12228 fi
12229 ;;
12230
12231 beos*)
12232 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12233 allow_undefined_flag_CXX=unsupported
12234 # Joseph Beckenbach <[email protected]> says some releases of gcc
12235 # support --undefined. This deserves some investigation. FIXME
12236 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12237 else
12238 ld_shlibs_CXX=no
12239 fi
12240 ;;
12241
12242 chorus*)
12243 case $cc_basename in
12244 *)
12245 # FIXME: insert proper C++ library support
12246 ld_shlibs_CXX=no
12247 ;;
12248 esac
12249 ;;
12250
12251 cygwin* | mingw* | pw32* | cegcc*)
12252 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12253 # as there is no search path for DLLs.
12254 hardcode_libdir_flag_spec_CXX='-L$libdir'
12255 allow_undefined_flag_CXX=unsupported
12256 always_export_symbols_CXX=no
12257 enable_shared_with_static_runtimes_CXX=yes
12258
12259 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12260 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'
12261 # If the export-symbols file already is a .def file (1st line
12262 # is EXPORTS), use it as is; otherwise, prepend...
12263 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12264 cp $export_symbols $output_objdir/$soname.def;
12265 else
12266 echo EXPORTS > $output_objdir/$soname.def;
12267 cat $export_symbols >> $output_objdir/$soname.def;
12268 fi~
12269 $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'
12270 else
12271 ld_shlibs_CXX=no
12272 fi
12273 ;;
12274 darwin* | rhapsody*)
12275
12276
12277 archive_cmds_need_lc_CXX=no
12278 hardcode_direct_CXX=no
12279 hardcode_automatic_CXX=yes
12280 hardcode_shlibpath_var_CXX=unsupported
12281 whole_archive_flag_spec_CXX=''
12282 link_all_deplibs_CXX=yes
12283 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12284 case $cc_basename in
12285 ifort*) _lt_dar_can_shared=yes ;;
12286 *) _lt_dar_can_shared=$GCC ;;
12287 esac
12288 if test "$_lt_dar_can_shared" = "yes"; then
12289 output_verbose_link_cmd=echo
12290 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}"
12291 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12292 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}"
12293 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}"
12294 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12295 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}"
12296 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}"
12297 fi
12298
12299 else
12300 ld_shlibs_CXX=no
12301 fi
12302
12303 ;;
12304
12305 dgux*)
12306 case $cc_basename in
12307 ec++*)
12308 # FIXME: insert proper C++ library support
12309 ld_shlibs_CXX=no
12310 ;;
12311 ghcx*)
12312 # Green Hills C++ Compiler
12313 # FIXME: insert proper C++ library support
12314 ld_shlibs_CXX=no
12315 ;;
12316 *)
12317 # FIXME: insert proper C++ library support
12318 ld_shlibs_CXX=no
12319 ;;
12320 esac
12321 ;;
12322
12323 freebsd[12]*)
12324 # C++ shared libraries reported to be fairly broken before
12325 # switch to ELF
12326 ld_shlibs_CXX=no
12327 ;;
12328
12329 freebsd-elf*)
12330 archive_cmds_need_lc_CXX=no
12331 ;;
12332
12333 freebsd* | dragonfly*)
12334 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12335 # conventions
12336 ld_shlibs_CXX=yes
12337 ;;
12338
12339 gnu*)
12340 ;;
12341
12342 hpux9*)
12343 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12344 hardcode_libdir_separator_CXX=:
12345 export_dynamic_flag_spec_CXX='${wl}-E'
12346 hardcode_direct_CXX=yes
12347 hardcode_minus_L_CXX=yes # Not in the search PATH,
12348 # but as the default
12349 # location of the library.
12350
12351 case $cc_basename in
12352 CC*)
12353 # FIXME: insert proper C++ library support
12354 ld_shlibs_CXX=no
12355 ;;
12356 aCC*)
12357 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12358 # Commands to make compiler produce verbose output that lists
12359 # what "hidden" libraries, object files and flags are used when
12360 # linking a shared library.
12361 #
12362 # There doesn't appear to be a way to prevent this compiler from
12363 # explicitly linking system object files so we need to strip them
12364 # from the output so that they don't get included in the library
12365 # dependencies.
12366 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; $ECHO "X$list" | $Xsed'
12367 ;;
12368 *)
12369 if test "$GXX" = yes; then
12370 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12371 else
12372 # FIXME: insert proper C++ library support
12373 ld_shlibs_CXX=no
12374 fi
12375 ;;
12376 esac
12377 ;;
12378
12379 hpux10*|hpux11*)
12380 if test $with_gnu_ld = no; then
12381 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12382 hardcode_libdir_separator_CXX=:
12383
12384 case $host_cpu in
12385 hppa*64*|ia64*)
12386 ;;
12387 *)
12388 export_dynamic_flag_spec_CXX='${wl}-E'
12389 ;;
12390 esac
12391 fi
12392 case $host_cpu in
12393 hppa*64*|ia64*)
12394 hardcode_direct_CXX=no
12395 hardcode_shlibpath_var_CXX=no
12396 ;;
12397 *)
12398 hardcode_direct_CXX=yes
12399 hardcode_direct_absolute_CXX=yes
12400 hardcode_minus_L_CXX=yes # Not in the search PATH,
12401 # but as the default
12402 # location of the library.
12403 ;;
12404 esac
12405
12406 case $cc_basename in
12407 CC*)
12408 # FIXME: insert proper C++ library support
12409 ld_shlibs_CXX=no
12410 ;;
12411 aCC*)
12412 case $host_cpu in
12413 hppa*64*)
12414 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12415 ;;
12416 ia64*)
12417 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12418 ;;
12419 *)
12420 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12421 ;;
12422 esac
12423 # Commands to make compiler produce verbose output that lists
12424 # what "hidden" libraries, object files and flags are used when
12425 # linking a shared library.
12426 #
12427 # There doesn't appear to be a way to prevent this compiler from
12428 # explicitly linking system object files so we need to strip them
12429 # from the output so that they don't get included in the library
12430 # dependencies.
12431 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; $ECHO "X$list" | $Xsed'
12432 ;;
12433 *)
12434 if test "$GXX" = yes; then
12435 if test $with_gnu_ld = no; then
12436 case $host_cpu in
12437 hppa*64*)
12438 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12439 ;;
12440 ia64*)
12441 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12442 ;;
12443 *)
12444 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12445 ;;
12446 esac
12447 fi
12448 else
12449 # FIXME: insert proper C++ library support
12450 ld_shlibs_CXX=no
12451 fi
12452 ;;
12453 esac
12454 ;;
12455
12456 interix[3-9]*)
12457 hardcode_direct_CXX=no
12458 hardcode_shlibpath_var_CXX=no
12459 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12460 export_dynamic_flag_spec_CXX='${wl}-E'
12461 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12462 # Instead, shared libraries are loaded at an image base (0x10000000 by
12463 # default) and relocated if they conflict, which is a slow very memory
12464 # consuming and fragmenting process. To avoid this, we pick a random,
12465 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12466 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12467 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'
12468 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'
12469 ;;
12470 irix5* | irix6*)
12471 case $cc_basename in
12472 CC*)
12473 # SGI C++
12474 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12475
12476 # Archives containing C++ object files must be created using
12477 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12478 # necessary to make sure instantiated templates are included
12479 # in the archive.
12480 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12481 ;;
12482 *)
12483 if test "$GXX" = yes; then
12484 if test "$with_gnu_ld" = no; then
12485 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12486 else
12487 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12488 fi
12489 fi
12490 link_all_deplibs_CXX=yes
12491 ;;
12492 esac
12493 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12494 hardcode_libdir_separator_CXX=:
12495 inherit_rpath_CXX=yes
12496 ;;
12497
12498 linux* | k*bsd*-gnu)
12499 case $cc_basename in
12500 KCC*)
12501 # Kuck and Associates, Inc. (KAI) C++ Compiler
12502
12503 # KCC will only create a shared library if the output file
12504 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12505 # to its proper name (with version) after linking.
12506 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'
12507 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'
12508 # Commands to make compiler produce verbose output that lists
12509 # what "hidden" libraries, object files and flags are used when
12510 # linking a shared library.
12511 #
12512 # There doesn't appear to be a way to prevent this compiler from
12513 # explicitly linking system object files so we need to strip them
12514 # from the output so that they don't get included in the library
12515 # dependencies.
12516 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; $ECHO "X$list" | $Xsed'
12517
12518 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12519 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12520
12521 # Archives containing C++ object files must be created using
12522 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12523 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12524 ;;
12525 icpc* | ecpc* )
12526 # Intel C++
12527 with_gnu_ld=yes
12528 # version 8.0 and above of icpc choke on multiply defined symbols
12529 # if we add $predep_objects and $postdep_objects, however 7.1 and
12530 # earlier do not add the objects themselves.
12531 case `$CC -V 2>&1` in
12532 *"Version 7."*)
12533 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12534 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'
12535 ;;
12536 *) # Version 8.0 or newer
12537 tmp_idyn=
12538 case $host_cpu in
12539 ia64*) tmp_idyn=' -i_dynamic';;
12540 esac
12541 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12542 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'
12543 ;;
12544 esac
12545 archive_cmds_need_lc_CXX=no
12546 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12547 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12548 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12549 ;;
12550 pgCC* | pgcpp*)
12551 # Portland Group C++ compiler
12552 case `$CC -V` in
12553 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12554 prelink_cmds_CXX='tpldir=Template.dir~
12555 rm -rf $tpldir~
12556 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12557 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12558 old_archive_cmds_CXX='tpldir=Template.dir~
12559 rm -rf $tpldir~
12560 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12561 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12562 $RANLIB $oldlib'
12563 archive_cmds_CXX='tpldir=Template.dir~
12564 rm -rf $tpldir~
12565 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12566 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12567 archive_expsym_cmds_CXX='tpldir=Template.dir~
12568 rm -rf $tpldir~
12569 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12570 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12571 ;;
12572 *) # Version 6 will use weak symbols
12573 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12574 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'
12575 ;;
12576 esac
12577
12578 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12579 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12580 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12581 ;;
12582 cxx*)
12583 # Compaq C++
12584 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12585 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'
12586
12587 runpath_var=LD_RUN_PATH
12588 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12589 hardcode_libdir_separator_CXX=:
12590
12591 # Commands to make compiler produce verbose output that lists
12592 # what "hidden" libraries, object files and flags are used when
12593 # linking a shared library.
12594 #
12595 # There doesn't appear to be a way to prevent this compiler from
12596 # explicitly linking system object files so we need to strip them
12597 # from the output so that they don't get included in the library
12598 # dependencies.
12599 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12600 ;;
12601 xl*)
12602 # IBM XL 8.0 on PPC, with GNU ld
12603 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12604 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12605 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12606 if test "x$supports_anon_versioning" = xyes; then
12607 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12609 echo "local: *; };" >> $output_objdir/$libname.ver~
12610 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12611 fi
12612 ;;
12613 *)
12614 case `$CC -V 2>&1 | sed 5q` in
12615 *Sun\ C*)
12616 # Sun C++ 5.9
12617 no_undefined_flag_CXX=' -zdefs'
12618 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12619 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'
12620 hardcode_libdir_flag_spec_CXX='-R$libdir'
12621 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12622 compiler_needs_object_CXX=yes
12623
12624 # Not sure whether something based on
12625 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12626 # would be better.
12627 output_verbose_link_cmd='echo'
12628
12629 # Archives containing C++ object files must be created using
12630 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12631 # necessary to make sure instantiated templates are included
12632 # in the archive.
12633 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12634 ;;
12635 esac
12636 ;;
12637 esac
12638 ;;
12639
12640 lynxos*)
12641 # FIXME: insert proper C++ library support
12642 ld_shlibs_CXX=no
12643 ;;
12644
12645 m88k*)
12646 # FIXME: insert proper C++ library support
12647 ld_shlibs_CXX=no
12648 ;;
12649
12650 mvs*)
12651 case $cc_basename in
12652 cxx*)
12653 # FIXME: insert proper C++ library support
12654 ld_shlibs_CXX=no
12655 ;;
12656 *)
12657 # FIXME: insert proper C++ library support
12658 ld_shlibs_CXX=no
12659 ;;
12660 esac
12661 ;;
12662
12663 netbsd*)
12664 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12665 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12666 wlarc=
12667 hardcode_libdir_flag_spec_CXX='-R$libdir'
12668 hardcode_direct_CXX=yes
12669 hardcode_shlibpath_var_CXX=no
12670 fi
12671 # Workaround some broken pre-1.5 toolchains
12672 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12673 ;;
12674
12675 *nto* | *qnx*)
12676 ld_shlibs_CXX=yes
12677 ;;
12678
12679 openbsd2*)
12680 # C++ shared libraries are fairly broken
12681 ld_shlibs_CXX=no
12682 ;;
12683
12684 openbsd*)
12685 if test -f /usr/libexec/ld.so; then
12686 hardcode_direct_CXX=yes
12687 hardcode_shlibpath_var_CXX=no
12688 hardcode_direct_absolute_CXX=yes
12689 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12690 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12691 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12692 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12693 export_dynamic_flag_spec_CXX='${wl}-E'
12694 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12695 fi
12696 output_verbose_link_cmd=echo
12697 else
12698 ld_shlibs_CXX=no
12699 fi
12700 ;;
12701
12702 osf3* | osf4* | osf5*)
12703 case $cc_basename in
12704 KCC*)
12705 # Kuck and Associates, Inc. (KAI) C++ Compiler
12706
12707 # KCC will only create a shared library if the output file
12708 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12709 # to its proper name (with version) after linking.
12710 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'
12711
12712 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12713 hardcode_libdir_separator_CXX=:
12714
12715 # Archives containing C++ object files must be created using
12716 # the KAI C++ compiler.
12717 case $host in
12718 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12719 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12720 esac
12721 ;;
12722 RCC*)
12723 # Rational C++ 2.4.1
12724 # FIXME: insert proper C++ library support
12725 ld_shlibs_CXX=no
12726 ;;
12727 cxx*)
12728 case $host in
12729 osf3*)
12730 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12731 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12732 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12733 ;;
12734 *)
12735 allow_undefined_flag_CXX=' -expect_unresolved \*'
12736 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12737 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12738 echo "-hidden">> $lib.exp~
12739 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12740 $RM $lib.exp'
12741 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12742 ;;
12743 esac
12744
12745 hardcode_libdir_separator_CXX=:
12746
12747 # Commands to make compiler produce verbose output that lists
12748 # what "hidden" libraries, object files and flags are used when
12749 # linking a shared library.
12750 #
12751 # There doesn't appear to be a way to prevent this compiler from
12752 # explicitly linking system object files so we need to strip them
12753 # from the output so that they don't get included in the library
12754 # dependencies.
12755 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12756 ;;
12757 *)
12758 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12759 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12760 case $host in
12761 osf3*)
12762 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12763 ;;
12764 *)
12765 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12766 ;;
12767 esac
12768
12769 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12770 hardcode_libdir_separator_CXX=:
12771
12772 # Commands to make compiler produce verbose output that lists
12773 # what "hidden" libraries, object files and flags are used when
12774 # linking a shared library.
12775 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12776
12777 else
12778 # FIXME: insert proper C++ library support
12779 ld_shlibs_CXX=no
12780 fi
12781 ;;
12782 esac
12783 ;;
12784
12785 psos*)
12786 # FIXME: insert proper C++ library support
12787 ld_shlibs_CXX=no
12788 ;;
12789
12790 sunos4*)
12791 case $cc_basename in
12792 CC*)
12793 # Sun C++ 4.x
12794 # FIXME: insert proper C++ library support
12795 ld_shlibs_CXX=no
12796 ;;
12797 lcc*)
12798 # Lucid
12799 # FIXME: insert proper C++ library support
12800 ld_shlibs_CXX=no
12801 ;;
12802 *)
12803 # FIXME: insert proper C++ library support
12804 ld_shlibs_CXX=no
12805 ;;
12806 esac
12807 ;;
12808
12809 solaris*)
12810 case $cc_basename in
12811 CC*)
12812 # Sun C++ 4.2, 5.x and Centerline C++
12813 archive_cmds_need_lc_CXX=yes
12814 no_undefined_flag_CXX=' -zdefs'
12815 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12816 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12817 $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'
12818
12819 hardcode_libdir_flag_spec_CXX='-R$libdir'
12820 hardcode_shlibpath_var_CXX=no
12821 case $host_os in
12822 solaris2.[0-5] | solaris2.[0-5].*) ;;
12823 *)
12824 # The compiler driver will combine and reorder linker options,
12825 # but understands `-z linker_flag'.
12826 # Supported since Solaris 2.6 (maybe 2.5.1?)
12827 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12828 ;;
12829 esac
12830 link_all_deplibs_CXX=yes
12831
12832 output_verbose_link_cmd='echo'
12833
12834 # Archives containing C++ object files must be created using
12835 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12836 # necessary to make sure instantiated templates are included
12837 # in the archive.
12838 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12839 ;;
12840 gcx*)
12841 # Green Hills C++ Compiler
12842 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12843
12844 # The C++ compiler must be used to create the archive.
12845 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12846 ;;
12847 *)
12848 # GNU C++ compiler with Solaris linker
12849 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12850 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12851 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12852 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12853 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12854 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12855
12856 # Commands to make compiler produce verbose output that lists
12857 # what "hidden" libraries, object files and flags are used when
12858 # linking a shared library.
12859 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12860 else
12861 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12862 # platform.
12863 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12864 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12865 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12866
12867 # Commands to make compiler produce verbose output that lists
12868 # what "hidden" libraries, object files and flags are used when
12869 # linking a shared library.
12870 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12871 fi
12872
12873 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12874 case $host_os in
12875 solaris2.[0-5] | solaris2.[0-5].*) ;;
12876 *)
12877 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12878 ;;
12879 esac
12880 fi
12881 ;;
12882 esac
12883 ;;
12884
12885 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12886 no_undefined_flag_CXX='${wl}-z,text'
12887 archive_cmds_need_lc_CXX=no
12888 hardcode_shlibpath_var_CXX=no
12889 runpath_var='LD_RUN_PATH'
12890
12891 case $cc_basename in
12892 CC*)
12893 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12894 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12895 ;;
12896 *)
12897 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12898 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12899 ;;
12900 esac
12901 ;;
12902
12903 sysv5* | sco3.2v5* | sco5v6*)
12904 # Note: We can NOT use -z defs as we might desire, because we do not
12905 # link with -lc, and that would cause any symbols used from libc to
12906 # always be unresolved, which means just about no library would
12907 # ever link correctly. If we're not using GNU ld we use -z text
12908 # though, which does catch some bad symbols but isn't as heavy-handed
12909 # as -z defs.
12910 no_undefined_flag_CXX='${wl}-z,text'
12911 allow_undefined_flag_CXX='${wl}-z,nodefs'
12912 archive_cmds_need_lc_CXX=no
12913 hardcode_shlibpath_var_CXX=no
12914 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12915 hardcode_libdir_separator_CXX=':'
12916 link_all_deplibs_CXX=yes
12917 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12918 runpath_var='LD_RUN_PATH'
12919
12920 case $cc_basename in
12921 CC*)
12922 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12923 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12924 ;;
12925 *)
12926 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12927 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12928 ;;
12929 esac
12930 ;;
12931
12932 tandem*)
12933 case $cc_basename in
12934 NCC*)
12935 # NonStop-UX NCC 3.20
12936 # FIXME: insert proper C++ library support
12937 ld_shlibs_CXX=no
12938 ;;
12939 *)
12940 # FIXME: insert proper C++ library support
12941 ld_shlibs_CXX=no
12942 ;;
12943 esac
12944 ;;
12945
12946 vxworks*)
12947 # FIXME: insert proper C++ library support
12948 ld_shlibs_CXX=no
12949 ;;
12950
12951 *)
12952 # FIXME: insert proper C++ library support
12953 ld_shlibs_CXX=no
12954 ;;
12955 esac
12956
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12958 $as_echo "$ld_shlibs_CXX" >&6; }
12959 test "$ld_shlibs_CXX" = no && can_build_shared=no
12960
12961 GCC_CXX="$GXX"
12962 LD_CXX="$LD"
12963
12964 ## CAVEAT EMPTOR:
12965 ## There is no encapsulation within the following macros, do not change
12966 ## the running order or otherwise move them around unless you know exactly
12967 ## what you are doing...
12968 # Dependencies to place before and after the object being linked:
12969 predep_objects_CXX=
12970 postdep_objects_CXX=
12971 predeps_CXX=
12972 postdeps_CXX=
12973 compiler_lib_search_path_CXX=
12974
12975 cat > conftest.$ac_ext <<_LT_EOF
12976 class Foo
12977 {
12978 public:
12979 Foo (void) { a = 0; }
12980 private:
12981 int a;
12982 };
12983 _LT_EOF
12984
12985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12986 (eval $ac_compile) 2>&5
12987 ac_status=$?
12988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12989 test $ac_status = 0; }; then
12990 # Parse the compiler output and extract the necessary
12991 # objects, libraries and library flags.
12992
12993 # Sentinel used to keep track of whether or not we are before
12994 # the conftest object file.
12995 pre_test_object_deps_done=no
12996
12997 for p in `eval "$output_verbose_link_cmd"`; do
12998 case $p in
12999
13000 -L* | -R* | -l*)
13001 # Some compilers place space between "-{L,R}" and the path.
13002 # Remove the space.
13003 if test $p = "-L" ||
13004 test $p = "-R"; then
13005 prev=$p
13006 continue
13007 else
13008 prev=
13009 fi
13010
13011 if test "$pre_test_object_deps_done" = no; then
13012 case $p in
13013 -L* | -R*)
13014 # Internal compiler library paths should come after those
13015 # provided the user. The postdeps already come after the
13016 # user supplied libs so there is no need to process them.
13017 if test -z "$compiler_lib_search_path_CXX"; then
13018 compiler_lib_search_path_CXX="${prev}${p}"
13019 else
13020 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13021 fi
13022 ;;
13023 # The "-l" case would never come before the object being
13024 # linked, so don't bother handling this case.
13025 esac
13026 else
13027 if test -z "$postdeps_CXX"; then
13028 postdeps_CXX="${prev}${p}"
13029 else
13030 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13031 fi
13032 fi
13033 ;;
13034
13035 *.$objext)
13036 # This assumes that the test object file only shows up
13037 # once in the compiler output.
13038 if test "$p" = "conftest.$objext"; then
13039 pre_test_object_deps_done=yes
13040 continue
13041 fi
13042
13043 if test "$pre_test_object_deps_done" = no; then
13044 if test -z "$predep_objects_CXX"; then
13045 predep_objects_CXX="$p"
13046 else
13047 predep_objects_CXX="$predep_objects_CXX $p"
13048 fi
13049 else
13050 if test -z "$postdep_objects_CXX"; then
13051 postdep_objects_CXX="$p"
13052 else
13053 postdep_objects_CXX="$postdep_objects_CXX $p"
13054 fi
13055 fi
13056 ;;
13057
13058 *) ;; # Ignore the rest.
13059
13060 esac
13061 done
13062
13063 # Clean up.
13064 rm -f a.out a.exe
13065 else
13066 echo "libtool.m4: error: problem compiling CXX test program"
13067 fi
13068
13069 $RM -f confest.$objext
13070
13071 # PORTME: override above test on systems where it is broken
13072 case $host_os in
13073 interix[3-9]*)
13074 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13075 # hack all around it, let's just trust "g++" to DTRT.
13076 predep_objects_CXX=
13077 postdep_objects_CXX=
13078 postdeps_CXX=
13079 ;;
13080
13081 linux*)
13082 case `$CC -V 2>&1 | sed 5q` in
13083 *Sun\ C*)
13084 # Sun C++ 5.9
13085
13086 # The more standards-conforming stlport4 library is
13087 # incompatible with the Cstd library. Avoid specifying
13088 # it if it's in CXXFLAGS. Ignore libCrun as
13089 # -library=stlport4 depends on it.
13090 case " $CXX $CXXFLAGS " in
13091 *" -library=stlport4 "*)
13092 solaris_use_stlport4=yes
13093 ;;
13094 esac
13095
13096 if test "$solaris_use_stlport4" != yes; then
13097 postdeps_CXX='-library=Cstd -library=Crun'
13098 fi
13099 ;;
13100 esac
13101 ;;
13102
13103 solaris*)
13104 case $cc_basename in
13105 CC*)
13106 # The more standards-conforming stlport4 library is
13107 # incompatible with the Cstd library. Avoid specifying
13108 # it if it's in CXXFLAGS. Ignore libCrun as
13109 # -library=stlport4 depends on it.
13110 case " $CXX $CXXFLAGS " in
13111 *" -library=stlport4 "*)
13112 solaris_use_stlport4=yes
13113 ;;
13114 esac
13115
13116 # Adding this requires a known-good setup of shared libraries for
13117 # Sun compiler versions before 5.6, else PIC objects from an old
13118 # archive will be linked into the output, leading to subtle bugs.
13119 if test "$solaris_use_stlport4" != yes; then
13120 postdeps_CXX='-library=Cstd -library=Crun'
13121 fi
13122 ;;
13123 esac
13124 ;;
13125 esac
13126
13127
13128 case " $postdeps_CXX " in
13129 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13130 esac
13131 compiler_lib_search_dirs_CXX=
13132 if test -n "${compiler_lib_search_path_CXX}"; then
13133 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13134 fi
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166 lt_prog_compiler_wl_CXX=
13167 lt_prog_compiler_pic_CXX=
13168 lt_prog_compiler_static_CXX=
13169
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13171 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13172
13173 # C++ specific cases for pic, static, wl, etc.
13174 if test "$GXX" = yes; then
13175 lt_prog_compiler_wl_CXX='-Wl,'
13176 lt_prog_compiler_static_CXX='-static'
13177
13178 case $host_os in
13179 aix*)
13180 # All AIX code is PIC.
13181 if test "$host_cpu" = ia64; then
13182 # AIX 5 now supports IA64 processor
13183 lt_prog_compiler_static_CXX='-Bstatic'
13184 fi
13185 ;;
13186
13187 amigaos*)
13188 case $host_cpu in
13189 powerpc)
13190 # see comment about AmigaOS4 .so support
13191 lt_prog_compiler_pic_CXX='-fPIC'
13192 ;;
13193 m68k)
13194 # FIXME: we need at least 68020 code to build shared libraries, but
13195 # adding the `-m68020' flag to GCC prevents building anything better,
13196 # like `-m68040'.
13197 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13198 ;;
13199 esac
13200 ;;
13201
13202 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13203 # PIC is the default for these OSes.
13204 ;;
13205 mingw* | cygwin* | os2* | pw32* | cegcc*)
13206 # This hack is so that the source file can tell whether it is being
13207 # built for inclusion in a dll (and should export symbols for example).
13208 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13209 # (--disable-auto-import) libraries
13210 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13211 ;;
13212 darwin* | rhapsody*)
13213 # PIC is the default on this platform
13214 # Common symbols not allowed in MH_DYLIB files
13215 lt_prog_compiler_pic_CXX='-fno-common'
13216 ;;
13217 *djgpp*)
13218 # DJGPP does not support shared libraries at all
13219 lt_prog_compiler_pic_CXX=
13220 ;;
13221 interix[3-9]*)
13222 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13223 # Instead, we relocate shared libraries at runtime.
13224 ;;
13225 sysv4*MP*)
13226 if test -d /usr/nec; then
13227 lt_prog_compiler_pic_CXX=-Kconform_pic
13228 fi
13229 ;;
13230 hpux*)
13231 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13232 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13233 # sets the default TLS model and affects inlining.
13234 case $host_cpu in
13235 hppa*64*)
13236 ;;
13237 *)
13238 lt_prog_compiler_pic_CXX='-fPIC'
13239 ;;
13240 esac
13241 ;;
13242 *qnx* | *nto*)
13243 # QNX uses GNU C++, but need to define -shared option too, otherwise
13244 # it will coredump.
13245 lt_prog_compiler_pic_CXX='-fPIC -shared'
13246 ;;
13247 *)
13248 lt_prog_compiler_pic_CXX='-fPIC'
13249 ;;
13250 esac
13251 else
13252 case $host_os in
13253 aix[4-9]*)
13254 # All AIX code is PIC.
13255 if test "$host_cpu" = ia64; then
13256 # AIX 5 now supports IA64 processor
13257 lt_prog_compiler_static_CXX='-Bstatic'
13258 else
13259 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13260 fi
13261 ;;
13262 chorus*)
13263 case $cc_basename in
13264 cxch68*)
13265 # Green Hills C++ Compiler
13266 # _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"
13267 ;;
13268 esac
13269 ;;
13270 dgux*)
13271 case $cc_basename in
13272 ec++*)
13273 lt_prog_compiler_pic_CXX='-KPIC'
13274 ;;
13275 ghcx*)
13276 # Green Hills C++ Compiler
13277 lt_prog_compiler_pic_CXX='-pic'
13278 ;;
13279 *)
13280 ;;
13281 esac
13282 ;;
13283 freebsd* | dragonfly*)
13284 # FreeBSD uses GNU C++
13285 ;;
13286 hpux9* | hpux10* | hpux11*)
13287 case $cc_basename in
13288 CC*)
13289 lt_prog_compiler_wl_CXX='-Wl,'
13290 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13291 if test "$host_cpu" != ia64; then
13292 lt_prog_compiler_pic_CXX='+Z'
13293 fi
13294 ;;
13295 aCC*)
13296 lt_prog_compiler_wl_CXX='-Wl,'
13297 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13298 case $host_cpu in
13299 hppa*64*|ia64*)
13300 # +Z the default
13301 ;;
13302 *)
13303 lt_prog_compiler_pic_CXX='+Z'
13304 ;;
13305 esac
13306 ;;
13307 *)
13308 ;;
13309 esac
13310 ;;
13311 interix*)
13312 # This is c89, which is MS Visual C++ (no shared libs)
13313 # Anyone wants to do a port?
13314 ;;
13315 irix5* | irix6* | nonstopux*)
13316 case $cc_basename in
13317 CC*)
13318 lt_prog_compiler_wl_CXX='-Wl,'
13319 lt_prog_compiler_static_CXX='-non_shared'
13320 # CC pic flag -KPIC is the default.
13321 ;;
13322 *)
13323 ;;
13324 esac
13325 ;;
13326 linux* | k*bsd*-gnu)
13327 case $cc_basename in
13328 KCC*)
13329 # KAI C++ Compiler
13330 lt_prog_compiler_wl_CXX='--backend -Wl,'
13331 lt_prog_compiler_pic_CXX='-fPIC'
13332 ;;
13333 ecpc* )
13334 # old Intel C++ for x86_64 which still supported -KPIC.
13335 lt_prog_compiler_wl_CXX='-Wl,'
13336 lt_prog_compiler_pic_CXX='-KPIC'
13337 lt_prog_compiler_static_CXX='-static'
13338 ;;
13339 icpc* )
13340 # Intel C++, used to be incompatible with GCC.
13341 # ICC 10 doesn't accept -KPIC any more.
13342 lt_prog_compiler_wl_CXX='-Wl,'
13343 lt_prog_compiler_pic_CXX='-fPIC'
13344 lt_prog_compiler_static_CXX='-static'
13345 ;;
13346 pgCC* | pgcpp*)
13347 # Portland Group C++ compiler
13348 lt_prog_compiler_wl_CXX='-Wl,'
13349 lt_prog_compiler_pic_CXX='-fpic'
13350 lt_prog_compiler_static_CXX='-Bstatic'
13351 ;;
13352 cxx*)
13353 # Compaq C++
13354 # Make sure the PIC flag is empty. It appears that all Alpha
13355 # Linux and Compaq Tru64 Unix objects are PIC.
13356 lt_prog_compiler_pic_CXX=
13357 lt_prog_compiler_static_CXX='-non_shared'
13358 ;;
13359 xlc* | xlC*)
13360 # IBM XL 8.0 on PPC
13361 lt_prog_compiler_wl_CXX='-Wl,'
13362 lt_prog_compiler_pic_CXX='-qpic'
13363 lt_prog_compiler_static_CXX='-qstaticlink'
13364 ;;
13365 *)
13366 case `$CC -V 2>&1 | sed 5q` in
13367 *Sun\ C*)
13368 # Sun C++ 5.9
13369 lt_prog_compiler_pic_CXX='-KPIC'
13370 lt_prog_compiler_static_CXX='-Bstatic'
13371 lt_prog_compiler_wl_CXX='-Qoption ld '
13372 ;;
13373 esac
13374 ;;
13375 esac
13376 ;;
13377 lynxos*)
13378 ;;
13379 m88k*)
13380 ;;
13381 mvs*)
13382 case $cc_basename in
13383 cxx*)
13384 lt_prog_compiler_pic_CXX='-W c,exportall'
13385 ;;
13386 *)
13387 ;;
13388 esac
13389 ;;
13390 netbsd* | netbsdelf*-gnu)
13391 ;;
13392 *qnx* | *nto*)
13393 # QNX uses GNU C++, but need to define -shared option too, otherwise
13394 # it will coredump.
13395 lt_prog_compiler_pic_CXX='-fPIC -shared'
13396 ;;
13397 osf3* | osf4* | osf5*)
13398 case $cc_basename in
13399 KCC*)
13400 lt_prog_compiler_wl_CXX='--backend -Wl,'
13401 ;;
13402 RCC*)
13403 # Rational C++ 2.4.1
13404 lt_prog_compiler_pic_CXX='-pic'
13405 ;;
13406 cxx*)
13407 # Digital/Compaq C++
13408 lt_prog_compiler_wl_CXX='-Wl,'
13409 # Make sure the PIC flag is empty. It appears that all Alpha
13410 # Linux and Compaq Tru64 Unix objects are PIC.
13411 lt_prog_compiler_pic_CXX=
13412 lt_prog_compiler_static_CXX='-non_shared'
13413 ;;
13414 *)
13415 ;;
13416 esac
13417 ;;
13418 psos*)
13419 ;;
13420 solaris*)
13421 case $cc_basename in
13422 CC*)
13423 # Sun C++ 4.2, 5.x and Centerline C++
13424 lt_prog_compiler_pic_CXX='-KPIC'
13425 lt_prog_compiler_static_CXX='-Bstatic'
13426 lt_prog_compiler_wl_CXX='-Qoption ld '
13427 ;;
13428 gcx*)
13429 # Green Hills C++ Compiler
13430 lt_prog_compiler_pic_CXX='-PIC'
13431 ;;
13432 *)
13433 ;;
13434 esac
13435 ;;
13436 sunos4*)
13437 case $cc_basename in
13438 CC*)
13439 # Sun C++ 4.x
13440 lt_prog_compiler_pic_CXX='-pic'
13441 lt_prog_compiler_static_CXX='-Bstatic'
13442 ;;
13443 lcc*)
13444 # Lucid
13445 lt_prog_compiler_pic_CXX='-pic'
13446 ;;
13447 *)
13448 ;;
13449 esac
13450 ;;
13451 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13452 case $cc_basename in
13453 CC*)
13454 lt_prog_compiler_wl_CXX='-Wl,'
13455 lt_prog_compiler_pic_CXX='-KPIC'
13456 lt_prog_compiler_static_CXX='-Bstatic'
13457 ;;
13458 esac
13459 ;;
13460 tandem*)
13461 case $cc_basename in
13462 NCC*)
13463 # NonStop-UX NCC 3.20
13464 lt_prog_compiler_pic_CXX='-KPIC'
13465 ;;
13466 *)
13467 ;;
13468 esac
13469 ;;
13470 vxworks*)
13471 ;;
13472 *)
13473 lt_prog_compiler_can_build_shared_CXX=no
13474 ;;
13475 esac
13476 fi
13477
13478 case $host_os in
13479 # For platforms which do not support PIC, -DPIC is meaningless:
13480 *djgpp*)
13481 lt_prog_compiler_pic_CXX=
13482 ;;
13483 *)
13484 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13485 ;;
13486 esac
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13488 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13489
13490
13491
13492 #
13493 # Check to make sure the PIC flag actually works.
13494 #
13495 if test -n "$lt_prog_compiler_pic_CXX"; then
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13497 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13498 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13499 $as_echo_n "(cached) " >&6
13500 else
13501 lt_cv_prog_compiler_pic_works_CXX=no
13502 ac_outfile=conftest.$ac_objext
13503 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13504 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13505 # Insert the option either (1) after the last *FLAGS variable, or
13506 # (2) before a word containing "conftest.", or (3) at the end.
13507 # Note that $ac_compile itself does not contain backslashes and begins
13508 # with a dollar sign (not a hyphen), so the echo should work correctly.
13509 # The option is referenced via a variable to avoid confusing sed.
13510 lt_compile=`echo "$ac_compile" | $SED \
13511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13513 -e 's:$: $lt_compiler_flag:'`
13514 (eval echo "\"\$as_me:13514: $lt_compile\"" >&5)
13515 (eval "$lt_compile" 2>conftest.err)
13516 ac_status=$?
13517 cat conftest.err >&5
13518 echo "$as_me:13518: \$? = $ac_status" >&5
13519 if (exit $ac_status) && test -s "$ac_outfile"; then
13520 # The compiler can only warn and ignore the option if not recognized
13521 # So say no if there are warnings other than the usual output.
13522 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13524 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13525 lt_cv_prog_compiler_pic_works_CXX=yes
13526 fi
13527 fi
13528 $RM conftest*
13529
13530 fi
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13532 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13533
13534 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13535 case $lt_prog_compiler_pic_CXX in
13536 "" | " "*) ;;
13537 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13538 esac
13539 else
13540 lt_prog_compiler_pic_CXX=
13541 lt_prog_compiler_can_build_shared_CXX=no
13542 fi
13543
13544 fi
13545
13546
13547
13548 #
13549 # Check to make sure the static flag actually works.
13550 #
13551 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13553 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13554 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13555 $as_echo_n "(cached) " >&6
13556 else
13557 lt_cv_prog_compiler_static_works_CXX=no
13558 save_LDFLAGS="$LDFLAGS"
13559 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13560 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13561 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13562 # The linker can only warn and ignore the option if not recognized
13563 # So say no if there are warnings
13564 if test -s conftest.err; then
13565 # Append any errors to the config.log.
13566 cat conftest.err 1>&5
13567 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13569 if diff conftest.exp conftest.er2 >/dev/null; then
13570 lt_cv_prog_compiler_static_works_CXX=yes
13571 fi
13572 else
13573 lt_cv_prog_compiler_static_works_CXX=yes
13574 fi
13575 fi
13576 $RM -r conftest*
13577 LDFLAGS="$save_LDFLAGS"
13578
13579 fi
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13581 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13582
13583 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13584 :
13585 else
13586 lt_prog_compiler_static_CXX=
13587 fi
13588
13589
13590
13591
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13593 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13594 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13595 $as_echo_n "(cached) " >&6
13596 else
13597 lt_cv_prog_compiler_c_o_CXX=no
13598 $RM -r conftest 2>/dev/null
13599 mkdir conftest
13600 cd conftest
13601 mkdir out
13602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13603
13604 lt_compiler_flag="-o out/conftest2.$ac_objext"
13605 # Insert the option either (1) after the last *FLAGS variable, or
13606 # (2) before a word containing "conftest.", or (3) at the end.
13607 # Note that $ac_compile itself does not contain backslashes and begins
13608 # with a dollar sign (not a hyphen), so the echo should work correctly.
13609 lt_compile=`echo "$ac_compile" | $SED \
13610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13612 -e 's:$: $lt_compiler_flag:'`
13613 (eval echo "\"\$as_me:13613: $lt_compile\"" >&5)
13614 (eval "$lt_compile" 2>out/conftest.err)
13615 ac_status=$?
13616 cat out/conftest.err >&5
13617 echo "$as_me:13617: \$? = $ac_status" >&5
13618 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13619 then
13620 # The compiler can only warn and ignore the option if not recognized
13621 # So say no if there are warnings
13622 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13623 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13624 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13625 lt_cv_prog_compiler_c_o_CXX=yes
13626 fi
13627 fi
13628 chmod u+w . 2>&5
13629 $RM conftest*
13630 # SGI C++ compiler will create directory out/ii_files/ for
13631 # template instantiation
13632 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13633 $RM out/* && rmdir out
13634 cd ..
13635 $RM -r conftest
13636 $RM conftest*
13637
13638 fi
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13640 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13641
13642
13643
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13645 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13646 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13647 $as_echo_n "(cached) " >&6
13648 else
13649 lt_cv_prog_compiler_c_o_CXX=no
13650 $RM -r conftest 2>/dev/null
13651 mkdir conftest
13652 cd conftest
13653 mkdir out
13654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13655
13656 lt_compiler_flag="-o out/conftest2.$ac_objext"
13657 # Insert the option either (1) after the last *FLAGS variable, or
13658 # (2) before a word containing "conftest.", or (3) at the end.
13659 # Note that $ac_compile itself does not contain backslashes and begins
13660 # with a dollar sign (not a hyphen), so the echo should work correctly.
13661 lt_compile=`echo "$ac_compile" | $SED \
13662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13664 -e 's:$: $lt_compiler_flag:'`
13665 (eval echo "\"\$as_me:13665: $lt_compile\"" >&5)
13666 (eval "$lt_compile" 2>out/conftest.err)
13667 ac_status=$?
13668 cat out/conftest.err >&5
13669 echo "$as_me:13669: \$? = $ac_status" >&5
13670 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13671 then
13672 # The compiler can only warn and ignore the option if not recognized
13673 # So say no if there are warnings
13674 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13675 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13676 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13677 lt_cv_prog_compiler_c_o_CXX=yes
13678 fi
13679 fi
13680 chmod u+w . 2>&5
13681 $RM conftest*
13682 # SGI C++ compiler will create directory out/ii_files/ for
13683 # template instantiation
13684 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13685 $RM out/* && rmdir out
13686 cd ..
13687 $RM -r conftest
13688 $RM conftest*
13689
13690 fi
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13692 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13693
13694
13695
13696
13697 hard_links="nottested"
13698 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13699 # do not overwrite the value of need_locks provided by the user
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13701 $as_echo_n "checking if we can lock with hard links... " >&6; }
13702 hard_links=yes
13703 $RM conftest*
13704 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13705 touch conftest.a
13706 ln conftest.a conftest.b 2>&5 || hard_links=no
13707 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13709 $as_echo "$hard_links" >&6; }
13710 if test "$hard_links" = no; then
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13712 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13713 need_locks=warn
13714 fi
13715 else
13716 need_locks=no
13717 fi
13718
13719
13720
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13722 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13723
13724 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13725 case $host_os in
13726 aix[4-9]*)
13727 # If we're using GNU nm, then we don't want the "-C" option.
13728 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13729 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13730 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13731 else
13732 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13733 fi
13734 ;;
13735 pw32*)
13736 export_symbols_cmds_CXX="$ltdll_cmds"
13737 ;;
13738 cygwin* | mingw* | cegcc*)
13739 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13740 ;;
13741 linux* | k*bsd*-gnu)
13742 link_all_deplibs_CXX=no
13743 ;;
13744 *)
13745 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13746 ;;
13747 esac
13748 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13749
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13751 $as_echo "$ld_shlibs_CXX" >&6; }
13752 test "$ld_shlibs_CXX" = no && can_build_shared=no
13753
13754 with_gnu_ld_CXX=$with_gnu_ld
13755
13756
13757
13758
13759
13760
13761 #
13762 # Do we need to explicitly link libc?
13763 #
13764 case "x$archive_cmds_need_lc_CXX" in
13765 x|xyes)
13766 # Assume -lc should be added
13767 archive_cmds_need_lc_CXX=yes
13768
13769 if test "$enable_shared" = yes && test "$GCC" = yes; then
13770 case $archive_cmds_CXX in
13771 *'~'*)
13772 # FIXME: we may have to deal with multi-command sequences.
13773 ;;
13774 '$CC '*)
13775 # Test whether the compiler implicitly links with -lc since on some
13776 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13777 # to ld, don't add -lc before -lgcc.
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13779 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13780 $RM conftest*
13781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13782
13783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13784 (eval $ac_compile) 2>&5
13785 ac_status=$?
13786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13787 test $ac_status = 0; } 2>conftest.err; then
13788 soname=conftest
13789 lib=conftest
13790 libobjs=conftest.$ac_objext
13791 deplibs=
13792 wl=$lt_prog_compiler_wl_CXX
13793 pic_flag=$lt_prog_compiler_pic_CXX
13794 compiler_flags=-v
13795 linker_flags=-v
13796 verstring=
13797 output_objdir=.
13798 libname=conftest
13799 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13800 allow_undefined_flag_CXX=
13801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13802 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13803 ac_status=$?
13804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13805 test $ac_status = 0; }
13806 then
13807 archive_cmds_need_lc_CXX=no
13808 else
13809 archive_cmds_need_lc_CXX=yes
13810 fi
13811 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13812 else
13813 cat conftest.err 1>&5
13814 fi
13815 $RM conftest*
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13817 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13818 ;;
13819 esac
13820 fi
13821 ;;
13822 esac
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13888 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13889
13890 library_names_spec=
13891 libname_spec='lib$name'
13892 soname_spec=
13893 shrext_cmds=".so"
13894 postinstall_cmds=
13895 postuninstall_cmds=
13896 finish_cmds=
13897 finish_eval=
13898 shlibpath_var=
13899 shlibpath_overrides_runpath=unknown
13900 version_type=none
13901 dynamic_linker="$host_os ld.so"
13902 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13903 need_lib_prefix=unknown
13904 hardcode_into_libs=no
13905
13906 # when you set need_version to no, make sure it does not cause -set_version
13907 # flags to be left without arguments
13908 need_version=unknown
13909
13910 case $host_os in
13911 aix3*)
13912 version_type=linux
13913 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13914 shlibpath_var=LIBPATH
13915
13916 # AIX 3 has no versioning support, so we append a major version to the name.
13917 soname_spec='${libname}${release}${shared_ext}$major'
13918 ;;
13919
13920 aix[4-9]*)
13921 version_type=linux
13922 need_lib_prefix=no
13923 need_version=no
13924 hardcode_into_libs=yes
13925 if test "$host_cpu" = ia64; then
13926 # AIX 5 supports IA64
13927 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13928 shlibpath_var=LD_LIBRARY_PATH
13929 else
13930 # With GCC up to 2.95.x, collect2 would create an import file
13931 # for dependence libraries. The import file would start with
13932 # the line `#! .'. This would cause the generated library to
13933 # depend on `.', always an invalid library. This was fixed in
13934 # development snapshots of GCC prior to 3.0.
13935 case $host_os in
13936 aix4 | aix4.[01] | aix4.[01].*)
13937 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13938 echo ' yes '
13939 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13940 :
13941 else
13942 can_build_shared=no
13943 fi
13944 ;;
13945 esac
13946 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13947 # soname into executable. Probably we can add versioning support to
13948 # collect2, so additional links can be useful in future.
13949 if test "$aix_use_runtimelinking" = yes; then
13950 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13951 # instead of lib<name>.a to let people know that these are not
13952 # typical AIX shared libraries.
13953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13954 else
13955 # We preserve .a as extension for shared libraries through AIX4.2
13956 # and later when we are not doing run time linking.
13957 library_names_spec='${libname}${release}.a $libname.a'
13958 soname_spec='${libname}${release}${shared_ext}$major'
13959 fi
13960 shlibpath_var=LIBPATH
13961 fi
13962 ;;
13963
13964 amigaos*)
13965 case $host_cpu in
13966 powerpc)
13967 # Since July 2007 AmigaOS4 officially supports .so libraries.
13968 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13970 ;;
13971 m68k)
13972 library_names_spec='$libname.ixlibrary $libname.a'
13973 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13974 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13975 ;;
13976 esac
13977 ;;
13978
13979 beos*)
13980 library_names_spec='${libname}${shared_ext}'
13981 dynamic_linker="$host_os ld.so"
13982 shlibpath_var=LIBRARY_PATH
13983 ;;
13984
13985 bsdi[45]*)
13986 version_type=linux
13987 need_version=no
13988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13989 soname_spec='${libname}${release}${shared_ext}$major'
13990 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13991 shlibpath_var=LD_LIBRARY_PATH
13992 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13993 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13994 # the default ld.so.conf also contains /usr/contrib/lib and
13995 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13996 # libtool to hard-code these into programs
13997 ;;
13998
13999 cygwin* | mingw* | pw32* | cegcc*)
14000 version_type=windows
14001 shrext_cmds=".dll"
14002 need_version=no
14003 need_lib_prefix=no
14004
14005 case $GCC,$host_os in
14006 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14007 library_names_spec='$libname.dll.a'
14008 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14009 postinstall_cmds='base_file=`basename \${file}`~
14010 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14011 dldir=$destdir/`dirname \$dlpath`~
14012 test -d \$dldir || mkdir -p \$dldir~
14013 $install_prog $dir/$dlname \$dldir/$dlname~
14014 chmod a+x \$dldir/$dlname~
14015 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14016 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14017 fi'
14018 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14019 dlpath=$dir/\$dldll~
14020 $RM \$dlpath'
14021 shlibpath_overrides_runpath=yes
14022
14023 case $host_os in
14024 cygwin*)
14025 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14026 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14027 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14028 ;;
14029 mingw* | cegcc*)
14030 # MinGW DLLs use traditional 'lib' prefix
14031 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14032 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14033 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14034 # It is most probably a Windows format PATH printed by
14035 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14036 # path with ; separators, and with drive letters. We can handle the
14037 # drive letters (cygwin fileutils understands them), so leave them,
14038 # especially as we might pass files found there to a mingw objdump,
14039 # which wouldn't understand a cygwinified path. Ahh.
14040 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14041 else
14042 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14043 fi
14044 ;;
14045 pw32*)
14046 # pw32 DLLs use 'pw' prefix rather than 'lib'
14047 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14048 ;;
14049 esac
14050 ;;
14051
14052 *)
14053 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14054 ;;
14055 esac
14056 dynamic_linker='Win32 ld.exe'
14057 # FIXME: first we should search . and the directory the executable is in
14058 shlibpath_var=PATH
14059 ;;
14060
14061 darwin* | rhapsody*)
14062 dynamic_linker="$host_os dyld"
14063 version_type=darwin
14064 need_lib_prefix=no
14065 need_version=no
14066 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14067 soname_spec='${libname}${release}${major}$shared_ext'
14068 shlibpath_overrides_runpath=yes
14069 shlibpath_var=DYLD_LIBRARY_PATH
14070 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14071
14072 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14073 ;;
14074
14075 dgux*)
14076 version_type=linux
14077 need_lib_prefix=no
14078 need_version=no
14079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14080 soname_spec='${libname}${release}${shared_ext}$major'
14081 shlibpath_var=LD_LIBRARY_PATH
14082 ;;
14083
14084 freebsd1*)
14085 dynamic_linker=no
14086 ;;
14087
14088 freebsd* | dragonfly*)
14089 # DragonFly does not have aout. When/if they implement a new
14090 # versioning mechanism, adjust this.
14091 if test -x /usr/bin/objformat; then
14092 objformat=`/usr/bin/objformat`
14093 else
14094 case $host_os in
14095 freebsd[123]*) objformat=aout ;;
14096 *) objformat=elf ;;
14097 esac
14098 fi
14099 version_type=freebsd-$objformat
14100 case $version_type in
14101 freebsd-elf*)
14102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14103 need_version=no
14104 need_lib_prefix=no
14105 ;;
14106 freebsd-*)
14107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14108 need_version=yes
14109 ;;
14110 esac
14111 shlibpath_var=LD_LIBRARY_PATH
14112 case $host_os in
14113 freebsd2*)
14114 shlibpath_overrides_runpath=yes
14115 ;;
14116 freebsd3.[01]* | freebsdelf3.[01]*)
14117 shlibpath_overrides_runpath=yes
14118 hardcode_into_libs=yes
14119 ;;
14120 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14121 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14122 shlibpath_overrides_runpath=no
14123 hardcode_into_libs=yes
14124 ;;
14125 *) # from 4.6 on, and DragonFly
14126 shlibpath_overrides_runpath=yes
14127 hardcode_into_libs=yes
14128 ;;
14129 esac
14130 ;;
14131
14132 gnu*)
14133 version_type=linux
14134 need_lib_prefix=no
14135 need_version=no
14136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14137 soname_spec='${libname}${release}${shared_ext}$major'
14138 shlibpath_var=LD_LIBRARY_PATH
14139 hardcode_into_libs=yes
14140 ;;
14141
14142 hpux9* | hpux10* | hpux11*)
14143 # Give a soname corresponding to the major version so that dld.sl refuses to
14144 # link against other versions.
14145 version_type=sunos
14146 need_lib_prefix=no
14147 need_version=no
14148 case $host_cpu in
14149 ia64*)
14150 shrext_cmds='.so'
14151 hardcode_into_libs=yes
14152 dynamic_linker="$host_os dld.so"
14153 shlibpath_var=LD_LIBRARY_PATH
14154 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14156 soname_spec='${libname}${release}${shared_ext}$major'
14157 if test "X$HPUX_IA64_MODE" = X32; then
14158 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14159 else
14160 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14161 fi
14162 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14163 ;;
14164 hppa*64*)
14165 shrext_cmds='.sl'
14166 hardcode_into_libs=yes
14167 dynamic_linker="$host_os dld.sl"
14168 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14171 soname_spec='${libname}${release}${shared_ext}$major'
14172 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14174 ;;
14175 *)
14176 shrext_cmds='.sl'
14177 dynamic_linker="$host_os dld.sl"
14178 shlibpath_var=SHLIB_PATH
14179 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14181 soname_spec='${libname}${release}${shared_ext}$major'
14182 ;;
14183 esac
14184 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14185 postinstall_cmds='chmod 555 $lib'
14186 ;;
14187
14188 interix[3-9]*)
14189 version_type=linux
14190 need_lib_prefix=no
14191 need_version=no
14192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14193 soname_spec='${libname}${release}${shared_ext}$major'
14194 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14195 shlibpath_var=LD_LIBRARY_PATH
14196 shlibpath_overrides_runpath=no
14197 hardcode_into_libs=yes
14198 ;;
14199
14200 irix5* | irix6* | nonstopux*)
14201 case $host_os in
14202 nonstopux*) version_type=nonstopux ;;
14203 *)
14204 if test "$lt_cv_prog_gnu_ld" = yes; then
14205 version_type=linux
14206 else
14207 version_type=irix
14208 fi ;;
14209 esac
14210 need_lib_prefix=no
14211 need_version=no
14212 soname_spec='${libname}${release}${shared_ext}$major'
14213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14214 case $host_os in
14215 irix5* | nonstopux*)
14216 libsuff= shlibsuff=
14217 ;;
14218 *)
14219 case $LD in # libtool.m4 will add one of these switches to LD
14220 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14221 libsuff= shlibsuff= libmagic=32-bit;;
14222 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14223 libsuff=32 shlibsuff=N32 libmagic=N32;;
14224 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14225 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14226 *) libsuff= shlibsuff= libmagic=never-match;;
14227 esac
14228 ;;
14229 esac
14230 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14231 shlibpath_overrides_runpath=no
14232 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14233 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14234 hardcode_into_libs=yes
14235 ;;
14236
14237 # No shared lib support for Linux oldld, aout, or coff.
14238 linux*oldld* | linux*aout* | linux*coff*)
14239 dynamic_linker=no
14240 ;;
14241
14242 # This must be Linux ELF.
14243 linux* | k*bsd*-gnu)
14244 version_type=linux
14245 need_lib_prefix=no
14246 need_version=no
14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14248 soname_spec='${libname}${release}${shared_ext}$major'
14249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14250 shlibpath_var=LD_LIBRARY_PATH
14251 shlibpath_overrides_runpath=no
14252 # Some binutils ld are patched to set DT_RUNPATH
14253 save_LDFLAGS=$LDFLAGS
14254 save_libdir=$libdir
14255 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14256 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14259
14260 int
14261 main ()
14262 {
14263
14264 ;
14265 return 0;
14266 }
14267 _ACEOF
14268 if ac_fn_cxx_try_link "$LINENO"; then :
14269 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14270 shlibpath_overrides_runpath=yes
14271 fi
14272 fi
14273 rm -f core conftest.err conftest.$ac_objext \
14274 conftest$ac_exeext conftest.$ac_ext
14275 LDFLAGS=$save_LDFLAGS
14276 libdir=$save_libdir
14277
14278 # This implies no fast_install, which is unacceptable.
14279 # Some rework will be needed to allow for fast_install
14280 # before this can be enabled.
14281 hardcode_into_libs=yes
14282
14283 # Append ld.so.conf contents to the search path
14284 if test -f /etc/ld.so.conf; then
14285 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;/^$/d' | tr '\n' ' '`
14286 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14287 fi
14288
14289 # We used to test for /lib/ld.so.1 and disable shared libraries on
14290 # powerpc, because MkLinux only supported shared libraries with the
14291 # GNU dynamic linker. Since this was broken with cross compilers,
14292 # most powerpc-linux boxes support dynamic linking these days and
14293 # people can always --disable-shared, the test was removed, and we
14294 # assume the GNU/Linux dynamic linker is in use.
14295 dynamic_linker='GNU/Linux ld.so'
14296 ;;
14297
14298 netbsdelf*-gnu)
14299 version_type=linux
14300 need_lib_prefix=no
14301 need_version=no
14302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14303 soname_spec='${libname}${release}${shared_ext}$major'
14304 shlibpath_var=LD_LIBRARY_PATH
14305 shlibpath_overrides_runpath=no
14306 hardcode_into_libs=yes
14307 dynamic_linker='NetBSD ld.elf_so'
14308 ;;
14309
14310 netbsd*)
14311 version_type=sunos
14312 need_lib_prefix=no
14313 need_version=no
14314 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14317 dynamic_linker='NetBSD (a.out) ld.so'
14318 else
14319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14320 soname_spec='${libname}${release}${shared_ext}$major'
14321 dynamic_linker='NetBSD ld.elf_so'
14322 fi
14323 shlibpath_var=LD_LIBRARY_PATH
14324 shlibpath_overrides_runpath=yes
14325 hardcode_into_libs=yes
14326 ;;
14327
14328 newsos6)
14329 version_type=linux
14330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14331 shlibpath_var=LD_LIBRARY_PATH
14332 shlibpath_overrides_runpath=yes
14333 ;;
14334
14335 *nto* | *qnx*)
14336 version_type=qnx
14337 need_lib_prefix=no
14338 need_version=no
14339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14340 soname_spec='${libname}${release}${shared_ext}$major'
14341 shlibpath_var=LD_LIBRARY_PATH
14342 shlibpath_overrides_runpath=no
14343 hardcode_into_libs=yes
14344 dynamic_linker='ldqnx.so'
14345 ;;
14346
14347 openbsd*)
14348 version_type=sunos
14349 sys_lib_dlsearch_path_spec="/usr/lib"
14350 need_lib_prefix=no
14351 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14352 case $host_os in
14353 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14354 *) need_version=no ;;
14355 esac
14356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14358 shlibpath_var=LD_LIBRARY_PATH
14359 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14360 case $host_os in
14361 openbsd2.[89] | openbsd2.[89].*)
14362 shlibpath_overrides_runpath=no
14363 ;;
14364 *)
14365 shlibpath_overrides_runpath=yes
14366 ;;
14367 esac
14368 else
14369 shlibpath_overrides_runpath=yes
14370 fi
14371 ;;
14372
14373 os2*)
14374 libname_spec='$name'
14375 shrext_cmds=".dll"
14376 need_lib_prefix=no
14377 library_names_spec='$libname${shared_ext} $libname.a'
14378 dynamic_linker='OS/2 ld.exe'
14379 shlibpath_var=LIBPATH
14380 ;;
14381
14382 osf3* | osf4* | osf5*)
14383 version_type=osf
14384 need_lib_prefix=no
14385 need_version=no
14386 soname_spec='${libname}${release}${shared_ext}$major'
14387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14388 shlibpath_var=LD_LIBRARY_PATH
14389 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14390 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14391 ;;
14392
14393 rdos*)
14394 dynamic_linker=no
14395 ;;
14396
14397 solaris*)
14398 version_type=linux
14399 need_lib_prefix=no
14400 need_version=no
14401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14402 soname_spec='${libname}${release}${shared_ext}$major'
14403 shlibpath_var=LD_LIBRARY_PATH
14404 shlibpath_overrides_runpath=yes
14405 hardcode_into_libs=yes
14406 # ldd complains unless libraries are executable
14407 postinstall_cmds='chmod +x $lib'
14408 ;;
14409
14410 sunos4*)
14411 version_type=sunos
14412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14413 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14414 shlibpath_var=LD_LIBRARY_PATH
14415 shlibpath_overrides_runpath=yes
14416 if test "$with_gnu_ld" = yes; then
14417 need_lib_prefix=no
14418 fi
14419 need_version=yes
14420 ;;
14421
14422 sysv4 | sysv4.3*)
14423 version_type=linux
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425 soname_spec='${libname}${release}${shared_ext}$major'
14426 shlibpath_var=LD_LIBRARY_PATH
14427 case $host_vendor in
14428 sni)
14429 shlibpath_overrides_runpath=no
14430 need_lib_prefix=no
14431 runpath_var=LD_RUN_PATH
14432 ;;
14433 siemens)
14434 need_lib_prefix=no
14435 ;;
14436 motorola)
14437 need_lib_prefix=no
14438 need_version=no
14439 shlibpath_overrides_runpath=no
14440 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14441 ;;
14442 esac
14443 ;;
14444
14445 sysv4*MP*)
14446 if test -d /usr/nec ;then
14447 version_type=linux
14448 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14449 soname_spec='$libname${shared_ext}.$major'
14450 shlibpath_var=LD_LIBRARY_PATH
14451 fi
14452 ;;
14453
14454 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14455 version_type=freebsd-elf
14456 need_lib_prefix=no
14457 need_version=no
14458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14459 soname_spec='${libname}${release}${shared_ext}$major'
14460 shlibpath_var=LD_LIBRARY_PATH
14461 shlibpath_overrides_runpath=yes
14462 hardcode_into_libs=yes
14463 if test "$with_gnu_ld" = yes; then
14464 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14465 else
14466 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14467 case $host_os in
14468 sco3.2v5*)
14469 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14470 ;;
14471 esac
14472 fi
14473 sys_lib_dlsearch_path_spec='/usr/lib'
14474 ;;
14475
14476 tpf*)
14477 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14478 version_type=linux
14479 need_lib_prefix=no
14480 need_version=no
14481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14482 shlibpath_var=LD_LIBRARY_PATH
14483 shlibpath_overrides_runpath=no
14484 hardcode_into_libs=yes
14485 ;;
14486
14487 uts4*)
14488 version_type=linux
14489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14490 soname_spec='${libname}${release}${shared_ext}$major'
14491 shlibpath_var=LD_LIBRARY_PATH
14492 ;;
14493
14494 *)
14495 dynamic_linker=no
14496 ;;
14497 esac
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14499 $as_echo "$dynamic_linker" >&6; }
14500 test "$dynamic_linker" = no && can_build_shared=no
14501
14502 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14503 if test "$GCC" = yes; then
14504 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14505 fi
14506
14507 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14508 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14509 fi
14510 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14511 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14512 fi
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14550 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14551 hardcode_action_CXX=
14552 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14553 test -n "$runpath_var_CXX" ||
14554 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14555
14556 # We can hardcode non-existent directories.
14557 if test "$hardcode_direct_CXX" != no &&
14558 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14559 # have to relink, otherwise we might link with an installed library
14560 # when we should be linking with a yet-to-be-installed one
14561 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14562 test "$hardcode_minus_L_CXX" != no; then
14563 # Linking always hardcodes the temporary library directory.
14564 hardcode_action_CXX=relink
14565 else
14566 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14567 hardcode_action_CXX=immediate
14568 fi
14569 else
14570 # We cannot hardcode anything, or else we can only hardcode existing
14571 # directories.
14572 hardcode_action_CXX=unsupported
14573 fi
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14575 $as_echo "$hardcode_action_CXX" >&6; }
14576
14577 if test "$hardcode_action_CXX" = relink ||
14578 test "$inherit_rpath_CXX" = yes; then
14579 # Fast installation is not supported
14580 enable_fast_install=no
14581 elif test "$shlibpath_overrides_runpath" = yes ||
14582 test "$enable_shared" = no; then
14583 # Fast installation is not necessary
14584 enable_fast_install=needless
14585 fi
14586
14587
14588
14589
14590
14591
14592
14593 fi # test -n "$compiler"
14594
14595 CC=$lt_save_CC
14596 LDCXX=$LD
14597 LD=$lt_save_LD
14598 GCC=$lt_save_GCC
14599 with_gnu_ld=$lt_save_with_gnu_ld
14600 lt_cv_path_LDCXX=$lt_cv_path_LD
14601 lt_cv_path_LD=$lt_save_path_LD
14602 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14603 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14604 fi # test "$_lt_caught_CXX_error" != yes
14605
14606 ac_ext=c
14607 ac_cpp='$CPP $CPPFLAGS'
14608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14611
14612
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14614 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14615 set x ${MAKE-make}
14616 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14617 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
14618 $as_echo_n "(cached) " >&6
14619 else
14620 cat >conftest.make <<\_ACEOF
14621 SHELL = /bin/sh
14622 all:
14623 @echo '@@@%%%=$(MAKE)=@@@%%%'
14624 _ACEOF
14625 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14626 case `${MAKE-make} -f conftest.make 2>/dev/null` in
14627 *@@@%%%=?*=@@@%%%*)
14628 eval ac_cv_prog_make_${ac_make}_set=yes;;
14629 *)
14630 eval ac_cv_prog_make_${ac_make}_set=no;;
14631 esac
14632 rm -f conftest.make
14633 fi
14634 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14636 $as_echo "yes" >&6; }
14637 SET_MAKE=
14638 else
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14640 $as_echo "no" >&6; }
14641 SET_MAKE="MAKE=${MAKE-make}"
14642 fi
14643
14644 # Find a good install program. We prefer a C program (faster),
14645 # so one script is as good as another. But avoid the broken or
14646 # incompatible versions:
14647 # SysV /etc/install, /usr/sbin/install
14648 # SunOS /usr/etc/install
14649 # IRIX /sbin/install
14650 # AIX /bin/install
14651 # AmigaOS /C/install, which installs bootblocks on floppy discs
14652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14655 # OS/2's system install, which has a completely different semantic
14656 # ./install, which can be erroneously created by make from ./install.sh.
14657 # Reject install programs that cannot install multiple files.
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14659 $as_echo_n "checking for a BSD-compatible install... " >&6; }
14660 if test -z "$INSTALL"; then
14661 if ${ac_cv_path_install+:} false; then :
14662 $as_echo_n "(cached) " >&6
14663 else
14664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14665 for as_dir in $PATH
14666 do
14667 IFS=$as_save_IFS
14668 test -z "$as_dir" && as_dir=.
14669 # Account for people who put trailing slashes in PATH elements.
14670 case $as_dir/ in #((
14671 ./ | .// | /[cC]/* | \
14672 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14673 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14674 /usr/ucb/* ) ;;
14675 *)
14676 # OSF1 and SCO ODT 3.0 have their own names for install.
14677 # Don't use installbsd from OSF since it installs stuff as root
14678 # by default.
14679 for ac_prog in ginstall scoinst install; do
14680 for ac_exec_ext in '' $ac_executable_extensions; do
14681 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14682 if test $ac_prog = install &&
14683 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14684 # AIX install. It has an incompatible calling convention.
14685 :
14686 elif test $ac_prog = install &&
14687 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14688 # program-specific install script used by HP pwplus--don't use.
14689 :
14690 else
14691 rm -rf conftest.one conftest.two conftest.dir
14692 echo one > conftest.one
14693 echo two > conftest.two
14694 mkdir conftest.dir
14695 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14696 test -s conftest.one && test -s conftest.two &&
14697 test -s conftest.dir/conftest.one &&
14698 test -s conftest.dir/conftest.two
14699 then
14700 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14701 break 3
14702 fi
14703 fi
14704 fi
14705 done
14706 done
14707 ;;
14708 esac
14709
14710 done
14711 IFS=$as_save_IFS
14712
14713 rm -rf conftest.one conftest.two conftest.dir
14714
14715 fi
14716 if test "${ac_cv_path_install+set}" = set; then
14717 INSTALL=$ac_cv_path_install
14718 else
14719 # As a last resort, use the slow shell script. Don't cache a
14720 # value for INSTALL within a source directory, because that will
14721 # break other packages using the cache if that directory is
14722 # removed, or if the value is a relative name.
14723 INSTALL=$ac_install_sh
14724 fi
14725 fi
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14727 $as_echo "$INSTALL" >&6; }
14728
14729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14730 # It thinks the first close brace ends the variable substitution.
14731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14732
14733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14734
14735 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14736
14737
14738
14739 # Check whether --enable-largefile was given.
14740 if test "${enable_largefile+set}" = set; then :
14741 enableval=$enable_largefile;
14742 fi
14743
14744 if test "$enable_largefile" != no; then
14745
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14747 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14748 if ${ac_cv_sys_largefile_CC+:} false; then :
14749 $as_echo_n "(cached) " >&6
14750 else
14751 ac_cv_sys_largefile_CC=no
14752 if test "$GCC" != yes; then
14753 ac_save_CC=$CC
14754 while :; do
14755 # IRIX 6.2 and later do not support large files by default,
14756 # so use the C compiler's -n32 option if that helps.
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14759 #include <sys/types.h>
14760 /* Check that off_t can represent 2**63 - 1 correctly.
14761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14762 since some C++ compilers masquerading as C compilers
14763 incorrectly reject 9223372036854775807. */
14764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14766 && LARGE_OFF_T % 2147483647 == 1)
14767 ? 1 : -1];
14768 int
14769 main ()
14770 {
14771
14772 ;
14773 return 0;
14774 }
14775 _ACEOF
14776 if ac_fn_c_try_compile "$LINENO"; then :
14777 break
14778 fi
14779 rm -f core conftest.err conftest.$ac_objext
14780 CC="$CC -n32"
14781 if ac_fn_c_try_compile "$LINENO"; then :
14782 ac_cv_sys_largefile_CC=' -n32'; break
14783 fi
14784 rm -f core conftest.err conftest.$ac_objext
14785 break
14786 done
14787 CC=$ac_save_CC
14788 rm -f conftest.$ac_ext
14789 fi
14790 fi
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14792 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14793 if test "$ac_cv_sys_largefile_CC" != no; then
14794 CC=$CC$ac_cv_sys_largefile_CC
14795 fi
14796
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14798 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14799 if ${ac_cv_sys_file_offset_bits+:} false; then :
14800 $as_echo_n "(cached) " >&6
14801 else
14802 while :; do
14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h. */
14805 #include <sys/types.h>
14806 /* Check that off_t can represent 2**63 - 1 correctly.
14807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14808 since some C++ compilers masquerading as C compilers
14809 incorrectly reject 9223372036854775807. */
14810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14812 && LARGE_OFF_T % 2147483647 == 1)
14813 ? 1 : -1];
14814 int
14815 main ()
14816 {
14817
14818 ;
14819 return 0;
14820 }
14821 _ACEOF
14822 if ac_fn_c_try_compile "$LINENO"; then :
14823 ac_cv_sys_file_offset_bits=no; break
14824 fi
14825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827 /* end confdefs.h. */
14828 #define _FILE_OFFSET_BITS 64
14829 #include <sys/types.h>
14830 /* Check that off_t can represent 2**63 - 1 correctly.
14831 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14832 since some C++ compilers masquerading as C compilers
14833 incorrectly reject 9223372036854775807. */
14834 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14835 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14836 && LARGE_OFF_T % 2147483647 == 1)
14837 ? 1 : -1];
14838 int
14839 main ()
14840 {
14841
14842 ;
14843 return 0;
14844 }
14845 _ACEOF
14846 if ac_fn_c_try_compile "$LINENO"; then :
14847 ac_cv_sys_file_offset_bits=64; break
14848 fi
14849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14850 ac_cv_sys_file_offset_bits=unknown
14851 break
14852 done
14853 fi
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14855 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14856 case $ac_cv_sys_file_offset_bits in #(
14857 no | unknown) ;;
14858 *)
14859 cat >>confdefs.h <<_ACEOF
14860 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14861 _ACEOF
14862 ;;
14863 esac
14864 rm -rf conftest*
14865 if test $ac_cv_sys_file_offset_bits = unknown; then
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14867 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14868 if ${ac_cv_sys_large_files+:} false; then :
14869 $as_echo_n "(cached) " >&6
14870 else
14871 while :; do
14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873 /* end confdefs.h. */
14874 #include <sys/types.h>
14875 /* Check that off_t can represent 2**63 - 1 correctly.
14876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14877 since some C++ compilers masquerading as C compilers
14878 incorrectly reject 9223372036854775807. */
14879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14881 && LARGE_OFF_T % 2147483647 == 1)
14882 ? 1 : -1];
14883 int
14884 main ()
14885 {
14886
14887 ;
14888 return 0;
14889 }
14890 _ACEOF
14891 if ac_fn_c_try_compile "$LINENO"; then :
14892 ac_cv_sys_large_files=no; break
14893 fi
14894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14896 /* end confdefs.h. */
14897 #define _LARGE_FILES 1
14898 #include <sys/types.h>
14899 /* Check that off_t can represent 2**63 - 1 correctly.
14900 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14901 since some C++ compilers masquerading as C compilers
14902 incorrectly reject 9223372036854775807. */
14903 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14904 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14905 && LARGE_OFF_T % 2147483647 == 1)
14906 ? 1 : -1];
14907 int
14908 main ()
14909 {
14910
14911 ;
14912 return 0;
14913 }
14914 _ACEOF
14915 if ac_fn_c_try_compile "$LINENO"; then :
14916 ac_cv_sys_large_files=1; break
14917 fi
14918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14919 ac_cv_sys_large_files=unknown
14920 break
14921 done
14922 fi
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14924 $as_echo "$ac_cv_sys_large_files" >&6; }
14925 case $ac_cv_sys_large_files in #(
14926 no | unknown) ;;
14927 *)
14928 cat >>confdefs.h <<_ACEOF
14929 #define _LARGE_FILES $ac_cv_sys_large_files
14930 _ACEOF
14931 ;;
14932 esac
14933 rm -rf conftest*
14934 fi
14935
14936
14937 fi
14938
14939
14940 # The native HP-UX 10 compiler needs -Ae to enable Extended ANSI compliance
14941 # (-Ae is the default in the native compiler under HP-UX 11).
14942 if test $ac_cv_c_compiler_gnu = no -a "$OSTYPE" = "-DHPUX10"; then
14943 CFLAGS="$CFLAGS -Ae"
14944 fi
14945
14946 LDFLAGS="-Wl,-L\$(top_srcdir)/lib,-L\$(top_builddir)/lib $LDFLAGS"
14947
14948 # AIX has issues with the -rdynamic linker flag. How many different AIX
14949 # versions should we support here?
14950 if test $ac_cv_c_compiler_gnu = yes && test "$OSTYPE" != "-DAIX7"; then
14951 LDFLAGS="$LDFLAGS -rdynamic"
14952 fi
14953
14954 # Record the current CPPFLAGS, LDFLAGS, and LIBS here
14955 ac_orig_cppflags="$CPPFLAGS"
14956 ac_orig_ldflags="$LDFLAGS"
14957 ac_orig_libs="$LIBS"
14958
14959 if test $ac_cv_c_compiler_gnu = yes; then
14960 if test x"$CFLAGS" = "x-g -O2"; then
14961 fullCFLAGS="-O2"
14962 else
14963 fullCFLAGS="$CFLAGS"
14964 fi
14965
14966
14967 if echo $ac_cv_build_cpu | egrep "^i[34567]86$" > /dev/null 2>&1; then
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts -malign-jumps -malign-loops -malign-functions" >&5
14969 $as_echo_n "checking whether the C compiler accepts -malign-jumps -malign-loops -malign-functions... " >&6; }
14970 CFLAGS="-malign-jumps=2 -malign-loops=2 -malign-functions=2"
14971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14972 /* end confdefs.h. */
14973
14974 int
14975 main ()
14976 {
14977
14978 ;
14979 return 0;
14980 }
14981 _ACEOF
14982 if ac_fn_c_try_compile "$LINENO"; then :
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14984 $as_echo "yes" >&6; }; fullCFLAGS="$fullCFLAGS $CFLAGS"
14985 else
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14987 $as_echo "no" >&6; }
14988 fi
14989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14990 fi
14991
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts -Wall" >&5
14993 $as_echo_n "checking whether the C compiler accepts -Wall... " >&6; }
14994 CFLAGS="-Wall"
14995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14996 /* end confdefs.h. */
14997
14998 int
14999 main ()
15000 {
15001
15002 ;
15003 return 0;
15004 }
15005 _ACEOF
15006 if ac_fn_c_try_compile "$LINENO"; then :
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15008 $as_echo "yes" >&6; }; fullCFLAGS="$fullCFLAGS $CFLAGS"
15009 else
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15011 $as_echo "no" >&6; }
15012 fi
15013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15014
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts -fno-omit-frame-pointer" >&5
15016 $as_echo_n "checking whether the C compiler accepts -fno-omit-frame-pointer... " >&6; }
15017 CFLAGS="-fno-omit-frame-pointer"
15018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15019 /* end confdefs.h. */
15020
15021 int
15022 main ()
15023 {
15024
15025 ;
15026 return 0;
15027 }
15028 _ACEOF
15029 if ac_fn_c_try_compile "$LINENO"; then :
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15031 $as_echo "yes" >&6; }; fullCFLAGS="$fullCFLAGS $CFLAGS"
15032 else
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15034 $as_echo "no" >&6; }
15035 fi
15036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15037
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts -fno-strict-aliasing" >&5
15039 $as_echo_n "checking whether the C compiler accepts -fno-strict-aliasing... " >&6; }
15040 CFLAGS="-fno-strict-aliasing"
15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h. */
15043
15044 int
15045 main ()
15046 {
15047
15048 ;
15049 return 0;
15050 }
15051 _ACEOF
15052 if ac_fn_c_try_compile "$LINENO"; then :
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15054 $as_echo "yes" >&6; }; fullCFLAGS="$fullCFLAGS $CFLAGS"
15055 else
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15057 $as_echo "no" >&6; }
15058 fi
15059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15060
15061 CFLAGS="-g2 $fullCFLAGS"
15062 fi
15063
15064 if test x$exec_prefix = xNONE ; then
15065 exec_prefix=$prefix
15066 fi
15067
15068 if test x$prefix = xNONE ; then
15069 prefix=/usr/local
15070 bindir=/usr/local/bin
15071 datadir=/usr/local/share
15072 libexecdir=/usr/local/libexec
15073 sbindir=/usr/local/sbin
15074 fi
15075
15076 BINDIR=`eval echo $bindir`
15077
15078 DATADIR=`eval echo $datadir`
15079
15080 INCLUDEDIR=`eval echo $includedir`
15081
15082 LIBEXECDIR=`eval echo $libexecdir`
15083
15084 LOCALSTATEDIR=`eval echo $localstatedir`
15085
15086 RUNSTATEDIR=`eval echo $runstatedir`
15087
15088 PREFIX=`eval echo $prefix`
15089
15090 SBINDIR=`eval echo $sbindir`
15091
15092 SYSCONFDIR=`eval echo $sysconfdir`
15093
15094
15095 LIB_DEPS="\"\""
15096
15097
15098
15099
15100
15101 LIB_OBJS="pr_fnmatch.o sstrncpy.o strsep.o vsnprintf.o glibc-glob.o glibc-hstrerror.o glibc-mkstemp.o pr-syslog.o pwgrent.o hanson-tpl.o ccan-json.o openbsd-blowfish.o openbsd-bcrypt.o"
15102
15103
15104 # Check whether --with-getopt was given.
15105 if test "${with_getopt+set}" = set; then :
15106 withval=$with_getopt;
15107 if test "$withval" != "no" ; then
15108 for ac_func in getopt
15109 do :
15110 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
15111 if test "x$ac_cv_func_getopt" = xyes; then :
15112 cat >>confdefs.h <<_ACEOF
15113 #define HAVE_GETOPT 1
15114 _ACEOF
15115 for ac_header in getopt.h
15116 do :
15117 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
15118 if test "x$ac_cv_header_getopt_h" = xyes; then :
15119 cat >>confdefs.h <<_ACEOF
15120 #define HAVE_GETOPT_H 1
15121 _ACEOF
15122
15123 fi
15124
15125 done
15126
15127 for ac_func in getopt_long
15128 do :
15129 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
15130 if test "x$ac_cv_func_getopt_long" = xyes; then :
15131 cat >>confdefs.h <<_ACEOF
15132 #define HAVE_GETOPT_LONG 1
15133 _ACEOF
15134
15135 fi
15136 done
15137
15138
15139 $as_echo "#define PR_USE_SYSTEM_GETOPT 1" >>confdefs.h
15140
15141 else
15142 LIB_OBJS="$LIB_OBJS getopt.o getopt1.o"
15143
15144 fi
15145 done
15146
15147 fi
15148
15149 else
15150
15151 for ac_func in getopt
15152 do :
15153 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
15154 if test "x$ac_cv_func_getopt" = xyes; then :
15155 cat >>confdefs.h <<_ACEOF
15156 #define HAVE_GETOPT 1
15157 _ACEOF
15158 for ac_header in getopt.h
15159 do :
15160 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
15161 if test "x$ac_cv_header_getopt_h" = xyes; then :
15162 cat >>confdefs.h <<_ACEOF
15163 #define HAVE_GETOPT_H 1
15164 _ACEOF
15165
15166 fi
15167
15168 done
15169
15170 for ac_func in getopt_long
15171 do :
15172 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
15173 if test "x$ac_cv_func_getopt_long" = xyes; then :
15174 cat >>confdefs.h <<_ACEOF
15175 #define HAVE_GETOPT_LONG 1
15176 _ACEOF
15177
15178 fi
15179 done
15180
15181
15182 $as_echo "#define PR_USE_SYSTEM_GETOPT 1" >>confdefs.h
15183
15184 else
15185 LIB_OBJS="$LIB_OBJS getopt.o getopt1.o"
15186
15187 fi
15188 done
15189
15190
15191 fi
15192
15193
15194
15195 # Check whether --with-lastlog was given.
15196 if test "${with_lastlog+set}" = set; then :
15197 withval=$with_lastlog;
15198 if test "x$withval" = "xno" ; then
15199 # nothing to do
15200 foo=bar
15201
15202 elif test -n "$withval" ; then
15203
15204 $as_echo "#define PR_USE_LASTLOG 1" >>confdefs.h
15205
15206 for ac_header in lastlog.h paths.h
15207 do :
15208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15209 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15210 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15211 cat >>confdefs.h <<_ACEOF
15212 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15213 _ACEOF
15214
15215 fi
15216
15217 done
15218
15219
15220 if test "x${withval}" != "xyes" ; then
15221 pr_lastlog_path="$withval"
15222
15223 else
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LASTLOG_FILE" >&5
15225 $as_echo_n "checking for LASTLOG_FILE... " >&6; }
15226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227 /* end confdefs.h. */
15228
15229 #include <sys/types.h>
15230 #include <utmp.h>
15231 #ifdef HAVE_LASTLOG_H
15232 # include <lastlog.h>
15233 #endif
15234 #ifdef HAVE_PATHS_H
15235 # include <paths.h>
15236 #endif
15237 #ifdef HAVE_LOGIN_H
15238 # include <login.h>
15239 #endif
15240
15241 int
15242 main ()
15243 {
15244
15245 char *lastlog = LASTLOG_FILE;
15246
15247 ;
15248 return 0;
15249 }
15250 _ACEOF
15251 if ac_fn_c_try_compile "$LINENO"; then :
15252
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15254 $as_echo "yes" >&6; }
15255
15256 else
15257
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15259 $as_echo "no" >&6; }
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _PATH_LASTLOG" >&5
15261 $as_echo_n "checking for _PATH_LASTLOG... " >&6; }
15262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15263 /* end confdefs.h. */
15264
15265 #include <sys/types.h>
15266 #include <utmp.h>
15267 #ifdef HAVE_LASTLOG_H
15268 # include <lastlog.h>
15269 #endif
15270 #ifdef HAVE_PATHS_H
15271 # include <paths.h>
15272 #endif
15273
15274 int
15275 main ()
15276 {
15277
15278 char *lastlog = _PATH_LASTLOG;
15279
15280 ;
15281 return 0;
15282 }
15283 _ACEOF
15284 if ac_fn_c_try_compile "$LINENO"; then :
15285
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15287 $as_echo "yes" >&6; }
15288
15289 else
15290
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15292 $as_echo "no" >&6; }
15293 found_lastlog_path=no
15294
15295 fi
15296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15297
15298 fi
15299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15300
15301 if test -z "$pr_lastlog_path" ; then
15302 if test x"$found_lastlog_path" = x"no" ; then
15303 for f in /var/log/lastlog /var/adm/lastlog /usr/adm/lastlog /etc/security/lastlog ; do
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $f" >&5
15305 $as_echo_n "checking for $f... " >&6; }
15306 if (test -d "$f" || test -f "$f") ; then
15307 pr_lastlog_path=$f
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15309 $as_echo "yes" >&6; }
15310
15311 else
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15313 $as_echo "no" >&6; }
15314 fi
15315 done
15316
15317 if test -z "$pr_lastlog_path" ; then
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** Cannot find lastlog **" >&5
15319 $as_echo "$as_me: WARNING: ** Cannot find lastlog **" >&2;}
15320 fi
15321 fi
15322 fi
15323 fi
15324
15325 if test -n "$pr_lastlog_path" ; then
15326
15327 cat >>confdefs.h <<_ACEOF
15328 #define PR_LASTLOG_PATH "`eval echo "$pr_lastlog_path"`"
15329 _ACEOF
15330
15331 fi
15332 fi
15333
15334 fi
15335
15336
15337
15338 # Check whether --with-includes was given.
15339 if test "${with_includes+set}" = set; then :
15340 withval=$with_includes;
15341 if test x"$withval" != x; then
15342 if test x"$withval" = xyes; then
15343 as_fn_error $? "--with-includes parameter missing required colon-separated list of include paths" "$LINENO" 5
15344 fi
15345
15346 if test x"$withval" != xno; then
15347 ac_addl_includes=`echo "$withval" | sed -e 's/:/ /g'` ;
15348 for ainclude in $ac_addl_includes; do
15349 if test x"$ac_build_addl_includes" = x ; then
15350 ac_build_addl_includes="-I$ainclude"
15351 else
15352 ac_build_addl_includes="-I$ainclude $ac_build_addl_includes"
15353 fi
15354 done
15355 CPPFLAGS="$CPPFLAGS $ac_build_addl_includes"
15356 fi
15357 fi
15358
15359 fi
15360
15361
15362
15363 # Check whether --with-libraries was given.
15364 if test "${with_libraries+set}" = set; then :
15365 withval=$with_libraries;
15366 if test x"$withval" != x; then
15367 if test x"$withval" = xyes; then
15368 as_fn_error $? "--with-libraries parameter missing required colon-separated list of library paths" "$LINENO" 5
15369 fi
15370
15371 if test x"$withval" != xno; then
15372 ac_addl_libdirs=`echo "$withval" | sed -e 's/:/ /g'` ;
15373 for alibdir in $ac_addl_libdirs; do
15374 if test x"$ac_build_addl_libdirs" = x ; then
15375 ac_build_addl_libdirs="-L$alibdir"
15376 else
15377 ac_build_addl_libdirs="-L$alibdir $ac_build_addl_libdirs"
15378 fi
15379 done
15380 LDFLAGS="$LDFLAGS $ac_build_addl_libdirs"
15381 fi
15382 fi
15383
15384 fi
15385
15386
15387 ifsession_requested="false"
15388
15389 # Check whether --with-modules was given.
15390 if test "${with_modules+set}" = set; then :
15391 withval=$with_modules;
15392 if test x"$withval" != x; then
15393 if test x"$withval" = xyes; then
15394 as_fn_error $? "--with-modules parameter missing required colon-separated list of modules" "$LINENO" 5
15395 fi
15396
15397 if test x"$withval" != xno; then
15398 modules_list=`echo "$withval" | sed -e 's/:/ /g'`;
15399
15400 for amodule in $modules_list; do
15401 if test x"$amodule" = xmod_dso ; then
15402 as_fn_error $? "use --enable-dso instead of --with-modules=mod_dso for DSO support" "$LINENO" 5
15403 fi
15404
15405 if test x"$amodule" = xmod_ifsession ; then
15406 ifsession_requested="true"
15407 fi
15408
15409 if test x"$amodule" = xmod_lang ; then
15410 as_fn_error $? "use --enable-nls instead of --with-modules=mod_lang for NLS/UTF8 support" "$LINENO" 5
15411 fi
15412
15413 if test x"$amodule" = xmod_memcache ; then
15414 as_fn_error $? "use --enable-memcache instead of --with-modules=mod_memcache for Memcache support" "$LINENO" 5
15415 fi
15416
15417 if test x"$amodule" = xmod_redis ; then
15418 as_fn_error $? "use --enable-redis instead of --with-modules=mod_redis for Redis support" "$LINENO" 5
15419 fi
15420 done
15421
15422 # Trim off any leading/trailing colons, and collapse double-colons
15423 # into single colons; these are common typos.
15424 ac_static_modules=`echo "$withval" | sed 's/::/:/g' | sed 's/^://' | sed 's/:$//' | sed -e 's/:/.o /g'`.o ;
15425
15426 for amodule in $ac_static_modules; do
15427 ac_build_static_modules="modules/$amodule $ac_build_static_modules"
15428 done
15429
15430 if test x"$ifsession_requested" = xtrue; then
15431 ac_static_modules=`echo "$ac_static_modules" | sed -e 's/mod_ifsession\.o//g'`
15432 ac_static_modules="$ac_static_modules mod_ifsession.o"
15433
15434 ac_build_static_modules=`echo "$ac_build_static_modules" | sed -e 's/modules\/mod_ifsession\.o//g'`
15435 ac_build_static_modules="$ac_build_static_modules modules/mod_ifsession.o";
15436 fi
15437 fi
15438 fi
15439
15440 fi
15441
15442
15443 if test x"$enable_memcache" = xyes; then
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcached_create in -lmemcached" >&5
15445 $as_echo_n "checking for memcached_create in -lmemcached... " >&6; }
15446 if ${ac_cv_lib_memcached_memcached_create+:} false; then :
15447 $as_echo_n "(cached) " >&6
15448 else
15449 ac_check_lib_save_LIBS=$LIBS
15450 LIBS="-lmemcached $LIBS"
15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452 /* end confdefs.h. */
15453
15454 /* Override any GCC internal prototype to avoid an error.
15455 Use char because int might match the return type of a GCC
15456 builtin and then its argument prototype would still apply. */
15457 #ifdef __cplusplus
15458 extern "C"
15459 #endif
15460 char memcached_create ();
15461 int
15462 main ()
15463 {
15464 return memcached_create ();
15465 ;
15466 return 0;
15467 }
15468 _ACEOF
15469 if ac_fn_c_try_link "$LINENO"; then :
15470 ac_cv_lib_memcached_memcached_create=yes
15471 else
15472 ac_cv_lib_memcached_memcached_create=no
15473 fi
15474 rm -f core conftest.err conftest.$ac_objext \
15475 conftest$ac_exeext conftest.$ac_ext
15476 LIBS=$ac_check_lib_save_LIBS
15477 fi
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcached_memcached_create" >&5
15479 $as_echo "$ac_cv_lib_memcached_memcached_create" >&6; }
15480 if test "x$ac_cv_lib_memcached_memcached_create" = xyes; then :
15481 cat >>confdefs.h <<_ACEOF
15482 #define HAVE_LIBMEMCACHED 1
15483 _ACEOF
15484
15485 LIBS="-lmemcached $LIBS"
15486
15487 fi
15488
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmemcached_util_ping in -lmemcachedutil" >&5
15490 $as_echo_n "checking for libmemcached_util_ping in -lmemcachedutil... " >&6; }
15491 if ${ac_cv_lib_memcachedutil_libmemcached_util_ping+:} false; then :
15492 $as_echo_n "(cached) " >&6
15493 else
15494 ac_check_lib_save_LIBS=$LIBS
15495 LIBS="-lmemcachedutil $LIBS"
15496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15497 /* end confdefs.h. */
15498
15499 /* Override any GCC internal prototype to avoid an error.
15500 Use char because int might match the return type of a GCC
15501 builtin and then its argument prototype would still apply. */
15502 #ifdef __cplusplus
15503 extern "C"
15504 #endif
15505 char libmemcached_util_ping ();
15506 int
15507 main ()
15508 {
15509 return libmemcached_util_ping ();
15510 ;
15511 return 0;
15512 }
15513 _ACEOF
15514 if ac_fn_c_try_link "$LINENO"; then :
15515 ac_cv_lib_memcachedutil_libmemcached_util_ping=yes
15516 else
15517 ac_cv_lib_memcachedutil_libmemcached_util_ping=no
15518 fi
15519 rm -f core conftest.err conftest.$ac_objext \
15520 conftest$ac_exeext conftest.$ac_ext
15521 LIBS=$ac_check_lib_save_LIBS
15522 fi
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcachedutil_libmemcached_util_ping" >&5
15524 $as_echo "$ac_cv_lib_memcachedutil_libmemcached_util_ping" >&6; }
15525 if test "x$ac_cv_lib_memcachedutil_libmemcached_util_ping" = xyes; then :
15526 cat >>confdefs.h <<_ACEOF
15527 #define HAVE_LIBMEMCACHEDUTIL 1
15528 _ACEOF
15529
15530 LIBS="-lmemcachedutil $LIBS"
15531
15532 fi
15533
15534
15535 # Yes, we DO want mod_memcache AFTER the other modules in the static
15536 # module list. Otherwise, the module load ordering will be such that
15537 # memcache support will not work as expected
15538 ac_static_modules="$ac_static_modules mod_memcache.o"
15539 ac_build_static_modules="$ac_build_static_modules modules/mod_memcache.o"
15540 fi
15541
15542 if test x"$enable_redis" = xyes; then
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redisConnect in -lhiredis" >&5
15544 $as_echo_n "checking for redisConnect in -lhiredis... " >&6; }
15545 if ${ac_cv_lib_hiredis_redisConnect+:} false; then :
15546 $as_echo_n "(cached) " >&6
15547 else
15548 ac_check_lib_save_LIBS=$LIBS
15549 LIBS="-lhiredis $LIBS"
15550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551 /* end confdefs.h. */
15552
15553 /* Override any GCC internal prototype to avoid an error.
15554 Use char because int might match the return type of a GCC
15555 builtin and then its argument prototype would still apply. */
15556 #ifdef __cplusplus
15557 extern "C"
15558 #endif
15559 char redisConnect ();
15560 int
15561 main ()
15562 {
15563 return redisConnect ();
15564 ;
15565 return 0;
15566 }
15567 _ACEOF
15568 if ac_fn_c_try_link "$LINENO"; then :
15569 ac_cv_lib_hiredis_redisConnect=yes
15570 else
15571 ac_cv_lib_hiredis_redisConnect=no
15572 fi
15573 rm -f core conftest.err conftest.$ac_objext \
15574 conftest$ac_exeext conftest.$ac_ext
15575 LIBS=$ac_check_lib_save_LIBS
15576 fi
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hiredis_redisConnect" >&5
15578 $as_echo "$ac_cv_lib_hiredis_redisConnect" >&6; }
15579 if test "x$ac_cv_lib_hiredis_redisConnect" = xyes; then :
15580 cat >>confdefs.h <<_ACEOF
15581 #define HAVE_LIBHIREDIS 1
15582 _ACEOF
15583
15584 LIBS="-lhiredis $LIBS"
15585
15586 fi
15587
15588
15589 # Yes, we DO want mod_redis AFTER the other modules in the static
15590 # module list. Otherwise, the module load ordering will be such that
15591 # Redis support will not work as expected.
15592 ac_static_modules="$ac_static_modules mod_redis.o"
15593 ac_build_static_modules="$ac_build_static_modules modules/mod_redis.o"
15594 fi
15595
15596 ac_unshareable_modules="mod_auth mod_rlimit mod_auth_unix mod_core mod_dso mod_ls mod_xfer mod_log mod_site mod_cap mod_ctrls mod_memcache mod_redis"
15597
15598
15599 # Check whether --with-shared was given.
15600 if test "${with_shared+set}" = set; then :
15601 withval=$with_shared;
15602 if test x"$withval" != x; then
15603 if test x"$withval" = xyes; then
15604 as_fn_error $? "--with-shared parameter missing required colon-separated list of modules" "$LINENO" 5
15605 fi
15606
15607 if test x"$withval" != xno; then
15608 # Trim off any leading/trailing colons, and collapse double-colons
15609 # into single colons; these are common typos.
15610 shared_modules=`echo "$withval" | sed 's/::/:/g'| sed 's/^://' | sed 's/:$//' | sed -e 's/:/ /g'`;
15611 ac_shared_modules=`echo "$withval" | sed 's/::/:/g'| sed 's/^://' | sed 's/:$//' | sed -e 's/:/.la /g'`.la;
15612
15613 # First double-check that the given list does not contain any
15614 # unshareable modules
15615 for amodule in $pr_shared_modules; do
15616 for smodule in $ac_unshareable_modules; do
15617 if test x"$amodule" = x"$smodule"; then
15618 as_fn_error $? "cannot build $amodule as a shared module" "$LINENO" 5
15619 fi
15620 done
15621 done
15622
15623 for amodule in $ac_shared_modules; do
15624 ac_build_shared_modules="modules/$amodule $ac_build_shared_modules"
15625 done
15626
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Werror=implicit-function-declaration" >&5
15628 $as_echo_n "checking whether ${CC-cc} accepts -Werror=implicit-function-declaration... " >&6; }
15629 echo 'void f(){}' > conftest.c
15630 if test -z "`${CC-cc} -c -Werror=implicit-function-declaration conftest.c 2>&1`"; then
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15632 $as_echo "yes" >&6; }
15633 CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
15634 else
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15636 $as_echo "no" >&6; }
15637 fi
15638 rm -fr conftest*
15639
15640 fi
15641 fi
15642
15643 fi
15644
15645
15646 my_config="mysql_config"
15647
15648 # Check whether --with-mysql-config was given.
15649 if test "${with_mysql_config+set}" = set; then :
15650 withval=$with_mysql_config;
15651 if test x"$withval" != x; then
15652 my_config=`echo "$withval"`
15653
15654 if test -z "$my_config"; then
15655 my_config="no"
15656
15657 elif test x"$my_config" = xno; then
15658 # do nothing
15659 foo=bar
15660
15661 elif test x"$my_config" = xyes; then
15662 # Use the default
15663 my_config="mysql_config"
15664
15665 elif test -x "$my_config"; then
15666 # do nothing
15667 foo=bar
15668
15669 else
15670 as_fn_error $? "mysql_config path $my_config is not executable" "$LINENO" 5
15671 fi
15672
15673 else
15674 my_config="no"
15675 fi
15676
15677 fi
15678
15679
15680 openssl_cmdline="openssl"
15681
15682 # Check whether --with-openssl-cmdline was given.
15683 if test "${with_openssl_cmdline+set}" = set; then :
15684 withval=$with_openssl_cmdline;
15685 if test x"$withval" != x; then
15686 openssl_cmdline=`echo "$withval"`
15687
15688 if test -z "$openssl_cmdline"; then
15689 openssl_cmdline="no"
15690
15691 elif test x"$openssl_cmdline" = xno; then
15692 # do nothing
15693 foo=bar
15694
15695 elif test x"$openssl_cmdline" = xyes; then
15696 # Use the default
15697 openssl_cmdline="openssl"
15698
15699 elif test -x "$openssl_cmdline"; then
15700 # do nothing
15701 foo=bar
15702
15703 else
15704 as_fn_error $? "openssl path $openssl_cmdline is not executable" "$LINENO" 5
15705 fi
15706
15707 else
15708 openssl_cmdline="no"
15709 fi
15710
15711 fi
15712
15713
15714
15715 pg_config="pg_config"
15716
15717 # Check whether --with-postgres-config was given.
15718 if test "${with_postgres_config+set}" = set; then :
15719 withval=$with_postgres_config;
15720 if test x"$withval" != x; then
15721 pg_config=`echo "$withval"`
15722
15723 if test -z "$pg_config"; then
15724 pg_config="no"
15725
15726 elif test x"$pg_config" = xno; then
15727 # do nothing
15728 foo=bar
15729
15730 elif test x"$pg_config" = xyes; then
15731 # Use the default
15732 pg_config="pg_config"
15733
15734 elif test -x "$pg_config"; then
15735 # do nothing
15736 foo=bar
15737
15738 else
15739 as_fn_error $? "pg_config path $pg_config is not executable" "$LINENO" 5
15740 fi
15741
15742 else
15743 pg_config="no"
15744 fi
15745
15746 fi
15747
15748
15749 pkgconfigdir=NONE
15750
15751 # Check whether --with-pkgconfig was given.
15752 if test "${with_pkgconfig+set}" = set; then :
15753 withval=$with_pkgconfig;
15754 if test x"$withval" != x; then
15755 if test x"$withval" = xyes; then
15756 as_fn_error $? "--with-pkgconfig parameter missing required directory path" "$LINENO" 5
15757 fi
15758
15759 if test x"$withval" != xno; then
15760 pkgconfigdir=`echo "$withval"`
15761 fi
15762 fi
15763
15764 fi
15765
15766
15767
15768 # Check whether --enable-auth-file was given.
15769 if test "${enable_auth_file+set}" = set; then :
15770 enableval=$enable_auth_file;
15771 if test "$enableval" = "no"; then
15772 ac_core_modules=`echo "$ac_core_modules" | sed -e 's/mod_auth_file\.o//'`
15773 ac_build_core_modules=`echo "$ac_build_core_modules" | sed -e 's/modules\/mod_auth_file\.o//'`
15774 fi
15775
15776 fi
15777
15778
15779 # Check whether --enable-autoshadow was given.
15780 if test "${enable_autoshadow+set}" = set; then :
15781 enableval=$enable_autoshadow;
15782 if test "$enableval" = "yes" && test "$OSTYPE" = "-DAIX4"; then
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AIX does not support traditional shadowed passwords" >&5
15784 $as_echo "$as_me: WARNING: AIX does not support traditional shadowed passwords" >&2;}
15785 enableval="no"
15786 fi
15787
15788 if test "$enableval" != "no" ; then
15789
15790 $as_echo "#define PR_USE_SHADOW 1" >>confdefs.h
15791
15792
15793 $as_echo "#define PR_USE_AUTO_SHADOW 1" >>confdefs.h
15794
15795 force_shadow="yes"
15796 fi
15797 fi
15798
15799
15800 # Check whether --enable-auth-pam was given.
15801 if test "${enable_auth_pam+set}" = set; then :
15802 enableval=$enable_auth_pam;
15803 if test "$enableval" = "no"; then
15804 if test `echo $ac_static_modules | grep -c mod_auth_pam` != "0"; then
15805 as_fn_error $? "You cannot run configure with --disable-auth-pam and include mod_auth_pam in --with-modules at the same time" "$LINENO" 5
15806 fi
15807
15808 if test `echo $ac_shared_modules | grep -c mod_auth_pam` != "0"; then
15809 as_fn_error $? "You cannot run configure with --disable-auth-pam and include mod_auth_pam in --with-shared at the same time" "$LINENO" 5
15810 fi
15811 fi
15812
15813 fi
15814
15815
15816 # Check whether --enable-builtin-getaddrinfo was given.
15817 if test "${enable_builtin_getaddrinfo+set}" = set; then :
15818 enableval=$enable_builtin_getaddrinfo;
15819 if test x"$enableval" = xyes; then
15820
15821 $as_echo "#define PR_USE_GETADDRINFO 1" >>confdefs.h
15822
15823 fi
15824
15825 fi
15826
15827
15828 if test "$OSTYPE" = "-DHPUX11"; then
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HP-UX 11 has broken getaddrinfo(), using builtin version" >&5
15830 $as_echo "$as_me: WARNING: HP-UX 11 has broken getaddrinfo(), using builtin version" >&2;}
15831
15832 $as_echo "#define PR_USE_GETADDRINFO 1" >>confdefs.h
15833
15834 fi
15835
15836 # Check whether --enable-builtin-getnameinfo was given.
15837 if test "${enable_builtin_getnameinfo+set}" = set; then :
15838 enableval=$enable_builtin_getnameinfo;
15839 if test x"$enableval" = xyes; then
15840
15841 $as_echo "#define PR_USE_GETNAMEINFO 1" >>confdefs.h
15842
15843 fi
15844
15845 fi
15846
15847
15848 # Check whether --enable-cap was given.
15849 if test "${enable_cap+set}" = set; then :
15850 enableval=$enable_cap;
15851 fi
15852
15853
15854 # Check whether --enable-ctrls was given.
15855 if test "${enable_ctrls+set}" = set; then :
15856 enableval=$enable_ctrls; if test x"$enableval" = xyes ; then
15857
15858 $as_echo "#define PR_USE_CTRLS 1" >>confdefs.h
15859
15860 fi
15861
15862 fi
15863
15864
15865 # Check whether --enable-facl was given.
15866 if test "${enable_facl+set}" = set; then :
15867 enableval=$enable_facl;
15868 fi
15869
15870
15871 # Check whether --enable-curses was given.
15872 if test "${enable_curses+set}" = set; then :
15873 enableval=$enable_curses;
15874 fi
15875
15876
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
15878 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
15879 if ${libltdl_cv_shlibext+:} false; then :
15880 $as_echo_n "(cached) " >&6
15881 else
15882
15883 module=yes
15884 eval libltdl_cv_shlibext=$shrext_cmds
15885
15886 fi
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
15888 $as_echo "$libltdl_cv_shlibext" >&6; }
15889 if test -n "$libltdl_cv_shlibext"; then
15890
15891 cat >>confdefs.h <<_ACEOF
15892 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
15893 _ACEOF
15894
15895 fi
15896
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
15898 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
15899 if ${lt_cv_module_path_var+:} false; then :
15900 $as_echo_n "(cached) " >&6
15901 else
15902 lt_cv_module_path_var="$shlibpath_var"
15903 fi
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
15905 $as_echo "$lt_cv_module_path_var" >&6; }
15906 if test -n "$lt_cv_module_path_var"; then
15907
15908 cat >>confdefs.h <<_ACEOF
15909 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
15910 _ACEOF
15911
15912 fi
15913
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
15915 $as_echo_n "checking for the default library search path... " >&6; }
15916 if ${lt_cv_sys_dlsearch_path+:} false; then :
15917 $as_echo_n "(cached) " >&6
15918 else
15919 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
15920 fi
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
15922 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
15923 if test -n "$lt_cv_sys_dlsearch_path"; then
15924 sys_dlsearch_path=
15925 for dir in $lt_cv_sys_dlsearch_path; do
15926 if test -z "$sys_dlsearch_path"; then
15927 sys_dlsearch_path="$dir"
15928 else
15929 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
15930 fi
15931 done
15932
15933 cat >>confdefs.h <<_ACEOF
15934 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
15935 _ACEOF
15936
15937 fi
15938
15939
15940 LT_DLLOADERS=
15941
15942
15943 ac_ext=c
15944 ac_cpp='$CPP $CPPFLAGS'
15945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15948
15949
15950 LIBADD_DLOPEN=
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15952 $as_echo_n "checking for library containing dlopen... " >&6; }
15953 if ${ac_cv_search_dlopen+:} false; then :
15954 $as_echo_n "(cached) " >&6
15955 else
15956 ac_func_search_save_LIBS=$LIBS
15957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958 /* end confdefs.h. */
15959
15960 /* Override any GCC internal prototype to avoid an error.
15961 Use char because int might match the return type of a GCC
15962 builtin and then its argument prototype would still apply. */
15963 #ifdef __cplusplus
15964 extern "C"
15965 #endif
15966 char dlopen ();
15967 int
15968 main ()
15969 {
15970 return dlopen ();
15971 ;
15972 return 0;
15973 }
15974 _ACEOF
15975 for ac_lib in '' dl; do
15976 if test -z "$ac_lib"; then
15977 ac_res="none required"
15978 else
15979 ac_res=-l$ac_lib
15980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15981 fi
15982 if ac_fn_c_try_link "$LINENO"; then :
15983 ac_cv_search_dlopen=$ac_res
15984 fi
15985 rm -f core conftest.err conftest.$ac_objext \
15986 conftest$ac_exeext
15987 if ${ac_cv_search_dlopen+:} false; then :
15988 break
15989 fi
15990 done
15991 if ${ac_cv_search_dlopen+:} false; then :
15992
15993 else
15994 ac_cv_search_dlopen=no
15995 fi
15996 rm conftest.$ac_ext
15997 LIBS=$ac_func_search_save_LIBS
15998 fi
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16000 $as_echo "$ac_cv_search_dlopen" >&6; }
16001 ac_res=$ac_cv_search_dlopen
16002 if test "$ac_res" != no; then :
16003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16004
16005 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16006
16007 if test "$ac_cv_search_dlopen" != "none required" ; then
16008 LIBADD_DLOPEN="-ldl"
16009 fi
16010 libltdl_cv_lib_dl_dlopen="yes"
16011 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16012 else
16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h. */
16015 #if HAVE_DLFCN_H
16016 # include <dlfcn.h>
16017 #endif
16018
16019 int
16020 main ()
16021 {
16022 dlopen(0, 0);
16023 ;
16024 return 0;
16025 }
16026 _ACEOF
16027 if ac_fn_c_try_link "$LINENO"; then :
16028
16029 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16030
16031 libltdl_cv_func_dlopen="yes"
16032 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16033 else
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16035 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16036 if ${ac_cv_lib_svld_dlopen+:} false; then :
16037 $as_echo_n "(cached) " >&6
16038 else
16039 ac_check_lib_save_LIBS=$LIBS
16040 LIBS="-lsvld $LIBS"
16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h. */
16043
16044 /* Override any GCC internal prototype to avoid an error.
16045 Use char because int might match the return type of a GCC
16046 builtin and then its argument prototype would still apply. */
16047 #ifdef __cplusplus
16048 extern "C"
16049 #endif
16050 char dlopen ();
16051 int
16052 main ()
16053 {
16054 return dlopen ();
16055 ;
16056 return 0;
16057 }
16058 _ACEOF
16059 if ac_fn_c_try_link "$LINENO"; then :
16060 ac_cv_lib_svld_dlopen=yes
16061 else
16062 ac_cv_lib_svld_dlopen=no
16063 fi
16064 rm -f core conftest.err conftest.$ac_objext \
16065 conftest$ac_exeext conftest.$ac_ext
16066 LIBS=$ac_check_lib_save_LIBS
16067 fi
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16069 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16070 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16071
16072 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16073
16074 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16075 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16076 fi
16077
16078 fi
16079 rm -f core conftest.err conftest.$ac_objext \
16080 conftest$ac_exeext conftest.$ac_ext
16081 fi
16082
16083 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16084 then
16085 lt_save_LIBS="$LIBS"
16086 LIBS="$LIBS $LIBADD_DLOPEN"
16087 for ac_func in dlerror
16088 do :
16089 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16090 if test "x$ac_cv_func_dlerror" = xyes; then :
16091 cat >>confdefs.h <<_ACEOF
16092 #define HAVE_DLERROR 1
16093 _ACEOF
16094
16095 fi
16096 done
16097
16098 LIBS="$lt_save_LIBS"
16099 fi
16100
16101
16102 LIBADD_SHL_LOAD=
16103 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16104 if test "x$ac_cv_func_shl_load" = xyes; then :
16105
16106 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16107
16108 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16109 else
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16111 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16112 if ${ac_cv_lib_dld_shl_load+:} false; then :
16113 $as_echo_n "(cached) " >&6
16114 else
16115 ac_check_lib_save_LIBS=$LIBS
16116 LIBS="-ldld $LIBS"
16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16118 /* end confdefs.h. */
16119
16120 /* Override any GCC internal prototype to avoid an error.
16121 Use char because int might match the return type of a GCC
16122 builtin and then its argument prototype would still apply. */
16123 #ifdef __cplusplus
16124 extern "C"
16125 #endif
16126 char shl_load ();
16127 int
16128 main ()
16129 {
16130 return shl_load ();
16131 ;
16132 return 0;
16133 }
16134 _ACEOF
16135 if ac_fn_c_try_link "$LINENO"; then :
16136 ac_cv_lib_dld_shl_load=yes
16137 else
16138 ac_cv_lib_dld_shl_load=no
16139 fi
16140 rm -f core conftest.err conftest.$ac_objext \
16141 conftest$ac_exeext conftest.$ac_ext
16142 LIBS=$ac_check_lib_save_LIBS
16143 fi
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16145 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16146 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16147
16148 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16149
16150 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16151 LIBADD_SHL_LOAD="-ldld"
16152 fi
16153
16154 fi
16155
16156
16157
16158 case $host_os in
16159 darwin[1567].*)
16160 # We only want this for pre-Mac OS X 10.4.
16161 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16162 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16163
16164 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16165
16166 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16167 fi
16168
16169 ;;
16170 beos*)
16171 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16172 ;;
16173 cygwin* | mingw* | os2* | pw32*)
16174 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16175 "
16176 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16177 ac_have_decl=1
16178 else
16179 ac_have_decl=0
16180 fi
16181
16182 cat >>confdefs.h <<_ACEOF
16183 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16184 _ACEOF
16185
16186 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16187 ;;
16188 esac
16189
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16191 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16192 if ${ac_cv_lib_dld_dld_link+:} false; then :
16193 $as_echo_n "(cached) " >&6
16194 else
16195 ac_check_lib_save_LIBS=$LIBS
16196 LIBS="-ldld $LIBS"
16197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16198 /* end confdefs.h. */
16199
16200 /* Override any GCC internal prototype to avoid an error.
16201 Use char because int might match the return type of a GCC
16202 builtin and then its argument prototype would still apply. */
16203 #ifdef __cplusplus
16204 extern "C"
16205 #endif
16206 char dld_link ();
16207 int
16208 main ()
16209 {
16210 return dld_link ();
16211 ;
16212 return 0;
16213 }
16214 _ACEOF
16215 if ac_fn_c_try_link "$LINENO"; then :
16216 ac_cv_lib_dld_dld_link=yes
16217 else
16218 ac_cv_lib_dld_dld_link=no
16219 fi
16220 rm -f core conftest.err conftest.$ac_objext \
16221 conftest$ac_exeext conftest.$ac_ext
16222 LIBS=$ac_check_lib_save_LIBS
16223 fi
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16225 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16226 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16227
16228 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16229
16230 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16231 fi
16232
16233
16234
16235
16236 LT_DLPREOPEN=
16237 if test -n "$LT_DLLOADERS"
16238 then
16239 for lt_loader in $LT_DLLOADERS; do
16240 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16241 done
16242
16243 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16244
16245 fi
16246
16247
16248 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16249
16250
16251 ac_ext=c
16252 ac_cpp='$CPP $CPPFLAGS'
16253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16256
16257
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
16259 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
16260 if ${lt_cv_sys_symbol_underscore+:} false; then :
16261 $as_echo_n "(cached) " >&6
16262 else
16263 lt_cv_sys_symbol_underscore=no
16264 cat > conftest.$ac_ext <<_LT_EOF
16265 void nm_test_func(){}
16266 int main(){nm_test_func;return 0;}
16267 _LT_EOF
16268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16269 (eval $ac_compile) 2>&5
16270 ac_status=$?
16271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16272 test $ac_status = 0; }; then
16273 # Now try to grab the symbols.
16274 ac_nlist=conftest.nm
16275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
16276 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
16277 ac_status=$?
16278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16279 test $ac_status = 0; } && test -s "$ac_nlist"; then
16280 # See whether the symbols have a leading underscore.
16281 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
16282 lt_cv_sys_symbol_underscore=yes
16283 else
16284 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
16285 :
16286 else
16287 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16288 fi
16289 fi
16290 else
16291 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16292 fi
16293 else
16294 echo "configure: failed program was:" >&5
16295 cat conftest.c >&5
16296 fi
16297 rm -rf conftest*
16298
16299 fi
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
16301 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
16302 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
16303
16304
16305 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
16306 if test x"$libltdl_cv_func_dlopen" = xyes ||
16307 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
16309 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
16310 if ${libltdl_cv_need_uscore+:} false; then :
16311 $as_echo_n "(cached) " >&6
16312 else
16313 libltdl_cv_need_uscore=unknown
16314 save_LIBS="$LIBS"
16315 LIBS="$LIBS $LIBADD_DLOPEN"
16316 if test "$cross_compiling" = yes; then :
16317 libltdl_cv_need_uscore=cross
16318 else
16319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16320 lt_status=$lt_dlunknown
16321 cat > conftest.$ac_ext <<_LT_EOF
16322 #line 16322 "configure"
16323 #include "confdefs.h"
16324
16325 #if HAVE_DLFCN_H
16326 #include <dlfcn.h>
16327 #endif
16328
16329 #include <stdio.h>
16330
16331 #ifdef RTLD_GLOBAL
16332 # define LT_DLGLOBAL RTLD_GLOBAL
16333 #else
16334 # ifdef DL_GLOBAL
16335 # define LT_DLGLOBAL DL_GLOBAL
16336 # else
16337 # define LT_DLGLOBAL 0
16338 # endif
16339 #endif
16340
16341 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16342 find out it does not work in some platform. */
16343 #ifndef LT_DLLAZY_OR_NOW
16344 # ifdef RTLD_LAZY
16345 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16346 # else
16347 # ifdef DL_LAZY
16348 # define LT_DLLAZY_OR_NOW DL_LAZY
16349 # else
16350 # ifdef RTLD_NOW
16351 # define LT_DLLAZY_OR_NOW RTLD_NOW
16352 # else
16353 # ifdef DL_NOW
16354 # define LT_DLLAZY_OR_NOW DL_NOW
16355 # else
16356 # define LT_DLLAZY_OR_NOW 0
16357 # endif
16358 # endif
16359 # endif
16360 # endif
16361 #endif
16362
16363 void fnord() { int i=42;}
16364 int main ()
16365 {
16366 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16367 int status = $lt_dlunknown;
16368
16369 if (self)
16370 {
16371 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16372 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16373 /* dlclose (self); */
16374 }
16375 else
16376 puts (dlerror ());
16377
16378 return status;
16379 }
16380 _LT_EOF
16381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16382 (eval $ac_link) 2>&5
16383 ac_status=$?
16384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16385 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16386 (./conftest; exit; ) >&5 2>/dev/null
16387 lt_status=$?
16388 case x$lt_status in
16389 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
16390 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
16391 x$lt_dlunknown|x*) ;;
16392 esac
16393 else :
16394 # compilation failed
16395
16396 fi
16397 fi
16398 rm -fr conftest*
16399
16400 LIBS="$save_LIBS"
16401
16402 fi
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
16404 $as_echo "$libltdl_cv_need_uscore" >&6; }
16405 fi
16406 fi
16407
16408 if test x"$libltdl_cv_need_uscore" = xyes; then
16409
16410 $as_echo "#define NEED_USCORE 1" >>confdefs.h
16411
16412 fi
16413
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
16415 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
16416 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
16417 $as_echo_n "(cached) " >&6
16418 else
16419 # PORTME does your system automatically load deplibs for dlopen?
16420 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16421 # For now, we just catch OSes we know something about -- in the
16422 # future, we'll try test this programmatically.
16423 lt_cv_sys_dlopen_deplibs=unknown
16424 case $host_os in
16425 aix3*|aix4.1.*|aix4.2.*)
16426 # Unknown whether this is true for these versions of AIX, but
16427 # we want this `case' here to explicitly catch those versions.
16428 lt_cv_sys_dlopen_deplibs=unknown
16429 ;;
16430 aix[4-9]*)
16431 lt_cv_sys_dlopen_deplibs=yes
16432 ;;
16433 amigaos*)
16434 case $host_cpu in
16435 powerpc)
16436 lt_cv_sys_dlopen_deplibs=no
16437 ;;
16438 esac
16439 ;;
16440 darwin*)
16441 # Assuming the user has installed a libdl from somewhere, this is true
16442 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16443 lt_cv_sys_dlopen_deplibs=yes
16444 ;;
16445 freebsd* | dragonfly*)
16446 lt_cv_sys_dlopen_deplibs=yes
16447 ;;
16448 gnu* | linux* | k*bsd*-gnu)
16449 # GNU and its variants, using gnu ld.so (Glibc)
16450 lt_cv_sys_dlopen_deplibs=yes
16451 ;;
16452 hpux10*|hpux11*)
16453 lt_cv_sys_dlopen_deplibs=yes
16454 ;;
16455 interix*)
16456 lt_cv_sys_dlopen_deplibs=yes
16457 ;;
16458 irix[12345]*|irix6.[01]*)
16459 # Catch all versions of IRIX before 6.2, and indicate that we don't
16460 # know how it worked for any of those versions.
16461 lt_cv_sys_dlopen_deplibs=unknown
16462 ;;
16463 irix*)
16464 # The case above catches anything before 6.2, and it's known that
16465 # at 6.2 and later dlopen does load deplibs.
16466 lt_cv_sys_dlopen_deplibs=yes
16467 ;;
16468 netbsd* | netbsdelf*-gnu)
16469 lt_cv_sys_dlopen_deplibs=yes
16470 ;;
16471 openbsd*)
16472 lt_cv_sys_dlopen_deplibs=yes
16473 ;;
16474 osf[1234]*)
16475 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16476 # it did *not* use an RPATH in a shared library to find objects the
16477 # library depends on, so we explicitly say `no'.
16478 lt_cv_sys_dlopen_deplibs=no
16479 ;;
16480 osf5.0|osf5.0a|osf5.1)
16481 # dlopen *does* load deplibs and with the right loader patch applied
16482 # it even uses RPATH in a shared library to search for shared objects
16483 # that the library depends on, but there's no easy way to know if that
16484 # patch is installed. Since this is the case, all we can really
16485 # say is unknown -- it depends on the patch being installed. If
16486 # it is, this changes to `yes'. Without it, it would be `no'.
16487 lt_cv_sys_dlopen_deplibs=unknown
16488 ;;
16489 osf*)
16490 # the two cases above should catch all versions of osf <= 5.1. Read
16491 # the comments above for what we know about them.
16492 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16493 # is used to find them so we can finally say `yes'.
16494 lt_cv_sys_dlopen_deplibs=yes
16495 ;;
16496 qnx*)
16497 lt_cv_sys_dlopen_deplibs=yes
16498 ;;
16499 solaris*)
16500 lt_cv_sys_dlopen_deplibs=yes
16501 ;;
16502 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16503 libltdl_cv_sys_dlopen_deplibs=yes
16504 ;;
16505 esac
16506
16507 fi
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
16509 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
16510 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
16511
16512 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
16513
16514 fi
16515
16516 :
16517
16518 for ac_header in argz.h
16519 do :
16520 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
16521 "
16522 if test "x$ac_cv_header_argz_h" = xyes; then :
16523 cat >>confdefs.h <<_ACEOF
16524 #define HAVE_ARGZ_H 1
16525 _ACEOF
16526
16527 fi
16528
16529 done
16530
16531
16532 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
16533 # include <argz.h>
16534 #endif
16535 "
16536 if test "x$ac_cv_type_error_t" = xyes; then :
16537
16538 cat >>confdefs.h <<_ACEOF
16539 #define HAVE_ERROR_T 1
16540 _ACEOF
16541
16542
16543 else
16544
16545 $as_echo "#define error_t int" >>confdefs.h
16546
16547
16548 $as_echo "#define __error_t_defined 1" >>confdefs.h
16549
16550 fi
16551
16552
16553 ARGZ_H=
16554 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
16555 argz_next argz_stringify
16556 do :
16557 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16558 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16559 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16560 cat >>confdefs.h <<_ACEOF
16561 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16562 _ACEOF
16563
16564 else
16565 ARGZ_H=argz.h;
16566
16567 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16568
16569 fi
16570 done
16571
16572
16573 if test -z "$ARGZ_H"; then :
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
16575 $as_echo_n "checking if argz actually works... " >&6; }
16576 if ${lt_cv_sys_argz_works+:} false; then :
16577 $as_echo_n "(cached) " >&6
16578 else
16579 case $host_os in #(
16580 *cygwin*)
16581 lt_cv_sys_argz_works=no
16582 if test "$cross_compiling" != no; then
16583 lt_cv_sys_argz_works="guessing no"
16584 else
16585 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
16586 save_IFS=$IFS
16587 IFS=-.
16588 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
16589 IFS=$save_IFS
16590 lt_os_major=${2-0}
16591 lt_os_minor=${3-0}
16592 lt_os_micro=${4-0}
16593 if test "$lt_os_major" -gt 1 \
16594 || { test "$lt_os_major" -eq 1 \
16595 && { test "$lt_os_minor" -gt 5 \
16596 || { test "$lt_os_minor" -eq 5 \
16597 && test "$lt_os_micro" -gt 24; }; }; }; then
16598 lt_cv_sys_argz_works=yes
16599 fi
16600 fi
16601 ;; #(
16602 *) lt_cv_sys_argz_works=yes ;;
16603 esac
16604 fi
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
16606 $as_echo "$lt_cv_sys_argz_works" >&6; }
16607 if test $lt_cv_sys_argz_works = yes; then :
16608
16609 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
16610
16611 else
16612 ARGZ_H=argz.h
16613
16614
16615 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
16616
16617 fi
16618 fi
16619
16620
16621
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
16623 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
16624 if ${libltdl_cv_preloaded_symbols+:} false; then :
16625 $as_echo_n "(cached) " >&6
16626 else
16627 if test -n "$lt_cv_sys_global_symbol_pipe"; then
16628 libltdl_cv_preloaded_symbols=yes
16629 else
16630 libltdl_cv_preloaded_symbols=no
16631 fi
16632
16633 fi
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
16635 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
16636 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
16637
16638 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
16639
16640 fi
16641
16642
16643
16644 # Check whether --enable-dso was given.
16645 if test "${enable_dso+set}" = set; then :
16646 enableval=$enable_dso;
16647 if test x"$enableval" = x"yes"; then
16648 ac_core_modules="$ac_core_modules mod_dso.o"
16649 ac_build_core_modules="$ac_build_core_modules modules/mod_dso.o"
16650
16651 MAIN_LDFLAGS="-L\$(top_srcdir)/lib/libltdl -dlopen self -export-dynamic"
16652 MAIN_LIBS="$MAIN_LIBS \$(LIBLTDL)"
16653
16654 MODULE_LDFLAGS="-avoid-version -export-dynamic -module"
16655
16656 INSTALL_DEPS="install-libltdl"
16657 LIB_DEPS="libltdl"
16658 MODULE_DEPS="libltdl"
16659
16660 $as_echo "#define PR_USE_DSO 1" >>confdefs.h
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671 # Set options
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684 # Check whether --with-included_ltdl was given.
16685 if test "${with_included_ltdl+set}" = set; then :
16686 withval=$with_included_ltdl;
16687 fi
16688
16689
16690 if test "x$with_included_ltdl" != xyes; then
16691 # We are not being forced to use the included libltdl sources, so
16692 # decide whether there is a useful installed version we can use.
16693 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
16694
16695 "
16696 if test "x$ac_cv_header_ltdl_h" = xyes; then :
16697 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
16698 #include <ltdl.h>
16699 "
16700 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
16702 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
16703 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
16704 $as_echo_n "(cached) " >&6
16705 else
16706 ac_check_lib_save_LIBS=$LIBS
16707 LIBS="-lltdl $LIBS"
16708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709 /* end confdefs.h. */
16710
16711 /* Override any GCC internal prototype to avoid an error.
16712 Use char because int might match the return type of a GCC
16713 builtin and then its argument prototype would still apply. */
16714 #ifdef __cplusplus
16715 extern "C"
16716 #endif
16717 char lt_dladvise_preload ();
16718 int
16719 main ()
16720 {
16721 return lt_dladvise_preload ();
16722 ;
16723 return 0;
16724 }
16725 _ACEOF
16726 if ac_fn_c_try_link "$LINENO"; then :
16727 ac_cv_lib_ltdl_lt_dladvise_preload=yes
16728 else
16729 ac_cv_lib_ltdl_lt_dladvise_preload=no
16730 fi
16731 rm -f core conftest.err conftest.$ac_objext \
16732 conftest$ac_exeext conftest.$ac_ext
16733 LIBS=$ac_check_lib_save_LIBS
16734 fi
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
16736 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
16737 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
16738 with_included_ltdl=no
16739 else
16740 with_included_ltdl=yes
16741 fi
16742
16743 else
16744 with_included_ltdl=yes
16745 fi
16746
16747 else
16748 with_included_ltdl=yes
16749 fi
16750
16751
16752 fi
16753
16754
16755
16756
16757 # Check whether --with-ltdl_include was given.
16758 if test "${with_ltdl_include+set}" = set; then :
16759 withval=$with_ltdl_include;
16760 fi
16761
16762
16763 if test -n "$with_ltdl_include"; then
16764 if test -f "$with_ltdl_include/ltdl.h"; then :
16765 else
16766 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
16767 fi
16768 else
16769 with_ltdl_include=no
16770 fi
16771
16772
16773 # Check whether --with-ltdl_lib was given.
16774 if test "${with_ltdl_lib+set}" = set; then :
16775 withval=$with_ltdl_lib;
16776 fi
16777
16778
16779 if test -n "$with_ltdl_lib"; then
16780 if test -f "$with_ltdl_lib/libltdl.la"; then :
16781 else
16782 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
16783 fi
16784 else
16785 with_ltdl_lib=no
16786 fi
16787
16788 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
16789 ,yes,no,no,)
16790 case $enable_ltdl_convenience in
16791 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
16792 "") enable_ltdl_convenience=yes
16793 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16794 esac
16795 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
16796 LTDLDEPS=$LIBLTDL
16797 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16798
16799
16800
16801
16802
16803 # For backwards non-gettext consistent compatibility...
16804 INCLTDL="$LTDLINCL"
16805
16806
16807 ;;
16808 ,no,no,no,)
16809 # If the included ltdl is not to be used, then use the
16810 # preinstalled libltdl we found.
16811
16812 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
16813
16814 LIBLTDL=-lltdl
16815 LTDLDEPS=
16816 LTDLINCL=
16817 ;;
16818 ,no*,no,*)
16819 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
16820 ;;
16821 *) with_included_ltdl=no
16822 LIBLTDL="-L$with_ltdl_lib -lltdl"
16823 LTDLDEPS=
16824 LTDLINCL="-I$with_ltdl_include"
16825 ;;
16826 esac
16827 INCLTDL="$LTDLINCL"
16828
16829 # Report our decision...
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
16831 $as_echo_n "checking where to find libltdl headers... " >&6; }
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
16833 $as_echo "$LTDLINCL" >&6; }
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
16835 $as_echo_n "checking where to find libltdl library... " >&6; }
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
16837 $as_echo "$LIBLTDL" >&6; }
16838
16839
16840
16841
16842
16843 subdirs="$subdirs lib/libltdl"
16844
16845
16846
16847
16848
16849 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
16850 # the user used. This is so that ltdl.h can pick up the parent projects
16851 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
16852 # definitions required by ltdl.c.
16853 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
16854
16855
16856
16857 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
16858 do :
16859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16860 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16861 "
16862 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16863 cat >>confdefs.h <<_ACEOF
16864 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16865 _ACEOF
16866
16867 fi
16868
16869 done
16870
16871
16872 for ac_func in closedir opendir readdir
16873 do :
16874 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16875 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16876 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16877 cat >>confdefs.h <<_ACEOF
16878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16879 _ACEOF
16880
16881 else
16882
16883
16884 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
16885
16886 fi
16887 done
16888
16889 for ac_func in strlcat strlcpy
16890 do :
16891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16892 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16893 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16894 cat >>confdefs.h <<_ACEOF
16895 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16896 _ACEOF
16897
16898 else
16899
16900
16901 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
16902
16903 fi
16904 done
16905
16906
16907
16908 cat >>confdefs.h <<_ACEOF
16909 #define LT_LIBEXT "$libext"
16910 _ACEOF
16911
16912
16913 name=ltdl
16914 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
16915
16916
16917
16918
16919
16920
16921
16922
16923 # Only expand once:
16924
16925
16926
16927
16928
16929
16930 case $enable_ltdl_convenience in
16931 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
16932 "") enable_ltdl_convenience=yes
16933 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
16934 esac
16935 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
16936 LTDLDEPS=$LIBLTDL
16937 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
16938
16939
16940
16941
16942
16943 # For backwards non-gettext consistent compatibility...
16944 INCLTDL="$LTDLINCL"
16945
16946
16947
16948 fi
16949
16950 fi
16951
16952
16953 # Check whether --enable-ident was given.
16954 if test "${enable_ident+set}" = set; then :
16955 enableval=$enable_ident;
16956 fi
16957
16958
16959 # Check whether --enable-memcache was given.
16960 if test "${enable_memcache+set}" = set; then :
16961 enableval=$enable_memcache; if test x"$enableval" = xyes ; then
16962
16963 $as_echo "#define PR_USE_MEMCACHE 1" >>confdefs.h
16964
16965 fi
16966
16967 fi
16968
16969
16970 ENABLE_NLS="\"\""
16971 # Check whether --enable-nls was given.
16972 if test "${enable_nls+set}" = set; then :
16973 enableval=$enable_nls; if test x"$enableval" = x"yes" ; then
16974
16975
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
16977 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
16978 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
16979 $as_echo_n "(cached) " >&6
16980 else
16981 ac_check_lib_save_LIBS=$LIBS
16982 LIBS="-lintl $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 bindtextdomain ();
16993 int
16994 main ()
16995 {
16996 return bindtextdomain ();
16997 ;
16998 return 0;
16999 }
17000 _ACEOF
17001 if ac_fn_c_try_link "$LINENO"; then :
17002 ac_cv_lib_intl_bindtextdomain=yes
17003 else
17004 ac_cv_lib_intl_bindtextdomain=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_intl_bindtextdomain" >&5
17011 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
17012 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
17013 ac_build_addl_libs="-lintl $ac_build_addl_libs" UTILS_LIBS="-lintl"
17014
17015 $as_echo "#define HAVE_LIBINTL 1" >>confdefs.h
17016
17017
17018 $as_echo "#define PR_USE_NLS 1" >>confdefs.h
17019
17020 ENABLE_NLS="1"
17021
17022 else
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lc" >&5
17024 $as_echo_n "checking for bindtextdomain in -lc... " >&6; }
17025 if ${ac_cv_lib_c_bindtextdomain+:} false; then :
17026 $as_echo_n "(cached) " >&6
17027 else
17028 ac_check_lib_save_LIBS=$LIBS
17029 LIBS="-lc $LIBS"
17030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17031 /* end confdefs.h. */
17032
17033 /* Override any GCC internal prototype to avoid an error.
17034 Use char because int might match the return type of a GCC
17035 builtin and then its argument prototype would still apply. */
17036 #ifdef __cplusplus
17037 extern "C"
17038 #endif
17039 char bindtextdomain ();
17040 int
17041 main ()
17042 {
17043 return bindtextdomain ();
17044 ;
17045 return 0;
17046 }
17047 _ACEOF
17048 if ac_fn_c_try_link "$LINENO"; then :
17049 ac_cv_lib_c_bindtextdomain=yes
17050 else
17051 ac_cv_lib_c_bindtextdomain=no
17052 fi
17053 rm -f core conftest.err conftest.$ac_objext \
17054 conftest$ac_exeext conftest.$ac_ext
17055 LIBS=$ac_check_lib_save_LIBS
17056 fi
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_bindtextdomain" >&5
17058 $as_echo "$ac_cv_lib_c_bindtextdomain" >&6; }
17059 if test "x$ac_cv_lib_c_bindtextdomain" = xyes; then :
17060
17061 $as_echo "#define PR_USE_NLS 1" >>confdefs.h
17062
17063 ENABLE_NLS="1"
17064
17065 else
17066 as_fn_error $? "libintl support, required for NLS, not present -- aborting" "$LINENO" 5
17067
17068 fi
17069
17070
17071 fi
17072
17073
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
17075 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
17076 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
17077 $as_echo_n "(cached) " >&6
17078 else
17079 ac_check_lib_save_LIBS=$LIBS
17080 LIBS="-liconv $LIBS"
17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h. */
17083
17084 /* Override any GCC internal prototype to avoid an error.
17085 Use char because int might match the return type of a GCC
17086 builtin and then its argument prototype would still apply. */
17087 #ifdef __cplusplus
17088 extern "C"
17089 #endif
17090 char iconv_open ();
17091 int
17092 main ()
17093 {
17094 return iconv_open ();
17095 ;
17096 return 0;
17097 }
17098 _ACEOF
17099 if ac_fn_c_try_link "$LINENO"; then :
17100 ac_cv_lib_iconv_iconv_open=yes
17101 else
17102 ac_cv_lib_iconv_iconv_open=no
17103 fi
17104 rm -f core conftest.err conftest.$ac_objext \
17105 conftest$ac_exeext conftest.$ac_ext
17106 LIBS=$ac_check_lib_save_LIBS
17107 fi
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
17109 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
17110 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
17111 LIBS="$LIBS -liconv"
17112
17113 $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
17114
17115
17116 $as_echo "#define PR_USE_NLS 1" >>confdefs.h
17117
17118 ENABLE_NLS="1"
17119
17120 else
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
17122 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
17123 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
17124 $as_echo_n "(cached) " >&6
17125 else
17126 ac_check_lib_save_LIBS=$LIBS
17127 LIBS="-liconv $LIBS"
17128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129 /* end confdefs.h. */
17130
17131 /* Override any GCC internal prototype to avoid an error.
17132 Use char because int might match the return type of a GCC
17133 builtin and then its argument prototype would still apply. */
17134 #ifdef __cplusplus
17135 extern "C"
17136 #endif
17137 char libiconv_open ();
17138 int
17139 main ()
17140 {
17141 return libiconv_open ();
17142 ;
17143 return 0;
17144 }
17145 _ACEOF
17146 if ac_fn_c_try_link "$LINENO"; then :
17147 ac_cv_lib_iconv_libiconv_open=yes
17148 else
17149 ac_cv_lib_iconv_libiconv_open=no
17150 fi
17151 rm -f core conftest.err conftest.$ac_objext \
17152 conftest$ac_exeext conftest.$ac_ext
17153 LIBS=$ac_check_lib_save_LIBS
17154 fi
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
17156 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
17157 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
17158 LIBS="$LIBS -liconv"
17159
17160 $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
17161
17162
17163 $as_echo "#define PR_USE_NLS 1" >>confdefs.h
17164
17165 ENABLE_NLS="1"
17166
17167 else
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -lc" >&5
17169 $as_echo_n "checking for iconv_open in -lc... " >&6; }
17170 if ${ac_cv_lib_c_iconv_open+:} false; then :
17171 $as_echo_n "(cached) " >&6
17172 else
17173 ac_check_lib_save_LIBS=$LIBS
17174 LIBS="-lc $LIBS"
17175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17176 /* end confdefs.h. */
17177
17178 /* Override any GCC internal prototype to avoid an error.
17179 Use char because int might match the return type of a GCC
17180 builtin and then its argument prototype would still apply. */
17181 #ifdef __cplusplus
17182 extern "C"
17183 #endif
17184 char iconv_open ();
17185 int
17186 main ()
17187 {
17188 return iconv_open ();
17189 ;
17190 return 0;
17191 }
17192 _ACEOF
17193 if ac_fn_c_try_link "$LINENO"; then :
17194 ac_cv_lib_c_iconv_open=yes
17195 else
17196 ac_cv_lib_c_iconv_open=no
17197 fi
17198 rm -f core conftest.err conftest.$ac_objext \
17199 conftest$ac_exeext conftest.$ac_ext
17200 LIBS=$ac_check_lib_save_LIBS
17201 fi
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_iconv_open" >&5
17203 $as_echo "$ac_cv_lib_c_iconv_open" >&6; }
17204 if test "x$ac_cv_lib_c_iconv_open" = xyes; then :
17205
17206 $as_echo "#define PR_USE_NLS 1" >>confdefs.h
17207
17208 ENABLE_NLS="1"
17209
17210 else
17211 as_fn_error $? "libiconv support, required for NLS, not present -- aborting" "$LINENO" 5
17212
17213 fi
17214
17215
17216 fi
17217
17218
17219 fi
17220
17221 fi
17222
17223 fi
17224
17225
17226 # Check whether --enable-nonblocking-log-open was given.
17227 if test "${enable_nonblocking_log_open+set}" = set; then :
17228 enableval=$enable_nonblocking_log_open;
17229 fi
17230
17231
17232 # Check whether --enable-ncurses was given.
17233 if test "${enable_ncurses+set}" = set; then :
17234 enableval=$enable_ncurses;
17235 fi
17236
17237
17238 # Check whether --enable-openssl-api-compat was given.
17239 if test "${enable_openssl_api_compat+set}" = set; then :
17240 enableval=$enable_openssl_api_compat;
17241 fi
17242
17243
17244 # Check whether --enable-pcre was given.
17245 if test "${enable_pcre+set}" = set; then :
17246 enableval=$enable_pcre;
17247 if test x"$enableval" = xyes ; then
17248 if test x"$enable_pcre2" = xyes ; then
17249 as_fn_error $? "cannot support both PCRE and PCRE2 at the same time -- aborting" "$LINENO" 5
17250 fi
17251
17252
17253 $as_echo "#define PR_USE_PCRE 1" >>confdefs.h
17254
17255 ac_build_addl_libs="$ac_build_addl_libs -lpcreposix -lpcre"
17256
17257 # Check for other PCRE-specific functionality here
17258 saved_ldflags="$LDFLAGS"
17259 saved_libs="$LIBS"
17260 saved_cppflags="$CPPFLAGS"
17261
17262 # fiddle with CPPFLAGS, LDFLAGS
17263 CPPFLAGS="$CPPFLAGS $ac_build_addl_includes"
17264 LDFLAGS="$LDFLAGS $ac_build_addl_libdirs"
17265 LIBS="$LIBS -lpcre -lpcreposix"
17266
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE's pcre_free_study" >&5
17268 $as_echo_n "checking for PCRE's pcre_free_study... " >&6; }
17269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17270 /* end confdefs.h. */
17271 #ifdef HAVE_STDDEF_H
17272 # include <stddef.h>
17273 #endif
17274 #ifdef HAVE_STDLIB_H
17275 # include <stdlib.h>
17276 #endif
17277 #ifdef HAVE_SYS_TYPES_H
17278 # include <sys/types.h>
17279 #endif
17280 #include <pcre.h>
17281
17282 int
17283 main ()
17284 {
17285
17286 pcre_extra *extra = NULL;
17287 pcre_free_study(extra);
17288
17289 ;
17290 return 0;
17291 }
17292 _ACEOF
17293 if ac_fn_c_try_link "$LINENO"; then :
17294
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17296 $as_echo "yes" >&6; }
17297
17298 $as_echo "#define HAVE_PCRE_PCRE_FREE_STUDY 1" >>confdefs.h
17299
17300
17301 else
17302
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17304 $as_echo "no" >&6; }
17305
17306
17307 fi
17308 rm -f core conftest.err conftest.$ac_objext \
17309 conftest$ac_exeext conftest.$ac_ext
17310
17311 # restore CPPFLAGS, LDFLAGS, LIBS
17312 CPPFLAGS="$saved_cppflags"
17313 LDFLAGS="$saved_ldflags"
17314 LIBS="$saved_libs"
17315 fi
17316
17317 fi
17318
17319
17320 # Check whether --enable-pcre2 was given.
17321 if test "${enable_pcre2+set}" = set; then :
17322 enableval=$enable_pcre2;
17323 if test x"$enableval" = xyes ; then
17324 if test x"$enable_pcre" = xyes ; then
17325 as_fn_error $? "cannot support both PCRE and PCRE2 at the same time -- aborting" "$LINENO" 5
17326 fi
17327
17328
17329 $as_echo "#define PR_USE_PCRE2 1" >>confdefs.h
17330
17331 ac_build_addl_libs="$ac_build_addl_libs -lpcre2-posix -lpcre2-8"
17332
17333 # Check for other PCRE2-specific functionality here
17334 saved_ldflags="$LDFLAGS"
17335 saved_libs="$LIBS"
17336 saved_cppflags="$CPPFLAGS"
17337
17338 # fiddle with CPPFLAGS, LDFLAGS
17339 CPPFLAGS="$CPPFLAGS $ac_build_addl_includes"
17340 LDFLAGS="$LDFLAGS $ac_build_addl_libdirs"
17341 LIBS="$LIBS -lpcre2-8 -lpcre2-posix"
17342
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE2's pcre2_jit_compile" >&5
17344 $as_echo_n "checking for PCRE2's pcre2_jit_compile... " >&6; }
17345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h. */
17347 #ifdef HAVE_STDDEF_H
17348 # include <stddef.h>
17349 #endif
17350 #ifdef HAVE_STDLIB_H
17351 # include <stdlib.h>
17352 #endif
17353 #ifdef HAVE_SYS_TYPES_H
17354 # include <sys/types.h>
17355 #endif
17356 #define PCRE2_CODE_UNIT_WIDTH 8
17357 #include <pcre2.h>
17358
17359 int
17360 main ()
17361 {
17362
17363 pcre2_code *code = NULL;
17364 (void) pcre2_jit_compile(code, 0);
17365
17366 ;
17367 return 0;
17368 }
17369 _ACEOF
17370 if ac_fn_c_try_link "$LINENO"; then :
17371
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17373 $as_echo "yes" >&6; }
17374
17375 $as_echo "#define HAVE_PCRE2_PCRE2_JIT_COMPILE 1" >>confdefs.h
17376
17377
17378 else
17379
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17381 $as_echo "no" >&6; }
17382
17383
17384 fi
17385 rm -f core conftest.err conftest.$ac_objext \
17386 conftest$ac_exeext conftest.$ac_ext
17387
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE2's POSIX wrappers" >&5
17389 $as_echo_n "checking for PCRE2's POSIX wrappers... " >&6; }
17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391 /* end confdefs.h. */
17392 #ifdef HAVE_STDDEF_H
17393 # include <stddef.h>
17394 #endif
17395 #ifdef HAVE_STDLIB_H
17396 # include <stdlib.h>
17397 #endif
17398 #ifdef HAVE_SYS_TYPES_H
17399 # include <sys/types.h>
17400 #endif
17401 #define PCRE2_CODE_UNIT_WIDTH 8
17402 #include <pcre2.h>
17403 #include <pcre2posix.h>
17404
17405 int
17406 main ()
17407 {
17408
17409 regex_t *re = NULL;
17410 (void) pcre2_regcomp(re, NULL, 0);
17411
17412 ;
17413 return 0;
17414 }
17415 _ACEOF
17416 if ac_fn_c_try_link "$LINENO"; then :
17417
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17419 $as_echo "yes" >&6; }
17420
17421 $as_echo "#define HAVE_PCRE2_PCRE2_REGCOMP 1" >>confdefs.h
17422
17423
17424 else
17425
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17427 $as_echo "no" >&6; }
17428
17429
17430 fi
17431 rm -f core conftest.err conftest.$ac_objext \
17432 conftest$ac_exeext conftest.$ac_ext
17433
17434 # restore CPPFLAGS, LDFLAGS, LIBS
17435 CPPFLAGS="$saved_cppflags"
17436 LDFLAGS="$saved_ldflags"
17437 LIBS="$saved_libs"
17438 fi
17439
17440 fi
17441
17442
17443 # Check whether --enable-redis was given.
17444 if test "${enable_redis+set}" = set; then :
17445 enableval=$enable_redis; if test x"$enableval" = xyes ; then
17446 ac_fn_c_check_header_mongrel "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default"
17447 if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then :
17448
17449 $as_echo "#define HAVE_HIREDIS_HIREDIS_H 1" >>confdefs.h
17450
17451
17452 $as_echo "#define PR_USE_REDIS 1" >>confdefs.h
17453
17454
17455 fi
17456
17457
17458
17459 # Check for the redisReconnect() function in Hiredis; earlier versions
17460 # did not have this.
17461 saved_ldflags="$LDFLAGS"
17462 saved_libs="$LIBS"
17463 saved_cppflags="$CPPFLAGS"
17464
17465 # fiddle with CPPFLAGS, LDFLAGS
17466 CPPFLAGS="$CPPFLAGS $ac_build_addl_includes"
17467 LDFLAGS="$LDFLAGS $ac_build_addl_libdirs"
17468 LIBS="$LIBS -lhiredis"
17469
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Hiredis' redisReconnect" >&5
17471 $as_echo_n "checking for Hiredis' redisReconnect... " >&6; }
17472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473 /* end confdefs.h. */
17474
17475 #ifdef HAVE_STDLIB_H
17476 # include <stdlib.h>
17477 #endif
17478 #ifdef HAVE_SYS_TYPES_H
17479 # include <sys/types.h>
17480 #endif
17481 #include <hiredis/hiredis.h>
17482
17483 int
17484 main ()
17485 {
17486
17487 (void) redisReconnect(NULL);
17488
17489 ;
17490 return 0;
17491 }
17492 _ACEOF
17493 if ac_fn_c_try_link "$LINENO"; then :
17494
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17496 $as_echo "yes" >&6; }
17497
17498 $as_echo "#define HAVE_HIREDIS_REDISRECONNECT 1" >>confdefs.h
17499
17500
17501 else
17502
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17504 $as_echo "no" >&6; }
17505
17506
17507 fi
17508 rm -f core conftest.err conftest.$ac_objext \
17509 conftest$ac_exeext conftest.$ac_ext
17510
17511 # restore CPPFLAGS, LDFLAGS, LIBS
17512 CPPFLAGS="$saved_cppflags"
17513 LDFLAGS="$saved_ldflags"
17514 LIBS="$saved_libs"
17515 fi
17516
17517 fi
17518
17519
17520 # Check whether --enable-force-setpassent was given.
17521 if test "${enable_force_setpassent+set}" = set; then :
17522 enableval=$enable_force_setpassent;
17523 fi
17524
17525
17526 # Check whether --enable-ipv6 was given.
17527 if test "${enable_ipv6+set}" = set; then :
17528 enableval=$enable_ipv6;
17529 fi
17530
17531
17532 pr_use_openssl=""
17533 # Check whether --enable-openssl was given.
17534 if test "${enable_openssl+set}" = set; then :
17535 enableval=$enable_openssl; if test x"$enableval" = xno ; then
17536 pr_use_openssl="no"
17537
17538 elif test x"$enableval" = xyes ; then
17539 pr_use_openssl="yes"
17540 fi
17541
17542 fi
17543
17544
17545 pr_use_sodium=""
17546 # Check whether --enable-sodium was given.
17547 if test "${enable_sodium+set}" = set; then :
17548 enableval=$enable_sodium; if test x"$enableval" = xno ; then
17549 pr_use_sodium="no"
17550 fi
17551
17552 fi
17553
17554
17555 # Check whether --enable-sendfile was given.
17556 if test "${enable_sendfile+set}" = set; then :
17557 enableval=$enable_sendfile;
17558 fi
17559
17560
17561 # Check whether --enable-shadow was given.
17562 if test "${enable_shadow+set}" = set; then :
17563 enableval=$enable_shadow;
17564 if test "$enableval" = "yes" && test "$OSTYPE" = "-DAIX4"; then
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: AIX does not support traditional shadowed passwords" >&5
17566 $as_echo "$as_me: WARNING: AIX does not support traditional shadowed passwords" >&2;}
17567 enableval="no"
17568 fi
17569
17570 if test "$enableval" = "no" ; then
17571 use_shadow=""
17572 force_shadow="no"
17573 else
17574
17575 $as_echo "#define PR_USE_SHADOW 1" >>confdefs.h
17576
17577 force_shadow="yes"
17578 fi
17579 fi
17580
17581
17582 # Check whether --enable-sia was given.
17583 if test "${enable_sia+set}" = set; then :
17584 enableval=$enable_sia;
17585 if test x"$enableval" = xyes ; then
17586
17587 for ac_header in sia.h siad.h sys/security.h
17588 do :
17589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17590 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17591 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17592 cat >>confdefs.h <<_ACEOF
17593 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17594 _ACEOF
17595
17596 fi
17597
17598 done
17599
17600
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set_auth_parameters in -lsecurity" >&5
17602 $as_echo_n "checking for set_auth_parameters in -lsecurity... " >&6; }
17603 if ${ac_cv_lib_security_set_auth_parameters+:} false; then :
17604 $as_echo_n "(cached) " >&6
17605 else
17606 ac_check_lib_save_LIBS=$LIBS
17607 LIBS="-lsecurity $LIBS"
17608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609 /* end confdefs.h. */
17610
17611 /* Override any GCC internal prototype to avoid an error.
17612 Use char because int might match the return type of a GCC
17613 builtin and then its argument prototype would still apply. */
17614 #ifdef __cplusplus
17615 extern "C"
17616 #endif
17617 char set_auth_parameters ();
17618 int
17619 main ()
17620 {
17621 return set_auth_parameters ();
17622 ;
17623 return 0;
17624 }
17625 _ACEOF
17626 if ac_fn_c_try_link "$LINENO"; then :
17627 ac_cv_lib_security_set_auth_parameters=yes
17628 else
17629 ac_cv_lib_security_set_auth_parameters=no
17630 fi
17631 rm -f core conftest.err conftest.$ac_objext \
17632 conftest$ac_exeext conftest.$ac_ext
17633 LIBS=$ac_check_lib_save_LIBS
17634 fi
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_security_set_auth_parameters" >&5
17636 $as_echo "$ac_cv_lib_security_set_auth_parameters" >&6; }
17637 if test "x$ac_cv_lib_security_set_auth_parameters" = xyes; then :
17638 cat >>confdefs.h <<_ACEOF
17639 #define HAVE_LIBSECURITY 1
17640 _ACEOF
17641
17642 LIBS="-lsecurity $LIBS"
17643
17644 fi
17645
17646 for ac_func in set_auth_parameters
17647 do :
17648 ac_fn_c_check_func "$LINENO" "set_auth_parameters" "ac_cv_func_set_auth_parameters"
17649 if test "x$ac_cv_func_set_auth_parameters" = xyes; then :
17650 cat >>confdefs.h <<_ACEOF
17651 #define HAVE_SET_AUTH_PARAMETERS 1
17652 _ACEOF
17653
17654 fi
17655 done
17656
17657
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getprpwent in -lsec" >&5
17659 $as_echo_n "checking for getprpwent in -lsec... " >&6; }
17660 if ${ac_cv_lib_sec_getprpwent+:} false; then :
17661 $as_echo_n "(cached) " >&6
17662 else
17663 ac_check_lib_save_LIBS=$LIBS
17664 LIBS="-lsec $LIBS"
17665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17666 /* end confdefs.h. */
17667
17668 /* Override any GCC internal prototype to avoid an error.
17669 Use char because int might match the return type of a GCC
17670 builtin and then its argument prototype would still apply. */
17671 #ifdef __cplusplus
17672 extern "C"
17673 #endif
17674 char getprpwent ();
17675 int
17676 main ()
17677 {
17678 return getprpwent ();
17679 ;
17680 return 0;
17681 }
17682 _ACEOF
17683 if ac_fn_c_try_link "$LINENO"; then :
17684 ac_cv_lib_sec_getprpwent=yes
17685 else
17686 ac_cv_lib_sec_getprpwent=no
17687 fi
17688 rm -f core conftest.err conftest.$ac_objext \
17689 conftest$ac_exeext conftest.$ac_ext
17690 LIBS=$ac_check_lib_save_LIBS
17691 fi
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_getprpwent" >&5
17693 $as_echo "$ac_cv_lib_sec_getprpwent" >&6; }
17694 if test "x$ac_cv_lib_sec_getprpwent" = xyes; then :
17695 cat >>confdefs.h <<_ACEOF
17696 #define HAVE_LIBSEC 1
17697 _ACEOF
17698
17699 LIBS="-lsec $LIBS"
17700
17701 fi
17702
17703 for ac_func in getprpwent
17704 do :
17705 ac_fn_c_check_func "$LINENO" "getprpwent" "ac_cv_func_getprpwent"
17706 if test "x$ac_cv_func_getprpwent" = xyes; then :
17707 cat >>confdefs.h <<_ACEOF
17708 #define HAVE_GETPRPWENT 1
17709 _ACEOF
17710
17711 fi
17712 done
17713
17714
17715
17716 $as_echo "#define PR_USE_SIA 1" >>confdefs.h
17717
17718 fi
17719
17720 fi
17721
17722
17723 ENABLE_TESTS="\"\""
17724 # Check whether --enable-tests was given.
17725 if test "${enable_tests+set}" = set; then :
17726 enableval=$enable_tests;
17727 if test x"$enableval" != xno ; then
17728 for ac_header in check.h
17729 do :
17730 ac_fn_c_check_header_mongrel "$LINENO" "check.h" "ac_cv_header_check_h" "$ac_includes_default"
17731 if test "x$ac_cv_header_check_h" = xyes; then :
17732 cat >>confdefs.h <<_ACEOF
17733 #define HAVE_CHECK_H 1
17734 _ACEOF
17735
17736 fi
17737
17738 done
17739
17740
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcase_create in -lcheck" >&5
17742 $as_echo_n "checking for tcase_create in -lcheck... " >&6; }
17743 if ${ac_cv_lib_check_tcase_create+:} false; then :
17744 $as_echo_n "(cached) " >&6
17745 else
17746 ac_check_lib_save_LIBS=$LIBS
17747 LIBS="-lcheck $LIBS"
17748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17749 /* end confdefs.h. */
17750
17751 /* Override any GCC internal prototype to avoid an error.
17752 Use char because int might match the return type of a GCC
17753 builtin and then its argument prototype would still apply. */
17754 #ifdef __cplusplus
17755 extern "C"
17756 #endif
17757 char tcase_create ();
17758 int
17759 main ()
17760 {
17761 return tcase_create ();
17762 ;
17763 return 0;
17764 }
17765 _ACEOF
17766 if ac_fn_c_try_link "$LINENO"; then :
17767 ac_cv_lib_check_tcase_create=yes
17768 else
17769 ac_cv_lib_check_tcase_create=no
17770 fi
17771 rm -f core conftest.err conftest.$ac_objext \
17772 conftest$ac_exeext conftest.$ac_ext
17773 LIBS=$ac_check_lib_save_LIBS
17774 fi
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_check_tcase_create" >&5
17776 $as_echo "$ac_cv_lib_check_tcase_create" >&6; }
17777 if test "x$ac_cv_lib_check_tcase_create" = xyes; then :
17778
17779 $as_echo "#define HAVE_LIBCHECK 1" >>confdefs.h
17780
17781 ENABLE_TESTS="1"
17782
17783 $as_echo "#define PR_USE_TESTS 1" >>confdefs.h
17784
17785
17786 else
17787
17788 as_fn_error $? "libcheck support, required for tests, not present -- aborting" "$LINENO" 5
17789
17790
17791 fi
17792
17793
17794 if test x"$enableval" != x"nonetwork" ; then
17795
17796 $as_echo "#define PR_USE_NETWORK_TESTS 1" >>confdefs.h
17797
17798 fi
17799 fi
17800
17801 fi
17802
17803
17804 # Check whether --enable-trace was given.
17805 if test "${enable_trace+set}" = set; then :
17806 enableval=$enable_trace;
17807 fi
17808
17809
17810 # Check whether --enable-xattr was given.
17811 if test "${enable_xattr+set}" = set; then :
17812 enableval=$enable_xattr;
17813 fi
17814
17815
17816 pr_devel_cflags="-g3 -O0 -Wcast-align -Wchar-subscripts -Winline -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wshadow -Wundef"
17817 pr_devel_libs=""
17818
17819 # Check whether --enable-devel was given.
17820 if test "${enable_devel+set}" = set; then :
17821 enableval=$enable_devel;
17822 if test x"$enableval" != xno ; then
17823 devel="yes"
17824
17825 # Additional warnings but only for developer mode. Note that
17826 # -Wconversion is a bit noisy at the moment, thus why we
17827 # selectively choose which warnings to enable.
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wdangling-else" >&5
17829 $as_echo_n "checking whether ${CC-cc} accepts -Wdangling-else... " >&6; }
17830 echo 'void f(){}' > conftest.c
17831 if test -z "`${CC-cc} -c -Wdangling-else conftest.c 2>&1`"; then
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17833 $as_echo "yes" >&6; }
17834 CFLAGS="$CFLAGS -Wdangling-else"
17835 else
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17837 $as_echo "no" >&6; }
17838 fi
17839 rm -fr conftest*
17840
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wextra" >&5
17842 $as_echo_n "checking whether ${CC-cc} accepts -Wextra... " >&6; }
17843 echo 'void f(){}' > conftest.c
17844 if test -z "`${CC-cc} -c -Wextra conftest.c 2>&1`"; then
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17846 $as_echo "yes" >&6; }
17847 CFLAGS="$CFLAGS -Wextra"
17848 else
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17850 $as_echo "no" >&6; }
17851 fi
17852 rm -fr conftest*
17853
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Werror=implicit-function-declaration" >&5
17855 $as_echo_n "checking whether ${CC-cc} accepts -Werror=implicit-function-declaration... " >&6; }
17856 echo 'void f(){}' > conftest.c
17857 if test -z "`${CC-cc} -c -Werror=implicit-function-declaration conftest.c 2>&1`"; then
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17859 $as_echo "yes" >&6; }
17860 CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
17861 else
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17863 $as_echo "no" >&6; }
17864 fi
17865 rm -fr conftest*
17866
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Winit-self" >&5
17868 $as_echo_n "checking whether ${CC-cc} accepts -Winit-self... " >&6; }
17869 echo 'void f(){}' > conftest.c
17870 if test -z "`${CC-cc} -c -Winit-self conftest.c 2>&1`"; then
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17872 $as_echo "yes" >&6; }
17873 CFLAGS="$CFLAGS -Winit-self"
17874 else
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17876 $as_echo "no" >&6; }
17877 fi
17878 rm -fr conftest*
17879
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wno-missing-field-initializers" >&5
17881 $as_echo_n "checking whether ${CC-cc} accepts -Wno-missing-field-initializers... " >&6; }
17882 echo 'void f(){}' > conftest.c
17883 if test -z "`${CC-cc} -c -Wno-missing-field-initializers conftest.c 2>&1`"; then
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17885 $as_echo "yes" >&6; }
17886 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
17887 else
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17889 $as_echo "no" >&6; }
17890 fi
17891 rm -fr conftest*
17892
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wno-unused-parameter" >&5
17894 $as_echo_n "checking whether ${CC-cc} accepts -Wno-unused-parameter... " >&6; }
17895 echo 'void f(){}' > conftest.c
17896 if test -z "`${CC-cc} -c -Wno-unused-parameter conftest.c 2>&1`"; then
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17898 $as_echo "yes" >&6; }
17899 CFLAGS="$CFLAGS -Wno-unused-parameter"
17900 else
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17902 $as_echo "no" >&6; }
17903 fi
17904 rm -fr conftest*
17905
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wnull-dereference" >&5
17907 $as_echo_n "checking whether ${CC-cc} accepts -Wnull-dereference... " >&6; }
17908 echo 'void f(){}' > conftest.c
17909 if test -z "`${CC-cc} -c -Wnull-dereference conftest.c 2>&1`"; then
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17911 $as_echo "yes" >&6; }
17912 CFLAGS="$CFLAGS -Wnull-dereference"
17913 else
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17915 $as_echo "no" >&6; }
17916 fi
17917 rm -fr conftest*
17918
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wstrict-prototypes" >&5
17920 $as_echo_n "checking whether ${CC-cc} accepts -Wstrict-prototypes... " >&6; }
17921 echo 'void f(){}' > conftest.c
17922 if test -z "`${CC-cc} -c -Wstrict-prototypes conftest.c 2>&1`"; then
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17924 $as_echo "yes" >&6; }
17925 CFLAGS="$CFLAGS -Wstrict-prototypes"
17926 else
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17928 $as_echo "no" >&6; }
17929 fi
17930 rm -fr conftest*
17931
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fdelete-null-pointer-checks" >&5
17933 $as_echo_n "checking whether ${CC-cc} accepts -fdelete-null-pointer-checks... " >&6; }
17934 echo 'void f(){}' > conftest.c
17935 if test -z "`${CC-cc} -c -fdelete-null-pointer-checks conftest.c 2>&1`"; then
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17937 $as_echo "yes" >&6; }
17938 CFLAGS="$CFLAGS -fdelete-null-pointer-checks"
17939 else
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17941 $as_echo "no" >&6; }
17942 fi
17943 rm -fr conftest*
17944
17945
17946
17947 if test `echo $enableval | grep -c coredump` = "1" ; then
17948 pr_devel_cflags="-DPR_DEVEL_COREDUMP $pr_devel_cflags"
17949 fi
17950
17951 if test `echo $enableval | grep -c coverage` = "1" ; then
17952 pr_devel_cflags="-DPR_DEVEL_COVERAGE --coverage $pr_devel_cflags"
17953 pr_devel_libs="--coverage $pr_devel_libs"
17954 fi
17955
17956 if test `echo $enableval | grep -c fortify` = "1" ; then
17957 pr_devel_cflags="-D_FORTIFY_SOURCE=2 $pr_devel_cflags"
17958
17959 # In order for `-D_FORTIFY_SOURCE=2` to work, we also need to
17960 # disable some of the default --enable-devel flags, specifically `-O0`;
17961 # we can use `-O2` instead.
17962 pr_devel_cflags=`echo "$pr_devel_cflags" | sed -e 's/-O0/-O2/'`
17963 fi
17964
17965 if test `echo $enableval | grep -c nodaemon` = "1" ; then
17966 pr_devel_cflags="-DPR_DEVEL_NO_DAEMON $pr_devel_cflags"
17967 fi
17968
17969 if test `echo $enableval | grep -c nofork` = "1" ; then
17970 pr_devel_cflags="-DPR_DEVEL_NO_FORK $pr_devel_cflags"
17971 fi
17972
17973 if test `echo $enableval | grep -c profile` = "1" ; then
17974 pr_devel_cflags="-DPR_DEVEL_PROFILE -p -pg $pr_devel_cflags"
17975 pr_devel_libs="-pg $pr_devel_libs"
17976 fi
17977
17978 if test `echo $enableval | grep -c sanitize` = "1" ; then
17979 pr_devel_cflags="-fsanitize=address $pr_devel_cflags"
17980 pr_devel_libs="-fsanitize=address $pr_devel_libs"
17981
17982 # Determine whether we need to link with libasan (gcc) or not (clang)
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts -lasan" >&5
17984 $as_echo_n "checking whether the C compiler accepts -lasan... " >&6; }
17985 saved_ldflags=$LDFLAGS
17986 LDFLAGS="-lasan $LDFLAGS"
17987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17988 /* end confdefs.h. */
17989
17990
17991 int
17992 main ()
17993 {
17994
17995 int i;
17996 i = 7;
17997
17998 ;
17999 return 0;
18000 }
18001 _ACEOF
18002 if ac_fn_c_try_link "$LINENO"; then :
18003
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18005 $as_echo "yes" >&6; }
18006 pr_devel_libs="-lasan $pr_devel_libs"
18007
18008 else
18009
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18011 $as_echo "no" >&6; }
18012
18013
18014 fi
18015 rm -f core conftest.err conftest.$ac_objext \
18016 conftest$ac_exeext conftest.$ac_ext
18017 LDFLAGS=$saved_ldflags
18018 fi
18019
18020
18021 if test `echo $enableval | grep -c timing` = "1"; then
18022 pr_devel_cflags="-DPR_DEVEL_TIMING $pr_devel_cflags"
18023 fi
18024
18025 else
18026 devel="no"
18027 fi
18028
18029 fi
18030
18031
18032 # Check whether --enable-buffer-size was given.
18033 if test "${enable_buffer_size+set}" = set; then :
18034 enableval=$enable_buffer_size;
18035 if test "$enableval" = "yes" || test "$enableval" = "no" ; then
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: buffer size defaulting to 1024 bytes" >&5
18037 $as_echo "$as_me: WARNING: buffer size defaulting to 1024 bytes" >&2;}
18038
18039 cat >>confdefs.h <<_ACEOF
18040 #define PR_TUNABLE_BUFFER_SIZE 1024
18041 _ACEOF
18042
18043 else
18044
18045 cat >>confdefs.h <<_ACEOF
18046 #define PR_TUNABLE_BUFFER_SIZE $enableval
18047 _ACEOF
18048
18049 fi
18050
18051 fi
18052
18053
18054 # Check whether --enable-pool-size was given.
18055 if test "${enable_pool_size+set}" = set; then :
18056 enableval=$enable_pool_size;
18057 if test "$enableval" = "yes" || test "$enableval" = "no" ; then
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pool size defaulting to 512 bytes" >&5
18059 $as_echo "$as_me: WARNING: pool size defaulting to 512 bytes" >&2;}
18060
18061 cat >>confdefs.h <<_ACEOF
18062 #define PR_TUNABLE_NEW_POOL_SIZE 512
18063 _ACEOF
18064
18065 else
18066
18067 cat >>confdefs.h <<_ACEOF
18068 #define PR_TUNABLE_NEW_POOL_SIZE $enableval
18069 _ACEOF
18070
18071 fi
18072
18073 fi
18074
18075
18076 # Check whether --enable-scoreboard-buffer-size was given.
18077 if test "${enable_scoreboard_buffer_size+set}" = set; then :
18078 enableval=$enable_scoreboard_buffer_size;
18079 if test "$enableval" = "yes" || test "$enableval" = "no" ; then
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: scoreboard buffer size defaulting to 80 bytes" >&5
18081 $as_echo "$as_me: WARNING: scoreboard buffer size defaulting to 80 bytes" >&2;}
18082
18083 cat >>confdefs.h <<_ACEOF
18084 #define PR_TUNABLE_SCOREBOARD_BUFFER_SIZE 80
18085 _ACEOF
18086
18087 else
18088
18089 cat >>confdefs.h <<_ACEOF
18090 #define PR_TUNABLE_SCOREBOARD_BUFFER_SIZE $enableval
18091 _ACEOF
18092
18093 fi
18094
18095 fi
18096
18097
18098 # Check whether --enable-scoreboard-updates was given.
18099 if test "${enable_scoreboard_updates+set}" = set; then :
18100 enableval=$enable_scoreboard_updates;
18101 if test x"$enableval" = xyes || test x"$enableval" = xno ; then
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: scoreboard updates defaulting to 10" >&5
18103 $as_echo "$as_me: WARNING: scoreboard updates defaulting to 10" >&2;}
18104
18105 cat >>confdefs.h <<_ACEOF
18106 #define PR_TUNABLE_XFER_SCOREBOARD_UPDATES 10
18107 _ACEOF
18108
18109 else
18110
18111 cat >>confdefs.h <<_ACEOF
18112 #define PR_TUNABLE_XFER_SCOREBOARD_UPDATES $enableval
18113 _ACEOF
18114
18115 fi
18116
18117 fi
18118
18119
18120 keepsyms="yes"
18121 # Check whether --enable-strip was given.
18122 if test "${enable_strip+set}" = set; then :
18123 enableval=$enable_strip;
18124 if test x"$enableval" = xyes ; then
18125 keepsyms="no"
18126 fi
18127
18128
18129 fi
18130
18131
18132 # Check whether --enable-timeout-ident was given.
18133 if test "${enable_timeout_ident+set}" = set; then :
18134 enableval=$enable_timeout_ident;
18135 if test "$enableval" = "yes" || test "$enableval" = "no" ; then
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ident timeout defaulting to 10 secs" >&5
18137 $as_echo "$as_me: WARNING: ident timeout defaulting to 10 secs" >&2;}
18138
18139 cat >>confdefs.h <<_ACEOF
18140 #define PR_TUNABLE_TIMEOUTIDENT 10
18141 _ACEOF
18142
18143 else
18144
18145 cat >>confdefs.h <<_ACEOF
18146 #define PR_TUNABLE_TIMEOUTIDENT $enableval
18147 _ACEOF
18148
18149 fi
18150
18151 fi
18152
18153
18154 # Check whether --enable-timeout-idle was given.
18155 if test "${enable_timeout_idle+set}" = set; then :
18156 enableval=$enable_timeout_idle;
18157 if test "$enableval" = "yes" || test "$enableval" = "no" ; then
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: idle timeout defaulting to 600 secs" >&5
18159 $as_echo "$as_me: WARNING: idle timeout defaulting to 600 secs" >&2;}
18160
18161 cat >>confdefs.h <<_ACEOF
18162 #define PR_TUNABLE_TIMEOUTIDLE 600
18163 _ACEOF
18164
18165 else
18166
18167 cat >>confdefs.h <<_ACEOF
18168 #define PR_TUNABLE_TIMEOUTIDLE $enableval
18169 _ACEOF
18170
18171 fi
18172
18173 fi
18174
18175
18176 # Check whether --enable-timeout-linger was given.
18177 if test "${enable_timeout_linger+set}" = set; then :
18178 enableval=$enable_timeout_linger;
18179 if test "$enableval" = "yes" || test "$enableval" = "no" ; then
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linger timeout defaulting to 30 secs" >&5
18181 $as_echo "$as_me: WARNING: linger timeout defaulting to 30 secs" >&2;}
18182
18183 cat >>confdefs.h <<_ACEOF
18184 #define PR_TUNABLE_TIMEOUTLINGER 30
18185 _ACEOF
18186
18187 else
18188
18189 cat >>confdefs.h <<_ACEOF
18190 #define PR_TUNABLE_TIMEOUTLINGER $enableval
18191 _ACEOF
18192
18193 fi
18194
18195 fi
18196
18197
18198 # Check whether --enable-timeout-login was given.
18199 if test "${enable_timeout_login+set}" = set; then :
18200 enableval=$enable_timeout_login;
18201 if test "$enableval" = "yes" || test "$enableval" = "no" ; then
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: login timeout defaulting to 300 secs" >&5
18203 $as_echo "$as_me: WARNING: login timeout defaulting to 300 secs" >&2;}
18204
18205 cat >>confdefs.h <<_ACEOF
18206 #define PR_TUNABLE_TIMEOUTLOGIN 300
18207 _ACEOF
18208
18209 else
18210
18211 cat >>confdefs.h <<_ACEOF
18212 #define PR_TUNABLE_TIMEOUTLOGIN $enableval
18213 _ACEOF
18214
18215 fi
18216
18217 fi
18218
18219
18220 # Check whether --enable-timeout-no-transfer was given.
18221 if test "${enable_timeout_no_transfer+set}" = set; then :
18222 enableval=$enable_timeout_no_transfer;
18223 if test "$enableval" = "yes" || test "$enableval" = "no" ; then
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no data transfer timeout defaulting to 300 secs" >&5
18225 $as_echo "$as_me: WARNING: no data transfer timeout defaulting to 300 secs" >&2;}
18226
18227 cat >>confdefs.h <<_ACEOF
18228 #define PR_TUNABLE_TIMEOUTNOXFER 300
18229 _ACEOF
18230
18231 else
18232
18233 cat >>confdefs.h <<_ACEOF
18234 #define PR_TUNABLE_TIMEOUTNOXFER $enableval
18235 _ACEOF
18236
18237 fi
18238
18239 fi
18240
18241
18242 # Check whether --enable-timeout-stalled was given.
18243 if test "${enable_timeout_stalled+set}" = set; then :
18244 enableval=$enable_timeout_stalled;
18245 if test "$enableval" = "yes" || test "$enableval" = "no" ; then
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: stalled timeout defaulting to 3600 secs" >&5
18247 $as_echo "$as_me: WARNING: stalled timeout defaulting to 3600 secs" >&2;}
18248
18249 cat >>confdefs.h <<_ACEOF
18250 #define PR_TUNABLE_TIMEOUTSTALLED 3600
18251 _ACEOF
18252
18253 else
18254
18255 cat >>confdefs.h <<_ACEOF
18256 #define PR_TUNABLE_TIMEOUTSTALLED $enableval
18257 _ACEOF
18258
18259 fi
18260
18261 fi
18262
18263
18264 # Check whether --enable-parser-buffer-size was given.
18265 if test "${enable_parser_buffer_size+set}" = set; then :
18266 enableval=$enable_parser_buffer_size;
18267 if test "$enableval" = "yes" || test "$enableval" = "no" ; then
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: parser buffer size defaulting to regular buffer size" >&5
18269 $as_echo "$as_me: WARNING: parser buffer size defaulting to regular buffer size" >&2;}
18270
18271 cat >>confdefs.h <<_ACEOF
18272 #define PR_TUNABLE_PARSER_BUFFER_SIZE 4096
18273 _ACEOF
18274
18275 else
18276
18277 cat >>confdefs.h <<_ACEOF
18278 #define PR_TUNABLE_PARSER_BUFFER_SIZE $enableval
18279 _ACEOF
18280
18281 fi
18282
18283 fi
18284
18285
18286 # Check whether --enable-transfer-buffer-size was given.
18287 if test "${enable_transfer_buffer_size+set}" = set; then :
18288 enableval=$enable_transfer_buffer_size;
18289 if test "$enableval" = "yes" || test "$enableval" = "no" ; then
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: transfer buffer size defaulting to regular buffer size" >&5
18291 $as_echo "$as_me: WARNING: transfer buffer size defaulting to regular buffer size" >&2;}
18292
18293 cat >>confdefs.h <<_ACEOF
18294 #define PR_TUNABLE_XFER_BUFFER_SIZE 8192
18295 _ACEOF
18296
18297 else
18298
18299 cat >>confdefs.h <<_ACEOF
18300 #define PR_TUNABLE_XFER_BUFFER_SIZE $enableval
18301 _ACEOF
18302
18303 fi
18304
18305 fi
18306
18307
18308 for ac_header in stddef.h crypt.h netdb.h arpa/inet.h sys/socket.h
18309 do :
18310 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18311 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18312 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18313 cat >>confdefs.h <<_ACEOF
18314 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18315 _ACEOF
18316
18317 fi
18318
18319 done
18320
18321
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standalone crypt" >&5
18323 $as_echo_n "checking for standalone crypt... " >&6; }
18324 if ${pr_cv_lib_standalone_crypt+:} false; then :
18325 $as_echo_n "(cached) " >&6
18326 else
18327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328 /* end confdefs.h. */
18329
18330 #if HAVE_STDDEF_H
18331 # include <stddef.h>
18332 #endif
18333 #if HAVE_CRYPT_H
18334 # include <crypt.h>
18335 #endif
18336
18337 int
18338 main ()
18339 {
18340
18341 crypt(NULL, NULL);
18342
18343 ;
18344 return 0;
18345 }
18346 _ACEOF
18347 if ac_fn_c_try_link "$LINENO"; then :
18348 pr_cv_lib_standalone_crypt="yes"
18349 else
18350 pr_cv_lib_standalone_crypt="no"
18351 fi
18352 rm -f core conftest.err conftest.$ac_objext \
18353 conftest$ac_exeext conftest.$ac_ext
18354 fi
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_lib_standalone_crypt" >&5
18356 $as_echo "$pr_cv_lib_standalone_crypt" >&6; }
18357
18358 if test "$pr_cv_lib_standalone_crypt" = "no"; then
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
18360 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
18361 if ${ac_cv_lib_crypt_crypt+:} false; then :
18362 $as_echo_n "(cached) " >&6
18363 else
18364 ac_check_lib_save_LIBS=$LIBS
18365 LIBS="-lcrypt $LIBS"
18366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h. */
18368
18369 /* Override any GCC internal prototype to avoid an error.
18370 Use char because int might match the return type of a GCC
18371 builtin and then its argument prototype would still apply. */
18372 #ifdef __cplusplus
18373 extern "C"
18374 #endif
18375 char crypt ();
18376 int
18377 main ()
18378 {
18379 return crypt ();
18380 ;
18381 return 0;
18382 }
18383 _ACEOF
18384 if ac_fn_c_try_link "$LINENO"; then :
18385 ac_cv_lib_crypt_crypt=yes
18386 else
18387 ac_cv_lib_crypt_crypt=no
18388 fi
18389 rm -f core conftest.err conftest.$ac_objext \
18390 conftest$ac_exeext conftest.$ac_ext
18391 LIBS=$ac_check_lib_save_LIBS
18392 fi
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
18394 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
18395 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
18396 cat >>confdefs.h <<_ACEOF
18397 #define HAVE_LIBCRYPT 1
18398 _ACEOF
18399
18400 LIBS="-lcrypt $LIBS"
18401
18402 fi
18403
18404 fi
18405
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standalone gethostbyname" >&5
18407 $as_echo_n "checking for standalone gethostbyname... " >&6; }
18408 if ${pr_cv_lib_standalone_gethost+:} false; then :
18409 $as_echo_n "(cached) " >&6
18410 else
18411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18412 /* end confdefs.h. */
18413
18414 #if HAVE_STDDEF_H
18415 # include <stddef.h>
18416 #endif
18417 #if HAVE_NETDB_H
18418 # include <netdb.h>
18419 #endif
18420
18421 int
18422 main ()
18423 {
18424
18425 gethostbyname(NULL);
18426
18427 ;
18428 return 0;
18429 }
18430 _ACEOF
18431 if ac_fn_c_try_link "$LINENO"; then :
18432 pr_cv_lib_standalone_gethost="yes"
18433 else
18434 pr_cv_lib_standalone_gethost="no"
18435 fi
18436 rm -f core conftest.err conftest.$ac_objext \
18437 conftest$ac_exeext conftest.$ac_ext
18438 fi
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_lib_standalone_gethost" >&5
18440 $as_echo "$pr_cv_lib_standalone_gethost" >&6; }
18441
18442 if test "$pr_cv_lib_standalone_gethost" = "no"; then
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
18444 $as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
18445 if ${ac_cv_lib_resolv_gethostbyname+:} false; then :
18446 $as_echo_n "(cached) " >&6
18447 else
18448 ac_check_lib_save_LIBS=$LIBS
18449 LIBS="-lresolv $LIBS"
18450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451 /* end confdefs.h. */
18452
18453 /* Override any GCC internal prototype to avoid an error.
18454 Use char because int might match the return type of a GCC
18455 builtin and then its argument prototype would still apply. */
18456 #ifdef __cplusplus
18457 extern "C"
18458 #endif
18459 char gethostbyname ();
18460 int
18461 main ()
18462 {
18463 return gethostbyname ();
18464 ;
18465 return 0;
18466 }
18467 _ACEOF
18468 if ac_fn_c_try_link "$LINENO"; then :
18469 ac_cv_lib_resolv_gethostbyname=yes
18470 else
18471 ac_cv_lib_resolv_gethostbyname=no
18472 fi
18473 rm -f core conftest.err conftest.$ac_objext \
18474 conftest$ac_exeext conftest.$ac_ext
18475 LIBS=$ac_check_lib_save_LIBS
18476 fi
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
18478 $as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
18479 if test "x$ac_cv_lib_resolv_gethostbyname" = xyes; then :
18480 cat >>confdefs.h <<_ACEOF
18481 #define HAVE_LIBRESOLV 1
18482 _ACEOF
18483
18484 LIBS="-lresolv $LIBS"
18485
18486 fi
18487
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
18489 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
18490 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
18491 $as_echo_n "(cached) " >&6
18492 else
18493 ac_check_lib_save_LIBS=$LIBS
18494 LIBS="-lresolv $LIBS"
18495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496 /* end confdefs.h. */
18497
18498 /* Override any GCC internal prototype to avoid an error.
18499 Use char because int might match the return type of a GCC
18500 builtin and then its argument prototype would still apply. */
18501 #ifdef __cplusplus
18502 extern "C"
18503 #endif
18504 char inet_aton ();
18505 int
18506 main ()
18507 {
18508 return inet_aton ();
18509 ;
18510 return 0;
18511 }
18512 _ACEOF
18513 if ac_fn_c_try_link "$LINENO"; then :
18514 ac_cv_lib_resolv_inet_aton=yes
18515 else
18516 ac_cv_lib_resolv_inet_aton=no
18517 fi
18518 rm -f core conftest.err conftest.$ac_objext \
18519 conftest$ac_exeext conftest.$ac_ext
18520 LIBS=$ac_check_lib_save_LIBS
18521 fi
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
18523 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
18524 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
18525 cat >>confdefs.h <<_ACEOF
18526 #define HAVE_LIBRESOLV 1
18527 _ACEOF
18528
18529 LIBS="-lresolv $LIBS"
18530
18531 fi
18532
18533 fi
18534
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standalone inet_aton" >&5
18536 $as_echo_n "checking for standalone inet_aton... " >&6; }
18537 if ${pr_cv_lib_standalone_aton+:} false; then :
18538 $as_echo_n "(cached) " >&6
18539 else
18540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18541 /* end confdefs.h. */
18542
18543 #if HAVE_STDDEF_H
18544 # include <stddef.h>
18545 #endif
18546 #if HAVE_ARPA_INET_H
18547 # include <arpa/inet.h>
18548 #endif
18549
18550 int
18551 main ()
18552 {
18553
18554 inet_aton(NULL, NULL);
18555
18556 ;
18557 return 0;
18558 }
18559 _ACEOF
18560 if ac_fn_c_try_link "$LINENO"; then :
18561 pr_cv_lib_standalone_aton="yes"
18562 else
18563 pr_cv_lib_standalone_aton="no"
18564 fi
18565 rm -f core conftest.err conftest.$ac_objext \
18566 conftest$ac_exeext conftest.$ac_ext
18567 fi
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_lib_standalone_aton" >&5
18569 $as_echo "$pr_cv_lib_standalone_aton" >&6; }
18570
18571 if test "$pr_cv_lib_standalone_aton" = "no"; then
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lbind" >&5
18573 $as_echo_n "checking for inet_aton in -lbind... " >&6; }
18574 if ${ac_cv_lib_bind_inet_aton+:} false; then :
18575 $as_echo_n "(cached) " >&6
18576 else
18577 ac_check_lib_save_LIBS=$LIBS
18578 LIBS="-lbind $LIBS"
18579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18580 /* end confdefs.h. */
18581
18582 /* Override any GCC internal prototype to avoid an error.
18583 Use char because int might match the return type of a GCC
18584 builtin and then its argument prototype would still apply. */
18585 #ifdef __cplusplus
18586 extern "C"
18587 #endif
18588 char inet_aton ();
18589 int
18590 main ()
18591 {
18592 return inet_aton ();
18593 ;
18594 return 0;
18595 }
18596 _ACEOF
18597 if ac_fn_c_try_link "$LINENO"; then :
18598 ac_cv_lib_bind_inet_aton=yes
18599 else
18600 ac_cv_lib_bind_inet_aton=no
18601 fi
18602 rm -f core conftest.err conftest.$ac_objext \
18603 conftest$ac_exeext conftest.$ac_ext
18604 LIBS=$ac_check_lib_save_LIBS
18605 fi
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_aton" >&5
18607 $as_echo "$ac_cv_lib_bind_inet_aton" >&6; }
18608 if test "x$ac_cv_lib_bind_inet_aton" = xyes; then :
18609 cat >>confdefs.h <<_ACEOF
18610 #define HAVE_LIBBIND 1
18611 _ACEOF
18612
18613 LIBS="-lbind $LIBS"
18614
18615 fi
18616
18617 fi
18618
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standalone nsl functions" >&5
18620 $as_echo_n "checking for standalone nsl functions... " >&6; }
18621 if ${pr_cv_lib_standalone_nsl+:} false; then :
18622 $as_echo_n "(cached) " >&6
18623 else
18624
18625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18626 /* end confdefs.h. */
18627
18628 #if HAVE_NETDB_H
18629 # include <netdb.h>
18630 #endif
18631
18632 int
18633 main ()
18634 {
18635
18636 gethostent();
18637
18638 ;
18639 return 0;
18640 }
18641 _ACEOF
18642 if ac_fn_c_try_link "$LINENO"; then :
18643 pr_cv_lib_standalone_nsl="yes"
18644 else
18645 pr_cv_lib_standalone_nsl="no"
18646 fi
18647 rm -f core conftest.err conftest.$ac_objext \
18648 conftest$ac_exeext conftest.$ac_ext
18649 fi
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_lib_standalone_nsl" >&5
18651 $as_echo "$pr_cv_lib_standalone_nsl" >&6; }
18652
18653 if test "$pr_cv_lib_standalone_nsl" = "no"; then
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostent in -lnsl" >&5
18655 $as_echo_n "checking for gethostent in -lnsl... " >&6; }
18656 if ${ac_cv_lib_nsl_gethostent+:} false; then :
18657 $as_echo_n "(cached) " >&6
18658 else
18659 ac_check_lib_save_LIBS=$LIBS
18660 LIBS="-lnsl $LIBS"
18661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18662 /* end confdefs.h. */
18663
18664 /* Override any GCC internal prototype to avoid an error.
18665 Use char because int might match the return type of a GCC
18666 builtin and then its argument prototype would still apply. */
18667 #ifdef __cplusplus
18668 extern "C"
18669 #endif
18670 char gethostent ();
18671 int
18672 main ()
18673 {
18674 return gethostent ();
18675 ;
18676 return 0;
18677 }
18678 _ACEOF
18679 if ac_fn_c_try_link "$LINENO"; then :
18680 ac_cv_lib_nsl_gethostent=yes
18681 else
18682 ac_cv_lib_nsl_gethostent=no
18683 fi
18684 rm -f core conftest.err conftest.$ac_objext \
18685 conftest$ac_exeext conftest.$ac_ext
18686 LIBS=$ac_check_lib_save_LIBS
18687 fi
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostent" >&5
18689 $as_echo "$ac_cv_lib_nsl_gethostent" >&6; }
18690 if test "x$ac_cv_lib_nsl_gethostent" = xyes; then :
18691 cat >>confdefs.h <<_ACEOF
18692 #define HAVE_LIBNSL 1
18693 _ACEOF
18694
18695 LIBS="-lnsl $LIBS"
18696
18697 fi
18698
18699 fi
18700
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standalone socket functions" >&5
18702 $as_echo_n "checking for standalone socket functions... " >&6; }
18703 if ${pr_cv_lib_standalone_sockets+:} false; then :
18704 $as_echo_n "(cached) " >&6
18705 else
18706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18707 /* end confdefs.h. */
18708
18709 #if HAVE_STDDEF_H
18710 # include <stddef.h>
18711 #endif
18712 #if HAVE_SYS_SOCKET_H
18713 # include <sys/socket.h>
18714 #endif
18715
18716 int
18717 main ()
18718 {
18719
18720 bind(0, NULL, 0);
18721
18722 ;
18723 return 0;
18724 }
18725 _ACEOF
18726 if ac_fn_c_try_link "$LINENO"; then :
18727 pr_cv_lib_standalone_sockets="yes"
18728 else
18729 pr_cv_lib_standalone_sockets="no"
18730 fi
18731 rm -f core conftest.err conftest.$ac_objext \
18732 conftest$ac_exeext conftest.$ac_ext
18733 fi
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_lib_standalone_sockets" >&5
18735 $as_echo "$pr_cv_lib_standalone_sockets" >&6; }
18736
18737 if test "$pr_cv_lib_standalone_sockets" = "no"; then
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
18739 $as_echo_n "checking for bind in -lsocket... " >&6; }
18740 if ${ac_cv_lib_socket_bind+:} false; then :
18741 $as_echo_n "(cached) " >&6
18742 else
18743 ac_check_lib_save_LIBS=$LIBS
18744 LIBS="-lsocket $LIBS"
18745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18746 /* end confdefs.h. */
18747
18748 /* Override any GCC internal prototype to avoid an error.
18749 Use char because int might match the return type of a GCC
18750 builtin and then its argument prototype would still apply. */
18751 #ifdef __cplusplus
18752 extern "C"
18753 #endif
18754 char bind ();
18755 int
18756 main ()
18757 {
18758 return bind ();
18759 ;
18760 return 0;
18761 }
18762 _ACEOF
18763 if ac_fn_c_try_link "$LINENO"; then :
18764 ac_cv_lib_socket_bind=yes
18765 else
18766 ac_cv_lib_socket_bind=no
18767 fi
18768 rm -f core conftest.err conftest.$ac_objext \
18769 conftest$ac_exeext conftest.$ac_ext
18770 LIBS=$ac_check_lib_save_LIBS
18771 fi
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
18773 $as_echo "$ac_cv_lib_socket_bind" >&6; }
18774 if test "x$ac_cv_lib_socket_bind" = xyes; then :
18775 cat >>confdefs.h <<_ACEOF
18776 #define HAVE_LIBSOCKET 1
18777 _ACEOF
18778
18779 LIBS="-lsocket $LIBS"
18780
18781 fi
18782
18783 fi
18784
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _pw_stayopen variable" >&5
18786 $as_echo_n "checking for _pw_stayopen variable... " >&6; }
18787 if ${pr_cv_var__pw_stayopen+:} false; then :
18788 $as_echo_n "(cached) " >&6
18789 else
18790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18791 /* end confdefs.h. */
18792 extern int _pw_stayopen;
18793 int
18794 main ()
18795 {
18796 _pw_stayopen = 1;
18797 ;
18798 return 0;
18799 }
18800 _ACEOF
18801 if ac_fn_c_try_link "$LINENO"; then :
18802 pr_cv_var__pw_stayopen="yes"
18803 else
18804 pr_cv_var__pw_stayopen="no"
18805 fi
18806 rm -f core conftest.err conftest.$ac_objext \
18807 conftest$ac_exeext conftest.$ac_ext
18808 fi
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_var__pw_stayopen" >&5
18810 $as_echo "$pr_cv_var__pw_stayopen" >&6; }
18811
18812 if test "$pr_cv_var__pw_stayopen" = "yes"; then
18813
18814 $as_echo "#define HAVE__PW_STAYOPEN 1" >>confdefs.h
18815
18816 fi
18817
18818 for ac_header in krb.h login.h prot.h usersec.h sys/audit.h
18819 do :
18820 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18821 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18822 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18823 cat >>confdefs.h <<_ACEOF
18824 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18825 _ACEOF
18826
18827 fi
18828
18829 done
18830
18831
18832 for ac_header in hpsecurity.h
18833 do :
18834 ac_fn_c_check_header_mongrel "$LINENO" "hpsecurity.h" "ac_cv_header_hpsecurity_h" "$ac_includes_default"
18835 if test "x$ac_cv_header_hpsecurity_h" = xyes; then :
18836 cat >>confdefs.h <<_ACEOF
18837 #define HAVE_HPSECURITY_H 1
18838 _ACEOF
18839
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
18841 $as_echo_n "checking for library containing getprpwnam... " >&6; }
18842 if ${ac_cv_search_getprpwnam+:} false; then :
18843 $as_echo_n "(cached) " >&6
18844 else
18845 ac_func_search_save_LIBS=$LIBS
18846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18847 /* end confdefs.h. */
18848
18849 /* Override any GCC internal prototype to avoid an error.
18850 Use char because int might match the return type of a GCC
18851 builtin and then its argument prototype would still apply. */
18852 #ifdef __cplusplus
18853 extern "C"
18854 #endif
18855 char getprpwnam ();
18856 int
18857 main ()
18858 {
18859 return getprpwnam ();
18860 ;
18861 return 0;
18862 }
18863 _ACEOF
18864 for ac_lib in '' sec; do
18865 if test -z "$ac_lib"; then
18866 ac_res="none required"
18867 else
18868 ac_res=-l$ac_lib
18869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18870 fi
18871 if ac_fn_c_try_link "$LINENO"; then :
18872 ac_cv_search_getprpwnam=$ac_res
18873 fi
18874 rm -f core conftest.err conftest.$ac_objext \
18875 conftest$ac_exeext
18876 if ${ac_cv_search_getprpwnam+:} false; then :
18877 break
18878 fi
18879 done
18880 if ${ac_cv_search_getprpwnam+:} false; then :
18881
18882 else
18883 ac_cv_search_getprpwnam=no
18884 fi
18885 rm conftest.$ac_ext
18886 LIBS=$ac_func_search_save_LIBS
18887 fi
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
18889 $as_echo "$ac_cv_search_getprpwnam" >&6; }
18890 ac_res=$ac_cv_search_getprpwnam
18891 if test "$ac_res" != no; then :
18892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18893
18894 fi
18895
18896
18897 else
18898
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hpsecurity.h workaround" >&5
18900 $as_echo_n "checking for hpsecurity.h workaround... " >&6; }
18901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18902 /* end confdefs.h. */
18903
18904 #include <values.h>
18905 #undef MAXINT
18906 #include <hpsecurity.h>
18907
18908 int
18909 main ()
18910 {
18911
18912 ;
18913 return 0;
18914 }
18915 _ACEOF
18916 if ac_fn_c_try_compile "$LINENO"; then :
18917
18918
18919 $as_echo "#define HAVE_HPSECURITY_H 1" >>confdefs.h
18920
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
18922 $as_echo_n "checking for library containing getprpwnam... " >&6; }
18923 if ${ac_cv_search_getprpwnam+:} false; then :
18924 $as_echo_n "(cached) " >&6
18925 else
18926 ac_func_search_save_LIBS=$LIBS
18927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18928 /* end confdefs.h. */
18929
18930 /* Override any GCC internal prototype to avoid an error.
18931 Use char because int might match the return type of a GCC
18932 builtin and then its argument prototype would still apply. */
18933 #ifdef __cplusplus
18934 extern "C"
18935 #endif
18936 char getprpwnam ();
18937 int
18938 main ()
18939 {
18940 return getprpwnam ();
18941 ;
18942 return 0;
18943 }
18944 _ACEOF
18945 for ac_lib in '' sec; do
18946 if test -z "$ac_lib"; then
18947 ac_res="none required"
18948 else
18949 ac_res=-l$ac_lib
18950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18951 fi
18952 if ac_fn_c_try_link "$LINENO"; then :
18953 ac_cv_search_getprpwnam=$ac_res
18954 fi
18955 rm -f core conftest.err conftest.$ac_objext \
18956 conftest$ac_exeext
18957 if ${ac_cv_search_getprpwnam+:} false; then :
18958 break
18959 fi
18960 done
18961 if ${ac_cv_search_getprpwnam+:} false; then :
18962
18963 else
18964 ac_cv_search_getprpwnam=no
18965 fi
18966 rm conftest.$ac_ext
18967 LIBS=$ac_func_search_save_LIBS
18968 fi
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
18970 $as_echo "$ac_cv_search_getprpwnam" >&6; }
18971 ac_res=$ac_cv_search_getprpwnam
18972 if test "$ac_res" != no; then :
18973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18974
18975 fi
18976
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18978 $as_echo "yes" >&6; }
18979
18980 else
18981
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18983 $as_echo "no" >&6; }
18984
18985 fi
18986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18987
18988 fi
18989
18990 done
18991
18992
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX authenticate" >&5
18994 $as_echo_n "checking for AIX authenticate... " >&6; }
18995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18996 /* end confdefs.h. */
18997
18998 #include <sys/types.h>
18999 #ifdef HAVE_USERSEC_H
19000 # include <usersec.h>
19001 #else
19002 # error "we are not on AIX"
19003 #endif
19004
19005 int
19006 main ()
19007 {
19008
19009 (void) authenticate(NULL, NULL, NULL, NULL);
19010
19011 ;
19012 return 0;
19013 }
19014 _ACEOF
19015 if ac_fn_c_try_link "$LINENO"; then :
19016
19017
19018 $as_echo "#define HAVE_AUTHENTICATE 1" >>confdefs.h
19019
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19021 $as_echo "yes" >&6; }
19022
19023 else
19024
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19026 $as_echo "no" >&6; }
19027
19028
19029 fi
19030 rm -f core conftest.err conftest.$ac_objext \
19031 conftest$ac_exeext conftest.$ac_ext
19032
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX loginfailed" >&5
19034 $as_echo_n "checking for AIX loginfailed... " >&6; }
19035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19036 /* end confdefs.h. */
19037
19038 #include <sys/types.h>
19039 #ifdef HAVE_USERSEC_H
19040 # include <usersec.h>
19041 #else
19042 # error "we are not on AIX"
19043 #endif
19044
19045 int
19046 main ()
19047 {
19048
19049 (void) loginfailed(NULL, NULL, NULL, 0);
19050
19051 ;
19052 return 0;
19053 }
19054 _ACEOF
19055 if ac_fn_c_try_link "$LINENO"; then :
19056
19057
19058 $as_echo "#define HAVE_LOGINFAILED 1" >>confdefs.h
19059
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19061 $as_echo "yes" >&6; }
19062
19063 else
19064
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19066 $as_echo "no" >&6; }
19067
19068
19069 fi
19070 rm -f core conftest.err conftest.$ac_objext \
19071 conftest$ac_exeext conftest.$ac_ext
19072
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX loginsuccess" >&5
19074 $as_echo_n "checking for AIX loginsuccess... " >&6; }
19075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19076 /* end confdefs.h. */
19077
19078 #include <sys/types.h>
19079 #ifdef HAVE_USERSEC_H
19080 # include <usersec.h>
19081 #else
19082 # error "we are not on AIX"
19083 #endif
19084
19085 int
19086 main ()
19087 {
19088
19089 (void) loginsuccess(NULL, NULL, NULL, NULL);
19090
19091 ;
19092 return 0;
19093 }
19094 _ACEOF
19095 if ac_fn_c_try_link "$LINENO"; then :
19096
19097
19098 $as_echo "#define HAVE_LOGINSUCCESS 1" >>confdefs.h
19099
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19101 $as_echo "yes" >&6; }
19102
19103 else
19104
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19106 $as_echo "no" >&6; }
19107
19108
19109 fi
19110 rm -f core conftest.err conftest.$ac_objext \
19111 conftest$ac_exeext conftest.$ac_ext
19112
19113
19114 if test x"$install_user" = x; then
19115 if test "x$target_os" = "xcygwin"; then
19116 install_user=`id -u`
19117 else
19118 install_user=root
19119 fi
19120 fi
19121 if test x"$install_group" = x ; then
19122 if test "x$target_os" = "xcygwin"; then
19123 install_group=`id -g`
19124 else
19125 install_group=`sed -n '/.*:.*:0:/{s/^\(.*\):.*:0:.*/\1/p;q;}' /etc/group 2>/dev/null`
19126 fi
19127 fi
19128
19129
19130
19131
19132 ac_header_dirent=no
19133 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19134 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19136 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19137 if eval \${$as_ac_Header+:} false; then :
19138 $as_echo_n "(cached) " >&6
19139 else
19140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19141 /* end confdefs.h. */
19142 #include <sys/types.h>
19143 #include <$ac_hdr>
19144
19145 int
19146 main ()
19147 {
19148 if ((DIR *) 0)
19149 return 0;
19150 ;
19151 return 0;
19152 }
19153 _ACEOF
19154 if ac_fn_c_try_compile "$LINENO"; then :
19155 eval "$as_ac_Header=yes"
19156 else
19157 eval "$as_ac_Header=no"
19158 fi
19159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19160 fi
19161 eval ac_res=\$$as_ac_Header
19162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19163 $as_echo "$ac_res" >&6; }
19164 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19165 cat >>confdefs.h <<_ACEOF
19166 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19167 _ACEOF
19168
19169 ac_header_dirent=$ac_hdr; break
19170 fi
19171
19172 done
19173 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19174 if test $ac_header_dirent = dirent.h; then
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19176 $as_echo_n "checking for library containing opendir... " >&6; }
19177 if ${ac_cv_search_opendir+:} false; then :
19178 $as_echo_n "(cached) " >&6
19179 else
19180 ac_func_search_save_LIBS=$LIBS
19181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19182 /* end confdefs.h. */
19183
19184 /* Override any GCC internal prototype to avoid an error.
19185 Use char because int might match the return type of a GCC
19186 builtin and then its argument prototype would still apply. */
19187 #ifdef __cplusplus
19188 extern "C"
19189 #endif
19190 char opendir ();
19191 int
19192 main ()
19193 {
19194 return opendir ();
19195 ;
19196 return 0;
19197 }
19198 _ACEOF
19199 for ac_lib in '' dir; do
19200 if test -z "$ac_lib"; then
19201 ac_res="none required"
19202 else
19203 ac_res=-l$ac_lib
19204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19205 fi
19206 if ac_fn_c_try_link "$LINENO"; then :
19207 ac_cv_search_opendir=$ac_res
19208 fi
19209 rm -f core conftest.err conftest.$ac_objext \
19210 conftest$ac_exeext
19211 if ${ac_cv_search_opendir+:} false; then :
19212 break
19213 fi
19214 done
19215 if ${ac_cv_search_opendir+:} false; then :
19216
19217 else
19218 ac_cv_search_opendir=no
19219 fi
19220 rm conftest.$ac_ext
19221 LIBS=$ac_func_search_save_LIBS
19222 fi
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19224 $as_echo "$ac_cv_search_opendir" >&6; }
19225 ac_res=$ac_cv_search_opendir
19226 if test "$ac_res" != no; then :
19227 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19228
19229 fi
19230
19231 else
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19233 $as_echo_n "checking for library containing opendir... " >&6; }
19234 if ${ac_cv_search_opendir+:} false; then :
19235 $as_echo_n "(cached) " >&6
19236 else
19237 ac_func_search_save_LIBS=$LIBS
19238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19239 /* end confdefs.h. */
19240
19241 /* Override any GCC internal prototype to avoid an error.
19242 Use char because int might match the return type of a GCC
19243 builtin and then its argument prototype would still apply. */
19244 #ifdef __cplusplus
19245 extern "C"
19246 #endif
19247 char opendir ();
19248 int
19249 main ()
19250 {
19251 return opendir ();
19252 ;
19253 return 0;
19254 }
19255 _ACEOF
19256 for ac_lib in '' x; do
19257 if test -z "$ac_lib"; then
19258 ac_res="none required"
19259 else
19260 ac_res=-l$ac_lib
19261 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19262 fi
19263 if ac_fn_c_try_link "$LINENO"; then :
19264 ac_cv_search_opendir=$ac_res
19265 fi
19266 rm -f core conftest.err conftest.$ac_objext \
19267 conftest$ac_exeext
19268 if ${ac_cv_search_opendir+:} false; then :
19269 break
19270 fi
19271 done
19272 if ${ac_cv_search_opendir+:} false; then :
19273
19274 else
19275 ac_cv_search_opendir=no
19276 fi
19277 rm conftest.$ac_ext
19278 LIBS=$ac_func_search_save_LIBS
19279 fi
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19281 $as_echo "$ac_cv_search_opendir" >&6; }
19282 ac_res=$ac_cv_search_opendir
19283 if test "$ac_res" != no; then :
19284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19285
19286 fi
19287
19288 fi
19289
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19291 $as_echo_n "checking for ANSI C header files... " >&6; }
19292 if ${ac_cv_header_stdc+:} false; then :
19293 $as_echo_n "(cached) " >&6
19294 else
19295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19296 /* end confdefs.h. */
19297 #include <stdlib.h>
19298 #include <stdarg.h>
19299 #include <string.h>
19300 #include <float.h>
19301
19302 int
19303 main ()
19304 {
19305
19306 ;
19307 return 0;
19308 }
19309 _ACEOF
19310 if ac_fn_c_try_compile "$LINENO"; then :
19311 ac_cv_header_stdc=yes
19312 else
19313 ac_cv_header_stdc=no
19314 fi
19315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19316
19317 if test $ac_cv_header_stdc = yes; then
19318 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19320 /* end confdefs.h. */
19321 #include <string.h>
19322
19323 _ACEOF
19324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19325 $EGREP "memchr" >/dev/null 2>&1; then :
19326
19327 else
19328 ac_cv_header_stdc=no
19329 fi
19330 rm -f conftest*
19331
19332 fi
19333
19334 if test $ac_cv_header_stdc = yes; then
19335 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19337 /* end confdefs.h. */
19338 #include <stdlib.h>
19339
19340 _ACEOF
19341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19342 $EGREP "free" >/dev/null 2>&1; then :
19343
19344 else
19345 ac_cv_header_stdc=no
19346 fi
19347 rm -f conftest*
19348
19349 fi
19350
19351 if test $ac_cv_header_stdc = yes; then
19352 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19353 if test "$cross_compiling" = yes; then :
19354 :
19355 else
19356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19357 /* end confdefs.h. */
19358 #include <ctype.h>
19359 #include <stdlib.h>
19360 #if ((' ' & 0x0FF) == 0x020)
19361 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19362 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19363 #else
19364 # define ISLOWER(c) \
19365 (('a' <= (c) && (c) <= 'i') \
19366 || ('j' <= (c) && (c) <= 'r') \
19367 || ('s' <= (c) && (c) <= 'z'))
19368 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19369 #endif
19370
19371 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19372 int
19373 main ()
19374 {
19375 int i;
19376 for (i = 0; i < 256; i++)
19377 if (XOR (islower (i), ISLOWER (i))
19378 || toupper (i) != TOUPPER (i))
19379 return 2;
19380 return 0;
19381 }
19382 _ACEOF
19383 if ac_fn_c_try_run "$LINENO"; then :
19384
19385 else
19386 ac_cv_header_stdc=no
19387 fi
19388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19389 conftest.$ac_objext conftest.beam conftest.$ac_ext
19390 fi
19391
19392 fi
19393 fi
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19395 $as_echo "$ac_cv_header_stdc" >&6; }
19396 if test $ac_cv_header_stdc = yes; then
19397
19398 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19399
19400 fi
19401
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
19403 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
19404 if ${ac_cv_header_sys_wait_h+:} false; then :
19405 $as_echo_n "(cached) " >&6
19406 else
19407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19408 /* end confdefs.h. */
19409 #include <sys/types.h>
19410 #include <sys/wait.h>
19411 #ifndef WEXITSTATUS
19412 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19413 #endif
19414 #ifndef WIFEXITED
19415 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19416 #endif
19417
19418 int
19419 main ()
19420 {
19421 int s;
19422 wait (&s);
19423 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19424 ;
19425 return 0;
19426 }
19427 _ACEOF
19428 if ac_fn_c_try_compile "$LINENO"; then :
19429 ac_cv_header_sys_wait_h=yes
19430 else
19431 ac_cv_header_sys_wait_h=no
19432 fi
19433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19434 fi
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
19436 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
19437 if test $ac_cv_header_sys_wait_h = yes; then
19438
19439 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
19440
19441 fi
19442
19443 for ac_header in dlfcn.h fcntl.h signal.h linux/prctl.h sys/ioctl.h sys/prctl.h sys/resource.h sys/time.h junistd.h memory.h
19444 do :
19445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19446 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19447 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19448 cat >>confdefs.h <<_ACEOF
19449 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19450 _ACEOF
19451
19452 fi
19453
19454 done
19455
19456 if test x"$force_shadow" != xno ; then
19457 for ac_header in shadow.h
19458 do :
19459 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
19460 if test "x$ac_cv_header_shadow_h" = xyes; then :
19461 cat >>confdefs.h <<_ACEOF
19462 #define HAVE_SHADOW_H 1
19463 _ACEOF
19464 if test "$use_shadow" = "" && test -f /etc/shadow ; then
19465
19466 $as_echo "#define PR_USE_SHADOW 1" >>confdefs.h
19467
19468
19469 ac_fn_c_check_member "$LINENO" "struct spwd" "sp_warn" "ac_cv_member_struct_spwd_sp_warn" "#include <shadow.h>
19470 "
19471 if test "x$ac_cv_member_struct_spwd_sp_warn" = xyes; then :
19472
19473 $as_echo "#define HAVE_SPWD_SP_WARN 1" >>confdefs.h
19474
19475 fi
19476
19477 ac_fn_c_check_member "$LINENO" "struct spwd" "sp_inact" "ac_cv_member_struct_spwd_sp_inact" "#include <shadow.h>
19478 "
19479 if test "x$ac_cv_member_struct_spwd_sp_inact" = xyes; then :
19480
19481 $as_echo "#define HAVE_SPWD_SP_INACT 1" >>confdefs.h
19482
19483 fi
19484
19485 ac_fn_c_check_member "$LINENO" "struct spwd" "sp_expire" "ac_cv_member_struct_spwd_sp_expire" "#include <shadow.h>
19486 "
19487 if test "x$ac_cv_member_struct_spwd_sp_expire" = xyes; then :
19488
19489 $as_echo "#define HAVE_SPWD_SP_EXPIRE 1" >>confdefs.h
19490
19491 fi
19492
19493 fi
19494 fi
19495
19496 done
19497
19498 fi
19499
19500 if test x"$enable_auth_pam" != xno ; then
19501 for ac_header in security/pam_appl.h security/pam_modules.h pam/pam_appl.h
19502 do :
19503 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19504 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
19505 #ifdef HAVE_SECURITY_PAM_APPL_H
19506 # include <security/pam_appl.h>
19507 #endif
19508
19509 "
19510 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19511 cat >>confdefs.h <<_ACEOF
19512 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19513 _ACEOF
19514
19515 if test `echo $ac_static_modules | grep -c mod_auth_pam` = "0"; then
19516 ac_static_modules="mod_auth_pam.o $ac_static_modules"
19517 ac_build_static_modules="modules/mod_auth_pam.o $ac_build_static_modules"
19518 fi
19519
19520 fi
19521
19522 done
19523
19524
19525
19526 if test `echo $ac_static_modules | grep -c mod_auth_pam` = "1"; then
19527
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
19529 $as_echo_n "checking for pam_start in -lpam... " >&6; }
19530 if ${ac_cv_lib_pam_pam_start+:} false; then :
19531 $as_echo_n "(cached) " >&6
19532 else
19533 ac_check_lib_save_LIBS=$LIBS
19534 LIBS="-lpam $LIBS"
19535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19536 /* end confdefs.h. */
19537
19538 /* Override any GCC internal prototype to avoid an error.
19539 Use char because int might match the return type of a GCC
19540 builtin and then its argument prototype would still apply. */
19541 #ifdef __cplusplus
19542 extern "C"
19543 #endif
19544 char pam_start ();
19545 int
19546 main ()
19547 {
19548 return pam_start ();
19549 ;
19550 return 0;
19551 }
19552 _ACEOF
19553 if ac_fn_c_try_link "$LINENO"; then :
19554 ac_cv_lib_pam_pam_start=yes
19555 else
19556 ac_cv_lib_pam_pam_start=no
19557 fi
19558 rm -f core conftest.err conftest.$ac_objext \
19559 conftest$ac_exeext conftest.$ac_ext
19560 LIBS=$ac_check_lib_save_LIBS
19561 fi
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
19563 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
19564 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
19565
19566 $as_echo "#define HAVE_PAM 1" >>confdefs.h
19567
19568 else
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_end in -lpam" >&5
19570 $as_echo_n "checking for pam_end in -lpam... " >&6; }
19571 if ${ac_cv_lib_pam_pam_end+:} false; then :
19572 $as_echo_n "(cached) " >&6
19573 else
19574 ac_check_lib_save_LIBS=$LIBS
19575 LIBS="-lpam -ldl $LIBS"
19576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19577 /* end confdefs.h. */
19578
19579 /* Override any GCC internal prototype to avoid an error.
19580 Use char because int might match the return type of a GCC
19581 builtin and then its argument prototype would still apply. */
19582 #ifdef __cplusplus
19583 extern "C"
19584 #endif
19585 char pam_end ();
19586 int
19587 main ()
19588 {
19589 return pam_end ();
19590 ;
19591 return 0;
19592 }
19593 _ACEOF
19594 if ac_fn_c_try_link "$LINENO"; then :
19595 ac_cv_lib_pam_pam_end=yes
19596 else
19597 ac_cv_lib_pam_pam_end=no
19598 fi
19599 rm -f core conftest.err conftest.$ac_objext \
19600 conftest$ac_exeext conftest.$ac_ext
19601 LIBS=$ac_check_lib_save_LIBS
19602 fi
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_end" >&5
19604 $as_echo "$ac_cv_lib_pam_pam_end" >&6; }
19605 if test "x$ac_cv_lib_pam_pam_end" = xyes; then :
19606
19607 $as_echo "#define HAVE_PAM 1" >>confdefs.h
19608
19609 LIBS="$LIBS -ldl"
19610 fi
19611
19612 fi
19613
19614 fi
19615
19616 fi
19617
19618 ac_add_mod_cap="no"
19619 ac_have_libcap="no"
19620 if test x"$enable_cap" != xno; then
19621 case "$host" in
19622 *-linux-*)
19623 rev=`uname -r | awk -F'[.-]' '{printf "%03d%03d%03d", $1, $2, $3}'`
19624
19625 if test $rev -ge 002001097; then
19626 for ac_header in linux/capability.h sys/capability.h
19627 do :
19628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19629 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19630 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19631 cat >>confdefs.h <<_ACEOF
19632 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19633 _ACEOF
19634
19635 fi
19636
19637 done
19638
19639
19640 if test x"$ac_cv_header_linux_capability_h" = "xyes" && test x"$ac_cv_header_sys_capability_h" = "xyes"; then
19641 ac_add_mod_cap="yes"
19642 fi
19643
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap2" >&5
19645 $as_echo_n "checking for cap_init in -lcap2... " >&6; }
19646 if ${ac_cv_lib_cap2_cap_init+:} false; then :
19647 $as_echo_n "(cached) " >&6
19648 else
19649 ac_check_lib_save_LIBS=$LIBS
19650 LIBS="-lcap2 $LIBS"
19651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19652 /* end confdefs.h. */
19653
19654 /* Override any GCC internal prototype to avoid an error.
19655 Use char because int might match the return type of a GCC
19656 builtin and then its argument prototype would still apply. */
19657 #ifdef __cplusplus
19658 extern "C"
19659 #endif
19660 char cap_init ();
19661 int
19662 main ()
19663 {
19664 return cap_init ();
19665 ;
19666 return 0;
19667 }
19668 _ACEOF
19669 if ac_fn_c_try_link "$LINENO"; then :
19670 ac_cv_lib_cap2_cap_init=yes
19671 else
19672 ac_cv_lib_cap2_cap_init=no
19673 fi
19674 rm -f core conftest.err conftest.$ac_objext \
19675 conftest$ac_exeext conftest.$ac_ext
19676 LIBS=$ac_check_lib_save_LIBS
19677 fi
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap2_cap_init" >&5
19679 $as_echo "$ac_cv_lib_cap2_cap_init" >&6; }
19680 if test "x$ac_cv_lib_cap2_cap_init" = xyes; then :
19681 ac_have_libcap="yes"
19682
19683 $as_echo "#define HAVE_LIBCAP2 1" >>confdefs.h
19684
19685
19686
19687 else
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
19689 $as_echo_n "checking for cap_init in -lcap... " >&6; }
19690 if ${ac_cv_lib_cap_cap_init+:} false; then :
19691 $as_echo_n "(cached) " >&6
19692 else
19693 ac_check_lib_save_LIBS=$LIBS
19694 LIBS="-lcap $LIBS"
19695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19696 /* end confdefs.h. */
19697
19698 /* Override any GCC internal prototype to avoid an error.
19699 Use char because int might match the return type of a GCC
19700 builtin and then its argument prototype would still apply. */
19701 #ifdef __cplusplus
19702 extern "C"
19703 #endif
19704 char cap_init ();
19705 int
19706 main ()
19707 {
19708 return cap_init ();
19709 ;
19710 return 0;
19711 }
19712 _ACEOF
19713 if ac_fn_c_try_link "$LINENO"; then :
19714 ac_cv_lib_cap_cap_init=yes
19715 else
19716 ac_cv_lib_cap_cap_init=no
19717 fi
19718 rm -f core conftest.err conftest.$ac_objext \
19719 conftest$ac_exeext conftest.$ac_ext
19720 LIBS=$ac_check_lib_save_LIBS
19721 fi
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
19723 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
19724 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
19725 ac_have_libcap="yes"
19726
19727 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
19728
19729
19730 fi
19731
19732
19733 fi
19734
19735 fi
19736 esac
19737 fi
19738
19739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mod_cap" >&5
19740 $as_echo_n "checking whether to enable mod_cap... " >&6; }
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_add_mod_cap" >&5
19742 $as_echo "$ac_add_mod_cap" >&6; }
19743
19744 if test x"$ac_add_mod_cap" = xyes; then
19745
19746 if test x"$ifsession_requested" = xtrue; then
19747 ac_static_modules=`echo "$ac_static_modules" | sed -e 's/mod_ifsession\.o//g'`
19748 ac_static_modules="$ac_static_modules mod_cap.o mod_ifsession.o"
19749
19750 ac_build_static_modules=`echo "$ac_build_static_modules" | sed -e 's/modules\/mod_ifsession\.o//g'`
19751 ac_build_static_modules="$ac_build_static_modules modules/mod_cap.o modules/mod_ifsession.o";
19752
19753 else
19754 ac_static_modules="$ac_static_modules mod_cap.o"
19755 ac_build_static_modules="$ac_build_static_modules modules/mod_cap.o"
19756 fi
19757 fi
19758
19759 for ac_header in bstring.h crypt.h ctype.h execinfo.h iconv.h inttypes.h langinfo.h limits.h locale.h sasl/sasl.h
19760 do :
19761 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19762 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19763 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19764 cat >>confdefs.h <<_ACEOF
19765 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19766 _ACEOF
19767
19768 fi
19769
19770 done
19771
19772 for ac_header in string.h strings.h stropts.h
19773 do :
19774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19775 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19776 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19777 cat >>confdefs.h <<_ACEOF
19778 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19779 _ACEOF
19780
19781 fi
19782
19783 done
19784
19785 for ac_header in sys/file.h sys/mman.h sys/types.h sys/ucred.h sys/uio.h sys/socket.h
19786 do :
19787 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19788 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19789 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19790 cat >>confdefs.h <<_ACEOF
19791 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19792 _ACEOF
19793
19794 fi
19795
19796 done
19797
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net/if.h" >&5
19799 $as_echo_n "checking for net/if.h... " >&6; }
19800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19801 /* end confdefs.h. */
19802
19803 #include <time.h>
19804 #ifdef HAVE_SYS_TYPES_H
19805 # include <sys/types.h>
19806 #endif
19807 #ifdef HAVE_SYS_SOCKET_H
19808 # include <sys/socket.h>
19809 #endif
19810 #include <net/if.h>
19811
19812 int
19813 main ()
19814 {
19815
19816
19817 ;
19818 return 0;
19819 }
19820 _ACEOF
19821 if ac_fn_c_try_compile "$LINENO"; then :
19822
19823
19824 $as_echo "#define HAVE_NET_IF_H 1" >>confdefs.h
19825
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19827 $as_echo "yes" >&6; }
19828
19829 else
19830
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19832 $as_echo "no" >&6; }
19833
19834 fi
19835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19836
19837 for ac_header in ifaddrs.h
19838 do :
19839 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
19840 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
19841 cat >>confdefs.h <<_ACEOF
19842 #define HAVE_IFADDRS_H 1
19843 _ACEOF
19844
19845 fi
19846
19847 done
19848
19849
19850 for ac_header in sys/param.h sys/mount.h
19851 do :
19852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19853 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
19854
19855 #if HAVE_SYS_PARAM_H
19856 # include <sys/param.h>
19857 #endif
19858
19859
19860 "
19861 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19862 cat >>confdefs.h <<_ACEOF
19863 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19864 _ACEOF
19865
19866 fi
19867
19868 done
19869
19870
19871 for ac_header in netdb.h netinet/in.h
19872 do :
19873 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19874 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19875 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19876 cat >>confdefs.h <<_ACEOF
19877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19878 _ACEOF
19879
19880 fi
19881
19882 done
19883
19884
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb.h requires _USE_IRS" >&5
19886 $as_echo_n "checking whether netdb.h requires _USE_IRS... " >&6; }
19887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19888 /* end confdefs.h. */
19889 #include <netdb.h>
19890
19891 _ACEOF
19892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19893 $EGREP "_USE_IRS" >/dev/null 2>&1; then :
19894
19895
19896 $as_echo "#define _USE_IRS 1" >>confdefs.h
19897
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19899 $as_echo "yes" >&6; }
19900
19901 else
19902
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19904 $as_echo "no" >&6; }
19905
19906 fi
19907 rm -f conftest*
19908
19909
19910 for ac_header in netinet/in_systm.h
19911 do :
19912 ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "
19913
19914 #if HAVE_SYS_TYPES_H
19915 # include <sys/types.h>
19916 #endif
19917
19918
19919 "
19920 if test "x$ac_cv_header_netinet_in_systm_h" = xyes; then :
19921 cat >>confdefs.h <<_ACEOF
19922 #define HAVE_NETINET_IN_SYSTM_H 1
19923 _ACEOF
19924
19925 fi
19926
19927 done
19928
19929
19930 for ac_header in netinet/ip.h
19931 do :
19932 ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "
19933
19934 #if HAVE_SYS_TYPES_H
19935 # include <sys/types.h>
19936 #endif
19937 #if HAVE_NETINET_IN_H
19938 # include <netinet/in.h>
19939 #endif
19940 #if HAVE_NETINET_IN_SYSTM_H
19941 # include <netinet/in_systm.h>
19942 #endif
19943
19944
19945 "
19946 if test "x$ac_cv_header_netinet_ip_h" = xyes; then :
19947 cat >>confdefs.h <<_ACEOF
19948 #define HAVE_NETINET_IP_H 1
19949 _ACEOF
19950
19951 fi
19952
19953 done
19954
19955
19956 for ac_header in netinet/tcp.h arpa/inet.h idn2.h idna.h libintl.h
19957 do :
19958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19959 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19960 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19961 cat >>confdefs.h <<_ACEOF
19962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19963 _ACEOF
19964
19965 fi
19966
19967 done
19968
19969 for ac_header in regex.h sys/stat.h errno.h sys/termios.h sys/termio.h
19970 do :
19971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19972 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19973 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19974 cat >>confdefs.h <<_ACEOF
19975 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19976 _ACEOF
19977
19978 fi
19979
19980 done
19981
19982 for ac_header in sys/statfs.h sys/statvfs.h sys/un.h sys/vfs.h sys/select.h
19983 do :
19984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19985 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19986 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19987 cat >>confdefs.h <<_ACEOF
19988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19989 _ACEOF
19990
19991 fi
19992
19993 done
19994
19995 for ac_header in termios.h dirent.h ndir.h sys/ndir.h sys/dir.h vmsdir.h
19996 do :
19997 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19998 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19999 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20000 cat >>confdefs.h <<_ACEOF
20001 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20002 _ACEOF
20003
20004 fi
20005
20006 done
20007
20008 for ac_header in ucred.h ucontext.h utime.h utmpx.h
20009 do :
20010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20011 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20012 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20013 cat >>confdefs.h <<_ACEOF
20014 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20015 _ACEOF
20016
20017 fi
20018
20019 done
20020
20021 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
20022 if test "x$ac_cv_header_syslog_h" = xyes; then :
20023 have_syslog_h="yes"
20024 fi
20025
20026
20027 for ac_header in curses.h ncurses.h
20028 do :
20029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20030 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20031 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20032 cat >>confdefs.h <<_ACEOF
20033 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20034 _ACEOF
20035
20036 fi
20037
20038 done
20039
20040
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname global variable" >&5
20042 $as_echo_n "checking for tzname global variable... " >&6; }
20043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20044 /* end confdefs.h. */
20045
20046 #include <time.h>
20047
20048 int
20049 main ()
20050 {
20051
20052 char *dup[2];
20053 dup[0] = tzname[0];
20054 dup[1] = tzname[1];
20055
20056 ;
20057 return 0;
20058 }
20059 _ACEOF
20060 if ac_fn_c_try_compile "$LINENO"; then :
20061
20062
20063 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
20064
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20066 $as_echo "yes" >&6; }
20067
20068 else
20069
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20071 $as_echo "no" >&6; }
20072
20073 fi
20074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20075
20076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20077 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20078 if ${ac_cv_c_const+:} false; then :
20079 $as_echo_n "(cached) " >&6
20080 else
20081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20082 /* end confdefs.h. */
20083
20084 int
20085 main ()
20086 {
20087
20088 #ifndef __cplusplus
20089 /* Ultrix mips cc rejects this sort of thing. */
20090 typedef int charset[2];
20091 const charset cs = { 0, 0 };
20092 /* SunOS 4.1.1 cc rejects this. */
20093 char const *const *pcpcc;
20094 char **ppc;
20095 /* NEC SVR4.0.2 mips cc rejects this. */
20096 struct point {int x, y;};
20097 static struct point const zero = {0,0};
20098 /* AIX XL C 1.02.0.0 rejects this.
20099 It does not let you subtract one const X* pointer from another in
20100 an arm of an if-expression whose if-part is not a constant
20101 expression */
20102 const char *g = "string";
20103 pcpcc = &g + (g ? g-g : 0);
20104 /* HPUX 7.0 cc rejects these. */
20105 ++pcpcc;
20106 ppc = (char**) pcpcc;
20107 pcpcc = (char const *const *) ppc;
20108 { /* SCO 3.2v4 cc rejects this sort of thing. */
20109 char tx;
20110 char *t = &tx;
20111 char const *s = 0 ? (char *) 0 : (char const *) 0;
20112
20113 *t++ = 0;
20114 if (s) return 0;
20115 }
20116 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20117 int x[] = {25, 17};
20118 const int *foo = &x[0];
20119 ++foo;
20120 }
20121 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20122 typedef const int *iptr;
20123 iptr p = 0;
20124 ++p;
20125 }
20126 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
20127 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20128 struct s { int j; const int *ap[3]; } bx;
20129 struct s *b = &bx; b->j = 5;
20130 }
20131 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20132 const int foo = 10;
20133 if (!foo) return 0;
20134 }
20135 return !cs[0] && !zero.x;
20136 #endif
20137
20138 ;
20139 return 0;
20140 }
20141 _ACEOF
20142 if ac_fn_c_try_compile "$LINENO"; then :
20143 ac_cv_c_const=yes
20144 else
20145 ac_cv_c_const=no
20146 fi
20147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20148 fi
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20150 $as_echo "$ac_cv_c_const" >&6; }
20151 if test $ac_cv_c_const = no; then
20152
20153 $as_echo "#define const /**/" >>confdefs.h
20154
20155 fi
20156
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20158 $as_echo_n "checking for inline... " >&6; }
20159 if ${ac_cv_c_inline+:} false; then :
20160 $as_echo_n "(cached) " >&6
20161 else
20162 ac_cv_c_inline=no
20163 for ac_kw in inline __inline__ __inline; do
20164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20165 /* end confdefs.h. */
20166 #ifndef __cplusplus
20167 typedef int foo_t;
20168 static $ac_kw foo_t static_foo () {return 0; }
20169 $ac_kw foo_t foo () {return 0; }
20170 #endif
20171
20172 _ACEOF
20173 if ac_fn_c_try_compile "$LINENO"; then :
20174 ac_cv_c_inline=$ac_kw
20175 fi
20176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20177 test "$ac_cv_c_inline" != no && break
20178 done
20179
20180 fi
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20182 $as_echo "$ac_cv_c_inline" >&6; }
20183
20184 case $ac_cv_c_inline in
20185 inline | yes) ;;
20186 *)
20187 case $ac_cv_c_inline in
20188 no) ac_val=;;
20189 *) ac_val=$ac_cv_c_inline;;
20190 esac
20191 cat >>confdefs.h <<_ACEOF
20192 #ifndef __cplusplus
20193 #define inline $ac_val
20194 #endif
20195 _ACEOF
20196 ;;
20197 esac
20198
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20200 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20201 if ${ac_cv_type_uid_t+:} false; then :
20202 $as_echo_n "(cached) " >&6
20203 else
20204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20205 /* end confdefs.h. */
20206 #include <sys/types.h>
20207
20208 _ACEOF
20209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20210 $EGREP "uid_t" >/dev/null 2>&1; then :
20211 ac_cv_type_uid_t=yes
20212 else
20213 ac_cv_type_uid_t=no
20214 fi
20215 rm -f conftest*
20216
20217 fi
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20219 $as_echo "$ac_cv_type_uid_t" >&6; }
20220 if test $ac_cv_type_uid_t = no; then
20221
20222 $as_echo "#define uid_t int" >>confdefs.h
20223
20224
20225 $as_echo "#define gid_t int" >>confdefs.h
20226
20227 fi
20228
20229 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20230 if test "x$ac_cv_type_pid_t" = xyes; then :
20231
20232 else
20233
20234 cat >>confdefs.h <<_ACEOF
20235 #define pid_t int
20236 _ACEOF
20237
20238 fi
20239
20240 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20241 if test "x$ac_cv_type_size_t" = xyes; then :
20242
20243 else
20244
20245 cat >>confdefs.h <<_ACEOF
20246 #define size_t unsigned int
20247 _ACEOF
20248
20249 fi
20250
20251 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20252 if test "x$ac_cv_type_mode_t" = xyes; then :
20253
20254 else
20255
20256 cat >>confdefs.h <<_ACEOF
20257 #define mode_t int
20258 _ACEOF
20259
20260 fi
20261
20262 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20263 if test "x$ac_cv_type_off_t" = xyes; then :
20264
20265 else
20266
20267 cat >>confdefs.h <<_ACEOF
20268 #define off_t long int
20269 _ACEOF
20270
20271 fi
20272
20273 ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default"
20274 if test "x$ac_cv_type_u_int8_t" = xyes; then :
20275
20276 $as_echo "#define HAVE_U_INT8_T 1" >>confdefs.h
20277
20278 fi
20279
20280 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
20281 if test "x$ac_cv_type_u_int16_t" = xyes; then :
20282
20283 $as_echo "#define HAVE_U_INT16_T 1" >>confdefs.h
20284
20285 fi
20286
20287 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
20288 if test "x$ac_cv_type_u_int32_t" = xyes; then :
20289
20290 $as_echo "#define HAVE_U_INT32_T 1" >>confdefs.h
20291
20292 fi
20293
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20295 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20296 if ${ac_cv_type_getgroups+:} false; then :
20297 $as_echo_n "(cached) " >&6
20298 else
20299 if test "$cross_compiling" = yes; then :
20300 ac_cv_type_getgroups=cross
20301 else
20302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20303 /* end confdefs.h. */
20304 /* Thanks to Mike Rendell for this test. */
20305 $ac_includes_default
20306 #define NGID 256
20307 #undef MAX
20308 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20309
20310 int
20311 main ()
20312 {
20313 gid_t gidset[NGID];
20314 int i, n;
20315 union { gid_t gval; long int lval; } val;
20316
20317 val.lval = -1;
20318 for (i = 0; i < NGID; i++)
20319 gidset[i] = val.gval;
20320 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20321 gidset);
20322 /* Exit non-zero if getgroups seems to require an array of ints. This
20323 happens when gid_t is short int but getgroups modifies an array
20324 of ints. */
20325 return n > 0 && gidset[n] != val.gval;
20326 }
20327 _ACEOF
20328 if ac_fn_c_try_run "$LINENO"; then :
20329 ac_cv_type_getgroups=gid_t
20330 else
20331 ac_cv_type_getgroups=int
20332 fi
20333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20334 conftest.$ac_objext conftest.beam conftest.$ac_ext
20335 fi
20336
20337 if test $ac_cv_type_getgroups = cross; then
20338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20339 /* end confdefs.h. */
20340 #include <unistd.h>
20341
20342 _ACEOF
20343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20344 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20345 ac_cv_type_getgroups=gid_t
20346 else
20347 ac_cv_type_getgroups=int
20348 fi
20349 rm -f conftest*
20350
20351 fi
20352 fi
20353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20354 $as_echo "$ac_cv_type_getgroups" >&6; }
20355
20356 cat >>confdefs.h <<_ACEOF
20357 #define GETGROUPS_T $ac_cv_type_getgroups
20358 _ACEOF
20359
20360
20361
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the getgrouplist(3) function takes ints" >&5
20363 $as_echo_n "checking whether the getgrouplist(3) function takes ints... " >&6; }
20364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20365 /* end confdefs.h. */
20366
20367 #define _GNU_SOURCE
20368 #ifdef HAVE_GRP_H
20369 # include <grp.h>
20370 #endif
20371 #ifdef HAVE_UNISTD_H
20372 # include <unistd.h>
20373 #endif
20374
20375 int
20376 main ()
20377 {
20378
20379 int (*f)(const char *, int, int *, int *) = getgrouplist;
20380
20381 ;
20382 return 0;
20383 }
20384 _ACEOF
20385 if ac_fn_c_try_link "$LINENO"; then :
20386
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20388 $as_echo "yes" >&6; }
20389
20390 $as_echo "#define HAVE_GETGROUPLIST_TAKES_INTS 1" >>confdefs.h
20391
20392
20393 else
20394
20395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20396 $as_echo "no" >&6; }
20397
20398 fi
20399 rm -f core conftest.err conftest.$ac_objext \
20400 conftest$ac_exeext conftest.$ac_ext
20401
20402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20403 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20404 if ${ac_cv_header_time+:} false; then :
20405 $as_echo_n "(cached) " >&6
20406 else
20407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20408 /* end confdefs.h. */
20409 #include <sys/types.h>
20410 #include <sys/time.h>
20411 #include <time.h>
20412
20413 int
20414 main ()
20415 {
20416 if ((struct tm *) 0)
20417 return 0;
20418 ;
20419 return 0;
20420 }
20421 _ACEOF
20422 if ac_fn_c_try_compile "$LINENO"; then :
20423 ac_cv_header_time=yes
20424 else
20425 ac_cv_header_time=no
20426 fi
20427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20428 fi
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20430 $as_echo "$ac_cv_header_time" >&6; }
20431 if test $ac_cv_header_time = yes; then
20432
20433 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20434
20435 fi
20436
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20438 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20439 if ${ac_cv_struct_tm+:} false; then :
20440 $as_echo_n "(cached) " >&6
20441 else
20442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20443 /* end confdefs.h. */
20444 #include <sys/types.h>
20445 #include <time.h>
20446
20447 int
20448 main ()
20449 {
20450 struct tm tm;
20451 int *p = &tm.tm_sec;
20452 return !p;
20453 ;
20454 return 0;
20455 }
20456 _ACEOF
20457 if ac_fn_c_try_compile "$LINENO"; then :
20458 ac_cv_struct_tm=time.h
20459 else
20460 ac_cv_struct_tm=sys/time.h
20461 fi
20462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20463 fi
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20465 $as_echo "$ac_cv_struct_tm" >&6; }
20466 if test $ac_cv_struct_tm = sys/time.h; then
20467
20468 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20469
20470 fi
20471
20472
20473 # The cast to long int works around a bug in the HP C Compiler
20474 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20475 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20476 # This bug is HP SR number 8606223364.
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
20478 $as_echo_n "checking size of short... " >&6; }
20479 if ${ac_cv_sizeof_short+:} false; then :
20480 $as_echo_n "(cached) " >&6
20481 else
20482 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
20483
20484 else
20485 if test "$ac_cv_type_short" = yes; then
20486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20488 as_fn_error 77 "cannot compute sizeof (short)
20489 See \`config.log' for more details" "$LINENO" 5; }
20490 else
20491 ac_cv_sizeof_short=0
20492 fi
20493 fi
20494
20495 fi
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
20497 $as_echo "$ac_cv_sizeof_short" >&6; }
20498
20499
20500
20501 cat >>confdefs.h <<_ACEOF
20502 #define SIZEOF_SHORT $ac_cv_sizeof_short
20503 _ACEOF
20504
20505
20506 # The cast to long int works around a bug in the HP C Compiler
20507 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20508 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20509 # This bug is HP SR number 8606223364.
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
20511 $as_echo_n "checking size of int... " >&6; }
20512 if ${ac_cv_sizeof_int+:} false; then :
20513 $as_echo_n "(cached) " >&6
20514 else
20515 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
20516
20517 else
20518 if test "$ac_cv_type_int" = yes; then
20519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20521 as_fn_error 77 "cannot compute sizeof (int)
20522 See \`config.log' for more details" "$LINENO" 5; }
20523 else
20524 ac_cv_sizeof_int=0
20525 fi
20526 fi
20527
20528 fi
20529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
20530 $as_echo "$ac_cv_sizeof_int" >&6; }
20531
20532
20533
20534 cat >>confdefs.h <<_ACEOF
20535 #define SIZEOF_INT $ac_cv_sizeof_int
20536 _ACEOF
20537
20538
20539 # The cast to long int works around a bug in the HP C Compiler
20540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20542 # This bug is HP SR number 8606223364.
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
20544 $as_echo_n "checking size of long... " >&6; }
20545 if ${ac_cv_sizeof_long+:} false; then :
20546 $as_echo_n "(cached) " >&6
20547 else
20548 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
20549
20550 else
20551 if test "$ac_cv_type_long" = yes; then
20552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20554 as_fn_error 77 "cannot compute sizeof (long)
20555 See \`config.log' for more details" "$LINENO" 5; }
20556 else
20557 ac_cv_sizeof_long=0
20558 fi
20559 fi
20560
20561 fi
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
20563 $as_echo "$ac_cv_sizeof_long" >&6; }
20564
20565
20566
20567 cat >>confdefs.h <<_ACEOF
20568 #define SIZEOF_LONG $ac_cv_sizeof_long
20569 _ACEOF
20570
20571
20572 # The cast to long int works around a bug in the HP C Compiler
20573 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20574 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20575 # This bug is HP SR number 8606223364.
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
20577 $as_echo_n "checking size of long long... " >&6; }
20578 if ${ac_cv_sizeof_long_long+:} false; then :
20579 $as_echo_n "(cached) " >&6
20580 else
20581 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
20582
20583 else
20584 if test "$ac_cv_type_long_long" = yes; then
20585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20587 as_fn_error 77 "cannot compute sizeof (long long)
20588 See \`config.log' for more details" "$LINENO" 5; }
20589 else
20590 ac_cv_sizeof_long_long=0
20591 fi
20592 fi
20593
20594 fi
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
20596 $as_echo "$ac_cv_sizeof_long_long" >&6; }
20597
20598
20599
20600 cat >>confdefs.h <<_ACEOF
20601 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20602 _ACEOF
20603
20604
20605 # The cast to long int works around a bug in the HP C Compiler
20606 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20607 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20608 # This bug is HP SR number 8606223364.
20609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
20610 $as_echo_n "checking size of off_t... " >&6; }
20611 if ${ac_cv_sizeof_off_t+:} false; then :
20612 $as_echo_n "(cached) " >&6
20613 else
20614 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
20615
20616 else
20617 if test "$ac_cv_type_off_t" = yes; then
20618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20620 as_fn_error 77 "cannot compute sizeof (off_t)
20621 See \`config.log' for more details" "$LINENO" 5; }
20622 else
20623 ac_cv_sizeof_off_t=0
20624 fi
20625 fi
20626
20627 fi
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
20629 $as_echo "$ac_cv_sizeof_off_t" >&6; }
20630
20631
20632
20633 cat >>confdefs.h <<_ACEOF
20634 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20635 _ACEOF
20636
20637
20638 # The cast to long int works around a bug in the HP C Compiler
20639 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20640 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20641 # This bug is HP SR number 8606223364.
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
20643 $as_echo_n "checking size of size_t... " >&6; }
20644 if ${ac_cv_sizeof_size_t+:} false; then :
20645 $as_echo_n "(cached) " >&6
20646 else
20647 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
20648
20649 else
20650 if test "$ac_cv_type_size_t" = yes; then
20651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20653 as_fn_error 77 "cannot compute sizeof (size_t)
20654 See \`config.log' for more details" "$LINENO" 5; }
20655 else
20656 ac_cv_sizeof_size_t=0
20657 fi
20658 fi
20659
20660 fi
20661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
20662 $as_echo "$ac_cv_sizeof_size_t" >&6; }
20663
20664
20665
20666 cat >>confdefs.h <<_ACEOF
20667 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20668 _ACEOF
20669
20670
20671 # The cast to long int works around a bug in the HP C Compiler
20672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20674 # This bug is HP SR number 8606223364.
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
20676 $as_echo_n "checking size of time_t... " >&6; }
20677 if ${ac_cv_sizeof_time_t+:} false; then :
20678 $as_echo_n "(cached) " >&6
20679 else
20680 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
20681
20682 else
20683 if test "$ac_cv_type_time_t" = yes; then
20684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20686 as_fn_error 77 "cannot compute sizeof (time_t)
20687 See \`config.log' for more details" "$LINENO" 5; }
20688 else
20689 ac_cv_sizeof_time_t=0
20690 fi
20691 fi
20692
20693 fi
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
20695 $as_echo "$ac_cv_sizeof_time_t" >&6; }
20696
20697
20698
20699 cat >>confdefs.h <<_ACEOF
20700 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
20701 _ACEOF
20702
20703
20704 # The cast to long int works around a bug in the HP C Compiler
20705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20707 # This bug is HP SR number 8606223364.
20708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
20709 $as_echo_n "checking size of char *... " >&6; }
20710 if ${ac_cv_sizeof_char_p+:} false; then :
20711 $as_echo_n "(cached) " >&6
20712 else
20713 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
20714
20715 else
20716 if test "$ac_cv_type_char_p" = yes; then
20717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20719 as_fn_error 77 "cannot compute sizeof (char *)
20720 See \`config.log' for more details" "$LINENO" 5; }
20721 else
20722 ac_cv_sizeof_char_p=0
20723 fi
20724 fi
20725
20726 fi
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
20728 $as_echo "$ac_cv_sizeof_char_p" >&6; }
20729
20730
20731
20732 cat >>confdefs.h <<_ACEOF
20733 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
20734 _ACEOF
20735
20736
20737 # The cast to long int works around a bug in the HP C Compiler
20738 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20739 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20740 # This bug is HP SR number 8606223364.
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
20742 $as_echo_n "checking size of void *... " >&6; }
20743 if ${ac_cv_sizeof_void_p+:} false; then :
20744 $as_echo_n "(cached) " >&6
20745 else
20746 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
20747
20748 else
20749 if test "$ac_cv_type_void_p" = yes; then
20750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20752 as_fn_error 77 "cannot compute sizeof (void *)
20753 See \`config.log' for more details" "$LINENO" 5; }
20754 else
20755 ac_cv_sizeof_void_p=0
20756 fi
20757 fi
20758
20759 fi
20760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
20761 $as_echo "$ac_cv_sizeof_void_p" >&6; }
20762
20763
20764
20765 cat >>confdefs.h <<_ACEOF
20766 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20767 _ACEOF
20768
20769
20770 # The cast to long int works around a bug in the HP C Compiler
20771 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20772 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20773 # This bug is HP SR number 8606223364.
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uid_t" >&5
20775 $as_echo_n "checking size of uid_t... " >&6; }
20776 if ${ac_cv_sizeof_uid_t+:} false; then :
20777 $as_echo_n "(cached) " >&6
20778 else
20779 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uid_t))" "ac_cv_sizeof_uid_t" "$ac_includes_default"; then :
20780
20781 else
20782 if test "$ac_cv_type_uid_t" = yes; then
20783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20785 as_fn_error 77 "cannot compute sizeof (uid_t)
20786 See \`config.log' for more details" "$LINENO" 5; }
20787 else
20788 ac_cv_sizeof_uid_t=0
20789 fi
20790 fi
20791
20792 fi
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uid_t" >&5
20794 $as_echo "$ac_cv_sizeof_uid_t" >&6; }
20795
20796
20797
20798 cat >>confdefs.h <<_ACEOF
20799 #define SIZEOF_UID_T $ac_cv_sizeof_uid_t
20800 _ACEOF
20801
20802
20803 # The cast to long int works around a bug in the HP C Compiler
20804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20806 # This bug is HP SR number 8606223364.
20807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of gid_t" >&5
20808 $as_echo_n "checking size of gid_t... " >&6; }
20809 if ${ac_cv_sizeof_gid_t+:} false; then :
20810 $as_echo_n "(cached) " >&6
20811 else
20812 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (gid_t))" "ac_cv_sizeof_gid_t" "$ac_includes_default"; then :
20813
20814 else
20815 if test "$ac_cv_type_gid_t" = yes; then
20816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20818 as_fn_error 77 "cannot compute sizeof (gid_t)
20819 See \`config.log' for more details" "$LINENO" 5; }
20820 else
20821 ac_cv_sizeof_gid_t=0
20822 fi
20823 fi
20824
20825 fi
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_gid_t" >&5
20827 $as_echo "$ac_cv_sizeof_gid_t" >&6; }
20828
20829
20830
20831 cat >>confdefs.h <<_ACEOF
20832 #define SIZEOF_GID_T $ac_cv_sizeof_gid_t
20833 _ACEOF
20834
20835
20836
20837 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20838 if test "x$ac_cv_type_mode_t" = xyes; then :
20839
20840 else
20841
20842 cat >>confdefs.h <<_ACEOF
20843 #define mode_t mode_t
20844 _ACEOF
20845
20846 fi
20847
20848 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
20849 if test "x$ac_cv_type_ino_t" = xyes; then :
20850
20851 else
20852
20853 cat >>confdefs.h <<_ACEOF
20854 #define ino_t ino_t
20855 _ACEOF
20856
20857 fi
20858
20859 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "
20860 #if HAVE_INTTYPES_H
20861 # include <inttypes.h>
20862 #endif
20863
20864 "
20865 if test "x$ac_cv_type_intptr_t" = xyes; then :
20866
20867 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
20868
20869 fi
20870
20871
20872 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20873 #if HAVE_SYS_TYPES_H
20874 # include <sys/types.h>
20875 #endif
20876 #if HAVE_NETDB_H
20877 # include <netdb.h>
20878 #endif
20879 #include <sys/socket.h>
20880
20881 "
20882 if test "x$ac_cv_type_socklen_t" = xyes; then :
20883
20884 cat >>confdefs.h <<_ACEOF
20885 #define HAVE_SOCKLEN_T 1
20886 _ACEOF
20887
20888
20889 else
20890 $as_echo "#define socklen_t int" >>confdefs.h
20891
20892 fi
20893
20894
20895 for ac_header in utmp.h
20896 do :
20897 ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
20898 if test "x$ac_cv_header_utmp_h" = xyes; then :
20899 cat >>confdefs.h <<_ACEOF
20900 #define HAVE_UTMP_H 1
20901 _ACEOF
20902 have_utmp=1
20903 else
20904 have_utmp=0
20905 fi
20906
20907 done
20908
20909
20910 if test $have_utmp; then
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct utmp has ut_user" >&5
20912 $as_echo_n "checking whether struct utmp has ut_user... " >&6; }
20913 if ${pr_cv_header_utmaxtype+:} false; then :
20914 $as_echo_n "(cached) " >&6
20915 else
20916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20917 /* end confdefs.h. */
20918 #include <utmp.h>
20919
20920 _ACEOF
20921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20922 $EGREP " *ut_user.*;" >/dev/null 2>&1; then :
20923 pr_cv_header_utmaxtype="yes"
20924 else
20925 pr_cv_header_utmaxtype="no"
20926 fi
20927 rm -f conftest*
20928
20929 fi
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_header_utmaxtype" >&5
20931 $as_echo "$pr_cv_header_utmaxtype" >&6; }
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct utmp has ut_host" >&5
20933 $as_echo_n "checking whether struct utmp has ut_host... " >&6; }
20934 if ${pr_cv_header_ut_host+:} false; then :
20935 $as_echo_n "(cached) " >&6
20936 else
20937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20938 /* end confdefs.h. */
20939 #include <utmp.h>
20940
20941 _ACEOF
20942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20943 $EGREP " *ut_host.*;" >/dev/null 2>&1; then :
20944 pr_cv_header_ut_host="yes"
20945 else
20946 pr_cv_header_ut_host="no"
20947 fi
20948 rm -f conftest*
20949
20950 fi
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_header_ut_host" >&5
20952 $as_echo "$pr_cv_header_ut_host" >&6; }
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct utmp has ut_exit" >&5
20954 $as_echo_n "checking whether struct utmp has ut_exit... " >&6; }
20955 if ${pr_cv_header_ut_exit+:} false; then :
20956 $as_echo_n "(cached) " >&6
20957 else
20958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20959 /* end confdefs.h. */
20960 #include <utmp.h>
20961
20962 _ACEOF
20963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20964 $EGREP " *ut_exit.*;" >/dev/null 2>&1; then :
20965 pr_cv_header_ut_exit="yes"
20966 else
20967 pr_cv_header_ut_exit="no"
20968 fi
20969 rm -f conftest*
20970
20971 fi
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_header_ut_exit" >&5
20973 $as_echo "$pr_cv_header_ut_exit" >&6; }
20974 if test "$pr_cv_header_utmaxtype" = "yes"; then
20975
20976 $as_echo "#define HAVE_UTMAXTYPE 1" >>confdefs.h
20977
20978 fi
20979 if test "$pr_cv_header_ut_host" = "yes"; then
20980
20981 $as_echo "#define HAVE_UT_UT_HOST 1" >>confdefs.h
20982
20983 fi
20984 if test "$pr_cv_header_ut_exit" = "yes"; then
20985
20986 $as_echo "#define HAVE_UT_UT_EXIT 1" >>confdefs.h
20987
20988 fi
20989 fi
20990
20991 if test "$have_syslog_h" = "yes"; then
20992
20993 $as_echo "#define HAVE_SYSLOG_H 1" >>confdefs.h
20994
20995
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syslog.h defines LOG_CRON" >&5
20997 $as_echo_n "checking whether syslog.h defines LOG_CRON... " >&6; }
20998 if ${pr_cv_header_syslog_log_cron+:} false; then :
20999 $as_echo_n "(cached) " >&6
21000 else
21001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21002 /* end confdefs.h. */
21003
21004 #include <syslog.h>
21005 #ifdef LOG_CRON
21006 yes
21007 #endif
21008
21009 _ACEOF
21010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21011 $EGREP "yes" >/dev/null 2>&1; then :
21012 pr_cv_header_syslog_log_cron="yes"
21013 else
21014 pr_cv_header_syslog_log_cron="no"
21015 fi
21016 rm -f conftest*
21017
21018 fi
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_header_syslog_log_cron" >&5
21020 $as_echo "$pr_cv_header_syslog_log_cron" >&6; }
21021
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syslog.h defines LOG_FTP" >&5
21023 $as_echo_n "checking whether syslog.h defines LOG_FTP... " >&6; }
21024 if ${pr_cv_header_syslog_log_ftp+:} false; then :
21025 $as_echo_n "(cached) " >&6
21026 else
21027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21028 /* end confdefs.h. */
21029
21030 #include <syslog.h>
21031 #ifdef LOG_FTP
21032 yes
21033 #endif
21034
21035 _ACEOF
21036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21037 $EGREP "yes" >/dev/null 2>&1; then :
21038 pr_cv_header_syslog_log_ftp="yes"
21039 else
21040 pr_cv_header_syslog_log_ftp="no"
21041 fi
21042 rm -f conftest*
21043
21044 fi
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_header_syslog_log_ftp" >&5
21046 $as_echo "$pr_cv_header_syslog_log_ftp" >&6; }
21047
21048 if test "$pr_cv_header_syslog_log_cron" = "yes"; then
21049
21050 $as_echo "#define HAVE_LOG_CRON 1" >>confdefs.h
21051
21052 fi
21053 if test "$pr_cv_header_syslog_log_ftp" = "yes"; then
21054
21055 $as_echo "#define HAVE_LOG_FTP 1" >>confdefs.h
21056
21057 fi
21058 fi
21059
21060 for dirfd in d_fd dd_fd __dd_fd ; do
21061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dirfd in DIR structure" >&5
21062 $as_echo_n "checking for $dirfd in DIR structure... " >&6; }
21063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21064 /* end confdefs.h. */
21065
21066 #include <stdio.h>
21067 #include <dirent.h>
21068
21069 int
21070 main ()
21071 {
21072
21073 DIR *dirp;
21074 int i = dirp->$dirfd;
21075
21076 ;
21077 return 0;
21078 }
21079 _ACEOF
21080 if ac_fn_c_try_compile "$LINENO"; then :
21081 eval ac_cv_struct_dir_$dirfd=yes
21082 fi
21083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21084 if test "`eval echo x'$''ac_cv_struct_dir_'$dirfd`" = xyes ; then
21085 ucdirfd=`echo $dirfd | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21086 cat >>confdefs.h <<_ACEOF
21087 #define HAVE_STRUCT_DIR_$ucdirfd 1
21088 _ACEOF
21089
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21091 $as_echo "yes" >&6; }
21092 break
21093 else
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21095 $as_echo "no" >&6; }
21096 fi
21097 done
21098
21099
21100
21101 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21102 # for constant arguments. Useless!
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21104 $as_echo_n "checking for working alloca.h... " >&6; }
21105 if ${ac_cv_working_alloca_h+:} false; then :
21106 $as_echo_n "(cached) " >&6
21107 else
21108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21109 /* end confdefs.h. */
21110 #include <alloca.h>
21111 int
21112 main ()
21113 {
21114 char *p = (char *) alloca (2 * sizeof (int));
21115 if (p) return 0;
21116 ;
21117 return 0;
21118 }
21119 _ACEOF
21120 if ac_fn_c_try_link "$LINENO"; then :
21121 ac_cv_working_alloca_h=yes
21122 else
21123 ac_cv_working_alloca_h=no
21124 fi
21125 rm -f core conftest.err conftest.$ac_objext \
21126 conftest$ac_exeext conftest.$ac_ext
21127 fi
21128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21129 $as_echo "$ac_cv_working_alloca_h" >&6; }
21130 if test $ac_cv_working_alloca_h = yes; then
21131
21132 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21133
21134 fi
21135
21136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21137 $as_echo_n "checking for alloca... " >&6; }
21138 if ${ac_cv_func_alloca_works+:} false; then :
21139 $as_echo_n "(cached) " >&6
21140 else
21141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21142 /* end confdefs.h. */
21143 #ifdef __GNUC__
21144 # define alloca __builtin_alloca
21145 #else
21146 # ifdef _MSC_VER
21147 # include <malloc.h>
21148 # define alloca _alloca
21149 # else
21150 # ifdef HAVE_ALLOCA_H
21151 # include <alloca.h>
21152 # else
21153 # ifdef _AIX
21154 #pragma alloca
21155 # else
21156 # ifndef alloca /* predefined by HP cc +Olibcalls */
21157 void *alloca (size_t);
21158 # endif
21159 # endif
21160 # endif
21161 # endif
21162 #endif
21163
21164 int
21165 main ()
21166 {
21167 char *p = (char *) alloca (1);
21168 if (p) return 0;
21169 ;
21170 return 0;
21171 }
21172 _ACEOF
21173 if ac_fn_c_try_link "$LINENO"; then :
21174 ac_cv_func_alloca_works=yes
21175 else
21176 ac_cv_func_alloca_works=no
21177 fi
21178 rm -f core conftest.err conftest.$ac_objext \
21179 conftest$ac_exeext conftest.$ac_ext
21180 fi
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21182 $as_echo "$ac_cv_func_alloca_works" >&6; }
21183
21184 if test $ac_cv_func_alloca_works = yes; then
21185
21186 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21187
21188 else
21189 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21190 # that cause trouble. Some versions do not even contain alloca or
21191 # contain a buggy version. If you still want to use their alloca,
21192 # use ar to extract alloca.o from them instead of compiling alloca.c.
21193
21194 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21195
21196 $as_echo "#define C_ALLOCA 1" >>confdefs.h
21197
21198
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21200 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21201 if ${ac_cv_os_cray+:} false; then :
21202 $as_echo_n "(cached) " >&6
21203 else
21204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21205 /* end confdefs.h. */
21206 #if defined CRAY && ! defined CRAY2
21207 webecray
21208 #else
21209 wenotbecray
21210 #endif
21211
21212 _ACEOF
21213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21214 $EGREP "webecray" >/dev/null 2>&1; then :
21215 ac_cv_os_cray=yes
21216 else
21217 ac_cv_os_cray=no
21218 fi
21219 rm -f conftest*
21220
21221 fi
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21223 $as_echo "$ac_cv_os_cray" >&6; }
21224 if test $ac_cv_os_cray = yes; then
21225 for ac_func in _getb67 GETB67 getb67; do
21226 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21227 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21228 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21229
21230 cat >>confdefs.h <<_ACEOF
21231 #define CRAY_STACKSEG_END $ac_func
21232 _ACEOF
21233
21234 break
21235 fi
21236
21237 done
21238 fi
21239
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21241 $as_echo_n "checking stack direction for C alloca... " >&6; }
21242 if ${ac_cv_c_stack_direction+:} false; then :
21243 $as_echo_n "(cached) " >&6
21244 else
21245 if test "$cross_compiling" = yes; then :
21246 ac_cv_c_stack_direction=0
21247 else
21248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21249 /* end confdefs.h. */
21250 $ac_includes_default
21251 int
21252 find_stack_direction (int *addr, int depth)
21253 {
21254 int dir, dummy = 0;
21255 if (! addr)
21256 addr = &dummy;
21257 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
21258 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
21259 return dir + dummy;
21260 }
21261
21262 int
21263 main (int argc, char **argv)
21264 {
21265 return find_stack_direction (0, argc + !argv + 20) < 0;
21266 }
21267 _ACEOF
21268 if ac_fn_c_try_run "$LINENO"; then :
21269 ac_cv_c_stack_direction=1
21270 else
21271 ac_cv_c_stack_direction=-1
21272 fi
21273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21274 conftest.$ac_objext conftest.beam conftest.$ac_ext
21275 fi
21276
21277 fi
21278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21279 $as_echo "$ac_cv_c_stack_direction" >&6; }
21280 cat >>confdefs.h <<_ACEOF
21281 #define STACK_DIRECTION $ac_cv_c_stack_direction
21282 _ACEOF
21283
21284
21285 fi
21286
21287
21288 old_LDFLAGS=$LDFLAGS
21289 LDFLAGS="$LDFLAGS -L/usr/ucblib/"
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca in -lucb" >&5
21291 $as_echo_n "checking for alloca in -lucb... " >&6; }
21292 if ${ac_cv_lib_ucb_alloca+:} false; then :
21293 $as_echo_n "(cached) " >&6
21294 else
21295 ac_check_lib_save_LIBS=$LIBS
21296 LIBS="-lucb $LIBS"
21297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21298 /* end confdefs.h. */
21299
21300 /* Override any GCC internal prototype to avoid an error.
21301 Use char because int might match the return type of a GCC
21302 builtin and then its argument prototype would still apply. */
21303 #ifdef __cplusplus
21304 extern "C"
21305 #endif
21306 char alloca ();
21307 int
21308 main ()
21309 {
21310 return alloca ();
21311 ;
21312 return 0;
21313 }
21314 _ACEOF
21315 if ac_fn_c_try_link "$LINENO"; then :
21316 ac_cv_lib_ucb_alloca=yes
21317 else
21318 ac_cv_lib_ucb_alloca=no
21319 fi
21320 rm -f core conftest.err conftest.$ac_objext \
21321 conftest$ac_exeext conftest.$ac_ext
21322 LIBS=$ac_check_lib_save_LIBS
21323 fi
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucb_alloca" >&5
21325 $as_echo "$ac_cv_lib_ucb_alloca" >&6; }
21326 if test "x$ac_cv_lib_ucb_alloca" = xyes; then :
21327 cat >>confdefs.h <<_ACEOF
21328 #define HAVE_LIBUCB 1
21329 _ACEOF
21330
21331 LIBS="-lucb $LIBS"
21332
21333 fi
21334
21335 LDFLAGS=$old_LDFLAGS
21336
21337 if test $ac_cv_c_compiler_gnu = yes; then
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
21339 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
21340 if ${ac_cv_prog_gcc_traditional+:} false; then :
21341 $as_echo_n "(cached) " >&6
21342 else
21343 ac_pattern="Autoconf.*'x'"
21344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21345 /* end confdefs.h. */
21346 #include <sgtty.h>
21347 Autoconf TIOCGETP
21348 _ACEOF
21349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21350 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21351 ac_cv_prog_gcc_traditional=yes
21352 else
21353 ac_cv_prog_gcc_traditional=no
21354 fi
21355 rm -f conftest*
21356
21357
21358 if test $ac_cv_prog_gcc_traditional = no; then
21359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21360 /* end confdefs.h. */
21361 #include <termio.h>
21362 Autoconf TCGETA
21363 _ACEOF
21364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21365 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21366 ac_cv_prog_gcc_traditional=yes
21367 fi
21368 rm -f conftest*
21369
21370 fi
21371 fi
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
21373 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21374 if test $ac_cv_prog_gcc_traditional = yes; then
21375 CC="$CC -traditional"
21376 fi
21377 fi
21378
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21380 $as_echo_n "checking return type of signal handlers... " >&6; }
21381 if ${ac_cv_type_signal+:} false; then :
21382 $as_echo_n "(cached) " >&6
21383 else
21384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21385 /* end confdefs.h. */
21386 #include <sys/types.h>
21387 #include <signal.h>
21388
21389 int
21390 main ()
21391 {
21392 return *(signal (0, 0)) (0) == 1;
21393 ;
21394 return 0;
21395 }
21396 _ACEOF
21397 if ac_fn_c_try_compile "$LINENO"; then :
21398 ac_cv_type_signal=int
21399 else
21400 ac_cv_type_signal=void
21401 fi
21402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21403 fi
21404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21405 $as_echo "$ac_cv_type_signal" >&6; }
21406
21407 cat >>confdefs.h <<_ACEOF
21408 #define RETSIGTYPE $ac_cv_type_signal
21409 _ACEOF
21410
21411
21412 for ac_func in vprintf
21413 do :
21414 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21415 if test "x$ac_cv_func_vprintf" = xyes; then :
21416 cat >>confdefs.h <<_ACEOF
21417 #define HAVE_VPRINTF 1
21418 _ACEOF
21419
21420 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21421 if test "x$ac_cv_func__doprnt" = xyes; then :
21422
21423 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
21424
21425 fi
21426
21427 fi
21428 done
21429
21430
21431
21432 for ac_func in bcopy crypt ctime_r fdatasync fgetspent flock fpathconf freeaddrinfo fsync futimes getifaddrs getpgid getpgrp gmtime_r localtime_r mkdtemp nl_langinfo
21433 do :
21434 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21435 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21436 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21437 cat >>confdefs.h <<_ACEOF
21438 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21439 _ACEOF
21440
21441 fi
21442 done
21443
21444
21445 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
21446 if test "x$ac_cv_func_gai_strerror" = xyes; then :
21447
21448 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
21449
21450 else
21451 LIB_OBJS="$LIB_OBJS glibc-gai_strerror.o"
21452
21453 fi
21454
21455
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21457 $as_echo_n "checking for iconv... " >&6; }
21458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21459 /* end confdefs.h. */
21460 #ifdef HAVE_STDDEF_H
21461 # include <stddef.h>
21462 #endif
21463 #ifdef HAVE_STDLIB_H
21464 # include <stdlib.h>
21465 #endif
21466 #ifdef HAVE_SYS_TYPES_H
21467 # include <sys/types.h>
21468 #endif
21469 #ifdef HAVE_ICONV_H
21470 # include <iconv.h>
21471 #endif
21472
21473 int
21474 main ()
21475 {
21476
21477 size_t res, in_len = 0, out_len = 0;
21478 char *in = NULL;
21479 char *out = NULL;
21480 res = iconv((iconv_t)-1, &in, &in_len, &out, &out_len);
21481
21482 ;
21483 return 0;
21484 }
21485 _ACEOF
21486 if ac_fn_c_try_link "$LINENO"; then :
21487
21488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21489 $as_echo "yes" >&6; }
21490
21491 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21492
21493
21494 else
21495
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21497 $as_echo "no" >&6; }
21498
21499
21500 fi
21501 rm -f core conftest.err conftest.$ac_objext \
21502 conftest$ac_exeext conftest.$ac_ext
21503
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for idn2_to_ascii_8z" >&5
21505 $as_echo_n "checking for idn2_to_ascii_8z... " >&6; }
21506 old_libs=$LIBS
21507 LIBS="-lidn2 $LIBS"
21508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21509 /* end confdefs.h. */
21510
21511 #include <sys/types.h>
21512 #ifdef HAVE_IDN2_H
21513 # include <idn2.h>
21514 #endif
21515
21516 int
21517 main ()
21518 {
21519
21520 int flags = 0, res = 0;
21521 const char *input = NULL;
21522 char *output = NULL;
21523 res = idn2_to_ascii_8z(input, &output, flags);
21524
21525 ;
21526 return 0;
21527 }
21528 _ACEOF
21529 if ac_fn_c_try_link "$LINENO"; then :
21530
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21532 $as_echo "yes" >&6; }
21533
21534 $as_echo "#define HAVE_IDN2_TO_ASCII_8Z 1" >>confdefs.h
21535
21536 MAIN_LIBS="$MAIN_LIBS -lidn2"
21537 ac_orig_libs="$ac_orig_libs -lidn2"
21538 SHARED_MODULE_LIBS="$SHARED_MODULE_LIBS -lidn2"
21539
21540 else
21541
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21543 $as_echo "no" >&6; }
21544 LIBS=$old_libs
21545
21546
21547 fi
21548 rm -f core conftest.err conftest.$ac_objext \
21549 conftest$ac_exeext conftest.$ac_ext
21550
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for idna_to_ascii_8z" >&5
21552 $as_echo_n "checking for idna_to_ascii_8z... " >&6; }
21553 old_libs=$LIBS
21554 LIBS="-lidn $LIBS"
21555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21556 /* end confdefs.h. */
21557
21558 #include <sys/types.h>
21559 #ifdef HAVE_IDNA_H
21560 # include <idna.h>
21561 #endif
21562
21563 int
21564 main ()
21565 {
21566
21567 int flags = 0, res = 0;
21568 const char *input = NULL;
21569 char *output = NULL;
21570 res = idna_to_ascii_8z(input, &output, flags);
21571
21572 ;
21573 return 0;
21574 }
21575 _ACEOF
21576 if ac_fn_c_try_link "$LINENO"; then :
21577
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21579 $as_echo "yes" >&6; }
21580
21581 $as_echo "#define HAVE_IDNA_TO_ASCII_8Z 1" >>confdefs.h
21582
21583 MAIN_LIBS="$MAIN_LIBS -lidn"
21584 ac_orig_libs="$ac_orig_libs -lidn"
21585 SHARED_MODULE_LIBS="$SHARED_MODULE_LIBS -lidn"
21586
21587 else
21588
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21590 $as_echo "no" >&6; }
21591 LIBS=$old_libs
21592
21593
21594 fi
21595 rm -f core conftest.err conftest.$ac_objext \
21596 conftest$ac_exeext conftest.$ac_ext
21597
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5
21599 $as_echo_n "checking for dirfd... " >&6; }
21600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21601 /* end confdefs.h. */
21602 #ifdef HAVE_STDDEF_H
21603 # include <stddef.h>
21604 #endif
21605 #ifdef HAVE_STDLIB_H
21606 # include <stdlib.h>
21607 #endif
21608 #ifdef HAVE_STDIO_H
21609 # include <stdio.h>
21610 #endif
21611 #ifdef HAVE_SYS_TYPES_H
21612 # include <sys/types.h>
21613 #endif
21614 #if HAVE_DIRENT_H
21615 # include <dirent.h>
21616 #endif
21617
21618 int
21619 main ()
21620 {
21621
21622 DIR *dirh = NULL;
21623 int fd;
21624
21625 fd = dirfd(dirh);
21626
21627 ;
21628 return 0;
21629 }
21630 _ACEOF
21631 if ac_fn_c_try_link "$LINENO"; then :
21632
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21634 $as_echo "yes" >&6; }
21635
21636 $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
21637
21638
21639 else
21640
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21642 $as_echo "no" >&6; }
21643
21644
21645 fi
21646 rm -f core conftest.err conftest.$ac_objext \
21647 conftest$ac_exeext conftest.$ac_ext
21648
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
21650 $as_echo_n "checking for getaddrinfo... " >&6; }
21651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21652 /* end confdefs.h. */
21653 #ifdef HAVE_STDDEF_H
21654 # include <stddef.h>
21655 #endif
21656 #ifdef HAVE_STDLIB_H
21657 # include <stdlib.h>
21658 #endif
21659 #ifdef HAVE_STDIO_H
21660 # include <stdio.h>
21661 #endif
21662 #if HAVE_SYS_TYPES_H
21663 # include <sys/types.h>
21664 #endif
21665 #if HAVE_SYS_SOCKET_H
21666 # include <sys/socket.h>
21667 #endif
21668 #if HAVE_NETDB_H
21669 # include <netdb.h>
21670 #endif
21671
21672 int
21673 main ()
21674 {
21675
21676 getaddrinfo(NULL, NULL, NULL, NULL);
21677
21678 ;
21679 return 0;
21680 }
21681 _ACEOF
21682 if ac_fn_c_try_link "$LINENO"; then :
21683
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21685 $as_echo "yes" >&6; }
21686
21687 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
21688
21689
21690 else
21691
21692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21693 $as_echo "no" >&6; }
21694
21695
21696 fi
21697 rm -f core conftest.err conftest.$ac_objext \
21698 conftest$ac_exeext conftest.$ac_ext
21699
21700 for ac_func in getcwd getenv getgrouplist getgroups getgrset gethostbyname2 gethostname getnameinfo
21701 do :
21702 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21703 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21704 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21705 cat >>confdefs.h <<_ACEOF
21706 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21707 _ACEOF
21708
21709 fi
21710 done
21711
21712 for ac_func in gettimeofday hstrerror inet_aton inet_ntop inet_pton initgroups
21713 do :
21714 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21715 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21716 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21717 cat >>confdefs.h <<_ACEOF
21718 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21719 _ACEOF
21720
21721 fi
21722 done
21723
21724 for ac_func in loginrestrictions
21725 do :
21726 ac_fn_c_check_func "$LINENO" "loginrestrictions" "ac_cv_func_loginrestrictions"
21727 if test "x$ac_cv_func_loginrestrictions" = xyes; then :
21728 cat >>confdefs.h <<_ACEOF
21729 #define HAVE_LOGINRESTRICTIONS 1
21730 _ACEOF
21731
21732 fi
21733 done
21734
21735 for ac_func in explicit_bzero memcpy mempcpy memset_s mkdir mkstemp mlock mlockall munlock munlockall
21736 do :
21737 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21738 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21739 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21740 cat >>confdefs.h <<_ACEOF
21741 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21742 _ACEOF
21743
21744 fi
21745 done
21746
21747 for ac_func in pathconf posix_fadvise pread prctl putenv pwrite random regcomp rmdir select setgroups socket srandom statfs strchr strcoll strerror timingsafe_bcmp
21748 do :
21749 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21750 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21751 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21752 cat >>confdefs.h <<_ACEOF
21753 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21754 _ACEOF
21755
21756 fi
21757 done
21758
21759 for ac_func in strlcat strlcpy strsep strtod strtof strtol strtoll strtoull setprotoent setspent endprotoent
21760 do :
21761 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21762 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21763 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21764 cat >>confdefs.h <<_ACEOF
21765 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21766 _ACEOF
21767
21768 fi
21769 done
21770
21771 # __snprintf and __vsnprintf are only on solaris and _really_ broken there.
21772 for ac_func in vsnprintf snprintf
21773 do :
21774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21775 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21776 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21777 cat >>confdefs.h <<_ACEOF
21778 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21779 _ACEOF
21780
21781 fi
21782 done
21783
21784 if test x"$ac_cv_func_vsnprintf" != xyes || test x"$ac_cv_func_snprintf" != xyes
21785 then
21786 for ac_func in fconvert fcvt
21787 do :
21788 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21789 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21790 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21791 cat >>confdefs.h <<_ACEOF
21792 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21793 _ACEOF
21794
21795 fi
21796 done
21797
21798 for ac_header in floatingpoint.h
21799 do :
21800 ac_fn_c_check_header_mongrel "$LINENO" "floatingpoint.h" "ac_cv_header_floatingpoint_h" "$ac_includes_default"
21801 if test "x$ac_cv_header_floatingpoint_h" = xyes; then :
21802 cat >>confdefs.h <<_ACEOF
21803 #define HAVE_FLOATINGPOINT_H 1
21804 _ACEOF
21805
21806 fi
21807
21808 done
21809
21810 fi
21811 for ac_func in setsid setgroupent seteuid setegid setenv setpgid siginterrupt
21812 do :
21813 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21814 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21815 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21816 cat >>confdefs.h <<_ACEOF
21817 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21818 _ACEOF
21819
21820 fi
21821 done
21822
21823 for ac_func in tzset uname unsetenv
21824 do :
21825 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21826 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21827 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21828 cat >>confdefs.h <<_ACEOF
21829 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21830 _ACEOF
21831
21832 fi
21833 done
21834
21835
21836 ac_fn_c_check_func "$LINENO" "setpassent" "ac_cv_func_setpassent"
21837 if test "x$ac_cv_func_setpassent" = xyes; then :
21838 case "$target_os:$enable_force_setpassent" in
21839 *freebsd[23]\.[0-3]*:)
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling broken FreeBSD setpassent()" >&5
21841 $as_echo "$as_me: WARNING: Disabling broken FreeBSD setpassent()" >&2;}
21842 ;;
21843 *:no) ;;
21844 *)
21845 $as_echo "#define HAVE_SETPASSENT 1" >>confdefs.h
21846 ;;
21847 esac
21848 fi
21849
21850
21851 if test x"$enable_ctrls" = xyes; then
21852 for ac_func in getpeereid getpeerucred
21853 do :
21854 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21855 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21856 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21857 cat >>confdefs.h <<_ACEOF
21858 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21859 _ACEOF
21860
21861 fi
21862 done
21863
21864 ac_static_modules="$ac_static_modules mod_ctrls.o"
21865 ac_build_static_modules="$ac_build_static_modules modules/mod_ctrls.o"
21866 fi
21867
21868 if test x"$enable_nls" = xyes; then
21869 ac_static_modules="$ac_static_modules mod_lang.o"
21870 ac_build_static_modules="$ac_build_static_modules modules/mod_lang.o"
21871
21872 if test x"$ifsession_requested" = xtrue; then
21873 ac_static_modules=`echo "$ac_static_modules" | sed -e 's/mod_ifsession\.o//g'`
21874 ac_static_modules="$ac_static_modules mod_ifsession.o"
21875
21876 ac_build_static_modules=`echo "$ac_build_static_modules" | sed -e 's/modules\/mod_ifsession\.o//g'`
21877 ac_build_static_modules="$ac_build_static_modules modules/mod_ifsession.o";
21878 fi
21879 fi
21880
21881 ac_fn_c_check_member "$LINENO" "struct cmsgcred" "cmcred_uid" "ac_cv_member_struct_cmsgcred_cmcred_uid" "
21882 #if HAVE_SYS_TYPES_H
21883 # include <sys/types.h>
21884 #endif
21885 #if HAVE_SYS_SOCKET_H
21886 # include <sys/socket.h>
21887 #endif
21888 #if HAVE_SYS_UIO_H
21889 # include <sys/uio.h>
21890 #endif
21891
21892 "
21893 if test "x$ac_cv_member_struct_cmsgcred_cmcred_uid" = xyes; then :
21894
21895 $as_echo "#define HAVE_STRUCT_CMSGCRED 1" >>confdefs.h
21896
21897 fi
21898
21899
21900 ac_fn_c_check_member "$LINENO" "struct sockcred" "sc_uid" "ac_cv_member_struct_sockcred_sc_uid" "
21901 #if HAVE_SYS_TYPES_H
21902 # include <sys/types.h>
21903 #endif
21904 #if HAVE_SYS_SOCKET_H
21905 # include <sys/socket.h>
21906 #endif
21907 #if HAVE_SYS_UIO_H
21908 # include <sys/uio.h>
21909 #endif
21910
21911 "
21912 if test "x$ac_cv_member_struct_sockcred_sc_uid" = xyes; then :
21913
21914 $as_echo "#define HAVE_STRUCT_SOCKCRED 1" >>confdefs.h
21915
21916 fi
21917
21918
21919 # See:
21920 # https://github.com/proftpd/proftpd/issues/75
21921 ac_fn_c_check_member "$LINENO" "struct sockpeercred" "uid" "ac_cv_member_struct_sockpeercred_uid" "
21922 #if HAVE_SYS_TYPES_H
21923 # include <sys/types.h>
21924 #endif
21925 #if HAVE_SYS_SOCKET_H
21926 # include <sys/socket.h>
21927 #endif
21928 #if HAVE_SYS_UIO_H
21929 # include <sys/uio.h>
21930 #endif
21931
21932 "
21933 if test "x$ac_cv_member_struct_sockpeercred_uid" = xyes; then :
21934
21935 $as_echo "#define HAVE_STRUCT_SOCKPEERCRED 1" >>confdefs.h
21936
21937 fi
21938
21939
21940 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
21941 #if HAVE_SYS_TYPES_H
21942 # include <sys/types.h>
21943 #endif
21944 #if HAVE_SYS_SOCKET_H
21945 # include <sys/socket.h>
21946 #endif
21947 #if HAVE_NETINET_IN_H
21948 # include <netinet/in.h>
21949 #endif
21950
21951 "
21952 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
21953
21954 $as_echo "#define SIN_LEN 1" >>confdefs.h
21955
21956 fi
21957
21958
21959 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
21960 #if HAVE_SYS_TYPES_H
21961 # include <sys/types.h>
21962 #endif
21963 #if HAVE_SYS_PARAM_H
21964 # include <sys/param.h>
21965 #endif
21966 #if HAVE_SYS_MOUNT_H
21967 # include <sys/mount.h>
21968 #endif
21969 #if HAVE_SYS_VFS_H
21970 # include <sys/vfs.h>
21971 #endif
21972 #if HAVE_SYS_STATFS_H
21973 # include <sys/statfs.h>
21974 #endif
21975
21976 "
21977 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
21978
21979 $as_echo "#define HAVE_STATFS_F_FSTYPENAME 1" >>confdefs.h
21980
21981 fi
21982
21983
21984 ac_fn_c_check_member "$LINENO" "struct statfs" "f_type" "ac_cv_member_struct_statfs_f_type" "
21985 #if HAVE_SYS_TYPES_H
21986 # include <sys/types.h>
21987 #endif
21988 #if HAVE_SYS_PARAM_H
21989 # include <sys/param.h>
21990 #endif
21991 #if HAVE_SYS_MOUNT_H
21992 # include <sys/mount.h>
21993 #endif
21994 #if HAVE_SYS_VFS_H
21995 # include <sys/vfs.h>
21996 #endif
21997 #if HAVE_SYS_STATFS_H
21998 # include <sys/statfs.h>
21999 #endif
22000
22001 "
22002 if test "x$ac_cv_member_struct_statfs_f_type" = xyes; then :
22003
22004 $as_echo "#define HAVE_STATFS_F_TYPE 1" >>confdefs.h
22005
22006 fi
22007
22008
22009 if test x"$enable_largefile" = xno; then
22010
22011 $as_echo "#define PR_USE_LARGEFILES 0" >>confdefs.h
22012
22013 else
22014
22015 $as_echo "#define PR_USE_LARGEFILES 1" >>confdefs.h
22016
22017 fi
22018
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct addrinfo is defined" >&5
22020 $as_echo_n "checking whether struct addrinfo is defined... " >&6; }
22021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22022 /* end confdefs.h. */
22023 #include <stdio.h>
22024 #ifdef HAVE_UNISTD_H
22025 # include <unistd.h>
22026 #endif
22027 #include <sys/types.h>
22028 #include <sys/socket.h>
22029 #include <netdb.h>
22030
22031 int
22032 main ()
22033 {
22034 do {
22035 struct addrinfo a;
22036 (void) a.ai_flags;
22037 } while(0)
22038
22039 ;
22040 return 0;
22041 }
22042 _ACEOF
22043 if ac_fn_c_try_compile "$LINENO"; then :
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22045 $as_echo "yes" >&6; }
22046
22047 $as_echo "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
22048
22049
22050 else
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22052 $as_echo "no" >&6; }
22053
22054 fi
22055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22056
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_storage is defined" >&5
22058 $as_echo_n "checking whether struct sockaddr_storage is defined... " >&6; }
22059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22060 /* end confdefs.h. */
22061 #include <stdio.h>
22062 #ifdef HAVE_UNISTD_H
22063 # include <unistd.h>
22064 #endif
22065 #include <sys/types.h>
22066 #include <sys/socket.h>
22067 #include <netdb.h>
22068
22069 int
22070 main ()
22071 {
22072 do {
22073 struct sockaddr_storage ss;
22074 } while(0)
22075
22076 ;
22077 return 0;
22078 }
22079 _ACEOF
22080 if ac_fn_c_try_compile "$LINENO"; then :
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22082 $as_echo "yes" >&6; }
22083
22084 $as_echo "#define HAVE_STRUCT_SS 1" >>confdefs.h
22085
22086
22087 else
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22089 $as_echo "no" >&6; }
22090
22091 fi
22092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22093
22094
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ss_family is defined" >&5
22096 $as_echo_n "checking whether ss_family is defined... " >&6; }
22097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22098 /* end confdefs.h. */
22099
22100 #include <stdio.h>
22101 #include <unistd.h>
22102 #include <sys/types.h>
22103 #include <sys/socket.h>
22104
22105 int
22106 main ()
22107 {
22108
22109 do {
22110 struct sockaddr_storage a;
22111 (void) a.ss_family;
22112 } while(0)
22113
22114 ;
22115 return 0;
22116 }
22117 _ACEOF
22118 if ac_fn_c_try_compile "$LINENO"; then :
22119
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22121 $as_echo "yes" >&6; }
22122
22123 $as_echo "#define HAVE_SS_FAMILY 1" >>confdefs.h
22124
22125
22126 else
22127
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22129 $as_echo "no" >&6; }
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __ss_family is defined" >&5
22131 $as_echo_n "checking whether __ss_family is defined... " >&6; }
22132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22133 /* end confdefs.h. */
22134
22135 #include <stdio.h>
22136 #include <unistd.h>
22137 #include <sys/types.h>
22138 #include <sys/socket.h>
22139
22140 int
22141 main ()
22142 {
22143
22144 do {
22145 struct sockaddr_storage a;
22146 (void) a.__ss_family;
22147 } while(0)
22148
22149 ;
22150 return 0;
22151 }
22152 _ACEOF
22153 if ac_fn_c_try_compile "$LINENO"; then :
22154
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22156 $as_echo "yes" >&6; }
22157
22158 $as_echo "#define HAVE___SS_FAMILY 1" >>confdefs.h
22159
22160
22161 else
22162
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22164 $as_echo "no" >&6; }
22165
22166 fi
22167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22168
22169 fi
22170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22171
22172
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ss_len is defined" >&5
22174 $as_echo_n "checking whether ss_len is defined... " >&6; }
22175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22176 /* end confdefs.h. */
22177
22178 #include <stdio.h>
22179 #include <unistd.h>
22180 #include <sys/types.h>
22181 #include <sys/socket.h>
22182
22183 int
22184 main ()
22185 {
22186
22187 do {
22188 struct sockaddr_storage a;
22189 (void) a.ss_len;
22190 } while(0)
22191
22192 ;
22193 return 0;
22194 }
22195 _ACEOF
22196 if ac_fn_c_try_compile "$LINENO"; then :
22197
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22199 $as_echo "yes" >&6; }
22200
22201 $as_echo "#define HAVE_SS_LEN 1" >>confdefs.h
22202
22203
22204 else
22205
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22207 $as_echo "no" >&6; }
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __ss_len is defined" >&5
22209 $as_echo_n "checking whether __ss_len is defined... " >&6; }
22210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22211 /* end confdefs.h. */
22212
22213 #include <stdio.h>
22214 #include <unistd.h>
22215 #include <sys/types.h>
22216 #include <sys/socket.h>
22217
22218 int
22219 main ()
22220 {
22221
22222 do {
22223 struct sockaddr_storage a;
22224 (void) a.__ss_len;
22225 } while(0)
22226
22227 ;
22228 return 0;
22229 }
22230 _ACEOF
22231 if ac_fn_c_try_compile "$LINENO"; then :
22232
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22234 $as_echo "yes" >&6; }
22235
22236 $as_echo "#define HAVE___SS_LEN 1" >>confdefs.h
22237
22238
22239 else
22240
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22242 $as_echo "no" >&6; }
22243
22244 fi
22245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22246
22247 fi
22248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22249
22250
22251 for ac_header in sys/acl.h acl/libacl.h
22252 do :
22253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22254 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22255 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22256 cat >>confdefs.h <<_ACEOF
22257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22258 _ACEOF
22259
22260 fi
22261
22262 done
22263
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perm_copy_fd in -lacl" >&5
22265 $as_echo_n "checking for perm_copy_fd in -lacl... " >&6; }
22266 if ${ac_cv_lib_acl_perm_copy_fd+:} false; then :
22267 $as_echo_n "(cached) " >&6
22268 else
22269 ac_check_lib_save_LIBS=$LIBS
22270 LIBS="-lacl $LIBS"
22271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22272 /* end confdefs.h. */
22273
22274 /* Override any GCC internal prototype to avoid an error.
22275 Use char because int might match the return type of a GCC
22276 builtin and then its argument prototype would still apply. */
22277 #ifdef __cplusplus
22278 extern "C"
22279 #endif
22280 char perm_copy_fd ();
22281 int
22282 main ()
22283 {
22284 return perm_copy_fd ();
22285 ;
22286 return 0;
22287 }
22288 _ACEOF
22289 if ac_fn_c_try_link "$LINENO"; then :
22290 ac_cv_lib_acl_perm_copy_fd=yes
22291 else
22292 ac_cv_lib_acl_perm_copy_fd=no
22293 fi
22294 rm -f core conftest.err conftest.$ac_objext \
22295 conftest$ac_exeext conftest.$ac_ext
22296 LIBS=$ac_check_lib_save_LIBS
22297 fi
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_perm_copy_fd" >&5
22299 $as_echo "$ac_cv_lib_acl_perm_copy_fd" >&6; }
22300 if test "x$ac_cv_lib_acl_perm_copy_fd" = xyes; then :
22301
22302 $as_echo "#define HAVE_LIBACL 1" >>confdefs.h
22303
22304
22305 fi
22306
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which POSIX ACL implementation to use" >&5
22308 $as_echo_n "checking which POSIX ACL implementation to use... " >&6; }
22309 if ${pr_cv_func_facl+:} false; then :
22310 $as_echo_n "(cached) " >&6
22311 else
22312 pr_cv_func_facl="none"
22313
22314 if test "$pr_cv_func_facl" = "none"; then
22315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22316 /* end confdefs.h. */
22317 #include <sys/types.h>
22318 #ifdef HAVE_SYS_ACL_H
22319 # include <sys/acl.h>
22320 #endif
22321 #ifdef HAVE_ACL_LIBACL_H
22322 # include <acl/libacl.h>
22323 #endif
22324
22325 int
22326 main ()
22327 {
22328 acl_permset_t permset;
22329 /* On BSD, ACL_READ_DATA is a #define. */
22330 #ifdef ACL_READ_DATA
22331 acl_perm_t perm = ACL_READ_DATA;
22332 #else
22333 # error "ACL_READ_DATA not #defined on this platform"
22334 #endif /* ACL_READ_DATA */
22335 (void)acl_get_perm_np(permset, perm);
22336
22337 ;
22338 return 0;
22339 }
22340 _ACEOF
22341 if ac_fn_c_try_link "$LINENO"; then :
22342 pr_cv_func_facl="BSD"
22343 fi
22344 rm -f core conftest.err conftest.$ac_objext \
22345 conftest$ac_exeext conftest.$ac_ext
22346 fi
22347
22348 if test "$pr_cv_func_facl" = "none"; then
22349 old_ldflags=$LDFLAGS
22350 old_libs=$LIBS
22351 new_ldflags=`echo "$LDFLAGS" | sed -e 's/-Wl\.*\/lib //g'`
22352 LDFLAGS="-L\$(top_builddir)/lib $new_ldflags"
22353 LIBS="-lacl $LIBS"
22354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22355 /* end confdefs.h. */
22356 #include <sys/types.h>
22357 #ifdef HAVE_SYS_ACL_H
22358 # include <sys/acl.h>
22359 #endif
22360 #ifdef HAVE_ACL_LIBACL_H
22361 # include <acl/libacl.h>
22362 #endif
22363
22364 int
22365 main ()
22366 {
22367 acl_permset_t permset;
22368 acl_perm_t perm;
22369 (void)acl_get_perm(permset, perm);
22370
22371 ;
22372 return 0;
22373 }
22374 _ACEOF
22375 if ac_fn_c_try_link "$LINENO"; then :
22376 pr_cv_func_facl="Linux"
22377 fi
22378 rm -f core conftest.err conftest.$ac_objext \
22379 conftest$ac_exeext conftest.$ac_ext
22380 LDFLAGS=$old_ldflags
22381 LIBS=$old_libs
22382 fi
22383
22384 if test "$pr_cv_func_facl" = "none"; then
22385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22386 /* end confdefs.h. */
22387 #include <sys/types.h>
22388 #ifdef HAVE_SYS_ACL_H
22389 # include <sys/acl.h>
22390 #endif
22391 #ifdef HAVE_ACL_LIBACL_H
22392 # include <acl/libacl.h>
22393 #endif
22394
22395 int
22396 main ()
22397 {
22398 acl_entry_t ae;
22399 /* On Mac, ACL_READ_DATA is an enum value. */
22400 acl_perm_t perm = ACL_READ_DATA;
22401 (void)acl_get_qualifier(ae);
22402
22403 ;
22404 return 0;
22405 }
22406 _ACEOF
22407 if ac_fn_c_try_link "$LINENO"; then :
22408 pr_cv_func_facl="MacOSX"
22409 fi
22410 rm -f core conftest.err conftest.$ac_objext \
22411 conftest$ac_exeext conftest.$ac_ext
22412 fi
22413
22414 if test "$pr_cv_func_facl" = "none"; then
22415 old_ldflags=$LDFLAGS
22416 LDFLAGS="-lsec $LDFLAGS"
22417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22418 /* end confdefs.h. */
22419 #ifdef HAVE_STDDEF_H
22420 # include <stddef.h>
22421 #endif
22422 #ifdef HAVE_STDLIB_H
22423 # include <stdlib.h>
22424 #endif
22425 #ifdef HAVE_SYS_TYPES_H
22426 # include <sys/types.h>
22427 #endif
22428 #ifdef HAVE_SYS_ACL_H
22429 # include <sys/acl.h>
22430 #endif
22431 #ifdef HAVE_ACL_LIBACL_H
22432 # include <acl/libacl.h>
22433 #endif
22434
22435 int
22436 main ()
22437 {
22438 aclent_t ae;
22439 (void)aclcheck(&ae,0,NULL);
22440
22441 ;
22442 return 0;
22443 }
22444 _ACEOF
22445 if ac_fn_c_try_link "$LINENO"; then :
22446 pr_cv_func_facl="Solaris"
22447 fi
22448 rm -f core conftest.err conftest.$ac_objext \
22449 conftest$ac_exeext conftest.$ac_ext
22450 LDFLAGS=$old_ldflags
22451 fi
22452
22453 fi
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_func_facl" >&5
22455 $as_echo "$pr_cv_func_facl" >&6; }
22456
22457 if test "$pr_cv_func_facl" != "none"; then
22458
22459 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
22460
22461
22462 case "$pr_cv_func_facl" in
22463 "BSD")
22464
22465 $as_echo "#define HAVE_BSD_POSIX_ACL 1" >>confdefs.h
22466
22467 ;;
22468
22469 "Linux")
22470
22471 $as_echo "#define HAVE_LINUX_POSIX_ACL 1" >>confdefs.h
22472
22473 ;;
22474
22475 "MacOSX")
22476
22477 $as_echo "#define HAVE_MACOSX_POSIX_ACL 1" >>confdefs.h
22478
22479 ;;
22480
22481 "Solaris")
22482
22483 $as_echo "#define HAVE_LIBSEC 1" >>confdefs.h
22484
22485
22486 $as_echo "#define HAVE_SOLARIS_POSIX_ACL 1" >>confdefs.h
22487
22488 ;;
22489 esac
22490 fi
22491
22492 if test x"$enable_facl" = xyes ; then
22493
22494 $as_echo "#define PR_USE_FACL 1" >>confdefs.h
22495
22496
22497 case "$pr_cv_func_facl" in
22498 "Linux")
22499 ac_build_addl_libs="-lacl $ac_build_addl_libs"
22500 ;;
22501
22502 "Solaris")
22503 ac_build_addl_libs="-lsec $ac_build_addl_libs"
22504 ;;
22505 esac
22506 fi
22507
22508 if test x"$enable_ipv6" != xno ; then
22509
22510 $as_echo "#define PR_USE_IPV6 1" >>confdefs.h
22511
22512 fi
22513
22514 if test x"$enable_sendfile" != xno ; then
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which sendfile() implementation to use" >&5
22516 $as_echo_n "checking which sendfile() implementation to use... " >&6; }
22517 if ${pr_cv_func_sendfile+:} false; then :
22518 $as_echo_n "(cached) " >&6
22519 else
22520 pr_cv_func_sendfile="none"
22521
22522 if test "$pr_cv_func_sendfile" = "none"; then
22523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22524 /* end confdefs.h. */
22525 #include <sys/types.h>
22526 #include <sys/sendfile.h>
22527 #include <unistd.h>
22528
22529 int
22530 main ()
22531 {
22532 int i;
22533 off_t o;
22534 size_t c;
22535 (void)sendfile(i,i,&o,c);
22536
22537 ;
22538 return 0;
22539 }
22540 _ACEOF
22541 if ac_fn_c_try_link "$LINENO"; then :
22542 pr_cv_func_sendfile="Linux"
22543 fi
22544 rm -f core conftest.err conftest.$ac_objext \
22545 conftest$ac_exeext conftest.$ac_ext
22546 fi
22547
22548 if test "$pr_cv_func_sendfile" = "none"; then
22549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22550 /* end confdefs.h. */
22551 #include <sys/types.h>
22552 #include <sys/socket.h>
22553 #include <sys/uio.h>
22554
22555 int
22556 main ()
22557 {
22558 int i;
22559 off_t o;
22560 size_t n;
22561 struct sf_hdtr h;
22562 (void)sendfile(i,i,o,n,&h,&o,i);
22563
22564 ;
22565 return 0;
22566 }
22567 _ACEOF
22568 if ac_fn_c_try_link "$LINENO"; then :
22569 pr_cv_func_sendfile="BSD"
22570 fi
22571 rm -f core conftest.err conftest.$ac_objext \
22572 conftest$ac_exeext conftest.$ac_ext
22573 fi
22574
22575 if test "$pr_cv_func_sendfile" = "none"; then
22576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22577 /* end confdefs.h. */
22578 #include <sys/types.h>
22579 #include <sys/socket.h>
22580
22581 int
22582 main ()
22583 {
22584 uint f;
22585 int h;
22586 struct sf_parms p;
22587 (void)send_file(&(h),&(p),f);
22588
22589 ;
22590 return 0;
22591 }
22592 _ACEOF
22593 if ac_fn_c_try_link "$LINENO"; then :
22594 pr_cv_func_sendfile="AIX"
22595 fi
22596 rm -f core conftest.err conftest.$ac_objext \
22597 conftest$ac_exeext conftest.$ac_ext
22598 fi
22599
22600 if test "$pr_cv_func_sendfile" = "none"; then
22601 old_ldflags=$LDFLAGS
22602 LDFLAGS="-lsendfile $LDFLAGS"
22603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22604 /* end confdefs.h. */
22605 #include <sys/types.h>
22606 #include <sys/sendfile.h>
22607 #include <unistd.h>
22608
22609 int
22610 main ()
22611 {
22612 int i;
22613 off_t o;
22614 size_t c;
22615 (void)sendfile(i,i,&o,c);
22616
22617 ;
22618 return 0;
22619 }
22620 _ACEOF
22621 if ac_fn_c_try_link "$LINENO"; then :
22622 pr_cv_func_sendfile="Solaris"
22623 fi
22624 rm -f core conftest.err conftest.$ac_objext \
22625 conftest$ac_exeext conftest.$ac_ext
22626 LDFLAGS=$old_ldflags
22627 fi
22628
22629 if test "$pr_cv_func_sendfile" = "none"; then
22630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22631 /* end confdefs.h. */
22632 #include <sys/types.h>
22633 #include <sys/socket.h>
22634 #include <sys/uio.h>
22635
22636 int
22637 main ()
22638 {
22639 int i;
22640 off_t o, n;
22641 struct sf_hdtr h;
22642 (void)sendfile(i,i,o,&n,&h,i);
22643
22644 ;
22645 return 0;
22646 }
22647 _ACEOF
22648 if ac_fn_c_try_link "$LINENO"; then :
22649 pr_cv_func_sendfile="MacOSX"
22650 fi
22651 rm -f core conftest.err conftest.$ac_objext \
22652 conftest$ac_exeext conftest.$ac_ext
22653 fi
22654
22655 fi
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pr_cv_func_sendfile" >&5
22657 $as_echo "$pr_cv_func_sendfile" >&6; }
22658
22659
22660 if test x"$pr_cv_func_sendfile" != x"none"; then
22661 if test x"$pr_cv_func_sendfile" != x"AIX"; then
22662
22663 $as_echo "#define HAVE_SENDFILE 1" >>confdefs.h
22664
22665
22666 $as_echo "#define PR_USE_SENDFILE 1" >>confdefs.h
22667
22668 fi
22669 fi
22670
22671 case "$pr_cv_func_sendfile" in
22672 "Linux")
22673 for ac_header in sys/sendfile.h
22674 do :
22675 ac_fn_c_check_header_mongrel "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default"
22676 if test "x$ac_cv_header_sys_sendfile_h" = xyes; then :
22677 cat >>confdefs.h <<_ACEOF
22678 #define HAVE_SYS_SENDFILE_H 1
22679 _ACEOF
22680
22681 fi
22682
22683 done
22684
22685
22686 $as_echo "#define HAVE_LINUX_SENDFILE 1" >>confdefs.h
22687
22688 ;;
22689
22690 "BSD")
22691
22692 $as_echo "#define HAVE_BSD_SENDFILE 1" >>confdefs.h
22693
22694 ;;
22695
22696 "AIX")
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** AIX sendfile support automatically disabled **" >&5
22698 $as_echo "$as_me: WARNING: ** AIX sendfile support automatically disabled **" >&2;}
22699 ;;
22700
22701 "Solaris")
22702 for ac_header in sys/sendfile.h
22703 do :
22704 ac_fn_c_check_header_mongrel "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default"
22705 if test "x$ac_cv_header_sys_sendfile_h" = xyes; then :
22706 cat >>confdefs.h <<_ACEOF
22707 #define HAVE_SYS_SENDFILE_H 1
22708 _ACEOF
22709
22710 fi
22711
22712 done
22713
22714
22715 $as_echo "#define HAVE_SOLARIS_SENDFILE 1" >>confdefs.h
22716
22717 ac_build_addl_libs="-lsendfile $ac_build_addl_libs"
22718 ;;
22719
22720 "MacOSX")
22721
22722 $as_echo "#define HAVE_MACOSX_SENDFILE 1" >>confdefs.h
22723
22724 ;;
22725 esac
22726 fi
22727
22728 if test x"$enable_trace" != xno ; then
22729
22730 $as_echo "#define PR_USE_TRACE 1" >>confdefs.h
22731
22732 fi
22733
22734 if test x"$enable_xattr" != xno ; then
22735 # On Free/Net/OpenBSD, it's sys/extattr.h
22736 ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
22737 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
22738
22739 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
22740
22741
22742 $as_echo "#define PR_USE_XATTR 1" >>confdefs.h
22743
22744
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_delete_link" >&5
22746 $as_echo_n "checking for extattr_delete_link... " >&6; }
22747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22748 /* end confdefs.h. */
22749 #ifdef HAVE_STDDEF_H
22750 # include <stddef.h>
22751 #endif
22752 #ifdef HAVE_STDLIB_H
22753 # include <stdlib.h>
22754 #endif
22755 #ifdef HAVE_SYS_TYPES_H
22756 # include <sys/types.h>
22757 #endif
22758 #ifdef HAVE_SYS_EXTATTR_H
22759 # include <sys/extattr.h>
22760 #endif
22761
22762 int
22763 main ()
22764 {
22765
22766 int res;
22767 int namespace = 0;
22768 const char *path = NULL, name = NULL;
22769 res = extattr_delete_link(path, namespace, name);
22770
22771 ;
22772 return 0;
22773 }
22774 _ACEOF
22775 if ac_fn_c_try_link "$LINENO"; then :
22776
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22778 $as_echo "yes" >&6; }
22779
22780 $as_echo "#define HAVE_EXTATTR_DELETE_LINK 1" >>confdefs.h
22781
22782
22783 else
22784
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22786 $as_echo "no" >&6; }
22787
22788
22789 fi
22790 rm -f core conftest.err conftest.$ac_objext \
22791 conftest$ac_exeext conftest.$ac_ext
22792
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_get_link" >&5
22794 $as_echo_n "checking for extattr_get_link... " >&6; }
22795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22796 /* end confdefs.h. */
22797 #ifdef HAVE_STDDEF_H
22798 # include <stddef.h>
22799 #endif
22800 #ifdef HAVE_STDLIB_H
22801 # include <stdlib.h>
22802 #endif
22803 #ifdef HAVE_SYS_TYPES_H
22804 # include <sys/types.h>
22805 #endif
22806 #ifdef HAVE_SYS_EXTATTR_H
22807 # include <sys/extattr.h>
22808 #endif
22809
22810 int
22811 main ()
22812 {
22813
22814 ssize_t res;
22815 int namespace = 0;
22816 const char *path = NULL, name = NULL;
22817 void *val = NULL;
22818 size_t sz = 0;
22819 res = extattr_get_link(path, namespace, name, val, sz);
22820
22821 ;
22822 return 0;
22823 }
22824 _ACEOF
22825 if ac_fn_c_try_link "$LINENO"; then :
22826
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22828 $as_echo "yes" >&6; }
22829
22830 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
22831
22832
22833 else
22834
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22836 $as_echo "no" >&6; }
22837
22838
22839 fi
22840 rm -f core conftest.err conftest.$ac_objext \
22841 conftest$ac_exeext conftest.$ac_ext
22842
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_list_link" >&5
22844 $as_echo_n "checking for extattr_list_link... " >&6; }
22845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22846 /* end confdefs.h. */
22847 #ifdef HAVE_STDDEF_H
22848 # include <stddef.h>
22849 #endif
22850 #ifdef HAVE_STDLIB_H
22851 # include <stdlib.h>
22852 #endif
22853 #ifdef HAVE_SYS_TYPES_H
22854 # include <sys/types.h>
22855 #endif
22856 #ifdef HAVE_SYS_EXTATTR_H
22857 # include <sys/extattr.h>
22858 #endif
22859
22860 int
22861 main ()
22862 {
22863
22864 ssize_t res;
22865 int namespace = 0;
22866 const char *path = NULL;
22867 void *val = NULL;
22868 size_t sz = 0;
22869 res = extattr_list_link(path, namespace, val, sz);
22870
22871 ;
22872 return 0;
22873 }
22874 _ACEOF
22875 if ac_fn_c_try_link "$LINENO"; then :
22876
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22878 $as_echo "yes" >&6; }
22879
22880 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
22881
22882
22883 else
22884
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22886 $as_echo "no" >&6; }
22887
22888
22889 fi
22890 rm -f core conftest.err conftest.$ac_objext \
22891 conftest$ac_exeext conftest.$ac_ext
22892
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_set_link" >&5
22894 $as_echo_n "checking for extattr_set_link... " >&6; }
22895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22896 /* end confdefs.h. */
22897 #ifdef HAVE_STDDEF_H
22898 # include <stddef.h>
22899 #endif
22900 #ifdef HAVE_STDLIB_H
22901 # include <stdlib.h>
22902 #endif
22903 #ifdef HAVE_SYS_TYPES_H
22904 # include <sys/types.h>
22905 #endif
22906 #ifdef HAVE_SYS_EXTATTR_H
22907 # include <sys/extattr.h>
22908 #endif
22909
22910 int
22911 main ()
22912 {
22913
22914 int res;
22915 int namespace = 0;
22916 const char *path = NULL, name = NULL;
22917 void *val = NULL;
22918 size_t sz = 0;
22919 res = extattr_set_link(path, namespace, name, val, sz);
22920
22921 ;
22922 return 0;
22923 }
22924 _ACEOF
22925 if ac_fn_c_try_link "$LINENO"; then :
22926
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22928 $as_echo "yes" >&6; }
22929
22930 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
22931
22932
22933 else
22934
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22936 $as_echo "no" >&6; }
22937
22938
22939 fi
22940 rm -f core conftest.err conftest.$ac_objext \
22941 conftest$ac_exeext conftest.$ac_ext
22942
22943 fi
22944
22945
22946
22947 # On Linux/MacOSX, it's sys/xattr.h
22948 ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
22949 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
22950
22951 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
22952
22953
22954 $as_echo "#define PR_USE_XATTR 1" >>confdefs.h
22955
22956 for ac_header in attr/xattr.h
22957 do :
22958 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
22959 if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
22960 cat >>confdefs.h <<_ACEOF
22961 #define HAVE_ATTR_XATTR_H 1
22962 _ACEOF
22963
22964 fi
22965
22966 done
22967
22968
22969 # Some platforms need libattr for extended attributes
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
22971 $as_echo_n "checking for setxattr in -lattr... " >&6; }
22972 if ${ac_cv_lib_attr_setxattr+:} false; then :
22973 $as_echo_n "(cached) " >&6
22974 else
22975 ac_check_lib_save_LIBS=$LIBS
22976 LIBS="-lattr $LIBS"
22977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22978 /* end confdefs.h. */
22979
22980 /* Override any GCC internal prototype to avoid an error.
22981 Use char because int might match the return type of a GCC
22982 builtin and then its argument prototype would still apply. */
22983 #ifdef __cplusplus
22984 extern "C"
22985 #endif
22986 char setxattr ();
22987 int
22988 main ()
22989 {
22990 return setxattr ();
22991 ;
22992 return 0;
22993 }
22994 _ACEOF
22995 if ac_fn_c_try_link "$LINENO"; then :
22996 ac_cv_lib_attr_setxattr=yes
22997 else
22998 ac_cv_lib_attr_setxattr=no
22999 fi
23000 rm -f core conftest.err conftest.$ac_objext \
23001 conftest$ac_exeext conftest.$ac_ext
23002 LIBS=$ac_check_lib_save_LIBS
23003 fi
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
23005 $as_echo "$ac_cv_lib_attr_setxattr" >&6; }
23006 if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
23007 cat >>confdefs.h <<_ACEOF
23008 #define HAVE_LIBATTR 1
23009 _ACEOF
23010
23011 LIBS="-lattr $LIBS"
23012
23013 fi
23014
23015
23016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetxattr" >&5
23017 $as_echo_n "checking for lgetxattr... " >&6; }
23018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23019 /* end confdefs.h. */
23020 #ifdef HAVE_STDDEF_H
23021 # include <stddef.h>
23022 #endif
23023 #ifdef HAVE_STDLIB_H
23024 # include <stdlib.h>
23025 #endif
23026 #ifdef HAVE_SYS_TYPES_H
23027 # include <sys/types.h>
23028 #endif
23029 #ifdef HAVE_SYS_XATTR_H
23030 # include <sys/xattr.h>
23031 #endif
23032
23033 int
23034 main ()
23035 {
23036
23037 ssize_t res;
23038 const char *path = NULL, *name = NULL;
23039 void *val = NULL;
23040 size_t sz = 0;
23041 res = lgetxattr(path, name, val, sz);
23042
23043 ;
23044 return 0;
23045 }
23046 _ACEOF
23047 if ac_fn_c_try_link "$LINENO"; then :
23048
23049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23050 $as_echo "yes" >&6; }
23051
23052 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
23053
23054
23055 else
23056
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23058 $as_echo "no" >&6; }
23059
23060
23061 fi
23062 rm -f core conftest.err conftest.$ac_objext \
23063 conftest$ac_exeext conftest.$ac_ext
23064
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llistxattr" >&5
23066 $as_echo_n "checking for llistxattr... " >&6; }
23067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23068 /* end confdefs.h. */
23069 #ifdef HAVE_STDDEF_H
23070 # include <stddef.h>
23071 #endif
23072 #ifdef HAVE_STDLIB_H
23073 # include <stdlib.h>
23074 #endif
23075 #ifdef HAVE_SYS_TYPES_H
23076 # include <sys/types.h>
23077 #endif
23078 #ifdef HAVE_SYS_XATTR_H
23079 # include <sys/xattr.h>
23080 #endif
23081
23082 int
23083 main ()
23084 {
23085
23086 ssize_t res;
23087 const char *path = NULL;
23088 char *names = NUL;
23089 size_t namessz = 0;
23090 res = llistxattr(path, names, namessz);
23091
23092 ;
23093 return 0;
23094 }
23095 _ACEOF
23096 if ac_fn_c_try_link "$LINENO"; then :
23097
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23099 $as_echo "yes" >&6; }
23100
23101 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
23102
23103
23104 else
23105
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23107 $as_echo "no" >&6; }
23108
23109
23110 fi
23111 rm -f core conftest.err conftest.$ac_objext \
23112 conftest$ac_exeext conftest.$ac_ext
23113
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lremovexattr" >&5
23115 $as_echo_n "checking for lremovexattr... " >&6; }
23116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23117 /* end confdefs.h. */
23118 #ifdef HAVE_STDDEF_H
23119 # include <stddef.h>
23120 #endif
23121 #ifdef HAVE_STDLIB_H
23122 # include <stdlib.h>
23123 #endif
23124 #ifdef HAVE_SYS_TYPES_H
23125 # include <sys/types.h>
23126 #endif
23127 #ifdef HAVE_SYS_XATTR_H
23128 # include <sys/xattr.h>
23129 #endif
23130
23131 int
23132 main ()
23133 {
23134
23135 ssize_t res;
23136 const char *path = NULL, *name = NULL;
23137 res = lremovexattr(path, name);
23138
23139 ;
23140 return 0;
23141 }
23142 _ACEOF
23143 if ac_fn_c_try_link "$LINENO"; then :
23144
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23146 $as_echo "yes" >&6; }
23147
23148 $as_echo "#define HAVE_LREMOVEXATTR 1" >>confdefs.h
23149
23150
23151 else
23152
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23154 $as_echo "no" >&6; }
23155
23156
23157 fi
23158 rm -f core conftest.err conftest.$ac_objext \
23159 conftest$ac_exeext conftest.$ac_ext
23160
23161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsetxattr" >&5
23162 $as_echo_n "checking for lsetxattr... " >&6; }
23163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23164 /* end confdefs.h. */
23165 #ifdef HAVE_STDDEF_H
23166 # include <stddef.h>
23167 #endif
23168 #ifdef HAVE_STDLIB_H
23169 # include <stdlib.h>
23170 #endif
23171 #ifdef HAVE_SYS_TYPES_H
23172 # include <sys/types.h>
23173 #endif
23174 #ifdef HAVE_SYS_XATTR_H
23175 # include <sys/xattr.h>
23176 #endif
23177
23178 int
23179 main ()
23180 {
23181
23182 int res, flags = 0;
23183 const char *path = NULL, *name = NULL;
23184 const void *val = NULL;
23185 res = lsetxattr(path, name, val, flags);
23186
23187 ;
23188 return 0;
23189 }
23190 _ACEOF
23191 if ac_fn_c_try_link "$LINENO"; then :
23192
23193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23194 $as_echo "yes" >&6; }
23195
23196 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
23197
23198
23199 else
23200
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23202 $as_echo "no" >&6; }
23203
23204
23205 fi
23206 rm -f core conftest.err conftest.$ac_objext \
23207 conftest$ac_exeext conftest.$ac_ext
23208
23209 fi
23210
23211
23212 fi
23213
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setgrent returns void" >&5
23215 $as_echo_n "checking whether setgrent returns void... " >&6; }
23216 if ${ac_cv_func_setgrent_void+:} false; then :
23217 $as_echo_n "(cached) " >&6
23218 else
23219 if test "$cross_compiling" = yes; then :
23220 ac_cv_func_setgrent_void=yes
23221 else
23222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23223 /* end confdefs.h. */
23224
23225 #include <sys/types.h>
23226 #include <grp.h>
23227 int main(int argc, char *argv) {
23228 int i = 0;
23229 getgrent();
23230 i = setgrent();
23231 return (i != 1);
23232 }
23233
23234 _ACEOF
23235 if ac_fn_c_try_run "$LINENO"; then :
23236 ac_cv_func_setgrent_void=no
23237 else
23238 ac_cv_func_setgrent_void=yes
23239 fi
23240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23241 conftest.$ac_objext conftest.beam conftest.$ac_ext
23242 fi
23243
23244 fi
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setgrent_void" >&5
23246 $as_echo "$ac_cv_func_setgrent_void" >&6; }
23247
23248 if test $ac_cv_func_setgrent_void = yes; then
23249
23250 $as_echo "#define SETGRENT_VOID 1" >>confdefs.h
23251
23252 fi
23253
23254
23255 if test x"$enable_curses" != xno ; then
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcurses" >&5
23257 $as_echo_n "checking for initscr in -lcurses... " >&6; }
23258 if ${ac_cv_lib_curses_initscr+:} false; then :
23259 $as_echo_n "(cached) " >&6
23260 else
23261 ac_check_lib_save_LIBS=$LIBS
23262 LIBS="-lcurses $LIBS"
23263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23264 /* end confdefs.h. */
23265
23266 /* Override any GCC internal prototype to avoid an error.
23267 Use char because int might match the return type of a GCC
23268 builtin and then its argument prototype would still apply. */
23269 #ifdef __cplusplus
23270 extern "C"
23271 #endif
23272 char initscr ();
23273 int
23274 main ()
23275 {
23276 return initscr ();
23277 ;
23278 return 0;
23279 }
23280 _ACEOF
23281 if ac_fn_c_try_link "$LINENO"; then :
23282 ac_cv_lib_curses_initscr=yes
23283 else
23284 ac_cv_lib_curses_initscr=no
23285 fi
23286 rm -f core conftest.err conftest.$ac_objext \
23287 conftest$ac_exeext conftest.$ac_ext
23288 LIBS=$ac_check_lib_save_LIBS
23289 fi
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_initscr" >&5
23291 $as_echo "$ac_cv_lib_curses_initscr" >&6; }
23292 if test "x$ac_cv_lib_curses_initscr" = xyes; then :
23293 CURSES_LIBS="-lcurses"
23294
23295 $as_echo "#define HAVE_LIBCURSES 1" >>confdefs.h
23296
23297
23298 $as_echo "#define PR_USE_CURSES 1" >>confdefs.h
23299
23300
23301 fi
23302
23303
23304 if test x"$enable_nls" = xyes ; then
23305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for halfdelay in -ltinfow" >&5
23306 $as_echo_n "checking for halfdelay in -ltinfow... " >&6; }
23307 if ${ac_cv_lib_tinfow_halfdelay+:} false; then :
23308 $as_echo_n "(cached) " >&6
23309 else
23310 ac_check_lib_save_LIBS=$LIBS
23311 LIBS="-ltinfow $LIBS"
23312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23313 /* end confdefs.h. */
23314
23315 /* Override any GCC internal prototype to avoid an error.
23316 Use char because int might match the return type of a GCC
23317 builtin and then its argument prototype would still apply. */
23318 #ifdef __cplusplus
23319 extern "C"
23320 #endif
23321 char halfdelay ();
23322 int
23323 main ()
23324 {
23325 return halfdelay ();
23326 ;
23327 return 0;
23328 }
23329 _ACEOF
23330 if ac_fn_c_try_link "$LINENO"; then :
23331 ac_cv_lib_tinfow_halfdelay=yes
23332 else
23333 ac_cv_lib_tinfow_halfdelay=no
23334 fi
23335 rm -f core conftest.err conftest.$ac_objext \
23336 conftest$ac_exeext conftest.$ac_ext
23337 LIBS=$ac_check_lib_save_LIBS
23338 fi
23339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfow_halfdelay" >&5
23340 $as_echo "$ac_cv_lib_tinfow_halfdelay" >&6; }
23341 if test "x$ac_cv_lib_tinfow_halfdelay" = xyes; then :
23342 UTILS_LIBS="$UTILS_LIBS -ltinfow"
23343
23344 $as_echo "#define HAVE_LIBTINFOW 1" >>confdefs.h
23345
23346
23347 else
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for halfdelay in -ltinfo" >&5
23349 $as_echo_n "checking for halfdelay in -ltinfo... " >&6; }
23350 if ${ac_cv_lib_tinfo_halfdelay+:} false; then :
23351 $as_echo_n "(cached) " >&6
23352 else
23353 ac_check_lib_save_LIBS=$LIBS
23354 LIBS="-ltinfo $LIBS"
23355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23356 /* end confdefs.h. */
23357
23358 /* Override any GCC internal prototype to avoid an error.
23359 Use char because int might match the return type of a GCC
23360 builtin and then its argument prototype would still apply. */
23361 #ifdef __cplusplus
23362 extern "C"
23363 #endif
23364 char halfdelay ();
23365 int
23366 main ()
23367 {
23368 return halfdelay ();
23369 ;
23370 return 0;
23371 }
23372 _ACEOF
23373 if ac_fn_c_try_link "$LINENO"; then :
23374 ac_cv_lib_tinfo_halfdelay=yes
23375 else
23376 ac_cv_lib_tinfo_halfdelay=no
23377 fi
23378 rm -f core conftest.err conftest.$ac_objext \
23379 conftest$ac_exeext conftest.$ac_ext
23380 LIBS=$ac_check_lib_save_LIBS
23381 fi
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_halfdelay" >&5
23383 $as_echo "$ac_cv_lib_tinfo_halfdelay" >&6; }
23384 if test "x$ac_cv_lib_tinfo_halfdelay" = xyes; then :
23385 UTILS_LIBS="$UTILS_LIBS -ltinfo"
23386
23387 $as_echo "#define HAVE_LIBTINFO 1" >>confdefs.h
23388
23389
23390 fi
23391
23392
23393 fi
23394
23395 else
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for halfdelay in -ltinfo" >&5
23397 $as_echo_n "checking for halfdelay in -ltinfo... " >&6; }
23398 if ${ac_cv_lib_tinfo_halfdelay+:} false; then :
23399 $as_echo_n "(cached) " >&6
23400 else
23401 ac_check_lib_save_LIBS=$LIBS
23402 LIBS="-ltinfo $LIBS"
23403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23404 /* end confdefs.h. */
23405
23406 /* Override any GCC internal prototype to avoid an error.
23407 Use char because int might match the return type of a GCC
23408 builtin and then its argument prototype would still apply. */
23409 #ifdef __cplusplus
23410 extern "C"
23411 #endif
23412 char halfdelay ();
23413 int
23414 main ()
23415 {
23416 return halfdelay ();
23417 ;
23418 return 0;
23419 }
23420 _ACEOF
23421 if ac_fn_c_try_link "$LINENO"; then :
23422 ac_cv_lib_tinfo_halfdelay=yes
23423 else
23424 ac_cv_lib_tinfo_halfdelay=no
23425 fi
23426 rm -f core conftest.err conftest.$ac_objext \
23427 conftest$ac_exeext conftest.$ac_ext
23428 LIBS=$ac_check_lib_save_LIBS
23429 fi
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_halfdelay" >&5
23431 $as_echo "$ac_cv_lib_tinfo_halfdelay" >&6; }
23432 if test "x$ac_cv_lib_tinfo_halfdelay" = xyes; then :
23433 UTILS_LIBS="$UTILS_LIBS -ltinfo"
23434
23435 $as_echo "#define HAVE_LIBTINFO 1" >>confdefs.h
23436
23437
23438 fi
23439
23440 fi
23441 fi
23442
23443 if test x"$enable_ncurses" != xno ; then
23444 pr_have_ncursesw="no"
23445
23446
23447 if test x"$enable_nls" = xyes ; then
23448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
23449 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
23450 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
23451 $as_echo_n "(cached) " >&6
23452 else
23453 ac_check_lib_save_LIBS=$LIBS
23454 LIBS="-lncursesw $LIBS"
23455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23456 /* end confdefs.h. */
23457
23458 /* Override any GCC internal prototype to avoid an error.
23459 Use char because int might match the return type of a GCC
23460 builtin and then its argument prototype would still apply. */
23461 #ifdef __cplusplus
23462 extern "C"
23463 #endif
23464 char initscr ();
23465 int
23466 main ()
23467 {
23468 return initscr ();
23469 ;
23470 return 0;
23471 }
23472 _ACEOF
23473 if ac_fn_c_try_link "$LINENO"; then :
23474 ac_cv_lib_ncursesw_initscr=yes
23475 else
23476 ac_cv_lib_ncursesw_initscr=no
23477 fi
23478 rm -f core conftest.err conftest.$ac_objext \
23479 conftest$ac_exeext conftest.$ac_ext
23480 LIBS=$ac_check_lib_save_LIBS
23481 fi
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
23483 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
23484 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
23485 CURSES_LIBS="-lncursesw"
23486 pr_have_ncursesw="yes"
23487
23488 $as_echo "#define HAVE_LIBNCURSESW 1" >>confdefs.h
23489
23490
23491 else
23492
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
23494 $as_echo_n "checking for initscr in -lncurses... " >&6; }
23495 if ${ac_cv_lib_ncurses_initscr+:} false; then :
23496 $as_echo_n "(cached) " >&6
23497 else
23498 ac_check_lib_save_LIBS=$LIBS
23499 LIBS="-lncurses $LIBS"
23500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23501 /* end confdefs.h. */
23502
23503 /* Override any GCC internal prototype to avoid an error.
23504 Use char because int might match the return type of a GCC
23505 builtin and then its argument prototype would still apply. */
23506 #ifdef __cplusplus
23507 extern "C"
23508 #endif
23509 char initscr ();
23510 int
23511 main ()
23512 {
23513 return initscr ();
23514 ;
23515 return 0;
23516 }
23517 _ACEOF
23518 if ac_fn_c_try_link "$LINENO"; then :
23519 ac_cv_lib_ncurses_initscr=yes
23520 else
23521 ac_cv_lib_ncurses_initscr=no
23522 fi
23523 rm -f core conftest.err conftest.$ac_objext \
23524 conftest$ac_exeext conftest.$ac_ext
23525 LIBS=$ac_check_lib_save_LIBS
23526 fi
23527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
23528 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
23529 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
23530 CURSES_LIBS="-lncurses"
23531
23532 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
23533
23534
23535 fi
23536
23537
23538 fi
23539
23540
23541 else
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
23543 $as_echo_n "checking for initscr in -lncurses... " >&6; }
23544 if ${ac_cv_lib_ncurses_initscr+:} false; then :
23545 $as_echo_n "(cached) " >&6
23546 else
23547 ac_check_lib_save_LIBS=$LIBS
23548 LIBS="-lncurses $LIBS"
23549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23550 /* end confdefs.h. */
23551
23552 /* Override any GCC internal prototype to avoid an error.
23553 Use char because int might match the return type of a GCC
23554 builtin and then its argument prototype would still apply. */
23555 #ifdef __cplusplus
23556 extern "C"
23557 #endif
23558 char initscr ();
23559 int
23560 main ()
23561 {
23562 return initscr ();
23563 ;
23564 return 0;
23565 }
23566 _ACEOF
23567 if ac_fn_c_try_link "$LINENO"; then :
23568 ac_cv_lib_ncurses_initscr=yes
23569 else
23570 ac_cv_lib_ncurses_initscr=no
23571 fi
23572 rm -f core conftest.err conftest.$ac_objext \
23573 conftest$ac_exeext conftest.$ac_ext
23574 LIBS=$ac_check_lib_save_LIBS
23575 fi
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
23577 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
23578 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
23579 CURSES_LIBS="-lncurses"
23580
23581 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
23582
23583
23584 fi
23585
23586 fi
23587
23588
23589 if test x"$pr_have_ncursesw" = xyes ; then
23590
23591 $as_echo "#define PR_USE_NCURSESW 1" >>confdefs.h
23592
23593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for halfdelay in -ltinfow" >&5
23594 $as_echo_n "checking for halfdelay in -ltinfow... " >&6; }
23595 if ${ac_cv_lib_tinfow_halfdelay+:} false; then :
23596 $as_echo_n "(cached) " >&6
23597 else
23598 ac_check_lib_save_LIBS=$LIBS
23599 LIBS="-ltinfow $LIBS"
23600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23601 /* end confdefs.h. */
23602
23603 /* Override any GCC internal prototype to avoid an error.
23604 Use char because int might match the return type of a GCC
23605 builtin and then its argument prototype would still apply. */
23606 #ifdef __cplusplus
23607 extern "C"
23608 #endif
23609 char halfdelay ();
23610 int
23611 main ()
23612 {
23613 return halfdelay ();
23614 ;
23615 return 0;
23616 }
23617 _ACEOF
23618 if ac_fn_c_try_link "$LINENO"; then :
23619 ac_cv_lib_tinfow_halfdelay=yes
23620 else
23621 ac_cv_lib_tinfow_halfdelay=no
23622 fi
23623 rm -f core conftest.err conftest.$ac_objext \
23624 conftest$ac_exeext conftest.$ac_ext
23625 LIBS=$ac_check_lib_save_LIBS
23626 fi
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfow_halfdelay" >&5
23628 $as_echo "$ac_cv_lib_tinfow_halfdelay" >&6; }
23629 if test "x$ac_cv_lib_tinfow_halfdelay" = xyes; then :
23630 UTILS_LIBS="$UTILS_LIBS -ltinfow"
23631
23632 $as_echo "#define HAVE_LIBTINFOW 1" >>confdefs.h
23633
23634
23635 else
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for halfdelay in -ltinfo" >&5
23637 $as_echo_n "checking for halfdelay in -ltinfo... " >&6; }
23638 if ${ac_cv_lib_tinfo_halfdelay+:} false; then :
23639 $as_echo_n "(cached) " >&6
23640 else
23641 ac_check_lib_save_LIBS=$LIBS
23642 LIBS="-ltinfo $LIBS"
23643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23644 /* end confdefs.h. */
23645
23646 /* Override any GCC internal prototype to avoid an error.
23647 Use char because int might match the return type of a GCC
23648 builtin and then its argument prototype would still apply. */
23649 #ifdef __cplusplus
23650 extern "C"
23651 #endif
23652 char halfdelay ();
23653 int
23654 main ()
23655 {
23656 return halfdelay ();
23657 ;
23658 return 0;
23659 }
23660 _ACEOF
23661 if ac_fn_c_try_link "$LINENO"; then :
23662 ac_cv_lib_tinfo_halfdelay=yes
23663 else
23664 ac_cv_lib_tinfo_halfdelay=no
23665 fi
23666 rm -f core conftest.err conftest.$ac_objext \
23667 conftest$ac_exeext conftest.$ac_ext
23668 LIBS=$ac_check_lib_save_LIBS
23669 fi
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_halfdelay" >&5
23671 $as_echo "$ac_cv_lib_tinfo_halfdelay" >&6; }
23672 if test "x$ac_cv_lib_tinfo_halfdelay" = xyes; then :
23673 UTILS_LIBS="$UTILS_LIBS -ltinfo"
23674
23675 $as_echo "#define HAVE_LIBTINFO 1" >>confdefs.h
23676
23677
23678 fi
23679
23680
23681 fi
23682
23683 else
23684
23685 $as_echo "#define PR_USE_NCURSES 1" >>confdefs.h
23686
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for halfdelay in -ltinfo" >&5
23688 $as_echo_n "checking for halfdelay in -ltinfo... " >&6; }
23689 if ${ac_cv_lib_tinfo_halfdelay+:} false; then :
23690 $as_echo_n "(cached) " >&6
23691 else
23692 ac_check_lib_save_LIBS=$LIBS
23693 LIBS="-ltinfo $LIBS"
23694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23695 /* end confdefs.h. */
23696
23697 /* Override any GCC internal prototype to avoid an error.
23698 Use char because int might match the return type of a GCC
23699 builtin and then its argument prototype would still apply. */
23700 #ifdef __cplusplus
23701 extern "C"
23702 #endif
23703 char halfdelay ();
23704 int
23705 main ()
23706 {
23707 return halfdelay ();
23708 ;
23709 return 0;
23710 }
23711 _ACEOF
23712 if ac_fn_c_try_link "$LINENO"; then :
23713 ac_cv_lib_tinfo_halfdelay=yes
23714 else
23715 ac_cv_lib_tinfo_halfdelay=no
23716 fi
23717 rm -f core conftest.err conftest.$ac_objext \
23718 conftest$ac_exeext conftest.$ac_ext
23719 LIBS=$ac_check_lib_save_LIBS
23720 fi
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_halfdelay" >&5
23722 $as_echo "$ac_cv_lib_tinfo_halfdelay" >&6; }
23723 if test "x$ac_cv_lib_tinfo_halfdelay" = xyes; then :
23724 UTILS_LIBS="$UTILS_LIBS -ltinfo"
23725
23726 $as_echo "#define HAVE_LIBTINFO 1" >>confdefs.h
23727
23728
23729 fi
23730
23731 fi
23732 fi
23733
23734 if test x"$enable_nonblocking_log_open" != xno; then
23735
23736 $as_echo "#define PR_USE_NONBLOCKING_LOG_OPEN 1" >>confdefs.h
23737
23738 fi
23739
23740 if test x"$enable_openssl_api_compat" != xno; then
23741
23742 $as_echo "#define PR_USE_OPENSSL_API_COMPAT 1" >>confdefs.h
23743
23744 fi
23745
23746 if test x"$enable_ident" = xyes ; then
23747 ac_static_modules="mod_ident.o $ac_static_modules"
23748 ac_build_static_modules="modules/mod_ident.o $ac_build_static_modules"
23749 fi
23750
23751 for ac_func in setproctitle
23752 do :
23753 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
23754 if test "x$ac_cv_func_setproctitle" = xyes; then :
23755 cat >>confdefs.h <<_ACEOF
23756 #define HAVE_SETPROCTITLE 1
23757 _ACEOF
23758
23759 fi
23760 done
23761
23762 for ac_header in libutil.h
23763 do :
23764 ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
23765 if test "x$ac_cv_header_libutil_h" = xyes; then :
23766 cat >>confdefs.h <<_ACEOF
23767 #define HAVE_LIBUTIL_H 1
23768 _ACEOF
23769
23770 fi
23771
23772 done
23773
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
23775 $as_echo_n "checking for setproctitle in -lutil... " >&6; }
23776 if ${ac_cv_lib_util_setproctitle+:} false; then :
23777 $as_echo_n "(cached) " >&6
23778 else
23779 ac_check_lib_save_LIBS=$LIBS
23780 LIBS="-lutil $LIBS"
23781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23782 /* end confdefs.h. */
23783
23784 /* Override any GCC internal prototype to avoid an error.
23785 Use char because int might match the return type of a GCC
23786 builtin and then its argument prototype would still apply. */
23787 #ifdef __cplusplus
23788 extern "C"
23789 #endif
23790 char setproctitle ();
23791 int
23792 main ()
23793 {
23794 return setproctitle ();
23795 ;
23796 return 0;
23797 }
23798 _ACEOF
23799 if ac_fn_c_try_link "$LINENO"; then :
23800 ac_cv_lib_util_setproctitle=yes
23801 else
23802 ac_cv_lib_util_setproctitle=no
23803 fi
23804 rm -f core conftest.err conftest.$ac_objext \
23805 conftest$ac_exeext conftest.$ac_ext
23806 LIBS=$ac_check_lib_save_LIBS
23807 fi
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
23809 $as_echo "$ac_cv_lib_util_setproctitle" >&6; }
23810 if test "x$ac_cv_lib_util_setproctitle" = xyes; then :
23811 $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
23812
23813 ac_cv_func_setproctitle="yes" ; LIBS="$LIBS -lutil"
23814 fi
23815
23816
23817 if test "$ac_cv_func_setproctitle" = "yes"; then
23818 $as_echo "#define PF_ARGV_TYPE PF_ARGV_NONE" >>confdefs.h
23819
23820 else
23821 pf_argv_set="no"
23822
23823 for ac_header in sys/pstat.h
23824 do :
23825 ac_fn_c_check_header_mongrel "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default"
23826 if test "x$ac_cv_header_sys_pstat_h" = xyes; then :
23827 cat >>confdefs.h <<_ACEOF
23828 #define HAVE_SYS_PSTAT_H 1
23829 _ACEOF
23830 have_pstat_h="yes"
23831 else
23832 have_pstat_h="no"
23833 fi
23834
23835 done
23836
23837 if test "$have_pstat_h" = "yes"; then
23838 for ac_func in pstat
23839 do :
23840 ac_fn_c_check_func "$LINENO" "pstat" "ac_cv_func_pstat"
23841 if test "x$ac_cv_func_pstat" = xyes; then :
23842 cat >>confdefs.h <<_ACEOF
23843 #define HAVE_PSTAT 1
23844 _ACEOF
23845
23846 fi
23847 done
23848
23849
23850 if test "$ac_cv_func_pstat" = "yes"; then
23851 $as_echo "#define PF_ARGV_TYPE PF_ARGV_PSTAT" >>confdefs.h
23852
23853 else
23854 $as_echo "#define PF_ARGV_TYPE PF_ARGV_WRITEABLE" >>confdefs.h
23855
23856 fi
23857
23858 pf_argv_set="yes"
23859 fi
23860
23861 if test "$pf_argv_set" = "no"; then
23862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23863 /* end confdefs.h. */
23864 #include <sys/exec.h>
23865
23866 _ACEOF
23867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23868 $EGREP "#define.*PS_STRINGS.*" >/dev/null 2>&1; then :
23869 have_psstrings="yes"
23870 else
23871 have_psstrings="no"
23872 fi
23873 rm -f conftest*
23874
23875 if test "$have_psstrings" = "yes"; then
23876 $as_echo "#define PF_ARGV_TYPE PF_ARGV_PSSTRINGS" >>confdefs.h
23877
23878 pf_argv_set="yes"
23879 fi
23880 fi
23881
23882 if test "$pf_argv_set" = "no"; then
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname and __progname_full are available" >&5
23884 $as_echo_n "checking whether __progname and __progname_full are available... " >&6; }
23885 if ${pf_cv_var_progname+:} false; then :
23886 $as_echo_n "(cached) " >&6
23887 else
23888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23889 /* end confdefs.h. */
23890 extern char *__progname, *__progname_full;
23891 int
23892 main ()
23893 {
23894 __progname = "foo"; __progname_full = "foo bar";
23895 ;
23896 return 0;
23897 }
23898 _ACEOF
23899 if ac_fn_c_try_link "$LINENO"; then :
23900 pf_cv_var_progname="yes"
23901 else
23902 pf_cv_var_progname="no"
23903 fi
23904 rm -f core conftest.err conftest.$ac_objext \
23905 conftest$ac_exeext conftest.$ac_ext
23906 fi
23907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pf_cv_var_progname" >&5
23908 $as_echo "$pf_cv_var_progname" >&6; }
23909
23910 if test "$pf_cv_var_progname" = "yes"; then
23911
23912 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
23913
23914 fi
23915
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which argv replacement method to use" >&5
23917 $as_echo_n "checking which argv replacement method to use... " >&6; }
23918 if ${pf_cv_argv_type+:} false; then :
23919 $as_echo_n "(cached) " >&6
23920 else
23921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23922 /* end confdefs.h. */
23923
23924 #if defined(__GNU_HURD__)
23925 yes
23926 #endif
23927
23928 _ACEOF
23929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23930 $EGREP "yes" >/dev/null 2>&1; then :
23931 pf_cv_argv_type="new"
23932 else
23933 pf_cv_argv_type="writeable"
23934 fi
23935 rm -f conftest*
23936
23937 fi
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pf_cv_argv_type" >&5
23939 $as_echo "$pf_cv_argv_type" >&6; }
23940
23941 if test "$pf_cv_argv_type" = "new"; then
23942 $as_echo "#define PF_ARGV_TYPE PF_ARGV_NEW" >>confdefs.h
23943
23944 pf_argv_set="yes"
23945 fi
23946
23947 if test "$pf_argv_set" = "no"; then
23948 $as_echo "#define PF_ARGV_TYPE PF_ARGV_WRITEABLE" >>confdefs.h
23949
23950 fi
23951 fi
23952 fi
23953
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lexecinfo" >&5
23955 $as_echo_n "checking for backtrace in -lexecinfo... " >&6; }
23956 if ${ac_cv_lib_execinfo_backtrace+:} false; then :
23957 $as_echo_n "(cached) " >&6
23958 else
23959 ac_check_lib_save_LIBS=$LIBS
23960 LIBS="-lexecinfo $LIBS"
23961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23962 /* end confdefs.h. */
23963
23964 /* Override any GCC internal prototype to avoid an error.
23965 Use char because int might match the return type of a GCC
23966 builtin and then its argument prototype would still apply. */
23967 #ifdef __cplusplus
23968 extern "C"
23969 #endif
23970 char backtrace ();
23971 int
23972 main ()
23973 {
23974 return backtrace ();
23975 ;
23976 return 0;
23977 }
23978 _ACEOF
23979 if ac_fn_c_try_link "$LINENO"; then :
23980 ac_cv_lib_execinfo_backtrace=yes
23981 else
23982 ac_cv_lib_execinfo_backtrace=no
23983 fi
23984 rm -f core conftest.err conftest.$ac_objext \
23985 conftest$ac_exeext conftest.$ac_ext
23986 LIBS=$ac_check_lib_save_LIBS
23987 fi
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_execinfo_backtrace" >&5
23989 $as_echo "$ac_cv_lib_execinfo_backtrace" >&6; }
23990 if test "x$ac_cv_lib_execinfo_backtrace" = xyes; then :
23991 cat >>confdefs.h <<_ACEOF
23992 #define HAVE_LIBEXECINFO 1
23993 _ACEOF
23994
23995 LIBS="-lexecinfo $LIBS"
23996
23997 fi
23998
23999
24000 for ac_header in execinfo.h ucontext.h
24001 do :
24002 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24003 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24004 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24005 cat >>confdefs.h <<_ACEOF
24006 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24007 _ACEOF
24008
24009 fi
24010
24011 done
24012
24013
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace" >&5
24015 $as_echo_n "checking for backtrace... " >&6; }
24016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24017 /* end confdefs.h. */
24018
24019 #ifdef HAVE_STDDEF_H
24020 # include <stddef.h>
24021 #endif
24022 #ifdef HAVE_STDLIB_H
24023 # include <stdlib.h>
24024 #endif
24025 #ifdef HAVE_EXECINFO_H
24026 # include <execinfo.h>
24027 #endif
24028 #ifdef HAVE_UCONTEXT_H
24029 # include <ucontext.h>
24030 #endif
24031
24032 int
24033 main ()
24034 {
24035
24036 void **syms = NULL;
24037 int res, nsyms = 0;
24038 res = backtrace(syms, nsyms);
24039
24040 ;
24041 return 0;
24042 }
24043 _ACEOF
24044 if ac_fn_c_try_link "$LINENO"; then :
24045
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24047 $as_echo "yes" >&6; }
24048
24049 $as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
24050
24051
24052 else
24053
24054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24055 $as_echo "no" >&6; }
24056
24057
24058 fi
24059 rm -f core conftest.err conftest.$ac_objext \
24060 conftest$ac_exeext conftest.$ac_ext
24061
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols" >&5
24063 $as_echo_n "checking for backtrace_symbols... " >&6; }
24064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24065 /* end confdefs.h. */
24066
24067 #ifdef HAVE_STDDEF_H
24068 # include <stddef.h>
24069 #endif
24070 #ifdef HAVE_STDLIB_H
24071 # include <stdlib.h>
24072 #endif
24073 #ifdef HAVE_EXECINFO_H
24074 # include <execinfo.h>
24075 #endif
24076 #ifdef HAVE_UCONTEXT_H
24077 # include <ucontext.h>
24078 #endif
24079
24080 int
24081 main ()
24082 {
24083
24084 void **syms = NULL;
24085 int nsyms = 0;
24086 char **res;
24087 res = backtrace_symbols(syms, nsyms);
24088
24089 ;
24090 return 0;
24091 }
24092 _ACEOF
24093 if ac_fn_c_try_link "$LINENO"; then :
24094
24095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24096 $as_echo "yes" >&6; }
24097
24098 $as_echo "#define HAVE_BACKTRACE_SYMBOLS 1" >>confdefs.h
24099
24100
24101 else
24102
24103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24104 $as_echo "no" >&6; }
24105
24106
24107 fi
24108 rm -f core conftest.err conftest.$ac_objext \
24109 conftest$ac_exeext conftest.$ac_ext
24110
24111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports %llu format" >&5
24112 $as_echo_n "checking whether printf supports %llu format... " >&6; };
24113 if test "$cross_compiling" = yes; then :
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
24115 $as_echo "cross-compiling" >&6; };
24116 $as_echo "#define HAVE_LU 1" >>confdefs.h
24117
24118
24119 else
24120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24121 /* end confdefs.h. */
24122 #include <stdio.h>
24123 int main(int argc, char *argv[]) {
24124 return (fprintf(stderr, "%llu\n", (unsigned long long) 1) == 2 ? 0 : 1);
24125 }
24126
24127 _ACEOF
24128 if ac_fn_c_try_run "$LINENO"; then :
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24130 $as_echo "yes" >&6; };
24131 $as_echo "#define HAVE_LLU 1" >>confdefs.h
24132
24133 else
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24135 $as_echo "no" >&6; };
24136 $as_echo "#define HAVE_LU 1" >>confdefs.h
24137
24138 fi
24139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24140 conftest.$ac_objext conftest.beam conftest.$ac_ext
24141 fi
24142
24143
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether listen supports negative backlog" >&5
24145 $as_echo_n "checking whether listen supports negative backlog... " >&6; };
24146 if test "$cross_compiling" = yes; then :
24147
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
24149 $as_echo "cross-compiling" >&6; }
24150
24151
24152 else
24153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24154 /* end confdefs.h. */
24155
24156 #include <errno.h>
24157 #include <stdio.h>
24158 #ifdef HAVE_STDLIB_H
24159 # include <stdlib.h>
24160 #endif
24161 #ifdef HAVE_STRING_H
24162 # include <string.h>
24163 #endif
24164 #ifdef HAVE_UNISTD_H
24165 # include <unistd.h>
24166 #endif
24167 #ifdef HAVE_NETDB_H
24168 # include <netdb.h>
24169 #endif
24170 #ifdef HAVE_SYS_SOCKET_H
24171 # include <sys/socket.h>
24172 #endif
24173 int main(int argc, char *argv[]) {
24174 struct protoent *pe;
24175 int backlog = -1, proto = -1, fd, res;
24176
24177 pe = getprotobyname("tcp");
24178 if (pe != NULL) {
24179 proto = pe->p_proto;
24180 }
24181
24182 fd = socket(AF_INET, SOCK_STREAM, proto);
24183 if (fd < 0) {
24184 fprintf(stderr, "error creating socket: %s\n", strerror(errno));
24185 return 1;
24186 }
24187
24188 res = listen(fd, backlog);
24189 if (res < 0) {
24190 fprintf(stderr, "error listening on socket: %s\n", strerror(errno));
24191 return 1;
24192 }
24193
24194 (void) close(fd);
24195 return 0;
24196 }
24197
24198 _ACEOF
24199 if ac_fn_c_try_run "$LINENO"; then :
24200
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24202 $as_echo "yes" >&6; };
24203
24204 $as_echo "#define LISTEN_NEGATIVE_BACKLOG 1" >>confdefs.h
24205
24206
24207 else
24208
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24210 $as_echo "no" >&6; }
24211
24212 fi
24213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24214 conftest.$ac_objext conftest.beam conftest.$ac_ext
24215 fi
24216
24217
24218 ac_shared_module_dirs=
24219 ac_static_module_dirs=
24220
24221 for amodule in $ac_shared_modules; do
24222 module=`echo "$amodule" | sed -e 's/\.la//g'`.o;
24223 modulename=`echo "$amodule" | sed -e 's/\.la$//'`;
24224
24225 ac_core_modules=`echo "$ac_core_modules" | sed -e "s/$modulename\.o//g"`;
24226 ac_build_core_modules=`echo "$ac_build_core_modules" | sed -e "s/modules\/$modulename\.o//g"`;
24227
24228 ac_static_modules=`echo "$ac_static_modules" | sed -e "s/$modulename\.o//g"`;
24229 ac_build_static_modules=`echo "$ac_build_static_modules" | sed -e "s/modules\/$modulename\.o//g"`;
24230 done
24231
24232 GLUE_MODULE_OBJS="$ac_core_modules $ac_static_modules"
24233
24234 my_core_modules=`echo "$ac_core_modules" | sed -e 's/\.o//g'`;
24235 my_static_modules=`echo "$ac_static_modules" | sed -e 's/\.o//g'`;
24236 my_shared_modules=`echo "$ac_shared_modules" | sed -e 's/\.la//g'`;
24237 all_modules="$my_core_modules $my_static_modules $my_shared_modules";
24238
24239 pr_use_mysql="no"
24240 pr_use_postgres="no"
24241
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for duplicate module build requests" >&5
24243 $as_echo_n "checking for duplicate module build requests... " >&6; }
24244 for i in $all_modules; do
24245 once=no;
24246
24247 if test x"$i" = x"mod_auth_otp"; then
24248 if test x"$pr_use_openssl" = x ; then
24249 pr_use_openssl=yes
24250 fi
24251
24252 elif test x"$i" = x"mod_digest"; then
24253 if test x"$pr_use_openssl" = x ; then
24254 pr_use_openssl=yes
24255 fi
24256
24257 elif test x"$i" = x"mod_tls"; then
24258 if test x"$pr_use_openssl" = x ; then
24259 pr_use_openssl=yes
24260 fi
24261
24262 elif test x"$i" = x"mod_sftp"; then
24263 if test x"$pr_use_openssl" = x ; then
24264 pr_use_openssl=yes
24265 fi
24266
24267 if test x"$pr_use_sodium" = x ; then
24268 pr_use_sodium=yes
24269 fi
24270
24271 elif test x"$i" = x"mod_sql_passwd"; then
24272 if test x"$pr_use_openssl" = x ; then
24273 pr_use_openssl=yes
24274 fi
24275
24276 if test x"$pr_use_sodium" = x ; then
24277 pr_use_sodium=yes
24278 fi
24279 fi
24280
24281 for j in $all_modules; do
24282 if test x"$i" = x"$j"; then
24283 if test x"$once" = xno; then
24284 once=yes;
24285
24286 else
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24288 $as_echo "yes" >&6; }
24289 as_fn_error $? "duplicate build request for $j -- aborting" "$LINENO" 5
24290 fi
24291 fi
24292 done
24293
24294 if test x"$i" = x"mod_sql_mysql"; then
24295 pr_use_mysql="yes"
24296
24297 if test x"$my_config" != xno; then
24298 if `$my_config --version 2>/dev/null 1>&2`; then
24299 # mysql_config --include gives path WITH -I prefix
24300 mysql_includes=`$my_config --include 2>/dev/null`
24301 if test ! -z "$mysql_includes"; then
24302 ac_build_addl_includes="$ac_build_addl_includes $mysql_includes"
24303 fi
24304
24305 # mysql_config --libs gives ALL options; use just the -L ones.
24306 #
24307 # Note that due to Bug#3702, we also need to look for -pthread, and
24308 # if present, add it to the LIBS list of flags.
24309
24310 mysql_libdirs=`$my_config --libs 2>/dev/null`
24311 if test ! -z "$mysql_libdirs"; then
24312 for my_libdir in $mysql_libdirs; do
24313 l=`echo -n "$my_libdir" | sed -n '/^-L/{p;}'`
24314 if test ! -z "$l"; then
24315 ac_build_addl_libdirs="$ac_build_addl_libdirs $my_libdir"
24316 fi
24317
24318 if test x"$my_libdir" = x"-pthread"; then
24319 LIBS="$LIBS -pthread"
24320 fi
24321 done
24322 fi
24323 fi
24324 fi
24325
24326 elif test x"$i" = x"mod_sql_postgres"; then
24327 pr_use_postgres="yes"
24328
24329 if test x"$pg_config" != xno; then
24330 if `$pg_config 2>/dev/null 1>&2`; then
24331 # pg_config --includedir gives path, no -I prefix
24332 pg_includes=`$pg_config --includedir 2>/dev/null`
24333 if test ! -z "$pg_includes"; then
24334 ac_build_addl_includes="$ac_build_addl_includes -I$pg_includes"
24335 fi
24336
24337 # pg_config --libdir gives path, no -L prefix
24338 pg_libdirs=`$pg_config --libdir 2>/dev/null`
24339 if test ! -z "pg_libdirs"; then
24340 ac_build_addl_libdirs="$ac_build_addl_libdirs -L$pg_libdirs"
24341 fi
24342
24343 # I suspect that we will also need to look for -pthread here
24344 # (a la Bug#3702), as a forums post about proftpd+postgres describes
24345 # the same "Alarm clock" symptom as seen with MySQL; see:
24346 #
24347 # http://forums.proftpd.org/smf/index.php/topic,1424.0.html
24348
24349 # pg_config --libs gives libs, with -l prefixes
24350 pg_libs=`$pg_config --libs 2>/dev/null`
24351 if test ! -z "$pg_libs"; then
24352 for pg_lib in $pg_lib; do
24353 if test x"$pg_lib" = x"-pthread"; then
24354 LIBS="$LIBS -pthread"
24355 fi
24356 done
24357 fi
24358 fi
24359 fi
24360 fi
24361 done
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24363 $as_echo "no" >&6; }
24364
24365 if test x"$pr_use_mysql" = xyes; then
24366 saved_cppflags="$CPPFLAGS"
24367 saved_ldflags="$LDFLAGS"
24368 saved_libs="$LIBS"
24369
24370 CPPFLAGS="$CPPFLAGS $ac_build_addl_includes"
24371 LDFLAGS="$LDFLAGS $ac_build_addl_libdirs"
24372 LIBS="$LIBS -lm -lmysqlclient -lz"
24373
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_get_option" >&5
24375 $as_echo_n "checking for mysql_get_option... " >&6; }
24376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24377 /* end confdefs.h. */
24378 #ifdef HAVE_STDDEF_H
24379 # include <stddef.h>
24380 #endif
24381 #ifdef HAVE_STDLIB_H
24382 # include <stdlib.h>
24383 #endif
24384 #ifdef HAVE_SYS_TYPES_H
24385 # include <sys/types.h>
24386 #endif
24387 #include <mysql.h>
24388
24389 int
24390 main ()
24391 {
24392
24393 (void) mysql_get_option(NULL, 0, NULL);
24394
24395 ;
24396 return 0;
24397 }
24398 _ACEOF
24399 if ac_fn_c_try_link "$LINENO"; then :
24400
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24402 $as_echo "yes" >&6; }
24403
24404 $as_echo "#define HAVE_MYSQL_GET_OPTION 1" >>confdefs.h
24405
24406
24407 else
24408
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24410 $as_echo "no" >&6; }
24411
24412
24413 fi
24414 rm -f core conftest.err conftest.$ac_objext \
24415 conftest$ac_exeext conftest.$ac_ext
24416
24417
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL's make_scrambled_password" >&5
24419 $as_echo_n "checking for MySQL's make_scrambled_password... " >&6; }
24420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24421 /* end confdefs.h. */
24422 #ifdef HAVE_STDDEF_H
24423 # include <stddef.h>
24424 #endif
24425 #ifdef HAVE_STDLIB_H
24426 # include <stdlib.h>
24427 #endif
24428 #ifdef HAVE_SYS_TYPES_H
24429 # include <sys/types.h>
24430 #endif
24431 #include <mysql.h>
24432
24433 int
24434 main ()
24435 {
24436
24437 char output[32];
24438 char *input = NULL;
24439 (void) make_scrambled_password(output, input);
24440
24441 ;
24442 return 0;
24443 }
24444 _ACEOF
24445 if ac_fn_c_try_link "$LINENO"; then :
24446
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24448 $as_echo "yes" >&6; }
24449
24450 $as_echo "#define HAVE_MYSQL_MAKE_SCRAMBLED_PASSWORD 1" >>confdefs.h
24451
24452
24453 else
24454
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24456 $as_echo "no" >&6; }
24457
24458
24459 fi
24460 rm -f core conftest.err conftest.$ac_objext \
24461 conftest$ac_exeext conftest.$ac_ext
24462
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL's make_scrambled_password_323" >&5
24464 $as_echo_n "checking for MySQL's make_scrambled_password_323... " >&6; }
24465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24466 /* end confdefs.h. */
24467 #ifdef HAVE_STDDEF_H
24468 # include <stddef.h>
24469 #endif
24470 #ifdef HAVE_STDLIB_H
24471 # include <stdlib.h>
24472 #endif
24473 #ifdef HAVE_SYS_TYPES_H
24474 # include <sys/types.h>
24475 #endif
24476 #include <mysql.h>
24477
24478 int
24479 main ()
24480 {
24481
24482 char output[32];
24483 char *input = NULL;
24484 (void) make_scrambled_password_323(output, input);
24485
24486 ;
24487 return 0;
24488 }
24489 _ACEOF
24490 if ac_fn_c_try_link "$LINENO"; then :
24491
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24493 $as_echo "yes" >&6; }
24494
24495 $as_echo "#define HAVE_MYSQL_MAKE_SCRAMBLED_PASSWORD_323 1" >>confdefs.h
24496
24497
24498 else
24499
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24501 $as_echo "no" >&6; }
24502
24503
24504 fi
24505 rm -f core conftest.err conftest.$ac_objext \
24506 conftest$ac_exeext conftest.$ac_ext
24507
24508 # For Bug#3669 in the RedHat case, we need to check for
24509 # my_make_scrambled_password.
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL's my_make_scrambled_password" >&5
24511 $as_echo_n "checking for MySQL's my_make_scrambled_password... " >&6; }
24512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24513 /* end confdefs.h. */
24514 #ifdef HAVE_STDDEF_H
24515 # include <stddef.h>
24516 #endif
24517 #ifdef HAVE_STDLIB_H
24518 # include <stdlib.h>
24519 #endif
24520 #ifdef HAVE_SYS_TYPES_H
24521 # include <sys/types.h>
24522 #endif
24523 #include <mysql.h>
24524
24525 int
24526 main ()
24527 {
24528
24529 char output[32];
24530 char *input = NULL;
24531 size_t inputlen = 0;
24532 (void) my_make_scrambled_password(output, input, inputlen);
24533
24534 ;
24535 return 0;
24536 }
24537 _ACEOF
24538 if ac_fn_c_try_link "$LINENO"; then :
24539
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24541 $as_echo "yes" >&6; }
24542
24543 $as_echo "#define HAVE_MYSQL_MY_MAKE_SCRAMBLED_PASSWORD 1" >>confdefs.h
24544
24545
24546 else
24547
24548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24549 $as_echo "no" >&6; }
24550
24551
24552 fi
24553 rm -f core conftest.err conftest.$ac_objext \
24554 conftest$ac_exeext conftest.$ac_ext
24555
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL's my_make_scrambled_password_323" >&5
24557 $as_echo_n "checking for MySQL's my_make_scrambled_password_323... " >&6; }
24558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24559 /* end confdefs.h. */
24560 #ifdef HAVE_STDDEF_H
24561 # include <stddef.h>
24562 #endif
24563 #ifdef HAVE_STDLIB_H
24564 # include <stdlib.h>
24565 #endif
24566 #ifdef HAVE_SYS_TYPES_H
24567 # include <sys/types.h>
24568 #endif
24569 #include <mysql.h>
24570
24571 int
24572 main ()
24573 {
24574
24575 char output[32];
24576 char *input = NULL;
24577 size_t inputlen = 0;
24578 (void) my_make_scrambled_password_323(output, input, inputlen);
24579
24580 ;
24581 return 0;
24582 }
24583 _ACEOF
24584 if ac_fn_c_try_link "$LINENO"; then :
24585
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24587 $as_echo "yes" >&6; }
24588
24589 $as_echo "#define HAVE_MYSQL_MY_MAKE_SCRAMBLED_PASSWORD_323 1" >>confdefs.h
24590
24591
24592 else
24593
24594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24595 $as_echo "no" >&6; }
24596
24597
24598 fi
24599 rm -f core conftest.err conftest.$ac_objext \
24600 conftest$ac_exeext conftest.$ac_ext
24601
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL's mysql_ssl_set" >&5
24603 $as_echo_n "checking for MySQL's mysql_ssl_set... " >&6; }
24604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24605 /* end confdefs.h. */
24606 #ifdef HAVE_STDDEF_H
24607 # include <stddef.h>
24608 #endif
24609 #ifdef HAVE_STDLIB_H
24610 # include <stdlib.h>
24611 #endif
24612 #ifdef HAVE_SYS_TYPES_H
24613 # include <sys/types.h>
24614 #endif
24615 #include <mysql.h>
24616
24617 int
24618 main ()
24619 {
24620
24621 MYSQL *mysql = NULL;
24622 (void) mysql_ssl_set(mysql, NULL, NULL, NULL, NULL, NULL);
24623
24624 ;
24625 return 0;
24626 }
24627 _ACEOF
24628 if ac_fn_c_try_link "$LINENO"; then :
24629
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24631 $as_echo "yes" >&6; }
24632
24633 $as_echo "#define HAVE_MYSQL_MYSQL_SSL_SET 1" >>confdefs.h
24634
24635
24636 else
24637
24638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24639 $as_echo "no" >&6; }
24640
24641
24642 fi
24643 rm -f core conftest.err conftest.$ac_objext \
24644 conftest$ac_exeext conftest.$ac_ext
24645
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL's mysql_get_ssl_cipher" >&5
24647 $as_echo_n "checking for MySQL's mysql_get_ssl_cipher... " >&6; }
24648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24649 /* end confdefs.h. */
24650 #ifdef HAVE_STDDEF_H
24651 # include <stddef.h>
24652 #endif
24653 #ifdef HAVE_STDLIB_H
24654 # include <stdlib.h>
24655 #endif
24656 #ifdef HAVE_SYS_TYPES_H
24657 # include <sys/types.h>
24658 #endif
24659 #include <mysql.h>
24660
24661 int
24662 main ()
24663 {
24664
24665 MYSQL *mysql = NULL;
24666 (void) mysql_get_ssl_cipher(mysql);
24667
24668 ;
24669 return 0;
24670 }
24671 _ACEOF
24672 if ac_fn_c_try_link "$LINENO"; then :
24673
24674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24675 $as_echo "yes" >&6; }
24676
24677 $as_echo "#define HAVE_MYSQL_MYSQL_GET_SSL_CIPHER 1" >>confdefs.h
24678
24679
24680 else
24681
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24683 $as_echo "no" >&6; }
24684
24685
24686 fi
24687 rm -f core conftest.err conftest.$ac_objext \
24688 conftest$ac_exeext conftest.$ac_ext
24689
24690 CPPFLAGS="$saved_cppflags"
24691 LDFLAGS="$saved_ldflags"
24692 LIBS="$saved_libs"
24693 fi
24694
24695 if test x"$pr_use_openssl" = xyes; then
24696
24697 $as_echo "#define PR_USE_OPENSSL 1" >>confdefs.h
24698
24699 ac_build_addl_libs="$ac_build_addl_libs -lssl -lcrypto"
24700
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL 1.x is compiled with FIPS support" >&5
24702 $as_echo_n "checking whether OpenSSL 1.x is compiled with FIPS support... " >&6; }
24703 saved_libs="$LIBS"
24704 LIBS="$LIBS -lcrypto"
24705
24706 if test "$cross_compiling" = yes; then :
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
24708 $as_echo "cross-compiling" >&6; }
24709
24710 else
24711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24712 /* end confdefs.h. */
24713
24714 #include <openssl/crypto.h>
24715 #include <openssl/fips.h>
24716 int main(int argc, char *argv[]) {
24717 # ifdef OPENSSL_FIPS
24718 return 0;
24719 # else
24720 return 1;
24721 #endif
24722 }
24723
24724 _ACEOF
24725 if ac_fn_c_try_run "$LINENO"; then :
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24727 $as_echo "yes" >&6; };
24728 $as_echo "#define PR_USE_OPENSSL_FIPS 1" >>confdefs.h
24729
24730 else
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24732 $as_echo "no" >&6; }
24733 fi
24734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24735 conftest.$ac_objext conftest.beam conftest.$ac_ext
24736 fi
24737
24738 LIBS="$saved_libs"
24739
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL functions succeeds" >&5
24741 $as_echo_n "checking whether linking with OpenSSL functions succeeds... " >&6; }
24742 saved_libs="$LIBS"
24743 LIBS="-lcrypto $LIBS"
24744
24745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24746 /* end confdefs.h. */
24747
24748 #include <openssl/evp.h>
24749
24750 int
24751 main ()
24752 {
24753
24754 SSLeay_add_all_algorithms();
24755
24756 ;
24757 return 0;
24758 }
24759 _ACEOF
24760 if ac_fn_c_try_link "$LINENO"; then :
24761
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24763 $as_echo "yes" >&6; }
24764 LIBS="$saved_libs"
24765
24766 else
24767
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24769 $as_echo "no" >&6; }
24770
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL functions requires -ldl" >&5
24772 $as_echo_n "checking whether linking with OpenSSL functions requires -ldl... " >&6; }
24773 LIBS="-lcrypto -ldl $LIBS"
24774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24775 /* end confdefs.h. */
24776
24777 #include <openssl/evp.h>
24778
24779 int
24780 main ()
24781 {
24782
24783 SSLeay_add_all_algorithms();
24784
24785 ;
24786 return 0;
24787 }
24788 _ACEOF
24789 if ac_fn_c_try_link "$LINENO"; then :
24790
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24792 $as_echo "yes" >&6; }
24793 LIBS="$saved_libs -ldl"
24794
24795 else
24796
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24798 $as_echo "no" >&6; }
24799 LIBS="$saved_libs"
24800
24801
24802 fi
24803 rm -f core conftest.err conftest.$ac_objext \
24804 conftest$ac_exeext conftest.$ac_ext
24805
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linking with OpenSSL functions requires -lz" >&5
24807 $as_echo_n "checking whether linking with OpenSSL functions requires -lz... " >&6; }
24808 saved_libs="$LIBS"
24809 LIBS="-lcrypto -lz $LIBS"
24810
24811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24812 /* end confdefs.h. */
24813
24814 #include <openssl/evp.h>
24815 #include <openssl/bio.h>
24816 #include <openssl/comp.h>
24817
24818 int
24819 main ()
24820 {
24821
24822 BIO *bio;
24823 SSLeay_add_all_algorithms();
24824 bio = BIO_new(BIO_f_zlib());
24825
24826 ;
24827 return 0;
24828 }
24829 _ACEOF
24830 if ac_fn_c_try_link "$LINENO"; then :
24831
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24833 $as_echo "yes" >&6; }
24834 LIBS="$saved_libs -lz"
24835
24836 else
24837
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24839 $as_echo "no" >&6; }
24840 LIBS="$saved_libs"
24841
24842
24843 fi
24844 rm -f core conftest.err conftest.$ac_objext \
24845 conftest$ac_exeext conftest.$ac_ext
24846
24847
24848 fi
24849 rm -f core conftest.err conftest.$ac_objext \
24850 conftest$ac_exeext conftest.$ac_ext
24851
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has BIO_s_secmem support" >&5
24853 $as_echo_n "checking whether OpenSSL has BIO_s_secmem support... " >&6; }
24854 saved_libs="$LIBS"
24855 LIBS="-lcrypto $LIBS"
24856
24857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24858 /* end confdefs.h. */
24859
24860 #include <openssl/bio.h>
24861
24862 int
24863 main ()
24864 {
24865
24866 BIO *bio = BIO_s_secmem();
24867
24868 ;
24869 return 0;
24870 }
24871 _ACEOF
24872 if ac_fn_c_try_link "$LINENO"; then :
24873
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24875 $as_echo "yes" >&6; }
24876
24877 $as_echo "#define PR_USE_OPENSSL_BIO_SECMEM 1" >>confdefs.h
24878
24879
24880 else
24881
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24883 $as_echo "no" >&6; }
24884
24885
24886 fi
24887 rm -f core conftest.err conftest.$ac_objext \
24888 conftest$ac_exeext conftest.$ac_ext
24889 LIBS="$saved_libs"
24890
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has complete ECC support" >&5
24892 $as_echo_n "checking whether OpenSSL has complete ECC support... " >&6; }
24893 saved_libs="$LIBS"
24894 LIBS="-lcrypto $LIBS"
24895
24896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24897 /* end confdefs.h. */
24898
24899 #include <openssl/ec.h>
24900 #include <openssl/ecdh.h>
24901 #include <openssl/ecdsa.h>
24902 #include <openssl/evp.h>
24903 #include <openssl/objects.h>
24904 #include <openssl/opensslv.h>
24905 #if OPENSSL_VERSION_NUMBER < 0x0090807f /* 0.9.8g */
24906 # error "OpenSSL < 0.9.8g has unreliable ECC code"
24907 #endif
24908
24909 int
24910 main ()
24911 {
24912
24913 EC_KEY *e = EC_KEY_new_by_curve_name(NID_secp521r1);
24914 const EVP_MD *m = EVP_sha512();
24915
24916 ;
24917 return 0;
24918 }
24919 _ACEOF
24920 if ac_fn_c_try_link "$LINENO"; then :
24921
24922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24923 $as_echo "yes" >&6; }
24924
24925 $as_echo "#define PR_USE_OPENSSL_ECC 1" >>confdefs.h
24926
24927
24928 else
24929
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24931 $as_echo "no" >&6; }
24932
24933
24934 fi
24935 rm -f core conftest.err conftest.$ac_objext \
24936 conftest$ac_exeext conftest.$ac_ext
24937 LIBS="$saved_libs"
24938
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has ENGINE support" >&5
24940 $as_echo_n "checking whether OpenSSL has ENGINE support... " >&6; }
24941 saved_libs="$LIBS"
24942 LIBS="-lcrypto $LIBS"
24943
24944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24945 /* end confdefs.h. */
24946
24947 #include <openssl/engine.h>
24948
24949 int
24950 main ()
24951 {
24952
24953 (void) ENGINE_set_default(NULL, 0);
24954
24955 ;
24956 return 0;
24957 }
24958 _ACEOF
24959 if ac_fn_c_try_link "$LINENO"; then :
24960
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24962 $as_echo "yes" >&6; }
24963
24964 $as_echo "#define PR_USE_OPENSSL_ENGINE 1" >>confdefs.h
24965
24966
24967 else
24968
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24970 $as_echo "no" >&6; }
24971
24972
24973 fi
24974 rm -f core conftest.err conftest.$ac_objext \
24975 conftest$ac_exeext conftest.$ac_ext
24976 LIBS="$saved_libs"
24977
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has EVP_CipherInit_ex support" >&5
24979 $as_echo_n "checking whether OpenSSL has EVP_CipherInit_ex support... " >&6; }
24980 saved_libs="$LIBS"
24981 LIBS="-lcrypto $LIBS"
24982
24983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24984 /* end confdefs.h. */
24985
24986 #include <openssl/evp.h>
24987
24988 int
24989 main ()
24990 {
24991
24992 (void) EVP_CipherInit_ex(NULL, NULL, NULL, NULL, NULL, 1);
24993
24994 ;
24995 return 0;
24996 }
24997 _ACEOF
24998 if ac_fn_c_try_link "$LINENO"; then :
24999
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25001 $as_echo "yes" >&6; }
25002
25003 $as_echo "#define PR_USE_OPENSSL_EVP_CIPHERINIT_EX 1" >>confdefs.h
25004
25005
25006 else
25007
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25009 $as_echo "no" >&6; }
25010
25011
25012 fi
25013 rm -f core conftest.err conftest.$ac_objext \
25014 conftest$ac_exeext conftest.$ac_ext
25015 LIBS="$saved_libs"
25016
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has ALPN support" >&5
25018 $as_echo_n "checking whether OpenSSL has ALPN support... " >&6; }
25019 saved_libs="$LIBS"
25020 LIBS="-lcrypto -lssl $LIBS"
25021
25022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25023 /* end confdefs.h. */
25024
25025 #ifdef HAVE_STDDEF_H
25026 # include <stddef.h>
25027 #endif
25028 #ifdef HAVE_STDLIB_H
25029 # include <stdlib.h>
25030 #endif
25031 #include <openssl/ssl.h>
25032
25033 int
25034 main ()
25035 {
25036
25037 SSL_CTX *ctx = NULL;
25038 SSL_CTX_set_alpn_select_cb(ctx, NULL, NULL);
25039
25040 ;
25041 return 0;
25042 }
25043 _ACEOF
25044 if ac_fn_c_try_link "$LINENO"; then :
25045
25046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25047 $as_echo "yes" >&6; }
25048
25049 $as_echo "#define PR_USE_OPENSSL_ALPN 1" >>confdefs.h
25050
25051
25052 else
25053
25054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25055 $as_echo "no" >&6; }
25056
25057
25058 fi
25059 rm -f core conftest.err conftest.$ac_objext \
25060 conftest$ac_exeext conftest.$ac_ext
25061 LIBS="$saved_libs"
25062
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has NPN support" >&5
25064 $as_echo_n "checking whether OpenSSL has NPN support... " >&6; }
25065 saved_libs="$LIBS"
25066 LIBS="-lcrypto -lssl $LIBS"
25067
25068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25069 /* end confdefs.h. */
25070
25071 #ifdef HAVE_STDDEF_H
25072 # include <stddef.h>
25073 #endif
25074 #ifdef HAVE_STDLIB_H
25075 # include <stdlib.h>
25076 #endif
25077 #include <openssl/ssl.h>
25078
25079 int
25080 main ()
25081 {
25082
25083 SSL_CTX *ctx = NULL;
25084 SSL_CTX_set_next_protos_advertised_cb(ctx, NULL, NULL);
25085
25086 ;
25087 return 0;
25088 }
25089 _ACEOF
25090 if ac_fn_c_try_link "$LINENO"; then :
25091
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25093 $as_echo "yes" >&6; }
25094
25095 $as_echo "#define PR_USE_OPENSSL_NPN 1" >>confdefs.h
25096
25097
25098 else
25099
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25101 $as_echo "no" >&6; }
25102
25103
25104 fi
25105 rm -f core conftest.err conftest.$ac_objext \
25106 conftest$ac_exeext conftest.$ac_ext
25107 LIBS="$saved_libs"
25108
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has OCSP support" >&5
25110 $as_echo_n "checking whether OpenSSL has OCSP support... " >&6; }
25111 saved_libs="$LIBS"
25112 LIBS="-lcrypto -lssl $LIBS"
25113
25114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25115 /* end confdefs.h. */
25116
25117 #ifdef HAVE_STDDEF_H
25118 # include <stddef.h>
25119 #endif
25120 #ifdef HAVE_STDLIB_H
25121 # include <stdlib.h>
25122 #endif
25123 #include <openssl/ssl.h>
25124 #include <openssl/ocsp.h>
25125
25126 int
25127 main ()
25128 {
25129
25130 SSL_CTX *ctx = NULL;
25131 SSL_CTX_set_tlsext_status_cb(ctx, NULL);
25132 SSL_CTX_set_tlsext_status_arg(ctx, NULL);
25133
25134 ;
25135 return 0;
25136 }
25137 _ACEOF
25138 if ac_fn_c_try_link "$LINENO"; then :
25139
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25141 $as_echo "yes" >&6; }
25142
25143 $as_echo "#define PR_USE_OPENSSL_OCSP 1" >>confdefs.h
25144
25145
25146 else
25147
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25149 $as_echo "no" >&6; }
25150
25151
25152 fi
25153 rm -f core conftest.err conftest.$ac_objext \
25154 conftest$ac_exeext conftest.$ac_ext
25155 LIBS="$saved_libs"
25156
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has OSSL_PROVIDER_load support" >&5
25158 $as_echo_n "checking whether OpenSSL has OSSL_PROVIDER_load support... " >&6; }
25159 saved_libs="$LIBS"
25160 LIBS="-lcrypto $LIBS"
25161
25162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25163 /* end confdefs.h. */
25164
25165 #include <openssl/provider.h>
25166
25167 int
25168 main ()
25169 {
25170
25171 OSSL_PROVIDER *provider;
25172 provider = OSSL_PROVIDER_load(NULL, "default");
25173
25174 ;
25175 return 0;
25176 }
25177 _ACEOF
25178 if ac_fn_c_try_link "$LINENO"; then :
25179
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25181 $as_echo "yes" >&6; }
25182
25183 $as_echo "#define PR_USE_OPENSSL_OSSL_PROVIDER_LOAD 1" >>confdefs.h
25184
25185 LIBS="$saved_libs"
25186
25187 else
25188
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25190 $as_echo "no" >&6; }
25191 LIBS="$saved_libs"
25192
25193
25194 fi
25195 rm -f core conftest.err conftest.$ac_objext \
25196 conftest$ac_exeext conftest.$ac_ext
25197 LIBS="$saved_libs"
25198
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL 3.x has FIPS support" >&5
25200 $as_echo_n "checking whether OpenSSL 3.x has FIPS support... " >&6; }
25201 saved_libs="$LIBS"
25202 LIBS="-lcrypto $LIBS"
25203
25204 if test "$cross_compiling" = yes; then :
25205
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
25207 $as_echo "cross-compiling" >&6; }
25208
25209
25210 else
25211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25212 /* end confdefs.h. */
25213
25214 #include <openssl/err.h>
25215 #if defined(PR_USE_OPENSSL_OSSL_PROVIDER_LOAD)
25216 # include <openssl/provider.h>
25217 #endif
25218 int main(int argc, char **argv) {
25219 #if defined(PR_USE_OPENSSL_OSSL_PROVIDER_LOAD)
25220 OSSL_PROVIDER *provider;
25221 ERR_load_crypto_strings();
25222 provider = OSSL_PROVIDER_load(NULL, "fips");
25223 if (provider == NULL) {
25224 fprintf(stdout, "Failed to load FIPS provider\n");
25225 ERR_print_errors_fp(stdout);
25226 exit(1);
25227 }
25228 exit(0);
25229 #else
25230 exit(1);
25231 #endif
25232 }
25233
25234 _ACEOF
25235 if ac_fn_c_try_run "$LINENO"; then :
25236
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25238 $as_echo "yes" >&6; }
25239
25240 $as_echo "#define PR_USE_OPENSSL_FIPS 1" >>confdefs.h
25241
25242
25243 else
25244
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25246 $as_echo "no" >&6; }
25247
25248 fi
25249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25250 conftest.$ac_objext conftest.beam conftest.$ac_ext
25251 fi
25252
25253 LIBS="$saved_libs"
25254
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has SSL num tickets support" >&5
25256 $as_echo_n "checking whether OpenSSL has SSL num tickets support... " >&6; }
25257 saved_libs="$LIBS"
25258 LIBS="-lcrypto -lssl $LIBS"
25259
25260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25261 /* end confdefs.h. */
25262
25263 #include <openssl/ssl.h>
25264
25265 int
25266 main ()
25267 {
25268
25269 (void) SSL_set_num_tickets(NULL, 0);
25270
25271 ;
25272 return 0;
25273 }
25274 _ACEOF
25275 if ac_fn_c_try_link "$LINENO"; then :
25276
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25278 $as_echo "yes" >&6; }
25279
25280 $as_echo "#define PR_USE_OPENSSL_SSL_NUM_TICKETS 1" >>confdefs.h
25281
25282
25283 else
25284
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25286 $as_echo "no" >&6; }
25287
25288
25289 fi
25290 rm -f core conftest.err conftest.$ac_objext \
25291 conftest$ac_exeext conftest.$ac_ext
25292 LIBS="$saved_libs"
25293
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has SSL read ahead support" >&5
25295 $as_echo_n "checking whether OpenSSL has SSL read ahead support... " >&6; }
25296 saved_libs="$LIBS"
25297 LIBS="-lcrypto -lssl $LIBS"
25298
25299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25300 /* end confdefs.h. */
25301
25302 #include <openssl/ssl.h>
25303
25304 int
25305 main ()
25306 {
25307
25308 (void) SSL_set_read_ahead(NULL, 1);
25309
25310 ;
25311 return 0;
25312 }
25313 _ACEOF
25314 if ac_fn_c_try_link "$LINENO"; then :
25315
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25317 $as_echo "yes" >&6; }
25318
25319 $as_echo "#define PR_USE_OPENSSL_SSL_READ_AHEAD 1" >>confdefs.h
25320
25321
25322 else
25323
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25325 $as_echo "no" >&6; }
25326
25327
25328 fi
25329 rm -f core conftest.err conftest.$ac_objext \
25330 conftest$ac_exeext conftest.$ac_ext
25331 LIBS="$saved_libs"
25332
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has SSL session ID context set support" >&5
25334 $as_echo_n "checking whether OpenSSL has SSL session ID context set support... " >&6; }
25335 saved_libs="$LIBS"
25336 LIBS="-lcrypto -lssl $LIBS"
25337
25338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25339 /* end confdefs.h. */
25340
25341 #include <openssl/ssl.h>
25342
25343 int
25344 main ()
25345 {
25346
25347 (void) SSL_SESSION_set1_id_context(NULL, NULL, 0);
25348
25349 ;
25350 return 0;
25351 }
25352 _ACEOF
25353 if ac_fn_c_try_link "$LINENO"; then :
25354
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25356 $as_echo "yes" >&6; }
25357
25358 $as_echo "#define PR_USE_OPENSSL_SSL_SESSION_SET1_ID_CONTEXT 1" >>confdefs.h
25359
25360
25361 else
25362
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25364 $as_echo "no" >&6; }
25365
25366
25367 fi
25368 rm -f core conftest.err conftest.$ac_objext \
25369 conftest$ac_exeext conftest.$ac_ext
25370 LIBS="$saved_libs"
25371
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL has SSL session ticket callback support" >&5
25373 $as_echo_n "checking whether OpenSSL has SSL session ticket callback support... " >&6; }
25374 saved_libs="$LIBS"
25375 LIBS="-lcrypto -lssl $LIBS"
25376
25377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25378 /* end confdefs.h. */
25379
25380 #include <openssl/ssl.h>
25381
25382 int
25383 main ()
25384 {
25385
25386
25387 (void) SSL_CTX_set_session_ticket_cb(NULL, NULL, NULL, NULL);
25388
25389 ;
25390 return 0;
25391 }
25392 _ACEOF
25393 if ac_fn_c_try_link "$LINENO"; then :
25394
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25396 $as_echo "yes" >&6; }
25397
25398 $as_echo "#define PR_USE_OPENSSL_SSL_SESSION_TICKET_CALLBACK 1" >>confdefs.h
25399
25400
25401 else
25402
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25404 $as_echo "no" >&6; }
25405
25406
25407 fi
25408 rm -f core conftest.err conftest.$ac_objext \
25409 conftest$ac_exeext conftest.$ac_ext
25410 LIBS="$saved_libs"
25411
25412 pr_use_pthread_for_openssl="no"
25413 if test x"$openssl_cmdline" != xno; then
25414 if `$openssl_cmdline version 2>/dev/null 1>&2`; then
25415 openssl_cflags=`$openssl_cmdline version -f 2>/dev/null`
25416 if test ! -z "$openssl_cflags"; then
25417 # Look for the -pthread flag, indicating that this OpenSSL was built
25418 # with threads support (see Bug#3795)
25419 for openssl_cflag in $openssl_cflags; do
25420 if test x"$openssl_cflag" = x"-pthread"; then
25421 pr_use_pthread_for_openssl="yes"
25422 fi
25423 done
25424
25425 if test x"$pr_use_pthread_for_openssl" = xno ; then
25426 # If we're on FreeBSD, AND if OpenSSL is being used, AND if
25427 # openssl version -f shows no flags, then ASSUME that we do need
25428 # the -pthread flag, to avoid regressions of Bug#3795.
25429 if test `echo $ostype | grep -c FREEBSD` != "0" ; then
25430 pr_use_pthread_for_openssl="yes"
25431 fi
25432 fi
25433 fi
25434 fi
25435 else
25436 # If we're on FreeBSD, AND if OpenSSL is being used, then ASSUME that we
25437 # do need the -pthread flag, to avoid regressions of Bug#3795.
25438 if test `echo $ostype | grep -c DFREEBSD` != "0" ; then
25439 pr_use_pthread_for_openssl="yes"
25440 fi
25441 fi
25442
25443 if test x"$pr_use_pthread_for_openssl" = xyes ; then
25444 LIBS="$LIBS -pthread"
25445 fi
25446
25447 if test x"$enable_redis" = xyes; then
25448 ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis_ssl.h" "ac_cv_header_hiredis_hiredis_ssl_h" "
25449 #ifdef HAVE_HIREDIS_HIREDIS_H
25450 # include <hiredis/hiredis.h>
25451 #endif
25452
25453
25454 "
25455 if test "x$ac_cv_header_hiredis_hiredis_ssl_h" = xyes; then :
25456
25457 $as_echo "#define HAVE_HIREDIS_HIREDIS_SSL_H 1" >>confdefs.h
25458
25459
25460 fi
25461
25462
25463
25464 saved_libs="$LIBS"
25465 LIBS="-lcrypto -lssl $LIBS"
25466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redisInitiateSSL in -lhiredis_ssl" >&5
25467 $as_echo_n "checking for redisInitiateSSL in -lhiredis_ssl... " >&6; }
25468 if ${ac_cv_lib_hiredis_ssl_redisInitiateSSL+:} false; then :
25469 $as_echo_n "(cached) " >&6
25470 else
25471 ac_check_lib_save_LIBS=$LIBS
25472 LIBS="-lhiredis_ssl $LIBS"
25473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25474 /* end confdefs.h. */
25475
25476 /* Override any GCC internal prototype to avoid an error.
25477 Use char because int might match the return type of a GCC
25478 builtin and then its argument prototype would still apply. */
25479 #ifdef __cplusplus
25480 extern "C"
25481 #endif
25482 char redisInitiateSSL ();
25483 int
25484 main ()
25485 {
25486 return redisInitiateSSL ();
25487 ;
25488 return 0;
25489 }
25490 _ACEOF
25491 if ac_fn_c_try_link "$LINENO"; then :
25492 ac_cv_lib_hiredis_ssl_redisInitiateSSL=yes
25493 else
25494 ac_cv_lib_hiredis_ssl_redisInitiateSSL=no
25495 fi
25496 rm -f core conftest.err conftest.$ac_objext \
25497 conftest$ac_exeext conftest.$ac_ext
25498 LIBS=$ac_check_lib_save_LIBS
25499 fi
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hiredis_ssl_redisInitiateSSL" >&5
25501 $as_echo "$ac_cv_lib_hiredis_ssl_redisInitiateSSL" >&6; }
25502 if test "x$ac_cv_lib_hiredis_ssl_redisInitiateSSL" = xyes; then :
25503
25504 $as_echo "#define HAVE_HIREDIS_REDISINITIATESSL 1" >>confdefs.h
25505
25506 saved_libs="$saved_libs -lhiredis_ssl"
25507
25508 fi
25509
25510
25511 LIBS="$saved_libs"
25512 fi
25513 fi
25514
25515 if test x"$pr_use_postgres" = xyes; then
25516 # Check for other Postgres-specific functionality here
25517 saved_ldflags="$LDFLAGS"
25518 saved_libs="$LIBS"
25519 saved_cppflags="$CPPFLAGS"
25520
25521 # fiddle with CPPFLAGS, LDFLAGS
25522 CPPFLAGS="$CPPFLAGS $ac_build_addl_includes"
25523 LDFLAGS="$LDFLAGS $ac_build_addl_libdirs"
25524 LIBS="$LIBS -lm -lpq"
25525
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres's PQescapeStringConn" >&5
25527 $as_echo_n "checking for Postgres's PQescapeStringConn... " >&6; }
25528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25529 /* end confdefs.h. */
25530 #ifdef HAVE_STDDEF_H
25531 # include <stddef.h>
25532 #endif
25533 #ifdef HAVE_STDLIB_H
25534 # include <stdlib.h>
25535 #endif
25536 #ifdef HAVE_SYS_TYPES_H
25537 # include <sys/types.h>
25538 #endif
25539 #include <libpq-fe.h>
25540
25541 int
25542 main ()
25543 {
25544
25545 char *input = NULL, *output = NULL;
25546 size_t inputlen = 0;
25547 PGconn *postgres = NULL;
25548 int pgerr = 0;
25549 PQescapeStringConn(postgres, output, input, inputlen, &pgerr);
25550
25551 ;
25552 return 0;
25553 }
25554 _ACEOF
25555 if ac_fn_c_try_link "$LINENO"; then :
25556
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25558 $as_echo "yes" >&6; }
25559
25560 $as_echo "#define HAVE_POSTGRES_PQESCAPESTRINGCONN 1" >>confdefs.h
25561
25562
25563 else
25564
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25566 $as_echo "no" >&6; }
25567
25568
25569 fi
25570 rm -f core conftest.err conftest.$ac_objext \
25571 conftest$ac_exeext conftest.$ac_ext
25572
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres's PQgetssl" >&5
25574 $as_echo_n "checking for Postgres's PQgetssl... " >&6; }
25575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25576 /* end confdefs.h. */
25577 #ifdef HAVE_STDDEF_H
25578 # include <stddef.h>
25579 #endif
25580 #ifdef HAVE_STDLIB_H
25581 # include <stdlib.h>
25582 #endif
25583 #ifdef HAVE_SYS_TYPES_H
25584 # include <sys/types.h>
25585 #endif
25586 #include <libpq-fe.h>
25587
25588 int
25589 main ()
25590 {
25591
25592 const PGconn *pg = NULL;
25593 (void) PQgetssl(pg);
25594
25595 ;
25596 return 0;
25597 }
25598 _ACEOF
25599 if ac_fn_c_try_link "$LINENO"; then :
25600
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25602 $as_echo "yes" >&6; }
25603
25604 $as_echo "#define HAVE_POSTGRES_PQGETSSL 1" >>confdefs.h
25605
25606
25607 else
25608
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25610 $as_echo "no" >&6; }
25611
25612
25613 fi
25614 rm -f core conftest.err conftest.$ac_objext \
25615 conftest$ac_exeext conftest.$ac_ext
25616
25617 # restore CPPFLAGS, LDFLAGS
25618 CPPFLAGS="$saved_cppflags"
25619 LDFLAGS="$saved_ldflags"
25620
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Postgres's PQinitOpenSSL" >&5
25622 $as_echo_n "checking for Postgres's PQinitOpenSSL... " >&6; }
25623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25624 /* end confdefs.h. */
25625
25626 #ifdef HAVE_STDLIB_H
25627 # include <stdlib.h>
25628 #endif
25629 #ifdef HAVE_SYS_TYPES_H
25630 # include <sys/types.h>
25631 #endif
25632 #include <libpq-fe.h>
25633
25634 int
25635 main ()
25636 {
25637
25638 int init_ssl = 0, init_crypto = 0;
25639 PQinitOpenSSL(init_ssl, init_crypto);
25640
25641 ;
25642 return 0;
25643 }
25644 _ACEOF
25645 if ac_fn_c_try_link "$LINENO"; then :
25646
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25648 $as_echo "yes" >&6; }
25649
25650 $as_echo "#define HAVE_POSTGRES_PQINITOPENSSL 1" >>confdefs.h
25651
25652
25653 else
25654
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25656 $as_echo "no" >&6; }
25657
25658
25659 fi
25660 rm -f core conftest.err conftest.$ac_objext \
25661 conftest$ac_exeext conftest.$ac_ext
25662
25663 # restore CPPFLAGS, LDFLAGS, LIBS
25664 CPPFLAGS="$saved_cppflags"
25665 LDFLAGS="$saved_ldflags"
25666 LIBS="$saved_libs"
25667 fi
25668
25669 if test x"$pr_use_sodium" = xyes; then
25670 ac_fn_c_check_header_mongrel "$LINENO" "sodium.h" "ac_cv_header_sodium_h" "$ac_includes_default"
25671 if test "x$ac_cv_header_sodium_h" = xyes; then :
25672
25673 $as_echo "#define HAVE_SODIUM_H 1" >>confdefs.h
25674
25675
25676 $as_echo "#define PR_USE_SODIUM 1" >>confdefs.h
25677
25678 ac_build_addl_libs="$ac_build_addl_libs -lsodium"
25679 ac_orig_libs="$ac_orig_libs -lsodium"
25680 SHARED_MODULE_LIBS="$SHARED_MODULE_LIBS -lsodium"
25681
25682 fi
25683
25684
25685 fi
25686
25687 for module in $ac_shared_modules ; do
25688 moduledir=`echo "$module" | sed -e 's/\.la$//'`;
25689 modulename=`echo "$module" | sed -e 's/\.la$//'`;
25690 src=`echo "$module" | sed -e 's/\.o$//'`.c;
25691 srcinc=`echo "$module" | sed -e 's/\.o$//'`.h;
25692
25693 if test -f $srcdir/modules/$src -o -f $srcdir/contrib/$src; then
25694 continue
25695
25696 elif test -d $srcdir/modules/$moduledir; then
25697 ac_shared_module_dirs="$ac_shared_module_dirs modules/$moduledir";
25698 ac_shared_modules=`echo "$ac_shared_modules" | sed -e "s/$modulename\.la//"`
25699
25700 elif test -d $srcdir/contrib/$moduledir; then
25701 ac_shared_module_dirs="$ac_shared_module_dirs contrib/$moduledir";
25702 ac_shared_modules=`echo "$ac_shared_modules" | sed -e "s/$modulename\.la//"`
25703 fi
25704 done
25705
25706 for module in $ac_static_modules ; do
25707 moduledir=`echo "$module" | sed -e 's/\.o$//'`;
25708 modulename=`echo "$module" | sed -e 's/\.o$//'`;
25709 src=`echo "$module" | sed -e 's/\.o$//'`.c;
25710 srcinc=`echo "$module" | sed -e 's/\.o$//'`.h;
25711
25712 if test -f $srcdir/modules/$src -o -f $srcdir/contrib/$src; then
25713 continue
25714
25715 elif test -d $srcdir/modules/$moduledir; then
25716 ac_static_module_dirs="$ac_static_module_dirs modules/$moduledir";
25717 ac_static_modules=`echo "$ac_static_modules" | sed -e "s/$modulename\.o//"`
25718
25719 elif test -d $srcdir/contrib/$moduledir; then
25720 ac_static_module_dirs="$ac_static_module_dirs contrib/$moduledir";
25721 ac_static_modules=`echo "$ac_static_modules" | sed -e "s/$modulename\.o//"`
25722
25723 addonlibs=""
25724 src=`echo "$module" | sed -e 's/\.o$//'`.c;
25725 srcinc=`echo "$module" | sed -e 's/\.o$//'`.h;
25726
25727 if test -f $srcdir/contrib/$moduledir/$src ; then
25728 srcarch=`sed -n '/.*\$Archive: \(.*\)\$.*/s//\1/p' "$srcdir/contrib/$moduledir/$src"`
25729 srclib=`sed -n '/.*\$Libraries: \(.*\)\$.*/s//\1/p' "$srcdir/contrib/$moduledir/$src"`
25730 else
25731 srcarch=
25732 srclib=
25733 fi
25734
25735 if test -f $srcdir/contrib/$moduledir/$srcinc ; then
25736 if test -z $srcarch ; then
25737 incarch=`sed -n '/.*\$Archive: \(.*\)\$.*/s//\1/p' "$srcdir/contrib/$moduledir/$srcinc"`
25738 else
25739 incarch=
25740 fi
25741
25742 inclib=`sed -n '/.*\$Libraries: \(.*\)\$.*/s//\1/p' "$srcdir/contrib/$moduledir/$srcinc"`
25743 else
25744 incarch=
25745 inclib=
25746 fi
25747
25748 for thearch in $srcarch $incarch; do
25749 archive=`echo "$thearch" | sed -e 's/\.a$//'`
25750
25751 if test x"$archive" != x"$moduledir" ; then
25752 as_fn_error $? "specified archive '$thearch' does not match expected module archive name '$moduledir.a' -- aborting" "$LINENO" 5
25753 fi
25754
25755 ac_static_modules=`echo "$ac_static_modules" | sed -e "s/$modulename\.o//g"`
25756 ac_build_static_modules=`echo "$ac_build_static_modules" | sed -e "s/modules\/$modulename\.o//g"`
25757 ac_build_static_module_archives="$ac_build_static_module_archives contrib/$moduledir/$thearch"
25758 done
25759
25760 for thelib in $srclib $inclib; do
25761 dup="xno"
25762
25763 for somelib in $ac_addl_libs $LIBS; do
25764 if test "$thelib" = "$somelib"; then
25765 dup="xyes"
25766 break
25767 fi
25768 done
25769
25770 if test "$dup" = x"no"; then
25771 addonlibs="$addonlibs $thelib"
25772 fi
25773 done
25774
25775 test x"$addonlibs" = x || ac_addl_libs="$addonlibs $ac_addl_libs"
25776 fi
25777 done
25778
25779 if test ! -z "$ac_shared_module_dirs" ; then
25780 subdirs="$subdirs $ac_shared_module_dirs"
25781
25782 else
25783 ac_shared_module_dirs="\"\""
25784 fi
25785
25786 if test ! -z "$ac_static_module_dirs" ; then
25787 subdirs="$subdirs $ac_static_module_dirs"
25788
25789 else
25790 ac_static_module_dirs="\"\""
25791 fi
25792
25793 for module in $ac_shared_modules; do
25794 if test x"$enable_dso" != xyes ; then
25795 as_fn_error $? "cannot build shared modules without DSO support -- aborting" "$LINENO" 5
25796 fi
25797
25798 moduledir=`echo "$module" | sed -e 's/\.la$//'`;
25799 src=`echo "$module" | sed -e 's/\.la$//'`.c;
25800 srcinc=`echo "$module" | sed -e 's/\.la$//'`.h;
25801
25802 if test -f $srcdir/modules/$src -o -f $srcdir/contrib/$src; then
25803 if test ! -e $srcdir/modules/$src; then
25804 olddir=`pwd`
25805 cd $srcdir/modules
25806 ln -s ../contrib/$src $src
25807 cd $olddir
25808 fi
25809
25810 if test ! -e $srcdir/include/$srcinc -a -f $srcdir/contrib/$srcinc ; then
25811 olddir=`pwd`
25812 cd $srcdir/include
25813 ln -s ../contrib/$srcinc $srcinc
25814 cd $olddir
25815 fi
25816
25817 elif test -d $srcdir/modules/$moduledir -o -d $srcdir/contrib/$moduledir; then
25818 continue
25819
25820 else
25821 as_fn_error $? "source file '$srcdir/modules/$src' cannot be found -- aborting" "$LINENO" 5
25822 fi
25823 done
25824
25825 for module in $ac_static_modules; do
25826 addonlibs=""
25827 moduledir=`echo "$module" | sed -e 's/\.o$//'`;
25828 src=`echo "$module" | sed -e 's/\.o$//'`.c;
25829 srcinc=`echo "$module" | sed -e 's/\.o$//'`.h;
25830
25831 if test -f $srcdir/modules/$src -o -f $srcdir/contrib/$src; then
25832 if test ! -e $srcdir/modules/$src; then
25833 olddir=`pwd`
25834 cd $srcdir/modules
25835 ln -s ../contrib/$src $src
25836 cd $olddir
25837 fi
25838
25839 if test ! -f $srcdir/include/$srcinc -a -f $srcdir/contrib/$srcinc ; then
25840 olddir=`pwd`
25841 cd $srcdir/include
25842 ln -s ../contrib/$srcinc $srcinc
25843 cd $olddir
25844 fi
25845
25846 srclib=`sed -n '/.*\$Libraries: \(.*\)\$.*/s//\1/p' "$srcdir/modules/$src"`
25847
25848 if test -f $srcdir/include/$srcinc ; then
25849 inclib=`sed -n '/.*\$Libraries: \(.*\)\$.*/s//\1/p' "$srcdir/include/$srcinc"`
25850 else
25851 inclib=
25852 fi
25853
25854 for thelib in $srclib $inclib; do
25855 dup="xno"
25856
25857 for somelib in $ac_addl_libs $LIBS; do
25858 if test "$thelib" = "$somelib"; then
25859 dup="xyes"
25860 break
25861 fi
25862 done
25863
25864 if test "$dup" = x"no"; then
25865 addonlibs="$addonlibs $thelib"
25866 fi
25867 done
25868
25869 test x"$addonlibs" = x || ac_addl_libs="$addonlibs $ac_addl_libs"
25870
25871 elif test -d $srcdir/modules/$moduledir -o -d $srcdir/contrib/$moduledir; then
25872 continue
25873
25874 else
25875 as_fn_error $? "source file '$srcdir/modules/$src' cannot be found -- aborting" "$LINENO" 5
25876 fi
25877 done
25878
25879 ac_addl_libs=`echo "$ac_addl_libs" | sed -e 's/ *\$//'`
25880 ac_addl_libs=`echo "$ac_addl_libs" | sed -e 's/^ *//'`
25881 test "x$ac_addl_libs" = x || ac_build_addl_libs="$ac_build_addl_libs $ac_addl_libs"
25882 ac_addl_dirs=`echo "$ac_addl_dirs" | sed -e 's/ *\$//'`
25883 ac_addl_dirs=`echo "$ac_addl_dirs" | sed -e 's/^ *//'`
25884 ADDL_DIRS="$ac_addl_dirs"
25885
25886 ADDL_CPPFLAGS="$ac_orig_cppflags"
25887
25888 # Restore the original CPPFLAGS and LDFLAGS settings
25889 CPPFLAGS="$ac_orig_cppflags"
25890 LDFLAGS="$ac_orig_ldflags"
25891
25892 INCLUDES="$ac_build_addl_includes"
25893 LIBDIRS="$ac_build_addl_libdirs"
25894 LIBRARIES="$ac_build_addl_libs"
25895 SHARED_MODULE_DIRS="$ac_shared_module_dirs"
25896 if test ! -z "$ac_shared_modules" ; then
25897 SHARED_MODULE_OBJS="$ac_shared_modules"
25898 shared_module_sources=`echo "$ac_shared_modules" | sed -e "s/\.o/\.c/g"`
25899 SHARED_MODULE_SRCS="$shared_modules_sources"
25900 else
25901 SHARED_MODULE_OBJS="\"\""
25902 SHARED_MODULE_SRCS="\"\""
25903 fi
25904 STATIC_MODULE_DIRS="$ac_static_module_dirs"
25905 STATIC_MODULE_OBJS="$ac_core_modules $ac_static_modules"
25906 static_module_sources=`echo "$ac_core_modules $ac_static_modules" | sed -e "s/\.o/\.c/g"`
25907 STATIC_MODULE_SRCS="$static_module_sources"
25908 BUILD_SHARED_MODULE_OBJS="$ac_build_shared_modules"
25909 BUILD_STATIC_MODULE_ARCHIVES="$ac_build_static_module_archives"
25910 BUILD_STATIC_MODULE_OBJS="$ac_build_core_modules $ac_build_static_modules"
25911 SHARED_MODULE_LIBS="$ac_orig_libs"
25912
25913 build_version=`cat $srcdir/include/version.h | grep "#define PROFTPD_VERSION_TEXT" | sed -e 's/^.*\"\(.*\)\"/\1/'`
25914 BUILD_VERSION="$build_version"
25915 RELEASE_VERSION=`echo $build_version | sed 's/rc.*$//'`
25916 RC_VERSION=""
25917 if test `echo $build_version | grep -c rc` != "0"; then
25918 RC_VERSION=`echo $build_version | sed 's/^.*rc/rc/'`
25919 fi
25920
25921 pr_saved_prefix="$prefix"
25922 pr_saved_exec_prefix="$exec_prefix"
25923
25924 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25926
25927
25928 cat >>confdefs.h <<_ACEOF
25929 #define PR_CONFIG_DIR "`eval echo "${sysconfdir}"`"
25930 _ACEOF
25931
25932
25933 cat >>confdefs.h <<_ACEOF
25934 #define PR_INCLUDE_DIR "`eval echo "${includedir}"`"
25935 _ACEOF
25936
25937
25938 cat >>confdefs.h <<_ACEOF
25939 #define PR_LIBEXEC_DIR "`eval echo "${libexecdir}"`"
25940 _ACEOF
25941
25942
25943 locale_dir="`eval echo ${localedir}`"
25944 locale_dir="`eval echo ${locale_dir}`"
25945
25946 cat >>confdefs.h <<_ACEOF
25947 #define PR_LOCALE_DIR "`eval echo "${locale_dir}"`"
25948 _ACEOF
25949
25950
25951
25952 cat >>confdefs.h <<_ACEOF
25953 #define PR_RUN_DIR "`eval echo "${localstatedir}"`"
25954 _ACEOF
25955
25956
25957 cat >>confdefs.h <<_ACEOF
25958 #define PR_CONFIG_FILE_PATH "`eval echo "${sysconfdir}/proftpd.conf"`"
25959 _ACEOF
25960
25961
25962 cat >>confdefs.h <<_ACEOF
25963 #define PR_PID_FILE_PATH "`eval echo "${localstatedir}/proftpd.pid"`"
25964 _ACEOF
25965
25966
25967 prefix="$pr_saved_prefix"
25968 exec_prefix="$pr_saved_exec_prefix"
25969
25970 if test x"$pkgconfigdir" = xNONE ; then
25971 pkgconfigdir="${libdir}/pkgconfig"
25972 else
25973 pkgconfigdir="${prefix}/$pkgconfigdir"
25974 fi
25975
25976
25977 if test x"$devel" = xyes ; then
25978
25979 $as_echo "#define PR_USE_DEVEL 1" >>confdefs.h
25980
25981
25982 CFLAGS=`echo "$CFLAGS" | sed -e 's/\-O2//'`
25983 CFLAGS="$CFLAGS $pr_devel_cflags"
25984 LIBS="$LIBS $pr_devel_libs"
25985
25986 if test x"$GCC" = xyes; then
25987
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wcomment" >&5
25989 $as_echo_n "checking whether ${CC-cc} accepts -Wcomment... " >&6; }
25990 echo 'void f(){}' > conftest.c
25991 if test -z "`${CC-cc} -c -Wcomment conftest.c 2>&1`"; then
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25993 $as_echo "yes" >&6; }
25994 CFLAGS="$CFLAGS -Wcomment"
25995 else
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25997 $as_echo "no" >&6; }
25998 fi
25999 rm -fr conftest*
26000
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wconstant-conversion" >&5
26002 $as_echo_n "checking whether ${CC-cc} accepts -Wconstant-conversion... " >&6; }
26003 echo 'void f(){}' > conftest.c
26004 if test -z "`${CC-cc} -c -Wconstant-conversion conftest.c 2>&1`"; then
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26006 $as_echo "yes" >&6; }
26007 CFLAGS="$CFLAGS -Wconstant-conversion"
26008 else
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26010 $as_echo "no" >&6; }
26011 fi
26012 rm -fr conftest*
26013
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wdangling-else" >&5
26015 $as_echo_n "checking whether ${CC-cc} accepts -Wdangling-else... " >&6; }
26016 echo 'void f(){}' > conftest.c
26017 if test -z "`${CC-cc} -c -Wdangling-else conftest.c 2>&1`"; then
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26019 $as_echo "yes" >&6; }
26020 CFLAGS="$CFLAGS -Wdangling-else"
26021 else
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26023 $as_echo "no" >&6; }
26024 fi
26025 rm -fr conftest*
26026
26027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wdeclaration-after-statement" >&5
26028 $as_echo_n "checking whether ${CC-cc} accepts -Wdeclaration-after-statement... " >&6; }
26029 echo 'void f(){}' > conftest.c
26030 if test -z "`${CC-cc} -c -Wdeclaration-after-statement conftest.c 2>&1`"; then
26031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26032 $as_echo "yes" >&6; }
26033 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
26034 else
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26036 $as_echo "no" >&6; }
26037 fi
26038 rm -fr conftest*
26039
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wduplicated-branches" >&5
26041 $as_echo_n "checking whether ${CC-cc} accepts -Wduplicated-branches... " >&6; }
26042 echo 'void f(){}' > conftest.c
26043 if test -z "`${CC-cc} -c -Wduplicated-branches conftest.c 2>&1`"; then
26044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26045 $as_echo "yes" >&6; }
26046 CFLAGS="$CFLAGS -Wduplicated-branches"
26047 else
26048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26049 $as_echo "no" >&6; }
26050 fi
26051 rm -fr conftest*
26052
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wfloat-equal" >&5
26054 $as_echo_n "checking whether ${CC-cc} accepts -Wfloat-equal... " >&6; }
26055 echo 'void f(){}' > conftest.c
26056 if test -z "`${CC-cc} -c -Wfloat-equal conftest.c 2>&1`"; then
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26058 $as_echo "yes" >&6; }
26059 CFLAGS="$CFLAGS -Wfloat-equal"
26060 else
26061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26062 $as_echo "no" >&6; }
26063 fi
26064 rm -fr conftest*
26065
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wformat" >&5
26067 $as_echo_n "checking whether ${CC-cc} accepts -Wformat... " >&6; }
26068 echo 'void f(){}' > conftest.c
26069 if test -z "`${CC-cc} -c -Wformat conftest.c 2>&1`"; then
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26071 $as_echo "yes" >&6; }
26072 CFLAGS="$CFLAGS -Wformat"
26073 else
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26075 $as_echo "no" >&6; }
26076 fi
26077 rm -fr conftest*
26078
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wformat-security" >&5
26080 $as_echo_n "checking whether ${CC-cc} accepts -Wformat-security... " >&6; }
26081 echo 'void f(){}' > conftest.c
26082 if test -z "`${CC-cc} -c -Wformat-security conftest.c 2>&1`"; then
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26084 $as_echo "yes" >&6; }
26085 CFLAGS="$CFLAGS -Wformat-security"
26086 else
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26088 $as_echo "no" >&6; }
26089 fi
26090 rm -fr conftest*
26091
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wimplicit-function-declaration" >&5
26093 $as_echo_n "checking whether ${CC-cc} accepts -Wimplicit-function-declaration... " >&6; }
26094 echo 'void f(){}' > conftest.c
26095 if test -z "`${CC-cc} -c -Wimplicit-function-declaration conftest.c 2>&1`"; then
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26097 $as_echo "yes" >&6; }
26098 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
26099 else
26100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26101 $as_echo "no" >&6; }
26102 fi
26103 rm -fr conftest*
26104
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wmaybe-uninitialized" >&5
26106 $as_echo_n "checking whether ${CC-cc} accepts -Wmaybe-uninitialized... " >&6; }
26107 echo 'void f(){}' > conftest.c
26108 if test -z "`${CC-cc} -c -Wmaybe-uninitialized conftest.c 2>&1`"; then
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26110 $as_echo "yes" >&6; }
26111 CFLAGS="$CFLAGS -Wmaybe-uninitialized"
26112 else
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26114 $as_echo "no" >&6; }
26115 fi
26116 rm -fr conftest*
26117
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wmissing-braces" >&5
26119 $as_echo_n "checking whether ${CC-cc} accepts -Wmissing-braces... " >&6; }
26120 echo 'void f(){}' > conftest.c
26121 if test -z "`${CC-cc} -c -Wmissing-braces conftest.c 2>&1`"; then
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26123 $as_echo "yes" >&6; }
26124 CFLAGS="$CFLAGS -Wmissing-braces"
26125 else
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26127 $as_echo "no" >&6; }
26128 fi
26129 rm -fr conftest*
26130
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wparentheses" >&5
26132 $as_echo_n "checking whether ${CC-cc} accepts -Wparentheses... " >&6; }
26133 echo 'void f(){}' > conftest.c
26134 if test -z "`${CC-cc} -c -Wparentheses conftest.c 2>&1`"; then
26135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26136 $as_echo "yes" >&6; }
26137 CFLAGS="$CFLAGS -Wparentheses"
26138 else
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26140 $as_echo "no" >&6; }
26141 fi
26142 rm -fr conftest*
26143
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wpointer-to-int-cast" >&5
26145 $as_echo_n "checking whether ${CC-cc} accepts -Wpointer-to-int-cast... " >&6; }
26146 echo 'void f(){}' > conftest.c
26147 if test -z "`${CC-cc} -c -Wpointer-to-int-cast conftest.c 2>&1`"; then
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26149 $as_echo "yes" >&6; }
26150 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
26151 else
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26153 $as_echo "no" >&6; }
26154 fi
26155 rm -fr conftest*
26156
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wreturn-local-addr" >&5
26158 $as_echo_n "checking whether ${CC-cc} accepts -Wreturn-local-addr... " >&6; }
26159 echo 'void f(){}' > conftest.c
26160 if test -z "`${CC-cc} -c -Wreturn-local-addr conftest.c 2>&1`"; then
26161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26162 $as_echo "yes" >&6; }
26163 CFLAGS="$CFLAGS -Wreturn-local-addr"
26164 else
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26166 $as_echo "no" >&6; }
26167 fi
26168 rm -fr conftest*
26169
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wstack-protector" >&5
26171 $as_echo_n "checking whether ${CC-cc} accepts -Wstack-protector... " >&6; }
26172 echo 'void f(){}' > conftest.c
26173 if test -z "`${CC-cc} -c -Wstack-protector conftest.c 2>&1`"; then
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26175 $as_echo "yes" >&6; }
26176 CFLAGS="$CFLAGS -Wstack-protector"
26177 else
26178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26179 $as_echo "no" >&6; }
26180 fi
26181 rm -fr conftest*
26182
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wstrict-overflow" >&5
26184 $as_echo_n "checking whether ${CC-cc} accepts -Wstrict-overflow... " >&6; }
26185 echo 'void f(){}' > conftest.c
26186 if test -z "`${CC-cc} -c -Wstrict-overflow conftest.c 2>&1`"; then
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26188 $as_echo "yes" >&6; }
26189 CFLAGS="$CFLAGS -Wstrict-overflow"
26190 else
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26192 $as_echo "no" >&6; }
26193 fi
26194 rm -fr conftest*
26195
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wswitch" >&5
26197 $as_echo_n "checking whether ${CC-cc} accepts -Wswitch... " >&6; }
26198 echo 'void f(){}' > conftest.c
26199 if test -z "`${CC-cc} -c -Wswitch conftest.c 2>&1`"; then
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26201 $as_echo "yes" >&6; }
26202 CFLAGS="$CFLAGS -Wswitch"
26203 else
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26205 $as_echo "no" >&6; }
26206 fi
26207 rm -fr conftest*
26208
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wunreachable-code" >&5
26210 $as_echo_n "checking whether ${CC-cc} accepts -Wunreachable-code... " >&6; }
26211 echo 'void f(){}' > conftest.c
26212 if test -z "`${CC-cc} -c -Wunreachable-code conftest.c 2>&1`"; then
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26214 $as_echo "yes" >&6; }
26215 CFLAGS="$CFLAGS -Wunreachable-code"
26216 else
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26218 $as_echo "no" >&6; }
26219 fi
26220 rm -fr conftest*
26221
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wunused-variable" >&5
26223 $as_echo_n "checking whether ${CC-cc} accepts -Wunused-variable... " >&6; }
26224 echo 'void f(){}' > conftest.c
26225 if test -z "`${CC-cc} -c -Wunused-variable conftest.c 2>&1`"; then
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26227 $as_echo "yes" >&6; }
26228 CFLAGS="$CFLAGS -Wunused-variable"
26229 else
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26231 $as_echo "no" >&6; }
26232 fi
26233 rm -fr conftest*
26234
26235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fstack-protector" >&5
26236 $as_echo_n "checking whether ${CC-cc} accepts -fstack-protector... " >&6; }
26237 echo 'void f(){}' > conftest.c
26238 if test -z "`${CC-cc} -c -fstack-protector conftest.c 2>&1`"; then
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26240 $as_echo "yes" >&6; }
26241 CFLAGS="$CFLAGS -fstack-protector"
26242 else
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26244 $as_echo "no" >&6; }
26245 fi
26246 rm -fr conftest*
26247
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fstack-protector-all" >&5
26249 $as_echo_n "checking whether ${CC-cc} accepts -fstack-protector-all... " >&6; }
26250 echo 'void f(){}' > conftest.c
26251 if test -z "`${CC-cc} -c -fstack-protector-all conftest.c 2>&1`"; then
26252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26253 $as_echo "yes" >&6; }
26254 CFLAGS="$CFLAGS -fstack-protector-all"
26255 else
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26257 $as_echo "no" >&6; }
26258 fi
26259 rm -fr conftest*
26260
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fno-common" >&5
26262 $as_echo_n "checking whether ${CC-cc} accepts -fno-common... " >&6; }
26263 echo 'void f(){}' > conftest.c
26264 if test -z "`${CC-cc} -c -fno-common conftest.c 2>&1`"; then
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26266 $as_echo "yes" >&6; }
26267 CFLAGS="$CFLAGS -fno-common"
26268 else
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26270 $as_echo "no" >&6; }
26271 fi
26272 rm -fr conftest*
26273
26274 fi
26275
26276 INSTALL_STRIP=""
26277 else
26278
26279 if test x"$keepsyms" = xyes ; then
26280 INSTALL_STRIP=""
26281
26282 else
26283 INSTALL_STRIP="-s"
26284 fi
26285 fi
26286
26287 if test "$OSTYPE" = "-DDARWIN6" -o "$OSTYPE" = "-DDARWIN7" -o "$OSTYPE" = "-DDARWIN8"; then
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -Wno-long-double" >&5
26289 $as_echo_n "checking whether ${CC-cc} accepts -Wno-long-double... " >&6; }
26290 echo 'void f(){}' > conftest.c
26291 if test -z "`${CC-cc} -c -Wno-long-double conftest.c 2>&1`"; then
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26293 $as_echo "yes" >&6; }
26294 CFLAGS="$CFLAGS -Wno-long-double"
26295 else
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26297 $as_echo "no" >&6; }
26298 fi
26299 rm -fr conftest*
26300
26301 fi
26302
26303 my_cflags="\"$CFLAGS\""
26304
26305 cat >>confdefs.h <<_ACEOF
26306 #define PR_BUILD_CFLAGS $my_cflags
26307 _ACEOF
26308
26309 my_ldflags="\"$LDFLAGS $LIBDIRS\""
26310
26311 cat >>confdefs.h <<_ACEOF
26312 #define PR_BUILD_LDFLAGS $my_ldflags
26313 _ACEOF
26314
26315 my_libs="\"$LIBRARIES $LIBS\""
26316
26317 cat >>confdefs.h <<_ACEOF
26318 #define PR_BUILD_LIBS $my_libs
26319 _ACEOF
26320
26321
26322
26323
26324
26325
26326
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
26357 ac_config_headers="$ac_config_headers config.h"
26358
26359
26360 ac_config_files="$ac_config_files contrib/Makefile include/Makefile lib/Makefile locale/Makefile modules/Makefile src/Makefile src/prxs src/ftpdctl.8 src/proftpd.8 src/proftpd.conf.5 src/xferlog.5 tests/Makefile utils/Makefile utils/ftpcount.1 utils/ftpscrub.8 utils/ftpshut.8 utils/ftptop.1 utils/ftpwho.1 Makefile Make.rules"
26361
26362 ac_config_commands="$ac_config_commands default"
26363
26364 cat >confcache <<\_ACEOF
26365 # This file is a shell script that caches the results of configure
26366 # tests run on this system so they can be shared between configure
26367 # scripts and configure runs, see configure's option --config-cache.
26368 # It is not useful on other systems. If it contains results you don't
26369 # want to keep, you may remove or edit it.
26370 #
26371 # config.status only pays attention to the cache file if you give it
26372 # the --recheck option to rerun configure.
26373 #
26374 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26375 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26376 # following values.
26377
26378 _ACEOF
26379
26380 # The following way of writing the cache mishandles newlines in values,
26381 # but we know of no workaround that is simple, portable, and efficient.
26382 # So, we kill variables containing newlines.
26383 # Ultrix sh set writes to stderr and can't be redirected directly,
26384 # and sets the high bit in the cache file unless we assign to the vars.
26385 (
26386 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26387 eval ac_val=\$$ac_var
26388 case $ac_val in #(
26389 *${as_nl}*)
26390 case $ac_var in #(
26391 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26392 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26393 esac
26394 case $ac_var in #(
26395 _ | IFS | as_nl) ;; #(
26396 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26397 *) { eval $ac_var=; unset $ac_var;} ;;
26398 esac ;;
26399 esac
26400 done
26401
26402 (set) 2>&1 |
26403 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26404 *${as_nl}ac_space=\ *)
26405 # `set' does not quote correctly, so add quotes: double-quote
26406 # substitution turns \\\\ into \\, and sed turns \\ into \.
26407 sed -n \
26408 "s/'/'\\\\''/g;
26409 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26410 ;; #(
26411 *)
26412 # `set' quotes correctly as required by POSIX, so do not add quotes.
26413 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26414 ;;
26415 esac |
26416 sort
26417 ) |
26418 sed '
26419 /^ac_cv_env_/b end
26420 t clear
26421 :clear
26422 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26423 t end
26424 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26425 :end' >>confcache
26426 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26427 if test -w "$cache_file"; then
26428 if test "x$cache_file" != "x/dev/null"; then
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26430 $as_echo "$as_me: updating cache $cache_file" >&6;}
26431 if test ! -f "$cache_file" || test -h "$cache_file"; then
26432 cat confcache >"$cache_file"
26433 else
26434 case $cache_file in #(
26435 */* | ?:*)
26436 mv -f confcache "$cache_file"$$ &&
26437 mv -f "$cache_file"$$ "$cache_file" ;; #(
26438 *)
26439 mv -f confcache "$cache_file" ;;
26440 esac
26441 fi
26442 fi
26443 else
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26445 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26446 fi
26447 fi
26448 rm -f confcache
26449
26450 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26451 # Let make expand exec_prefix.
26452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26453
26454 DEFS=-DHAVE_CONFIG_H
26455
26456 ac_libobjs=
26457 ac_ltlibobjs=
26458 U=
26459 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26460 # 1. Remove the extension, and $U if already installed.
26461 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26462 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26463 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26464 # will be set to the directory where LIBOBJS objects are built.
26465 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26466 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26467 done
26468 LIBOBJS=$ac_libobjs
26469
26470 LTLIBOBJS=$ac_ltlibobjs
26471
26472
26473 LT_CONFIG_H=config.h
26474
26475 _ltdl_libobjs=
26476 _ltdl_ltlibobjs=
26477 if test -n "$_LT_LIBOBJS"; then
26478 # Remove the extension.
26479 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
26480 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
26481 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
26482 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
26483 done
26484 fi
26485 ltdl_LIBOBJS=$_ltdl_libobjs
26486
26487 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
26488
26489
26490
26491 : "${CONFIG_STATUS=./config.status}"
26492 ac_write_fail=0
26493 ac_clean_files_save=$ac_clean_files
26494 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26496 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26497 as_write_fail=0
26498 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26499 #! $SHELL
26500 # Generated by $as_me.
26501 # Run this file to recreate the current configuration.
26502 # Compiler output produced by configure, useful for debugging
26503 # configure, is in config.log if it exists.
26504
26505 debug=false
26506 ac_cs_recheck=false
26507 ac_cs_silent=false
26508
26509 SHELL=\${CONFIG_SHELL-$SHELL}
26510 export SHELL
26511 _ASEOF
26512 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26513 ## -------------------- ##
26514 ## M4sh Initialization. ##
26515 ## -------------------- ##
26516
26517 # Be more Bourne compatible
26518 DUALCASE=1; export DUALCASE # for MKS sh
26519 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26520 emulate sh
26521 NULLCMD=:
26522 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26523 # is contrary to our usage. Disable this feature.
26524 alias -g '${1+"$@"}'='"$@"'
26525 setopt NO_GLOB_SUBST
26526 else
26527 case `(set -o) 2>/dev/null` in #(
26528 *posix*) :
26529 set -o posix ;; #(
26530 *) :
26531 ;;
26532 esac
26533 fi
26534
26535
26536 as_nl='
26537 '
26538 export as_nl
26539 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26540 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26541 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26542 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26543 # Prefer a ksh shell builtin over an external printf program on Solaris,
26544 # but without wasting forks for bash or zsh.
26545 if test -z "$BASH_VERSION$ZSH_VERSION" \
26546 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26547 as_echo='print -r --'
26548 as_echo_n='print -rn --'
26549 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26550 as_echo='printf %s\n'
26551 as_echo_n='printf %s'
26552 else
26553 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26554 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26555 as_echo_n='/usr/ucb/echo -n'
26556 else
26557 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26558 as_echo_n_body='eval
26559 arg=$1;
26560 case $arg in #(
26561 *"$as_nl"*)
26562 expr "X$arg" : "X\\(.*\\)$as_nl";
26563 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26564 esac;
26565 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26566 '
26567 export as_echo_n_body
26568 as_echo_n='sh -c $as_echo_n_body as_echo'
26569 fi
26570 export as_echo_body
26571 as_echo='sh -c $as_echo_body as_echo'
26572 fi
26573
26574 # The user is always right.
26575 if test "${PATH_SEPARATOR+set}" != set; then
26576 PATH_SEPARATOR=:
26577 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26578 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26579 PATH_SEPARATOR=';'
26580 }
26581 fi
26582
26583
26584 # IFS
26585 # We need space, tab and new line, in precisely that order. Quoting is
26586 # there to prevent editors from complaining about space-tab.
26587 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26588 # splitting by setting IFS to empty value.)
26589 IFS=" "" $as_nl"
26590
26591 # Find who we are. Look in the path if we contain no directory separator.
26592 as_myself=
26593 case $0 in #((
26594 *[\\/]* ) as_myself=$0 ;;
26595 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26596 for as_dir in $PATH
26597 do
26598 IFS=$as_save_IFS
26599 test -z "$as_dir" && as_dir=.
26600 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26601 done
26602 IFS=$as_save_IFS
26603
26604 ;;
26605 esac
26606 # We did not find ourselves, most probably we were run as `sh COMMAND'
26607 # in which case we are not to be found in the path.
26608 if test "x$as_myself" = x; then
26609 as_myself=$0
26610 fi
26611 if test ! -f "$as_myself"; then
26612 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26613 exit 1
26614 fi
26615
26616 # Unset variables that we do not need and which cause bugs (e.g. in
26617 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26618 # suppresses any "Segmentation fault" message there. '((' could
26619 # trigger a bug in pdksh 5.2.14.
26620 for as_var in BASH_ENV ENV MAIL MAILPATH
26621 do eval test x\${$as_var+set} = xset \
26622 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26623 done
26624 PS1='$ '
26625 PS2='> '
26626 PS4='+ '
26627
26628 # NLS nuisances.
26629 LC_ALL=C
26630 export LC_ALL
26631 LANGUAGE=C
26632 export LANGUAGE
26633
26634 # CDPATH.
26635 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26636
26637
26638 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26639 # ----------------------------------------
26640 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26641 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26642 # script with STATUS, using 1 if that was 0.
26643 as_fn_error ()
26644 {
26645 as_status=$1; test $as_status -eq 0 && as_status=1
26646 if test "$4"; then
26647 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26648 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26649 fi
26650 $as_echo "$as_me: error: $2" >&2
26651 as_fn_exit $as_status
26652 } # as_fn_error
26653
26654
26655 # as_fn_set_status STATUS
26656 # -----------------------
26657 # Set $? to STATUS, without forking.
26658 as_fn_set_status ()
26659 {
26660 return $1
26661 } # as_fn_set_status
26662
26663 # as_fn_exit STATUS
26664 # -----------------
26665 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26666 as_fn_exit ()
26667 {
26668 set +e
26669 as_fn_set_status $1
26670 exit $1
26671 } # as_fn_exit
26672
26673 # as_fn_unset VAR
26674 # ---------------
26675 # Portably unset VAR.
26676 as_fn_unset ()
26677 {
26678 { eval $1=; unset $1;}
26679 }
26680 as_unset=as_fn_unset
26681 # as_fn_append VAR VALUE
26682 # ----------------------
26683 # Append the text in VALUE to the end of the definition contained in VAR. Take
26684 # advantage of any shell optimizations that allow amortized linear growth over
26685 # repeated appends, instead of the typical quadratic growth present in naive
26686 # implementations.
26687 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26688 eval 'as_fn_append ()
26689 {
26690 eval $1+=\$2
26691 }'
26692 else
26693 as_fn_append ()
26694 {
26695 eval $1=\$$1\$2
26696 }
26697 fi # as_fn_append
26698
26699 # as_fn_arith ARG...
26700 # ------------------
26701 # Perform arithmetic evaluation on the ARGs, and store the result in the
26702 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26703 # must be portable across $(()) and expr.
26704 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26705 eval 'as_fn_arith ()
26706 {
26707 as_val=$(( $* ))
26708 }'
26709 else
26710 as_fn_arith ()
26711 {
26712 as_val=`expr "$@" || test $? -eq 1`
26713 }
26714 fi # as_fn_arith
26715
26716
26717 if expr a : '\(a\)' >/dev/null 2>&1 &&
26718 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26719 as_expr=expr
26720 else
26721 as_expr=false
26722 fi
26723
26724 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26725 as_basename=basename
26726 else
26727 as_basename=false
26728 fi
26729
26730 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26731 as_dirname=dirname
26732 else
26733 as_dirname=false
26734 fi
26735
26736 as_me=`$as_basename -- "$0" ||
26737 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26738 X"$0" : 'X\(//\)$' \| \
26739 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26740 $as_echo X/"$0" |
26741 sed '/^.*\/\([^/][^/]*\)\/*$/{
26742 s//\1/
26743 q
26744 }
26745 /^X\/\(\/\/\)$/{
26746 s//\1/
26747 q
26748 }
26749 /^X\/\(\/\).*/{
26750 s//\1/
26751 q
26752 }
26753 s/.*/./; q'`
26754
26755 # Avoid depending upon Character Ranges.
26756 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26757 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26758 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26759 as_cr_digits='0123456789'
26760 as_cr_alnum=$as_cr_Letters$as_cr_digits
26761
26762 ECHO_C= ECHO_N= ECHO_T=
26763 case `echo -n x` in #(((((
26764 -n*)
26765 case `echo 'xy\c'` in
26766 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26767 xy) ECHO_C='\c';;
26768 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26769 ECHO_T=' ';;
26770 esac;;
26771 *)
26772 ECHO_N='-n';;
26773 esac
26774
26775 rm -f conf$$ conf$$.exe conf$$.file
26776 if test -d conf$$.dir; then
26777 rm -f conf$$.dir/conf$$.file
26778 else
26779 rm -f conf$$.dir
26780 mkdir conf$$.dir 2>/dev/null
26781 fi
26782 if (echo >conf$$.file) 2>/dev/null; then
26783 if ln -s conf$$.file conf$$ 2>/dev/null; then
26784 as_ln_s='ln -s'
26785 # ... but there are two gotchas:
26786 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26787 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26788 # In both cases, we have to default to `cp -pR'.
26789 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26790 as_ln_s='cp -pR'
26791 elif ln conf$$.file conf$$ 2>/dev/null; then
26792 as_ln_s=ln
26793 else
26794 as_ln_s='cp -pR'
26795 fi
26796 else
26797 as_ln_s='cp -pR'
26798 fi
26799 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26800 rmdir conf$$.dir 2>/dev/null
26801
26802
26803 # as_fn_mkdir_p
26804 # -------------
26805 # Create "$as_dir" as a directory, including parents if necessary.
26806 as_fn_mkdir_p ()
26807 {
26808
26809 case $as_dir in #(
26810 -*) as_dir=./$as_dir;;
26811 esac
26812 test -d "$as_dir" || eval $as_mkdir_p || {
26813 as_dirs=
26814 while :; do
26815 case $as_dir in #(
26816 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26817 *) as_qdir=$as_dir;;
26818 esac
26819 as_dirs="'$as_qdir' $as_dirs"
26820 as_dir=`$as_dirname -- "$as_dir" ||
26821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26822 X"$as_dir" : 'X\(//\)[^/]' \| \
26823 X"$as_dir" : 'X\(//\)$' \| \
26824 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26825 $as_echo X"$as_dir" |
26826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26827 s//\1/
26828 q
26829 }
26830 /^X\(\/\/\)[^/].*/{
26831 s//\1/
26832 q
26833 }
26834 /^X\(\/\/\)$/{
26835 s//\1/
26836 q
26837 }
26838 /^X\(\/\).*/{
26839 s//\1/
26840 q
26841 }
26842 s/.*/./; q'`
26843 test -d "$as_dir" && break
26844 done
26845 test -z "$as_dirs" || eval "mkdir $as_dirs"
26846 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26847
26848
26849 } # as_fn_mkdir_p
26850 if mkdir -p . 2>/dev/null; then
26851 as_mkdir_p='mkdir -p "$as_dir"'
26852 else
26853 test -d ./-p && rmdir ./-p
26854 as_mkdir_p=false
26855 fi
26856
26857
26858 # as_fn_executable_p FILE
26859 # -----------------------
26860 # Test if FILE is an executable regular file.
26861 as_fn_executable_p ()
26862 {
26863 test -f "$1" && test -x "$1"
26864 } # as_fn_executable_p
26865 as_test_x='test -x'
26866 as_executable_p=as_fn_executable_p
26867
26868 # Sed expression to map a string onto a valid CPP name.
26869 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26870
26871 # Sed expression to map a string onto a valid variable name.
26872 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26873
26874
26875 exec 6>&1
26876 ## ----------------------------------- ##
26877 ## Main body of $CONFIG_STATUS script. ##
26878 ## ----------------------------------- ##
26879 _ASEOF
26880 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26881
26882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26883 # Save the log message, to keep $0 and so on meaningful, and to
26884 # report actual input values of CONFIG_FILES etc. instead of their
26885 # values after options handling.
26886 ac_log="
26887 This file was extended by $as_me, which was
26888 generated by GNU Autoconf 2.69. Invocation command line was
26889
26890 CONFIG_FILES = $CONFIG_FILES
26891 CONFIG_HEADERS = $CONFIG_HEADERS
26892 CONFIG_LINKS = $CONFIG_LINKS
26893 CONFIG_COMMANDS = $CONFIG_COMMANDS
26894 $ $0 $@
26895
26896 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26897 "
26898
26899 _ACEOF
26900
26901 case $ac_config_files in *"
26902 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26903 esac
26904
26905 case $ac_config_headers in *"
26906 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26907 esac
26908
26909
26910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26911 # Files that config.status was made for.
26912 config_files="$ac_config_files"
26913 config_headers="$ac_config_headers"
26914 config_commands="$ac_config_commands"
26915
26916 _ACEOF
26917
26918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26919 ac_cs_usage="\
26920 \`$as_me' instantiates files and other configuration actions
26921 from templates according to the current configuration. Unless the files
26922 and actions are specified as TAGs, all are instantiated by default.
26923
26924 Usage: $0 [OPTION]... [TAG]...
26925
26926 -h, --help print this help, then exit
26927 -V, --version print version number and configuration settings, then exit
26928 --config print configuration, then exit
26929 -q, --quiet, --silent
26930 do not print progress messages
26931 -d, --debug don't remove temporary files
26932 --recheck update $as_me by reconfiguring in the same conditions
26933 --file=FILE[:TEMPLATE]
26934 instantiate the configuration file FILE
26935 --header=FILE[:TEMPLATE]
26936 instantiate the configuration header FILE
26937
26938 Configuration files:
26939 $config_files
26940
26941 Configuration headers:
26942 $config_headers
26943
26944 Configuration commands:
26945 $config_commands
26946
26947 Report bugs to the package provider."
26948
26949 _ACEOF
26950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26951 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26952 ac_cs_version="\\
26953 config.status
26954 configured by $0, generated by GNU Autoconf 2.69,
26955 with options \\"\$ac_cs_config\\"
26956
26957 Copyright (C) 2012 Free Software Foundation, Inc.
26958 This config.status script is free software; the Free Software Foundation
26959 gives unlimited permission to copy, distribute and modify it."
26960
26961 ac_pwd='$ac_pwd'
26962 srcdir='$srcdir'
26963 INSTALL='$INSTALL'
26964 test -n "\$AWK" || AWK=awk
26965 _ACEOF
26966
26967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26968 # The default lists apply if the user does not specify any file.
26969 ac_need_defaults=:
26970 while test $# != 0
26971 do
26972 case $1 in
26973 --*=?*)
26974 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26975 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26976 ac_shift=:
26977 ;;
26978 --*=)
26979 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26980 ac_optarg=
26981 ac_shift=:
26982 ;;
26983 *)
26984 ac_option=$1
26985 ac_optarg=$2
26986 ac_shift=shift
26987 ;;
26988 esac
26989
26990 case $ac_option in
26991 # Handling of the options.
26992 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26993 ac_cs_recheck=: ;;
26994 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26995 $as_echo "$ac_cs_version"; exit ;;
26996 --config | --confi | --conf | --con | --co | --c )
26997 $as_echo "$ac_cs_config"; exit ;;
26998 --debug | --debu | --deb | --de | --d | -d )
26999 debug=: ;;
27000 --file | --fil | --fi | --f )
27001 $ac_shift
27002 case $ac_optarg in
27003 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27004 '') as_fn_error $? "missing file argument" ;;
27005 esac
27006 as_fn_append CONFIG_FILES " '$ac_optarg'"
27007 ac_need_defaults=false;;
27008 --header | --heade | --head | --hea )
27009 $ac_shift
27010 case $ac_optarg in
27011 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27012 esac
27013 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27014 ac_need_defaults=false;;
27015 --he | --h)
27016 # Conflict between --help and --header
27017 as_fn_error $? "ambiguous option: \`$1'
27018 Try \`$0 --help' for more information.";;
27019 --help | --hel | -h )
27020 $as_echo "$ac_cs_usage"; exit ;;
27021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27022 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27023 ac_cs_silent=: ;;
27024
27025 # This is an error.
27026 -*) as_fn_error $? "unrecognized option: \`$1'
27027 Try \`$0 --help' for more information." ;;
27028
27029 *) as_fn_append ac_config_targets " $1"
27030 ac_need_defaults=false ;;
27031
27032 esac
27033 shift
27034 done
27035
27036 ac_configure_extra_args=
27037
27038 if $ac_cs_silent; then
27039 exec 6>/dev/null
27040 ac_configure_extra_args="$ac_configure_extra_args --silent"
27041 fi
27042
27043 _ACEOF
27044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27045 if \$ac_cs_recheck; then
27046 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27047 shift
27048 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27049 CONFIG_SHELL='$SHELL'
27050 export CONFIG_SHELL
27051 exec "\$@"
27052 fi
27053
27054 _ACEOF
27055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27056 exec 5>>config.log
27057 {
27058 echo
27059 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27060 ## Running $as_me. ##
27061 _ASBOX
27062 $as_echo "$ac_log"
27063 } >&5
27064
27065 _ACEOF
27066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27067 #
27068 # INIT-COMMANDS
27069 #
27070
27071
27072 # The HP-UX ksh and POSIX shell print the target directory to stdout
27073 # if CDPATH is set.
27074 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27075
27076 sed_quote_subst='$sed_quote_subst'
27077 double_quote_subst='$double_quote_subst'
27078 delay_variable_subst='$delay_variable_subst'
27079 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
27080 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
27081 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
27082 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
27083 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
27084 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
27085 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
27086 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
27087 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
27088 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
27089 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
27090 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
27091 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
27092 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
27093 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
27094 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
27095 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
27096 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
27097 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
27098 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
27099 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
27100 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
27101 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
27102 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
27103 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
27104 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
27105 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
27106 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27107 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
27108 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
27109 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
27110 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
27111 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
27112 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
27113 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
27114 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27115 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27116 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27117 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
27118 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
27119 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
27120 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
27121 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
27122 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
27123 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
27124 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
27125 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
27126 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
27127 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
27128 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
27129 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
27130 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
27131 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
27132 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
27133 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
27134 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
27135 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
27136 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
27137 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
27138 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
27139 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
27140 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
27141 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27142 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27143 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
27144 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
27145 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
27146 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
27147 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
27148 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27149 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27150 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27151 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27152 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27153 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27154 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
27155 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
27156 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
27157 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
27158 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
27159 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
27160 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
27161 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
27162 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
27163 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
27164 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
27165 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
27166 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
27167 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
27168 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
27169 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27170 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
27171 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
27172 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27173 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
27174 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
27175 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
27176 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
27177 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
27178 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
27179 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
27180 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
27181 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
27182 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
27183 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
27184 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27185 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27186 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
27187 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
27188 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
27189 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
27190 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
27191 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
27192 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
27193 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
27194 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
27195 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
27196 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
27197 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
27198 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
27199 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
27200 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
27201 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
27202 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
27203 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27204 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27205 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27206 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27207 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27208 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27209 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27210 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27211 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27212 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27213 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27214 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27215 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27216 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27217 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27218 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27219 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27220 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27221 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27222 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27223 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27224 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27225 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27226 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27227 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27228 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27229 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27230 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27231 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27232 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27233 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27234 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27235 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27236 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27237 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27238 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27239 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27240 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27241 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27242 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27243 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27244 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27245 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27246 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27247 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27248 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27249 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
27250
27251 LTCC='$LTCC'
27252 LTCFLAGS='$LTCFLAGS'
27253 compiler='$compiler_DEFAULT'
27254
27255 # Quote evaled strings.
27256 for var in SED \
27257 GREP \
27258 EGREP \
27259 FGREP \
27260 LD \
27261 NM \
27262 LN_S \
27263 lt_SP2NL \
27264 lt_NL2SP \
27265 reload_flag \
27266 OBJDUMP \
27267 deplibs_check_method \
27268 file_magic_cmd \
27269 AR \
27270 AR_FLAGS \
27271 STRIP \
27272 RANLIB \
27273 CC \
27274 CFLAGS \
27275 compiler \
27276 lt_cv_sys_global_symbol_pipe \
27277 lt_cv_sys_global_symbol_to_cdecl \
27278 lt_cv_sys_global_symbol_to_c_name_address \
27279 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27280 SHELL \
27281 ECHO \
27282 lt_prog_compiler_no_builtin_flag \
27283 lt_prog_compiler_wl \
27284 lt_prog_compiler_pic \
27285 lt_prog_compiler_static \
27286 lt_cv_prog_compiler_c_o \
27287 need_locks \
27288 DSYMUTIL \
27289 NMEDIT \
27290 LIPO \
27291 OTOOL \
27292 OTOOL64 \
27293 shrext_cmds \
27294 export_dynamic_flag_spec \
27295 whole_archive_flag_spec \
27296 compiler_needs_object \
27297 with_gnu_ld \
27298 allow_undefined_flag \
27299 no_undefined_flag \
27300 hardcode_libdir_flag_spec \
27301 hardcode_libdir_flag_spec_ld \
27302 hardcode_libdir_separator \
27303 fix_srcfile_path \
27304 exclude_expsyms \
27305 include_expsyms \
27306 file_list_spec \
27307 variables_saved_for_relink \
27308 libname_spec \
27309 library_names_spec \
27310 soname_spec \
27311 finish_eval \
27312 old_striplib \
27313 striplib \
27314 compiler_lib_search_dirs \
27315 predep_objects \
27316 postdep_objects \
27317 predeps \
27318 postdeps \
27319 compiler_lib_search_path \
27320 LD_CXX \
27321 compiler_CXX \
27322 lt_prog_compiler_no_builtin_flag_CXX \
27323 lt_prog_compiler_wl_CXX \
27324 lt_prog_compiler_pic_CXX \
27325 lt_prog_compiler_static_CXX \
27326 lt_cv_prog_compiler_c_o_CXX \
27327 export_dynamic_flag_spec_CXX \
27328 whole_archive_flag_spec_CXX \
27329 compiler_needs_object_CXX \
27330 with_gnu_ld_CXX \
27331 allow_undefined_flag_CXX \
27332 no_undefined_flag_CXX \
27333 hardcode_libdir_flag_spec_CXX \
27334 hardcode_libdir_flag_spec_ld_CXX \
27335 hardcode_libdir_separator_CXX \
27336 fix_srcfile_path_CXX \
27337 exclude_expsyms_CXX \
27338 include_expsyms_CXX \
27339 file_list_spec_CXX \
27340 compiler_lib_search_dirs_CXX \
27341 predep_objects_CXX \
27342 postdep_objects_CXX \
27343 predeps_CXX \
27344 postdeps_CXX \
27345 compiler_lib_search_path_CXX; do
27346 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
27347 *[\\\\\\\`\\"\\\$]*)
27348 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27349 ;;
27350 *)
27351 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27352 ;;
27353 esac
27354 done
27355
27356 # Double-quote double-evaled strings.
27357 for var in reload_cmds \
27358 old_postinstall_cmds \
27359 old_postuninstall_cmds \
27360 old_archive_cmds \
27361 extract_expsyms_cmds \
27362 old_archive_from_new_cmds \
27363 old_archive_from_expsyms_cmds \
27364 archive_cmds \
27365 archive_expsym_cmds \
27366 module_cmds \
27367 module_expsym_cmds \
27368 export_symbols_cmds \
27369 prelink_cmds \
27370 postinstall_cmds \
27371 postuninstall_cmds \
27372 finish_cmds \
27373 sys_lib_search_path_spec \
27374 sys_lib_dlsearch_path_spec \
27375 old_archive_cmds_CXX \
27376 old_archive_from_new_cmds_CXX \
27377 old_archive_from_expsyms_cmds_CXX \
27378 archive_cmds_CXX \
27379 archive_expsym_cmds_CXX \
27380 module_cmds_CXX \
27381 module_expsym_cmds_CXX \
27382 export_symbols_cmds_CXX \
27383 prelink_cmds_CXX; do
27384 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
27385 *[\\\\\\\`\\"\\\$]*)
27386 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27387 ;;
27388 *)
27389 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27390 ;;
27391 esac
27392 done
27393
27394 # Fix-up fallback echo if it was mangled by the above quoting rules.
27395 case \$lt_ECHO in
27396 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
27397 ;;
27398 esac
27399
27400 ac_aux_dir='$ac_aux_dir'
27401 xsi_shell='$xsi_shell'
27402 lt_shell_append='$lt_shell_append'
27403
27404 # See if we are running on zsh, and set the options which allow our
27405 # commands through without removal of \ escapes INIT.
27406 if test -n "\${ZSH_VERSION+set}" ; then
27407 setopt NO_GLOB_SUBST
27408 fi
27409
27410
27411 PACKAGE='$PACKAGE'
27412 VERSION='$VERSION'
27413 TIMESTAMP='$TIMESTAMP'
27414 RM='$RM'
27415 ofile='$ofile'
27416
27417
27418
27419
27420
27421
27422 _ACEOF
27423
27424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27425
27426 # Handling of arguments.
27427 for ac_config_target in $ac_config_targets
27428 do
27429 case $ac_config_target in
27430 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27431 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27432 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
27433 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27434 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27435 "locale/Makefile") CONFIG_FILES="$CONFIG_FILES locale/Makefile" ;;
27436 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
27437 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27438 "src/prxs") CONFIG_FILES="$CONFIG_FILES src/prxs" ;;
27439 "src/ftpdctl.8") CONFIG_FILES="$CONFIG_FILES src/ftpdctl.8" ;;
27440 "src/proftpd.8") CONFIG_FILES="$CONFIG_FILES src/proftpd.8" ;;
27441 "src/proftpd.conf.5") CONFIG_FILES="$CONFIG_FILES src/proftpd.conf.5" ;;
27442 "src/xferlog.5") CONFIG_FILES="$CONFIG_FILES src/xferlog.5" ;;
27443 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27444 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
27445 "utils/ftpcount.1") CONFIG_FILES="$CONFIG_FILES utils/ftpcount.1" ;;
27446 "utils/ftpscrub.8") CONFIG_FILES="$CONFIG_FILES utils/ftpscrub.8" ;;
27447 "utils/ftpshut.8") CONFIG_FILES="$CONFIG_FILES utils/ftpshut.8" ;;
27448 "utils/ftptop.1") CONFIG_FILES="$CONFIG_FILES utils/ftptop.1" ;;
27449 "utils/ftpwho.1") CONFIG_FILES="$CONFIG_FILES utils/ftpwho.1" ;;
27450 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27451 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
27452 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27453
27454 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27455 esac
27456 done
27457
27458
27459 # If the user did not use the arguments to specify the items to instantiate,
27460 # then the envvar interface is used. Set only those that are not.
27461 # We use the long form for the default assignment because of an extremely
27462 # bizarre bug on SunOS 4.1.3.
27463 if $ac_need_defaults; then
27464 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27465 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27466 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27467 fi
27468
27469 # Have a temporary directory for convenience. Make it in the build tree
27470 # simply because there is no reason against having it here, and in addition,
27471 # creating and moving files from /tmp can sometimes cause problems.
27472 # Hook for its removal unless debugging.
27473 # Note that there is a small window in which the directory will not be cleaned:
27474 # after its creation but before its name has been assigned to `$tmp'.
27475 $debug ||
27476 {
27477 tmp= ac_tmp=
27478 trap 'exit_status=$?
27479 : "${ac_tmp:=$tmp}"
27480 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27481 ' 0
27482 trap 'as_fn_exit 1' 1 2 13 15
27483 }
27484 # Create a (secure) tmp directory for tmp files.
27485
27486 {
27487 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27488 test -d "$tmp"
27489 } ||
27490 {
27491 tmp=./conf$$-$RANDOM
27492 (umask 077 && mkdir "$tmp")
27493 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27494 ac_tmp=$tmp
27495
27496 # Set up the scripts for CONFIG_FILES section.
27497 # No need to generate them if there are no CONFIG_FILES.
27498 # This happens for instance with `./config.status config.h'.
27499 if test -n "$CONFIG_FILES"; then
27500
27501
27502 ac_cr=`echo X | tr X '\015'`
27503 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27504 # But we know of no other shell where ac_cr would be empty at this
27505 # point, so we can use a bashism as a fallback.
27506 if test "x$ac_cr" = x; then
27507 eval ac_cr=\$\'\\r\'
27508 fi
27509 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27510 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27511 ac_cs_awk_cr='\\r'
27512 else
27513 ac_cs_awk_cr=$ac_cr
27514 fi
27515
27516 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27517 _ACEOF
27518
27519
27520 {
27521 echo "cat >conf$$subs.awk <<_ACEOF" &&
27522 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27523 echo "_ACEOF"
27524 } >conf$$subs.sh ||
27525 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27526 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27527 ac_delim='%!_!# '
27528 for ac_last_try in false false false false false :; do
27529 . ./conf$$subs.sh ||
27530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27531
27532 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27533 if test $ac_delim_n = $ac_delim_num; then
27534 break
27535 elif $ac_last_try; then
27536 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27537 else
27538 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27539 fi
27540 done
27541 rm -f conf$$subs.sh
27542
27543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27544 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27545 _ACEOF
27546 sed -n '
27547 h
27548 s/^/S["/; s/!.*/"]=/
27549 p
27550 g
27551 s/^[^!]*!//
27552 :repl
27553 t repl
27554 s/'"$ac_delim"'$//
27555 t delim
27556 :nl
27557 h
27558 s/\(.\{148\}\)..*/\1/
27559 t more1
27560 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27561 p
27562 n
27563 b repl
27564 :more1
27565 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27566 p
27567 g
27568 s/.\{148\}//
27569 t nl
27570 :delim
27571 h
27572 s/\(.\{148\}\)..*/\1/
27573 t more2
27574 s/["\\]/\\&/g; s/^/"/; s/$/"/
27575 p
27576 b
27577 :more2
27578 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27579 p
27580 g
27581 s/.\{148\}//
27582 t delim
27583 ' <conf$$subs.awk | sed '
27584 /^[^""]/{
27585 N
27586 s/\n//
27587 }
27588 ' >>$CONFIG_STATUS || ac_write_fail=1
27589 rm -f conf$$subs.awk
27590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27591 _ACAWK
27592 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27593 for (key in S) S_is_set[key] = 1
27594 FS = ""
27595
27596 }
27597 {
27598 line = $ 0
27599 nfields = split(line, field, "@")
27600 substed = 0
27601 len = length(field[1])
27602 for (i = 2; i < nfields; i++) {
27603 key = field[i]
27604 keylen = length(key)
27605 if (S_is_set[key]) {
27606 value = S[key]
27607 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27608 len += length(value) + length(field[++i])
27609 substed = 1
27610 } else
27611 len += 1 + keylen
27612 }
27613
27614 print line
27615 }
27616
27617 _ACAWK
27618 _ACEOF
27619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27620 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27621 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27622 else
27623 cat
27624 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27625 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27626 _ACEOF
27627
27628 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27629 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27630 # trailing colons and then remove the whole line if VPATH becomes empty
27631 # (actually we leave an empty line to preserve line numbers).
27632 if test "x$srcdir" = x.; then
27633 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27634 h
27635 s///
27636 s/^/:/
27637 s/[ ]*$/:/
27638 s/:\$(srcdir):/:/g
27639 s/:\${srcdir}:/:/g
27640 s/:@srcdir@:/:/g
27641 s/^:*//
27642 s/:*$//
27643 x
27644 s/\(=[ ]*\).*/\1/
27645 G
27646 s/\n//
27647 s/^[^=]*=[ ]*$//
27648 }'
27649 fi
27650
27651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27652 fi # test -n "$CONFIG_FILES"
27653
27654 # Set up the scripts for CONFIG_HEADERS section.
27655 # No need to generate them if there are no CONFIG_HEADERS.
27656 # This happens for instance with `./config.status Makefile'.
27657 if test -n "$CONFIG_HEADERS"; then
27658 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27659 BEGIN {
27660 _ACEOF
27661
27662 # Transform confdefs.h into an awk script `defines.awk', embedded as
27663 # here-document in config.status, that substitutes the proper values into
27664 # config.h.in to produce config.h.
27665
27666 # Create a delimiter string that does not exist in confdefs.h, to ease
27667 # handling of long lines.
27668 ac_delim='%!_!# '
27669 for ac_last_try in false false :; do
27670 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27671 if test -z "$ac_tt"; then
27672 break
27673 elif $ac_last_try; then
27674 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27675 else
27676 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27677 fi
27678 done
27679
27680 # For the awk script, D is an array of macro values keyed by name,
27681 # likewise P contains macro parameters if any. Preserve backslash
27682 # newline sequences.
27683
27684 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27685 sed -n '
27686 s/.\{148\}/&'"$ac_delim"'/g
27687 t rset
27688 :rset
27689 s/^[ ]*#[ ]*define[ ][ ]*/ /
27690 t def
27691 d
27692 :def
27693 s/\\$//
27694 t bsnl
27695 s/["\\]/\\&/g
27696 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27697 D["\1"]=" \3"/p
27698 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27699 d
27700 :bsnl
27701 s/["\\]/\\&/g
27702 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27703 D["\1"]=" \3\\\\\\n"\\/p
27704 t cont
27705 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27706 t cont
27707 d
27708 :cont
27709 n
27710 s/.\{148\}/&'"$ac_delim"'/g
27711 t clear
27712 :clear
27713 s/\\$//
27714 t bsnlc
27715 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27716 d
27717 :bsnlc
27718 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27719 b cont
27720 ' <confdefs.h | sed '
27721 s/'"$ac_delim"'/"\\\
27722 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27723
27724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27725 for (key in D) D_is_set[key] = 1
27726 FS = ""
27727 }
27728 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27729 line = \$ 0
27730 split(line, arg, " ")
27731 if (arg[1] == "#") {
27732 defundef = arg[2]
27733 mac1 = arg[3]
27734 } else {
27735 defundef = substr(arg[1], 2)
27736 mac1 = arg[2]
27737 }
27738 split(mac1, mac2, "(") #)
27739 macro = mac2[1]
27740 prefix = substr(line, 1, index(line, defundef) - 1)
27741 if (D_is_set[macro]) {
27742 # Preserve the white space surrounding the "#".
27743 print prefix "define", macro P[macro] D[macro]
27744 next
27745 } else {
27746 # Replace #undef with comments. This is necessary, for example,
27747 # in the case of _POSIX_SOURCE, which is predefined and required
27748 # on some systems where configure will not decide to define it.
27749 if (defundef == "undef") {
27750 print "/*", prefix defundef, macro, "*/"
27751 next
27752 }
27753 }
27754 }
27755 { print }
27756 _ACAWK
27757 _ACEOF
27758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27759 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27760 fi # test -n "$CONFIG_HEADERS"
27761
27762
27763 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27764 shift
27765 for ac_tag
27766 do
27767 case $ac_tag in
27768 :[FHLC]) ac_mode=$ac_tag; continue;;
27769 esac
27770 case $ac_mode$ac_tag in
27771 :[FHL]*:*);;
27772 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27773 :[FH]-) ac_tag=-:-;;
27774 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27775 esac
27776 ac_save_IFS=$IFS
27777 IFS=:
27778 set x $ac_tag
27779 IFS=$ac_save_IFS
27780 shift
27781 ac_file=$1
27782 shift
27783
27784 case $ac_mode in
27785 :L) ac_source=$1;;
27786 :[FH])
27787 ac_file_inputs=
27788 for ac_f
27789 do
27790 case $ac_f in
27791 -) ac_f="$ac_tmp/stdin";;
27792 *) # Look for the file first in the build tree, then in the source tree
27793 # (if the path is not absolute). The absolute path cannot be DOS-style,
27794 # because $ac_f cannot contain `:'.
27795 test -f "$ac_f" ||
27796 case $ac_f in
27797 [\\/$]*) false;;
27798 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27799 esac ||
27800 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27801 esac
27802 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27803 as_fn_append ac_file_inputs " '$ac_f'"
27804 done
27805
27806 # Let's still pretend it is `configure' which instantiates (i.e., don't
27807 # use $as_me), people would be surprised to read:
27808 # /* config.h. Generated by config.status. */
27809 configure_input='Generated from '`
27810 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27811 `' by configure.'
27812 if test x"$ac_file" != x-; then
27813 configure_input="$ac_file. $configure_input"
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27815 $as_echo "$as_me: creating $ac_file" >&6;}
27816 fi
27817 # Neutralize special characters interpreted by sed in replacement strings.
27818 case $configure_input in #(
27819 *\&* | *\|* | *\\* )
27820 ac_sed_conf_input=`$as_echo "$configure_input" |
27821 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27822 *) ac_sed_conf_input=$configure_input;;
27823 esac
27824
27825 case $ac_tag in
27826 *:-:* | *:-) cat >"$ac_tmp/stdin" \
27827 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27828 esac
27829 ;;
27830 esac
27831
27832 ac_dir=`$as_dirname -- "$ac_file" ||
27833 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27834 X"$ac_file" : 'X\(//\)[^/]' \| \
27835 X"$ac_file" : 'X\(//\)$' \| \
27836 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27837 $as_echo X"$ac_file" |
27838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27839 s//\1/
27840 q
27841 }
27842 /^X\(\/\/\)[^/].*/{
27843 s//\1/
27844 q
27845 }
27846 /^X\(\/\/\)$/{
27847 s//\1/
27848 q
27849 }
27850 /^X\(\/\).*/{
27851 s//\1/
27852 q
27853 }
27854 s/.*/./; q'`
27855 as_dir="$ac_dir"; as_fn_mkdir_p
27856 ac_builddir=.
27857
27858 case "$ac_dir" in
27859 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27860 *)
27861 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27862 # A ".." for each directory in $ac_dir_suffix.
27863 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27864 case $ac_top_builddir_sub in
27865 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27866 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27867 esac ;;
27868 esac
27869 ac_abs_top_builddir=$ac_pwd
27870 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27871 # for backward compatibility:
27872 ac_top_builddir=$ac_top_build_prefix
27873
27874 case $srcdir in
27875 .) # We are building in place.
27876 ac_srcdir=.
27877 ac_top_srcdir=$ac_top_builddir_sub
27878 ac_abs_top_srcdir=$ac_pwd ;;
27879 [\\/]* | ?:[\\/]* ) # Absolute name.
27880 ac_srcdir=$srcdir$ac_dir_suffix;
27881 ac_top_srcdir=$srcdir
27882 ac_abs_top_srcdir=$srcdir ;;
27883 *) # Relative name.
27884 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27885 ac_top_srcdir=$ac_top_build_prefix$srcdir
27886 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27887 esac
27888 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27889
27890
27891 case $ac_mode in
27892 :F)
27893 #
27894 # CONFIG_FILE
27895 #
27896
27897 case $INSTALL in
27898 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27899 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27900 esac
27901 _ACEOF
27902
27903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27904 # If the template does not know about datarootdir, expand it.
27905 # FIXME: This hack should be removed a few years after 2.60.
27906 ac_datarootdir_hack=; ac_datarootdir_seen=
27907 ac_sed_dataroot='
27908 /datarootdir/ {
27909 p
27910 q
27911 }
27912 /@datadir@/p
27913 /@docdir@/p
27914 /@infodir@/p
27915 /@localedir@/p
27916 /@mandir@/p'
27917 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27918 *datarootdir*) ac_datarootdir_seen=yes;;
27919 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27921 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27922 _ACEOF
27923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27924 ac_datarootdir_hack='
27925 s&@datadir@&$datadir&g
27926 s&@docdir@&$docdir&g
27927 s&@infodir@&$infodir&g
27928 s&@localedir@&$localedir&g
27929 s&@mandir@&$mandir&g
27930 s&\\\${datarootdir}&$datarootdir&g' ;;
27931 esac
27932 _ACEOF
27933
27934 # Neutralize VPATH when `$srcdir' = `.'.
27935 # Shell code in configure.ac might set extrasub.
27936 # FIXME: do we really want to maintain this feature?
27937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27938 ac_sed_extra="$ac_vpsub
27939 $extrasub
27940 _ACEOF
27941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27942 :t
27943 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27944 s|@configure_input@|$ac_sed_conf_input|;t t
27945 s&@top_builddir@&$ac_top_builddir_sub&;t t
27946 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27947 s&@srcdir@&$ac_srcdir&;t t
27948 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27949 s&@top_srcdir@&$ac_top_srcdir&;t t
27950 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27951 s&@builddir@&$ac_builddir&;t t
27952 s&@abs_builddir@&$ac_abs_builddir&;t t
27953 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27954 s&@INSTALL@&$ac_INSTALL&;t t
27955 $ac_datarootdir_hack
27956 "
27957 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27958 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27959
27960 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27961 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27962 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
27963 "$ac_tmp/out"`; test -z "$ac_out"; } &&
27964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27965 which seems to be undefined. Please make sure it is defined" >&5
27966 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27967 which seems to be undefined. Please make sure it is defined" >&2;}
27968
27969 rm -f "$ac_tmp/stdin"
27970 case $ac_file in
27971 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27972 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27973 esac \
27974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27975 ;;
27976 :H)
27977 #
27978 # CONFIG_HEADER
27979 #
27980 if test x"$ac_file" != x-; then
27981 {
27982 $as_echo "/* $configure_input */" \
27983 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27984 } >"$ac_tmp/config.h" \
27985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27986 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27988 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27989 else
27990 rm -f "$ac_file"
27991 mv "$ac_tmp/config.h" "$ac_file" \
27992 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27993 fi
27994 else
27995 $as_echo "/* $configure_input */" \
27996 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27997 || as_fn_error $? "could not create -" "$LINENO" 5
27998 fi
27999 ;;
28000
28001 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28002 $as_echo "$as_me: executing $ac_file commands" >&6;}
28003 ;;
28004 esac
28005
28006
28007 case $ac_file$ac_mode in
28008 "libtool":C)
28009
28010 # See if we are running on zsh, and set the options which allow our
28011 # commands through without removal of \ escapes.
28012 if test -n "${ZSH_VERSION+set}" ; then
28013 setopt NO_GLOB_SUBST
28014 fi
28015
28016 cfgfile="${ofile}T"
28017 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28018 $RM "$cfgfile"
28019
28020 cat <<_LT_EOF >> "$cfgfile"
28021 #! $SHELL
28022
28023 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28024 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28025 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28026 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28027 #
28028 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28029 # 2006, 2007, 2008 Free Software Foundation, Inc.
28030 # Written by Gordon Matzigkeit, 1996
28031 #
28032 # This file is part of GNU Libtool.
28033 #
28034 # GNU Libtool is free software; you can redistribute it and/or
28035 # modify it under the terms of the GNU General Public License as
28036 # published by the Free Software Foundation; either version 2 of
28037 # the License, or (at your option) any later version.
28038 #
28039 # As a special exception to the GNU General Public License,
28040 # if you distribute this file as part of a program or library that
28041 # is built using GNU Libtool, you may include this file under the
28042 # same distribution terms that you use for the rest of that program.
28043 #
28044 # GNU Libtool is distributed in the hope that it will be useful,
28045 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28046 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28047 # GNU General Public License for more details.
28048 #
28049 # You should have received a copy of the GNU General Public License
28050 # along with GNU Libtool; see the file COPYING. If not, a copy
28051 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28052 # obtained by writing to the Free Software Foundation, Inc.,
28053 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28054
28055
28056 # The names of the tagged configurations supported by this script.
28057 available_tags="CXX "
28058
28059 # ### BEGIN LIBTOOL CONFIG
28060
28061 # Which release of libtool.m4 was used?
28062 macro_version=$macro_version
28063 macro_revision=$macro_revision
28064
28065 # Whether or not to build shared libraries.
28066 build_libtool_libs=$enable_shared
28067
28068 # Whether or not to build static libraries.
28069 build_old_libs=$enable_static
28070
28071 # What type of objects to build.
28072 pic_mode=$pic_mode
28073
28074 # Whether or not to optimize for fast installation.
28075 fast_install=$enable_fast_install
28076
28077 # The host system.
28078 host_alias=$host_alias
28079 host=$host
28080 host_os=$host_os
28081
28082 # The build system.
28083 build_alias=$build_alias
28084 build=$build
28085 build_os=$build_os
28086
28087 # A sed program that does not truncate output.
28088 SED=$lt_SED
28089
28090 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28091 Xsed="\$SED -e 1s/^X//"
28092
28093 # A grep program that handles long lines.
28094 GREP=$lt_GREP
28095
28096 # An ERE matcher.
28097 EGREP=$lt_EGREP
28098
28099 # A literal string matcher.
28100 FGREP=$lt_FGREP
28101
28102 # A BSD- or MS-compatible name lister.
28103 NM=$lt_NM
28104
28105 # Whether we need soft or hard links.
28106 LN_S=$lt_LN_S
28107
28108 # What is the maximum length of a command?
28109 max_cmd_len=$max_cmd_len
28110
28111 # Object file suffix (normally "o").
28112 objext=$ac_objext
28113
28114 # Executable file suffix (normally "").
28115 exeext=$exeext
28116
28117 # whether the shell understands "unset".
28118 lt_unset=$lt_unset
28119
28120 # turn spaces into newlines.
28121 SP2NL=$lt_lt_SP2NL
28122
28123 # turn newlines into spaces.
28124 NL2SP=$lt_lt_NL2SP
28125
28126 # How to create reloadable object files.
28127 reload_flag=$lt_reload_flag
28128 reload_cmds=$lt_reload_cmds
28129
28130 # An object symbol dumper.
28131 OBJDUMP=$lt_OBJDUMP
28132
28133 # Method to check whether dependent libraries are shared objects.
28134 deplibs_check_method=$lt_deplibs_check_method
28135
28136 # Command to use when deplibs_check_method == "file_magic".
28137 file_magic_cmd=$lt_file_magic_cmd
28138
28139 # The archiver.
28140 AR=$lt_AR
28141 AR_FLAGS=$lt_AR_FLAGS
28142
28143 # A symbol stripping program.
28144 STRIP=$lt_STRIP
28145
28146 # Commands used to install an old-style archive.
28147 RANLIB=$lt_RANLIB
28148 old_postinstall_cmds=$lt_old_postinstall_cmds
28149 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28150
28151 # A C compiler.
28152 LTCC=$lt_CC
28153
28154 # LTCC compiler flags.
28155 LTCFLAGS=$lt_CFLAGS
28156
28157 # Take the output of nm and produce a listing of raw symbols and C names.
28158 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28159
28160 # Transform the output of nm in a proper C declaration.
28161 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28162
28163 # Transform the output of nm in a C name address pair.
28164 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28165
28166 # Transform the output of nm in a C name address pair when lib prefix is needed.
28167 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28168
28169 # The name of the directory that contains temporary libtool files.
28170 objdir=$objdir
28171
28172 # Shell to use when invoking shell scripts.
28173 SHELL=$lt_SHELL
28174
28175 # An echo program that does not interpret backslashes.
28176 ECHO=$lt_ECHO
28177
28178 # Used to examine libraries when file_magic_cmd begins with "file".
28179 MAGIC_CMD=$MAGIC_CMD
28180
28181 # Must we lock files when doing compilation?
28182 need_locks=$lt_need_locks
28183
28184 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28185 DSYMUTIL=$lt_DSYMUTIL
28186
28187 # Tool to change global to local symbols on Mac OS X.
28188 NMEDIT=$lt_NMEDIT
28189
28190 # Tool to manipulate fat objects and archives on Mac OS X.
28191 LIPO=$lt_LIPO
28192
28193 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28194 OTOOL=$lt_OTOOL
28195
28196 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28197 OTOOL64=$lt_OTOOL64
28198
28199 # Old archive suffix (normally "a").
28200 libext=$libext
28201
28202 # Shared library suffix (normally ".so").
28203 shrext_cmds=$lt_shrext_cmds
28204
28205 # The commands to extract the exported symbol list from a shared archive.
28206 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28207
28208 # Variables whose values should be saved in libtool wrapper scripts and
28209 # restored at link time.
28210 variables_saved_for_relink=$lt_variables_saved_for_relink
28211
28212 # Do we need the "lib" prefix for modules?
28213 need_lib_prefix=$need_lib_prefix
28214
28215 # Do we need a version for libraries?
28216 need_version=$need_version
28217
28218 # Library versioning type.
28219 version_type=$version_type
28220
28221 # Shared library runtime path variable.
28222 runpath_var=$runpath_var
28223
28224 # Shared library path variable.
28225 shlibpath_var=$shlibpath_var
28226
28227 # Is shlibpath searched before the hard-coded library search path?
28228 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28229
28230 # Format of library name prefix.
28231 libname_spec=$lt_libname_spec
28232
28233 # List of archive names. First name is the real one, the rest are links.
28234 # The last name is the one that the linker finds with -lNAME
28235 library_names_spec=$lt_library_names_spec
28236
28237 # The coded name of the library, if different from the real name.
28238 soname_spec=$lt_soname_spec
28239
28240 # Command to use after installation of a shared archive.
28241 postinstall_cmds=$lt_postinstall_cmds
28242
28243 # Command to use after uninstallation of a shared archive.
28244 postuninstall_cmds=$lt_postuninstall_cmds
28245
28246 # Commands used to finish a libtool library installation in a directory.
28247 finish_cmds=$lt_finish_cmds
28248
28249 # As "finish_cmds", except a single script fragment to be evaled but
28250 # not shown.
28251 finish_eval=$lt_finish_eval
28252
28253 # Whether we should hardcode library paths into libraries.
28254 hardcode_into_libs=$hardcode_into_libs
28255
28256 # Compile-time system search path for libraries.
28257 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28258
28259 # Run-time system search path for libraries.
28260 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28261
28262 # Whether dlopen is supported.
28263 dlopen_support=$enable_dlopen
28264
28265 # Whether dlopen of programs is supported.
28266 dlopen_self=$enable_dlopen_self
28267
28268 # Whether dlopen of statically linked programs is supported.
28269 dlopen_self_static=$enable_dlopen_self_static
28270
28271 # Commands to strip libraries.
28272 old_striplib=$lt_old_striplib
28273 striplib=$lt_striplib
28274
28275
28276 # The linker used to build libraries.
28277 LD=$lt_LD
28278
28279 # Commands used to build an old-style archive.
28280 old_archive_cmds=$lt_old_archive_cmds
28281
28282 # A language specific compiler.
28283 CC=$lt_compiler
28284
28285 # Is the compiler the GNU compiler?
28286 with_gcc=$GCC
28287
28288 # Compiler flag to turn off builtin functions.
28289 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28290
28291 # How to pass a linker flag through the compiler.
28292 wl=$lt_lt_prog_compiler_wl
28293
28294 # Additional compiler flags for building library objects.
28295 pic_flag=$lt_lt_prog_compiler_pic
28296
28297 # Compiler flag to prevent dynamic linking.
28298 link_static_flag=$lt_lt_prog_compiler_static
28299
28300 # Does compiler simultaneously support -c and -o options?
28301 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28302
28303 # Whether or not to add -lc for building shared libraries.
28304 build_libtool_need_lc=$archive_cmds_need_lc
28305
28306 # Whether or not to disallow shared libs when runtime libs are static.
28307 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28308
28309 # Compiler flag to allow reflexive dlopens.
28310 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28311
28312 # Compiler flag to generate shared objects directly from archives.
28313 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28314
28315 # Whether the compiler copes with passing no objects directly.
28316 compiler_needs_object=$lt_compiler_needs_object
28317
28318 # Create an old-style archive from a shared archive.
28319 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28320
28321 # Create a temporary old-style archive to link instead of a shared archive.
28322 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28323
28324 # Commands used to build a shared archive.
28325 archive_cmds=$lt_archive_cmds
28326 archive_expsym_cmds=$lt_archive_expsym_cmds
28327
28328 # Commands used to build a loadable module if different from building
28329 # a shared archive.
28330 module_cmds=$lt_module_cmds
28331 module_expsym_cmds=$lt_module_expsym_cmds
28332
28333 # Whether we are building with GNU ld or not.
28334 with_gnu_ld=$lt_with_gnu_ld
28335
28336 # Flag that allows shared libraries with undefined symbols to be built.
28337 allow_undefined_flag=$lt_allow_undefined_flag
28338
28339 # Flag that enforces no undefined symbols.
28340 no_undefined_flag=$lt_no_undefined_flag
28341
28342 # Flag to hardcode \$libdir into a binary during linking.
28343 # This must work even if \$libdir does not exist
28344 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28345
28346 # If ld is used when linking, flag to hardcode \$libdir into a binary
28347 # during linking. This must work even if \$libdir does not exist.
28348 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28349
28350 # Whether we need a single "-rpath" flag with a separated argument.
28351 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28352
28353 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28354 # DIR into the resulting binary.
28355 hardcode_direct=$hardcode_direct
28356
28357 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28358 # DIR into the resulting binary and the resulting library dependency is
28359 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28360 # library is relocated.
28361 hardcode_direct_absolute=$hardcode_direct_absolute
28362
28363 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28364 # into the resulting binary.
28365 hardcode_minus_L=$hardcode_minus_L
28366
28367 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28368 # into the resulting binary.
28369 hardcode_shlibpath_var=$hardcode_shlibpath_var
28370
28371 # Set to "yes" if building a shared library automatically hardcodes DIR
28372 # into the library and all subsequent libraries and executables linked
28373 # against it.
28374 hardcode_automatic=$hardcode_automatic
28375
28376 # Set to yes if linker adds runtime paths of dependent libraries
28377 # to runtime path list.
28378 inherit_rpath=$inherit_rpath
28379
28380 # Whether libtool must link a program against all its dependency libraries.
28381 link_all_deplibs=$link_all_deplibs
28382
28383 # Fix the shell variable \$srcfile for the compiler.
28384 fix_srcfile_path=$lt_fix_srcfile_path
28385
28386 # Set to "yes" if exported symbols are required.
28387 always_export_symbols=$always_export_symbols
28388
28389 # The commands to list exported symbols.
28390 export_symbols_cmds=$lt_export_symbols_cmds
28391
28392 # Symbols that should not be listed in the preloaded symbols.
28393 exclude_expsyms=$lt_exclude_expsyms
28394
28395 # Symbols that must always be exported.
28396 include_expsyms=$lt_include_expsyms
28397
28398 # Commands necessary for linking programs (against libraries) with templates.
28399 prelink_cmds=$lt_prelink_cmds
28400
28401 # Specify filename containing input files.
28402 file_list_spec=$lt_file_list_spec
28403
28404 # How to hardcode a shared library path into an executable.
28405 hardcode_action=$hardcode_action
28406
28407 # The directories searched by this compiler when creating a shared library.
28408 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28409
28410 # Dependencies to place before and after the objects being linked to
28411 # create a shared library.
28412 predep_objects=$lt_predep_objects
28413 postdep_objects=$lt_postdep_objects
28414 predeps=$lt_predeps
28415 postdeps=$lt_postdeps
28416
28417 # The library search path used internally by the compiler when linking
28418 # a shared library.
28419 compiler_lib_search_path=$lt_compiler_lib_search_path
28420
28421 # ### END LIBTOOL CONFIG
28422
28423 _LT_EOF
28424
28425 case $host_os in
28426 aix3*)
28427 cat <<\_LT_EOF >> "$cfgfile"
28428 # AIX sometimes has problems with the GCC collect2 program. For some
28429 # reason, if we set the COLLECT_NAMES environment variable, the problems
28430 # vanish in a puff of smoke.
28431 if test "X${COLLECT_NAMES+set}" != Xset; then
28432 COLLECT_NAMES=
28433 export COLLECT_NAMES
28434 fi
28435 _LT_EOF
28436 ;;
28437 esac
28438
28439
28440 ltmain="$ac_aux_dir/ltmain.sh"
28441
28442
28443 # We use sed instead of cat because bash on DJGPP gets confused if
28444 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28445 # text mode, it properly converts lines to CR/LF. This bash problem
28446 # is reportedly fixed, but why not run on old versions too?
28447 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28448 || (rm -f "$cfgfile"; exit 1)
28449
28450 case $xsi_shell in
28451 yes)
28452 cat << \_LT_EOF >> "$cfgfile"
28453
28454 # func_dirname file append nondir_replacement
28455 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28456 # otherwise set result to NONDIR_REPLACEMENT.
28457 func_dirname ()
28458 {
28459 case ${1} in
28460 */*) func_dirname_result="${1%/*}${2}" ;;
28461 * ) func_dirname_result="${3}" ;;
28462 esac
28463 }
28464
28465 # func_basename file
28466 func_basename ()
28467 {
28468 func_basename_result="${1##*/}"
28469 }
28470
28471 # func_dirname_and_basename file append nondir_replacement
28472 # perform func_basename and func_dirname in a single function
28473 # call:
28474 # dirname: Compute the dirname of FILE. If nonempty,
28475 # add APPEND to the result, otherwise set result
28476 # to NONDIR_REPLACEMENT.
28477 # value returned in "$func_dirname_result"
28478 # basename: Compute filename of FILE.
28479 # value retuned in "$func_basename_result"
28480 # Implementation must be kept synchronized with func_dirname
28481 # and func_basename. For efficiency, we do not delegate to
28482 # those functions but instead duplicate the functionality here.
28483 func_dirname_and_basename ()
28484 {
28485 case ${1} in
28486 */*) func_dirname_result="${1%/*}${2}" ;;
28487 * ) func_dirname_result="${3}" ;;
28488 esac
28489 func_basename_result="${1##*/}"
28490 }
28491
28492 # func_stripname prefix suffix name
28493 # strip PREFIX and SUFFIX off of NAME.
28494 # PREFIX and SUFFIX must not contain globbing or regex special
28495 # characters, hashes, percent signs, but SUFFIX may contain a leading
28496 # dot (in which case that matches only a dot).
28497 func_stripname ()
28498 {
28499 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28500 # positional parameters, so assign one to ordinary parameter first.
28501 func_stripname_result=${3}
28502 func_stripname_result=${func_stripname_result#"${1}"}
28503 func_stripname_result=${func_stripname_result%"${2}"}
28504 }
28505
28506 # func_opt_split
28507 func_opt_split ()
28508 {
28509 func_opt_split_opt=${1%%=*}
28510 func_opt_split_arg=${1#*=}
28511 }
28512
28513 # func_lo2o object
28514 func_lo2o ()
28515 {
28516 case ${1} in
28517 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28518 *) func_lo2o_result=${1} ;;
28519 esac
28520 }
28521
28522 # func_xform libobj-or-source
28523 func_xform ()
28524 {
28525 func_xform_result=${1%.*}.lo
28526 }
28527
28528 # func_arith arithmetic-term...
28529 func_arith ()
28530 {
28531 func_arith_result=$(( $* ))
28532 }
28533
28534 # func_len string
28535 # STRING may not start with a hyphen.
28536 func_len ()
28537 {
28538 func_len_result=${#1}
28539 }
28540
28541 _LT_EOF
28542 ;;
28543 *) # Bourne compatible functions.
28544 cat << \_LT_EOF >> "$cfgfile"
28545
28546 # func_dirname file append nondir_replacement
28547 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28548 # otherwise set result to NONDIR_REPLACEMENT.
28549 func_dirname ()
28550 {
28551 # Extract subdirectory from the argument.
28552 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
28553 if test "X$func_dirname_result" = "X${1}"; then
28554 func_dirname_result="${3}"
28555 else
28556 func_dirname_result="$func_dirname_result${2}"
28557 fi
28558 }
28559
28560 # func_basename file
28561 func_basename ()
28562 {
28563 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
28564 }
28565
28566
28567 # func_stripname prefix suffix name
28568 # strip PREFIX and SUFFIX off of NAME.
28569 # PREFIX and SUFFIX must not contain globbing or regex special
28570 # characters, hashes, percent signs, but SUFFIX may contain a leading
28571 # dot (in which case that matches only a dot).
28572 # func_strip_suffix prefix name
28573 func_stripname ()
28574 {
28575 case ${2} in
28576 .*) func_stripname_result=`$ECHO "X${3}" \
28577 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
28578 *) func_stripname_result=`$ECHO "X${3}" \
28579 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
28580 esac
28581 }
28582
28583 # sed scripts:
28584 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28585 my_sed_long_arg='1s/^-[^=]*=//'
28586
28587 # func_opt_split
28588 func_opt_split ()
28589 {
28590 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
28591 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
28592 }
28593
28594 # func_lo2o object
28595 func_lo2o ()
28596 {
28597 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
28598 }
28599
28600 # func_xform libobj-or-source
28601 func_xform ()
28602 {
28603 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
28604 }
28605
28606 # func_arith arithmetic-term...
28607 func_arith ()
28608 {
28609 func_arith_result=`expr "$@"`
28610 }
28611
28612 # func_len string
28613 # STRING may not start with a hyphen.
28614 func_len ()
28615 {
28616 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
28617 }
28618
28619 _LT_EOF
28620 esac
28621
28622 case $lt_shell_append in
28623 yes)
28624 cat << \_LT_EOF >> "$cfgfile"
28625
28626 # func_append var value
28627 # Append VALUE to the end of shell variable VAR.
28628 func_append ()
28629 {
28630 eval "$1+=\$2"
28631 }
28632 _LT_EOF
28633 ;;
28634 *)
28635 cat << \_LT_EOF >> "$cfgfile"
28636
28637 # func_append var value
28638 # Append VALUE to the end of shell variable VAR.
28639 func_append ()
28640 {
28641 eval "$1=\$$1\$2"
28642 }
28643
28644 _LT_EOF
28645 ;;
28646 esac
28647
28648
28649 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28650 || (rm -f "$cfgfile"; exit 1)
28651
28652 mv -f "$cfgfile" "$ofile" ||
28653 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28654 chmod +x "$ofile"
28655
28656
28657 cat <<_LT_EOF >> "$ofile"
28658
28659 # ### BEGIN LIBTOOL TAG CONFIG: CXX
28660
28661 # The linker used to build libraries.
28662 LD=$lt_LD_CXX
28663
28664 # Commands used to build an old-style archive.
28665 old_archive_cmds=$lt_old_archive_cmds_CXX
28666
28667 # A language specific compiler.
28668 CC=$lt_compiler_CXX
28669
28670 # Is the compiler the GNU compiler?
28671 with_gcc=$GCC_CXX
28672
28673 # Compiler flag to turn off builtin functions.
28674 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28675
28676 # How to pass a linker flag through the compiler.
28677 wl=$lt_lt_prog_compiler_wl_CXX
28678
28679 # Additional compiler flags for building library objects.
28680 pic_flag=$lt_lt_prog_compiler_pic_CXX
28681
28682 # Compiler flag to prevent dynamic linking.
28683 link_static_flag=$lt_lt_prog_compiler_static_CXX
28684
28685 # Does compiler simultaneously support -c and -o options?
28686 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28687
28688 # Whether or not to add -lc for building shared libraries.
28689 build_libtool_need_lc=$archive_cmds_need_lc_CXX
28690
28691 # Whether or not to disallow shared libs when runtime libs are static.
28692 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28693
28694 # Compiler flag to allow reflexive dlopens.
28695 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28696
28697 # Compiler flag to generate shared objects directly from archives.
28698 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28699
28700 # Whether the compiler copes with passing no objects directly.
28701 compiler_needs_object=$lt_compiler_needs_object_CXX
28702
28703 # Create an old-style archive from a shared archive.
28704 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28705
28706 # Create a temporary old-style archive to link instead of a shared archive.
28707 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28708
28709 # Commands used to build a shared archive.
28710 archive_cmds=$lt_archive_cmds_CXX
28711 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28712
28713 # Commands used to build a loadable module if different from building
28714 # a shared archive.
28715 module_cmds=$lt_module_cmds_CXX
28716 module_expsym_cmds=$lt_module_expsym_cmds_CXX
28717
28718 # Whether we are building with GNU ld or not.
28719 with_gnu_ld=$lt_with_gnu_ld_CXX
28720
28721 # Flag that allows shared libraries with undefined symbols to be built.
28722 allow_undefined_flag=$lt_allow_undefined_flag_CXX
28723
28724 # Flag that enforces no undefined symbols.
28725 no_undefined_flag=$lt_no_undefined_flag_CXX
28726
28727 # Flag to hardcode \$libdir into a binary during linking.
28728 # This must work even if \$libdir does not exist
28729 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28730
28731 # If ld is used when linking, flag to hardcode \$libdir into a binary
28732 # during linking. This must work even if \$libdir does not exist.
28733 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
28734
28735 # Whether we need a single "-rpath" flag with a separated argument.
28736 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28737
28738 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28739 # DIR into the resulting binary.
28740 hardcode_direct=$hardcode_direct_CXX
28741
28742 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28743 # DIR into the resulting binary and the resulting library dependency is
28744 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28745 # library is relocated.
28746 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28747
28748 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28749 # into the resulting binary.
28750 hardcode_minus_L=$hardcode_minus_L_CXX
28751
28752 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28753 # into the resulting binary.
28754 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28755
28756 # Set to "yes" if building a shared library automatically hardcodes DIR
28757 # into the library and all subsequent libraries and executables linked
28758 # against it.
28759 hardcode_automatic=$hardcode_automatic_CXX
28760
28761 # Set to yes if linker adds runtime paths of dependent libraries
28762 # to runtime path list.
28763 inherit_rpath=$inherit_rpath_CXX
28764
28765 # Whether libtool must link a program against all its dependency libraries.
28766 link_all_deplibs=$link_all_deplibs_CXX
28767
28768 # Fix the shell variable \$srcfile for the compiler.
28769 fix_srcfile_path=$lt_fix_srcfile_path_CXX
28770
28771 # Set to "yes" if exported symbols are required.
28772 always_export_symbols=$always_export_symbols_CXX
28773
28774 # The commands to list exported symbols.
28775 export_symbols_cmds=$lt_export_symbols_cmds_CXX
28776
28777 # Symbols that should not be listed in the preloaded symbols.
28778 exclude_expsyms=$lt_exclude_expsyms_CXX
28779
28780 # Symbols that must always be exported.
28781 include_expsyms=$lt_include_expsyms_CXX
28782
28783 # Commands necessary for linking programs (against libraries) with templates.
28784 prelink_cmds=$lt_prelink_cmds_CXX
28785
28786 # Specify filename containing input files.
28787 file_list_spec=$lt_file_list_spec_CXX
28788
28789 # How to hardcode a shared library path into an executable.
28790 hardcode_action=$hardcode_action_CXX
28791
28792 # The directories searched by this compiler when creating a shared library.
28793 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28794
28795 # Dependencies to place before and after the objects being linked to
28796 # create a shared library.
28797 predep_objects=$lt_predep_objects_CXX
28798 postdep_objects=$lt_postdep_objects_CXX
28799 predeps=$lt_predeps_CXX
28800 postdeps=$lt_postdeps_CXX
28801
28802 # The library search path used internally by the compiler when linking
28803 # a shared library.
28804 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28805
28806 # ### END LIBTOOL TAG CONFIG: CXX
28807 _LT_EOF
28808
28809 ;;
28810 "default":C) echo timestamp > stamp-h
28811 ;;
28812
28813 esac
28814 done # for ac_tag
28815
28816
28817 as_fn_exit 0
28818 _ACEOF
28819 ac_clean_files=$ac_clean_files_save
28820
28821 test $ac_write_fail = 0 ||
28822 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28823
28824
28825 # configure is writing to config.log, and then calls config.status.
28826 # config.status does its own redirection, appending to config.log.
28827 # Unfortunately, on DOS this fails, as config.log is still kept open
28828 # by configure, so config.status won't be able to write to it; its
28829 # output is simply discarded. So we exec the FD to /dev/null,
28830 # effectively closing config.log, so it can be properly (re)opened and
28831 # appended to by config.status. When coming back to configure, we
28832 # need to make the FD available again.
28833 if test "$no_create" != yes; then
28834 ac_cs_success=:
28835 ac_config_status_args=
28836 test "$silent" = yes &&
28837 ac_config_status_args="$ac_config_status_args --quiet"
28838 exec 5>/dev/null
28839 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28840 exec 5>>config.log
28841 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28842 # would make configure fail if this is the last instruction.
28843 $ac_cs_success || as_fn_exit 1
28844 fi
28845
28846 #
28847 # CONFIG_SUBDIRS section.
28848 #
28849 if test "$no_recursion" != yes; then
28850
28851 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28852 # so they do not pile up.
28853 ac_sub_configure_args=
28854 ac_prev=
28855 eval "set x $ac_configure_args"
28856 shift
28857 for ac_arg
28858 do
28859 if test -n "$ac_prev"; then
28860 ac_prev=
28861 continue
28862 fi
28863 case $ac_arg in
28864 -cache-file | --cache-file | --cache-fil | --cache-fi \
28865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28866 ac_prev=cache_file ;;
28867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28869 | --c=*)
28870 ;;
28871 --config-cache | -C)
28872 ;;
28873 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28874 ac_prev=srcdir ;;
28875 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28876 ;;
28877 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28878 ac_prev=prefix ;;
28879 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28880 ;;
28881 --disable-option-checking)
28882 ;;
28883 *)
28884 case $ac_arg in
28885 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28886 esac
28887 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28888 esac
28889 done
28890
28891 # Always prepend --prefix to ensure using the same prefix
28892 # in subdir configurations.
28893 ac_arg="--prefix=$prefix"
28894 case $ac_arg in
28895 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28896 esac
28897 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28898
28899 # Pass --silent
28900 if test "$silent" = yes; then
28901 ac_sub_configure_args="--silent $ac_sub_configure_args"
28902 fi
28903
28904 # Always prepend --disable-option-checking to silence warnings, since
28905 # different subdirs can have different --enable and --with options.
28906 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28907
28908 ac_popdir=`pwd`
28909 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28910
28911 # Do not complain, so a configure script can configure whichever
28912 # parts of a large source tree are present.
28913 test -d "$srcdir/$ac_dir" || continue
28914
28915 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28916 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28917 $as_echo "$ac_msg" >&6
28918 as_dir="$ac_dir"; as_fn_mkdir_p
28919 ac_builddir=.
28920
28921 case "$ac_dir" in
28922 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28923 *)
28924 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28925 # A ".." for each directory in $ac_dir_suffix.
28926 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28927 case $ac_top_builddir_sub in
28928 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28929 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28930 esac ;;
28931 esac
28932 ac_abs_top_builddir=$ac_pwd
28933 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28934 # for backward compatibility:
28935 ac_top_builddir=$ac_top_build_prefix
28936
28937 case $srcdir in
28938 .) # We are building in place.
28939 ac_srcdir=.
28940 ac_top_srcdir=$ac_top_builddir_sub
28941 ac_abs_top_srcdir=$ac_pwd ;;
28942 [\\/]* | ?:[\\/]* ) # Absolute name.
28943 ac_srcdir=$srcdir$ac_dir_suffix;
28944 ac_top_srcdir=$srcdir
28945 ac_abs_top_srcdir=$srcdir ;;
28946 *) # Relative name.
28947 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28948 ac_top_srcdir=$ac_top_build_prefix$srcdir
28949 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28950 esac
28951 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28952
28953
28954 cd "$ac_dir"
28955
28956 # Check for guested configure; otherwise get Cygnus style configure.
28957 if test -f "$ac_srcdir/configure.gnu"; then
28958 ac_sub_configure=$ac_srcdir/configure.gnu
28959 elif test -f "$ac_srcdir/configure"; then
28960 ac_sub_configure=$ac_srcdir/configure
28961 elif test -f "$ac_srcdir/configure.in"; then
28962 # This should be Cygnus configure.
28963 ac_sub_configure=$ac_aux_dir/configure
28964 else
28965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28966 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28967 ac_sub_configure=
28968 fi
28969
28970 # The recursion is here.
28971 if test -n "$ac_sub_configure"; then
28972 # Make the cache file name correct relative to the subdirectory.
28973 case $cache_file in
28974 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28975 *) # Relative name.
28976 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28977 esac
28978
28979 { $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
28980 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28981 # The eval makes quoting arguments work.
28982 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28983 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28984 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28985 fi
28986
28987 cd "$ac_popdir"
28988 done
28989 fi
28990 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28992 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28993 fi
28994
28995
28996 builddir=.
28997 for moduledir in $ac_shared_module_dirs $ac_static_module_dirs; do
28998 srcinc=`echo "$moduledir" | sed -e 's/^.*\///'`.h;
28999
29000 if test -d $builddir/$moduledir ; then
29001 if test ! -e $builddir/include/$srcinc ; then
29002 if test -e $builddir/$moduledir/$srcinc ; then
29003 olddir=`pwd`
29004 cd $builddir/include
29005 ln -s ../$moduledir/$srcinc $srcinc
29006 cd $olddir
29007 fi
29008 fi
29009 fi
29010 done
29011
29012 # Display a summary of what modules will be compiled
29013 echo
29014 echo "--------------"
29015 echo "Build Summary"
29016 echo "--------------"
29017 if test ! -z "$my_static_modules"; then
29018 echo "Building the following static modules:"
29019 for amodule in $my_static_modules; do
29020 echo " $amodule"
29021 done
29022 fi
29023
29024 if test ! -z "$my_shared_modules"; then
29025 echo
29026 echo "Building the following shared modules:"
29027 for amodule in $my_shared_modules; do
29028 echo " $amodule"
29029 done
29030 fi
29031
29032 echo
29033 echo "--------------"