Imported Upstream version 3.3.2
[debian/amanda] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for amanda 3.3.2.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
176
177   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     PATH=/empty FPATH=/empty; export PATH FPATH
182     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME='amanda'
569 PACKAGE_TARNAME='amanda'
570 PACKAGE_VERSION='3.3.2'
571 PACKAGE_STRING='amanda 3.3.2'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
574
575 ac_unique_file="common-src/amanda.h"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 #  include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #  include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
611
612 gl_use_threads_default=
613 gl_header_list=
614 gl_func_list=
615 gl_getopt_required=POSIX
616 gl_getopt_required=POSIX
617 ac_subst_vars='gltests_LTLIBOBJS
618 gltests_LIBOBJS
619 gl_LTLIBOBJS
620 gl_LIBOBJS
621 am__EXEEXT_FALSE
622 am__EXEEXT_TRUE
623 LTLIBOBJS
624 LIBOBJS
625 WANT_NDMP_DEVICE_FALSE
626 WANT_NDMP_DEVICE_TRUE
627 WANT_DVDRW_DEVICE_FALSE
628 WANT_DVDRW_DEVICE_TRUE
629 WANT_TAPE_DEVICE_FALSE
630 WANT_TAPE_DEVICE_TRUE
631 WANT_S3_DEVICE_FALSE
632 WANT_S3_DEVICE_TRUE
633 LIBCURL
634 LIBCURL_CPPFLAGS
635 _libcurl_config
636 READLINE_LIBS
637 PKG_CONFIG_LIBDIR
638 PKG_CONFIG_PATH
639 PKG_CONFIG
640 GLIB_MKENUMS
641 GOBJECT_QUERY
642 GLIB_GENMARSHAL
643 GLIB_LIBS
644 GLIB_CFLAGS
645 AMANDA_STATIC_LDFLAGS
646 LIBTOOL_DEPS
647 OTOOL64
648 OTOOL
649 LIPO
650 NMEDIT
651 DSYMUTIL
652 MANIFEST_TOOL
653 ac_ct_AR
654 DLLTOOL
655 OBJDUMP
656 LN_S
657 NM
658 ac_ct_DUMPBIN
659 DUMPBIN
660 LD
661 FGREP
662 SED
663 LIBTOOL
664 AMANDA_SWIG_PERL_CFLAGS
665 GCC_COMPILER_FALSE
666 GCC_COMPILER_TRUE
667 NETCAT
668 NC6
669 NC
670 RPCGEN
671 PS_ARGUMENT_ARGS
672 PS_ARGUMENT
673 PS
674 LPRFLAG
675 LPR
676 UNAME
677 UMOUNT
678 MOUNT
679 MTX
680 MT_FILE_FLAG
681 MT
682 DEFAULT_MAILER
683 MAILER
684 SORT
685 BASH
686 DD
687 YFLAGS
688 YACC
689 AR
690 LEXLIB
691 LEX_OUTPUT_ROOT
692 LEX
693 AMLINTFLAGS
694 AMLINT
695 USE_RUNDUMP
696 WANT_SAMBA_FALSE
697 WANT_SAMBA_TRUE
698 SAMBA_CLIENT
699 SUNTAR
700 STAR
701 GNUTAR
702 DUMP_RETURNS_1
703 AIX_BACKUP
704 RESTORE
705 DUMP
706 VRESTORE
707 VDUMP
708 VXRESTORE
709 VXDUMP
710 XFSRESTORE
711 XFSDUMP
712 KRB5_SECURITY
713 WANT_KRB5_SECURITY_FALSE
714 WANT_KRB5_SECURITY_TRUE
715 SSH_SECURITY
716 WANT_SSH_SECURITY_FALSE
717 WANT_SSH_SECURITY_TRUE
718 SSH
719 RSH_SECURITY
720 WANT_RSH_SECURITY_FALSE
721 WANT_RSH_SECURITY_TRUE
722 BSDUDP_SECURITY
723 WANT_BSDUDP_SECURITY_FALSE
724 WANT_BSDUDP_SECURITY_TRUE
725 BSDTCP_SECURITY
726 WANT_BSDTCP_SECURITY_FALSE
727 WANT_BSDTCP_SECURITY_TRUE
728 USE_AMANDAHOSTS
729 BSD_SECURITY
730 WANT_BSD_SECURITY_FALSE
731 WANT_BSD_SECURITY_TRUE
732 POSUB
733 INTLLIBS
734 LTLIBICONV
735 LIBICONV
736 INTL_MACOSX_LIBS
737 MSGMERGE
738 XGETTEXT_015
739 XGETTEXT
740 GMSGFMT_015
741 MSGFMT_015
742 GMSGFMT
743 USE_NLS
744 GETTEXT
745 MSGFMT
746 amdatadir
747 APPLICATION_DIR
748 amperldir
749 amincludedir
750 amlibexecdir
751 amlibdir
752 CLIENT_SCRIPTS_OPT
753 HAVE_GZIP
754 UNCOMPRESS_OPT
755 UNCOMPRESS_PATH
756 COMPRESS_BEST_OPT
757 COMPRESS_FAST_OPT
758 COMPRESS_SUFFIX
759 COMPRESS_PATH
760 CAT
761 PERLEXTLIBS
762 WANT_MANDATORY_THREAD_CHECK_FALSE
763 WANT_MANDATORY_THREAD_CHECK_TRUE
764 WANT_CYGWIN_COPY_PERL_DLL_FALSE
765 WANT_CYGWIN_COPY_PERL_DLL_TRUE
766 PERL_INC
767 PERL
768 SWIG_LIB
769 SWIG
770 LOCKING
771 WANT_AMFLOCK_LNLOCK_FALSE
772 WANT_AMFLOCK_LNLOCK_TRUE
773 WANT_AMFLOCK_LOCKF_FALSE
774 WANT_AMFLOCK_LOCKF_TRUE
775 WANT_AMFLOCK_FLOCK_FALSE
776 WANT_AMFLOCK_FLOCK_TRUE
777 WANT_AMFLOCK_POSIX_FALSE
778 WANT_AMFLOCK_POSIX_TRUE
779 GETCONF
780 DEFAULT_AMANDATES_FILE
781 EXAMPLE_TAPEDEV
782 DEFAULT_TAPE_DEVICE
783 DEFAULT_TAPE_SERVER
784 DEFAULT_CONFIG
785 DEFAULT_SERVER
786 CONFIG_CLOBBER_MY_CONFIG
787 DOC_BUILD_DATE
788 XSLREL
789 ENABLE_MANPAGE_BUILD_FALSE
790 ENABLE_MANPAGE_BUILD_TRUE
791 XSLTPROC
792 XSLTPROC_FLAGS
793 WANT_AMPLOT_FALSE
794 WANT_AMPLOT_TRUE
795 AMPLOT_CAT_PACK
796 AMPLOT_CAT_COMPRESS
797 AMPLOT_CAT_GZIP
798 AMPLOT_COMPRESS
799 GZIP
800 COMPRESS
801 PCAT
802 GNUPLOT
803 AMANDA_COMPONENTS
804 WANT_TAPE_FALSE
805 WANT_TAPE_TRUE
806 WANT_NDMP_FALSE
807 WANT_NDMP_TRUE
808 WANT_RECOVER_FALSE
809 WANT_RECOVER_TRUE
810 WANT_SERVER_FALSE
811 WANT_SERVER_TRUE
812 WANT_RESTORE_FALSE
813 WANT_RESTORE_TRUE
814 WANT_CLIENT_FALSE
815 WANT_CLIENT_TRUE
816 SYNTAX_CHECKS_FALSE
817 SYNTAX_CHECKS_TRUE
818 WANT_INSTALLPERMS_FALSE
819 WANT_INSTALLPERMS_TRUE
820 WANT_SETUID_CLIENT_FALSE
821 WANT_SETUID_CLIENT_TRUE
822 SERVICE_SUFFIX
823 AMANDA_DEBUG_DAYS
824 AMANDA_DBGDIR
825 ASSERTIONS
826 LOW_TCPPORTRANGE
827 TCPPORTRANGE
828 UDPPORTRANGE
829 BINARY_OWNER
830 CHECK_USERID_FALSE
831 CHECK_USERID_TRUE
832 CHECK_USERID
833 AMANDA_TMPDIR
834 GNUTAR_LISTED_INCREMENTAL_DIR
835 CONFIG_DIR
836 SETUID_GROUP
837 CLIENT_LOGIN
838 AS_NEEDED_FLAGS
839 WANT_AS_NEEDED_FALSE
840 WANT_AS_NEEDED_TRUE
841 AMANDA_WARNING_CFLAGS
842 gltests_WITNESS
843 REPLACE_ISWCNTRL
844 HAVE_WCTYPE_H
845 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
846 NEXT_WCTYPE_H
847 REPLACE_ISWBLANK
848 HAVE_ISWBLANK
849 HAVE_ISWCNTRL
850 HAVE_WINT_T
851 HAVE_WCHAR_H
852 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
853 NEXT_WCHAR_H
854 HAVE_UNISTD_H
855 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
856 NEXT_UNISTD_H
857 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
858 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
859 TIME_H_DEFINES_STRUCT_TIMESPEC
860 NEXT_AS_FIRST_DIRECTIVE_TIME_H
861 NEXT_TIME_H
862 REPLACE_TIMEGM
863 REPLACE_NANOSLEEP
864 REPLACE_MKTIME
865 REPLACE_LOCALTIME_R
866 HAVE_TIMEGM
867 HAVE_STRPTIME
868 HAVE_NANOSLEEP
869 HAVE_LOCALTIME_R
870 GNULIB_TIME_R
871 GNULIB_TIMEGM
872 GNULIB_STRPTIME
873 GNULIB_NANOSLEEP
874 GNULIB_MKTIME
875 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
876 NEXT_SYS_STAT_H
877 NEXT_AS_FIRST_DIRECTIVE_STRING_H
878 NEXT_STRING_H
879 HAVE_RANDOM_H
880 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
881 NEXT_STDLIB_H
882 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
883 NEXT_STDIO_H
884 ASM_SYMBOL_PREFIX
885 STDINT_H
886 WINT_T_SUFFIX
887 WCHAR_T_SUFFIX
888 SIG_ATOMIC_T_SUFFIX
889 SIZE_T_SUFFIX
890 PTRDIFF_T_SUFFIX
891 HAVE_SIGNED_WINT_T
892 HAVE_SIGNED_WCHAR_T
893 HAVE_SIGNED_SIG_ATOMIC_T
894 BITSIZEOF_WINT_T
895 BITSIZEOF_WCHAR_T
896 BITSIZEOF_SIG_ATOMIC_T
897 BITSIZEOF_SIZE_T
898 BITSIZEOF_PTRDIFF_T
899 HAVE_SYS_BITYPES_H
900 HAVE_SYS_INTTYPES_H
901 HAVE_STDINT_H
902 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
903 NEXT_STDINT_H
904 HAVE_SYS_TYPES_H
905 HAVE_INTTYPES_H
906 HAVE_UNSIGNED_LONG_LONG_INT
907 HAVE_LONG_LONG_INT
908 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
909 NEXT_STDDEF_H
910 STDDEF_H
911 HAVE_WCHAR_T
912 REPLACE_NULL
913 HAVE__BOOL
914 STDBOOL_H
915 NETINET_IN_H
916 HAVE_NETINET_IN_H
917 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
918 NEXT_NETINET_IN_H
919 APPLE_UNIVERSAL_BUILD
920 UNDEFINE_STRTOK_R
921 REPLACE_STRTOK_R
922 REPLACE_STRSIGNAL
923 REPLACE_STRNLEN
924 REPLACE_STRNDUP
925 REPLACE_STRNCAT
926 REPLACE_STRERROR
927 REPLACE_STRCASESTR
928 REPLACE_STRSTR
929 REPLACE_STRDUP
930 REPLACE_STPNCPY
931 REPLACE_MEMMEM
932 REPLACE_MEMCHR
933 HAVE_STRVERSCMP
934 HAVE_DECL_STRSIGNAL
935 HAVE_DECL_STRTOK_R
936 HAVE_STRCASESTR
937 HAVE_STRSEP
938 HAVE_STRPBRK
939 HAVE_DECL_STRNLEN
940 HAVE_DECL_STRNDUP
941 HAVE_DECL_STRDUP
942 HAVE_STRCHRNUL
943 HAVE_STPNCPY
944 HAVE_STPCPY
945 HAVE_RAWMEMCHR
946 HAVE_DECL_MEMRCHR
947 HAVE_MEMPCPY
948 HAVE_DECL_MEMMEM
949 HAVE_MEMCHR
950 HAVE_MBSLEN
951 GNULIB_STRVERSCMP
952 GNULIB_STRSIGNAL
953 GNULIB_STRERROR
954 GNULIB_MBSTOK_R
955 GNULIB_MBSSEP
956 GNULIB_MBSSPN
957 GNULIB_MBSPBRK
958 GNULIB_MBSCSPN
959 GNULIB_MBSCASESTR
960 GNULIB_MBSPCASECMP
961 GNULIB_MBSNCASECMP
962 GNULIB_MBSCASECMP
963 GNULIB_MBSSTR
964 GNULIB_MBSRCHR
965 GNULIB_MBSCHR
966 GNULIB_MBSNLEN
967 GNULIB_MBSLEN
968 GNULIB_STRTOK_R
969 GNULIB_STRCASESTR
970 GNULIB_STRSTR
971 GNULIB_STRSEP
972 GNULIB_STRPBRK
973 GNULIB_STRNLEN
974 GNULIB_STRNDUP
975 GNULIB_STRNCAT
976 GNULIB_STRDUP
977 GNULIB_STRCHRNUL
978 GNULIB_STPNCPY
979 GNULIB_STPCPY
980 GNULIB_RAWMEMCHR
981 GNULIB_MEMRCHR
982 GNULIB_MEMPCPY
983 GNULIB_MEMMEM
984 GNULIB_MEMCHR
985 LOCALE_FR_UTF8
986 LOCALE_ZH_CN
987 LOCALE_JA
988 REPLACE_UNSETENV
989 REPLACE_STRTOD
990 REPLACE_SETENV
991 REPLACE_REALPATH
992 REPLACE_REALLOC
993 REPLACE_PUTENV
994 REPLACE_MKSTEMP
995 REPLACE_MALLOC
996 REPLACE_CANONICALIZE_FILE_NAME
997 REPLACE_CALLOC
998 HAVE_UNSETENV
999 HAVE_UNLOCKPT
1000 HAVE_SYS_LOADAVG_H
1001 HAVE_STRUCT_RANDOM_DATA
1002 HAVE_STRTOULL
1003 HAVE_STRTOLL
1004 HAVE_STRTOD
1005 HAVE_SETENV
1006 HAVE_RPMATCH
1007 HAVE_REALPATH
1008 HAVE_RANDOM_R
1009 HAVE_PTSNAME
1010 HAVE_MKSTEMPS
1011 HAVE_MKSTEMP
1012 HAVE_MKOSTEMPS
1013 HAVE_MKOSTEMP
1014 HAVE_MKDTEMP
1015 HAVE_GRANTPT
1016 HAVE_GETSUBOPT
1017 HAVE_DECL_GETLOADAVG
1018 HAVE_CANONICALIZE_FILE_NAME
1019 HAVE_ATOLL
1020 HAVE__EXIT
1021 GNULIB_UNSETENV
1022 GNULIB_UNLOCKPT
1023 GNULIB_STRTOULL
1024 GNULIB_STRTOLL
1025 GNULIB_STRTOD
1026 GNULIB_SETENV
1027 GNULIB_RPMATCH
1028 GNULIB_REALPATH
1029 GNULIB_REALLOC_POSIX
1030 GNULIB_RANDOM_R
1031 GNULIB_PUTENV
1032 GNULIB_PTSNAME
1033 GNULIB_MKSTEMPS
1034 GNULIB_MKSTEMP
1035 GNULIB_MKOSTEMPS
1036 GNULIB_MKOSTEMP
1037 GNULIB_MKDTEMP
1038 GNULIB_MALLOC_POSIX
1039 GNULIB_GRANTPT
1040 GNULIB_GETSUBOPT
1041 GNULIB_GETLOADAVG
1042 GNULIB_CANONICALIZE_FILE_NAME
1043 GNULIB_CALLOC_POSIX
1044 GNULIB_ATOLL
1045 GNULIB__EXIT
1046 REPLACE_UTIMENSAT
1047 REPLACE_STAT
1048 REPLACE_MKNOD
1049 REPLACE_MKFIFO
1050 REPLACE_MKDIR
1051 REPLACE_LSTAT
1052 REPLACE_FUTIMENS
1053 REPLACE_FSTATAT
1054 REPLACE_FSTAT
1055 HAVE_UTIMENSAT
1056 HAVE_MKNODAT
1057 HAVE_MKNOD
1058 HAVE_MKFIFOAT
1059 HAVE_MKFIFO
1060 HAVE_MKDIRAT
1061 HAVE_LSTAT
1062 HAVE_LCHMOD
1063 HAVE_FUTIMENS
1064 HAVE_FSTATAT
1065 HAVE_FCHMODAT
1066 GNULIB_UTIMENSAT
1067 GNULIB_STAT
1068 GNULIB_MKNODAT
1069 GNULIB_MKNOD
1070 GNULIB_MKFIFOAT
1071 GNULIB_MKFIFO
1072 GNULIB_MKDIRAT
1073 GNULIB_LSTAT
1074 GNULIB_LCHMOD
1075 GNULIB_FUTIMENS
1076 GNULIB_FSTATAT
1077 GNULIB_FCHMODAT
1078 LTLIBMULTITHREAD
1079 LIBMULTITHREAD
1080 LTLIBTHREAD
1081 LIBTHREAD
1082 LTLIBPTH
1083 LIBPTH
1084 LOCALCHARSET_TESTS_ENVIRONMENT
1085 GLIBC21
1086 HAVE_LANGINFO_ERA
1087 HAVE_LANGINFO_CODESET
1088 HAVE_LANGINFO_H
1089 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1090 NEXT_LANGINFO_H
1091 REPLACE_NL_LANGINFO
1092 HAVE_NL_LANGINFO
1093 GNULIB_NL_LANGINFO
1094 INET_PTON_LIB
1095 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1096 NEXT_SYS_TIME_H
1097 REPLACE_GETTIMEOFDAY
1098 HAVE_SYS_TIME_H
1099 HAVE_STRUCT_TIMEVAL
1100 HAVE_GETTIMEOFDAY
1101 GNULIB_GETTIMEOFDAY
1102 LTLIBINTL
1103 LIBINTL
1104 GETOPT_H
1105 HAVE_GETOPT_H
1106 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1107 NEXT_GETOPT_H
1108 GETADDRINFO_LIB
1109 INET_NTOP_LIB
1110 SERVENT_LIB
1111 HOSTENT_LIB
1112 HAVE_NETDB_H
1113 NEXT_AS_FIRST_DIRECTIVE_NETDB_H
1114 NEXT_NETDB_H
1115 HAVE_DECL_GETNAMEINFO
1116 HAVE_DECL_GETADDRINFO
1117 HAVE_DECL_GAI_STRERROR
1118 HAVE_DECL_FREEADDRINFO
1119 HAVE_STRUCT_ADDRINFO
1120 GNULIB_GETADDRINFO
1121 HAVE_WINSOCK2_H
1122 HAVE_WS2TCPIP_H
1123 HAVE_SYS_SOCKET_H
1124 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1125 NEXT_SYS_SOCKET_H
1126 HAVE_ACCEPT4
1127 HAVE_SA_FAMILY_T
1128 HAVE_STRUCT_SOCKADDR_STORAGE
1129 GNULIB_ACCEPT4
1130 GNULIB_SHUTDOWN
1131 GNULIB_SETSOCKOPT
1132 GNULIB_SENDTO
1133 GNULIB_RECVFROM
1134 GNULIB_SEND
1135 GNULIB_RECV
1136 GNULIB_LISTEN
1137 GNULIB_GETSOCKOPT
1138 GNULIB_GETSOCKNAME
1139 GNULIB_GETPEERNAME
1140 GNULIB_BIND
1141 GNULIB_ACCEPT
1142 GNULIB_CONNECT
1143 GNULIB_SOCKET
1144 REPLACE_VSPRINTF
1145 REPLACE_VSNPRINTF
1146 REPLACE_VPRINTF
1147 REPLACE_VFPRINTF
1148 REPLACE_VDPRINTF
1149 REPLACE_VASPRINTF
1150 REPLACE_TMPFILE
1151 REPLACE_STDIO_WRITE_FUNCS
1152 REPLACE_SPRINTF
1153 REPLACE_SNPRINTF
1154 REPLACE_RENAMEAT
1155 REPLACE_RENAME
1156 REPLACE_REMOVE
1157 REPLACE_PRINTF
1158 REPLACE_POPEN
1159 REPLACE_PERROR
1160 REPLACE_OBSTACK_PRINTF
1161 REPLACE_GETLINE
1162 REPLACE_GETDELIM
1163 REPLACE_FTELLO
1164 REPLACE_FTELL
1165 REPLACE_FSEEKO
1166 REPLACE_FSEEK
1167 REPLACE_FREOPEN
1168 REPLACE_FPURGE
1169 REPLACE_FPRINTF
1170 REPLACE_FOPEN
1171 REPLACE_FFLUSH
1172 REPLACE_FCLOSE
1173 REPLACE_DPRINTF
1174 HAVE_VDPRINTF
1175 HAVE_VASPRINTF
1176 HAVE_RENAMEAT
1177 HAVE_FTELLO
1178 HAVE_FSEEKO
1179 HAVE_DPRINTF
1180 HAVE_DECL_VSNPRINTF
1181 HAVE_DECL_SNPRINTF
1182 HAVE_DECL_OBSTACK_PRINTF
1183 HAVE_DECL_GETLINE
1184 HAVE_DECL_GETDELIM
1185 HAVE_DECL_FPURGE
1186 GNULIB_VSPRINTF_POSIX
1187 GNULIB_VSNPRINTF
1188 GNULIB_VPRINTF_POSIX
1189 GNULIB_VPRINTF
1190 GNULIB_VFPRINTF_POSIX
1191 GNULIB_VFPRINTF
1192 GNULIB_VDPRINTF
1193 GNULIB_VASPRINTF
1194 GNULIB_TMPFILE
1195 GNULIB_STDIO_H_SIGPIPE
1196 GNULIB_SPRINTF_POSIX
1197 GNULIB_SNPRINTF
1198 GNULIB_RENAMEAT
1199 GNULIB_RENAME
1200 GNULIB_REMOVE
1201 GNULIB_PUTS
1202 GNULIB_PUTCHAR
1203 GNULIB_PUTC
1204 GNULIB_PRINTF_POSIX
1205 GNULIB_PRINTF
1206 GNULIB_POPEN
1207 GNULIB_PERROR
1208 GNULIB_OBSTACK_PRINTF_POSIX
1209 GNULIB_OBSTACK_PRINTF
1210 GNULIB_GETLINE
1211 GNULIB_GETDELIM
1212 GNULIB_FWRITE
1213 GNULIB_FTELLO
1214 GNULIB_FTELL
1215 GNULIB_FSEEKO
1216 GNULIB_FSEEK
1217 GNULIB_FREOPEN
1218 GNULIB_FPUTS
1219 GNULIB_FPUTC
1220 GNULIB_FPURGE
1221 GNULIB_FPRINTF_POSIX
1222 GNULIB_FPRINTF
1223 GNULIB_FOPEN
1224 GNULIB_FFLUSH
1225 GNULIB_FCLOSE
1226 GNULIB_DPRINTF
1227 FLOAT_H
1228 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1229 NEXT_FLOAT_H
1230 EOVERFLOW_VALUE
1231 EOVERFLOW_HIDDEN
1232 ENOLINK_VALUE
1233 ENOLINK_HIDDEN
1234 EMULTIHOP_VALUE
1235 EMULTIHOP_HIDDEN
1236 ERRNO_H
1237 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1238 NEXT_ERRNO_H
1239 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1240 UNISTD_H_HAVE_WINSOCK2_H
1241 REPLACE_WRITE
1242 REPLACE_USLEEP
1243 REPLACE_UNLINKAT
1244 REPLACE_UNLINK
1245 REPLACE_TTYNAME_R
1246 REPLACE_SYMLINK
1247 REPLACE_SLEEP
1248 REPLACE_RMDIR
1249 REPLACE_READLINK
1250 REPLACE_PWRITE
1251 REPLACE_PREAD
1252 REPLACE_LSEEK
1253 REPLACE_LINKAT
1254 REPLACE_LINK
1255 REPLACE_LCHOWN
1256 REPLACE_GETPAGESIZE
1257 REPLACE_GETGROUPS
1258 REPLACE_GETCWD
1259 REPLACE_FCHOWNAT
1260 REPLACE_DUP2
1261 REPLACE_DUP
1262 REPLACE_CLOSE
1263 REPLACE_CHOWN
1264 HAVE_SYS_PARAM_H
1265 HAVE_OS_H
1266 HAVE_DECL_GETUSERSHELL
1267 HAVE_DECL_GETPAGESIZE
1268 HAVE_DECL_GETLOGIN_R
1269 HAVE_DECL_ENVIRON
1270 HAVE_USLEEP
1271 HAVE_UNLINKAT
1272 HAVE_TTYNAME_R
1273 HAVE_SYMLINKAT
1274 HAVE_SYMLINK
1275 HAVE_SLEEP
1276 HAVE_READLINKAT
1277 HAVE_READLINK
1278 HAVE_PWRITE
1279 HAVE_PREAD
1280 HAVE_PIPE2
1281 HAVE_LINKAT
1282 HAVE_LINK
1283 HAVE_LCHOWN
1284 HAVE_GETPAGESIZE
1285 HAVE_GETLOGIN
1286 HAVE_GETHOSTNAME
1287 HAVE_GETGROUPS
1288 HAVE_GETDTABLESIZE
1289 HAVE_GETDOMAINNAME
1290 HAVE_FTRUNCATE
1291 HAVE_FSYNC
1292 HAVE_FCHOWNAT
1293 HAVE_FCHDIR
1294 HAVE_FACCESSAT
1295 HAVE_EUIDACCESS
1296 HAVE_DUP3
1297 HAVE_DUP2
1298 HAVE_CHOWN
1299 GNULIB_WRITE
1300 GNULIB_USLEEP
1301 GNULIB_UNLINKAT
1302 GNULIB_UNLINK
1303 GNULIB_UNISTD_H_SIGPIPE
1304 GNULIB_UNISTD_H_GETOPT
1305 GNULIB_TTYNAME_R
1306 GNULIB_SYMLINKAT
1307 GNULIB_SYMLINK
1308 GNULIB_SLEEP
1309 GNULIB_RMDIR
1310 GNULIB_READLINKAT
1311 GNULIB_READLINK
1312 GNULIB_PWRITE
1313 GNULIB_PREAD
1314 GNULIB_PIPE2
1315 GNULIB_LSEEK
1316 GNULIB_LINKAT
1317 GNULIB_LINK
1318 GNULIB_LCHOWN
1319 GNULIB_GETUSERSHELL
1320 GNULIB_GETPAGESIZE
1321 GNULIB_GETLOGIN_R
1322 GNULIB_GETLOGIN
1323 GNULIB_GETHOSTNAME
1324 GNULIB_GETGROUPS
1325 GNULIB_GETDTABLESIZE
1326 GNULIB_GETDOMAINNAME
1327 GNULIB_GETCWD
1328 GNULIB_FTRUNCATE
1329 GNULIB_FSYNC
1330 GNULIB_FCHOWNAT
1331 GNULIB_FCHDIR
1332 GNULIB_FACCESSAT
1333 GNULIB_EUIDACCESS
1334 GNULIB_ENVIRON
1335 GNULIB_DUP3
1336 GNULIB_DUP2
1337 GNULIB_CLOSE
1338 GNULIB_CHOWN
1339 LOCALE_FR
1340 REPLACE_WCWIDTH
1341 REPLACE_WCSNRTOMBS
1342 REPLACE_WCSRTOMBS
1343 REPLACE_WCRTOMB
1344 REPLACE_MBSNRTOWCS
1345 REPLACE_MBSRTOWCS
1346 REPLACE_MBRLEN
1347 REPLACE_MBRTOWC
1348 REPLACE_MBSINIT
1349 REPLACE_WCTOB
1350 REPLACE_BTOWC
1351 REPLACE_MBSTATE_T
1352 HAVE_DECL_WCWIDTH
1353 HAVE_DECL_WCTOB
1354 HAVE_WCSNRTOMBS
1355 HAVE_WCSRTOMBS
1356 HAVE_WCRTOMB
1357 HAVE_MBSNRTOWCS
1358 HAVE_MBSRTOWCS
1359 HAVE_MBRLEN
1360 HAVE_MBRTOWC
1361 HAVE_MBSINIT
1362 HAVE_BTOWC
1363 GNULIB_WCWIDTH
1364 GNULIB_WCSNRTOMBS
1365 GNULIB_WCSRTOMBS
1366 GNULIB_WCRTOMB
1367 GNULIB_MBSNRTOWCS
1368 GNULIB_MBSRTOWCS
1369 GNULIB_MBRLEN
1370 GNULIB_MBRTOWC
1371 GNULIB_MBSINIT
1372 GNULIB_WCTOB
1373 GNULIB_BTOWC
1374 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1375 NEXT_ARPA_INET_H
1376 PRAGMA_SYSTEM_HEADER
1377 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1378 INCLUDE_NEXT
1379 HAVE_ARPA_INET_H
1380 HAVE_DECL_INET_PTON
1381 HAVE_DECL_INET_NTOP
1382 GNULIB_INET_PTON
1383 GNULIB_INET_NTOP
1384 ALLOCA_H
1385 ALLOCA
1386 GL_COND_LIBTOOL_FALSE
1387 GL_COND_LIBTOOL_TRUE
1388 EGREP
1389 CPP
1390 RANLIB
1391 am__fastdepCC_FALSE
1392 am__fastdepCC_TRUE
1393 CCDEPMODE
1394 AMDEPBACKSLASH
1395 AMDEP_FALSE
1396 AMDEP_TRUE
1397 am__quote
1398 am__include
1399 DEPDIR
1400 OBJEXT
1401 EXEEXT
1402 ac_ct_CC
1403 CPPFLAGS
1404 LDFLAGS
1405 CFLAGS
1406 CC
1407 VERSION_COMMENT
1408 VERSION_PATCH
1409 VERSION_MINOR
1410 VERSION_MAJOR
1411 SNAPSHOT_STAMP
1412 am__untar
1413 am__tar
1414 AMTAR
1415 am__leading_dot
1416 SET_MAKE
1417 AWK
1418 mkdir_p
1419 MKDIR_P
1420 INSTALL_STRIP_PROGRAM
1421 STRIP
1422 install_sh
1423 MAKEINFO
1424 AUTOHEADER
1425 AUTOMAKE
1426 AUTOCONF
1427 ACLOCAL
1428 VERSION
1429 CYGPATH_W
1430 am__isrc
1431 INSTALL_DATA
1432 INSTALL_SCRIPT
1433 INSTALL_PROGRAM
1434 GIT
1435 SVN
1436 GREP
1437 PACKAGE
1438 host_os
1439 host_vendor
1440 host_cpu
1441 host
1442 build_os
1443 build_vendor
1444 build_cpu
1445 build
1446 target_alias
1447 host_alias
1448 build_alias
1449 LIBS
1450 ECHO_T
1451 ECHO_N
1452 ECHO_C
1453 DEFS
1454 mandir
1455 localedir
1456 libdir
1457 psdir
1458 pdfdir
1459 dvidir
1460 htmldir
1461 infodir
1462 docdir
1463 oldincludedir
1464 includedir
1465 localstatedir
1466 sharedstatedir
1467 sysconfdir
1468 datadir
1469 datarootdir
1470 libexecdir
1471 sbindir
1472 bindir
1473 program_transform_name
1474 prefix
1475 exec_prefix
1476 PACKAGE_URL
1477 PACKAGE_BUGREPORT
1478 PACKAGE_STRING
1479 PACKAGE_VERSION
1480 PACKAGE_TARNAME
1481 PACKAGE_NAME
1482 PATH_SEPARATOR
1483 SHELL'
1484 ac_subst_files=''
1485 ac_user_opts='
1486 enable_option_checking
1487 enable_dependency_tracking
1488 enable_threads
1489 with_gnu_ld
1490 enable_rpath
1491 with_libpth_prefix
1492 with_included_regex
1493 enable_largefile
1494 with_cflags
1495 with_includes
1496 with_libraries
1497 enable_as_needed
1498 with_user
1499 with_group
1500 with_dumperdir
1501 with_configdir
1502 with_indexdir
1503 with_dbdir
1504 with_logdir
1505 with_suffixes
1506 with_gnutar_listdir
1507 with_gnutar_listed_incremental
1508 with_tmpdir
1509 with_force_uid
1510 with_owner
1511 with_fqdn
1512 with_reuseports
1513 with_low_tcpportrange
1514 with_tcpportrange
1515 with_udpportrange
1516 with_buffered_dump
1517 with_maxtapeblocksize
1518 with_assertions
1519 with_debugging
1520 with_debug_days
1521 with_testing
1522 with_single_userid
1523 enable_installperms
1524 enable_syntax_checks
1525 with_server
1526 with_client
1527 with_restore
1528 with_amrecover
1529 with_client_only
1530 with_server_only
1531 with_ndmp
1532 with_gnuplot
1533 enable_manpage_build
1534 with_xsltproc
1535 with_xsltproc_flags
1536 with_index_server
1537 with_config
1538 with_tape_server
1539 with_tape_device
1540 with_changer_device
1541 with_amandates
1542 with_perlextlibs
1543 with_ipv6
1544 with_amlibdir
1545 with_amlibexecdir
1546 with_amperldir
1547 with_amdatadir
1548 enable_nls
1549 with_libiconv_prefix
1550 with_libintl_prefix
1551 with_bsd_security
1552 with_amandahosts
1553 with_bsdtcp_security
1554 with_bsdudp_security
1555 with_rsh_security
1556 with_ssh_security
1557 with_ssh_options
1558 with_krb5_security
1559 with_dump_honor_nodump
1560 with_gnutar
1561 with_star
1562 with_suntar
1563 with_smbclient
1564 with_samba_user
1565 with_rundump
1566 enable_werror
1567 enable_swig_error
1568 enable_shared
1569 enable_static
1570 with_pic
1571 enable_fast_install
1572 with_sysroot
1573 enable_libtool_lock
1574 enable_static_binary
1575 enable_glibtest
1576 with_readline
1577 with_libcurl
1578 enable_s3_device
1579 enable_dvdrw_device
1580 enable_ndmp_device
1581 '
1582       ac_precious_vars='build_alias
1583 host_alias
1584 target_alias
1585 CC
1586 CFLAGS
1587 LDFLAGS
1588 LIBS
1589 CPPFLAGS
1590 CPP
1591 GNUPLOT
1592 SWIG
1593 PERL
1594 GNUTAR
1595 STAR
1596 SUNTAR
1597 YACC
1598 YFLAGS
1599 MTX
1600 MOUNT
1601 UMOUNT
1602 GLIB_CFLAGS
1603 GLIB_LIBS
1604 GLIB_GENMARSHAL
1605 GOBJECT_QUERY
1606 GLIB_MKENUMS
1607 PKG_CONFIG
1608 PKG_CONFIG_PATH
1609 PKG_CONFIG_LIBDIR'
1610
1611
1612 # Initialize some variables set by options.
1613 ac_init_help=
1614 ac_init_version=false
1615 ac_unrecognized_opts=
1616 ac_unrecognized_sep=
1617 # The variables have the same names as the options, with
1618 # dashes changed to underlines.
1619 cache_file=/dev/null
1620 exec_prefix=NONE
1621 no_create=
1622 no_recursion=
1623 prefix=NONE
1624 program_prefix=NONE
1625 program_suffix=NONE
1626 program_transform_name=s,x,x,
1627 silent=
1628 site=
1629 srcdir=
1630 verbose=
1631 x_includes=NONE
1632 x_libraries=NONE
1633
1634 # Installation directory options.
1635 # These are left unexpanded so users can "make install exec_prefix=/foo"
1636 # and all the variables that are supposed to be based on exec_prefix
1637 # by default will actually change.
1638 # Use braces instead of parens because sh, perl, etc. also accept them.
1639 # (The list follows the same order as the GNU Coding Standards.)
1640 bindir='${exec_prefix}/bin'
1641 sbindir='${exec_prefix}/sbin'
1642 libexecdir='${exec_prefix}/libexec'
1643 datarootdir='${prefix}/share'
1644 datadir='${datarootdir}'
1645 sysconfdir='${prefix}/etc'
1646 sharedstatedir='${prefix}/com'
1647 localstatedir='${prefix}/var'
1648 includedir='${prefix}/include'
1649 oldincludedir='/usr/include'
1650 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1651 infodir='${datarootdir}/info'
1652 htmldir='${docdir}'
1653 dvidir='${docdir}'
1654 pdfdir='${docdir}'
1655 psdir='${docdir}'
1656 libdir='${exec_prefix}/lib'
1657 localedir='${datarootdir}/locale'
1658 mandir='${datarootdir}/man'
1659
1660 ac_prev=
1661 ac_dashdash=
1662 for ac_option
1663 do
1664   # If the previous option needs an argument, assign it.
1665   if test -n "$ac_prev"; then
1666     eval $ac_prev=\$ac_option
1667     ac_prev=
1668     continue
1669   fi
1670
1671   case $ac_option in
1672   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1673   *=)   ac_optarg= ;;
1674   *)    ac_optarg=yes ;;
1675   esac
1676
1677   # Accept the important Cygnus configure options, so we can diagnose typos.
1678
1679   case $ac_dashdash$ac_option in
1680   --)
1681     ac_dashdash=yes ;;
1682
1683   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1684     ac_prev=bindir ;;
1685   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1686     bindir=$ac_optarg ;;
1687
1688   -build | --build | --buil | --bui | --bu)
1689     ac_prev=build_alias ;;
1690   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1691     build_alias=$ac_optarg ;;
1692
1693   -cache-file | --cache-file | --cache-fil | --cache-fi \
1694   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1695     ac_prev=cache_file ;;
1696   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1697   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1698     cache_file=$ac_optarg ;;
1699
1700   --config-cache | -C)
1701     cache_file=config.cache ;;
1702
1703   -datadir | --datadir | --datadi | --datad)
1704     ac_prev=datadir ;;
1705   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1706     datadir=$ac_optarg ;;
1707
1708   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1709   | --dataroo | --dataro | --datar)
1710     ac_prev=datarootdir ;;
1711   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1712   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1713     datarootdir=$ac_optarg ;;
1714
1715   -disable-* | --disable-*)
1716     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1717     # Reject names that are not valid shell variable names.
1718     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1719       as_fn_error $? "invalid feature name: $ac_useropt"
1720     ac_useropt_orig=$ac_useropt
1721     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1722     case $ac_user_opts in
1723       *"
1724 "enable_$ac_useropt"
1725 "*) ;;
1726       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1727          ac_unrecognized_sep=', ';;
1728     esac
1729     eval enable_$ac_useropt=no ;;
1730
1731   -docdir | --docdir | --docdi | --doc | --do)
1732     ac_prev=docdir ;;
1733   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1734     docdir=$ac_optarg ;;
1735
1736   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1737     ac_prev=dvidir ;;
1738   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1739     dvidir=$ac_optarg ;;
1740
1741   -enable-* | --enable-*)
1742     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1743     # Reject names that are not valid shell variable names.
1744     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1745       as_fn_error $? "invalid feature name: $ac_useropt"
1746     ac_useropt_orig=$ac_useropt
1747     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1748     case $ac_user_opts in
1749       *"
1750 "enable_$ac_useropt"
1751 "*) ;;
1752       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1753          ac_unrecognized_sep=', ';;
1754     esac
1755     eval enable_$ac_useropt=\$ac_optarg ;;
1756
1757   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1758   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1759   | --exec | --exe | --ex)
1760     ac_prev=exec_prefix ;;
1761   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1762   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1763   | --exec=* | --exe=* | --ex=*)
1764     exec_prefix=$ac_optarg ;;
1765
1766   -gas | --gas | --ga | --g)
1767     # Obsolete; use --with-gas.
1768     with_gas=yes ;;
1769
1770   -help | --help | --hel | --he | -h)
1771     ac_init_help=long ;;
1772   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1773     ac_init_help=recursive ;;
1774   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1775     ac_init_help=short ;;
1776
1777   -host | --host | --hos | --ho)
1778     ac_prev=host_alias ;;
1779   -host=* | --host=* | --hos=* | --ho=*)
1780     host_alias=$ac_optarg ;;
1781
1782   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1783     ac_prev=htmldir ;;
1784   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1785   | --ht=*)
1786     htmldir=$ac_optarg ;;
1787
1788   -includedir | --includedir | --includedi | --included | --include \
1789   | --includ | --inclu | --incl | --inc)
1790     ac_prev=includedir ;;
1791   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1792   | --includ=* | --inclu=* | --incl=* | --inc=*)
1793     includedir=$ac_optarg ;;
1794
1795   -infodir | --infodir | --infodi | --infod | --info | --inf)
1796     ac_prev=infodir ;;
1797   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1798     infodir=$ac_optarg ;;
1799
1800   -libdir | --libdir | --libdi | --libd)
1801     ac_prev=libdir ;;
1802   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1803     libdir=$ac_optarg ;;
1804
1805   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1806   | --libexe | --libex | --libe)
1807     ac_prev=libexecdir ;;
1808   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1809   | --libexe=* | --libex=* | --libe=*)
1810     libexecdir=$ac_optarg ;;
1811
1812   -localedir | --localedir | --localedi | --localed | --locale)
1813     ac_prev=localedir ;;
1814   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1815     localedir=$ac_optarg ;;
1816
1817   -localstatedir | --localstatedir | --localstatedi | --localstated \
1818   | --localstate | --localstat | --localsta | --localst | --locals)
1819     ac_prev=localstatedir ;;
1820   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1821   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1822     localstatedir=$ac_optarg ;;
1823
1824   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1825     ac_prev=mandir ;;
1826   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1827     mandir=$ac_optarg ;;
1828
1829   -nfp | --nfp | --nf)
1830     # Obsolete; use --without-fp.
1831     with_fp=no ;;
1832
1833   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1834   | --no-cr | --no-c | -n)
1835     no_create=yes ;;
1836
1837   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1838   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1839     no_recursion=yes ;;
1840
1841   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1842   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1843   | --oldin | --oldi | --old | --ol | --o)
1844     ac_prev=oldincludedir ;;
1845   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1846   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1847   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1848     oldincludedir=$ac_optarg ;;
1849
1850   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1851     ac_prev=prefix ;;
1852   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1853     prefix=$ac_optarg ;;
1854
1855   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1856   | --program-pre | --program-pr | --program-p)
1857     ac_prev=program_prefix ;;
1858   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1859   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1860     program_prefix=$ac_optarg ;;
1861
1862   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1863   | --program-suf | --program-su | --program-s)
1864     ac_prev=program_suffix ;;
1865   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1866   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1867     program_suffix=$ac_optarg ;;
1868
1869   -program-transform-name | --program-transform-name \
1870   | --program-transform-nam | --program-transform-na \
1871   | --program-transform-n | --program-transform- \
1872   | --program-transform | --program-transfor \
1873   | --program-transfo | --program-transf \
1874   | --program-trans | --program-tran \
1875   | --progr-tra | --program-tr | --program-t)
1876     ac_prev=program_transform_name ;;
1877   -program-transform-name=* | --program-transform-name=* \
1878   | --program-transform-nam=* | --program-transform-na=* \
1879   | --program-transform-n=* | --program-transform-=* \
1880   | --program-transform=* | --program-transfor=* \
1881   | --program-transfo=* | --program-transf=* \
1882   | --program-trans=* | --program-tran=* \
1883   | --progr-tra=* | --program-tr=* | --program-t=*)
1884     program_transform_name=$ac_optarg ;;
1885
1886   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1887     ac_prev=pdfdir ;;
1888   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1889     pdfdir=$ac_optarg ;;
1890
1891   -psdir | --psdir | --psdi | --psd | --ps)
1892     ac_prev=psdir ;;
1893   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1894     psdir=$ac_optarg ;;
1895
1896   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1897   | -silent | --silent | --silen | --sile | --sil)
1898     silent=yes ;;
1899
1900   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1901     ac_prev=sbindir ;;
1902   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1903   | --sbi=* | --sb=*)
1904     sbindir=$ac_optarg ;;
1905
1906   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1907   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1908   | --sharedst | --shareds | --shared | --share | --shar \
1909   | --sha | --sh)
1910     ac_prev=sharedstatedir ;;
1911   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1912   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1913   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1914   | --sha=* | --sh=*)
1915     sharedstatedir=$ac_optarg ;;
1916
1917   -site | --site | --sit)
1918     ac_prev=site ;;
1919   -site=* | --site=* | --sit=*)
1920     site=$ac_optarg ;;
1921
1922   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1923     ac_prev=srcdir ;;
1924   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1925     srcdir=$ac_optarg ;;
1926
1927   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1928   | --syscon | --sysco | --sysc | --sys | --sy)
1929     ac_prev=sysconfdir ;;
1930   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1931   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1932     sysconfdir=$ac_optarg ;;
1933
1934   -target | --target | --targe | --targ | --tar | --ta | --t)
1935     ac_prev=target_alias ;;
1936   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1937     target_alias=$ac_optarg ;;
1938
1939   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1940     verbose=yes ;;
1941
1942   -version | --version | --versio | --versi | --vers | -V)
1943     ac_init_version=: ;;
1944
1945   -with-* | --with-*)
1946     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1947     # Reject names that are not valid shell variable names.
1948     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1949       as_fn_error $? "invalid package name: $ac_useropt"
1950     ac_useropt_orig=$ac_useropt
1951     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1952     case $ac_user_opts in
1953       *"
1954 "with_$ac_useropt"
1955 "*) ;;
1956       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1957          ac_unrecognized_sep=', ';;
1958     esac
1959     eval with_$ac_useropt=\$ac_optarg ;;
1960
1961   -without-* | --without-*)
1962     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1963     # Reject names that are not valid shell variable names.
1964     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1965       as_fn_error $? "invalid package name: $ac_useropt"
1966     ac_useropt_orig=$ac_useropt
1967     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1968     case $ac_user_opts in
1969       *"
1970 "with_$ac_useropt"
1971 "*) ;;
1972       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1973          ac_unrecognized_sep=', ';;
1974     esac
1975     eval with_$ac_useropt=no ;;
1976
1977   --x)
1978     # Obsolete; use --with-x.
1979     with_x=yes ;;
1980
1981   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1982   | --x-incl | --x-inc | --x-in | --x-i)
1983     ac_prev=x_includes ;;
1984   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1985   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1986     x_includes=$ac_optarg ;;
1987
1988   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1989   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1990     ac_prev=x_libraries ;;
1991   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1992   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1993     x_libraries=$ac_optarg ;;
1994
1995   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1996 Try \`$0 --help' for more information"
1997     ;;
1998
1999   *=*)
2000     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2001     # Reject names that are not valid shell variable names.
2002     case $ac_envvar in #(
2003       '' | [0-9]* | *[!_$as_cr_alnum]* )
2004       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2005     esac
2006     eval $ac_envvar=\$ac_optarg
2007     export $ac_envvar ;;
2008
2009   *)
2010     # FIXME: should be removed in autoconf 3.0.
2011     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2012     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2013       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2014     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2015     ;;
2016
2017   esac
2018 done
2019
2020 if test -n "$ac_prev"; then
2021   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2022   as_fn_error $? "missing argument to $ac_option"
2023 fi
2024
2025 if test -n "$ac_unrecognized_opts"; then
2026   case $enable_option_checking in
2027     no) ;;
2028     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2029     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2030   esac
2031 fi
2032
2033 # Check all directory arguments for consistency.
2034 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
2035                 datadir sysconfdir sharedstatedir localstatedir includedir \
2036                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2037                 libdir localedir mandir
2038 do
2039   eval ac_val=\$$ac_var
2040   # Remove trailing slashes.
2041   case $ac_val in
2042     */ )
2043       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2044       eval $ac_var=\$ac_val;;
2045   esac
2046   # Be sure to have absolute directory names.
2047   case $ac_val in
2048     [\\/$]* | ?:[\\/]* )  continue;;
2049     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2050   esac
2051   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2052 done
2053
2054 # There might be people who depend on the old broken behavior: `$host'
2055 # used to hold the argument of --host etc.
2056 # FIXME: To remove some day.
2057 build=$build_alias
2058 host=$host_alias
2059 target=$target_alias
2060
2061 # FIXME: To remove some day.
2062 if test "x$host_alias" != x; then
2063   if test "x$build_alias" = x; then
2064     cross_compiling=maybe
2065     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
2066     If a cross compiler is detected then cross compile mode will be used" >&2
2067   elif test "x$build_alias" != "x$host_alias"; then
2068     cross_compiling=yes
2069   fi
2070 fi
2071
2072 ac_tool_prefix=
2073 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2074
2075 test "$silent" = yes && exec 6>/dev/null
2076
2077
2078 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2079 ac_ls_di=`ls -di .` &&
2080 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2081   as_fn_error $? "working directory cannot be determined"
2082 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2083   as_fn_error $? "pwd does not report name of working directory"
2084
2085
2086 # Find the source files, if location was not specified.
2087 if test -z "$srcdir"; then
2088   ac_srcdir_defaulted=yes
2089   # Try the directory containing this script, then the parent directory.
2090   ac_confdir=`$as_dirname -- "$as_myself" ||
2091 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2092          X"$as_myself" : 'X\(//\)[^/]' \| \
2093          X"$as_myself" : 'X\(//\)$' \| \
2094          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2095 $as_echo X"$as_myself" |
2096     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2097             s//\1/
2098             q
2099           }
2100           /^X\(\/\/\)[^/].*/{
2101             s//\1/
2102             q
2103           }
2104           /^X\(\/\/\)$/{
2105             s//\1/
2106             q
2107           }
2108           /^X\(\/\).*/{
2109             s//\1/
2110             q
2111           }
2112           s/.*/./; q'`
2113   srcdir=$ac_confdir
2114   if test ! -r "$srcdir/$ac_unique_file"; then
2115     srcdir=..
2116   fi
2117 else
2118   ac_srcdir_defaulted=no
2119 fi
2120 if test ! -r "$srcdir/$ac_unique_file"; then
2121   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2122   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2123 fi
2124 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2125 ac_abs_confdir=`(
2126         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2127         pwd)`
2128 # When building in place, set srcdir=.
2129 if test "$ac_abs_confdir" = "$ac_pwd"; then
2130   srcdir=.
2131 fi
2132 # Remove unnecessary trailing slashes from srcdir.
2133 # Double slashes in file names in object file debugging info
2134 # mess up M-x gdb in Emacs.
2135 case $srcdir in
2136 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2137 esac
2138 for ac_var in $ac_precious_vars; do
2139   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2140   eval ac_env_${ac_var}_value=\$${ac_var}
2141   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2142   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2143 done
2144
2145 #
2146 # Report the --help message.
2147 #
2148 if test "$ac_init_help" = "long"; then
2149   # Omit some internal or obsolete options to make the list less imposing.
2150   # This message is too long to be a string in the A/UX 3.1 sh.
2151   cat <<_ACEOF
2152 \`configure' configures amanda 3.3.2 to adapt to many kinds of systems.
2153
2154 Usage: $0 [OPTION]... [VAR=VALUE]...
2155
2156 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2157 VAR=VALUE.  See below for descriptions of some of the useful variables.
2158
2159 Defaults for the options are specified in brackets.
2160
2161 Configuration:
2162   -h, --help              display this help and exit
2163       --help=short        display options specific to this package
2164       --help=recursive    display the short help of all the included packages
2165   -V, --version           display version information and exit
2166   -q, --quiet, --silent   do not print \`checking ...' messages
2167       --cache-file=FILE   cache test results in FILE [disabled]
2168   -C, --config-cache      alias for \`--cache-file=config.cache'
2169   -n, --no-create         do not create output files
2170       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2171
2172 Installation directories:
2173   --prefix=PREFIX         install architecture-independent files in PREFIX
2174                           [$ac_default_prefix]
2175   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2176                           [PREFIX]
2177
2178 By default, \`make install' will install all the files in
2179 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2180 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2181 for instance \`--prefix=\$HOME'.
2182
2183 For better control, use the options below.
2184
2185 Fine tuning of the installation directories:
2186   --bindir=DIR            user executables [EPREFIX/bin]
2187   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2188   --libexecdir=DIR        program executables [EPREFIX/libexec]
2189   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2190   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2191   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2192   --libdir=DIR            object code libraries [EPREFIX/lib]
2193   --includedir=DIR        C header files [PREFIX/include]
2194   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2195   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2196   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2197   --infodir=DIR           info documentation [DATAROOTDIR/info]
2198   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2199   --mandir=DIR            man documentation [DATAROOTDIR/man]
2200   --docdir=DIR            documentation root [DATAROOTDIR/doc/amanda]
2201   --htmldir=DIR           html documentation [DOCDIR]
2202   --dvidir=DIR            dvi documentation [DOCDIR]
2203   --pdfdir=DIR            pdf documentation [DOCDIR]
2204   --psdir=DIR             ps documentation [DOCDIR]
2205 _ACEOF
2206
2207   cat <<\_ACEOF
2208
2209 Program names:
2210   --program-prefix=PREFIX            prepend PREFIX to installed program names
2211   --program-suffix=SUFFIX            append SUFFIX to installed program names
2212   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2213
2214 System types:
2215   --build=BUILD     configure for building on BUILD [guessed]
2216   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2217 _ACEOF
2218 fi
2219
2220 if test -n "$ac_init_help"; then
2221   case $ac_init_help in
2222      short | recursive ) echo "Configuration of amanda 3.3.2:";;
2223    esac
2224   cat <<\_ACEOF
2225
2226 Optional Features:
2227   --disable-option-checking  ignore unrecognized --enable/--with options
2228   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2229   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2230   --disable-dependency-tracking  speeds up one-time build
2231   --enable-dependency-tracking   do not reject slow dependency extractors
2232   --enable-threads={posix|solaris|pth|win32}
2233                           specify multithreading API
2234   --disable-threads       build without multithread safety
2235   --disable-rpath         do not hardcode runtime library paths
2236   --disable-largefile     omit support for large files
2237   --enable-as-needed      enable use od --as-needed linker flag
2238   --disable-installperms  do not modify ownership and permissions on installed
2239                           files
2240   --enable-syntax-checks  Perform syntax checks when installing - developers
2241                           only
2242   --enable-manpage-build  Build the manpages from their XML source (shipped
2243                           manpages are usually sufficient)
2244   --disable-nls           do not use Native Language Support
2245   --enable-werror         To compile with -Werror compiler flag
2246   --enable-swig-error     To compile swiged C file with -Werror compiler flag
2247   --enable-shared[=PKGS]  build shared libraries [default=yes]
2248   --enable-static[=PKGS]  build static libraries [default=yes]
2249   --enable-fast-install[=PKGS]
2250                           optimize for fast installation [default=yes]
2251   --disable-libtool-lock  avoid locking (might break parallel builds)
2252   --enable-static-binary  To build statically linked binaries
2253   --disable-glibtest      do not try to compile and run a test GLIB program
2254   --disable-s3-device     disable the S3 device
2255   --disable-dvdrw-device  disable the DVD-RW device
2256   --disable-ndmp-device   disable the NDMP device
2257
2258 Optional Packages:
2259   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2260   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2261   --with-gnu-ld           assume the C compiler uses GNU ld default=no
2262   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2263   --without-libpth-prefix     don't search for libpth in includedir and libdir
2264   --without-included-regex
2265                           don't compile regex; this is the default on systems
2266                           with recent-enough versions of the GNU C Library
2267                           (use with caution on other systems).
2268   --with-cflags=FLAGS     deprecated; use ./configure CFLAGS=...
2269   --with-includes=INCLUDE-DIRS
2270                           deprecated; use ./configure CPPFLAGS='-I.. -I..'
2271   --with-libraries=LIBRARY-DIRS
2272                           deprecated; use ./configure LDFLAGS='-L.. -L..' (add
2273                           -R on Solaris, NetBSD)
2274   --with-user=USER        force execution to USER on client systems (REQUIRED)
2275   --with-group=GROUP      group allowed to execute setuid-root programs
2276                           (REQUIRED)
2277   --with-dumperdir=DIR    where we install the dumpers (deprecated)
2278   --with-configdir=DIR    runtime config files in DIR [sysconfdir/amanda]
2279   --with-indexdir         deprecated: use indexdir in amanda.conf
2280   --with-dbdir            deprecated: use infofile in amanda.conf
2281   --with-logdir           deprecated: use logfile in amanda.conf
2282
2283   --with-gnutar-listdir=DIR
2284                           put gnutar directory lists in DIR (default:
2285                           localstatedir/amanda/gnutar-lists)
2286   --with-gnutar-listed-incremental
2287                           deprecated; use --with-gnutar-listdir
2288   --with-tmpdir           directory for temporary and debugging files
2289                           (default: /tmp/amanda)
2290   --without-force-uid     do not check userids when running programs
2291   --with-owner=USER
2292             force ownership of installed files to USER (default same as --with-user)
2293
2294   --with-fqdn             use FQDN's to backup multiple networks
2295   --without-reuseaddr     Don't reuse network connections until full timeout
2296                           period
2297   --with-low-tcpportrange=low,high
2298                           bind reserved TCP server sockets to ports within
2299   --with-tcpportrange=low,high
2300                           bind unreserved TCP server sockets to ports within
2301   --with-udpportrange=low,high
2302                           bind reserved UDP server sockets to ports within
2303   --with-buffered-dump    buffer the dumping sockets on the server for speed
2304 (deprecated)
2305   --with-assertions       compile assertions into code
2306   --with-debugging=DIR
2307             put debug logs in DIR (default same as --with-tmpdir)
2308
2309   --with-debug-days=NN    number of days to keep debugging files (default: 4)
2310   --with-testing[=SUFFIX] use alternate service names with suffix (default
2311                           'test')
2312   --with-single-userid
2313             force amanda to run as a single userid (for testing)
2314
2315   --without-server        do not build server stuff (set --without-restore)
2316   --without-client        do not build client stuff
2317   --without-restore       do not build amrestore nor amidxtaped
2318   --without-amrecover     do not build amrecover
2319   --with-client-only      deprecated: use --without-server
2320   --with-server-only      deprecated: use --without-client
2321   --without-ndmp          do not build ndmp
2322   --with-gnuplot=PATH     use gnuplot executable at PATH in amplot
2323   --with-xsltproc[[[=PATH]]]
2324                           Use the xsltproc binary in in PATH.
2325     --with-xsltproc-flags=FLAGS
2326                           Flags to pass to xsltproc (default --nonet)
2327   --with-index-server=HOST
2328                           default amanda index server (default: `uname -n`)
2329   --with-config=CONFIG    default amanda configuration (default: DailySet1)
2330   --with-tape-server=HOST default tape server for restore (default: same as
2331                           index-server)
2332   --with-tape-device=DEVICE
2333                           default device on restore tape server
2334   --with-changer-device=DEV
2335                           (deprecated)
2336   --with-amandates        default location for 'amandates' (default:
2337                           $localstatedir/amanda/amandates)
2338   --with-perlextlibs=libs extra LIBS for Perl extensions
2339   --with-ipv6             enable IPv6 support (default if IPv6 is found)
2340           --without-ipv6          disable IPv6
2341   --with-amlibdir[[[=PATH]]]
2342                           Where library are installed, default: $libdir/amanda
2343           --without-amlibdir      Library are installed in $libdir
2344   --with-amlibexecdir[[[=PATH]]]
2345                           Where amanda own programs are installed, default:
2346                           $libexecdir/amanda
2347           --without-amlibexecdir  Amanda own programs are installed in $libexecdir
2348   --with-amperldir[[[=PATH]]]
2349                           Where amanda's perl modules are installed; default:
2350                           installsitelib
2351           --without-amperldir     Install amanda's perl modules in $amlibdir/perl
2352   --with-amdatadir[[[=PATH]]]
2353                           Where amanda's templates and examples are installed;
2354                           default: $datadir/amanda
2355   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2356   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2357   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2358   --without-libintl-prefix     don't search for libintl in includedir and libdir
2359   --without-bsd-security  do not include BSD authentication
2360    --without-amandahosts  use ".rhosts" instead of ".amandahosts"
2361   --with-bsdtcp-security  include BSDTCP authentication
2362   --with-bsdudp-security  include BSDUDP authentication
2363   --with-rsh-security     include RSH authentication
2364   --with-ssh-security     include SSH authentication
2365    --with-ssh-options=[OPTIONS]
2366                           Use these ssh options for ssh security; the default
2367                           should work
2368   --with-krb5-security=DIR
2369                           Location of Kerberos V software [/usr/kerberos
2370                           /usr/cygnus /usr /opt/kerberos]
2371   --with-dump-honor-nodump
2372                           if dump supports -h, use it for level0s too
2373   --with-gnutar=PROG      use PROG as GNU 'tar'
2374   --with-star=PROG        use PROG as 'star'
2375   --with-suntar=PROG      use PROG as 'suntar'
2376   --with-smbclient=PROG   use PROG as 'smbclient'
2377   --with-samba-user       deprecated; place username in 'amandapass'
2378   --with-rundump          use rundump, a setuid-root wrapper, to invoke dump
2379   --with-pic              try to use only PIC/non-PIC objects [default=use
2380                           both]
2381   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2382   --with-sysroot=DIR Search for dependent libraries within DIR
2383                         (or the compiler's sysroot if not specified).
2384   --with-readline         require readline support (for amrecover)
2385   --without-readline      don't search for readline
2386   --with-libcurl=PREFIX   look for the curl library in PREFIX/lib and headers
2387                           in PREFIX/include
2388
2389 Some influential environment variables:
2390   CC          C compiler command
2391   CFLAGS      C compiler flags
2392   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2393               nonstandard directory <lib dir>
2394   LIBS        libraries to pass to the linker, e.g. -l<library>
2395   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2396               you have headers in a nonstandard directory <include dir>
2397   CPP         C preprocessor
2398   GNUPLOT     Location of the 'gnuplot' binary
2399   SWIG        Path to the 'swig' binary (developers only)
2400   PERL        Path to the 'perl' binary
2401   GNUTAR      Location of the GNU 'tar' binary
2402   STAR        Location of the 'star' binary
2403   SUNTAR      Location of the 'suntar' binary
2404   YACC        The `Yet Another Compiler Compiler' implementation to use.
2405               Defaults to the first program found out of: `bison -y', `byacc',
2406               `yacc'.
2407   YFLAGS      The list of arguments that will be passed by default to $YACC.
2408               This script will default YFLAGS to the empty string to avoid a
2409               default value of `-d' given by some make applications.
2410   MTX         Path to the 'mtx' binary
2411   MOUNT       Path to the 'mount' binary
2412   UMOUNT      Path to the 'umount' binary
2413   GLIB_CFLAGS CFLAGS to build with glib; disables use of pkg-config; must
2414               specify all GLIB_ vars
2415   GLIB_LIBS   libraries to build with glib; disables use of pkg-config; must
2416               specify all GLIB_vars
2417   GLIB_GENMARSHAL
2418               genmarshal binary to use with glib; disables use of pkg-config;
2419               must specify all GLIB_ vars
2420   GOBJECT_QUERY
2421               gobject_query binary to use with glib; disables use of
2422               pkg-config; must specify all GLIB_ vars
2423   GLIB_MKENUMS
2424               mkenums binary to use with glib; disables use of pkg-config;
2425               must specify all GLIB_ vars
2426   PKG_CONFIG  path to pkg-config utility
2427   PKG_CONFIG_PATH
2428               directories to add to pkg-config's search path
2429   PKG_CONFIG_LIBDIR
2430               path overriding pkg-config's built-in search path
2431
2432 Use these variables to override the choices made by `configure' or to help
2433 it to find libraries and programs with nonstandard names/locations.
2434
2435 Report bugs to the package provider.
2436 _ACEOF
2437 ac_status=$?
2438 fi
2439
2440 if test "$ac_init_help" = "recursive"; then
2441   # If there are subdirs, report their specific --help.
2442   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2443     test -d "$ac_dir" ||
2444       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2445       continue
2446     ac_builddir=.
2447
2448 case "$ac_dir" in
2449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2450 *)
2451   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2452   # A ".." for each directory in $ac_dir_suffix.
2453   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2454   case $ac_top_builddir_sub in
2455   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2456   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2457   esac ;;
2458 esac
2459 ac_abs_top_builddir=$ac_pwd
2460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2461 # for backward compatibility:
2462 ac_top_builddir=$ac_top_build_prefix
2463
2464 case $srcdir in
2465   .)  # We are building in place.
2466     ac_srcdir=.
2467     ac_top_srcdir=$ac_top_builddir_sub
2468     ac_abs_top_srcdir=$ac_pwd ;;
2469   [\\/]* | ?:[\\/]* )  # Absolute name.
2470     ac_srcdir=$srcdir$ac_dir_suffix;
2471     ac_top_srcdir=$srcdir
2472     ac_abs_top_srcdir=$srcdir ;;
2473   *) # Relative name.
2474     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2475     ac_top_srcdir=$ac_top_build_prefix$srcdir
2476     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2477 esac
2478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2479
2480     cd "$ac_dir" || { ac_status=$?; continue; }
2481     # Check for guested configure.
2482     if test -f "$ac_srcdir/configure.gnu"; then
2483       echo &&
2484       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2485     elif test -f "$ac_srcdir/configure"; then
2486       echo &&
2487       $SHELL "$ac_srcdir/configure" --help=recursive
2488     else
2489       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2490     fi || ac_status=$?
2491     cd "$ac_pwd" || { ac_status=$?; break; }
2492   done
2493 fi
2494
2495 test -n "$ac_init_help" && exit $ac_status
2496 if $ac_init_version; then
2497   cat <<\_ACEOF
2498 amanda configure 3.3.2
2499 generated by GNU Autoconf 2.68
2500
2501 Copyright (C) 2010 Free Software Foundation, Inc.
2502 This configure script is free software; the Free Software Foundation
2503 gives unlimited permission to copy, distribute and modify it.
2504 _ACEOF
2505   exit
2506 fi
2507
2508 ## ------------------------ ##
2509 ## Autoconf initialization. ##
2510 ## ------------------------ ##
2511
2512 # ac_fn_c_try_compile LINENO
2513 # --------------------------
2514 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2515 ac_fn_c_try_compile ()
2516 {
2517   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2518   rm -f conftest.$ac_objext
2519   if { { ac_try="$ac_compile"
2520 case "(($ac_try" in
2521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522   *) ac_try_echo=$ac_try;;
2523 esac
2524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2525 $as_echo "$ac_try_echo"; } >&5
2526   (eval "$ac_compile") 2>conftest.err
2527   ac_status=$?
2528   if test -s conftest.err; then
2529     grep -v '^ *+' conftest.err >conftest.er1
2530     cat conftest.er1 >&5
2531     mv -f conftest.er1 conftest.err
2532   fi
2533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2534   test $ac_status = 0; } && {
2535          test -z "$ac_c_werror_flag" ||
2536          test ! -s conftest.err
2537        } && test -s conftest.$ac_objext; then :
2538   ac_retval=0
2539 else
2540   $as_echo "$as_me: failed program was:" >&5
2541 sed 's/^/| /' conftest.$ac_ext >&5
2542
2543         ac_retval=1
2544 fi
2545   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2546   as_fn_set_status $ac_retval
2547
2548 } # ac_fn_c_try_compile
2549
2550 # ac_fn_c_try_cpp LINENO
2551 # ----------------------
2552 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2553 ac_fn_c_try_cpp ()
2554 {
2555   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2556   if { { ac_try="$ac_cpp conftest.$ac_ext"
2557 case "(($ac_try" in
2558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559   *) ac_try_echo=$ac_try;;
2560 esac
2561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2562 $as_echo "$ac_try_echo"; } >&5
2563   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2564   ac_status=$?
2565   if test -s conftest.err; then
2566     grep -v '^ *+' conftest.err >conftest.er1
2567     cat conftest.er1 >&5
2568     mv -f conftest.er1 conftest.err
2569   fi
2570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2571   test $ac_status = 0; } > conftest.i && {
2572          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2573          test ! -s conftest.err
2574        }; then :
2575   ac_retval=0
2576 else
2577   $as_echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2579
2580     ac_retval=1
2581 fi
2582   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2583   as_fn_set_status $ac_retval
2584
2585 } # ac_fn_c_try_cpp
2586
2587 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2588 # -------------------------------------------------------
2589 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2590 # the include files in INCLUDES and setting the cache variable VAR
2591 # accordingly.
2592 ac_fn_c_check_header_mongrel ()
2593 {
2594   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2595   if eval \${$3+:} false; then :
2596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2597 $as_echo_n "checking for $2... " >&6; }
2598 if eval \${$3+:} false; then :
2599   $as_echo_n "(cached) " >&6
2600 fi
2601 eval ac_res=\$$3
2602                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 $as_echo "$ac_res" >&6; }
2604 else
2605   # Is the header compilable?
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2607 $as_echo_n "checking $2 usability... " >&6; }
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h.  */
2610 $4
2611 #include <$2>
2612 _ACEOF
2613 if ac_fn_c_try_compile "$LINENO"; then :
2614   ac_header_compiler=yes
2615 else
2616   ac_header_compiler=no
2617 fi
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2620 $as_echo "$ac_header_compiler" >&6; }
2621
2622 # Is the header present?
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2624 $as_echo_n "checking $2 presence... " >&6; }
2625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626 /* end confdefs.h.  */
2627 #include <$2>
2628 _ACEOF
2629 if ac_fn_c_try_cpp "$LINENO"; then :
2630   ac_header_preproc=yes
2631 else
2632   ac_header_preproc=no
2633 fi
2634 rm -f conftest.err conftest.i conftest.$ac_ext
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2636 $as_echo "$ac_header_preproc" >&6; }
2637
2638 # So?  What about this header?
2639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2640   yes:no: )
2641     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2642 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2643     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2644 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2645     ;;
2646   no:yes:* )
2647     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2648 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2649     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2650 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2651     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2652 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2653     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2654 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2655     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2656 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2657     ;;
2658 esac
2659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2660 $as_echo_n "checking for $2... " >&6; }
2661 if eval \${$3+:} false; then :
2662   $as_echo_n "(cached) " >&6
2663 else
2664   eval "$3=\$ac_header_compiler"
2665 fi
2666 eval ac_res=\$$3
2667                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2668 $as_echo "$ac_res" >&6; }
2669 fi
2670   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2671
2672 } # ac_fn_c_check_header_mongrel
2673
2674 # ac_fn_c_try_run LINENO
2675 # ----------------------
2676 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2677 # that executables *can* be run.
2678 ac_fn_c_try_run ()
2679 {
2680   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681   if { { ac_try="$ac_link"
2682 case "(($ac_try" in
2683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684   *) ac_try_echo=$ac_try;;
2685 esac
2686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2687 $as_echo "$ac_try_echo"; } >&5
2688   (eval "$ac_link") 2>&5
2689   ac_status=$?
2690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2691   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2692   { { case "(($ac_try" in
2693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694   *) ac_try_echo=$ac_try;;
2695 esac
2696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2697 $as_echo "$ac_try_echo"; } >&5
2698   (eval "$ac_try") 2>&5
2699   ac_status=$?
2700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2701   test $ac_status = 0; }; }; then :
2702   ac_retval=0
2703 else
2704   $as_echo "$as_me: program exited with status $ac_status" >&5
2705        $as_echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2707
2708        ac_retval=$ac_status
2709 fi
2710   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2711   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2712   as_fn_set_status $ac_retval
2713
2714 } # ac_fn_c_try_run
2715
2716 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2717 # -------------------------------------------------------
2718 # Tests whether HEADER exists and can be compiled using the include files in
2719 # INCLUDES, setting the cache variable VAR accordingly.
2720 ac_fn_c_check_header_compile ()
2721 {
2722   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2724 $as_echo_n "checking for $2... " >&6; }
2725 if eval \${$3+:} false; then :
2726   $as_echo_n "(cached) " >&6
2727 else
2728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2729 /* end confdefs.h.  */
2730 $4
2731 #include <$2>
2732 _ACEOF
2733 if ac_fn_c_try_compile "$LINENO"; then :
2734   eval "$3=yes"
2735 else
2736   eval "$3=no"
2737 fi
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 fi
2740 eval ac_res=\$$3
2741                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2742 $as_echo "$ac_res" >&6; }
2743   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2744
2745 } # ac_fn_c_check_header_compile
2746
2747 # ac_fn_c_try_link LINENO
2748 # -----------------------
2749 # Try to link conftest.$ac_ext, and return whether this succeeded.
2750 ac_fn_c_try_link ()
2751 {
2752   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2753   rm -f conftest.$ac_objext conftest$ac_exeext
2754   if { { ac_try="$ac_link"
2755 case "(($ac_try" in
2756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757   *) ac_try_echo=$ac_try;;
2758 esac
2759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2760 $as_echo "$ac_try_echo"; } >&5
2761   (eval "$ac_link") 2>conftest.err
2762   ac_status=$?
2763   if test -s conftest.err; then
2764     grep -v '^ *+' conftest.err >conftest.er1
2765     cat conftest.er1 >&5
2766     mv -f conftest.er1 conftest.err
2767   fi
2768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2769   test $ac_status = 0; } && {
2770          test -z "$ac_c_werror_flag" ||
2771          test ! -s conftest.err
2772        } && test -s conftest$ac_exeext && {
2773          test "$cross_compiling" = yes ||
2774          $as_test_x conftest$ac_exeext
2775        }; then :
2776   ac_retval=0
2777 else
2778   $as_echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2780
2781         ac_retval=1
2782 fi
2783   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2784   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2785   # interfere with the next link command; also delete a directory that is
2786   # left behind by Apple's compiler.  We do this before executing the actions.
2787   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2788   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2789   as_fn_set_status $ac_retval
2790
2791 } # ac_fn_c_try_link
2792
2793 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2794 # -------------------------------------------
2795 # Tests whether TYPE exists after having included INCLUDES, setting cache
2796 # variable VAR accordingly.
2797 ac_fn_c_check_type ()
2798 {
2799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2801 $as_echo_n "checking for $2... " >&6; }
2802 if eval \${$3+:} false; then :
2803   $as_echo_n "(cached) " >&6
2804 else
2805   eval "$3=no"
2806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807 /* end confdefs.h.  */
2808 $4
2809 int
2810 main ()
2811 {
2812 if (sizeof ($2))
2813          return 0;
2814   ;
2815   return 0;
2816 }
2817 _ACEOF
2818 if ac_fn_c_try_compile "$LINENO"; then :
2819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2820 /* end confdefs.h.  */
2821 $4
2822 int
2823 main ()
2824 {
2825 if (sizeof (($2)))
2826             return 0;
2827   ;
2828   return 0;
2829 }
2830 _ACEOF
2831 if ac_fn_c_try_compile "$LINENO"; then :
2832
2833 else
2834   eval "$3=yes"
2835 fi
2836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2837 fi
2838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2839 fi
2840 eval ac_res=\$$3
2841                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2842 $as_echo "$ac_res" >&6; }
2843   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2844
2845 } # ac_fn_c_check_type
2846
2847 # ac_fn_c_check_func LINENO FUNC VAR
2848 # ----------------------------------
2849 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2850 ac_fn_c_check_func ()
2851 {
2852   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2854 $as_echo_n "checking for $2... " >&6; }
2855 if eval \${$3+:} false; then :
2856   $as_echo_n "(cached) " >&6
2857 else
2858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2859 /* end confdefs.h.  */
2860 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2862 #define $2 innocuous_$2
2863
2864 /* System header to define __stub macros and hopefully few prototypes,
2865     which can conflict with char $2 (); below.
2866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2867     <limits.h> exists even on freestanding compilers.  */
2868
2869 #ifdef __STDC__
2870 # include <limits.h>
2871 #else
2872 # include <assert.h>
2873 #endif
2874
2875 #undef $2
2876
2877 /* Override any GCC internal prototype to avoid an error.
2878    Use char because int might match the return type of a GCC
2879    builtin and then its argument prototype would still apply.  */
2880 #ifdef __cplusplus
2881 extern "C"
2882 #endif
2883 char $2 ();
2884 /* The GNU C library defines this for functions which it implements
2885     to always fail with ENOSYS.  Some functions are actually named
2886     something starting with __ and the normal name is an alias.  */
2887 #if defined __stub_$2 || defined __stub___$2
2888 choke me
2889 #endif
2890
2891 int
2892 main ()
2893 {
2894 return $2 ();
2895   ;
2896   return 0;
2897 }
2898 _ACEOF
2899 if ac_fn_c_try_link "$LINENO"; then :
2900   eval "$3=yes"
2901 else
2902   eval "$3=no"
2903 fi
2904 rm -f core conftest.err conftest.$ac_objext \
2905     conftest$ac_exeext conftest.$ac_ext
2906 fi
2907 eval ac_res=\$$3
2908                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2909 $as_echo "$ac_res" >&6; }
2910   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2911
2912 } # ac_fn_c_check_func
2913
2914 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2915 # --------------------------------------------
2916 # Tries to find the compile-time value of EXPR in a program that includes
2917 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2918 # computed
2919 ac_fn_c_compute_int ()
2920 {
2921   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2922   if test "$cross_compiling" = yes; then
2923     # Depending upon the size, compute the lo and hi bounds.
2924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2925 /* end confdefs.h.  */
2926 $4
2927 int
2928 main ()
2929 {
2930 static int test_array [1 - 2 * !(($2) >= 0)];
2931 test_array [0] = 0
2932
2933   ;
2934   return 0;
2935 }
2936 _ACEOF
2937 if ac_fn_c_try_compile "$LINENO"; then :
2938   ac_lo=0 ac_mid=0
2939   while :; do
2940     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941 /* end confdefs.h.  */
2942 $4
2943 int
2944 main ()
2945 {
2946 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2947 test_array [0] = 0
2948
2949   ;
2950   return 0;
2951 }
2952 _ACEOF
2953 if ac_fn_c_try_compile "$LINENO"; then :
2954   ac_hi=$ac_mid; break
2955 else
2956   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2957                         if test $ac_lo -le $ac_mid; then
2958                           ac_lo= ac_hi=
2959                           break
2960                         fi
2961                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2962 fi
2963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2964   done
2965 else
2966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h.  */
2968 $4
2969 int
2970 main ()
2971 {
2972 static int test_array [1 - 2 * !(($2) < 0)];
2973 test_array [0] = 0
2974
2975   ;
2976   return 0;
2977 }
2978 _ACEOF
2979 if ac_fn_c_try_compile "$LINENO"; then :
2980   ac_hi=-1 ac_mid=-1
2981   while :; do
2982     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983 /* end confdefs.h.  */
2984 $4
2985 int
2986 main ()
2987 {
2988 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2989 test_array [0] = 0
2990
2991   ;
2992   return 0;
2993 }
2994 _ACEOF
2995 if ac_fn_c_try_compile "$LINENO"; then :
2996   ac_lo=$ac_mid; break
2997 else
2998   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2999                         if test $ac_mid -le $ac_hi; then
3000                           ac_lo= ac_hi=
3001                           break
3002                         fi
3003                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3004 fi
3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006   done
3007 else
3008   ac_lo= ac_hi=
3009 fi
3010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3011 fi
3012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3013 # Binary search between lo and hi bounds.
3014 while test "x$ac_lo" != "x$ac_hi"; do
3015   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3017 /* end confdefs.h.  */
3018 $4
3019 int
3020 main ()
3021 {
3022 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3023 test_array [0] = 0
3024
3025   ;
3026   return 0;
3027 }
3028 _ACEOF
3029 if ac_fn_c_try_compile "$LINENO"; then :
3030   ac_hi=$ac_mid
3031 else
3032   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3033 fi
3034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035 done
3036 case $ac_lo in #((
3037 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3038 '') ac_retval=1 ;;
3039 esac
3040   else
3041     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h.  */
3043 $4
3044 static long int longval () { return $2; }
3045 static unsigned long int ulongval () { return $2; }
3046 #include <stdio.h>
3047 #include <stdlib.h>
3048 int
3049 main ()
3050 {
3051
3052   FILE *f = fopen ("conftest.val", "w");
3053   if (! f)
3054     return 1;
3055   if (($2) < 0)
3056     {
3057       long int i = longval ();
3058       if (i != ($2))
3059         return 1;
3060       fprintf (f, "%ld", i);
3061     }
3062   else
3063     {
3064       unsigned long int i = ulongval ();
3065       if (i != ($2))
3066         return 1;
3067       fprintf (f, "%lu", i);
3068     }
3069   /* Do not output a trailing newline, as this causes \r\n confusion
3070      on some platforms.  */
3071   return ferror (f) || fclose (f) != 0;
3072
3073   ;
3074   return 0;
3075 }
3076 _ACEOF
3077 if ac_fn_c_try_run "$LINENO"; then :
3078   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3079 else
3080   ac_retval=1
3081 fi
3082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3083   conftest.$ac_objext conftest.beam conftest.$ac_ext
3084 rm -f conftest.val
3085
3086   fi
3087   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3088   as_fn_set_status $ac_retval
3089
3090 } # ac_fn_c_compute_int
3091
3092 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3093 # ---------------------------------------------
3094 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3095 # accordingly.
3096 ac_fn_c_check_decl ()
3097 {
3098   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3099   as_decl_name=`echo $2|sed 's/ *(.*//'`
3100   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3102 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3103 if eval \${$3+:} false; then :
3104   $as_echo_n "(cached) " >&6
3105 else
3106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107 /* end confdefs.h.  */
3108 $4
3109 int
3110 main ()
3111 {
3112 #ifndef $as_decl_name
3113 #ifdef __cplusplus
3114   (void) $as_decl_use;
3115 #else
3116   (void) $as_decl_name;
3117 #endif
3118 #endif
3119
3120   ;
3121   return 0;
3122 }
3123 _ACEOF
3124 if ac_fn_c_try_compile "$LINENO"; then :
3125   eval "$3=yes"
3126 else
3127   eval "$3=no"
3128 fi
3129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3130 fi
3131 eval ac_res=\$$3
3132                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3133 $as_echo "$ac_res" >&6; }
3134   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3135
3136 } # ac_fn_c_check_decl
3137
3138 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3139 # ----------------------------------------------------
3140 # Tries to find if the field MEMBER exists in type AGGR, after including
3141 # INCLUDES, setting cache variable VAR accordingly.
3142 ac_fn_c_check_member ()
3143 {
3144   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3146 $as_echo_n "checking for $2.$3... " >&6; }
3147 if eval \${$4+:} false; then :
3148   $as_echo_n "(cached) " >&6
3149 else
3150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151 /* end confdefs.h.  */
3152 $5
3153 int
3154 main ()
3155 {
3156 static $2 ac_aggr;
3157 if (ac_aggr.$3)
3158 return 0;
3159   ;
3160   return 0;
3161 }
3162 _ACEOF
3163 if ac_fn_c_try_compile "$LINENO"; then :
3164   eval "$4=yes"
3165 else
3166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167 /* end confdefs.h.  */
3168 $5
3169 int
3170 main ()
3171 {
3172 static $2 ac_aggr;
3173 if (sizeof ac_aggr.$3)
3174 return 0;
3175   ;
3176   return 0;
3177 }
3178 _ACEOF
3179 if ac_fn_c_try_compile "$LINENO"; then :
3180   eval "$4=yes"
3181 else
3182   eval "$4=no"
3183 fi
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 fi
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 fi
3188 eval ac_res=\$$4
3189                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3190 $as_echo "$ac_res" >&6; }
3191   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3192
3193 } # ac_fn_c_check_member
3194 cat >config.log <<_ACEOF
3195 This file contains any messages produced by compilers while
3196 running configure, to aid debugging if configure makes a mistake.
3197
3198 It was created by amanda $as_me 3.3.2, which was
3199 generated by GNU Autoconf 2.68.  Invocation command line was
3200
3201   $ $0 $@
3202
3203 _ACEOF
3204 exec 5>>config.log
3205 {
3206 cat <<_ASUNAME
3207 ## --------- ##
3208 ## Platform. ##
3209 ## --------- ##
3210
3211 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3212 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3213 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3214 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3215 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3216
3217 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3218 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3219
3220 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3221 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3222 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3223 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3224 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3225 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3226 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3227
3228 _ASUNAME
3229
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233   IFS=$as_save_IFS
3234   test -z "$as_dir" && as_dir=.
3235     $as_echo "PATH: $as_dir"
3236   done
3237 IFS=$as_save_IFS
3238
3239 } >&5
3240
3241 cat >&5 <<_ACEOF
3242
3243
3244 ## ----------- ##
3245 ## Core tests. ##
3246 ## ----------- ##
3247
3248 _ACEOF
3249
3250
3251 # Keep a trace of the command line.
3252 # Strip out --no-create and --no-recursion so they do not pile up.
3253 # Strip out --silent because we don't want to record it for future runs.
3254 # Also quote any args containing shell meta-characters.
3255 # Make two passes to allow for proper duplicate-argument suppression.
3256 ac_configure_args=
3257 ac_configure_args0=
3258 ac_configure_args1=
3259 ac_must_keep_next=false
3260 for ac_pass in 1 2
3261 do
3262   for ac_arg
3263   do
3264     case $ac_arg in
3265     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3266     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3267     | -silent | --silent | --silen | --sile | --sil)
3268       continue ;;
3269     *\'*)
3270       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3271     esac
3272     case $ac_pass in
3273     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3274     2)
3275       as_fn_append ac_configure_args1 " '$ac_arg'"
3276       if test $ac_must_keep_next = true; then
3277         ac_must_keep_next=false # Got value, back to normal.
3278       else
3279         case $ac_arg in
3280           *=* | --config-cache | -C | -disable-* | --disable-* \
3281           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3282           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3283           | -with-* | --with-* | -without-* | --without-* | --x)
3284             case "$ac_configure_args0 " in
3285               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3286             esac
3287             ;;
3288           -* ) ac_must_keep_next=true ;;
3289         esac
3290       fi
3291       as_fn_append ac_configure_args " '$ac_arg'"
3292       ;;
3293     esac
3294   done
3295 done
3296 { ac_configure_args0=; unset ac_configure_args0;}
3297 { ac_configure_args1=; unset ac_configure_args1;}
3298
3299 # When interrupted or exit'd, cleanup temporary files, and complete
3300 # config.log.  We remove comments because anyway the quotes in there
3301 # would cause problems or look ugly.
3302 # WARNING: Use '\'' to represent an apostrophe within the trap.
3303 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3304 trap 'exit_status=$?
3305   # Save into config.log some information that might help in debugging.
3306   {
3307     echo
3308
3309     $as_echo "## ---------------- ##
3310 ## Cache variables. ##
3311 ## ---------------- ##"
3312     echo
3313     # The following way of writing the cache mishandles newlines in values,
3314 (
3315   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3316     eval ac_val=\$$ac_var
3317     case $ac_val in #(
3318     *${as_nl}*)
3319       case $ac_var in #(
3320       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3321 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3322       esac
3323       case $ac_var in #(
3324       _ | IFS | as_nl) ;; #(
3325       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3326       *) { eval $ac_var=; unset $ac_var;} ;;
3327       esac ;;
3328     esac
3329   done
3330   (set) 2>&1 |
3331     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3332     *${as_nl}ac_space=\ *)
3333       sed -n \
3334         "s/'\''/'\''\\\\'\'''\''/g;
3335           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3336       ;; #(
3337     *)
3338       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3339       ;;
3340     esac |
3341     sort
3342 )
3343     echo
3344
3345     $as_echo "## ----------------- ##
3346 ## Output variables. ##
3347 ## ----------------- ##"
3348     echo
3349     for ac_var in $ac_subst_vars
3350     do
3351       eval ac_val=\$$ac_var
3352       case $ac_val in
3353       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3354       esac
3355       $as_echo "$ac_var='\''$ac_val'\''"
3356     done | sort
3357     echo
3358
3359     if test -n "$ac_subst_files"; then
3360       $as_echo "## ------------------- ##
3361 ## File substitutions. ##
3362 ## ------------------- ##"
3363       echo
3364       for ac_var in $ac_subst_files
3365       do
3366         eval ac_val=\$$ac_var
3367         case $ac_val in
3368         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3369         esac
3370         $as_echo "$ac_var='\''$ac_val'\''"
3371       done | sort
3372       echo
3373     fi
3374
3375     if test -s confdefs.h; then
3376       $as_echo "## ----------- ##
3377 ## confdefs.h. ##
3378 ## ----------- ##"
3379       echo
3380       cat confdefs.h
3381       echo
3382     fi
3383     test "$ac_signal" != 0 &&
3384       $as_echo "$as_me: caught signal $ac_signal"
3385     $as_echo "$as_me: exit $exit_status"
3386   } >&5
3387   rm -f core *.core core.conftest.* &&
3388     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3389     exit $exit_status
3390 ' 0
3391 for ac_signal in 1 2 13 15; do
3392   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3393 done
3394 ac_signal=0
3395
3396 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3397 rm -f -r conftest* confdefs.h
3398
3399 $as_echo "/* confdefs.h */" > confdefs.h
3400
3401 # Predefined preprocessor variables.
3402
3403 cat >>confdefs.h <<_ACEOF
3404 #define PACKAGE_NAME "$PACKAGE_NAME"
3405 _ACEOF
3406
3407 cat >>confdefs.h <<_ACEOF
3408 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3409 _ACEOF
3410
3411 cat >>confdefs.h <<_ACEOF
3412 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3413 _ACEOF
3414
3415 cat >>confdefs.h <<_ACEOF
3416 #define PACKAGE_STRING "$PACKAGE_STRING"
3417 _ACEOF
3418
3419 cat >>confdefs.h <<_ACEOF
3420 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3421 _ACEOF
3422
3423 cat >>confdefs.h <<_ACEOF
3424 #define PACKAGE_URL "$PACKAGE_URL"
3425 _ACEOF
3426
3427
3428 # Let the site file select an alternate cache file if it wants to.
3429 # Prefer an explicitly selected file to automatically selected ones.
3430 ac_site_file1=NONE
3431 ac_site_file2=NONE
3432 if test -n "$CONFIG_SITE"; then
3433   # We do not want a PATH search for config.site.
3434   case $CONFIG_SITE in #((
3435     -*)  ac_site_file1=./$CONFIG_SITE;;
3436     */*) ac_site_file1=$CONFIG_SITE;;
3437     *)   ac_site_file1=./$CONFIG_SITE;;
3438   esac
3439 elif test "x$prefix" != xNONE; then
3440   ac_site_file1=$prefix/share/config.site
3441   ac_site_file2=$prefix/etc/config.site
3442 else
3443   ac_site_file1=$ac_default_prefix/share/config.site
3444   ac_site_file2=$ac_default_prefix/etc/config.site
3445 fi
3446 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3447 do
3448   test "x$ac_site_file" = xNONE && continue
3449   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3450     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3451 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3452     sed 's/^/| /' "$ac_site_file" >&5
3453     . "$ac_site_file" \
3454       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456 as_fn_error $? "failed to load site script $ac_site_file
3457 See \`config.log' for more details" "$LINENO" 5; }
3458   fi
3459 done
3460
3461 if test -r "$cache_file"; then
3462   # Some versions of bash will fail to source /dev/null (special files
3463   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3464   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3465     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3466 $as_echo "$as_me: loading cache $cache_file" >&6;}
3467     case $cache_file in
3468       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3469       *)                      . "./$cache_file";;
3470     esac
3471   fi
3472 else
3473   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3474 $as_echo "$as_me: creating cache $cache_file" >&6;}
3475   >$cache_file
3476 fi
3477
3478 gl_header_list="$gl_header_list arpa/inet.h"
3479 gl_func_list="$gl_func_list btowc"
3480 gl_header_list="$gl_header_list errno.h"
3481 gl_header_list="$gl_header_list float.h"
3482 gl_header_list="$gl_header_list sys/param.h"
3483 gl_header_list="$gl_header_list sys/vfs.h"
3484 gl_header_list="$gl_header_list sys/fs_types.h"
3485 gl_func_list="$gl_func_list ftruncate"
3486 gl_header_list="$gl_header_list sys/socket.h"
3487 gl_header_list="$gl_header_list netdb.h"
3488 gl_header_list="$gl_header_list netinet/in.h"
3489 gl_getopt_required=GNU
3490 gl_header_list="$gl_header_list getopt.h"
3491 gl_header_list="$gl_header_list sys/time.h"
3492 gl_func_list="$gl_func_list gettimeofday"
3493 gl_header_list="$gl_header_list langinfo.h"
3494 gl_func_list="$gl_func_list lstat"
3495 gl_func_list="$gl_func_list mbsinit"
3496 gl_func_list="$gl_func_list mbrtowc"
3497 gl_header_list="$gl_header_list sys/mman.h"
3498 gl_func_list="$gl_func_list mprotect"
3499 gl_func_list="$gl_func_list memchr"
3500 gl_func_list="$gl_func_list nl_langinfo"
3501 gl_header_list="$gl_header_list locale.h"
3502 gl_func_list="$gl_func_list isblank"
3503 gl_func_list="$gl_func_list iswctype"
3504 gl_func_list="$gl_func_list wcscoll"
3505 gl_header_list="$gl_header_list stddef.h"
3506 gl_header_list="$gl_header_list stdint.h"
3507 gl_header_list="$gl_header_list wchar.h"
3508 gl_header_list="$gl_header_list stdio.h"
3509 gl_header_list="$gl_header_list stdlib.h"
3510 gl_header_list="$gl_header_list string.h"
3511 gl_header_list="$gl_header_list sys/stat.h"
3512 gl_header_list="$gl_header_list time.h"
3513 gl_header_list="$gl_header_list unistd.h"
3514 gl_func_list="$gl_func_list vasnprintf"
3515 gl_func_list="$gl_func_list wcrtomb"
3516 gl_func_list="$gl_func_list iswcntrl"
3517 gl_func_list="$gl_func_list iswblank"
3518 gl_header_list="$gl_header_list wctype.h"
3519 # Check that the precious variables saved in the cache have kept the same
3520 # value.
3521 ac_cache_corrupted=false
3522 for ac_var in $ac_precious_vars; do
3523   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3524   eval ac_new_set=\$ac_env_${ac_var}_set
3525   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3526   eval ac_new_val=\$ac_env_${ac_var}_value
3527   case $ac_old_set,$ac_new_set in
3528     set,)
3529       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3530 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3531       ac_cache_corrupted=: ;;
3532     ,set)
3533       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3534 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3535       ac_cache_corrupted=: ;;
3536     ,);;
3537     *)
3538       if test "x$ac_old_val" != "x$ac_new_val"; then
3539         # differences in whitespace do not lead to failure.
3540         ac_old_val_w=`echo x $ac_old_val`
3541         ac_new_val_w=`echo x $ac_new_val`
3542         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3543           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3544 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3545           ac_cache_corrupted=:
3546         else
3547           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3548 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3549           eval $ac_var=\$ac_old_val
3550         fi
3551         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3552 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3553         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3554 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3555       fi;;
3556   esac
3557   # Pass precious variables to config.status.
3558   if test "$ac_new_set" = set; then
3559     case $ac_new_val in
3560     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3561     *) ac_arg=$ac_var=$ac_new_val ;;
3562     esac
3563     case " $ac_configure_args " in
3564       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3565       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3566     esac
3567   fi
3568 done
3569 if $ac_cache_corrupted; then
3570   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3573 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3574   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3575 fi
3576 ## -------------------- ##
3577 ## Main body of script. ##
3578 ## -------------------- ##
3579
3580 ac_ext=c
3581 ac_cpp='$CPP $CPPFLAGS'
3582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3585
3586
3587
3588 ac_aux_dir=
3589 for ac_dir in config "$srcdir"/config; do
3590   if test -f "$ac_dir/install-sh"; then
3591     ac_aux_dir=$ac_dir
3592     ac_install_sh="$ac_aux_dir/install-sh -c"
3593     break
3594   elif test -f "$ac_dir/install.sh"; then
3595     ac_aux_dir=$ac_dir
3596     ac_install_sh="$ac_aux_dir/install.sh -c"
3597     break
3598   elif test -f "$ac_dir/shtool"; then
3599     ac_aux_dir=$ac_dir
3600     ac_install_sh="$ac_aux_dir/shtool install -c"
3601     break
3602   fi
3603 done
3604 if test -z "$ac_aux_dir"; then
3605   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3606 fi
3607
3608 # These three variables are undocumented and unsupported,
3609 # and are intended to be withdrawn in a future Autoconf release.
3610 # They can cause serious problems if a builder's source tree is in a directory
3611 # whose full name contains unusual characters.
3612 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3613 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3614 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3615
3616
3617
3618 # Make sure we can run config.sub.
3619 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3620   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3621
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3623 $as_echo_n "checking build system type... " >&6; }
3624 if ${ac_cv_build+:} false; then :
3625   $as_echo_n "(cached) " >&6
3626 else
3627   ac_build_alias=$build_alias
3628 test "x$ac_build_alias" = x &&
3629   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3630 test "x$ac_build_alias" = x &&
3631   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3632 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3633   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3634
3635 fi
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3637 $as_echo "$ac_cv_build" >&6; }
3638 case $ac_cv_build in
3639 *-*-*) ;;
3640 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3641 esac
3642 build=$ac_cv_build
3643 ac_save_IFS=$IFS; IFS='-'
3644 set x $ac_cv_build
3645 shift
3646 build_cpu=$1
3647 build_vendor=$2
3648 shift; shift
3649 # Remember, the first character of IFS is used to create $*,
3650 # except with old shells:
3651 build_os=$*
3652 IFS=$ac_save_IFS
3653 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3654
3655
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3657 $as_echo_n "checking host system type... " >&6; }
3658 if ${ac_cv_host+:} false; then :
3659   $as_echo_n "(cached) " >&6
3660 else
3661   if test "x$host_alias" = x; then
3662   ac_cv_host=$ac_cv_build
3663 else
3664   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3665     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3666 fi
3667
3668 fi
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3670 $as_echo "$ac_cv_host" >&6; }
3671 case $ac_cv_host in
3672 *-*-*) ;;
3673 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3674 esac
3675 host=$ac_cv_host
3676 ac_save_IFS=$IFS; IFS='-'
3677 set x $ac_cv_host
3678 shift
3679 host_cpu=$1
3680 host_vendor=$2
3681 shift; shift
3682 # Remember, the first character of IFS is used to create $*,
3683 # except with old shells:
3684 host_os=$*
3685 IFS=$ac_save_IFS
3686 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3687
3688
3689
3690 PACKAGE=amanda
3691
3692
3693
3694     SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/sfw/bin:/usr/bsd:/etc:/usr/etc"
3695     # expand prefix or exec_prefix in LOCPATH
3696     LOCPATH=`(
3697         test "x$prefix" = xNONE && prefix=$ac_default_prefix
3698         test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3699         eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
3700     )`
3701     SYSLOCPATH="$SYSPATH:$LOCPATH"
3702     LOCSYSPATH="$LOCPATH:$SYSPATH"
3703
3704
3705
3706     # Extract the first word of "grep", so it can be a program name with args.
3707 set dummy grep; ac_word=$2
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if ${ac_cv_path_GREP+:} false; then :
3711   $as_echo_n "(cached) " >&6
3712 else
3713   case $GREP in
3714   [\\/]* | ?:[\\/]*)
3715   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3716   ;;
3717   *)
3718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $LOCSYSPATH
3720 do
3721   IFS=$as_save_IFS
3722   test -z "$as_dir" && as_dir=.
3723     for ac_exec_ext in '' $ac_executable_extensions; do
3724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3725     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3727     break 2
3728   fi
3729 done
3730   done
3731 IFS=$as_save_IFS
3732
3733   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
3734   ;;
3735 esac
3736 fi
3737 GREP=$ac_cv_path_GREP
3738 if test -n "$GREP"; then
3739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3740 $as_echo "$GREP" >&6; }
3741 else
3742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3744 fi
3745
3746
3747
3748 cat >>confdefs.h <<_ACEOF
3749 #define GREP "$GREP"
3750 _ACEOF
3751
3752
3753
3754
3755
3756
3757
3758     # Extract the first word of "svn", so it can be a program name with args.
3759 set dummy svn; ac_word=$2
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761 $as_echo_n "checking for $ac_word... " >&6; }
3762 if ${ac_cv_path_SVN+:} false; then :
3763   $as_echo_n "(cached) " >&6
3764 else
3765   case $SVN in
3766   [\\/]* | ?:[\\/]*)
3767   ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
3768   ;;
3769   *)
3770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $LOCSYSPATH
3772 do
3773   IFS=$as_save_IFS
3774   test -z "$as_dir" && as_dir=.
3775     for ac_exec_ext in '' $ac_executable_extensions; do
3776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3777     ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
3778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779     break 2
3780   fi
3781 done
3782   done
3783 IFS=$as_save_IFS
3784
3785   ;;
3786 esac
3787 fi
3788 SVN=$ac_cv_path_SVN
3789 if test -n "$SVN"; then
3790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN" >&5
3791 $as_echo "$SVN" >&6; }
3792 else
3793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3795 fi
3796
3797
3798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Subversion revision information" >&5
3799 $as_echo_n "checking Subversion revision information... " >&6; }
3800     if test -d $srcdir/.svn -a -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
3801         SVN_REV=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
3802         SVN_URL=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3803         SVN_PATH=`$GREP URL: conftemp.svn|cut -d "/" -f 7-`
3804         SVN_TYPE=`echo ${SVN_PATH} |cut -d "/" -f 1`
3805         SVN_BRANCH=`echo "${SVN_PATH}"| cut -d "/" -f 2`
3806         url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3807         ( echo '#define BUILT_REV "'$SVN_REV'"'
3808           echo '#define BUILT_BRANCH "'$SVN_BRANCH'"'
3809         ) > common-src/svn-info.h
3810
3811         { $as_echo "$as_me:${as_lineno-$LINENO}: result: updated" >&5
3812 $as_echo "updated" >&6; }
3813     else
3814         # Makefiles will be upset if the file doesn't exist, so double-check
3815         if test -f common-src/svn-info.h; then
3816             : # all good
3817             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not changed" >&5
3818 $as_echo "not changed" >&6; }
3819         else
3820             echo '/* no information available */' > common-src/svn-info.h
3821             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
3822 $as_echo "not available" >&6; }
3823         fi
3824     fi
3825
3826     rm -f conftemp.svn
3827
3828
3829
3830
3831
3832     # Extract the first word of "git", so it can be a program name with args.
3833 set dummy git; ac_word=$2
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835 $as_echo_n "checking for $ac_word... " >&6; }
3836 if ${ac_cv_path_GIT+:} false; then :
3837   $as_echo_n "(cached) " >&6
3838 else
3839   case $GIT in
3840   [\\/]* | ?:[\\/]*)
3841   ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
3842   ;;
3843   *)
3844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $LOCSYSPATH
3846 do
3847   IFS=$as_save_IFS
3848   test -z "$as_dir" && as_dir=.
3849     for ac_exec_ext in '' $ac_executable_extensions; do
3850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851     ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
3852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3853     break 2
3854   fi
3855 done
3856   done
3857 IFS=$as_save_IFS
3858
3859   ;;
3860 esac
3861 fi
3862 GIT=$ac_cv_path_GIT
3863 if test -n "$GIT"; then
3864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
3865 $as_echo "$GIT" >&6; }
3866 else
3867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 $as_echo "no" >&6; }
3869 fi
3870
3871
3872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking git revision information" >&5
3873 $as_echo_n "checking git revision information... " >&6; }
3874     if test -d $srcdir/.git -a -n "$GIT"; then
3875         GIT_SHA1=`(cd $srcdir > /dev/null ; $GIT rev-parse HEAD | cut -c -8 )`
3876         if test -n "$GIT_SHA1"; then
3877             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT_SHA1" >&5
3878 $as_echo "$GIT_SHA1" >&6; }
3879         else
3880             { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'git rev-parse HEAD' failed" >&5
3881 $as_echo "'git rev-parse HEAD' failed" >&6; }
3882         fi
3883     else
3884         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
3885 $as_echo "not available" >&6; }
3886     fi
3887
3888     rm -f conftemp.git
3889
3890
3891     { $as_echo "$as_me:${as_lineno-$LINENO}: \"version: $VERSION\"" >&5
3892 $as_echo "$as_me: \"version: $VERSION\"" >&6;}
3893
3894 am__api_version='1.11'
3895
3896 # Find a good install program.  We prefer a C program (faster),
3897 # so one script is as good as another.  But avoid the broken or
3898 # incompatible versions:
3899 # SysV /etc/install, /usr/sbin/install
3900 # SunOS /usr/etc/install
3901 # IRIX /sbin/install
3902 # AIX /bin/install
3903 # AmigaOS /C/install, which installs bootblocks on floppy discs
3904 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3905 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3906 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3907 # OS/2's system install, which has a completely different semantic
3908 # ./install, which can be erroneously created by make from ./install.sh.
3909 # Reject install programs that cannot install multiple files.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3911 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3912 if test -z "$INSTALL"; then
3913 if ${ac_cv_path_install+:} false; then :
3914   $as_echo_n "(cached) " >&6
3915 else
3916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH
3918 do
3919   IFS=$as_save_IFS
3920   test -z "$as_dir" && as_dir=.
3921     # Account for people who put trailing slashes in PATH elements.
3922 case $as_dir/ in #((
3923   ./ | .// | /[cC]/* | \
3924   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3925   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3926   /usr/ucb/* ) ;;
3927   *)
3928     # OSF1 and SCO ODT 3.0 have their own names for install.
3929     # Don't use installbsd from OSF since it installs stuff as root
3930     # by default.
3931     for ac_prog in ginstall scoinst install; do
3932       for ac_exec_ext in '' $ac_executable_extensions; do
3933         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3934           if test $ac_prog = install &&
3935             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3936             # AIX install.  It has an incompatible calling convention.
3937             :
3938           elif test $ac_prog = install &&
3939             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3940             # program-specific install script used by HP pwplus--don't use.
3941             :
3942           else
3943             rm -rf conftest.one conftest.two conftest.dir
3944             echo one > conftest.one
3945             echo two > conftest.two
3946             mkdir conftest.dir
3947             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3948               test -s conftest.one && test -s conftest.two &&
3949               test -s conftest.dir/conftest.one &&
3950               test -s conftest.dir/conftest.two
3951             then
3952               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3953               break 3
3954             fi
3955           fi
3956         fi
3957       done
3958     done
3959     ;;
3960 esac
3961
3962   done
3963 IFS=$as_save_IFS
3964
3965 rm -rf conftest.one conftest.two conftest.dir
3966
3967 fi
3968   if test "${ac_cv_path_install+set}" = set; then
3969     INSTALL=$ac_cv_path_install
3970   else
3971     # As a last resort, use the slow shell script.  Don't cache a
3972     # value for INSTALL within a source directory, because that will
3973     # break other packages using the cache if that directory is
3974     # removed, or if the value is a relative name.
3975     INSTALL=$ac_install_sh
3976   fi
3977 fi
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3979 $as_echo "$INSTALL" >&6; }
3980
3981 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3982 # It thinks the first close brace ends the variable substitution.
3983 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3984
3985 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3986
3987 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3988
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3990 $as_echo_n "checking whether build environment is sane... " >&6; }
3991 # Just in case
3992 sleep 1
3993 echo timestamp > conftest.file
3994 # Reject unsafe characters in $srcdir or the absolute working directory
3995 # name.  Accept space and tab only in the latter.
3996 am_lf='
3997 '
3998 case `pwd` in
3999   *[\\\"\#\$\&\'\`$am_lf]*)
4000     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4001 esac
4002 case $srcdir in
4003   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4004     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4005 esac
4006
4007 # Do `set' in a subshell so we don't clobber the current shell's
4008 # arguments.  Must try -L first in case configure is actually a
4009 # symlink; some systems play weird games with the mod time of symlinks
4010 # (eg FreeBSD returns the mod time of the symlink's containing
4011 # directory).
4012 if (
4013    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4014    if test "$*" = "X"; then
4015       # -L didn't work.
4016       set X `ls -t "$srcdir/configure" conftest.file`
4017    fi
4018    rm -f conftest.file
4019    if test "$*" != "X $srcdir/configure conftest.file" \
4020       && test "$*" != "X conftest.file $srcdir/configure"; then
4021
4022       # If neither matched, then we have a broken ls.  This can happen
4023       # if, for instance, CONFIG_SHELL is bash and it inherits a
4024       # broken ls alias from the environment.  This has actually
4025       # happened.  Such a system could not be considered "sane".
4026       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4027 alias in your environment" "$LINENO" 5
4028    fi
4029
4030    test "$2" = conftest.file
4031    )
4032 then
4033    # Ok.
4034    :
4035 else
4036    as_fn_error $? "newly created file is older than distributed files!
4037 Check your system clock" "$LINENO" 5
4038 fi
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4040 $as_echo "yes" >&6; }
4041 test "$program_prefix" != NONE &&
4042   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4043 # Use a double $ so make ignores it.
4044 test "$program_suffix" != NONE &&
4045   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4046 # Double any \ or $.
4047 # By default was `s,x,x', remove it if useless.
4048 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4049 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4050
4051 # expand $ac_aux_dir to an absolute path
4052 am_aux_dir=`cd $ac_aux_dir && pwd`
4053
4054 if test x"${MISSING+set}" != xset; then
4055   case $am_aux_dir in
4056   *\ * | *\     *)
4057     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4058   *)
4059     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4060   esac
4061 fi
4062 # Use eval to expand $SHELL
4063 if eval "$MISSING --run true"; then
4064   am_missing_run="$MISSING --run "
4065 else
4066   am_missing_run=
4067   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4068 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4069 fi
4070
4071 if test x"${install_sh}" != xset; then
4072   case $am_aux_dir in
4073   *\ * | *\     *)
4074     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4075   *)
4076     install_sh="\${SHELL} $am_aux_dir/install-sh"
4077   esac
4078 fi
4079
4080 # Installed binaries are usually stripped using `strip' when the user
4081 # run `make install-strip'.  However `strip' might not be the right
4082 # tool to use in cross-compilation environments, therefore Automake
4083 # will honor the `STRIP' environment variable to overrule this program.
4084 if test "$cross_compiling" != no; then
4085   if test -n "$ac_tool_prefix"; then
4086   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4087 set dummy ${ac_tool_prefix}strip; ac_word=$2
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4089 $as_echo_n "checking for $ac_word... " >&6; }
4090 if ${ac_cv_prog_STRIP+:} false; then :
4091   $as_echo_n "(cached) " >&6
4092 else
4093   if test -n "$STRIP"; then
4094   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4095 else
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH
4098 do
4099   IFS=$as_save_IFS
4100   test -z "$as_dir" && as_dir=.
4101     for ac_exec_ext in '' $ac_executable_extensions; do
4102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4103     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4105     break 2
4106   fi
4107 done
4108   done
4109 IFS=$as_save_IFS
4110
4111 fi
4112 fi
4113 STRIP=$ac_cv_prog_STRIP
4114 if test -n "$STRIP"; then
4115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4116 $as_echo "$STRIP" >&6; }
4117 else
4118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119 $as_echo "no" >&6; }
4120 fi
4121
4122
4123 fi
4124 if test -z "$ac_cv_prog_STRIP"; then
4125   ac_ct_STRIP=$STRIP
4126   # Extract the first word of "strip", so it can be a program name with args.
4127 set dummy strip; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4131   $as_echo_n "(cached) " >&6
4132 else
4133   if test -n "$ac_ct_STRIP"; then
4134   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4135 else
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH
4138 do
4139   IFS=$as_save_IFS
4140   test -z "$as_dir" && as_dir=.
4141     for ac_exec_ext in '' $ac_executable_extensions; do
4142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4143     ac_cv_prog_ac_ct_STRIP="strip"
4144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145     break 2
4146   fi
4147 done
4148   done
4149 IFS=$as_save_IFS
4150
4151 fi
4152 fi
4153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4154 if test -n "$ac_ct_STRIP"; then
4155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4156 $as_echo "$ac_ct_STRIP" >&6; }
4157 else
4158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4160 fi
4161
4162   if test "x$ac_ct_STRIP" = x; then
4163     STRIP=":"
4164   else
4165     case $cross_compiling:$ac_tool_warned in
4166 yes:)
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4169 ac_tool_warned=yes ;;
4170 esac
4171     STRIP=$ac_ct_STRIP
4172   fi
4173 else
4174   STRIP="$ac_cv_prog_STRIP"
4175 fi
4176
4177 fi
4178 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4179
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4181 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4182 if test -z "$MKDIR_P"; then
4183   if ${ac_cv_path_mkdir+:} false; then :
4184   $as_echo_n "(cached) " >&6
4185 else
4186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4188 do
4189   IFS=$as_save_IFS
4190   test -z "$as_dir" && as_dir=.
4191     for ac_prog in mkdir gmkdir; do
4192          for ac_exec_ext in '' $ac_executable_extensions; do
4193            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4194            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4195              'mkdir (GNU coreutils) '* | \
4196              'mkdir (coreutils) '* | \
4197              'mkdir (fileutils) '4.1*)
4198                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4199                break 3;;
4200            esac
4201          done
4202        done
4203   done
4204 IFS=$as_save_IFS
4205
4206 fi
4207
4208   test -d ./--version && rmdir ./--version
4209   if test "${ac_cv_path_mkdir+set}" = set; then
4210     MKDIR_P="$ac_cv_path_mkdir -p"
4211   else
4212     # As a last resort, use the slow shell script.  Don't cache a
4213     # value for MKDIR_P within a source directory, because that will
4214     # break other packages using the cache if that directory is
4215     # removed, or if the value is a relative name.
4216     MKDIR_P="$ac_install_sh -d"
4217   fi
4218 fi
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4220 $as_echo "$MKDIR_P" >&6; }
4221
4222
4223 mkdir_p="$MKDIR_P"
4224 case $mkdir_p in
4225   [\\/$]* | ?:[\\/]*) ;;
4226   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4227 esac
4228
4229 for ac_prog in gawk mawk nawk awk
4230 do
4231   # Extract the first word of "$ac_prog", so it can be a program name with args.
4232 set dummy $ac_prog; ac_word=$2
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234 $as_echo_n "checking for $ac_word... " >&6; }
4235 if ${ac_cv_prog_AWK+:} false; then :
4236   $as_echo_n "(cached) " >&6
4237 else
4238   if test -n "$AWK"; then
4239   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4243 do
4244   IFS=$as_save_IFS
4245   test -z "$as_dir" && as_dir=.
4246     for ac_exec_ext in '' $ac_executable_extensions; do
4247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248     ac_cv_prog_AWK="$ac_prog"
4249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250     break 2
4251   fi
4252 done
4253   done
4254 IFS=$as_save_IFS
4255
4256 fi
4257 fi
4258 AWK=$ac_cv_prog_AWK
4259 if test -n "$AWK"; then
4260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4261 $as_echo "$AWK" >&6; }
4262 else
4263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264 $as_echo "no" >&6; }
4265 fi
4266
4267
4268   test -n "$AWK" && break
4269 done
4270
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4272 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4273 set x ${MAKE-make}
4274 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4275 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4276   $as_echo_n "(cached) " >&6
4277 else
4278   cat >conftest.make <<\_ACEOF
4279 SHELL = /bin/sh
4280 all:
4281         @echo '@@@%%%=$(MAKE)=@@@%%%'
4282 _ACEOF
4283 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4284 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4285   *@@@%%%=?*=@@@%%%*)
4286     eval ac_cv_prog_make_${ac_make}_set=yes;;
4287   *)
4288     eval ac_cv_prog_make_${ac_make}_set=no;;
4289 esac
4290 rm -f conftest.make
4291 fi
4292 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4294 $as_echo "yes" >&6; }
4295   SET_MAKE=
4296 else
4297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4299   SET_MAKE="MAKE=${MAKE-make}"
4300 fi
4301
4302 rm -rf .tst 2>/dev/null
4303 mkdir .tst 2>/dev/null
4304 if test -d .tst; then
4305   am__leading_dot=.
4306 else
4307   am__leading_dot=_
4308 fi
4309 rmdir .tst 2>/dev/null
4310
4311 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4312   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4313   # is not polluted with repeated "-I."
4314   am__isrc=' -I$(srcdir)'
4315   # test to see if srcdir already configured
4316   if test -f $srcdir/config.status; then
4317     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4318   fi
4319 fi
4320
4321 # test whether we have cygpath
4322 if test -z "$CYGPATH_W"; then
4323   if (cygpath --version) >/dev/null 2>/dev/null; then
4324     CYGPATH_W='cygpath -w'
4325   else
4326     CYGPATH_W=echo
4327   fi
4328 fi
4329
4330
4331 # Define the identity of the package.
4332  PACKAGE='amanda'
4333  VERSION='3.3.2'
4334
4335
4336 cat >>confdefs.h <<_ACEOF
4337 #define PACKAGE "$PACKAGE"
4338 _ACEOF
4339
4340
4341 cat >>confdefs.h <<_ACEOF
4342 #define VERSION "$VERSION"
4343 _ACEOF
4344
4345 # Some tools Automake needs.
4346
4347 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4348
4349
4350 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4351
4352
4353 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4354
4355
4356 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4357
4358
4359 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4360
4361 # We need awk for the "check" target.  The system "awk" is bad on
4362 # some platforms.
4363 # Always define AMTAR for backward compatibility.
4364
4365 AMTAR=${AMTAR-"${am_missing_run}tar"}
4366
4367
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4369 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
4370 # Loop over all known methods to create a tar archive until one works.
4371 _am_tools='gnutar plaintar pax cpio none'
4372 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4373 # Do not fold the above two line into one, because Tru64 sh and
4374 # Solaris sh will not grok spaces in the rhs of `-'.
4375 for _am_tool in $_am_tools
4376 do
4377   case $_am_tool in
4378   gnutar)
4379     for _am_tar in tar gnutar gtar;
4380     do
4381       { echo "$as_me:$LINENO: $_am_tar --version" >&5
4382    ($_am_tar --version) >&5 2>&5
4383    ac_status=$?
4384    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385    (exit $ac_status); } && break
4386     done
4387     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4388     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4389     am__untar="$_am_tar -xf -"
4390     ;;
4391   plaintar)
4392     # Must skip GNU tar: if it does not support --format= it doesn't create
4393     # ustar tarball either.
4394     (tar --version) >/dev/null 2>&1 && continue
4395     am__tar='tar chf - "$$tardir"'
4396     am__tar_='tar chf - "$tardir"'
4397     am__untar='tar xf -'
4398     ;;
4399   pax)
4400     am__tar='pax -L -x ustar -w "$$tardir"'
4401     am__tar_='pax -L -x ustar -w "$tardir"'
4402     am__untar='pax -r'
4403     ;;
4404   cpio)
4405     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4406     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4407     am__untar='cpio -i -H ustar -d'
4408     ;;
4409   none)
4410     am__tar=false
4411     am__tar_=false
4412     am__untar=false
4413     ;;
4414   esac
4415
4416   # If the value was cached, stop now.  We just wanted to have am__tar
4417   # and am__untar set.
4418   test -n "${am_cv_prog_tar_ustar}" && break
4419
4420   # tar/untar a dummy directory, and stop if the command works
4421   rm -rf conftest.dir
4422   mkdir conftest.dir
4423   echo GrepMe > conftest.dir/file
4424   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4425    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4426    ac_status=$?
4427    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428    (exit $ac_status); }
4429   rm -rf conftest.dir
4430   if test -s conftest.tar; then
4431     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4432    ($am__untar <conftest.tar) >&5 2>&5
4433    ac_status=$?
4434    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435    (exit $ac_status); }
4436     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4437   fi
4438 done
4439 rm -rf conftest.dir
4440
4441 if ${am_cv_prog_tar_ustar+:} false; then :
4442   $as_echo_n "(cached) " >&6
4443 else
4444   am_cv_prog_tar_ustar=$_am_tool
4445 fi
4446
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4448 $as_echo "$am_cv_prog_tar_ustar" >&6; }
4449
4450
4451
4452
4453
4454 ac_config_headers="$ac_config_headers config/config.h"
4455
4456
4457
4458
4459 #
4460 # Take care of some early Amanda-specific setup
4461 #
4462
4463     # initialize warnings file
4464     rm -f config.warnings
4465
4466
4467     if test -f "$srcdir/SNAPSHOT"; then
4468       cat < "$srcdir/SNAPSHOT"
4469
4470       snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
4471
4472       test -z "$snapdate" || VERSION="$VERSION-$snapdate"
4473       SNAPSHOT_STAMP=SNAPSHOT
4474     else
4475       SNAPSHOT_STAMP=
4476     fi
4477
4478
4479
4480
4481     VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
4482     VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
4483     if test -z "$VERSION_MINOR"; then
4484         VERSION_MINOR=0
4485         VERSION_PATCH=0
4486         VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\(.*\)'`\"
4487     else
4488         VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
4489         if test -z "$VERSION_PATCH"; then
4490             VERSION_PATCH=0
4491             VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\(.*\)'`\"
4492         else
4493             VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
4494         fi
4495     fi
4496
4497
4498
4499
4500
4501
4502
4503
4504 cat >>confdefs.h <<_ACEOF
4505 #define VERSION_MAJOR $VERSION_MAJOR
4506 _ACEOF
4507
4508
4509 cat >>confdefs.h <<_ACEOF
4510 #define VERSION_MINOR $VERSION_MINOR
4511 _ACEOF
4512
4513
4514 cat >>confdefs.h <<_ACEOF
4515 #define VERSION_PATCH $VERSION_PATCH
4516 _ACEOF
4517
4518
4519 cat >>confdefs.h <<_ACEOF
4520 #define VERSION_COMMENT $VERSION_COMMENT
4521 _ACEOF
4522
4523
4524
4525     if test -f config.local; then
4526         echo "running local script ./config.local"
4527         . ./config.local
4528     fi
4529
4530
4531 #
4532 # Set up compiler location, basic flags, and include locations
4533 # and library locations before we start checking the system
4534 # configuration in more detail...
4535 #
4536 ac_ext=c
4537 ac_cpp='$CPP $CPPFLAGS'
4538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541 if test -n "$ac_tool_prefix"; then
4542   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545 $as_echo_n "checking for $ac_word... " >&6; }
4546 if ${ac_cv_prog_CC+:} false; then :
4547   $as_echo_n "(cached) " >&6
4548 else
4549   if test -n "$CC"; then
4550   ac_cv_prog_CC="$CC" # Let the user override the test.
4551 else
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4554 do
4555   IFS=$as_save_IFS
4556   test -z "$as_dir" && as_dir=.
4557     for ac_exec_ext in '' $ac_executable_extensions; do
4558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4559     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561     break 2
4562   fi
4563 done
4564   done
4565 IFS=$as_save_IFS
4566
4567 fi
4568 fi
4569 CC=$ac_cv_prog_CC
4570 if test -n "$CC"; then
4571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4572 $as_echo "$CC" >&6; }
4573 else
4574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575 $as_echo "no" >&6; }
4576 fi
4577
4578
4579 fi
4580 if test -z "$ac_cv_prog_CC"; then
4581   ac_ct_CC=$CC
4582   # Extract the first word of "gcc", so it can be a program name with args.
4583 set dummy gcc; ac_word=$2
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4585 $as_echo_n "checking for $ac_word... " >&6; }
4586 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4587   $as_echo_n "(cached) " >&6
4588 else
4589   if test -n "$ac_ct_CC"; then
4590   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4591 else
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4594 do
4595   IFS=$as_save_IFS
4596   test -z "$as_dir" && as_dir=.
4597     for ac_exec_ext in '' $ac_executable_extensions; do
4598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4599     ac_cv_prog_ac_ct_CC="gcc"
4600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601     break 2
4602   fi
4603 done
4604   done
4605 IFS=$as_save_IFS
4606
4607 fi
4608 fi
4609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4610 if test -n "$ac_ct_CC"; then
4611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4612 $as_echo "$ac_ct_CC" >&6; }
4613 else
4614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 $as_echo "no" >&6; }
4616 fi
4617
4618   if test "x$ac_ct_CC" = x; then
4619     CC=""
4620   else
4621     case $cross_compiling:$ac_tool_warned in
4622 yes:)
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4625 ac_tool_warned=yes ;;
4626 esac
4627     CC=$ac_ct_CC
4628   fi
4629 else
4630   CC="$ac_cv_prog_CC"
4631 fi
4632
4633 if test -z "$CC"; then
4634           if test -n "$ac_tool_prefix"; then
4635     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4636 set dummy ${ac_tool_prefix}cc; ac_word=$2
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if ${ac_cv_prog_CC+:} false; then :
4640   $as_echo_n "(cached) " >&6
4641 else
4642   if test -n "$CC"; then
4643   ac_cv_prog_CC="$CC" # Let the user override the test.
4644 else
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648   IFS=$as_save_IFS
4649   test -z "$as_dir" && as_dir=.
4650     for ac_exec_ext in '' $ac_executable_extensions; do
4651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652     ac_cv_prog_CC="${ac_tool_prefix}cc"
4653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654     break 2
4655   fi
4656 done
4657   done
4658 IFS=$as_save_IFS
4659
4660 fi
4661 fi
4662 CC=$ac_cv_prog_CC
4663 if test -n "$CC"; then
4664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4665 $as_echo "$CC" >&6; }
4666 else
4667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4669 fi
4670
4671
4672   fi
4673 fi
4674 if test -z "$CC"; then
4675   # Extract the first word of "cc", so it can be a program name with args.
4676 set dummy cc; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if ${ac_cv_prog_CC+:} false; then :
4680   $as_echo_n "(cached) " >&6
4681 else
4682   if test -n "$CC"; then
4683   ac_cv_prog_CC="$CC" # Let the user override the test.
4684 else
4685   ac_prog_rejected=no
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689   IFS=$as_save_IFS
4690   test -z "$as_dir" && as_dir=.
4691     for ac_exec_ext in '' $ac_executable_extensions; do
4692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4694        ac_prog_rejected=yes
4695        continue
4696      fi
4697     ac_cv_prog_CC="cc"
4698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699     break 2
4700   fi
4701 done
4702   done
4703 IFS=$as_save_IFS
4704
4705 if test $ac_prog_rejected = yes; then
4706   # We found a bogon in the path, so make sure we never use it.
4707   set dummy $ac_cv_prog_CC
4708   shift
4709   if test $# != 0; then
4710     # We chose a different compiler from the bogus one.
4711     # However, it has the same basename, so the bogon will be chosen
4712     # first if we set CC to just the basename; use the full file name.
4713     shift
4714     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4715   fi
4716 fi
4717 fi
4718 fi
4719 CC=$ac_cv_prog_CC
4720 if test -n "$CC"; then
4721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4722 $as_echo "$CC" >&6; }
4723 else
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4726 fi
4727
4728
4729 fi
4730 if test -z "$CC"; then
4731   if test -n "$ac_tool_prefix"; then
4732   for ac_prog in cl.exe
4733   do
4734     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if ${ac_cv_prog_CC+:} false; then :
4739   $as_echo_n "(cached) " >&6
4740 else
4741   if test -n "$CC"; then
4742   ac_cv_prog_CC="$CC" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749     for ac_exec_ext in '' $ac_executable_extensions; do
4750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753     break 2
4754   fi
4755 done
4756   done
4757 IFS=$as_save_IFS
4758
4759 fi
4760 fi
4761 CC=$ac_cv_prog_CC
4762 if test -n "$CC"; then
4763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4764 $as_echo "$CC" >&6; }
4765 else
4766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4768 fi
4769
4770
4771     test -n "$CC" && break
4772   done
4773 fi
4774 if test -z "$CC"; then
4775   ac_ct_CC=$CC
4776   for ac_prog in cl.exe
4777 do
4778   # Extract the first word of "$ac_prog", so it can be a program name with args.
4779 set dummy $ac_prog; ac_word=$2
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4781 $as_echo_n "checking for $ac_word... " >&6; }
4782 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4783   $as_echo_n "(cached) " >&6
4784 else
4785   if test -n "$ac_ct_CC"; then
4786   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4787 else
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4790 do
4791   IFS=$as_save_IFS
4792   test -z "$as_dir" && as_dir=.
4793     for ac_exec_ext in '' $ac_executable_extensions; do
4794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4795     ac_cv_prog_ac_ct_CC="$ac_prog"
4796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4797     break 2
4798   fi
4799 done
4800   done
4801 IFS=$as_save_IFS
4802
4803 fi
4804 fi
4805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4806 if test -n "$ac_ct_CC"; then
4807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4808 $as_echo "$ac_ct_CC" >&6; }
4809 else
4810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4812 fi
4813
4814
4815   test -n "$ac_ct_CC" && break
4816 done
4817
4818   if test "x$ac_ct_CC" = x; then
4819     CC=""
4820   else
4821     case $cross_compiling:$ac_tool_warned in
4822 yes:)
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4825 ac_tool_warned=yes ;;
4826 esac
4827     CC=$ac_ct_CC
4828   fi
4829 fi
4830
4831 fi
4832
4833
4834 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4836 as_fn_error $? "no acceptable C compiler found in \$PATH
4837 See \`config.log' for more details" "$LINENO" 5; }
4838
4839 # Provide some information about the compiler.
4840 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4841 set X $ac_compile
4842 ac_compiler=$2
4843 for ac_option in --version -v -V -qversion; do
4844   { { ac_try="$ac_compiler $ac_option >&5"
4845 case "(($ac_try" in
4846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847   *) ac_try_echo=$ac_try;;
4848 esac
4849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4850 $as_echo "$ac_try_echo"; } >&5
4851   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4852   ac_status=$?
4853   if test -s conftest.err; then
4854     sed '10a\
4855 ... rest of stderr output deleted ...
4856          10q' conftest.err >conftest.er1
4857     cat conftest.er1 >&5
4858   fi
4859   rm -f conftest.er1 conftest.err
4860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4861   test $ac_status = 0; }
4862 done
4863
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h.  */
4866
4867 int
4868 main ()
4869 {
4870
4871   ;
4872   return 0;
4873 }
4874 _ACEOF
4875 ac_clean_files_save=$ac_clean_files
4876 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4877 # Try to create an executable without -o first, disregard a.out.
4878 # It will help us diagnose broken compilers, and finding out an intuition
4879 # of exeext.
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4881 $as_echo_n "checking whether the C compiler works... " >&6; }
4882 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4883
4884 # The possible output files:
4885 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4886
4887 ac_rmfiles=
4888 for ac_file in $ac_files
4889 do
4890   case $ac_file in
4891     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4892     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4893   esac
4894 done
4895 rm -f $ac_rmfiles
4896
4897 if { { ac_try="$ac_link_default"
4898 case "(($ac_try" in
4899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900   *) ac_try_echo=$ac_try;;
4901 esac
4902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4903 $as_echo "$ac_try_echo"; } >&5
4904   (eval "$ac_link_default") 2>&5
4905   ac_status=$?
4906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4907   test $ac_status = 0; }; then :
4908   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4909 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4910 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4911 # so that the user can short-circuit this test for compilers unknown to
4912 # Autoconf.
4913 for ac_file in $ac_files ''
4914 do
4915   test -f "$ac_file" || continue
4916   case $ac_file in
4917     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4918         ;;
4919     [ab].out )
4920         # We found the default executable, but exeext='' is most
4921         # certainly right.
4922         break;;
4923     *.* )
4924         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4925         then :; else
4926            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4927         fi
4928         # We set ac_cv_exeext here because the later test for it is not
4929         # safe: cross compilers may not add the suffix if given an `-o'
4930         # argument, so we may need to know it at that point already.
4931         # Even if this section looks crufty: it has the advantage of
4932         # actually working.
4933         break;;
4934     * )
4935         break;;
4936   esac
4937 done
4938 test "$ac_cv_exeext" = no && ac_cv_exeext=
4939
4940 else
4941   ac_file=''
4942 fi
4943 if test -z "$ac_file"; then :
4944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4946 $as_echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4948
4949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4951 as_fn_error 77 "C compiler cannot create executables
4952 See \`config.log' for more details" "$LINENO" 5; }
4953 else
4954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4955 $as_echo "yes" >&6; }
4956 fi
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4958 $as_echo_n "checking for C compiler default output file name... " >&6; }
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4960 $as_echo "$ac_file" >&6; }
4961 ac_exeext=$ac_cv_exeext
4962
4963 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4964 ac_clean_files=$ac_clean_files_save
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4966 $as_echo_n "checking for suffix of executables... " >&6; }
4967 if { { ac_try="$ac_link"
4968 case "(($ac_try" in
4969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970   *) ac_try_echo=$ac_try;;
4971 esac
4972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4973 $as_echo "$ac_try_echo"; } >&5
4974   (eval "$ac_link") 2>&5
4975   ac_status=$?
4976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4977   test $ac_status = 0; }; then :
4978   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4979 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4980 # work properly (i.e., refer to `conftest.exe'), while it won't with
4981 # `rm'.
4982 for ac_file in conftest.exe conftest conftest.*; do
4983   test -f "$ac_file" || continue
4984   case $ac_file in
4985     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4986     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4987           break;;
4988     * ) break;;
4989   esac
4990 done
4991 else
4992   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4994 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4995 See \`config.log' for more details" "$LINENO" 5; }
4996 fi
4997 rm -f conftest conftest$ac_cv_exeext
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4999 $as_echo "$ac_cv_exeext" >&6; }
5000
5001 rm -f conftest.$ac_ext
5002 EXEEXT=$ac_cv_exeext
5003 ac_exeext=$EXEEXT
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h.  */
5006 #include <stdio.h>
5007 int
5008 main ()
5009 {
5010 FILE *f = fopen ("conftest.out", "w");
5011  return ferror (f) || fclose (f) != 0;
5012
5013   ;
5014   return 0;
5015 }
5016 _ACEOF
5017 ac_clean_files="$ac_clean_files conftest.out"
5018 # Check that the compiler produces executables we can run.  If not, either
5019 # the compiler is broken, or we cross compile.
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5021 $as_echo_n "checking whether we are cross compiling... " >&6; }
5022 if test "$cross_compiling" != yes; then
5023   { { ac_try="$ac_link"
5024 case "(($ac_try" in
5025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026   *) ac_try_echo=$ac_try;;
5027 esac
5028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5029 $as_echo "$ac_try_echo"; } >&5
5030   (eval "$ac_link") 2>&5
5031   ac_status=$?
5032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5033   test $ac_status = 0; }
5034   if { ac_try='./conftest$ac_cv_exeext'
5035   { { case "(($ac_try" in
5036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037   *) ac_try_echo=$ac_try;;
5038 esac
5039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5040 $as_echo "$ac_try_echo"; } >&5
5041   (eval "$ac_try") 2>&5
5042   ac_status=$?
5043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5044   test $ac_status = 0; }; }; then
5045     cross_compiling=no
5046   else
5047     if test "$cross_compiling" = maybe; then
5048         cross_compiling=yes
5049     else
5050         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5052 as_fn_error $? "cannot run C compiled programs.
5053 If you meant to cross compile, use \`--host'.
5054 See \`config.log' for more details" "$LINENO" 5; }
5055     fi
5056   fi
5057 fi
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5059 $as_echo "$cross_compiling" >&6; }
5060
5061 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5062 ac_clean_files=$ac_clean_files_save
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5064 $as_echo_n "checking for suffix of object files... " >&6; }
5065 if ${ac_cv_objext+:} false; then :
5066   $as_echo_n "(cached) " >&6
5067 else
5068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h.  */
5070
5071 int
5072 main ()
5073 {
5074
5075   ;
5076   return 0;
5077 }
5078 _ACEOF
5079 rm -f conftest.o conftest.obj
5080 if { { ac_try="$ac_compile"
5081 case "(($ac_try" in
5082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083   *) ac_try_echo=$ac_try;;
5084 esac
5085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5086 $as_echo "$ac_try_echo"; } >&5
5087   (eval "$ac_compile") 2>&5
5088   ac_status=$?
5089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5090   test $ac_status = 0; }; then :
5091   for ac_file in conftest.o conftest.obj conftest.*; do
5092   test -f "$ac_file" || continue;
5093   case $ac_file in
5094     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5095     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5096        break;;
5097   esac
5098 done
5099 else
5100   $as_echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5102
5103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5105 as_fn_error $? "cannot compute suffix of object files: cannot compile
5106 See \`config.log' for more details" "$LINENO" 5; }
5107 fi
5108 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5109 fi
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5111 $as_echo "$ac_cv_objext" >&6; }
5112 OBJEXT=$ac_cv_objext
5113 ac_objext=$OBJEXT
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5115 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5116 if ${ac_cv_c_compiler_gnu+:} false; then :
5117   $as_echo_n "(cached) " >&6
5118 else
5119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h.  */
5121
5122 int
5123 main ()
5124 {
5125 #ifndef __GNUC__
5126        choke me
5127 #endif
5128
5129   ;
5130   return 0;
5131 }
5132 _ACEOF
5133 if ac_fn_c_try_compile "$LINENO"; then :
5134   ac_compiler_gnu=yes
5135 else
5136   ac_compiler_gnu=no
5137 fi
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5139 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5140
5141 fi
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5143 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5144 if test $ac_compiler_gnu = yes; then
5145   GCC=yes
5146 else
5147   GCC=
5148 fi
5149 ac_test_CFLAGS=${CFLAGS+set}
5150 ac_save_CFLAGS=$CFLAGS
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5152 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5153 if ${ac_cv_prog_cc_g+:} false; then :
5154   $as_echo_n "(cached) " >&6
5155 else
5156   ac_save_c_werror_flag=$ac_c_werror_flag
5157    ac_c_werror_flag=yes
5158    ac_cv_prog_cc_g=no
5159    CFLAGS="-g"
5160    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h.  */
5162
5163 int
5164 main ()
5165 {
5166
5167   ;
5168   return 0;
5169 }
5170 _ACEOF
5171 if ac_fn_c_try_compile "$LINENO"; then :
5172   ac_cv_prog_cc_g=yes
5173 else
5174   CFLAGS=""
5175       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h.  */
5177
5178 int
5179 main ()
5180 {
5181
5182   ;
5183   return 0;
5184 }
5185 _ACEOF
5186 if ac_fn_c_try_compile "$LINENO"; then :
5187
5188 else
5189   ac_c_werror_flag=$ac_save_c_werror_flag
5190          CFLAGS="-g"
5191          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h.  */
5193
5194 int
5195 main ()
5196 {
5197
5198   ;
5199   return 0;
5200 }
5201 _ACEOF
5202 if ac_fn_c_try_compile "$LINENO"; then :
5203   ac_cv_prog_cc_g=yes
5204 fi
5205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5206 fi
5207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208 fi
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210    ac_c_werror_flag=$ac_save_c_werror_flag
5211 fi
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5213 $as_echo "$ac_cv_prog_cc_g" >&6; }
5214 if test "$ac_test_CFLAGS" = set; then
5215   CFLAGS=$ac_save_CFLAGS
5216 elif test $ac_cv_prog_cc_g = yes; then
5217   if test "$GCC" = yes; then
5218     CFLAGS="-g -O2"
5219   else
5220     CFLAGS="-g"
5221   fi
5222 else
5223   if test "$GCC" = yes; then
5224     CFLAGS="-O2"
5225   else
5226     CFLAGS=
5227   fi
5228 fi
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5230 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5231 if ${ac_cv_prog_cc_c89+:} false; then :
5232   $as_echo_n "(cached) " >&6
5233 else
5234   ac_cv_prog_cc_c89=no
5235 ac_save_CC=$CC
5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h.  */
5238 #include <stdarg.h>
5239 #include <stdio.h>
5240 #include <sys/types.h>
5241 #include <sys/stat.h>
5242 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5243 struct buf { int x; };
5244 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5245 static char *e (p, i)
5246      char **p;
5247      int i;
5248 {
5249   return p[i];
5250 }
5251 static char *f (char * (*g) (char **, int), char **p, ...)
5252 {
5253   char *s;
5254   va_list v;
5255   va_start (v,p);
5256   s = g (p, va_arg (v,int));
5257   va_end (v);
5258   return s;
5259 }
5260
5261 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5262    function prototypes and stuff, but not '\xHH' hex character constants.
5263    These don't provoke an error unfortunately, instead are silently treated
5264    as 'x'.  The following induces an error, until -std is added to get
5265    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5266    array size at least.  It's necessary to write '\x00'==0 to get something
5267    that's true only with -std.  */
5268 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5269
5270 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5271    inside strings and character constants.  */
5272 #define FOO(x) 'x'
5273 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5274
5275 int test (int i, double x);
5276 struct s1 {int (*f) (int a);};
5277 struct s2 {int (*f) (double a);};
5278 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5279 int argc;
5280 char **argv;
5281 int
5282 main ()
5283 {
5284 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5285   ;
5286   return 0;
5287 }
5288 _ACEOF
5289 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5290         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5291 do
5292   CC="$ac_save_CC $ac_arg"
5293   if ac_fn_c_try_compile "$LINENO"; then :
5294   ac_cv_prog_cc_c89=$ac_arg
5295 fi
5296 rm -f core conftest.err conftest.$ac_objext
5297   test "x$ac_cv_prog_cc_c89" != "xno" && break
5298 done
5299 rm -f conftest.$ac_ext
5300 CC=$ac_save_CC
5301
5302 fi
5303 # AC_CACHE_VAL
5304 case "x$ac_cv_prog_cc_c89" in
5305   x)
5306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5307 $as_echo "none needed" >&6; } ;;
5308   xno)
5309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5310 $as_echo "unsupported" >&6; } ;;
5311   *)
5312     CC="$CC $ac_cv_prog_cc_c89"
5313     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5314 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5315 esac
5316 if test "x$ac_cv_prog_cc_c89" != xno; then :
5317
5318 fi
5319
5320 ac_ext=c
5321 ac_cpp='$CPP $CPPFLAGS'
5322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5325 DEPDIR="${am__leading_dot}deps"
5326
5327 ac_config_commands="$ac_config_commands depfiles"
5328
5329
5330 am_make=${MAKE-make}
5331 cat > confinc << 'END'
5332 am__doit:
5333         @echo this is the am__doit target
5334 .PHONY: am__doit
5335 END
5336 # If we don't find an include directive, just comment out the code.
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5338 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5339 am__include="#"
5340 am__quote=
5341 _am_result=none
5342 # First try GNU make style include.
5343 echo "include confinc" > confmf
5344 # Ignore all kinds of additional output from `make'.
5345 case `$am_make -s -f confmf 2> /dev/null` in #(
5346 *the\ am__doit\ target*)
5347   am__include=include
5348   am__quote=
5349   _am_result=GNU
5350   ;;
5351 esac
5352 # Now try BSD make style include.
5353 if test "$am__include" = "#"; then
5354    echo '.include "confinc"' > confmf
5355    case `$am_make -s -f confmf 2> /dev/null` in #(
5356    *the\ am__doit\ target*)
5357      am__include=.include
5358      am__quote="\""
5359      _am_result=BSD
5360      ;;
5361    esac
5362 fi
5363
5364
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5366 $as_echo "$_am_result" >&6; }
5367 rm -f confinc confmf
5368
5369 # Check whether --enable-dependency-tracking was given.
5370 if test "${enable_dependency_tracking+set}" = set; then :
5371   enableval=$enable_dependency_tracking;
5372 fi
5373
5374 if test "x$enable_dependency_tracking" != xno; then
5375   am_depcomp="$ac_aux_dir/depcomp"
5376   AMDEPBACKSLASH='\'
5377 fi
5378  if test "x$enable_dependency_tracking" != xno; then
5379   AMDEP_TRUE=
5380   AMDEP_FALSE='#'
5381 else
5382   AMDEP_TRUE='#'
5383   AMDEP_FALSE=
5384 fi
5385
5386
5387
5388 depcc="$CC"   am_compiler_list=
5389
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5391 $as_echo_n "checking dependency style of $depcc... " >&6; }
5392 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5393   $as_echo_n "(cached) " >&6
5394 else
5395   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5396   # We make a subdir and do the tests there.  Otherwise we can end up
5397   # making bogus files that we don't know about and never remove.  For
5398   # instance it was reported that on HP-UX the gcc test will end up
5399   # making a dummy file named `D' -- because `-MD' means `put the output
5400   # in D'.
5401   mkdir conftest.dir
5402   # Copy depcomp to subdir because otherwise we won't find it if we're
5403   # using a relative directory.
5404   cp "$am_depcomp" conftest.dir
5405   cd conftest.dir
5406   # We will build objects and dependencies in a subdirectory because
5407   # it helps to detect inapplicable dependency modes.  For instance
5408   # both Tru64's cc and ICC support -MD to output dependencies as a
5409   # side effect of compilation, but ICC will put the dependencies in
5410   # the current directory while Tru64 will put them in the object
5411   # directory.
5412   mkdir sub
5413
5414   am_cv_CC_dependencies_compiler_type=none
5415   if test "$am_compiler_list" = ""; then
5416      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5417   fi
5418   am__universal=false
5419   case " $depcc " in #(
5420      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5421      esac
5422
5423   for depmode in $am_compiler_list; do
5424     # Setup a source with many dependencies, because some compilers
5425     # like to wrap large dependency lists on column 80 (with \), and
5426     # we should not choose a depcomp mode which is confused by this.
5427     #
5428     # We need to recreate these files for each test, as the compiler may
5429     # overwrite some of them when testing with obscure command lines.
5430     # This happens at least with the AIX C compiler.
5431     : > sub/conftest.c
5432     for i in 1 2 3 4 5 6; do
5433       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5434       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5435       # Solaris 8's {/usr,}/bin/sh.
5436       touch sub/conftst$i.h
5437     done
5438     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5439
5440     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5441     # mode.  It turns out that the SunPro C++ compiler does not properly
5442     # handle `-M -o', and we need to detect this.  Also, some Intel
5443     # versions had trouble with output in subdirs
5444     am__obj=sub/conftest.${OBJEXT-o}
5445     am__minus_obj="-o $am__obj"
5446     case $depmode in
5447     gcc)
5448       # This depmode causes a compiler race in universal mode.
5449       test "$am__universal" = false || continue
5450       ;;
5451     nosideeffect)
5452       # after this tag, mechanisms are not by side-effect, so they'll
5453       # only be used when explicitly requested
5454       if test "x$enable_dependency_tracking" = xyes; then
5455         continue
5456       else
5457         break
5458       fi
5459       ;;
5460     msvisualcpp | msvcmsys)
5461       # This compiler won't grok `-c -o', but also, the minuso test has
5462       # not run yet.  These depmodes are late enough in the game, and
5463       # so weak that their functioning should not be impacted.
5464       am__obj=conftest.${OBJEXT-o}
5465       am__minus_obj=
5466       ;;
5467     none) break ;;
5468     esac
5469     if depmode=$depmode \
5470        source=sub/conftest.c object=$am__obj \
5471        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5472        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5473          >/dev/null 2>conftest.err &&
5474        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5475        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5476        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5477        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5478       # icc doesn't choke on unknown options, it will just issue warnings
5479       # or remarks (even with -Werror).  So we grep stderr for any message
5480       # that says an option was ignored or not supported.
5481       # When given -MP, icc 7.0 and 7.1 complain thusly:
5482       #   icc: Command line warning: ignoring option '-M'; no argument required
5483       # The diagnosis changed in icc 8.0:
5484       #   icc: Command line remark: option '-MP' not supported
5485       if (grep 'ignoring option' conftest.err ||
5486           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5487         am_cv_CC_dependencies_compiler_type=$depmode
5488         break
5489       fi
5490     fi
5491   done
5492
5493   cd ..
5494   rm -rf conftest.dir
5495 else
5496   am_cv_CC_dependencies_compiler_type=none
5497 fi
5498
5499 fi
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5501 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5502 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5503
5504  if
5505   test "x$enable_dependency_tracking" != xno \
5506   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5507   am__fastdepCC_TRUE=
5508   am__fastdepCC_FALSE='#'
5509 else
5510   am__fastdepCC_TRUE='#'
5511   am__fastdepCC_FALSE=
5512 fi
5513
5514
5515 if test -n "$ac_tool_prefix"; then
5516   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5517 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if ${ac_cv_prog_RANLIB+:} false; then :
5521   $as_echo_n "(cached) " >&6
5522 else
5523   if test -n "$RANLIB"; then
5524   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5525 else
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5528 do
5529   IFS=$as_save_IFS
5530   test -z "$as_dir" && as_dir=.
5531     for ac_exec_ext in '' $ac_executable_extensions; do
5532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535     break 2
5536   fi
5537 done
5538   done
5539 IFS=$as_save_IFS
5540
5541 fi
5542 fi
5543 RANLIB=$ac_cv_prog_RANLIB
5544 if test -n "$RANLIB"; then
5545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5546 $as_echo "$RANLIB" >&6; }
5547 else
5548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5550 fi
5551
5552
5553 fi
5554 if test -z "$ac_cv_prog_RANLIB"; then
5555   ac_ct_RANLIB=$RANLIB
5556   # Extract the first word of "ranlib", so it can be a program name with args.
5557 set dummy ranlib; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5561   $as_echo_n "(cached) " >&6
5562 else
5563   if test -n "$ac_ct_RANLIB"; then
5564   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5568 do
5569   IFS=$as_save_IFS
5570   test -z "$as_dir" && as_dir=.
5571     for ac_exec_ext in '' $ac_executable_extensions; do
5572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573     ac_cv_prog_ac_ct_RANLIB="ranlib"
5574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575     break 2
5576   fi
5577 done
5578   done
5579 IFS=$as_save_IFS
5580
5581 fi
5582 fi
5583 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5584 if test -n "$ac_ct_RANLIB"; then
5585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5586 $as_echo "$ac_ct_RANLIB" >&6; }
5587 else
5588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5590 fi
5591
5592   if test "x$ac_ct_RANLIB" = x; then
5593     RANLIB=":"
5594   else
5595     case $cross_compiling:$ac_tool_warned in
5596 yes:)
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5599 ac_tool_warned=yes ;;
5600 esac
5601     RANLIB=$ac_ct_RANLIB
5602   fi
5603 else
5604   RANLIB="$ac_cv_prog_RANLIB"
5605 fi
5606
5607 if test "x$CC" != xcc; then
5608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5609 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5610 else
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5612 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5613 fi
5614 set dummy $CC; ac_cc=`$as_echo "$2" |
5615                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5616 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5617   $as_echo_n "(cached) " >&6
5618 else
5619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h.  */
5621
5622 int
5623 main ()
5624 {
5625
5626   ;
5627   return 0;
5628 }
5629 _ACEOF
5630 # Make sure it works both with $CC and with simple cc.
5631 # We do the test twice because some compilers refuse to overwrite an
5632 # existing .o file with -o, though they will create one.
5633 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5634 rm -f conftest2.*
5635 if { { case "(($ac_try" in
5636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637   *) ac_try_echo=$ac_try;;
5638 esac
5639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5640 $as_echo "$ac_try_echo"; } >&5
5641   (eval "$ac_try") 2>&5
5642   ac_status=$?
5643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5644   test $ac_status = 0; } &&
5645    test -f conftest2.$ac_objext && { { case "(($ac_try" in
5646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647   *) ac_try_echo=$ac_try;;
5648 esac
5649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5650 $as_echo "$ac_try_echo"; } >&5
5651   (eval "$ac_try") 2>&5
5652   ac_status=$?
5653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5654   test $ac_status = 0; };
5655 then
5656   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5657   if test "x$CC" != xcc; then
5658     # Test first that cc exists at all.
5659     if { ac_try='cc -c conftest.$ac_ext >&5'
5660   { { case "(($ac_try" in
5661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662   *) ac_try_echo=$ac_try;;
5663 esac
5664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5665 $as_echo "$ac_try_echo"; } >&5
5666   (eval "$ac_try") 2>&5
5667   ac_status=$?
5668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5669   test $ac_status = 0; }; }; then
5670       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5671       rm -f conftest2.*
5672       if { { case "(($ac_try" in
5673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674   *) ac_try_echo=$ac_try;;
5675 esac
5676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5677 $as_echo "$ac_try_echo"; } >&5
5678   (eval "$ac_try") 2>&5
5679   ac_status=$?
5680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5681   test $ac_status = 0; } &&
5682          test -f conftest2.$ac_objext && { { case "(($ac_try" in
5683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684   *) ac_try_echo=$ac_try;;
5685 esac
5686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5687 $as_echo "$ac_try_echo"; } >&5
5688   (eval "$ac_try") 2>&5
5689   ac_status=$?
5690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5691   test $ac_status = 0; };
5692       then
5693         # cc works too.
5694         :
5695       else
5696         # cc exists but doesn't like -o.
5697         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5698       fi
5699     fi
5700   fi
5701 else
5702   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5703 fi
5704 rm -f core conftest*
5705
5706 fi
5707 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5709 $as_echo "yes" >&6; }
5710 else
5711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5713
5714 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5715
5716 fi
5717
5718 # FIXME: we rely on the cache variable name because
5719 # there is no other way.
5720 set dummy $CC
5721 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5722 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5723 if test "$am_t" != yes; then
5724    # Losing compiler, so override with the script.
5725    # FIXME: It is wrong to rewrite CC.
5726    # But if we don't then we get into trouble of one sort or another.
5727    # A longer-term fix would be to have automake use am__CC in this case,
5728    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5729    CC="$am_aux_dir/compile $CC"
5730 fi
5731
5732
5733
5734 ac_ext=c
5735 ac_cpp='$CPP $CPPFLAGS'
5736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5740 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5741 # On Suns, sometimes $CPP names a directory.
5742 if test -n "$CPP" && test -d "$CPP"; then
5743   CPP=
5744 fi
5745 if test -z "$CPP"; then
5746   if ${ac_cv_prog_CPP+:} false; then :
5747   $as_echo_n "(cached) " >&6
5748 else
5749       # Double quotes because CPP needs to be expanded
5750     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5751     do
5752       ac_preproc_ok=false
5753 for ac_c_preproc_warn_flag in '' yes
5754 do
5755   # Use a header file that comes with gcc, so configuring glibc
5756   # with a fresh cross-compiler works.
5757   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5758   # <limits.h> exists even on freestanding compilers.
5759   # On the NeXT, cc -E runs the code through the compiler's parser,
5760   # not just through cpp. "Syntax error" is here to catch this case.
5761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h.  */
5763 #ifdef __STDC__
5764 # include <limits.h>
5765 #else
5766 # include <assert.h>
5767 #endif
5768                      Syntax error
5769 _ACEOF
5770 if ac_fn_c_try_cpp "$LINENO"; then :
5771
5772 else
5773   # Broken: fails on valid input.
5774 continue
5775 fi
5776 rm -f conftest.err conftest.i conftest.$ac_ext
5777
5778   # OK, works on sane cases.  Now check whether nonexistent headers
5779   # can be detected and how.
5780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h.  */
5782 #include <ac_nonexistent.h>
5783 _ACEOF
5784 if ac_fn_c_try_cpp "$LINENO"; then :
5785   # Broken: success on invalid input.
5786 continue
5787 else
5788   # Passes both tests.
5789 ac_preproc_ok=:
5790 break
5791 fi
5792 rm -f conftest.err conftest.i conftest.$ac_ext
5793
5794 done
5795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5796 rm -f conftest.i conftest.err conftest.$ac_ext
5797 if $ac_preproc_ok; then :
5798   break
5799 fi
5800
5801     done
5802     ac_cv_prog_CPP=$CPP
5803
5804 fi
5805   CPP=$ac_cv_prog_CPP
5806 else
5807   ac_cv_prog_CPP=$CPP
5808 fi
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5810 $as_echo "$CPP" >&6; }
5811 ac_preproc_ok=false
5812 for ac_c_preproc_warn_flag in '' yes
5813 do
5814   # Use a header file that comes with gcc, so configuring glibc
5815   # with a fresh cross-compiler works.
5816   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5817   # <limits.h> exists even on freestanding compilers.
5818   # On the NeXT, cc -E runs the code through the compiler's parser,
5819   # not just through cpp. "Syntax error" is here to catch this case.
5820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h.  */
5822 #ifdef __STDC__
5823 # include <limits.h>
5824 #else
5825 # include <assert.h>
5826 #endif
5827                      Syntax error
5828 _ACEOF
5829 if ac_fn_c_try_cpp "$LINENO"; then :
5830
5831 else
5832   # Broken: fails on valid input.
5833 continue
5834 fi
5835 rm -f conftest.err conftest.i conftest.$ac_ext
5836
5837   # OK, works on sane cases.  Now check whether nonexistent headers
5838   # can be detected and how.
5839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h.  */
5841 #include <ac_nonexistent.h>
5842 _ACEOF
5843 if ac_fn_c_try_cpp "$LINENO"; then :
5844   # Broken: success on invalid input.
5845 continue
5846 else
5847   # Passes both tests.
5848 ac_preproc_ok=:
5849 break
5850 fi
5851 rm -f conftest.err conftest.i conftest.$ac_ext
5852
5853 done
5854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5855 rm -f conftest.i conftest.err conftest.$ac_ext
5856 if $ac_preproc_ok; then :
5857
5858 else
5859   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5861 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5862 See \`config.log' for more details" "$LINENO" 5; }
5863 fi
5864
5865 ac_ext=c
5866 ac_cpp='$CPP $CPPFLAGS'
5867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5870
5871
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5873 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5874 if ${ac_cv_path_GREP+:} false; then :
5875   $as_echo_n "(cached) " >&6
5876 else
5877   if test -z "$GREP"; then
5878   ac_path_GREP_found=false
5879   # Loop through the user's path and test for each of PROGNAME-LIST
5880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5882 do
5883   IFS=$as_save_IFS
5884   test -z "$as_dir" && as_dir=.
5885     for ac_prog in grep ggrep; do
5886     for ac_exec_ext in '' $ac_executable_extensions; do
5887       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5888       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5889 # Check for GNU ac_path_GREP and select it if it is found.
5890   # Check for GNU $ac_path_GREP
5891 case `"$ac_path_GREP" --version 2>&1` in
5892 *GNU*)
5893   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5894 *)
5895   ac_count=0
5896   $as_echo_n 0123456789 >"conftest.in"
5897   while :
5898   do
5899     cat "conftest.in" "conftest.in" >"conftest.tmp"
5900     mv "conftest.tmp" "conftest.in"
5901     cp "conftest.in" "conftest.nl"
5902     $as_echo 'GREP' >> "conftest.nl"
5903     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5904     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5905     as_fn_arith $ac_count + 1 && ac_count=$as_val
5906     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5907       # Best one so far, save it but keep looking for a better one
5908       ac_cv_path_GREP="$ac_path_GREP"
5909       ac_path_GREP_max=$ac_count
5910     fi
5911     # 10*(2^10) chars as input seems more than enough
5912     test $ac_count -gt 10 && break
5913   done
5914   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5915 esac
5916
5917       $ac_path_GREP_found && break 3
5918     done
5919   done
5920   done
5921 IFS=$as_save_IFS
5922   if test -z "$ac_cv_path_GREP"; then
5923     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5924   fi
5925 else
5926   ac_cv_path_GREP=$GREP
5927 fi
5928
5929 fi
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5931 $as_echo "$ac_cv_path_GREP" >&6; }
5932  GREP="$ac_cv_path_GREP"
5933
5934
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5936 $as_echo_n "checking for egrep... " >&6; }
5937 if ${ac_cv_path_EGREP+:} false; then :
5938   $as_echo_n "(cached) " >&6
5939 else
5940   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5941    then ac_cv_path_EGREP="$GREP -E"
5942    else
5943      if test -z "$EGREP"; then
5944   ac_path_EGREP_found=false
5945   # Loop through the user's path and test for each of PROGNAME-LIST
5946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5948 do
5949   IFS=$as_save_IFS
5950   test -z "$as_dir" && as_dir=.
5951     for ac_prog in egrep; do
5952     for ac_exec_ext in '' $ac_executable_extensions; do
5953       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5954       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5955 # Check for GNU ac_path_EGREP and select it if it is found.
5956   # Check for GNU $ac_path_EGREP
5957 case `"$ac_path_EGREP" --version 2>&1` in
5958 *GNU*)
5959   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5960 *)
5961   ac_count=0
5962   $as_echo_n 0123456789 >"conftest.in"
5963   while :
5964   do
5965     cat "conftest.in" "conftest.in" >"conftest.tmp"
5966     mv "conftest.tmp" "conftest.in"
5967     cp "conftest.in" "conftest.nl"
5968     $as_echo 'EGREP' >> "conftest.nl"
5969     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5970     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5971     as_fn_arith $ac_count + 1 && ac_count=$as_val
5972     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5973       # Best one so far, save it but keep looking for a better one
5974       ac_cv_path_EGREP="$ac_path_EGREP"
5975       ac_path_EGREP_max=$ac_count
5976     fi
5977     # 10*(2^10) chars as input seems more than enough
5978     test $ac_count -gt 10 && break
5979   done
5980   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5981 esac
5982
5983       $ac_path_EGREP_found && break 3
5984     done
5985   done
5986   done
5987 IFS=$as_save_IFS
5988   if test -z "$ac_cv_path_EGREP"; then
5989     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5990   fi
5991 else
5992   ac_cv_path_EGREP=$EGREP
5993 fi
5994
5995    fi
5996 fi
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5998 $as_echo "$ac_cv_path_EGREP" >&6; }
5999  EGREP="$ac_cv_path_EGREP"
6000
6001
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6003 $as_echo_n "checking for ANSI C header files... " >&6; }
6004 if ${ac_cv_header_stdc+:} false; then :
6005   $as_echo_n "(cached) " >&6
6006 else
6007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h.  */
6009 #include <stdlib.h>
6010 #include <stdarg.h>
6011 #include <string.h>
6012 #include <float.h>
6013
6014 int
6015 main ()
6016 {
6017
6018   ;
6019   return 0;
6020 }
6021 _ACEOF
6022 if ac_fn_c_try_compile "$LINENO"; then :
6023   ac_cv_header_stdc=yes
6024 else
6025   ac_cv_header_stdc=no
6026 fi
6027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028
6029 if test $ac_cv_header_stdc = yes; then
6030   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h.  */
6033 #include <string.h>
6034
6035 _ACEOF
6036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6037   $EGREP "memchr" >/dev/null 2>&1; then :
6038
6039 else
6040   ac_cv_header_stdc=no
6041 fi
6042 rm -f conftest*
6043
6044 fi
6045
6046 if test $ac_cv_header_stdc = yes; then
6047   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h.  */
6050 #include <stdlib.h>
6051
6052 _ACEOF
6053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6054   $EGREP "free" >/dev/null 2>&1; then :
6055
6056 else
6057   ac_cv_header_stdc=no
6058 fi
6059 rm -f conftest*
6060
6061 fi
6062
6063 if test $ac_cv_header_stdc = yes; then
6064   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6065   if test "$cross_compiling" = yes; then :
6066   :
6067 else
6068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h.  */
6070 #include <ctype.h>
6071 #include <stdlib.h>
6072 #if ((' ' & 0x0FF) == 0x020)
6073 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6074 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6075 #else
6076 # define ISLOWER(c) \
6077                    (('a' <= (c) && (c) <= 'i') \
6078                      || ('j' <= (c) && (c) <= 'r') \
6079                      || ('s' <= (c) && (c) <= 'z'))
6080 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6081 #endif
6082
6083 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6084 int
6085 main ()
6086 {
6087   int i;
6088   for (i = 0; i < 256; i++)
6089     if (XOR (islower (i), ISLOWER (i))
6090         || toupper (i) != TOUPPER (i))
6091       return 2;
6092   return 0;
6093 }
6094 _ACEOF
6095 if ac_fn_c_try_run "$LINENO"; then :
6096
6097 else
6098   ac_cv_header_stdc=no
6099 fi
6100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6101   conftest.$ac_objext conftest.beam conftest.$ac_ext
6102 fi
6103
6104 fi
6105 fi
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6107 $as_echo "$ac_cv_header_stdc" >&6; }
6108 if test $ac_cv_header_stdc = yes; then
6109
6110 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6111
6112 fi
6113
6114 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6115 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6116                   inttypes.h stdint.h unistd.h
6117 do :
6118   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6119 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6120 "
6121 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6122   cat >>confdefs.h <<_ACEOF
6123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6124 _ACEOF
6125
6126 fi
6127
6128 done
6129
6130
6131
6132
6133
6134   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6135 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6136   MINIX=yes
6137 else
6138   MINIX=
6139 fi
6140
6141
6142   if test "$MINIX" = yes; then
6143
6144 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6145
6146
6147 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6148
6149
6150 $as_echo "#define _MINIX 1" >>confdefs.h
6151
6152   fi
6153
6154         case "$host_os" in
6155     hpux*)
6156
6157 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6158
6159       ;;
6160   esac
6161
6162
6163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6164 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6165 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6166   $as_echo_n "(cached) " >&6
6167 else
6168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h.  */
6170
6171 #         define __EXTENSIONS__ 1
6172           $ac_includes_default
6173 int
6174 main ()
6175 {
6176
6177   ;
6178   return 0;
6179 }
6180 _ACEOF
6181 if ac_fn_c_try_compile "$LINENO"; then :
6182   ac_cv_safe_to_define___extensions__=yes
6183 else
6184   ac_cv_safe_to_define___extensions__=no
6185 fi
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 fi
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6189 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6190   test $ac_cv_safe_to_define___extensions__ = yes &&
6191     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6192
6193   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6194
6195   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6196
6197   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6198
6199   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6200
6201
6202
6203
6204
6205
6206
6207
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6209 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6210 if ${ac_cv_sys_largefile_source+:} false; then :
6211   $as_echo_n "(cached) " >&6
6212 else
6213   while :; do
6214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h.  */
6216 #include <sys/types.h> /* for off_t */
6217      #include <stdio.h>
6218 int
6219 main ()
6220 {
6221 int (*fp) (FILE *, off_t, int) = fseeko;
6222      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6223   ;
6224   return 0;
6225 }
6226 _ACEOF
6227 if ac_fn_c_try_link "$LINENO"; then :
6228   ac_cv_sys_largefile_source=no; break
6229 fi
6230 rm -f core conftest.err conftest.$ac_objext \
6231     conftest$ac_exeext conftest.$ac_ext
6232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h.  */
6234 #define _LARGEFILE_SOURCE 1
6235 #include <sys/types.h> /* for off_t */
6236      #include <stdio.h>
6237 int
6238 main ()
6239 {
6240 int (*fp) (FILE *, off_t, int) = fseeko;
6241      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6242   ;
6243   return 0;
6244 }
6245 _ACEOF
6246 if ac_fn_c_try_link "$LINENO"; then :
6247   ac_cv_sys_largefile_source=1; break
6248 fi
6249 rm -f core conftest.err conftest.$ac_objext \
6250     conftest$ac_exeext conftest.$ac_ext
6251   ac_cv_sys_largefile_source=unknown
6252   break
6253 done
6254 fi
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
6256 $as_echo "$ac_cv_sys_largefile_source" >&6; }
6257 case $ac_cv_sys_largefile_source in #(
6258   no | unknown) ;;
6259   *)
6260 cat >>confdefs.h <<_ACEOF
6261 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6262 _ACEOF
6263 ;;
6264 esac
6265 rm -rf conftest*
6266
6267 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6268 # in glibc 2.1.3, but that breaks too many other things.
6269 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6270 if test $ac_cv_sys_largefile_source != unknown; then
6271
6272 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
6273
6274 fi
6275
6276
6277
6278
6279
6280
6281   # Check whether --enable-threads was given.
6282 if test "${enable_threads+set}" = set; then :
6283   enableval=$enable_threads; gl_use_threads=$enableval
6284 else
6285   if test -n "$gl_use_threads_default"; then
6286        gl_use_threads="$gl_use_threads_default"
6287      else
6288        case "$host_os" in
6289                                                                osf*) gl_use_threads=no ;;
6290          cygwin*)
6291                case `uname -r` in
6292                  1.[0-5].*) gl_use_threads=no ;;
6293                  *)         gl_use_threads=yes ;;
6294                esac
6295                ;;
6296          *)    gl_use_threads=yes ;;
6297        esac
6298      fi
6299
6300 fi
6301
6302   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6303     # For using <pthread.h>:
6304     case "$host_os" in
6305       osf*)
6306         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6307         # groks <pthread.h>. cc also understands the flag -pthread, but
6308         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6309         # 2. putting a flag into CPPFLAGS that has an effect on the linker
6310         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6311         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6312         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6313         ;;
6314     esac
6315     # Some systems optimize for single-threaded programs by default, and
6316     # need special flags to disable these optimizations. For example, the
6317     # definition of 'errno' in <errno.h>.
6318     case "$host_os" in
6319       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6320       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6321     esac
6322   fi
6323
6324
6325
6326
6327   # Code from module alignof:
6328   # Code from module alloca-opt:
6329   # Code from module arg-nonnull:
6330   # Code from module arpa_inet:
6331   # Code from module base64:
6332   # Code from module btowc:
6333   # Code from module c++defs:
6334   # Code from module c-ctype:
6335   # Code from module configmake:
6336   # Code from module environ:
6337   # Code from module errno:
6338   # Code from module extensions:
6339
6340   # Code from module float:
6341   # Code from module fseeko:
6342
6343   # Code from module fsusage:
6344   # Code from module ftello:
6345
6346   # Code from module ftruncate:
6347   # Code from module full-read:
6348   # Code from module full-write:
6349   # Code from module getaddrinfo:
6350   # Code from module getopt-gnu:
6351   # Code from module getopt-posix:
6352   # Code from module gettext-h:
6353   # Code from module gettimeofday:
6354   # Code from module havelib:
6355   # Code from module hostent:
6356   # Code from module include_next:
6357   # Code from module inet_ntop:
6358   # Code from module inet_pton:
6359   # Code from module langinfo:
6360   # Code from module localcharset:
6361   # Code from module lock:
6362   # Code from module lseek:
6363   # Code from module lstat:
6364   # Code from module malloc-gnu:
6365   # Code from module malloc-posix:
6366   # Code from module mbrtowc:
6367   # Code from module mbsinit:
6368   # Code from module memchr:
6369   # Code from module mkdtemp:
6370   # Code from module multiarch:
6371   # Code from module netdb:
6372   # Code from module netinet_in:
6373   # Code from module nl_langinfo:
6374   # Code from module physmem:
6375   # Code from module regex:
6376   # Code from module safe-read:
6377   # Code from module safe-write:
6378   # Code from module servent:
6379   # Code from module size_max:
6380   # Code from module snprintf:
6381   # Code from module socklen:
6382   # Code from module ssize_t:
6383   # Code from module stat:
6384   # Code from module stdbool:
6385   # Code from module stddef:
6386   # Code from module stdint:
6387   # Code from module stdio:
6388   # Code from module stdlib:
6389   # Code from module streq:
6390   # Code from module string:
6391   # Code from module sys_socket:
6392   # Code from module sys_stat:
6393   # Code from module sys_time:
6394   # Code from module tempname:
6395   # Code from module threadlib:
6396
6397
6398
6399   # Code from module time:
6400   # Code from module unistd:
6401   # Code from module vasnprintf:
6402   # Code from module verify:
6403   # Code from module warn-on-use:
6404   # Code from module wchar:
6405   # Code from module wcrtomb:
6406   # Code from module wctype:
6407   # Code from module write:
6408   # Code from module xsize:
6409
6410
6411
6412
6413
6414           LIBC_FATAL_STDERR_=1
6415   export LIBC_FATAL_STDERR_
6416
6417 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6418 if test "x$ac_cv_type_size_t" = xyes; then :
6419
6420 else
6421
6422 cat >>confdefs.h <<_ACEOF
6423 #define size_t unsigned int
6424 _ACEOF
6425
6426 fi
6427
6428 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6429 # for constant arguments.  Useless!
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6431 $as_echo_n "checking for working alloca.h... " >&6; }
6432 if ${ac_cv_working_alloca_h+:} false; then :
6433   $as_echo_n "(cached) " >&6
6434 else
6435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h.  */
6437 #include <alloca.h>
6438 int
6439 main ()
6440 {
6441 char *p = (char *) alloca (2 * sizeof (int));
6442                           if (p) return 0;
6443   ;
6444   return 0;
6445 }
6446 _ACEOF
6447 if ac_fn_c_try_link "$LINENO"; then :
6448   ac_cv_working_alloca_h=yes
6449 else
6450   ac_cv_working_alloca_h=no
6451 fi
6452 rm -f core conftest.err conftest.$ac_objext \
6453     conftest$ac_exeext conftest.$ac_ext
6454 fi
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6456 $as_echo "$ac_cv_working_alloca_h" >&6; }
6457 if test $ac_cv_working_alloca_h = yes; then
6458
6459 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6460
6461 fi
6462
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6464 $as_echo_n "checking for alloca... " >&6; }
6465 if ${ac_cv_func_alloca_works+:} false; then :
6466   $as_echo_n "(cached) " >&6
6467 else
6468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h.  */
6470 #ifdef __GNUC__
6471 # define alloca __builtin_alloca
6472 #else
6473 # ifdef _MSC_VER
6474 #  include <malloc.h>
6475 #  define alloca _alloca
6476 # else
6477 #  ifdef HAVE_ALLOCA_H
6478 #   include <alloca.h>
6479 #  else
6480 #   ifdef _AIX
6481  #pragma alloca
6482 #   else
6483 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6484 void *alloca (size_t);
6485 #    endif
6486 #   endif
6487 #  endif
6488 # endif
6489 #endif
6490
6491 int
6492 main ()
6493 {
6494 char *p = (char *) alloca (1);
6495                                     if (p) return 0;
6496   ;
6497   return 0;
6498 }
6499 _ACEOF
6500 if ac_fn_c_try_link "$LINENO"; then :
6501   ac_cv_func_alloca_works=yes
6502 else
6503   ac_cv_func_alloca_works=no
6504 fi
6505 rm -f core conftest.err conftest.$ac_objext \
6506     conftest$ac_exeext conftest.$ac_ext
6507 fi
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6509 $as_echo "$ac_cv_func_alloca_works" >&6; }
6510
6511 if test $ac_cv_func_alloca_works = yes; then
6512
6513 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6514
6515 else
6516   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6517 # that cause trouble.  Some versions do not even contain alloca or
6518 # contain a buggy version.  If you still want to use their alloca,
6519 # use ar to extract alloca.o from them instead of compiling alloca.c.
6520
6521
6522
6523
6524
6525 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6526
6527 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6528
6529
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6531 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6532 if ${ac_cv_os_cray+:} false; then :
6533   $as_echo_n "(cached) " >&6
6534 else
6535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h.  */
6537 #if defined CRAY && ! defined CRAY2
6538 webecray
6539 #else
6540 wenotbecray
6541 #endif
6542
6543 _ACEOF
6544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6545   $EGREP "webecray" >/dev/null 2>&1; then :
6546   ac_cv_os_cray=yes
6547 else
6548   ac_cv_os_cray=no
6549 fi
6550 rm -f conftest*
6551
6552 fi
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6554 $as_echo "$ac_cv_os_cray" >&6; }
6555 if test $ac_cv_os_cray = yes; then
6556   for ac_func in _getb67 GETB67 getb67; do
6557     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6558 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6559 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6560
6561 cat >>confdefs.h <<_ACEOF
6562 #define CRAY_STACKSEG_END $ac_func
6563 _ACEOF
6564
6565     break
6566 fi
6567
6568   done
6569 fi
6570
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6572 $as_echo_n "checking stack direction for C alloca... " >&6; }
6573 if ${ac_cv_c_stack_direction+:} false; then :
6574   $as_echo_n "(cached) " >&6
6575 else
6576   if test "$cross_compiling" = yes; then :
6577   ac_cv_c_stack_direction=0
6578 else
6579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h.  */
6581 $ac_includes_default
6582 int
6583 find_stack_direction ()
6584 {
6585   static char *addr = 0;
6586   auto char dummy;
6587   if (addr == 0)
6588     {
6589       addr = &dummy;
6590       return find_stack_direction ();
6591     }
6592   else
6593     return (&dummy > addr) ? 1 : -1;
6594 }
6595
6596 int
6597 main ()
6598 {
6599   return find_stack_direction () < 0;
6600 }
6601 _ACEOF
6602 if ac_fn_c_try_run "$LINENO"; then :
6603   ac_cv_c_stack_direction=1
6604 else
6605   ac_cv_c_stack_direction=-1
6606 fi
6607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6608   conftest.$ac_objext conftest.beam conftest.$ac_ext
6609 fi
6610
6611 fi
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6613 $as_echo "$ac_cv_c_stack_direction" >&6; }
6614 cat >>confdefs.h <<_ACEOF
6615 #define STACK_DIRECTION $ac_cv_c_stack_direction
6616 _ACEOF
6617
6618
6619 fi
6620
6621
6622   GNULIB_INET_NTOP=0;
6623   GNULIB_INET_PTON=0;
6624     HAVE_DECL_INET_NTOP=1;
6625   HAVE_DECL_INET_PTON=1;
6626
6627
6628
6629
6630
6631   for ac_header in $gl_header_list
6632 do :
6633   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6634 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6635 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6636   cat >>confdefs.h <<_ACEOF
6637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6638 _ACEOF
6639
6640 fi
6641
6642 done
6643
6644
6645
6646
6647
6648
6649
6650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6651 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6652 if ${gl_cv_have_include_next+:} false; then :
6653   $as_echo_n "(cached) " >&6
6654 else
6655   rm -rf conftestd1a conftestd1b conftestd2
6656      mkdir conftestd1a conftestd1b conftestd2
6657                                                   cat <<EOF > conftestd1a/conftest.h
6658 #define DEFINED_IN_CONFTESTD1
6659 #include_next <conftest.h>
6660 #ifdef DEFINED_IN_CONFTESTD2
6661 int foo;
6662 #else
6663 #error "include_next doesn't work"
6664 #endif
6665 EOF
6666      cat <<EOF > conftestd1b/conftest.h
6667 #define DEFINED_IN_CONFTESTD1
6668 #include <stdio.h>
6669 #include_next <conftest.h>
6670 #ifdef DEFINED_IN_CONFTESTD2
6671 int foo;
6672 #else
6673 #error "include_next doesn't work"
6674 #endif
6675 EOF
6676      cat <<EOF > conftestd2/conftest.h
6677 #ifndef DEFINED_IN_CONFTESTD1
6678 #error "include_next test doesn't work"
6679 #endif
6680 #define DEFINED_IN_CONFTESTD2
6681 EOF
6682      gl_save_CPPFLAGS="$CPPFLAGS"
6683      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6684      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h.  */
6686 #include <conftest.h>
6687 _ACEOF
6688 if ac_fn_c_try_compile "$LINENO"; then :
6689   gl_cv_have_include_next=yes
6690 else
6691   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6692         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h.  */
6694 #include <conftest.h>
6695 _ACEOF
6696 if ac_fn_c_try_compile "$LINENO"; then :
6697   gl_cv_have_include_next=buggy
6698 else
6699   gl_cv_have_include_next=no
6700 fi
6701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702
6703 fi
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705      CPPFLAGS="$gl_save_CPPFLAGS"
6706      rm -rf conftestd1a conftestd1b conftestd2
6707
6708 fi
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6710 $as_echo "$gl_cv_have_include_next" >&6; }
6711   PRAGMA_SYSTEM_HEADER=
6712   if test $gl_cv_have_include_next = yes; then
6713     INCLUDE_NEXT=include_next
6714     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6715     if test -n "$GCC"; then
6716       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6717     fi
6718   else
6719     if test $gl_cv_have_include_next = buggy; then
6720       INCLUDE_NEXT=include
6721       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6722     else
6723       INCLUDE_NEXT=include
6724       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6725     fi
6726   fi
6727
6728
6729
6730
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6732 $as_echo_n "checking for inline... " >&6; }
6733 if ${ac_cv_c_inline+:} false; then :
6734   $as_echo_n "(cached) " >&6
6735 else
6736   ac_cv_c_inline=no
6737 for ac_kw in inline __inline__ __inline; do
6738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h.  */
6740 #ifndef __cplusplus
6741 typedef int foo_t;
6742 static $ac_kw foo_t static_foo () {return 0; }
6743 $ac_kw foo_t foo () {return 0; }
6744 #endif
6745
6746 _ACEOF
6747 if ac_fn_c_try_compile "$LINENO"; then :
6748   ac_cv_c_inline=$ac_kw
6749 fi
6750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751   test "$ac_cv_c_inline" != no && break
6752 done
6753
6754 fi
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6756 $as_echo "$ac_cv_c_inline" >&6; }
6757
6758 case $ac_cv_c_inline in
6759   inline | yes) ;;
6760   *)
6761     case $ac_cv_c_inline in
6762       no) ac_val=;;
6763       *) ac_val=$ac_cv_c_inline;;
6764     esac
6765     cat >>confdefs.h <<_ACEOF
6766 #ifndef __cplusplus
6767 #define inline $ac_val
6768 #endif
6769 _ACEOF
6770     ;;
6771 esac
6772
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6774 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6775 if ${ac_cv_c_restrict+:} false; then :
6776   $as_echo_n "(cached) " >&6
6777 else
6778   ac_cv_c_restrict=no
6779    # The order here caters to the fact that C++ does not require restrict.
6780    for ac_kw in __restrict __restrict__ _Restrict restrict; do
6781      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h.  */
6783 typedef int * int_ptr;
6784         int foo (int_ptr $ac_kw ip) {
6785         return ip[0];
6786        }
6787 int
6788 main ()
6789 {
6790 int s[1];
6791         int * $ac_kw t = s;
6792         t[0] = 0;
6793         return foo(t)
6794   ;
6795   return 0;
6796 }
6797 _ACEOF
6798 if ac_fn_c_try_compile "$LINENO"; then :
6799   ac_cv_c_restrict=$ac_kw
6800 fi
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802      test "$ac_cv_c_restrict" != no && break
6803    done
6804
6805 fi
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6807 $as_echo "$ac_cv_c_restrict" >&6; }
6808
6809  case $ac_cv_c_restrict in
6810    restrict) ;;
6811    no) $as_echo "#define restrict /**/" >>confdefs.h
6812  ;;
6813    *)  cat >>confdefs.h <<_ACEOF
6814 #define restrict $ac_cv_c_restrict
6815 _ACEOF
6816  ;;
6817  esac
6818
6819
6820   GNULIB_BTOWC=0;
6821   GNULIB_WCTOB=0;
6822   GNULIB_MBSINIT=0;
6823   GNULIB_MBRTOWC=0;
6824   GNULIB_MBRLEN=0;
6825   GNULIB_MBSRTOWCS=0;
6826   GNULIB_MBSNRTOWCS=0;
6827   GNULIB_WCRTOMB=0;
6828   GNULIB_WCSRTOMBS=0;
6829   GNULIB_WCSNRTOMBS=0;
6830   GNULIB_WCWIDTH=0;
6831     HAVE_BTOWC=1;
6832   HAVE_MBSINIT=1;
6833   HAVE_MBRTOWC=1;
6834   HAVE_MBRLEN=1;
6835   HAVE_MBSRTOWCS=1;
6836   HAVE_MBSNRTOWCS=1;
6837   HAVE_WCRTOMB=1;
6838   HAVE_WCSRTOMBS=1;
6839   HAVE_WCSNRTOMBS=1;
6840   HAVE_DECL_WCTOB=1;
6841   HAVE_DECL_WCWIDTH=1;
6842   REPLACE_MBSTATE_T=0;
6843   REPLACE_BTOWC=0;
6844   REPLACE_WCTOB=0;
6845   REPLACE_MBSINIT=0;
6846   REPLACE_MBRTOWC=0;
6847   REPLACE_MBRLEN=0;
6848   REPLACE_MBSRTOWCS=0;
6849   REPLACE_MBSNRTOWCS=0;
6850   REPLACE_WCRTOMB=0;
6851   REPLACE_WCSRTOMBS=0;
6852   REPLACE_WCSNRTOMBS=0;
6853   REPLACE_WCWIDTH=0;
6854
6855
6856             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
6857 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
6858 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
6859   $as_echo_n "(cached) " >&6
6860 else
6861   gl_cv_header_wchar_h_correct_inline=yes
6862      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h.  */
6864
6865        #define wcstod renamed_wcstod
6866 #include <wchar.h>
6867 extern int zero (void);
6868 int main () { return zero(); }
6869
6870 _ACEOF
6871      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6872   (eval $ac_compile) 2>&5
6873   ac_status=$?
6874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875   test $ac_status = 0; }; then
6876        mv conftest.$ac_objext conftest1.$ac_objext
6877        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h.  */
6879
6880          #define wcstod renamed_wcstod
6881 #include <wchar.h>
6882 int zero (void) { return 0; }
6883
6884 _ACEOF
6885        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6886   (eval $ac_compile) 2>&5
6887   ac_status=$?
6888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6889   test $ac_status = 0; }; then
6890          mv conftest.$ac_objext conftest2.$ac_objext
6891          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
6892            :
6893          else
6894            gl_cv_header_wchar_h_correct_inline=no
6895          fi
6896        fi
6897      fi
6898      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
6899
6900 fi
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
6902 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
6903   if test $gl_cv_header_wchar_h_correct_inline = no; then
6904     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
6905 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
6906 C99 mode. You have four options:
6907   - Add the flag -fgnu89-inline to CC and reconfigure, or
6908   - Fix your include files, using parts of
6909     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
6910   - Use a gcc version older than 4.3, or
6911   - Don't use the flags -std=c99 or -std=gnu99.
6912 Configuration aborted." "$LINENO" 5
6913   fi
6914
6915
6916
6917
6918
6919   for ac_func in $gl_func_list
6920 do :
6921   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6922 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6923 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6924   cat >>confdefs.h <<_ACEOF
6925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6926 _ACEOF
6927
6928 fi
6929 done
6930
6931
6932
6933
6934
6935
6936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6937 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6938 if ${am_cv_langinfo_codeset+:} false; then :
6939   $as_echo_n "(cached) " >&6
6940 else
6941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6942 /* end confdefs.h.  */
6943 #include <langinfo.h>
6944 int
6945 main ()
6946 {
6947 char* cs = nl_langinfo(CODESET);
6948   ;
6949   return 0;
6950 }
6951 _ACEOF
6952 if ac_fn_c_try_link "$LINENO"; then :
6953   am_cv_langinfo_codeset=yes
6954 else
6955   am_cv_langinfo_codeset=no
6956 fi
6957 rm -f core conftest.err conftest.$ac_objext \
6958     conftest$ac_exeext conftest.$ac_ext
6959
6960 fi
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6962 $as_echo "$am_cv_langinfo_codeset" >&6; }
6963   if test $am_cv_langinfo_codeset = yes; then
6964
6965 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6966
6967   fi
6968
6969
6970
6971
6972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
6973 $as_echo_n "checking for a traditional french locale... " >&6; }
6974 if ${gt_cv_locale_fr+:} false; then :
6975   $as_echo_n "(cached) " >&6
6976 else
6977
6978     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h.  */
6980
6981 #include <locale.h>
6982 #include <time.h>
6983 #if HAVE_LANGINFO_CODESET
6984 # include <langinfo.h>
6985 #endif
6986 #include <stdlib.h>
6987 #include <string.h>
6988 struct tm t;
6989 char buf[16];
6990 int main () {
6991   /* Check whether the given locale name is recognized by the system.  */
6992   if (setlocale (LC_ALL, "") == NULL) return 1;
6993   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
6994      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
6995      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
6996      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
6997      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
6998      some unit tests fail.  */
6999 #if HAVE_LANGINFO_CODESET
7000   {
7001     const char *cs = nl_langinfo (CODESET);
7002     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
7003       return 1;
7004   }
7005 #endif
7006 #ifdef __CYGWIN__
7007   /* On Cygwin, avoid locale names without encoding suffix, because the
7008      locale_charset() function relies on the encoding suffix.  Note that
7009      LC_ALL is set on the command line.  */
7010   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7011 #endif
7012   /* Check whether in the abbreviation of the second month, the second
7013      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7014      one byte long. This excludes the UTF-8 encoding.  */
7015   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7016   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7017   /* Check whether the decimal separator is a comma.
7018      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7019      are nl_langinfo(RADIXCHAR) are both ".".  */
7020   if (localeconv () ->decimal_point[0] != ',') return 1;
7021   return 0;
7022 }
7023
7024 _ACEOF
7025     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7026   (eval $ac_link) 2>&5
7027   ac_status=$?
7028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7029   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7030       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7031       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
7032       # configure script would override the LC_ALL setting. Likewise for
7033       # LC_CTYPE, which is also set at the beginning of the configure script.
7034       # Test for the usual locale name.
7035       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7036         gt_cv_locale_fr=fr_FR
7037       else
7038         # Test for the locale name with explicit encoding suffix.
7039         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7040           gt_cv_locale_fr=fr_FR.ISO-8859-1
7041         else
7042           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7043           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7044             gt_cv_locale_fr=fr_FR.ISO8859-1
7045           else
7046             # Test for the HP-UX locale name.
7047             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7048               gt_cv_locale_fr=fr_FR.iso88591
7049             else
7050               # Test for the Solaris 7 locale name.
7051               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7052                 gt_cv_locale_fr=fr
7053               else
7054                 # None found.
7055                 gt_cv_locale_fr=none
7056               fi
7057             fi
7058           fi
7059         fi
7060       fi
7061     fi
7062     rm -fr conftest*
7063
7064 fi
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
7066 $as_echo "$gt_cv_locale_fr" >&6; }
7067   LOCALE_FR=$gt_cv_locale_fr
7068
7069
7070
7071   GNULIB_CHOWN=0;
7072   GNULIB_CLOSE=0;
7073   GNULIB_DUP2=0;
7074   GNULIB_DUP3=0;
7075   GNULIB_ENVIRON=0;
7076   GNULIB_EUIDACCESS=0;
7077   GNULIB_FACCESSAT=0;
7078   GNULIB_FCHDIR=0;
7079   GNULIB_FCHOWNAT=0;
7080   GNULIB_FSYNC=0;
7081   GNULIB_FTRUNCATE=0;
7082   GNULIB_GETCWD=0;
7083   GNULIB_GETDOMAINNAME=0;
7084   GNULIB_GETDTABLESIZE=0;
7085   GNULIB_GETGROUPS=0;
7086   GNULIB_GETHOSTNAME=0;
7087   GNULIB_GETLOGIN=0;
7088   GNULIB_GETLOGIN_R=0;
7089   GNULIB_GETPAGESIZE=0;
7090   GNULIB_GETUSERSHELL=0;
7091   GNULIB_LCHOWN=0;
7092   GNULIB_LINK=0;
7093   GNULIB_LINKAT=0;
7094   GNULIB_LSEEK=0;
7095   GNULIB_PIPE2=0;
7096   GNULIB_PREAD=0;
7097   GNULIB_PWRITE=0;
7098   GNULIB_READLINK=0;
7099   GNULIB_READLINKAT=0;
7100   GNULIB_RMDIR=0;
7101   GNULIB_SLEEP=0;
7102   GNULIB_SYMLINK=0;
7103   GNULIB_SYMLINKAT=0;
7104   GNULIB_TTYNAME_R=0;
7105   GNULIB_UNISTD_H_GETOPT=0;
7106   GNULIB_UNISTD_H_SIGPIPE=0;
7107   GNULIB_UNLINK=0;
7108   GNULIB_UNLINKAT=0;
7109   GNULIB_USLEEP=0;
7110   GNULIB_WRITE=0;
7111     HAVE_CHOWN=1;
7112   HAVE_DUP2=1;
7113   HAVE_DUP3=1;
7114   HAVE_EUIDACCESS=1;
7115   HAVE_FACCESSAT=1;
7116   HAVE_FCHDIR=1;
7117   HAVE_FCHOWNAT=1;
7118   HAVE_FSYNC=1;
7119   HAVE_FTRUNCATE=1;
7120   HAVE_GETDOMAINNAME=1;
7121   HAVE_GETDTABLESIZE=1;
7122   HAVE_GETGROUPS=1;
7123   HAVE_GETHOSTNAME=1;
7124   HAVE_GETLOGIN=1;
7125   HAVE_GETPAGESIZE=1;
7126   HAVE_LCHOWN=1;
7127   HAVE_LINK=1;
7128   HAVE_LINKAT=1;
7129   HAVE_PIPE2=1;
7130   HAVE_PREAD=1;
7131   HAVE_PWRITE=1;
7132   HAVE_READLINK=1;
7133   HAVE_READLINKAT=1;
7134   HAVE_SLEEP=1;
7135   HAVE_SYMLINK=1;
7136   HAVE_SYMLINKAT=1;
7137   HAVE_TTYNAME_R=1;
7138   HAVE_UNLINKAT=1;
7139   HAVE_USLEEP=1;
7140   HAVE_DECL_ENVIRON=1;
7141   HAVE_DECL_GETLOGIN_R=1;
7142   HAVE_DECL_GETPAGESIZE=1;
7143   HAVE_DECL_GETUSERSHELL=1;
7144   HAVE_OS_H=0;
7145   HAVE_SYS_PARAM_H=0;
7146   REPLACE_CHOWN=0;
7147   REPLACE_CLOSE=0;
7148   REPLACE_DUP=0;
7149   REPLACE_DUP2=0;
7150   REPLACE_FCHOWNAT=0;
7151   REPLACE_GETCWD=0;
7152   REPLACE_GETGROUPS=0;
7153   REPLACE_GETPAGESIZE=0;
7154   REPLACE_LCHOWN=0;
7155   REPLACE_LINK=0;
7156   REPLACE_LINKAT=0;
7157   REPLACE_LSEEK=0;
7158   REPLACE_PREAD=0;
7159   REPLACE_PWRITE=0;
7160   REPLACE_READLINK=0;
7161   REPLACE_RMDIR=0;
7162   REPLACE_SLEEP=0;
7163   REPLACE_SYMLINK=0;
7164   REPLACE_TTYNAME_R=0;
7165   REPLACE_UNLINK=0;
7166   REPLACE_UNLINKAT=0;
7167   REPLACE_USLEEP=0;
7168   REPLACE_WRITE=0;
7169   UNISTD_H_HAVE_WINSOCK2_H=0;
7170   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
7171
7172
7173
7174
7175
7176
7177
7178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
7179 $as_echo_n "checking if environ is properly declared... " >&6; }
7180   if ${gt_cv_var_environ_declaration+:} false; then :
7181   $as_echo_n "(cached) " >&6
7182 else
7183
7184     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h.  */
7186 #include <unistd.h>
7187            extern struct { int foo; } environ;
7188 int
7189 main ()
7190 {
7191 environ.foo = 1;
7192   ;
7193   return 0;
7194 }
7195 _ACEOF
7196 if ac_fn_c_try_compile "$LINENO"; then :
7197   gt_cv_var_environ_declaration=no
7198 else
7199   gt_cv_var_environ_declaration=yes
7200 fi
7201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7202 fi
7203
7204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
7205 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7206   if test $gt_cv_var_environ_declaration = yes; then
7207
7208 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
7209
7210   fi
7211
7212
7213   if test $gt_cv_var_environ_declaration != yes; then
7214     HAVE_DECL_ENVIRON=0
7215   fi
7216
7217
7218
7219
7220
7221
7222
7223
7224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7225 $as_echo_n "checking for complete errno.h... " >&6; }
7226 if ${gl_cv_header_errno_h_complete+:} false; then :
7227   $as_echo_n "(cached) " >&6
7228 else
7229
7230     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h.  */
7232
7233 #include <errno.h>
7234 #if !defined ENOMSG
7235 booboo
7236 #endif
7237 #if !defined EIDRM
7238 booboo
7239 #endif
7240 #if !defined ENOLINK
7241 booboo
7242 #endif
7243 #if !defined EPROTO
7244 booboo
7245 #endif
7246 #if !defined EMULTIHOP
7247 booboo
7248 #endif
7249 #if !defined EBADMSG
7250 booboo
7251 #endif
7252 #if !defined EOVERFLOW
7253 booboo
7254 #endif
7255 #if !defined ENOTSUP
7256 booboo
7257 #endif
7258 #if !defined ESTALE
7259 booboo
7260 #endif
7261 #if !defined ECANCELED
7262 booboo
7263 #endif
7264
7265 _ACEOF
7266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7267   $EGREP "booboo" >/dev/null 2>&1; then :
7268   gl_cv_header_errno_h_complete=no
7269 else
7270   gl_cv_header_errno_h_complete=yes
7271 fi
7272 rm -f conftest*
7273
7274
7275 fi
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7277 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7278   if test $gl_cv_header_errno_h_complete = yes; then
7279     ERRNO_H=''
7280   else
7281
7282
7283
7284
7285   :
7286
7287
7288
7289
7290
7291
7292
7293      if test $gl_cv_have_include_next = yes; then
7294        gl_cv_next_errno_h='<'errno.h'>'
7295      else
7296        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7297 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7298 if ${gl_cv_next_errno_h+:} false; then :
7299   $as_echo_n "(cached) " >&6
7300 else
7301
7302           if test $ac_cv_header_errno_h = yes; then
7303             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h.  */
7305 #include <errno.h>
7306
7307 _ACEOF
7308                                                                                                 case "$host_os" in
7309               aix*) gl_absname_cpp="$ac_cpp -C" ;;
7310               *)    gl_absname_cpp="$ac_cpp" ;;
7311             esac
7312                                                 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7313                sed -n '\#/errno.h#{
7314                  s#.*"\(.*/errno.h\)".*#\1#
7315                  s#^/[^/]#//&#
7316                  p
7317                  q
7318                }'`'"'
7319           else
7320             gl_cv_next_errno_h='<'errno.h'>'
7321           fi
7322
7323 fi
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7325 $as_echo "$gl_cv_next_errno_h" >&6; }
7326      fi
7327      NEXT_ERRNO_H=$gl_cv_next_errno_h
7328
7329      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7330        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7331        gl_next_as_first_directive='<'errno.h'>'
7332      else
7333        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7334        gl_next_as_first_directive=$gl_cv_next_errno_h
7335      fi
7336      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7337
7338
7339
7340     ERRNO_H='errno.h'
7341   fi
7342
7343
7344   if test -n "$ERRNO_H"; then
7345     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7346 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7347 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
7348   $as_echo_n "(cached) " >&6
7349 else
7350
7351       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352 /* end confdefs.h.  */
7353
7354 #include <errno.h>
7355 #ifdef EMULTIHOP
7356 yes
7357 #endif
7358
7359 _ACEOF
7360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7361   $EGREP "yes" >/dev/null 2>&1; then :
7362   gl_cv_header_errno_h_EMULTIHOP=yes
7363 else
7364   gl_cv_header_errno_h_EMULTIHOP=no
7365 fi
7366 rm -f conftest*
7367
7368       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7369         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h.  */
7371
7372 #define _XOPEN_SOURCE_EXTENDED 1
7373 #include <errno.h>
7374 #ifdef EMULTIHOP
7375 yes
7376 #endif
7377
7378 _ACEOF
7379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7380   $EGREP "yes" >/dev/null 2>&1; then :
7381   gl_cv_header_errno_h_EMULTIHOP=hidden
7382 fi
7383 rm -f conftest*
7384
7385         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7386                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
7387 #define _XOPEN_SOURCE_EXTENDED 1
7388 #include <errno.h>
7389 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7390 #include <stdio.h>
7391 #include <stdlib.h>
7392 "; then :
7393
7394 fi
7395
7396         fi
7397       fi
7398
7399 fi
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7401 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7402     case $gl_cv_header_errno_h_EMULTIHOP in
7403       yes | no)
7404         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7405         ;;
7406       *)
7407         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7408         ;;
7409     esac
7410
7411
7412   fi
7413
7414
7415   if test -n "$ERRNO_H"; then
7416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7417 $as_echo_n "checking for ENOLINK value... " >&6; }
7418 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
7419   $as_echo_n "(cached) " >&6
7420 else
7421
7422       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h.  */
7424
7425 #include <errno.h>
7426 #ifdef ENOLINK
7427 yes
7428 #endif
7429
7430 _ACEOF
7431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7432   $EGREP "yes" >/dev/null 2>&1; then :
7433   gl_cv_header_errno_h_ENOLINK=yes
7434 else
7435   gl_cv_header_errno_h_ENOLINK=no
7436 fi
7437 rm -f conftest*
7438
7439       if test $gl_cv_header_errno_h_ENOLINK = no; then
7440         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h.  */
7442
7443 #define _XOPEN_SOURCE_EXTENDED 1
7444 #include <errno.h>
7445 #ifdef ENOLINK
7446 yes
7447 #endif
7448
7449 _ACEOF
7450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7451   $EGREP "yes" >/dev/null 2>&1; then :
7452   gl_cv_header_errno_h_ENOLINK=hidden
7453 fi
7454 rm -f conftest*
7455
7456         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7457                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
7458 #define _XOPEN_SOURCE_EXTENDED 1
7459 #include <errno.h>
7460 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7461 #include <stdio.h>
7462 #include <stdlib.h>
7463 "; then :
7464
7465 fi
7466
7467         fi
7468       fi
7469
7470 fi
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7472 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7473     case $gl_cv_header_errno_h_ENOLINK in
7474       yes | no)
7475         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7476         ;;
7477       *)
7478         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7479         ;;
7480     esac
7481
7482
7483   fi
7484
7485
7486   if test -n "$ERRNO_H"; then
7487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7488 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7489 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
7490   $as_echo_n "(cached) " >&6
7491 else
7492
7493       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h.  */
7495
7496 #include <errno.h>
7497 #ifdef EOVERFLOW
7498 yes
7499 #endif
7500
7501 _ACEOF
7502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7503   $EGREP "yes" >/dev/null 2>&1; then :
7504   gl_cv_header_errno_h_EOVERFLOW=yes
7505 else
7506   gl_cv_header_errno_h_EOVERFLOW=no
7507 fi
7508 rm -f conftest*
7509
7510       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7511         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h.  */
7513
7514 #define _XOPEN_SOURCE_EXTENDED 1
7515 #include <errno.h>
7516 #ifdef EOVERFLOW
7517 yes
7518 #endif
7519
7520 _ACEOF
7521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7522   $EGREP "yes" >/dev/null 2>&1; then :
7523   gl_cv_header_errno_h_EOVERFLOW=hidden
7524 fi
7525 rm -f conftest*
7526
7527         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7528                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
7529 #define _XOPEN_SOURCE_EXTENDED 1
7530 #include <errno.h>
7531 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7532 #include <stdio.h>
7533 #include <stdlib.h>
7534 "; then :
7535
7536 fi
7537
7538         fi
7539       fi
7540
7541 fi
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7543 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7544     case $gl_cv_header_errno_h_EOVERFLOW in
7545       yes | no)
7546         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7547         ;;
7548       *)
7549         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7550         ;;
7551     esac
7552
7553
7554   fi
7555
7556
7557
7558
7559
7560
7561
7562
7563   GNULIB_DPRINTF=0;
7564   GNULIB_FCLOSE=0;
7565   GNULIB_FFLUSH=0;
7566   GNULIB_FOPEN=0;
7567   GNULIB_FPRINTF=0;
7568   GNULIB_FPRINTF_POSIX=0;
7569   GNULIB_FPURGE=0;
7570   GNULIB_FPUTC=0;
7571   GNULIB_FPUTS=0;
7572   GNULIB_FREOPEN=0;
7573   GNULIB_FSEEK=0;
7574   GNULIB_FSEEKO=0;
7575   GNULIB_FTELL=0;
7576   GNULIB_FTELLO=0;
7577   GNULIB_FWRITE=0;
7578   GNULIB_GETDELIM=0;
7579   GNULIB_GETLINE=0;
7580   GNULIB_OBSTACK_PRINTF=0;
7581   GNULIB_OBSTACK_PRINTF_POSIX=0;
7582   GNULIB_PERROR=0;
7583   GNULIB_POPEN=0;
7584   GNULIB_PRINTF=0;
7585   GNULIB_PRINTF_POSIX=0;
7586   GNULIB_PUTC=0;
7587   GNULIB_PUTCHAR=0;
7588   GNULIB_PUTS=0;
7589   GNULIB_REMOVE=0;
7590   GNULIB_RENAME=0;
7591   GNULIB_RENAMEAT=0;
7592   GNULIB_SNPRINTF=0;
7593   GNULIB_SPRINTF_POSIX=0;
7594   GNULIB_STDIO_H_SIGPIPE=0;
7595   GNULIB_TMPFILE=0;
7596   GNULIB_VASPRINTF=0;
7597   GNULIB_VDPRINTF=0;
7598   GNULIB_VFPRINTF=0;
7599   GNULIB_VFPRINTF_POSIX=0;
7600   GNULIB_VPRINTF=0;
7601   GNULIB_VPRINTF_POSIX=0;
7602   GNULIB_VSNPRINTF=0;
7603   GNULIB_VSPRINTF_POSIX=0;
7604     HAVE_DECL_FPURGE=1;
7605   HAVE_DECL_GETDELIM=1;
7606   HAVE_DECL_GETLINE=1;
7607   HAVE_DECL_OBSTACK_PRINTF=1;
7608   HAVE_DECL_SNPRINTF=1;
7609   HAVE_DECL_VSNPRINTF=1;
7610   HAVE_DPRINTF=1;
7611   HAVE_FSEEKO=1;
7612   HAVE_FTELLO=1;
7613   HAVE_RENAMEAT=1;
7614   HAVE_VASPRINTF=1;
7615   HAVE_VDPRINTF=1;
7616   REPLACE_DPRINTF=0;
7617   REPLACE_FCLOSE=0;
7618   REPLACE_FFLUSH=0;
7619   REPLACE_FOPEN=0;
7620   REPLACE_FPRINTF=0;
7621   REPLACE_FPURGE=0;
7622   REPLACE_FREOPEN=0;
7623   REPLACE_FSEEK=0;
7624   REPLACE_FSEEKO=0;
7625   REPLACE_FTELL=0;
7626   REPLACE_FTELLO=0;
7627   REPLACE_GETDELIM=0;
7628   REPLACE_GETLINE=0;
7629   REPLACE_OBSTACK_PRINTF=0;
7630   REPLACE_PERROR=0;
7631   REPLACE_POPEN=0;
7632   REPLACE_PRINTF=0;
7633   REPLACE_REMOVE=0;
7634   REPLACE_RENAME=0;
7635   REPLACE_RENAMEAT=0;
7636   REPLACE_SNPRINTF=0;
7637   REPLACE_SPRINTF=0;
7638   REPLACE_STDIO_WRITE_FUNCS=0;
7639   REPLACE_TMPFILE=0;
7640   REPLACE_VASPRINTF=0;
7641   REPLACE_VDPRINTF=0;
7642   REPLACE_VFPRINTF=0;
7643   REPLACE_VPRINTF=0;
7644   REPLACE_VSNPRINTF=0;
7645   REPLACE_VSPRINTF=0;
7646
7647
7648
7649
7650
7651
7652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
7653 $as_echo_n "checking for fseeko... " >&6; }
7654 if ${gl_cv_func_fseeko+:} false; then :
7655   $as_echo_n "(cached) " >&6
7656 else
7657
7658       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h.  */
7660 #include <stdio.h>
7661
7662 int
7663 main ()
7664 {
7665 fseeko (stdin, 0, 0);
7666   ;
7667   return 0;
7668 }
7669 _ACEOF
7670 if ac_fn_c_try_link "$LINENO"; then :
7671   gl_cv_func_fseeko=yes
7672 else
7673   gl_cv_func_fseeko=no
7674 fi
7675 rm -f core conftest.err conftest.$ac_objext \
7676     conftest$ac_exeext conftest.$ac_ext
7677
7678 fi
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
7680 $as_echo "$gl_cv_func_fseeko" >&6; }
7681
7682
7683     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
7684 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
7685 if ${gl_cv_var_stdin_large_offset+:} false; then :
7686   $as_echo_n "(cached) " >&6
7687 else
7688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h.  */
7690 #include <stdio.h>
7691 int
7692 main ()
7693 {
7694 #if defined __SL64 && defined __SCLE /* cygwin */
7695   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
7696      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
7697      it is easier to do a version check than building a runtime test.  */
7698 # include <cygwin/version.h>
7699 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
7700   choke me
7701 # endif
7702 #endif
7703   ;
7704   return 0;
7705 }
7706 _ACEOF
7707 if ac_fn_c_try_link "$LINENO"; then :
7708   gl_cv_var_stdin_large_offset=yes
7709 else
7710   gl_cv_var_stdin_large_offset=no
7711 fi
7712 rm -f core conftest.err conftest.$ac_objext \
7713     conftest$ac_exeext conftest.$ac_ext
7714 fi
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
7716 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739   GNULIB_SOCKET=0;
7740   GNULIB_CONNECT=0;
7741   GNULIB_ACCEPT=0;
7742   GNULIB_BIND=0;
7743   GNULIB_GETPEERNAME=0;
7744   GNULIB_GETSOCKNAME=0;
7745   GNULIB_GETSOCKOPT=0;
7746   GNULIB_LISTEN=0;
7747   GNULIB_RECV=0;
7748   GNULIB_SEND=0;
7749   GNULIB_RECVFROM=0;
7750   GNULIB_SENDTO=0;
7751   GNULIB_SETSOCKOPT=0;
7752   GNULIB_SHUTDOWN=0;
7753   GNULIB_ACCEPT4=0;
7754   HAVE_STRUCT_SOCKADDR_STORAGE=1;
7755   HAVE_SA_FAMILY_T=1;
7756   HAVE_ACCEPT4=1;
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
7768 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
7769 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
7770   $as_echo_n "(cached) " >&6
7771 else
7772
7773       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h.  */
7775 #include <sys/socket.h>
7776 int
7777 main ()
7778 {
7779
7780   ;
7781   return 0;
7782 }
7783 _ACEOF
7784 if ac_fn_c_try_compile "$LINENO"; then :
7785   gl_cv_header_sys_socket_h_selfcontained=yes
7786 else
7787   gl_cv_header_sys_socket_h_selfcontained=no
7788 fi
7789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790
7791 fi
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
7793 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
7794   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
7795             for ac_func in shutdown
7796 do :
7797   ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
7798 if test "x$ac_cv_func_shutdown" = xyes; then :
7799   cat >>confdefs.h <<_ACEOF
7800 #define HAVE_SHUTDOWN 1
7801 _ACEOF
7802
7803 fi
7804 done
7805
7806     if test $ac_cv_func_shutdown = yes; then
7807       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
7808 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
7809 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
7810   $as_echo_n "(cached) " >&6
7811 else
7812
7813           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h.  */
7815 #include <sys/socket.h>
7816 int
7817 main ()
7818 {
7819 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
7820   ;
7821   return 0;
7822 }
7823 _ACEOF
7824 if ac_fn_c_try_compile "$LINENO"; then :
7825   gl_cv_header_sys_socket_h_shut=yes
7826 else
7827   gl_cv_header_sys_socket_h_shut=no
7828 fi
7829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7830
7831 fi
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
7833 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
7834       if test $gl_cv_header_sys_socket_h_shut = no; then
7835         SYS_SOCKET_H='sys/socket.h'
7836       fi
7837     fi
7838   fi
7839   # We need to check for ws2tcpip.h now.
7840
7841
7842
7843
7844
7845   :
7846
7847
7848
7849
7850
7851
7852
7853      if test $gl_cv_have_include_next = yes; then
7854        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
7855      else
7856        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
7857 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
7858 if ${gl_cv_next_sys_socket_h+:} false; then :
7859   $as_echo_n "(cached) " >&6
7860 else
7861
7862           if test $ac_cv_header_sys_socket_h = yes; then
7863             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864 /* end confdefs.h.  */
7865 #include <sys/socket.h>
7866
7867 _ACEOF
7868                                                                                                 case "$host_os" in
7869               aix*) gl_absname_cpp="$ac_cpp -C" ;;
7870               *)    gl_absname_cpp="$ac_cpp" ;;
7871             esac
7872                                                 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7873                sed -n '\#/sys/socket.h#{
7874                  s#.*"\(.*/sys/socket.h\)".*#\1#
7875                  s#^/[^/]#//&#
7876                  p
7877                  q
7878                }'`'"'
7879           else
7880             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
7881           fi
7882
7883 fi
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
7885 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
7886      fi
7887      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
7888
7889      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7890        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7891        gl_next_as_first_directive='<'sys/socket.h'>'
7892      else
7893        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7894        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
7895      fi
7896      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
7897
7898
7899
7900   if test $ac_cv_header_sys_socket_h = yes; then
7901     HAVE_SYS_SOCKET_H=1
7902     HAVE_WS2TCPIP_H=0
7903   else
7904     HAVE_SYS_SOCKET_H=0
7905                     for ac_header in ws2tcpip.h
7906 do :
7907   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
7908 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
7909   cat >>confdefs.h <<_ACEOF
7910 #define HAVE_WS2TCPIP_H 1
7911 _ACEOF
7912
7913 fi
7914
7915 done
7916
7917     if test $ac_cv_header_ws2tcpip_h = yes; then
7918       HAVE_WS2TCPIP_H=1
7919     else
7920       HAVE_WS2TCPIP_H=0
7921     fi
7922   fi
7923
7924
7925
7926   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7927   /* sys/types.h is not needed according to POSIX, but the
7928      sys/socket.h in i386-unknown-freebsd4.10 and
7929      powerpc-apple-darwin5.5 required it. */
7930 #include <sys/types.h>
7931 #ifdef HAVE_SYS_SOCKET_H
7932 #include <sys/socket.h>
7933 #endif
7934 #ifdef HAVE_WS2TCPIP_H
7935 #include <ws2tcpip.h>
7936 #endif
7937
7938 "
7939 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7940
7941 cat >>confdefs.h <<_ACEOF
7942 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
7943 _ACEOF
7944
7945
7946 fi
7947 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
7948   /* sys/types.h is not needed according to POSIX, but the
7949      sys/socket.h in i386-unknown-freebsd4.10 and
7950      powerpc-apple-darwin5.5 required it. */
7951 #include <sys/types.h>
7952 #ifdef HAVE_SYS_SOCKET_H
7953 #include <sys/socket.h>
7954 #endif
7955 #ifdef HAVE_WS2TCPIP_H
7956 #include <ws2tcpip.h>
7957 #endif
7958
7959 "
7960 if test "x$ac_cv_type_sa_family_t" = xyes; then :
7961
7962 cat >>confdefs.h <<_ACEOF
7963 #define HAVE_SA_FAMILY_T 1
7964 _ACEOF
7965
7966
7967 fi
7968
7969   if test $ac_cv_type_struct_sockaddr_storage = no; then
7970     HAVE_STRUCT_SOCKADDR_STORAGE=0
7971   fi
7972   if test $ac_cv_type_sa_family_t = no; then
7973     HAVE_SA_FAMILY_T=0
7974   fi
7975
7976
7977
7978
7979   :
7980
7981
7982
7983
7984
7985   if test $ac_cv_header_sys_socket_h != yes; then
7986                     for ac_header in winsock2.h
7987 do :
7988   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
7989 if test "x$ac_cv_header_winsock2_h" = xyes; then :
7990   cat >>confdefs.h <<_ACEOF
7991 #define HAVE_WINSOCK2_H 1
7992 _ACEOF
7993
7994 fi
7995
7996 done
7997
7998   fi
7999   if test "$ac_cv_header_winsock2_h" = yes; then
8000     HAVE_WINSOCK2_H=1
8001     UNISTD_H_HAVE_WINSOCK2_H=1
8002     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
8003   else
8004     HAVE_WINSOCK2_H=0
8005   fi
8006
8007
8008
8009
8010     for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
8011     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8013 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8014 if eval \${$as_gl_Symbol+:} false; then :
8015   $as_echo_n "(cached) " >&6
8016 else
8017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h.  */
8019
8020 /* Some systems require prerequisite headers.  */
8021 #include <sys/types.h>
8022 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
8023 # include <sys/time.h>
8024 #endif
8025 #include <sys/select.h>
8026
8027 int
8028 main ()
8029 {
8030 #undef $gl_func
8031   (void) $gl_func;
8032   ;
8033   return 0;
8034 }
8035 _ACEOF
8036 if ac_fn_c_try_compile "$LINENO"; then :
8037   eval "$as_gl_Symbol=yes"
8038 else
8039   eval "$as_gl_Symbol=no"
8040 fi
8041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8042 fi
8043 eval ac_res=\$$as_gl_Symbol
8044                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8045 $as_echo "$ac_res" >&6; }
8046      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
8047   cat >>confdefs.h <<_ACEOF
8048 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8049 _ACEOF
8050
8051                      eval ac_cv_have_decl_$gl_func=yes
8052 fi
8053       done
8054
8055
8056
8057   GNULIB_GETADDRINFO=0;
8058     HAVE_STRUCT_ADDRINFO=1;
8059   HAVE_DECL_FREEADDRINFO=1;
8060   HAVE_DECL_GAI_STRERROR=1;
8061   HAVE_DECL_GETADDRINFO=1;
8062   HAVE_DECL_GETNAMEINFO=1;
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072   :
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082   :
8083
8084
8085
8086
8087
8088
8089
8090      if test $gl_cv_have_include_next = yes; then
8091        gl_cv_next_netdb_h='<'netdb.h'>'
8092      else
8093        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
8094 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
8095 if ${gl_cv_next_netdb_h+:} false; then :
8096   $as_echo_n "(cached) " >&6
8097 else
8098
8099           if test $ac_cv_header_netdb_h = yes; then
8100             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h.  */
8102 #include <netdb.h>
8103
8104 _ACEOF
8105                                                                                                 case "$host_os" in
8106               aix*) gl_absname_cpp="$ac_cpp -C" ;;
8107               *)    gl_absname_cpp="$ac_cpp" ;;
8108             esac
8109                                                 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8110                sed -n '\#/netdb.h#{
8111                  s#.*"\(.*/netdb.h\)".*#\1#
8112                  s#^/[^/]#//&#
8113                  p
8114                  q
8115                }'`'"'
8116           else
8117             gl_cv_next_netdb_h='<'netdb.h'>'
8118           fi
8119
8120 fi
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
8122 $as_echo "$gl_cv_next_netdb_h" >&6; }
8123      fi
8124      NEXT_NETDB_H=$gl_cv_next_netdb_h
8125
8126      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8127        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8128        gl_next_as_first_directive='<'netdb.h'>'
8129      else
8130        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8131        gl_next_as_first_directive=$gl_cv_next_netdb_h
8132      fi
8133      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
8134
8135
8136
8137   if test $ac_cv_header_netdb_h = yes; then
8138     HAVE_NETDB_H=1
8139   else
8140     HAVE_NETDB_H=0
8141   fi
8142
8143
8144
8145     for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
8146     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8148 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8149 if eval \${$as_gl_Symbol+:} false; then :
8150   $as_echo_n "(cached) " >&6
8151 else
8152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h.  */
8154 #include <netdb.h>
8155 int
8156 main ()
8157 {
8158 #undef $gl_func
8159   (void) $gl_func;
8160   ;
8161   return 0;
8162 }
8163 _ACEOF
8164 if ac_fn_c_try_compile "$LINENO"; then :
8165   eval "$as_gl_Symbol=yes"
8166 else
8167   eval "$as_gl_Symbol=no"
8168 fi
8169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8170 fi
8171 eval ac_res=\$$as_gl_Symbol
8172                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8173 $as_echo "$ac_res" >&6; }
8174      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
8175   cat >>confdefs.h <<_ACEOF
8176 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8177 _ACEOF
8178
8179                      eval ac_cv_have_decl_$gl_func=yes
8180 fi
8181       done
8182
8183
8184
8185                   HOSTENT_LIB=
8186   gl_saved_libs="$LIBS"
8187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8188 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8189 if ${ac_cv_search_gethostbyname+:} false; then :
8190   $as_echo_n "(cached) " >&6
8191 else
8192   ac_func_search_save_LIBS=$LIBS
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h.  */
8195
8196 /* Override any GCC internal prototype to avoid an error.
8197    Use char because int might match the return type of a GCC
8198    builtin and then its argument prototype would still apply.  */
8199 #ifdef __cplusplus
8200 extern "C"
8201 #endif
8202 char gethostbyname ();
8203 int
8204 main ()
8205 {
8206 return gethostbyname ();
8207   ;
8208   return 0;
8209 }
8210 _ACEOF
8211 for ac_lib in '' nsl network net; do
8212   if test -z "$ac_lib"; then
8213     ac_res="none required"
8214   else
8215     ac_res=-l$ac_lib
8216     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8217   fi
8218   if ac_fn_c_try_link "$LINENO"; then :
8219   ac_cv_search_gethostbyname=$ac_res
8220 fi
8221 rm -f core conftest.err conftest.$ac_objext \
8222     conftest$ac_exeext
8223   if ${ac_cv_search_gethostbyname+:} false; then :
8224   break
8225 fi
8226 done
8227 if ${ac_cv_search_gethostbyname+:} false; then :
8228
8229 else
8230   ac_cv_search_gethostbyname=no
8231 fi
8232 rm conftest.$ac_ext
8233 LIBS=$ac_func_search_save_LIBS
8234 fi
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8236 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8237 ac_res=$ac_cv_search_gethostbyname
8238 if test "$ac_res" != no; then :
8239   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8240   if test "$ac_cv_search_gethostbyname" != "none required"; then
8241        HOSTENT_LIB="$ac_cv_search_gethostbyname"
8242      fi
8243 fi
8244
8245   LIBS="$gl_saved_libs"
8246   if test -z "$HOSTENT_LIB"; then
8247     for ac_func in gethostbyname
8248 do :
8249   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8250 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8251   cat >>confdefs.h <<_ACEOF
8252 #define HAVE_GETHOSTBYNAME 1
8253 _ACEOF
8254
8255 else
8256
8257       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
8258 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
8259 if ${gl_cv_w32_gethostbyname+:} false; then :
8260   $as_echo_n "(cached) " >&6
8261 else
8262   gl_cv_w32_gethostbyname=no
8263          gl_save_LIBS="$LIBS"
8264          LIBS="$LIBS -lws2_32"
8265          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h.  */
8267
8268 #ifdef HAVE_WINSOCK2_H
8269 #include <winsock2.h>
8270 #endif
8271 #include <stddef.h>
8272
8273 int
8274 main ()
8275 {
8276 gethostbyname(NULL);
8277   ;
8278   return 0;
8279 }
8280 _ACEOF
8281 if ac_fn_c_try_link "$LINENO"; then :
8282   gl_cv_w32_gethostbyname=yes
8283 fi
8284 rm -f core conftest.err conftest.$ac_objext \
8285     conftest$ac_exeext conftest.$ac_ext
8286          LIBS="$gl_save_LIBS"
8287
8288 fi
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
8290 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
8291       if test "$gl_cv_w32_gethostbyname" = "yes"; then
8292         HOSTENT_LIB="-lws2_32"
8293       fi
8294
8295 fi
8296 done
8297
8298   fi
8299
8300
8301
8302                       SERVENT_LIB=
8303   gl_saved_libs="$LIBS"
8304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
8305 $as_echo_n "checking for library containing getservbyname... " >&6; }
8306 if ${ac_cv_search_getservbyname+:} false; then :
8307   $as_echo_n "(cached) " >&6
8308 else
8309   ac_func_search_save_LIBS=$LIBS
8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h.  */
8312
8313 /* Override any GCC internal prototype to avoid an error.
8314    Use char because int might match the return type of a GCC
8315    builtin and then its argument prototype would still apply.  */
8316 #ifdef __cplusplus
8317 extern "C"
8318 #endif
8319 char getservbyname ();
8320 int
8321 main ()
8322 {
8323 return getservbyname ();
8324   ;
8325   return 0;
8326 }
8327 _ACEOF
8328 for ac_lib in '' socket network net; do
8329   if test -z "$ac_lib"; then
8330     ac_res="none required"
8331   else
8332     ac_res=-l$ac_lib
8333     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8334   fi
8335   if ac_fn_c_try_link "$LINENO"; then :
8336   ac_cv_search_getservbyname=$ac_res
8337 fi
8338 rm -f core conftest.err conftest.$ac_objext \
8339     conftest$ac_exeext
8340   if ${ac_cv_search_getservbyname+:} false; then :
8341   break
8342 fi
8343 done
8344 if ${ac_cv_search_getservbyname+:} false; then :
8345
8346 else
8347   ac_cv_search_getservbyname=no
8348 fi
8349 rm conftest.$ac_ext
8350 LIBS=$ac_func_search_save_LIBS
8351 fi
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
8353 $as_echo "$ac_cv_search_getservbyname" >&6; }
8354 ac_res=$ac_cv_search_getservbyname
8355 if test "$ac_res" != no; then :
8356   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8357   if test "$ac_cv_search_getservbyname" != "none required"; then
8358        SERVENT_LIB="$ac_cv_search_getservbyname"
8359      fi
8360 fi
8361
8362   LIBS="$gl_saved_libs"
8363   if test -z "$SERVENT_LIB"; then
8364     for ac_func in getservbyname
8365 do :
8366   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
8367 if test "x$ac_cv_func_getservbyname" = xyes; then :
8368   cat >>confdefs.h <<_ACEOF
8369 #define HAVE_GETSERVBYNAME 1
8370 _ACEOF
8371
8372 else
8373
8374       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
8375 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
8376 if ${gl_cv_w32_getservbyname+:} false; then :
8377   $as_echo_n "(cached) " >&6
8378 else
8379   gl_cv_w32_getservbyname=no
8380          gl_save_LIBS="$LIBS"
8381          LIBS="$LIBS -lws2_32"
8382          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h.  */
8384
8385 #ifdef HAVE_WINSOCK2_H
8386 #include <winsock2.h>
8387 #endif
8388 #include <stddef.h>
8389
8390 int
8391 main ()
8392 {
8393 getservbyname(NULL,NULL);
8394   ;
8395   return 0;
8396 }
8397 _ACEOF
8398 if ac_fn_c_try_link "$LINENO"; then :
8399   gl_cv_w32_getservbyname=yes
8400 fi
8401 rm -f core conftest.err conftest.$ac_objext \
8402     conftest$ac_exeext conftest.$ac_ext
8403          LIBS="$gl_save_LIBS"
8404
8405 fi
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
8407 $as_echo "$gl_cv_w32_getservbyname" >&6; }
8408       if test "$gl_cv_w32_getservbyname" = "yes"; then
8409         SERVENT_LIB="-lws2_32"
8410       fi
8411
8412 fi
8413 done
8414
8415   fi
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426   :
8427
8428
8429
8430
8431
8432
8433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
8434 $as_echo_n "checking for IPv4 sockets... " >&6; }
8435   if ${gl_cv_socket_ipv4+:} false; then :
8436   $as_echo_n "(cached) " >&6
8437 else
8438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h.  */
8440 #include <sys/types.h>
8441 #ifdef HAVE_SYS_SOCKET_H
8442 #include <sys/socket.h>
8443 #endif
8444 #ifdef HAVE_NETINET_IN_H
8445 #include <netinet/in.h>
8446 #endif
8447 #ifdef HAVE_WINSOCK2_H
8448 #include <winsock2.h>
8449 #endif
8450 int
8451 main ()
8452 {
8453 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
8454  if (&x && &y && &z) return 0;
8455   ;
8456   return 0;
8457 }
8458 _ACEOF
8459 if ac_fn_c_try_compile "$LINENO"; then :
8460   gl_cv_socket_ipv4=yes
8461 else
8462   gl_cv_socket_ipv4=no
8463 fi
8464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8465 fi
8466
8467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
8468 $as_echo "$gl_cv_socket_ipv4" >&6; }
8469   if test $gl_cv_socket_ipv4 = yes; then
8470
8471 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
8472
8473   fi
8474
8475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
8476 $as_echo_n "checking for IPv6 sockets... " >&6; }
8477   if ${gl_cv_socket_ipv6+:} false; then :
8478   $as_echo_n "(cached) " >&6
8479 else
8480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h.  */
8482 #include <sys/types.h>
8483 #ifdef HAVE_SYS_SOCKET_H
8484 #include <sys/socket.h>
8485 #endif
8486 #ifdef HAVE_NETINET_IN_H
8487 #include <netinet/in.h>
8488 #endif
8489 #ifdef HAVE_WINSOCK2_H
8490 #include <winsock2.h>
8491 #endif
8492 #ifdef HAVE_WS2TCPIP_H
8493 #include <ws2tcpip.h>
8494 #endif
8495 int
8496 main ()
8497 {
8498 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
8499  if (&x && &y && &z) return 0;
8500   ;
8501   return 0;
8502 }
8503 _ACEOF
8504 if ac_fn_c_try_compile "$LINENO"; then :
8505   gl_cv_socket_ipv6=yes
8506 else
8507   gl_cv_socket_ipv6=no
8508 fi
8509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8510 fi
8511
8512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
8513 $as_echo "$gl_cv_socket_ipv6" >&6; }
8514   if test $gl_cv_socket_ipv6 = yes; then
8515
8516 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
8517
8518   fi
8519
8520
8521
8522
8523
8524     :
8525
8526
8527       gl_save_LIBS=$LIBS
8528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
8529 $as_echo_n "checking for library containing inet_ntop... " >&6; }
8530 if ${ac_cv_search_inet_ntop+:} false; then :
8531   $as_echo_n "(cached) " >&6
8532 else
8533   ac_func_search_save_LIBS=$LIBS
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h.  */
8536
8537 /* Override any GCC internal prototype to avoid an error.
8538    Use char because int might match the return type of a GCC
8539    builtin and then its argument prototype would still apply.  */
8540 #ifdef __cplusplus
8541 extern "C"
8542 #endif
8543 char inet_ntop ();
8544 int
8545 main ()
8546 {
8547 return inet_ntop ();
8548   ;
8549   return 0;
8550 }
8551 _ACEOF
8552 for ac_lib in '' nsl; do
8553   if test -z "$ac_lib"; then
8554     ac_res="none required"
8555   else
8556     ac_res=-l$ac_lib
8557     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8558   fi
8559   if ac_fn_c_try_link "$LINENO"; then :
8560   ac_cv_search_inet_ntop=$ac_res
8561 fi
8562 rm -f core conftest.err conftest.$ac_objext \
8563     conftest$ac_exeext
8564   if ${ac_cv_search_inet_ntop+:} false; then :
8565   break
8566 fi
8567 done
8568 if ${ac_cv_search_inet_ntop+:} false; then :
8569
8570 else
8571   ac_cv_search_inet_ntop=no
8572 fi
8573 rm conftest.$ac_ext
8574 LIBS=$ac_func_search_save_LIBS
8575 fi
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
8577 $as_echo "$ac_cv_search_inet_ntop" >&6; }
8578 ac_res=$ac_cv_search_inet_ntop
8579 if test "$ac_res" != no; then :
8580   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8581
8582 else
8583
8584
8585
8586
8587
8588
8589
8590
8591   for ac_func in inet_ntop
8592 do :
8593   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
8594 if test "x$ac_cv_func_inet_ntop" = xyes; then :
8595   cat >>confdefs.h <<_ACEOF
8596 #define HAVE_INET_NTOP 1
8597 _ACEOF
8598
8599 else
8600
8601     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
8602
8603 fi
8604 done
8605
8606
8607 fi
8608
8609   LIBS=$gl_save_LIBS
8610   INET_NTOP_LIB=
8611   if test "$ac_cv_search_inet_ntop" != "no" &&
8612      test "$ac_cv_search_inet_ntop" != "none required"; then
8613     INET_NTOP_LIB="$ac_cv_search_inet_ntop"
8614   fi
8615
8616
8617
8618   ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
8619 "
8620 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
8621   ac_have_decl=1
8622 else
8623   ac_have_decl=0
8624 fi
8625
8626 cat >>confdefs.h <<_ACEOF
8627 #define HAVE_DECL_INET_NTOP $ac_have_decl
8628 _ACEOF
8629
8630   if test $ac_cv_have_decl_inet_ntop = no; then
8631     HAVE_DECL_INET_NTOP=0
8632   fi
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650   :
8651
8652
8653
8654
8655
8656
8657
8658      if test $gl_cv_have_include_next = yes; then
8659        gl_cv_next_getopt_h='<'getopt.h'>'
8660      else
8661        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
8662 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
8663 if ${gl_cv_next_getopt_h+:} false; then :
8664   $as_echo_n "(cached) " >&6
8665 else
8666
8667           if test $ac_cv_header_getopt_h = yes; then
8668             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h.  */
8670 #include <getopt.h>
8671
8672 _ACEOF
8673                                                                                                 case "$host_os" in
8674               aix*) gl_absname_cpp="$ac_cpp -C" ;;
8675               *)    gl_absname_cpp="$ac_cpp" ;;
8676             esac
8677                                                 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8678                sed -n '\#/getopt.h#{
8679                  s#.*"\(.*/getopt.h\)".*#\1#
8680                  s#^/[^/]#//&#
8681                  p
8682                  q
8683                }'`'"'
8684           else
8685             gl_cv_next_getopt_h='<'getopt.h'>'
8686           fi
8687
8688 fi
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
8690 $as_echo "$gl_cv_next_getopt_h" >&6; }
8691      fi
8692      NEXT_GETOPT_H=$gl_cv_next_getopt_h
8693
8694      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8695        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8696        gl_next_as_first_directive='<'getopt.h'>'
8697      else
8698        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8699        gl_next_as_first_directive=$gl_cv_next_getopt_h
8700      fi
8701      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
8702
8703
8704
8705
8706   :
8707
8708
8709
8710
8711
8712   if test $ac_cv_header_getopt_h = yes; then
8713     HAVE_GETOPT_H=1
8714   else
8715     HAVE_GETOPT_H=0
8716   fi
8717
8718
8719   gl_replace_getopt=
8720
8721     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
8722     for ac_header in getopt.h
8723 do :
8724   ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
8725 if test "x$ac_cv_header_getopt_h" = xyes; then :
8726   cat >>confdefs.h <<_ACEOF
8727 #define HAVE_GETOPT_H 1
8728 _ACEOF
8729
8730 else
8731   gl_replace_getopt=yes
8732 fi
8733
8734 done
8735
8736   fi
8737
8738     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
8739     for ac_func in getopt_long_only
8740 do :
8741   ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
8742 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
8743   cat >>confdefs.h <<_ACEOF
8744 #define HAVE_GETOPT_LONG_ONLY 1
8745 _ACEOF
8746
8747 else
8748   gl_replace_getopt=yes
8749 fi
8750 done
8751
8752   fi
8753
8754               if test -z "$gl_replace_getopt"; then
8755     ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
8756 "
8757 if test "x$ac_cv_have_decl_optreset" = xyes; then :
8758   ac_have_decl=1
8759 else
8760   ac_have_decl=0
8761 fi
8762
8763 cat >>confdefs.h <<_ACEOF
8764 #define HAVE_DECL_OPTRESET $ac_have_decl
8765 _ACEOF
8766 if test $ac_have_decl = 1; then :
8767
8768 else
8769   ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
8770 "
8771 if test "x$ac_cv_have_decl_getopt_clip" = xyes; then :
8772   ac_have_decl=1
8773 else
8774   ac_have_decl=0
8775 fi
8776
8777 cat >>confdefs.h <<_ACEOF
8778 #define HAVE_DECL_GETOPT_CLIP $ac_have_decl
8779 _ACEOF
8780
8781
8782 fi
8783
8784   fi
8785
8786                     if test -z "$gl_replace_getopt"; then
8787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
8788 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
8789 if ${gl_cv_func_getopt_posix+:} false; then :
8790   $as_echo_n "(cached) " >&6
8791 else
8792
8793                 if test "$cross_compiling" = yes; then :
8794   case "$host_os" in
8795              mingw*)         gl_cv_func_getopt_posix="guessing no";;
8796              darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
8797              *)              gl_cv_func_getopt_posix="guessing yes";;
8798            esac
8799
8800 else
8801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h.  */
8803
8804 #include <unistd.h>
8805 #include <stdlib.h>
8806 #include <string.h>
8807
8808 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
8809 # define OPTIND_MIN 0
8810 #else
8811 # define OPTIND_MIN 1
8812 #endif
8813
8814 int
8815 main ()
8816 {
8817   {
8818     int argc = 0;
8819     char *argv[10];
8820     int c;
8821
8822     argv[argc++] = "program";
8823     argv[argc++] = "-a";
8824     argv[argc++] = "foo";
8825     argv[argc++] = "bar";
8826     argv[argc] = NULL;
8827     optind = OPTIND_MIN;
8828     opterr = 0;
8829
8830     c = getopt (argc, argv, "ab");
8831     if (!(c == 'a'))
8832       return 1;
8833     c = getopt (argc, argv, "ab");
8834     if (!(c == -1))
8835       return 2;
8836     if (!(optind == 2))
8837       return 3;
8838   }
8839   /* Some internal state exists at this point.  */
8840   {
8841     int argc = 0;
8842     char *argv[10];
8843     int c;
8844
8845     argv[argc++] = "program";
8846     argv[argc++] = "donald";
8847     argv[argc++] = "-p";
8848     argv[argc++] = "billy";
8849     argv[argc++] = "duck";
8850     argv[argc++] = "-a";
8851     argv[argc++] = "bar";
8852     argv[argc] = NULL;
8853     optind = OPTIND_MIN;
8854     opterr = 0;
8855
8856     c = getopt (argc, argv, "+abp:q:");
8857     if (!(c == -1))
8858       return 4;
8859     if (!(strcmp (argv[0], "program") == 0))
8860       return 5;
8861     if (!(strcmp (argv[1], "donald") == 0))
8862       return 6;
8863     if (!(strcmp (argv[2], "-p") == 0))
8864       return 7;
8865     if (!(strcmp (argv[3], "billy") == 0))
8866       return 8;
8867     if (!(strcmp (argv[4], "duck") == 0))
8868       return 9;
8869     if (!(strcmp (argv[5], "-a") == 0))
8870       return 10;
8871     if (!(strcmp (argv[6], "bar") == 0))
8872       return 11;
8873     if (!(optind == 1))
8874       return 12;
8875   }
8876   /* Detect MacOS 10.5, AIX 7.1 bug.  */
8877   {
8878     char *argv[3] = { "program", "-ab", NULL };
8879     optind = OPTIND_MIN;
8880     opterr = 0;
8881     if (getopt (2, argv, "ab:") != 'a')
8882       return 13;
8883     if (getopt (2, argv, "ab:") != '?')
8884       return 14;
8885     if (optopt != 'b')
8886       return 15;
8887     if (optind != 2)
8888       return 16;
8889   }
8890
8891   return 0;
8892 }
8893
8894 _ACEOF
8895 if ac_fn_c_try_run "$LINENO"; then :
8896   gl_cv_func_getopt_posix=yes
8897 else
8898   gl_cv_func_getopt_posix=no
8899 fi
8900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8901   conftest.$ac_objext conftest.beam conftest.$ac_ext
8902 fi
8903
8904
8905 fi
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
8907 $as_echo "$gl_cv_func_getopt_posix" >&6; }
8908     case "$gl_cv_func_getopt_posix" in
8909       *no) gl_replace_getopt=yes ;;
8910     esac
8911   fi
8912
8913   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
8914     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
8915 $as_echo_n "checking for working GNU getopt function... " >&6; }
8916 if ${gl_cv_func_getopt_gnu+:} false; then :
8917   $as_echo_n "(cached) " >&6
8918 else
8919   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
8920        # optstring is necessary for programs like m4 that have POSIX-mandated
8921        # semantics for supporting options interspersed with files.
8922        # Also, since getopt_long is a GNU extension, we require optind=0.
8923        # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
8924        # so take care to revert to the correct (non-)export state.
8925        gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
8926        case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
8927          xx) gl_had_POSIXLY_CORRECT=exported ;;
8928          x)  gl_had_POSIXLY_CORRECT=yes      ;;
8929          *)  gl_had_POSIXLY_CORRECT=         ;;
8930        esac
8931        POSIXLY_CORRECT=1
8932        export POSIXLY_CORRECT
8933        if test "$cross_compiling" = yes; then :
8934            case $host_os:$ac_cv_have_decl_optreset in
8935            *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
8936            *:yes)               gl_cv_func_getopt_gnu=no;;
8937            *)                   gl_cv_func_getopt_gnu=yes;;
8938          esac
8939
8940 else
8941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h.  */
8943 #include <getopt.h>
8944                            #include <stddef.h>
8945                            #include <string.h>
8946
8947 int
8948 main ()
8949 {
8950
8951              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
8952                 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
8953                 OSF/1 5.1, Solaris 10.  */
8954              {
8955                char *myargv[3];
8956                myargv[0] = "conftest";
8957                myargv[1] = "-+";
8958                myargv[2] = 0;
8959                opterr = 0;
8960                if (getopt (2, myargv, "+a") != '?')
8961                  return 1;
8962              }
8963              /* This code succeeds on glibc 2.8, mingw,
8964                 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
8965                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
8966              {
8967                char *argv[] = { "program", "-p", "foo", "bar", NULL };
8968
8969                optind = 1;
8970                if (getopt (4, argv, "p::") != 'p')
8971                  return 2;
8972                if (optarg != NULL)
8973                  return 3;
8974                if (getopt (4, argv, "p::") != -1)
8975                  return 4;
8976                if (optind != 2)
8977                  return 5;
8978              }
8979              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
8980              {
8981                char *argv[] = { "program", "foo", "-p", NULL };
8982                optind = 0;
8983                if (getopt (3, argv, "-p") != 1)
8984                  return 6;
8985                if (getopt (3, argv, "-p") != 'p')
8986                  return 7;
8987              }
8988              /* This code fails on glibc 2.11.  */
8989              {
8990                char *argv[] = { "program", "-b", "-a", NULL };
8991                optind = opterr = 0;
8992                if (getopt (3, argv, "+:a:b") != 'b')
8993                  return 8;
8994                if (getopt (3, argv, "+:a:b") != ':')
8995                  return 9;
8996              }
8997              return 0;
8998
8999   ;
9000   return 0;
9001 }
9002 _ACEOF
9003 if ac_fn_c_try_run "$LINENO"; then :
9004   gl_cv_func_getopt_gnu=yes
9005 else
9006   gl_cv_func_getopt_gnu=no
9007 fi
9008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9009   conftest.$ac_objext conftest.beam conftest.$ac_ext
9010 fi
9011
9012        case $gl_had_POSIXLY_CORRECT in
9013          exported) ;;
9014          yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
9015          *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
9016        esac
9017
9018 fi
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
9020 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
9021     if test "$gl_cv_func_getopt_gnu" = "no"; then
9022       gl_replace_getopt=yes
9023     fi
9024   fi
9025
9026
9027       ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
9028 if test "x$ac_cv_have_decl_getenv" = xyes; then :
9029   ac_have_decl=1
9030 else
9031   ac_have_decl=0
9032 fi
9033
9034 cat >>confdefs.h <<_ACEOF
9035 #define HAVE_DECL_GETENV $ac_have_decl
9036 _ACEOF
9037
9038
9039
9040
9041
9042
9043
9044   if test -n "$gl_replace_getopt"; then :
9045
9046
9047
9048   GETOPT_H=getopt.h
9049
9050 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
9051
9052
9053
9054     GNULIB_UNISTD_H_GETOPT=1
9055
9056
9057
9058
9059
9060
9061
9062
9063   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
9074
9075
9076
9077   :
9078
9079
9080
9081
9082
9083
9084
9085
9086 fi
9087
9088
9089
9090   GNULIB_GETTIMEOFDAY=0;
9091     HAVE_GETTIMEOFDAY=1;
9092   HAVE_STRUCT_TIMEVAL=1;
9093   HAVE_SYS_TIME_H=1;
9094   REPLACE_GETTIMEOFDAY=0;
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      if test $gl_cv_have_include_next = yes; then
9124        gl_cv_next_sys_time_h='<'sys/time.h'>'
9125      else
9126        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9127 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9128 if ${gl_cv_next_sys_time_h+:} false; then :
9129   $as_echo_n "(cached) " >&6
9130 else
9131
9132           if test $ac_cv_header_sys_time_h = yes; then
9133             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h.  */
9135 #include <sys/time.h>
9136
9137 _ACEOF
9138                                                                                                 case "$host_os" in
9139               aix*) gl_absname_cpp="$ac_cpp -C" ;;
9140               *)    gl_absname_cpp="$ac_cpp" ;;
9141             esac
9142                                                 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9143                sed -n '\#/sys/time.h#{
9144                  s#.*"\(.*/sys/time.h\)".*#\1#
9145                  s#^/[^/]#//&#
9146                  p
9147                  q
9148                }'`'"'
9149           else
9150             gl_cv_next_sys_time_h='<'sys/time.h'>'
9151           fi
9152
9153 fi
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9155 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9156      fi
9157      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
9158
9159      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9160        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9161        gl_next_as_first_directive='<'sys/time.h'>'
9162      else
9163        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9164        gl_next_as_first_directive=$gl_cv_next_sys_time_h
9165      fi
9166      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
9167
9168
9169
9170
9171   if test $ac_cv_header_sys_time_h != yes; then
9172     HAVE_SYS_TIME_H=0
9173   fi
9174
9175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9176 $as_echo_n "checking for struct timeval... " >&6; }
9177 if ${gl_cv_sys_struct_timeval+:} false; then :
9178   $as_echo_n "(cached) " >&6
9179 else
9180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181 /* end confdefs.h.  */
9182 #if HAVE_SYS_TIME_H
9183              #include <sys/time.h>
9184             #endif
9185             #include <time.h>
9186
9187 int
9188 main ()
9189 {
9190 static struct timeval x; x.tv_sec = x.tv_usec;
9191   ;
9192   return 0;
9193 }
9194 _ACEOF
9195 if ac_fn_c_try_compile "$LINENO"; then :
9196   gl_cv_sys_struct_timeval=yes
9197 else
9198   gl_cv_sys_struct_timeval=no
9199 fi
9200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201 fi
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9203 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9204   if test $gl_cv_sys_struct_timeval != yes; then
9205     HAVE_STRUCT_TIMEVAL=0
9206   fi
9207
9208
9209     for gl_func in gettimeofday; do
9210     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9211     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9212 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9213 if eval \${$as_gl_Symbol+:} false; then :
9214   $as_echo_n "(cached) " >&6
9215 else
9216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217 /* end confdefs.h.  */
9218
9219 #if HAVE_SYS_TIME_H
9220 # include <sys/time.h>
9221 #endif
9222 #include <time.h>
9223
9224 int
9225 main ()
9226 {
9227 #undef $gl_func
9228   (void) $gl_func;
9229   ;
9230   return 0;
9231 }
9232 _ACEOF
9233 if ac_fn_c_try_compile "$LINENO"; then :
9234   eval "$as_gl_Symbol=yes"
9235 else
9236   eval "$as_gl_Symbol=no"
9237 fi
9238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9239 fi
9240 eval ac_res=\$$as_gl_Symbol
9241                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9242 $as_echo "$ac_res" >&6; }
9243      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9244   cat >>confdefs.h <<_ACEOF
9245 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9246 _ACEOF
9247
9248                      eval ac_cv_have_decl_$gl_func=yes
9249 fi
9250       done
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262   GNULIB_NL_LANGINFO=0;
9263     HAVE_NL_LANGINFO=1;
9264   REPLACE_NL_LANGINFO=0;
9265
9266
9267
9268
9269
9270
9271
9272
9273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9274 $as_echo_n "checking for working fcntl.h... " >&6; }
9275 if ${gl_cv_header_working_fcntl_h+:} false; then :
9276   $as_echo_n "(cached) " >&6
9277 else
9278   if test "$cross_compiling" = yes; then :
9279   gl_cv_header_working_fcntl_h=cross-compiling
9280 else
9281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h.  */
9283 #include <sys/types.h>
9284            #include <sys/stat.h>
9285            #include <unistd.h>
9286            #include <fcntl.h>
9287            #ifndef O_NOATIME
9288             #define O_NOATIME 0
9289            #endif
9290            #ifndef O_NOFOLLOW
9291             #define O_NOFOLLOW 0
9292            #endif
9293            static int const constants[] =
9294             {
9295               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9296               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9297             };
9298
9299 int
9300 main ()
9301 {
9302
9303             int status = !constants;
9304             {
9305               static char const sym[] = "conftest.sym";
9306               if (symlink (".", sym) != 0
9307                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
9308                 status |= 32;
9309               unlink (sym);
9310             }
9311             {
9312               static char const file[] = "confdefs.h";
9313               int fd = open (file, O_RDONLY | O_NOATIME);
9314               char c;
9315               struct stat st0, st1;
9316               if (fd < 0
9317                   || fstat (fd, &st0) != 0
9318                   || sleep (1) != 0
9319                   || read (fd, &c, 1) != 1
9320                   || close (fd) != 0
9321                   || stat (file, &st1) != 0
9322                   || st0.st_atime != st1.st_atime)
9323                 status |= 64;
9324             }
9325             return status;
9326   ;
9327   return 0;
9328 }
9329 _ACEOF
9330 if ac_fn_c_try_run "$LINENO"; then :
9331   gl_cv_header_working_fcntl_h=yes
9332 else
9333   case $? in #(
9334         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9335         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9336         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9337          *) gl_cv_header_working_fcntl_h='no';;
9338         esac
9339 fi
9340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9341   conftest.$ac_objext conftest.beam conftest.$ac_ext
9342 fi
9343
9344 fi
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9346 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9347
9348   case $gl_cv_header_working_fcntl_h in #(
9349   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9350   *) ac_val=1;;
9351   esac
9352
9353 cat >>confdefs.h <<_ACEOF
9354 #define HAVE_WORKING_O_NOATIME $ac_val
9355 _ACEOF
9356
9357
9358   case $gl_cv_header_working_fcntl_h in #(
9359   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9360   *) ac_val=1;;
9361   esac
9362
9363 cat >>confdefs.h <<_ACEOF
9364 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9365 _ACEOF
9366
9367
9368
9369       ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9370 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
9371   ac_have_decl=1
9372 else
9373   ac_have_decl=0
9374 fi
9375
9376 cat >>confdefs.h <<_ACEOF
9377 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9378 _ACEOF
9379
9380
9381
9382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
9383 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
9384 if ${ac_cv_gnu_library_2_1+:} false; then :
9385   $as_echo_n "(cached) " >&6
9386 else
9387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h.  */
9389
9390 #include <features.h>
9391 #ifdef __GNU_LIBRARY__
9392  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9393   Lucky GNU user
9394  #endif
9395 #endif
9396
9397 _ACEOF
9398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9399   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
9400   ac_cv_gnu_library_2_1=yes
9401 else
9402   ac_cv_gnu_library_2_1=no
9403 fi
9404 rm -f conftest*
9405
9406
9407
9408 fi
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9410 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9411
9412     GLIBC21="$ac_cv_gnu_library_2_1"
9413
9414
9415
9416       if test "X$prefix" = "XNONE"; then
9417     acl_final_prefix="$ac_default_prefix"
9418   else
9419     acl_final_prefix="$prefix"
9420   fi
9421   if test "X$exec_prefix" = "XNONE"; then
9422     acl_final_exec_prefix='${prefix}'
9423   else
9424     acl_final_exec_prefix="$exec_prefix"
9425   fi
9426   acl_save_prefix="$prefix"
9427   prefix="$acl_final_prefix"
9428   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9429   prefix="$acl_save_prefix"
9430
9431
9432 # Check whether --with-gnu-ld was given.
9433 if test "${with_gnu_ld+set}" = set; then :
9434   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9435 else
9436   with_gnu_ld=no
9437 fi
9438
9439 # Prepare PATH_SEPARATOR.
9440 # The user is always right.
9441 if test "${PATH_SEPARATOR+set}" != set; then
9442   echo "#! /bin/sh" >conf$$.sh
9443   echo  "exit 0"   >>conf$$.sh
9444   chmod +x conf$$.sh
9445   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9446     PATH_SEPARATOR=';'
9447   else
9448     PATH_SEPARATOR=:
9449   fi
9450   rm -f conf$$.sh
9451 fi
9452 ac_prog=ld
9453 if test "$GCC" = yes; then
9454   # Check if gcc -print-prog-name=ld gives a path.
9455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9456 $as_echo_n "checking for ld used by GCC... " >&6; }
9457   case $host in
9458   *-*-mingw*)
9459     # gcc leaves a trailing carriage return which upsets mingw
9460     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9461   *)
9462     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9463   esac
9464   case $ac_prog in
9465     # Accept absolute paths.
9466     [\\/]* | [A-Za-z]:[\\/]*)
9467       re_direlt='/[^/][^/]*/\.\./'
9468       # Canonicalize the path of ld
9469       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9470       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9471         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9472       done
9473       test -z "$LD" && LD="$ac_prog"
9474       ;;
9475   "")
9476     # If it fails, then pretend we aren't using GCC.
9477     ac_prog=ld
9478     ;;
9479   *)
9480     # If it is relative, then search for the first ld in PATH.
9481     with_gnu_ld=unknown
9482     ;;
9483   esac
9484 elif test "$with_gnu_ld" = yes; then
9485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9486 $as_echo_n "checking for GNU ld... " >&6; }
9487 else
9488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9489 $as_echo_n "checking for non-GNU ld... " >&6; }
9490 fi
9491 if ${acl_cv_path_LD+:} false; then :
9492   $as_echo_n "(cached) " >&6
9493 else
9494   if test -z "$LD"; then
9495   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9496   for ac_dir in $PATH; do
9497     test -z "$ac_dir" && ac_dir=.
9498     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9499       acl_cv_path_LD="$ac_dir/$ac_prog"
9500       # Check to see if the program is GNU ld.  I'd rather use --version,
9501       # but apparently some GNU ld's only accept -v.
9502       # Break only if it was the GNU/non-GNU ld that we prefer.
9503       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9504       *GNU* | *'with BFD'*)
9505         test "$with_gnu_ld" != no && break ;;
9506       *)
9507         test "$with_gnu_ld" != yes && break ;;
9508       esac
9509     fi
9510   done
9511   IFS="$ac_save_ifs"
9512 else
9513   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9514 fi
9515 fi
9516
9517 LD="$acl_cv_path_LD"
9518 if test -n "$LD"; then
9519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9520 $as_echo "$LD" >&6; }
9521 else
9522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523 $as_echo "no" >&6; }
9524 fi
9525 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9527 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9528 if ${acl_cv_prog_gnu_ld+:} false; then :
9529   $as_echo_n "(cached) " >&6
9530 else
9531   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9532 case `$LD -v 2>&1 </dev/null` in
9533 *GNU* | *'with BFD'*)
9534   acl_cv_prog_gnu_ld=yes ;;
9535 *)
9536   acl_cv_prog_gnu_ld=no ;;
9537 esac
9538 fi
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9540 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9541 with_gnu_ld=$acl_cv_prog_gnu_ld
9542
9543
9544
9545
9546                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9547 $as_echo_n "checking for shared library run path origin... " >&6; }
9548 if ${acl_cv_rpath+:} false; then :
9549   $as_echo_n "(cached) " >&6
9550 else
9551
9552     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9553     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9554     . ./conftest.sh
9555     rm -f ./conftest.sh
9556     acl_cv_rpath=done
9557
9558 fi
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9560 $as_echo "$acl_cv_rpath" >&6; }
9561   wl="$acl_cv_wl"
9562   libext="$acl_cv_libext"
9563   shlibext="$acl_cv_shlibext"
9564   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9565   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9566   hardcode_direct="$acl_cv_hardcode_direct"
9567   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9568     # Check whether --enable-rpath was given.
9569 if test "${enable_rpath+set}" = set; then :
9570   enableval=$enable_rpath; :
9571 else
9572   enable_rpath=yes
9573 fi
9574
9575
9576
9577                   acl_libdirstem=lib
9578   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9579   if test -n "$searchpath"; then
9580     acl_save_IFS="${IFS=        }"; IFS=":"
9581     for searchdir in $searchpath; do
9582       if test -d "$searchdir"; then
9583         case "$searchdir" in
9584           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
9585           *) searchdir=`cd "$searchdir" && pwd`
9586              case "$searchdir" in
9587                */lib64 ) acl_libdirstem=lib64 ;;
9588              esac ;;
9589         esac
9590       fi
9591     done
9592     IFS="$acl_save_IFS"
9593   fi
9594
9595
9596
9597   gl_threads_api=none
9598   LIBTHREAD=
9599   LTLIBTHREAD=
9600   LIBMULTITHREAD=
9601   LTLIBMULTITHREAD=
9602   if test "$gl_use_threads" != no; then
9603         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
9604 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
9605 if ${gl_cv_have_weak+:} false; then :
9606   $as_echo_n "(cached) " >&6
9607 else
9608   gl_cv_have_weak=no
9609               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9610 /* end confdefs.h.  */
9611 extern void xyzzy ();
9612 #pragma weak xyzzy
9613 int
9614 main ()
9615 {
9616 xyzzy();
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 if ac_fn_c_try_link "$LINENO"; then :
9622   gl_cv_have_weak=maybe
9623 fi
9624 rm -f core conftest.err conftest.$ac_objext \
9625     conftest$ac_exeext conftest.$ac_ext
9626        if test $gl_cv_have_weak = maybe; then
9627                            if test "$cross_compiling" = yes; then :
9628                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h.  */
9630 #ifdef __ELF__
9631                Extensible Linking Format
9632                #endif
9633
9634 _ACEOF
9635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9636   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
9637   gl_cv_have_weak="guessing yes"
9638 else
9639   gl_cv_have_weak="guessing no"
9640 fi
9641 rm -f conftest*
9642
9643
9644 else
9645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h.  */
9647
9648 #include <stdio.h>
9649 #pragma weak fputs
9650 int main ()
9651 {
9652   return (fputs == NULL);
9653 }
9654 _ACEOF
9655 if ac_fn_c_try_run "$LINENO"; then :
9656   gl_cv_have_weak=yes
9657 else
9658   gl_cv_have_weak=no
9659 fi
9660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9661   conftest.$ac_objext conftest.beam conftest.$ac_ext
9662 fi
9663
9664        fi
9665
9666 fi
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
9668 $as_echo "$gl_cv_have_weak" >&6; }
9669     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
9670       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
9671       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
9672       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9673 if test "x$ac_cv_header_pthread_h" = xyes; then :
9674   gl_have_pthread_h=yes
9675 else
9676   gl_have_pthread_h=no
9677 fi
9678
9679
9680       if test "$gl_have_pthread_h" = yes; then
9681         # Other possible tests:
9682         #   -lpthreads (FSU threads, PCthreads)
9683         #   -lgthreads
9684         gl_have_pthread=
9685         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
9686         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
9687         # the second one only in libpthread, and lock.c needs it.
9688         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689 /* end confdefs.h.  */
9690 #include <pthread.h>
9691 int
9692 main ()
9693 {
9694 pthread_mutex_lock((pthread_mutex_t*)0);
9695                pthread_mutexattr_init((pthread_mutexattr_t*)0);
9696   ;
9697   return 0;
9698 }
9699 _ACEOF
9700 if ac_fn_c_try_link "$LINENO"; then :
9701   gl_have_pthread=yes
9702 fi
9703 rm -f core conftest.err conftest.$ac_objext \
9704     conftest$ac_exeext conftest.$ac_ext
9705         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
9706         # since it is defined as a macro on OSF/1.)
9707         if test -n "$gl_have_pthread"; then
9708           # The program links fine without libpthread. But it may actually
9709           # need to link with libpthread in order to create multiple threads.
9710           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9711 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9712 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
9713   $as_echo_n "(cached) " >&6
9714 else
9715   ac_check_lib_save_LIBS=$LIBS
9716 LIBS="-lpthread  $LIBS"
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h.  */
9719
9720 /* Override any GCC internal prototype to avoid an error.
9721    Use char because int might match the return type of a GCC
9722    builtin and then its argument prototype would still apply.  */
9723 #ifdef __cplusplus
9724 extern "C"
9725 #endif
9726 char pthread_kill ();
9727 int
9728 main ()
9729 {
9730 return pthread_kill ();
9731   ;
9732   return 0;
9733 }
9734 _ACEOF
9735 if ac_fn_c_try_link "$LINENO"; then :
9736   ac_cv_lib_pthread_pthread_kill=yes
9737 else
9738   ac_cv_lib_pthread_pthread_kill=no
9739 fi
9740 rm -f core conftest.err conftest.$ac_objext \
9741     conftest$ac_exeext conftest.$ac_ext
9742 LIBS=$ac_check_lib_save_LIBS
9743 fi
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9745 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9746 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
9747   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9748              # On Solaris and HP-UX, most pthread functions exist also in libc.
9749              # Therefore pthread_in_use() needs to actually try to create a
9750              # thread: pthread_create from libc will fail, whereas
9751              # pthread_create will actually create a thread.
9752              case "$host_os" in
9753                solaris* | hpux*)
9754
9755 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
9756
9757              esac
9758
9759 fi
9760
9761         else
9762           # Some library is needed. Try libpthread and libc_r.
9763           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9764 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9765 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
9766   $as_echo_n "(cached) " >&6
9767 else
9768   ac_check_lib_save_LIBS=$LIBS
9769 LIBS="-lpthread  $LIBS"
9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771 /* end confdefs.h.  */
9772
9773 /* Override any GCC internal prototype to avoid an error.
9774    Use char because int might match the return type of a GCC
9775    builtin and then its argument prototype would still apply.  */
9776 #ifdef __cplusplus
9777 extern "C"
9778 #endif
9779 char pthread_kill ();
9780 int
9781 main ()
9782 {
9783 return pthread_kill ();
9784   ;
9785   return 0;
9786 }
9787 _ACEOF
9788 if ac_fn_c_try_link "$LINENO"; then :
9789   ac_cv_lib_pthread_pthread_kill=yes
9790 else
9791   ac_cv_lib_pthread_pthread_kill=no
9792 fi
9793 rm -f core conftest.err conftest.$ac_objext \
9794     conftest$ac_exeext conftest.$ac_ext
9795 LIBS=$ac_check_lib_save_LIBS
9796 fi
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9798 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9799 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
9800   gl_have_pthread=yes
9801              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
9802              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9803 fi
9804
9805           if test -z "$gl_have_pthread"; then
9806             # For FreeBSD 4.
9807             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
9808 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
9809 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
9810   $as_echo_n "(cached) " >&6
9811 else
9812   ac_check_lib_save_LIBS=$LIBS
9813 LIBS="-lc_r  $LIBS"
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h.  */
9816
9817 /* Override any GCC internal prototype to avoid an error.
9818    Use char because int might match the return type of a GCC
9819    builtin and then its argument prototype would still apply.  */
9820 #ifdef __cplusplus
9821 extern "C"
9822 #endif
9823 char pthread_kill ();
9824 int
9825 main ()
9826 {
9827 return pthread_kill ();
9828   ;
9829   return 0;
9830 }
9831 _ACEOF
9832 if ac_fn_c_try_link "$LINENO"; then :
9833   ac_cv_lib_c_r_pthread_kill=yes
9834 else
9835   ac_cv_lib_c_r_pthread_kill=no
9836 fi
9837 rm -f core conftest.err conftest.$ac_objext \
9838     conftest$ac_exeext conftest.$ac_ext
9839 LIBS=$ac_check_lib_save_LIBS
9840 fi
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
9842 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
9843 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
9844   gl_have_pthread=yes
9845                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
9846                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
9847 fi
9848
9849           fi
9850         fi
9851         if test -n "$gl_have_pthread"; then
9852           gl_threads_api=posix
9853
9854 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
9855
9856           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
9857             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9858
9859 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
9860
9861               LIBTHREAD=
9862               LTLIBTHREAD=
9863             fi
9864           fi
9865         fi
9866       fi
9867     fi
9868     if test -z "$gl_have_pthread"; then
9869       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
9870         gl_have_solaristhread=
9871         gl_save_LIBS="$LIBS"
9872         LIBS="$LIBS -lthread"
9873         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h.  */
9875
9876 #include <thread.h>
9877 #include <synch.h>
9878
9879 int
9880 main ()
9881 {
9882 thr_self();
9883   ;
9884   return 0;
9885 }
9886 _ACEOF
9887 if ac_fn_c_try_link "$LINENO"; then :
9888   gl_have_solaristhread=yes
9889 fi
9890 rm -f core conftest.err conftest.$ac_objext \
9891     conftest$ac_exeext conftest.$ac_ext
9892         LIBS="$gl_save_LIBS"
9893         if test -n "$gl_have_solaristhread"; then
9894           gl_threads_api=solaris
9895           LIBTHREAD=-lthread
9896           LTLIBTHREAD=-lthread
9897           LIBMULTITHREAD="$LIBTHREAD"
9898           LTLIBMULTITHREAD="$LTLIBTHREAD"
9899
9900 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
9901
9902           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9903
9904 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
9905
9906             LIBTHREAD=
9907             LTLIBTHREAD=
9908           fi
9909         fi
9910       fi
9911     fi
9912     if test "$gl_use_threads" = pth; then
9913       gl_save_CPPFLAGS="$CPPFLAGS"
9914
9915
9916
9917
9918
9919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
9920 $as_echo_n "checking how to link with libpth... " >&6; }
9921 if ${ac_cv_libpth_libs+:} false; then :
9922   $as_echo_n "(cached) " >&6
9923 else
9924
9925
9926
9927
9928     use_additional=yes
9929
9930   acl_save_prefix="$prefix"
9931   prefix="$acl_final_prefix"
9932   acl_save_exec_prefix="$exec_prefix"
9933   exec_prefix="$acl_final_exec_prefix"
9934
9935     eval additional_includedir=\"$includedir\"
9936     eval additional_libdir=\"$libdir\"
9937
9938   exec_prefix="$acl_save_exec_prefix"
9939   prefix="$acl_save_prefix"
9940
9941
9942 # Check whether --with-libpth-prefix was given.
9943 if test "${with_libpth_prefix+set}" = set; then :
9944   withval=$with_libpth_prefix;
9945     if test "X$withval" = "Xno"; then
9946       use_additional=no
9947     else
9948       if test "X$withval" = "X"; then
9949
9950   acl_save_prefix="$prefix"
9951   prefix="$acl_final_prefix"
9952   acl_save_exec_prefix="$exec_prefix"
9953   exec_prefix="$acl_final_exec_prefix"
9954
9955           eval additional_includedir=\"$includedir\"
9956           eval additional_libdir=\"$libdir\"
9957
9958   exec_prefix="$acl_save_exec_prefix"
9959   prefix="$acl_save_prefix"
9960
9961       else
9962         additional_includedir="$withval/include"
9963         additional_libdir="$withval/$acl_libdirstem"
9964       fi
9965     fi
9966
9967 fi
9968
9969       LIBPTH=
9970   LTLIBPTH=
9971   INCPTH=
9972   rpathdirs=
9973   ltrpathdirs=
9974   names_already_handled=
9975   names_next_round='pth '
9976   while test -n "$names_next_round"; do
9977     names_this_round="$names_next_round"
9978     names_next_round=
9979     for name in $names_this_round; do
9980       already_handled=
9981       for n in $names_already_handled; do
9982         if test "$n" = "$name"; then
9983           already_handled=yes
9984           break
9985         fi
9986       done
9987       if test -z "$already_handled"; then
9988         names_already_handled="$names_already_handled $name"
9989                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9990         eval value=\"\$HAVE_LIB$uppername\"
9991         if test -n "$value"; then
9992           if test "$value" = yes; then
9993             eval value=\"\$LIB$uppername\"
9994             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
9995             eval value=\"\$LTLIB$uppername\"
9996             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
9997           else
9998                                     :
9999           fi
10000         else
10001                               found_dir=
10002           found_la=
10003           found_so=
10004           found_a=
10005           if test $use_additional = yes; then
10006             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10007               found_dir="$additional_libdir"
10008               found_so="$additional_libdir/lib$name.$shlibext"
10009               if test -f "$additional_libdir/lib$name.la"; then
10010                 found_la="$additional_libdir/lib$name.la"
10011               fi
10012             else
10013               if test -f "$additional_libdir/lib$name.$libext"; then
10014                 found_dir="$additional_libdir"
10015                 found_a="$additional_libdir/lib$name.$libext"
10016                 if test -f "$additional_libdir/lib$name.la"; then
10017                   found_la="$additional_libdir/lib$name.la"
10018                 fi
10019               fi
10020             fi
10021           fi
10022           if test "X$found_dir" = "X"; then
10023             for x in $LDFLAGS $LTLIBPTH; do
10024
10025   acl_save_prefix="$prefix"
10026   prefix="$acl_final_prefix"
10027   acl_save_exec_prefix="$exec_prefix"
10028   exec_prefix="$acl_final_exec_prefix"
10029   eval x=\"$x\"
10030   exec_prefix="$acl_save_exec_prefix"
10031   prefix="$acl_save_prefix"
10032
10033               case "$x" in
10034                 -L*)
10035                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10036                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10037                     found_dir="$dir"
10038                     found_so="$dir/lib$name.$shlibext"
10039                     if test -f "$dir/lib$name.la"; then
10040                       found_la="$dir/lib$name.la"
10041                     fi
10042                   else
10043                     if test -f "$dir/lib$name.$libext"; then
10044                       found_dir="$dir"
10045                       found_a="$dir/lib$name.$libext"
10046                       if test -f "$dir/lib$name.la"; then
10047                         found_la="$dir/lib$name.la"
10048                       fi
10049                     fi
10050                   fi
10051                   ;;
10052               esac
10053               if test "X$found_dir" != "X"; then
10054                 break
10055               fi
10056             done
10057           fi
10058           if test "X$found_dir" != "X"; then
10059                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
10060             if test "X$found_so" != "X"; then
10061                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
10062                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10063               else
10064                                                                                 haveit=
10065                 for x in $ltrpathdirs; do
10066                   if test "X$x" = "X$found_dir"; then
10067                     haveit=yes
10068                     break
10069                   fi
10070                 done
10071                 if test -z "$haveit"; then
10072                   ltrpathdirs="$ltrpathdirs $found_dir"
10073                 fi
10074                                 if test "$hardcode_direct" = yes; then
10075                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10076                 else
10077                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10078                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10079                                                             haveit=
10080                     for x in $rpathdirs; do
10081                       if test "X$x" = "X$found_dir"; then
10082                         haveit=yes
10083                         break
10084                       fi
10085                     done
10086                     if test -z "$haveit"; then
10087                       rpathdirs="$rpathdirs $found_dir"
10088                     fi
10089                   else
10090                                                                                 haveit=
10091                     for x in $LDFLAGS $LIBPTH; do
10092
10093   acl_save_prefix="$prefix"
10094   prefix="$acl_final_prefix"
10095   acl_save_exec_prefix="$exec_prefix"
10096   exec_prefix="$acl_final_exec_prefix"
10097   eval x=\"$x\"
10098   exec_prefix="$acl_save_exec_prefix"
10099   prefix="$acl_save_prefix"
10100
10101                       if test "X$x" = "X-L$found_dir"; then
10102                         haveit=yes
10103                         break
10104                       fi
10105                     done
10106                     if test -z "$haveit"; then
10107                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
10108                     fi
10109                     if test "$hardcode_minus_L" != no; then
10110                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10111                     else
10112                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
10113                     fi
10114                   fi
10115                 fi
10116               fi
10117             else
10118               if test "X$found_a" != "X"; then
10119                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
10120               else
10121                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
10122               fi
10123             fi
10124                         additional_includedir=
10125             case "$found_dir" in
10126               */$acl_libdirstem | */$acl_libdirstem/)
10127                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10128                 additional_includedir="$basedir/include"
10129                 ;;
10130             esac
10131             if test "X$additional_includedir" != "X"; then
10132                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10133                 haveit=
10134                 if test "X$additional_includedir" = "X/usr/local/include"; then
10135                   if test -n "$GCC"; then
10136                     case $host_os in
10137                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10138                     esac
10139                   fi
10140                 fi
10141                 if test -z "$haveit"; then
10142                   for x in $CPPFLAGS $INCPTH; do
10143
10144   acl_save_prefix="$prefix"
10145   prefix="$acl_final_prefix"
10146   acl_save_exec_prefix="$exec_prefix"
10147   exec_prefix="$acl_final_exec_prefix"
10148   eval x=\"$x\"
10149   exec_prefix="$acl_save_exec_prefix"
10150   prefix="$acl_save_prefix"
10151
10152                     if test "X$x" = "X-I$additional_includedir"; then
10153                       haveit=yes
10154                       break
10155                     fi
10156                   done
10157                   if test -z "$haveit"; then
10158                     if test -d "$additional_includedir"; then
10159                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
10160                     fi
10161                   fi
10162                 fi
10163               fi
10164             fi
10165                         if test -n "$found_la"; then
10166                                                         save_libdir="$libdir"
10167               case "$found_la" in
10168                 */* | *\\*) . "$found_la" ;;
10169                 *) . "./$found_la" ;;
10170               esac
10171               libdir="$save_libdir"
10172                             for dep in $dependency_libs; do
10173                 case "$dep" in
10174                   -L*)
10175                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10176                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
10177                       haveit=
10178                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
10179                         if test -n "$GCC"; then
10180                           case $host_os in
10181                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10182                           esac
10183                         fi
10184                       fi
10185                       if test -z "$haveit"; then
10186                         haveit=
10187                         for x in $LDFLAGS $LIBPTH; do
10188
10189   acl_save_prefix="$prefix"
10190   prefix="$acl_final_prefix"
10191   acl_save_exec_prefix="$exec_prefix"
10192   exec_prefix="$acl_final_exec_prefix"
10193   eval x=\"$x\"
10194   exec_prefix="$acl_save_exec_prefix"
10195   prefix="$acl_save_prefix"
10196
10197                           if test "X$x" = "X-L$additional_libdir"; then
10198                             haveit=yes
10199                             break
10200                           fi
10201                         done
10202                         if test -z "$haveit"; then
10203                           if test -d "$additional_libdir"; then
10204                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
10205                           fi
10206                         fi
10207                         haveit=
10208                         for x in $LDFLAGS $LTLIBPTH; do
10209
10210   acl_save_prefix="$prefix"
10211   prefix="$acl_final_prefix"
10212   acl_save_exec_prefix="$exec_prefix"
10213   exec_prefix="$acl_final_exec_prefix"
10214   eval x=\"$x\"
10215   exec_prefix="$acl_save_exec_prefix"
10216   prefix="$acl_save_prefix"
10217
10218                           if test "X$x" = "X-L$additional_libdir"; then
10219                             haveit=yes
10220                             break
10221                           fi
10222                         done
10223                         if test -z "$haveit"; then
10224                           if test -d "$additional_libdir"; then
10225                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
10226                           fi
10227                         fi
10228                       fi
10229                     fi
10230                     ;;
10231                   -R*)
10232                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10233                     if test "$enable_rpath" != no; then
10234                                                                   haveit=
10235                       for x in $rpathdirs; do
10236                         if test "X$x" = "X$dir"; then
10237                           haveit=yes
10238                           break
10239                         fi
10240                       done
10241                       if test -z "$haveit"; then
10242                         rpathdirs="$rpathdirs $dir"
10243                       fi
10244                                                                   haveit=
10245                       for x in $ltrpathdirs; do
10246                         if test "X$x" = "X$dir"; then
10247                           haveit=yes
10248                           break
10249                         fi
10250                       done
10251                       if test -z "$haveit"; then
10252                         ltrpathdirs="$ltrpathdirs $dir"
10253                       fi
10254                     fi
10255                     ;;
10256                   -l*)
10257                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10258                     ;;
10259                   *.la)
10260                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10261                     ;;
10262                   *)
10263                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
10264                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
10265                     ;;
10266                 esac
10267               done
10268             fi
10269           else
10270                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
10271             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
10272           fi
10273         fi
10274       fi
10275     done
10276   done
10277   if test "X$rpathdirs" != "X"; then
10278     if test -n "$hardcode_libdir_separator"; then
10279                         alldirs=
10280       for found_dir in $rpathdirs; do
10281         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10282       done
10283             acl_save_libdir="$libdir"
10284       libdir="$alldirs"
10285       eval flag=\"$hardcode_libdir_flag_spec\"
10286       libdir="$acl_save_libdir"
10287       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
10288     else
10289             for found_dir in $rpathdirs; do
10290         acl_save_libdir="$libdir"
10291         libdir="$found_dir"
10292         eval flag=\"$hardcode_libdir_flag_spec\"
10293         libdir="$acl_save_libdir"
10294         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
10295       done
10296     fi
10297   fi
10298   if test "X$ltrpathdirs" != "X"; then
10299             for found_dir in $ltrpathdirs; do
10300       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
10301     done
10302   fi
10303
10304     ac_cv_libpth_libs="$LIBPTH"
10305     ac_cv_libpth_ltlibs="$LTLIBPTH"
10306     ac_cv_libpth_cppflags="$INCPTH"
10307
10308 fi
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
10310 $as_echo "$ac_cv_libpth_libs" >&6; }
10311   LIBPTH="$ac_cv_libpth_libs"
10312   LTLIBPTH="$ac_cv_libpth_ltlibs"
10313   INCPTH="$ac_cv_libpth_cppflags"
10314
10315   for element in $INCPTH; do
10316     haveit=
10317     for x in $CPPFLAGS; do
10318
10319   acl_save_prefix="$prefix"
10320   prefix="$acl_final_prefix"
10321   acl_save_exec_prefix="$exec_prefix"
10322   exec_prefix="$acl_final_exec_prefix"
10323   eval x=\"$x\"
10324   exec_prefix="$acl_save_exec_prefix"
10325   prefix="$acl_save_prefix"
10326
10327       if test "X$x" = "X$element"; then
10328         haveit=yes
10329         break
10330       fi
10331     done
10332     if test -z "$haveit"; then
10333       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10334     fi
10335   done
10336
10337
10338
10339       HAVE_LIBPTH=yes
10340
10341
10342
10343       gl_have_pth=
10344       gl_save_LIBS="$LIBS"
10345       LIBS="$LIBS -lpth"
10346       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h.  */
10348 #include <pth.h>
10349 int
10350 main ()
10351 {
10352 pth_self();
10353   ;
10354   return 0;
10355 }
10356 _ACEOF
10357 if ac_fn_c_try_link "$LINENO"; then :
10358   gl_have_pth=yes
10359 fi
10360 rm -f core conftest.err conftest.$ac_objext \
10361     conftest$ac_exeext conftest.$ac_ext
10362       LIBS="$gl_save_LIBS"
10363       if test -n "$gl_have_pth"; then
10364         gl_threads_api=pth
10365         LIBTHREAD="$LIBPTH"
10366         LTLIBTHREAD="$LTLIBPTH"
10367         LIBMULTITHREAD="$LIBTHREAD"
10368         LTLIBMULTITHREAD="$LTLIBTHREAD"
10369
10370 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
10371
10372         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
10373           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
10374
10375 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
10376
10377             LIBTHREAD=
10378             LTLIBTHREAD=
10379           fi
10380         fi
10381       else
10382         CPPFLAGS="$gl_save_CPPFLAGS"
10383       fi
10384     fi
10385     if test -z "$gl_have_pthread"; then
10386       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
10387         if { case "$host_os" in
10388                mingw*) true;;
10389                *) false;;
10390              esac
10391            }; then
10392           gl_threads_api=win32
10393
10394 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
10395
10396         fi
10397       fi
10398     fi
10399   fi
10400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
10401 $as_echo_n "checking for multithread API to use... " >&6; }
10402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
10403 $as_echo "$gl_threads_api" >&6; }
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414      GNULIB_FCHMODAT=0;
10415   GNULIB_FSTATAT=0;
10416   GNULIB_FUTIMENS=0;
10417   GNULIB_LCHMOD=0;
10418   GNULIB_LSTAT=0;
10419   GNULIB_MKDIRAT=0;
10420   GNULIB_MKFIFO=0;
10421   GNULIB_MKFIFOAT=0;
10422   GNULIB_MKNOD=0;
10423   GNULIB_MKNODAT=0;
10424   GNULIB_STAT=0;
10425   GNULIB_UTIMENSAT=0;
10426     HAVE_FCHMODAT=1;
10427   HAVE_FSTATAT=1;
10428   HAVE_FUTIMENS=1;
10429   HAVE_LCHMOD=1;
10430   HAVE_LSTAT=1;
10431   HAVE_MKDIRAT=1;
10432   HAVE_MKFIFO=1;
10433   HAVE_MKFIFOAT=1;
10434   HAVE_MKNOD=1;
10435   HAVE_MKNODAT=1;
10436   HAVE_UTIMENSAT=1;
10437   REPLACE_FSTAT=0;
10438   REPLACE_FSTATAT=0;
10439   REPLACE_FUTIMENS=0;
10440   REPLACE_LSTAT=0;
10441   REPLACE_MKDIR=0;
10442   REPLACE_MKFIFO=0;
10443   REPLACE_MKNOD=0;
10444   REPLACE_STAT=0;
10445   REPLACE_UTIMENSAT=0;
10446
10447
10448
10449
10450
10451
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10453 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10454 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
10455   $as_echo_n "(cached) " >&6
10456 else
10457   rm -f conftest.sym conftest.file
10458 echo >conftest.file
10459 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10460   if test "$cross_compiling" = yes; then :
10461   ac_cv_func_lstat_dereferences_slashed_symlink=no
10462 else
10463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10464 /* end confdefs.h.  */
10465 $ac_includes_default
10466 int
10467 main ()
10468 {
10469 struct stat sbuf;
10470      /* Linux will dereference the symlink and fail, as required by POSIX.
10471         That is better in the sense that it means we will not
10472         have to compile and use the lstat wrapper.  */
10473      return lstat ("conftest.sym/", &sbuf) == 0;
10474   ;
10475   return 0;
10476 }
10477 _ACEOF
10478 if ac_fn_c_try_run "$LINENO"; then :
10479   ac_cv_func_lstat_dereferences_slashed_symlink=yes
10480 else
10481   ac_cv_func_lstat_dereferences_slashed_symlink=no
10482 fi
10483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10484   conftest.$ac_objext conftest.beam conftest.$ac_ext
10485 fi
10486
10487 else
10488   # If the `ln -s' command failed, then we probably don't even
10489   # have an lstat function.
10490   ac_cv_func_lstat_dereferences_slashed_symlink=no
10491 fi
10492 rm -f conftest.sym conftest.file
10493
10494 fi
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10496 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10497
10498 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10499
10500 cat >>confdefs.h <<_ACEOF
10501 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10502 _ACEOF
10503
10504
10505 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10506
10507
10508
10509
10510
10511
10512
10513
10514   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
10515
10516 fi
10517
10518
10519   GNULIB__EXIT=0;
10520   GNULIB_ATOLL=0;
10521   GNULIB_CALLOC_POSIX=0;
10522   GNULIB_CANONICALIZE_FILE_NAME=0;
10523   GNULIB_GETLOADAVG=0;
10524   GNULIB_GETSUBOPT=0;
10525   GNULIB_GRANTPT=0;
10526   GNULIB_MALLOC_POSIX=0;
10527   GNULIB_MKDTEMP=0;
10528   GNULIB_MKOSTEMP=0;
10529   GNULIB_MKOSTEMPS=0;
10530   GNULIB_MKSTEMP=0;
10531   GNULIB_MKSTEMPS=0;
10532   GNULIB_PTSNAME=0;
10533   GNULIB_PUTENV=0;
10534   GNULIB_RANDOM_R=0;
10535   GNULIB_REALLOC_POSIX=0;
10536   GNULIB_REALPATH=0;
10537   GNULIB_RPMATCH=0;
10538   GNULIB_SETENV=0;
10539   GNULIB_STRTOD=0;
10540   GNULIB_STRTOLL=0;
10541   GNULIB_STRTOULL=0;
10542   GNULIB_UNLOCKPT=0;
10543   GNULIB_UNSETENV=0;
10544     HAVE__EXIT=1;
10545   HAVE_ATOLL=1;
10546   HAVE_CANONICALIZE_FILE_NAME=1;
10547   HAVE_DECL_GETLOADAVG=1;
10548   HAVE_GETSUBOPT=1;
10549   HAVE_GRANTPT=1;
10550   HAVE_MKDTEMP=1;
10551   HAVE_MKOSTEMP=1;
10552   HAVE_MKOSTEMPS=1;
10553   HAVE_MKSTEMP=1;
10554   HAVE_MKSTEMPS=1;
10555   HAVE_PTSNAME=1;
10556   HAVE_RANDOM_R=1;
10557   HAVE_REALPATH=1;
10558   HAVE_RPMATCH=1;
10559   HAVE_SETENV=1;
10560   HAVE_STRTOD=1;
10561   HAVE_STRTOLL=1;
10562   HAVE_STRTOULL=1;
10563   HAVE_STRUCT_RANDOM_DATA=1;
10564   HAVE_SYS_LOADAVG_H=0;
10565   HAVE_UNLOCKPT=1;
10566   HAVE_UNSETENV=1;
10567   REPLACE_CALLOC=0;
10568   REPLACE_CANONICALIZE_FILE_NAME=0;
10569   REPLACE_MALLOC=0;
10570   REPLACE_MKSTEMP=0;
10571   REPLACE_PUTENV=0;
10572   REPLACE_REALLOC=0;
10573   REPLACE_REALPATH=0;
10574   REPLACE_SETENV=0;
10575   REPLACE_STRTOD=0;
10576   REPLACE_UNSETENV=0;
10577
10578
10579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
10580 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
10581 if ${gl_cv_func_malloc_posix+:} false; then :
10582   $as_echo_n "(cached) " >&6
10583 else
10584
10585                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10586 /* end confdefs.h.  */
10587
10588 int
10589 main ()
10590 {
10591 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
10592              choke me
10593              #endif
10594
10595   ;
10596   return 0;
10597 }
10598 _ACEOF
10599 if ac_fn_c_try_compile "$LINENO"; then :
10600   gl_cv_func_malloc_posix=yes
10601 else
10602   gl_cv_func_malloc_posix=no
10603 fi
10604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605
10606 fi
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
10608 $as_echo "$gl_cv_func_malloc_posix" >&6; }
10609
10610
10611
10612    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
10613 $as_echo_n "checking for mbstate_t... " >&6; }
10614 if ${ac_cv_type_mbstate_t+:} false; then :
10615   $as_echo_n "(cached) " >&6
10616 else
10617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618 /* end confdefs.h.  */
10619 $ac_includes_default
10620 #           include <wchar.h>
10621 int
10622 main ()
10623 {
10624 mbstate_t x; return sizeof x;
10625   ;
10626   return 0;
10627 }
10628 _ACEOF
10629 if ac_fn_c_try_compile "$LINENO"; then :
10630   ac_cv_type_mbstate_t=yes
10631 else
10632   ac_cv_type_mbstate_t=no
10633 fi
10634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10635 fi
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
10637 $as_echo "$ac_cv_type_mbstate_t" >&6; }
10638    if test $ac_cv_type_mbstate_t = yes; then
10639
10640 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
10641
10642    else
10643
10644 $as_echo "#define mbstate_t int" >>confdefs.h
10645
10646    fi
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10662 $as_echo_n "checking for a traditional japanese locale... " >&6; }
10663 if ${gt_cv_locale_ja+:} false; then :
10664   $as_echo_n "(cached) " >&6
10665 else
10666
10667     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h.  */
10669
10670 #include <locale.h>
10671 #include <time.h>
10672 #if HAVE_LANGINFO_CODESET
10673 # include <langinfo.h>
10674 #endif
10675 #include <stdlib.h>
10676 #include <string.h>
10677 struct tm t;
10678 char buf[16];
10679 int main ()
10680 {
10681   const char *p;
10682   /* Check whether the given locale name is recognized by the system.  */
10683   if (setlocale (LC_ALL, "") == NULL) return 1;
10684   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10685      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10686      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10687      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10688      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10689      some unit tests fail.  */
10690 #if HAVE_LANGINFO_CODESET
10691   {
10692     const char *cs = nl_langinfo (CODESET);
10693     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10694       return 1;
10695   }
10696 #endif
10697 #ifdef __CYGWIN__
10698   /* On Cygwin, avoid locale names without encoding suffix, because the
10699      locale_charset() function relies on the encoding suffix.  Note that
10700      LC_ALL is set on the command line.  */
10701   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10702 #endif
10703   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
10704      on Cygwin 1.5.x.  */
10705   if (MB_CUR_MAX == 1)
10706     return 1;
10707   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10708      This excludes the UTF-8 encoding.  */
10709   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10710   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10711   for (p = buf; *p != '\0'; p++)
10712     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10713       return 1;
10714   return 0;
10715 }
10716
10717 _ACEOF
10718     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10719   (eval $ac_link) 2>&5
10720   ac_status=$?
10721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10722   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10723       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10724       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10725       # configure script would override the LC_ALL setting. Likewise for
10726       # LC_CTYPE, which is also set at the beginning of the configure script.
10727       # Test for the AIX locale name.
10728       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10729         gt_cv_locale_ja=ja_JP
10730       else
10731         # Test for the locale name with explicit encoding suffix.
10732         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10733           gt_cv_locale_ja=ja_JP.EUC-JP
10734         else
10735           # Test for the HP-UX, OSF/1, NetBSD locale name.
10736           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10737             gt_cv_locale_ja=ja_JP.eucJP
10738           else
10739             # Test for the IRIX, FreeBSD locale name.
10740             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10741               gt_cv_locale_ja=ja_JP.EUC
10742             else
10743               # Test for the Solaris 7 locale name.
10744               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10745                 gt_cv_locale_ja=ja
10746               else
10747                 # Special test for NetBSD 1.6.
10748                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10749                   gt_cv_locale_ja=ja_JP.eucJP
10750                 else
10751                   # None found.
10752                   gt_cv_locale_ja=none
10753                 fi
10754               fi
10755             fi
10756           fi
10757         fi
10758       fi
10759     fi
10760     rm -fr conftest*
10761
10762 fi
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10764 $as_echo "$gt_cv_locale_ja" >&6; }
10765   LOCALE_JA=$gt_cv_locale_ja
10766
10767
10768
10769
10770
10771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10772 $as_echo_n "checking for a transitional chinese locale... " >&6; }
10773 if ${gt_cv_locale_zh_CN+:} false; then :
10774   $as_echo_n "(cached) " >&6
10775 else
10776
10777     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h.  */
10779
10780 #include <locale.h>
10781 #include <stdlib.h>
10782 #include <time.h>
10783 #if HAVE_LANGINFO_CODESET
10784 # include <langinfo.h>
10785 #endif
10786 #include <stdlib.h>
10787 #include <string.h>
10788 struct tm t;
10789 char buf[16];
10790 int main ()
10791 {
10792   const char *p;
10793   /* Check whether the given locale name is recognized by the system.  */
10794   if (setlocale (LC_ALL, "") == NULL) return 1;
10795   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10796      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10797      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10798      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10799      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10800      some unit tests fail.  */
10801 #if HAVE_LANGINFO_CODESET
10802   {
10803     const char *cs = nl_langinfo (CODESET);
10804     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10805       return 1;
10806   }
10807 #endif
10808 #ifdef __CYGWIN__
10809   /* On Cygwin, avoid locale names without encoding suffix, because the
10810      locale_charset() function relies on the encoding suffix.  Note that
10811      LC_ALL is set on the command line.  */
10812   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10813 #endif
10814   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10815      This excludes the UTF-8 encoding.  */
10816   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10817   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10818   for (p = buf; *p != '\0'; p++)
10819     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10820       return 1;
10821   /* Check whether a typical GB18030 multibyte sequence is recognized as a
10822      single wide character.  This excludes the GB2312 and GBK encodings.  */
10823   if (mblen ("\203\062\332\066", 5) != 4)
10824     return 1;
10825   return 0;
10826 }
10827
10828 _ACEOF
10829     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10830   (eval $ac_link) 2>&5
10831   ac_status=$?
10832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10833   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10834       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10835       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10836       # configure script would override the LC_ALL setting. Likewise for
10837       # LC_CTYPE, which is also set at the beginning of the configure script.
10838       # Test for the locale name without encoding suffix.
10839       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10840         gt_cv_locale_zh_CN=zh_CN
10841       else
10842         # Test for the locale name with explicit encoding suffix.
10843         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10844           gt_cv_locale_zh_CN=zh_CN.GB18030
10845         else
10846           # None found.
10847           gt_cv_locale_zh_CN=none
10848         fi
10849       fi
10850     else
10851       # If there was a link error, due to mblen(), the system is so old that
10852       # it certainly doesn't have a chinese locale.
10853       gt_cv_locale_zh_CN=none
10854     fi
10855     rm -fr conftest*
10856
10857 fi
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10859 $as_echo "$gt_cv_locale_zh_CN" >&6; }
10860   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10861
10862
10863
10864
10865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10866 $as_echo_n "checking for a french Unicode locale... " >&6; }
10867 if ${gt_cv_locale_fr_utf8+:} false; then :
10868   $as_echo_n "(cached) " >&6
10869 else
10870
10871     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h.  */
10873
10874 #include <locale.h>
10875 #include <time.h>
10876 #if HAVE_LANGINFO_CODESET
10877 # include <langinfo.h>
10878 #endif
10879 #include <stdlib.h>
10880 #include <string.h>
10881 struct tm t;
10882 char buf[16];
10883 int main () {
10884   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
10885      imitates locale dependent behaviour by looking at the environment
10886      variables, and all locales use the UTF-8 encoding.  */
10887 #if !(defined __BEOS__ || defined __HAIKU__)
10888   /* Check whether the given locale name is recognized by the system.  */
10889   if (setlocale (LC_ALL, "") == NULL) return 1;
10890   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10891      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10892      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10893      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10894      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10895      some unit tests fail.  */
10896 # if HAVE_LANGINFO_CODESET
10897   {
10898     const char *cs = nl_langinfo (CODESET);
10899     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10900       return 1;
10901   }
10902 # endif
10903 # ifdef __CYGWIN__
10904   /* On Cygwin, avoid locale names without encoding suffix, because the
10905      locale_charset() function relies on the encoding suffix.  Note that
10906      LC_ALL is set on the command line.  */
10907   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10908 # endif
10909   /* Check whether in the abbreviation of the second month, the second
10910      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10911      two bytes long, with UTF-8 encoding.  */
10912   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10913   if (strftime (buf, sizeof (buf), "%b", &t) < 4
10914       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10915     return 1;
10916 #endif
10917   /* Check whether the decimal separator is a comma.
10918      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10919      are nl_langinfo(RADIXCHAR) are both ".".  */
10920   if (localeconv () ->decimal_point[0] != ',') return 1;
10921   return 0;
10922 }
10923
10924 _ACEOF
10925     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10926   (eval $ac_link) 2>&5
10927   ac_status=$?
10928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10929   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10930       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10931       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10932       # configure script would override the LC_ALL setting. Likewise for
10933       # LC_CTYPE, which is also set at the beginning of the configure script.
10934       # Test for the usual locale name.
10935       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10936         gt_cv_locale_fr_utf8=fr_FR
10937       else
10938         # Test for the locale name with explicit encoding suffix.
10939         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10940           gt_cv_locale_fr_utf8=fr_FR.UTF-8
10941         else
10942           # Test for the Solaris 7 locale name.
10943           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10944             gt_cv_locale_fr_utf8=fr.UTF-8
10945           else
10946             # None found.
10947             gt_cv_locale_fr_utf8=none
10948           fi
10949         fi
10950       fi
10951     fi
10952     rm -fr conftest*
10953
10954 fi
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10956 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10957   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971   GNULIB_MEMCHR=0;
10972   GNULIB_MEMMEM=0;
10973   GNULIB_MEMPCPY=0;
10974   GNULIB_MEMRCHR=0;
10975   GNULIB_RAWMEMCHR=0;
10976   GNULIB_STPCPY=0;
10977   GNULIB_STPNCPY=0;
10978   GNULIB_STRCHRNUL=0;
10979   GNULIB_STRDUP=0;
10980   GNULIB_STRNCAT=0;
10981   GNULIB_STRNDUP=0;
10982   GNULIB_STRNLEN=0;
10983   GNULIB_STRPBRK=0;
10984   GNULIB_STRSEP=0;
10985   GNULIB_STRSTR=0;
10986   GNULIB_STRCASESTR=0;
10987   GNULIB_STRTOK_R=0;
10988   GNULIB_MBSLEN=0;
10989   GNULIB_MBSNLEN=0;
10990   GNULIB_MBSCHR=0;
10991   GNULIB_MBSRCHR=0;
10992   GNULIB_MBSSTR=0;
10993   GNULIB_MBSCASECMP=0;
10994   GNULIB_MBSNCASECMP=0;
10995   GNULIB_MBSPCASECMP=0;
10996   GNULIB_MBSCASESTR=0;
10997   GNULIB_MBSCSPN=0;
10998   GNULIB_MBSPBRK=0;
10999   GNULIB_MBSSPN=0;
11000   GNULIB_MBSSEP=0;
11001   GNULIB_MBSTOK_R=0;
11002   GNULIB_STRERROR=0;
11003   GNULIB_STRSIGNAL=0;
11004   GNULIB_STRVERSCMP=0;
11005   HAVE_MBSLEN=0;
11006     HAVE_MEMCHR=1;
11007   HAVE_DECL_MEMMEM=1;
11008   HAVE_MEMPCPY=1;
11009   HAVE_DECL_MEMRCHR=1;
11010   HAVE_RAWMEMCHR=1;
11011   HAVE_STPCPY=1;
11012   HAVE_STPNCPY=1;
11013   HAVE_STRCHRNUL=1;
11014   HAVE_DECL_STRDUP=1;
11015   HAVE_DECL_STRNDUP=1;
11016   HAVE_DECL_STRNLEN=1;
11017   HAVE_STRPBRK=1;
11018   HAVE_STRSEP=1;
11019   HAVE_STRCASESTR=1;
11020   HAVE_DECL_STRTOK_R=1;
11021   HAVE_DECL_STRSIGNAL=1;
11022   HAVE_STRVERSCMP=1;
11023   REPLACE_MEMCHR=0;
11024   REPLACE_MEMMEM=0;
11025   REPLACE_STPNCPY=0;
11026   REPLACE_STRDUP=0;
11027   REPLACE_STRSTR=0;
11028   REPLACE_STRCASESTR=0;
11029   REPLACE_STRERROR=0;
11030   REPLACE_STRNCAT=0;
11031   REPLACE_STRNDUP=0;
11032   REPLACE_STRNLEN=0;
11033   REPLACE_STRSIGNAL=0;
11034   REPLACE_STRTOK_R=0;
11035   UNDEFINE_STRTOK_R=0;
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
11050   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
11051   # irrelevant for anonymous mappings.
11052   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11053 if test "x$ac_cv_func_mmap" = xyes; then :
11054   gl_have_mmap=yes
11055 else
11056   gl_have_mmap=no
11057 fi
11058
11059
11060   # Try to allow MAP_ANONYMOUS.
11061   gl_have_mmap_anonymous=no
11062   if test $gl_have_mmap = yes; then
11063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
11064 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
11065     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h.  */
11067
11068 #include <sys/mman.h>
11069 #ifdef MAP_ANONYMOUS
11070     I cant identify this map.
11071 #endif
11072
11073 _ACEOF
11074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11075   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
11076   gl_have_mmap_anonymous=yes
11077 fi
11078 rm -f conftest*
11079
11080     if test $gl_have_mmap_anonymous != yes; then
11081       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h.  */
11083
11084 #include <sys/mman.h>
11085 #ifdef MAP_ANON
11086     I cant identify this map.
11087 #endif
11088
11089 _ACEOF
11090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11091   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
11092
11093 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
11094
11095          gl_have_mmap_anonymous=yes
11096 fi
11097 rm -f conftest*
11098
11099     fi
11100     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
11101 $as_echo "$gl_have_mmap_anonymous" >&6; }
11102     if test $gl_have_mmap_anonymous = yes; then
11103
11104 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
11105
11106     fi
11107   fi
11108
11109
11110   :
11111
11112
11113
11114
11115
11116
11117   :
11118
11119
11120
11121
11122
11123
11124
11125
11126   :
11127
11128
11129
11130
11131
11132   if test $ac_cv_func_memchr = yes; then
11133     # Detect platform-specific bugs in some versions of glibc:
11134     # memchr should not dereference anything with length 0
11135     #   http://bugzilla.redhat.com/499689
11136     # memchr should not dereference overestimated length after a match
11137     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
11138     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
11139     # Assume that memchr works on platforms that lack mprotect.
11140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
11141 $as_echo_n "checking whether memchr works... " >&6; }
11142 if ${gl_cv_func_memchr_works+:} false; then :
11143   $as_echo_n "(cached) " >&6
11144 else
11145   if test "$cross_compiling" = yes; then :
11146          gl_cv_func_memchr_works="guessing no"
11147 else
11148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h.  */
11150
11151 #include <string.h>
11152 #if HAVE_SYS_MMAN_H
11153 # include <fcntl.h>
11154 # include <unistd.h>
11155 # include <sys/types.h>
11156 # include <sys/mman.h>
11157 # ifndef MAP_FILE
11158 #  define MAP_FILE 0
11159 # endif
11160 #endif
11161
11162 int
11163 main ()
11164 {
11165
11166   char *fence = NULL;
11167 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
11168 # if HAVE_MAP_ANONYMOUS
11169   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
11170   const int fd = -1;
11171 # else /* !HAVE_MAP_ANONYMOUS */
11172   const int flags = MAP_FILE | MAP_PRIVATE;
11173   int fd = open ("/dev/zero", O_RDONLY, 0666);
11174   if (fd >= 0)
11175 # endif
11176     {
11177       int pagesize = getpagesize ();
11178       char *two_pages =
11179         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
11180                        flags, fd, 0);
11181       if (two_pages != (char *)(-1)
11182           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
11183         fence = two_pages + pagesize;
11184     }
11185 #endif
11186   if (fence)
11187     {
11188       if (memchr (fence, 0, 0))
11189         return 1;
11190       strcpy (fence - 9, "12345678");
11191       if (memchr (fence - 9, 0, 79) != fence - 1)
11192         return 2;
11193     }
11194   return 0;
11195
11196   ;
11197   return 0;
11198 }
11199 _ACEOF
11200 if ac_fn_c_try_run "$LINENO"; then :
11201   gl_cv_func_memchr_works=yes
11202 else
11203   gl_cv_func_memchr_works=no
11204 fi
11205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11206   conftest.$ac_objext conftest.beam conftest.$ac_ext
11207 fi
11208
11209 fi
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
11211 $as_echo "$gl_cv_func_memchr_works" >&6; }
11212     if test "$gl_cv_func_memchr_works" != yes; then
11213       REPLACE_MEMCHR=1
11214     fi
11215   else
11216     HAVE_MEMCHR=0
11217   fi
11218   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
11219
11220
11221
11222
11223
11224
11225
11226
11227   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
11228
11229
11230   for ac_header in bp-sym.h
11231 do :
11232   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
11233 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
11234   cat >>confdefs.h <<_ACEOF
11235 #define HAVE_BP_SYM_H 1
11236 _ACEOF
11237
11238 fi
11239
11240 done
11241
11242
11243   fi
11244
11245
11246     gl_cv_c_multiarch=no
11247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h.  */
11249 #ifndef __APPLE_CC__
11250          not a universal capable compiler
11251         #endif
11252         typedef int dummy;
11253
11254 _ACEOF
11255 if ac_fn_c_try_compile "$LINENO"; then :
11256
11257                arch=
11258      prev=
11259      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
11260        if test -n "$prev"; then
11261          case $word in
11262            i?86 | x86_64 | ppc | ppc64)
11263              if test -z "$arch" || test "$arch" = "$word"; then
11264                arch="$word"
11265              else
11266                gl_cv_c_multiarch=yes
11267              fi
11268              ;;
11269          esac
11270          prev=
11271        else
11272          if test "x$word" = "x-arch"; then
11273            prev=arch
11274          fi
11275        fi
11276      done
11277
11278 fi
11279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11280   if test $gl_cv_c_multiarch = yes; then
11281
11282 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11283
11284     APPLE_UNIVERSAL_BUILD=1
11285   else
11286     APPLE_UNIVERSAL_BUILD=0
11287   fi
11288
11289
11290
11291
11292
11293
11294
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
11296 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
11297 if ${gl_cv_var__system_configuration+:} false; then :
11298   $as_echo_n "(cached) " >&6
11299 else
11300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h.  */
11302 #include <sys/systemcfg.h>
11303
11304 int
11305 main ()
11306 {
11307 double x = _system_configuration.physmem;
11308                         if (x > 0.0) return 0;
11309   ;
11310   return 0;
11311 }
11312 _ACEOF
11313 if ac_fn_c_try_link "$LINENO"; then :
11314   gl_cv_var__system_configuration=yes
11315 else
11316   gl_cv_var__system_configuration=no
11317 fi
11318 rm -f core conftest.err conftest.$ac_objext \
11319     conftest$ac_exeext conftest.$ac_ext
11320 fi
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var__system_configuration" >&5
11322 $as_echo "$gl_cv_var__system_configuration" >&6; }
11323
11324     if test $gl_cv_var__system_configuration = yes; then
11325
11326 $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
11327
11328     fi
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
11353 $as_echo_n "checking for ssize_t... " >&6; }
11354 if ${gt_cv_ssize_t+:} false; then :
11355   $as_echo_n "(cached) " >&6
11356 else
11357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358 /* end confdefs.h.  */
11359 #include <sys/types.h>
11360 int
11361 main ()
11362 {
11363 int x = sizeof (ssize_t *) + sizeof (ssize_t);
11364             return !x;
11365   ;
11366   return 0;
11367 }
11368 _ACEOF
11369 if ac_fn_c_try_compile "$LINENO"; then :
11370   gt_cv_ssize_t=yes
11371 else
11372   gt_cv_ssize_t=no
11373 fi
11374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11375 fi
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
11377 $as_echo "$gt_cv_ssize_t" >&6; }
11378   if test $gt_cv_ssize_t = no; then
11379
11380 $as_echo "#define ssize_t int" >>confdefs.h
11381
11382   fi
11383
11384
11385       ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11386 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
11387   ac_have_decl=1
11388 else
11389   ac_have_decl=0
11390 fi
11391
11392 cat >>confdefs.h <<_ACEOF
11393 #define HAVE_DECL_SNPRINTF $ac_have_decl
11394 _ACEOF
11395
11396
11397
11398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5
11399 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
11400 if ${ac_cv_win_or_dos+:} false; then :
11401   $as_echo_n "(cached) " >&6
11402 else
11403
11404         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h.  */
11406
11407 int
11408 main ()
11409 {
11410
11411 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
11412 neither MSDOS nor Windows
11413 #endif
11414   ;
11415   return 0;
11416 }
11417 _ACEOF
11418 if ac_fn_c_try_compile "$LINENO"; then :
11419   ac_cv_win_or_dos=yes
11420 else
11421   ac_cv_win_or_dos=no
11422 fi
11423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11424
11425 fi
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5
11427 $as_echo "$ac_cv_win_or_dos" >&6; }
11428
11429     if test x"$ac_cv_win_or_dos" = xyes; then
11430       ac_fs_accepts_drive_letter_prefix=1
11431       ac_fs_backslash_is_file_name_separator=1
11432       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5
11433 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
11434 if ${ac_cv_drive_letter_can_be_relative+:} false; then :
11435   $as_echo_n "(cached) " >&6
11436 else
11437
11438           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h.  */
11440
11441 int
11442 main ()
11443 {
11444
11445 #if defined __CYGWIN__
11446 drive letters are always absolute
11447 #endif
11448   ;
11449   return 0;
11450 }
11451 _ACEOF
11452 if ac_fn_c_try_compile "$LINENO"; then :
11453   ac_cv_drive_letter_can_be_relative=yes
11454 else
11455   ac_cv_drive_letter_can_be_relative=no
11456 fi
11457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11458
11459 fi
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5
11461 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
11462       if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
11463         ac_fs_drive_letter_can_be_relative=1
11464       else
11465         ac_fs_drive_letter_can_be_relative=0
11466       fi
11467     else
11468       ac_fs_accepts_drive_letter_prefix=0
11469       ac_fs_backslash_is_file_name_separator=0
11470       ac_fs_drive_letter_can_be_relative=0
11471     fi
11472
11473
11474 cat >>confdefs.h <<_ACEOF
11475 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
11476 _ACEOF
11477
11478
11479
11480
11481
11482 cat >>confdefs.h <<_ACEOF
11483 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
11484 _ACEOF
11485
11486
11487
11488 cat >>confdefs.h <<_ACEOF
11489 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
11490 _ACEOF
11491
11492
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11494 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11495 if ${ac_cv_header_stdbool_h+:} false; then :
11496   $as_echo_n "(cached) " >&6
11497 else
11498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h.  */
11500
11501              #include <stdbool.h>
11502              #ifndef bool
11503               "error: bool is not defined"
11504              #endif
11505              #ifndef false
11506               "error: false is not defined"
11507              #endif
11508              #if false
11509               "error: false is not 0"
11510              #endif
11511              #ifndef true
11512               "error: true is not defined"
11513              #endif
11514              #if true != 1
11515               "error: true is not 1"
11516              #endif
11517              #ifndef __bool_true_false_are_defined
11518               "error: __bool_true_false_are_defined is not defined"
11519              #endif
11520
11521              struct s { _Bool s: 1; _Bool t; } s;
11522
11523              char a[true == 1 ? 1 : -1];
11524              char b[false == 0 ? 1 : -1];
11525              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11526              char d[(bool) 0.5 == true ? 1 : -1];
11527              /* See body of main program for 'e'.  */
11528              char f[(_Bool) 0.0 == false ? 1 : -1];
11529              char g[true];
11530              char h[sizeof (_Bool)];
11531              char i[sizeof s.t];
11532              enum { j = false, k = true, l = false * true, m = true * 256 };
11533              /* The following fails for
11534                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11535              _Bool n[m];
11536              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11537              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11538              /* Catch a bug in an HP-UX C compiler.  See
11539                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11540                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11541               */
11542              _Bool q = true;
11543              _Bool *pq = &q;
11544
11545 int
11546 main ()
11547 {
11548
11549              bool e = &s;
11550              *pq |= q;
11551              *pq |= ! q;
11552              /* Refer to every declared value, to avoid compiler optimizations.  */
11553              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11554                      + !m + !n + !o + !p + !q + !pq);
11555
11556   ;
11557   return 0;
11558 }
11559 _ACEOF
11560 if ac_fn_c_try_compile "$LINENO"; then :
11561   ac_cv_header_stdbool_h=yes
11562 else
11563   ac_cv_header_stdbool_h=no
11564 fi
11565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11566 fi
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11568 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11569    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11570 if test "x$ac_cv_type__Bool" = xyes; then :
11571
11572 cat >>confdefs.h <<_ACEOF
11573 #define HAVE__BOOL 1
11574 _ACEOF
11575
11576
11577 fi
11578
11579    if test $ac_cv_header_stdbool_h = yes; then
11580
11581 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
11582
11583    fi
11584
11585     REPLACE_NULL=0;
11586   HAVE_WCHAR_T=1;
11587   STDDEF_H='';
11588
11589
11590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11591 $as_echo_n "checking for wchar_t... " >&6; }
11592 if ${gt_cv_c_wchar_t+:} false; then :
11593   $as_echo_n "(cached) " >&6
11594 else
11595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596 /* end confdefs.h.  */
11597 #include <stddef.h>
11598        wchar_t foo = (wchar_t)'\0';
11599 int
11600 main ()
11601 {
11602
11603   ;
11604   return 0;
11605 }
11606 _ACEOF
11607 if ac_fn_c_try_compile "$LINENO"; then :
11608   gt_cv_c_wchar_t=yes
11609 else
11610   gt_cv_c_wchar_t=no
11611 fi
11612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11613 fi
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11615 $as_echo "$gt_cv_c_wchar_t" >&6; }
11616   if test $gt_cv_c_wchar_t = yes; then
11617
11618 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11619
11620   fi
11621
11622
11623
11624
11625
11626
11627
11628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
11629 $as_echo_n "checking for long long int... " >&6; }
11630 if ${ac_cv_type_long_long_int+:} false; then :
11631   $as_echo_n "(cached) " >&6
11632 else
11633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h.  */
11635
11636   /* For now, do not test the preprocessor; as of 2007 there are too many
11637          implementations with broken preprocessors.  Perhaps this can
11638          be revisited in 2012.  In the meantime, code should not expect
11639          #if to work with literals wider than 32 bits.  */
11640       /* Test literals.  */
11641       long long int ll = 9223372036854775807ll;
11642       long long int nll = -9223372036854775807LL;
11643       unsigned long long int ull = 18446744073709551615ULL;
11644       /* Test constant expressions.   */
11645       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11646                      ? 1 : -1)];
11647       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11648                      ? 1 : -1)];
11649       int i = 63;
11650 int
11651 main ()
11652 {
11653 /* Test availability of runtime routines for shift and division.  */
11654       long long int llmax = 9223372036854775807ll;
11655       unsigned long long int ullmax = 18446744073709551615ull;
11656       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11657               | (llmax / ll) | (llmax % ll)
11658               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11659               | (ullmax / ull) | (ullmax % ull));
11660   ;
11661   return 0;
11662 }
11663
11664 _ACEOF
11665 if ac_fn_c_try_link "$LINENO"; then :
11666                           if test "$cross_compiling" = yes; then :
11667   ac_cv_type_long_long_int=yes
11668 else
11669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h.  */
11671 #include <limits.h>
11672                #ifndef LLONG_MAX
11673                # define HALF \
11674                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
11675                # define LLONG_MAX (HALF - 1 + HALF)
11676                #endif
11677 int
11678 main ()
11679 {
11680 long long int n = 1;
11681                int i;
11682                for (i = 0; ; i++)
11683                  {
11684                    long long int m = n << i;
11685                    if (m >> i != n)
11686                      return 1;
11687                    if (LLONG_MAX / 2 < m)
11688                      break;
11689                  }
11690                return 0;
11691   ;
11692   return 0;
11693 }
11694 _ACEOF
11695 if ac_fn_c_try_run "$LINENO"; then :
11696   ac_cv_type_long_long_int=yes
11697 else
11698   ac_cv_type_long_long_int=no
11699 fi
11700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11701   conftest.$ac_objext conftest.beam conftest.$ac_ext
11702 fi
11703
11704 else
11705   ac_cv_type_long_long_int=no
11706 fi
11707 rm -f core conftest.err conftest.$ac_objext \
11708     conftest$ac_exeext conftest.$ac_ext
11709 fi
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
11711 $as_echo "$ac_cv_type_long_long_int" >&6; }
11712   if test $ac_cv_type_long_long_int = yes; then
11713
11714 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11715
11716   fi
11717
11718
11719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
11720 $as_echo_n "checking for unsigned long long int... " >&6; }
11721 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
11722   $as_echo_n "(cached) " >&6
11723 else
11724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h.  */
11726
11727   /* For now, do not test the preprocessor; as of 2007 there are too many
11728          implementations with broken preprocessors.  Perhaps this can
11729          be revisited in 2012.  In the meantime, code should not expect
11730          #if to work with literals wider than 32 bits.  */
11731       /* Test literals.  */
11732       long long int ll = 9223372036854775807ll;
11733       long long int nll = -9223372036854775807LL;
11734       unsigned long long int ull = 18446744073709551615ULL;
11735       /* Test constant expressions.   */
11736       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11737                      ? 1 : -1)];
11738       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11739                      ? 1 : -1)];
11740       int i = 63;
11741 int
11742 main ()
11743 {
11744 /* Test availability of runtime routines for shift and division.  */
11745       long long int llmax = 9223372036854775807ll;
11746       unsigned long long int ullmax = 18446744073709551615ull;
11747       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11748               | (llmax / ll) | (llmax % ll)
11749               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11750               | (ullmax / ull) | (ullmax % ull));
11751   ;
11752   return 0;
11753 }
11754
11755 _ACEOF
11756 if ac_fn_c_try_link "$LINENO"; then :
11757   ac_cv_type_unsigned_long_long_int=yes
11758 else
11759   ac_cv_type_unsigned_long_long_int=no
11760 fi
11761 rm -f core conftest.err conftest.$ac_objext \
11762     conftest$ac_exeext conftest.$ac_ext
11763 fi
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
11765 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
11766   if test $ac_cv_type_unsigned_long_long_int = yes; then
11767
11768 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
11769
11770   fi
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
11784 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
11785 if ${gl_cv_prog_as_underscore+:} false; then :
11786   $as_echo_n "(cached) " >&6
11787 else
11788   cat > conftest.c <<EOF
11789 #ifdef __cplusplus
11790 extern "C" int foo (void);
11791 #endif
11792 int foo(void) { return 0; }
11793 EOF
11794      # Look for the assembly language name in the .s file.
11795      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
11796   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11797   (eval $ac_try) 2>&5
11798   ac_status=$?
11799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11800   test $ac_status = 0; }; } >/dev/null 2>&1
11801      if grep _foo conftest.s >/dev/null ; then
11802        gl_cv_prog_as_underscore=yes
11803      else
11804        gl_cv_prog_as_underscore=no
11805      fi
11806      rm -f conftest*
11807
11808 fi
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
11810 $as_echo "$gl_cv_prog_as_underscore" >&6; }
11811   if test $gl_cv_prog_as_underscore = yes; then
11812     USER_LABEL_PREFIX=_
11813   else
11814     USER_LABEL_PREFIX=
11815   fi
11816
11817 cat >>confdefs.h <<_ACEOF
11818 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
11819 _ACEOF
11820
11821   ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846   :
11847
11848
11849
11850
11851
11852
11853
11854      if test $gl_cv_have_include_next = yes; then
11855        gl_cv_next_string_h='<'string.h'>'
11856      else
11857        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11858 $as_echo_n "checking absolute name of <string.h>... " >&6; }
11859 if ${gl_cv_next_string_h+:} false; then :
11860   $as_echo_n "(cached) " >&6
11861 else
11862
11863           if test $ac_cv_header_string_h = yes; then
11864             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h.  */
11866 #include <string.h>
11867
11868 _ACEOF
11869                                                                                                 case "$host_os" in
11870               aix*) gl_absname_cpp="$ac_cpp -C" ;;
11871               *)    gl_absname_cpp="$ac_cpp" ;;
11872             esac
11873                                                 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11874                sed -n '\#/string.h#{
11875                  s#.*"\(.*/string.h\)".*#\1#
11876                  s#^/[^/]#//&#
11877                  p
11878                  q
11879                }'`'"'
11880           else
11881             gl_cv_next_string_h='<'string.h'>'
11882           fi
11883
11884 fi
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11886 $as_echo "$gl_cv_next_string_h" >&6; }
11887      fi
11888      NEXT_STRING_H=$gl_cv_next_string_h
11889
11890      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11891        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11892        gl_next_as_first_directive='<'string.h'>'
11893      else
11894        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11895        gl_next_as_first_directive=$gl_cv_next_string_h
11896      fi
11897      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11898
11899
11900
11901
11902
11903     for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal      strverscmp; do
11904     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11905     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11906 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11907 if eval \${$as_gl_Symbol+:} false; then :
11908   $as_echo_n "(cached) " >&6
11909 else
11910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h.  */
11912 #include <string.h>
11913
11914 int
11915 main ()
11916 {
11917 #undef $gl_func
11918   (void) $gl_func;
11919   ;
11920   return 0;
11921 }
11922 _ACEOF
11923 if ac_fn_c_try_compile "$LINENO"; then :
11924   eval "$as_gl_Symbol=yes"
11925 else
11926   eval "$as_gl_Symbol=no"
11927 fi
11928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11929 fi
11930 eval ac_res=\$$as_gl_Symbol
11931                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11932 $as_echo "$ac_res" >&6; }
11933      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
11934   cat >>confdefs.h <<_ACEOF
11935 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11936 _ACEOF
11937
11938                      eval ac_cv_have_decl_$gl_func=yes
11939 fi
11940       done
11941
11942
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11944 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11945 if ${ac_cv_header_stat_broken+:} false; then :
11946   $as_echo_n "(cached) " >&6
11947 else
11948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11949 /* end confdefs.h.  */
11950 #include <sys/types.h>
11951 #include <sys/stat.h>
11952
11953 #if defined S_ISBLK && defined S_IFDIR
11954 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11955 #endif
11956
11957 #if defined S_ISBLK && defined S_IFCHR
11958 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11959 #endif
11960
11961 #if defined S_ISLNK && defined S_IFREG
11962 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11963 #endif
11964
11965 #if defined S_ISSOCK && defined S_IFREG
11966 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11967 #endif
11968
11969 _ACEOF
11970 if ac_fn_c_try_compile "$LINENO"; then :
11971   ac_cv_header_stat_broken=no
11972 else
11973   ac_cv_header_stat_broken=yes
11974 fi
11975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976 fi
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11978 $as_echo "$ac_cv_header_stat_broken" >&6; }
11979 if test $ac_cv_header_stat_broken = yes; then
11980
11981 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11982
11983 fi
11984
11985
11986
11987
11988
11989
11990 # Check whether --enable-largefile was given.
11991 if test "${enable_largefile+set}" = set; then :
11992   enableval=$enable_largefile;
11993 fi
11994
11995 if test "$enable_largefile" != no; then
11996
11997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11998 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11999 if ${ac_cv_sys_largefile_CC+:} false; then :
12000   $as_echo_n "(cached) " >&6
12001 else
12002   ac_cv_sys_largefile_CC=no
12003      if test "$GCC" != yes; then
12004        ac_save_CC=$CC
12005        while :; do
12006          # IRIX 6.2 and later do not support large files by default,
12007          # so use the C compiler's -n32 option if that helps.
12008          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h.  */
12010 #include <sys/types.h>
12011  /* Check that off_t can represent 2**63 - 1 correctly.
12012     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12013     since some C++ compilers masquerading as C compilers
12014     incorrectly reject 9223372036854775807.  */
12015 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12016   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12017                        && LARGE_OFF_T % 2147483647 == 1)
12018                       ? 1 : -1];
12019 int
12020 main ()
12021 {
12022
12023   ;
12024   return 0;
12025 }
12026 _ACEOF
12027          if ac_fn_c_try_compile "$LINENO"; then :
12028   break
12029 fi
12030 rm -f core conftest.err conftest.$ac_objext
12031          CC="$CC -n32"
12032          if ac_fn_c_try_compile "$LINENO"; then :
12033   ac_cv_sys_largefile_CC=' -n32'; break
12034 fi
12035 rm -f core conftest.err conftest.$ac_objext
12036          break
12037        done
12038        CC=$ac_save_CC
12039        rm -f conftest.$ac_ext
12040     fi
12041 fi
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12043 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12044   if test "$ac_cv_sys_largefile_CC" != no; then
12045     CC=$CC$ac_cv_sys_largefile_CC
12046   fi
12047
12048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12049 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12050 if ${ac_cv_sys_file_offset_bits+:} false; then :
12051   $as_echo_n "(cached) " >&6
12052 else
12053   while :; do
12054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055 /* end confdefs.h.  */
12056 #include <sys/types.h>
12057  /* Check that off_t can represent 2**63 - 1 correctly.
12058     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12059     since some C++ compilers masquerading as C compilers
12060     incorrectly reject 9223372036854775807.  */
12061 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12062   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12063                        && LARGE_OFF_T % 2147483647 == 1)
12064                       ? 1 : -1];
12065 int
12066 main ()
12067 {
12068
12069   ;
12070   return 0;
12071 }
12072 _ACEOF
12073 if ac_fn_c_try_compile "$LINENO"; then :
12074   ac_cv_sys_file_offset_bits=no; break
12075 fi
12076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h.  */
12079 #define _FILE_OFFSET_BITS 64
12080 #include <sys/types.h>
12081  /* Check that off_t can represent 2**63 - 1 correctly.
12082     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12083     since some C++ compilers masquerading as C compilers
12084     incorrectly reject 9223372036854775807.  */
12085 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12086   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12087                        && LARGE_OFF_T % 2147483647 == 1)
12088                       ? 1 : -1];
12089 int
12090 main ()
12091 {
12092
12093   ;
12094   return 0;
12095 }
12096 _ACEOF
12097 if ac_fn_c_try_compile "$LINENO"; then :
12098   ac_cv_sys_file_offset_bits=64; break
12099 fi
12100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12101   ac_cv_sys_file_offset_bits=unknown
12102   break
12103 done
12104 fi
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12106 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12107 case $ac_cv_sys_file_offset_bits in #(
12108   no | unknown) ;;
12109   *)
12110 cat >>confdefs.h <<_ACEOF
12111 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12112 _ACEOF
12113 ;;
12114 esac
12115 rm -rf conftest*
12116   if test $ac_cv_sys_file_offset_bits = unknown; then
12117     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12118 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12119 if ${ac_cv_sys_large_files+:} false; then :
12120   $as_echo_n "(cached) " >&6
12121 else
12122   while :; do
12123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h.  */
12125 #include <sys/types.h>
12126  /* Check that off_t can represent 2**63 - 1 correctly.
12127     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12128     since some C++ compilers masquerading as C compilers
12129     incorrectly reject 9223372036854775807.  */
12130 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12131   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12132                        && LARGE_OFF_T % 2147483647 == 1)
12133                       ? 1 : -1];
12134 int
12135 main ()
12136 {
12137
12138   ;
12139   return 0;
12140 }
12141 _ACEOF
12142 if ac_fn_c_try_compile "$LINENO"; then :
12143   ac_cv_sys_large_files=no; break
12144 fi
12145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h.  */
12148 #define _LARGE_FILES 1
12149 #include <sys/types.h>
12150  /* Check that off_t can represent 2**63 - 1 correctly.
12151     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12152     since some C++ compilers masquerading as C compilers
12153     incorrectly reject 9223372036854775807.  */
12154 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12155   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12156                        && LARGE_OFF_T % 2147483647 == 1)
12157                       ? 1 : -1];
12158 int
12159 main ()
12160 {
12161
12162   ;
12163   return 0;
12164 }
12165 _ACEOF
12166 if ac_fn_c_try_compile "$LINENO"; then :
12167   ac_cv_sys_large_files=1; break
12168 fi
12169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12170   ac_cv_sys_large_files=unknown
12171   break
12172 done
12173 fi
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12175 $as_echo "$ac_cv_sys_large_files" >&6; }
12176 case $ac_cv_sys_large_files in #(
12177   no | unknown) ;;
12178   *)
12179 cat >>confdefs.h <<_ACEOF
12180 #define _LARGE_FILES $ac_cv_sys_large_files
12181 _ACEOF
12182 ;;
12183 esac
12184 rm -rf conftest*
12185   fi
12186 fi
12187
12188
12189   GNULIB_MKTIME=0;
12190   GNULIB_NANOSLEEP=0;
12191   GNULIB_STRPTIME=0;
12192   GNULIB_TIMEGM=0;
12193   GNULIB_TIME_R=0;
12194     HAVE_LOCALTIME_R=1;
12195   HAVE_NANOSLEEP=1;
12196   HAVE_STRPTIME=1;
12197   HAVE_TIMEGM=1;
12198         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
12199   REPLACE_MKTIME=GNULIB_PORTCHECK;
12200   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
12201   REPLACE_TIMEGM=GNULIB_PORTCHECK;
12202
12203
12204
12205
12206
12207
12208
12209
12210   :
12211
12212
12213
12214
12215
12216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
12217 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
12218 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
12219   $as_echo_n "(cached) " >&6
12220 else
12221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222 /* end confdefs.h.  */
12223 #include <time.h>
12224
12225 int
12226 main ()
12227 {
12228 static struct timespec x; x.tv_sec = x.tv_nsec;
12229   ;
12230   return 0;
12231 }
12232 _ACEOF
12233 if ac_fn_c_try_compile "$LINENO"; then :
12234   gl_cv_sys_struct_timespec_in_time_h=yes
12235 else
12236   gl_cv_sys_struct_timespec_in_time_h=no
12237 fi
12238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12239 fi
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
12241 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
12242
12243   TIME_H_DEFINES_STRUCT_TIMESPEC=0
12244   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
12245   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
12246   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
12247     TIME_H_DEFINES_STRUCT_TIMESPEC=1
12248   else
12249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
12250 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
12251 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
12252   $as_echo_n "(cached) " >&6
12253 else
12254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h.  */
12256 #include <sys/time.h>
12257
12258 int
12259 main ()
12260 {
12261 static struct timespec x; x.tv_sec = x.tv_nsec;
12262   ;
12263   return 0;
12264 }
12265 _ACEOF
12266 if ac_fn_c_try_compile "$LINENO"; then :
12267   gl_cv_sys_struct_timespec_in_sys_time_h=yes
12268 else
12269   gl_cv_sys_struct_timespec_in_sys_time_h=no
12270 fi
12271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12272 fi
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
12274 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
12275     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
12276       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
12277     else
12278       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
12279 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
12280 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
12281   $as_echo_n "(cached) " >&6
12282 else
12283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h.  */
12285 #include <pthread.h>
12286
12287 int
12288 main ()
12289 {
12290 static struct timespec x; x.tv_sec = x.tv_nsec;
12291   ;
12292   return 0;
12293 }
12294 _ACEOF
12295 if ac_fn_c_try_compile "$LINENO"; then :
12296   gl_cv_sys_struct_timespec_in_pthread_h=yes
12297 else
12298   gl_cv_sys_struct_timespec_in_pthread_h=no
12299 fi
12300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12301 fi
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12303 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12304       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12305         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
12306       fi
12307     fi
12308   fi
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320   :
12321
12322
12323
12324
12325
12326
12327
12328      if test $gl_cv_have_include_next = yes; then
12329        gl_cv_next_time_h='<'time.h'>'
12330      else
12331        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12332 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12333 if ${gl_cv_next_time_h+:} false; then :
12334   $as_echo_n "(cached) " >&6
12335 else
12336
12337           if test $ac_cv_header_time_h = yes; then
12338             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h.  */
12340 #include <time.h>
12341
12342 _ACEOF
12343                                                                                                 case "$host_os" in
12344               aix*) gl_absname_cpp="$ac_cpp -C" ;;
12345               *)    gl_absname_cpp="$ac_cpp" ;;
12346             esac
12347                                                 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12348                sed -n '\#/time.h#{
12349                  s#.*"\(.*/time.h\)".*#\1#
12350                  s#^/[^/]#//&#
12351                  p
12352                  q
12353                }'`'"'
12354           else
12355             gl_cv_next_time_h='<'time.h'>'
12356           fi
12357
12358 fi
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12360 $as_echo "$gl_cv_next_time_h" >&6; }
12361      fi
12362      NEXT_TIME_H=$gl_cv_next_time_h
12363
12364      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12365        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12366        gl_next_as_first_directive='<'time.h'>'
12367      else
12368        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12369        gl_next_as_first_directive=$gl_cv_next_time_h
12370      fi
12371      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12389 $as_echo_n "checking for wint_t... " >&6; }
12390 if ${gt_cv_c_wint_t+:} false; then :
12391   $as_echo_n "(cached) " >&6
12392 else
12393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h.  */
12395 #include <wchar.h>
12396        wint_t foo = (wchar_t)'\0';
12397 int
12398 main ()
12399 {
12400
12401   ;
12402   return 0;
12403 }
12404 _ACEOF
12405 if ac_fn_c_try_compile "$LINENO"; then :
12406   gt_cv_c_wint_t=yes
12407 else
12408   gt_cv_c_wint_t=no
12409 fi
12410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411 fi
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12413 $as_echo "$gt_cv_c_wint_t" >&6; }
12414   if test $gt_cv_c_wint_t = yes; then
12415
12416 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12417
12418   fi
12419
12420
12421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12422 $as_echo_n "checking for inttypes.h... " >&6; }
12423 if ${gl_cv_header_inttypes_h+:} false; then :
12424   $as_echo_n "(cached) " >&6
12425 else
12426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12427 /* end confdefs.h.  */
12428 #include <sys/types.h>
12429 #include <inttypes.h>
12430 int
12431 main ()
12432 {
12433 uintmax_t i = (uintmax_t) -1;
12434   ;
12435   return 0;
12436 }
12437 _ACEOF
12438 if ac_fn_c_try_compile "$LINENO"; then :
12439   gl_cv_header_inttypes_h=yes
12440 else
12441   gl_cv_header_inttypes_h=no
12442 fi
12443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12444 fi
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
12446 $as_echo "$gl_cv_header_inttypes_h" >&6; }
12447   if test $gl_cv_header_inttypes_h = yes; then
12448
12449 cat >>confdefs.h <<_ACEOF
12450 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
12451 _ACEOF
12452
12453   fi
12454
12455
12456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
12457 $as_echo_n "checking for stdint.h... " >&6; }
12458 if ${gl_cv_header_stdint_h+:} false; then :
12459   $as_echo_n "(cached) " >&6
12460 else
12461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h.  */
12463 #include <sys/types.h>
12464 #include <stdint.h>
12465 int
12466 main ()
12467 {
12468 uintmax_t i = (uintmax_t) -1;
12469   ;
12470   return 0;
12471 }
12472 _ACEOF
12473 if ac_fn_c_try_compile "$LINENO"; then :
12474   gl_cv_header_stdint_h=yes
12475 else
12476   gl_cv_header_stdint_h=no
12477 fi
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479 fi
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
12481 $as_echo "$gl_cv_header_stdint_h" >&6; }
12482   if test $gl_cv_header_stdint_h = yes; then
12483
12484 cat >>confdefs.h <<_ACEOF
12485 #define HAVE_STDINT_H_WITH_UINTMAX 1
12486 _ACEOF
12487
12488   fi
12489
12490
12491
12492
12493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
12494 $as_echo_n "checking for intmax_t... " >&6; }
12495 if ${gt_cv_c_intmax_t+:} false; then :
12496   $as_echo_n "(cached) " >&6
12497 else
12498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h.  */
12500
12501 #include <stddef.h>
12502 #include <stdlib.h>
12503 #if HAVE_STDINT_H_WITH_UINTMAX
12504 #include <stdint.h>
12505 #endif
12506 #if HAVE_INTTYPES_H_WITH_UINTMAX
12507 #include <inttypes.h>
12508 #endif
12509
12510 int
12511 main ()
12512 {
12513 intmax_t x = -1; return !x;
12514   ;
12515   return 0;
12516 }
12517 _ACEOF
12518 if ac_fn_c_try_compile "$LINENO"; then :
12519   gt_cv_c_intmax_t=yes
12520 else
12521   gt_cv_c_intmax_t=no
12522 fi
12523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12524 fi
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
12526 $as_echo "$gt_cv_c_intmax_t" >&6; }
12527   if test $gt_cv_c_intmax_t = yes; then
12528
12529 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
12530
12531   else
12532
12533     test $ac_cv_type_long_long_int = yes \
12534       && ac_type='long long' \
12535       || ac_type='long'
12536
12537 cat >>confdefs.h <<_ACEOF
12538 #define intmax_t $ac_type
12539 _ACEOF
12540
12541   fi
12542
12543
12544
12545      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
12546 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
12547 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
12548   $as_echo_n "(cached) " >&6
12549 else
12550
12551       if test "$cross_compiling" = yes; then :
12552
12553          case "$host_os" in
12554                                  # Guess yes on glibc systems.
12555            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
12556                                  # Guess yes on FreeBSD >= 5.
12557            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
12558            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12559                                  # Guess yes on MacOS X >= 10.3.
12560            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
12561            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
12562                                  # Guess yes on OpenBSD >= 3.9.
12563            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
12564                                  gl_cv_func_snprintf_retval_c99="guessing no";;
12565            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
12566                                  # Guess yes on Solaris >= 2.6.
12567            solaris2.[0-5]*)      gl_cv_func_snprintf_retval_c99="guessing no";;
12568            solaris*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
12569                                  # Guess yes on AIX >= 4.
12570            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
12571            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
12572                                  # Guess yes on NetBSD >= 3.
12573            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
12574                                  gl_cv_func_snprintf_retval_c99="guessing no";;
12575            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
12576                                  # Guess yes on BeOS.
12577            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
12578                                  # If we don't know, assume the worst.
12579            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
12580          esac
12581
12582 else
12583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584 /* end confdefs.h.  */
12585
12586 #include <stdio.h>
12587 #include <string.h>
12588 static char buf[100];
12589 int main ()
12590 {
12591   strcpy (buf, "ABCDEF");
12592   if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
12593     return 1;
12594   return 0;
12595 }
12596 _ACEOF
12597 if ac_fn_c_try_run "$LINENO"; then :
12598   gl_cv_func_snprintf_retval_c99=yes
12599 else
12600   gl_cv_func_snprintf_retval_c99=no
12601 fi
12602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12603   conftest.$ac_objext conftest.beam conftest.$ac_ext
12604 fi
12605
12606
12607 fi
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
12609 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
12610
12611
12612
12613
12614
12615
12616
12617   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
12618 do :
12619   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12620 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12621 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12622   cat >>confdefs.h <<_ACEOF
12623 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12624 _ACEOF
12625
12626 fi
12627 done
12628
12629       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
12630 "
12631 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
12632   ac_have_decl=1
12633 else
12634   ac_have_decl=0
12635 fi
12636
12637 cat >>confdefs.h <<_ACEOF
12638 #define HAVE_DECL__SNPRINTF $ac_have_decl
12639 _ACEOF
12640
12641
12642   case "$gl_cv_func_snprintf_retval_c99" in
12643     *yes)
12644
12645 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
12646
12647       ;;
12648   esac
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666       ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "$ac_includes_default"
12667 if test "x$ac_cv_have_decl_iswblank" = xyes; then :
12668   ac_have_decl=1
12669 else
12670   ac_have_decl=0
12671 fi
12672
12673 cat >>confdefs.h <<_ACEOF
12674 #define HAVE_DECL_ISWBLANK $ac_have_decl
12675 _ACEOF
12676
12677
12678
12679
12680
12681
12682
12683
12684    if true; then
12685   GL_COND_LIBTOOL_TRUE=
12686   GL_COND_LIBTOOL_FALSE='#'
12687 else
12688   GL_COND_LIBTOOL_TRUE='#'
12689   GL_COND_LIBTOOL_FALSE=
12690 fi
12691
12692   gl_cond_libtool=true
12693   gl_m4_base='config/gnulib'
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703   gl_source_base='gnulib'
12704   # Code from module alignof:
12705   # Code from module alloca-opt:
12706
12707
12708
12709
12710
12711   if test $ac_cv_func_alloca_works = no; then
12712     :
12713   fi
12714
12715   # Define an additional variable used in the Makefile substitution.
12716   if test $ac_cv_working_alloca_h = yes; then
12717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12718 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12719 if ${gl_cv_rpl_alloca+:} false; then :
12720   $as_echo_n "(cached) " >&6
12721 else
12722
12723       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h.  */
12725
12726 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12727         Need own alloca
12728 #endif
12729
12730 _ACEOF
12731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12732   $EGREP "Need own alloca" >/dev/null 2>&1; then :
12733   gl_cv_rpl_alloca=yes
12734 else
12735   gl_cv_rpl_alloca=no
12736 fi
12737 rm -f conftest*
12738
12739
12740 fi
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12742 $as_echo "$gl_cv_rpl_alloca" >&6; }
12743     if test $gl_cv_rpl_alloca = yes; then
12744
12745 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12746
12747       ALLOCA_H=alloca.h
12748     else
12749                   ALLOCA_H=
12750     fi
12751   else
12752     ALLOCA_H=alloca.h
12753   fi
12754
12755
12756   # Code from module arg-nonnull:
12757   # Code from module arpa_inet:
12758
12759
12760
12761
12762   :
12763
12764
12765
12766
12767
12768   if test $ac_cv_header_arpa_inet_h = yes; then
12769     HAVE_ARPA_INET_H=1
12770   else
12771     HAVE_ARPA_INET_H=0
12772   fi
12773
12774
12775
12776
12777
12778   :
12779
12780
12781
12782
12783
12784
12785
12786      if test $gl_cv_have_include_next = yes; then
12787        gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
12788      else
12789        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
12790 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
12791 if ${gl_cv_next_arpa_inet_h+:} false; then :
12792   $as_echo_n "(cached) " >&6
12793 else
12794
12795           if test $ac_cv_header_arpa_inet_h = yes; then
12796             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h.  */
12798 #include <arpa/inet.h>
12799
12800 _ACEOF
12801                                                                                                 case "$host_os" in
12802               aix*) gl_absname_cpp="$ac_cpp -C" ;;
12803               *)    gl_absname_cpp="$ac_cpp" ;;
12804             esac
12805                                                 gl_cv_next_arpa_inet_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12806                sed -n '\#/arpa/inet.h#{
12807                  s#.*"\(.*/arpa/inet.h\)".*#\1#
12808                  s#^/[^/]#//&#
12809                  p
12810                  q
12811                }'`'"'
12812           else
12813             gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
12814           fi
12815
12816 fi
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
12818 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
12819      fi
12820      NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
12821
12822      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12823        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12824        gl_next_as_first_directive='<'arpa/inet.h'>'
12825      else
12826        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12827        gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
12828      fi
12829      NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
12830
12831
12832
12833
12834
12835     for gl_func in inet_ntop inet_pton; do
12836     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12838 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12839 if eval \${$as_gl_Symbol+:} false; then :
12840   $as_echo_n "(cached) " >&6
12841 else
12842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12843 /* end confdefs.h.  */
12844
12845 /* On some systems, this header is not self-consistent.  */
12846 #ifndef __GLIBC__
12847 # include <sys/socket.h>
12848 #endif
12849 #include <arpa/inet.h>
12850
12851 int
12852 main ()
12853 {
12854 #undef $gl_func
12855   (void) $gl_func;
12856   ;
12857   return 0;
12858 }
12859 _ACEOF
12860 if ac_fn_c_try_compile "$LINENO"; then :
12861   eval "$as_gl_Symbol=yes"
12862 else
12863   eval "$as_gl_Symbol=no"
12864 fi
12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12866 fi
12867 eval ac_res=\$$as_gl_Symbol
12868                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12869 $as_echo "$ac_res" >&6; }
12870      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
12871   cat >>confdefs.h <<_ACEOF
12872 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12873 _ACEOF
12874
12875                      eval ac_cv_have_decl_$gl_func=yes
12876 fi
12877       done
12878
12879
12880
12881   # Code from module base64:
12882
12883
12884
12885
12886
12887
12888   # Code from module btowc:
12889
12890
12891
12892
12893
12894
12895   :
12896
12897
12898
12899
12900
12901   if test $ac_cv_func_btowc = no; then
12902     HAVE_BTOWC=0
12903   else
12904
12905
12906
12907
12908         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
12909 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
12910 if ${gl_cv_func_btowc_nul+:} false; then :
12911   $as_echo_n "(cached) " >&6
12912 else
12913
12914         if test "$cross_compiling" = yes; then :
12915
12916            case "$host_os" in
12917                       # Guess no on Cygwin.
12918              cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
12919                       # Guess yes otherwise.
12920              *)       gl_cv_func_btowc_nul="guessing yes" ;;
12921            esac
12922
12923 else
12924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h.  */
12926
12927 #include <stdio.h>
12928 #include <string.h>
12929 #include <wchar.h>
12930 int main ()
12931 {
12932   if (btowc ('\0') != 0)
12933     return 1;
12934   return 0;
12935 }
12936 _ACEOF
12937 if ac_fn_c_try_run "$LINENO"; then :
12938   gl_cv_func_btowc_nul=yes
12939 else
12940   gl_cv_func_btowc_nul=no
12941 fi
12942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12943   conftest.$ac_objext conftest.beam conftest.$ac_ext
12944 fi
12945
12946
12947 fi
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
12949 $as_echo "$gl_cv_func_btowc_nul" >&6; }
12950
12951         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
12952 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
12953 if ${gl_cv_func_btowc_eof+:} false; then :
12954   $as_echo_n "(cached) " >&6
12955 else
12956
12957                         case "$host_os" in
12958                  # Guess no on IRIX.
12959           irix*) gl_cv_func_btowc_eof="guessing no" ;;
12960                  # Guess yes otherwise.
12961           *)     gl_cv_func_btowc_eof="guessing yes" ;;
12962         esac
12963         if test $LOCALE_FR != none; then
12964           if test "$cross_compiling" = yes; then :
12965   :
12966 else
12967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h.  */
12969
12970 #include <locale.h>
12971 #include <stdio.h>
12972 #include <string.h>
12973 #include <wchar.h>
12974 int main ()
12975 {
12976   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
12977     {
12978       if (btowc (EOF) != WEOF)
12979         return 1;
12980     }
12981   return 0;
12982 }
12983 _ACEOF
12984 if ac_fn_c_try_run "$LINENO"; then :
12985   gl_cv_func_btowc_eof=yes
12986 else
12987   gl_cv_func_btowc_eof=no
12988 fi
12989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12990   conftest.$ac_objext conftest.beam conftest.$ac_ext
12991 fi
12992
12993         fi
12994
12995 fi
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
12997 $as_echo "$gl_cv_func_btowc_eof" >&6; }
12998
12999     case "$gl_cv_func_btowc_nul" in
13000       *yes) ;;
13001       *) REPLACE_BTOWC=1 ;;
13002     esac
13003     case "$gl_cv_func_btowc_eof" in
13004       *yes) ;;
13005       *) REPLACE_BTOWC=1 ;;
13006     esac
13007   fi
13008   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
13009
13010     :
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020   gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
13021
13022
13023   :
13024
13025   fi
13026
13027
13028
13029
13030   GNULIB_BTOWC=1
13031
13032
13033
13034 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
13035
13036
13037
13038   # Code from module c++defs:
13039   # Code from module c-ctype:
13040   # Code from module configmake:
13041   # Code from module environ:
13042
13043
13044
13045
13046   GNULIB_ENVIRON=1
13047
13048
13049
13050 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
13051
13052
13053
13054   # Code from module errno:
13055
13056   # Code from module extensions:
13057   # Code from module float:
13058
13059
13060
13061   FLOAT_H=
13062   case "$host_os" in
13063     beos* | openbsd*)
13064       FLOAT_H=float.h
13065
13066
13067
13068
13069   :
13070
13071
13072
13073
13074
13075
13076
13077      if test $gl_cv_have_include_next = yes; then
13078        gl_cv_next_float_h='<'float.h'>'
13079      else
13080        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
13081 $as_echo_n "checking absolute name of <float.h>... " >&6; }
13082 if ${gl_cv_next_float_h+:} false; then :
13083   $as_echo_n "(cached) " >&6
13084 else
13085
13086           if test $ac_cv_header_float_h = yes; then
13087             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h.  */
13089 #include <float.h>
13090
13091 _ACEOF
13092                                                                                                 case "$host_os" in
13093               aix*) gl_absname_cpp="$ac_cpp -C" ;;
13094               *)    gl_absname_cpp="$ac_cpp" ;;
13095             esac
13096                                                 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13097                sed -n '\#/float.h#{
13098                  s#.*"\(.*/float.h\)".*#\1#
13099                  s#^/[^/]#//&#
13100                  p
13101                  q
13102                }'`'"'
13103           else
13104             gl_cv_next_float_h='<'float.h'>'
13105           fi
13106
13107 fi
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
13109 $as_echo "$gl_cv_next_float_h" >&6; }
13110      fi
13111      NEXT_FLOAT_H=$gl_cv_next_float_h
13112
13113      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13114        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13115        gl_next_as_first_directive='<'float.h'>'
13116      else
13117        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13118        gl_next_as_first_directive=$gl_cv_next_float_h
13119      fi
13120      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
13121
13122
13123
13124       ;;
13125   esac
13126
13127
13128   # Code from module fseeko:
13129
13130
13131
13132
13133
13134   if test $gl_cv_func_fseeko = no; then
13135     HAVE_FSEEKO=0
13136
13137
13138
13139   if test $gl_cv_func_fseeko = yes; then
13140     REPLACE_FSEEKO=1
13141   fi
13142
13143
13144
13145
13146
13147
13148
13149
13150   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
13151
13152
13153
13154   else
13155     if test $gl_cv_var_stdin_large_offset = no; then
13156
13157
13158
13159   if test $gl_cv_func_fseeko = yes; then
13160     REPLACE_FSEEKO=1
13161   fi
13162
13163
13164
13165
13166
13167
13168
13169
13170   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
13171
13172
13173
13174     fi
13175   fi
13176
13177
13178
13179
13180   GNULIB_FSEEKO=1
13181
13182
13183
13184 $as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
13185
13186
13187
13188   # Code from module fsusage:
13189
13190
13191   :
13192
13193
13194
13195
13196
13197
13198   :
13199
13200
13201
13202
13203
13204
13205
13206
13207   for ac_header in sys/mount.h
13208 do :
13209   ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default
13210      #if HAVE_SYS_PARAM_H
13211        #include <sys/param.h>
13212       #endif
13213 "
13214 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
13215   cat >>confdefs.h <<_ACEOF
13216 #define HAVE_SYS_MOUNT_H 1
13217 _ACEOF
13218
13219 fi
13220
13221 done
13222
13223
13224
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get file system space usage" >&5
13226 $as_echo "$as_me: checking how to get file system space usage" >&6;}
13227 ac_fsusage_space=no
13228
13229 # Perform only the link test since it seems there are no variants of the
13230 # statvfs function.  This check is more than just AC_CHECK_FUNCS([statvfs])
13231 # because that got a false positive on SCO OSR5.  Adding the declaration
13232 # of a `struct statvfs' causes this test to fail (as it should) on such
13233 # systems.  That system is reported to work fine with STAT_STATFS4 which
13234 # is what it gets when this test fails.
13235 if test $ac_fsusage_space = no; then
13236   # glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
13237   # OpenBSD >= 4.4, AIX, HP-UX, IRIX, Solaris, Cygwin, Interix, BeOS.
13238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statvfs function (SVR4)" >&5
13239 $as_echo_n "checking for statvfs function (SVR4)... " >&6; }
13240 if ${fu_cv_sys_stat_statvfs+:} false; then :
13241   $as_echo_n "(cached) " >&6
13242 else
13243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h.  */
13245 #include <sys/types.h>
13246 #if defined __GLIBC__ && defined __linux__
13247 Do not use statvfs on systems with GNU libc on Linux, because that function
13248 stats all preceding entries in /proc/mounts, and that makes df hang if even
13249 one of the corresponding file systems is hard-mounted, but not available.
13250 statvfs in GNU libc on Hurd, BeOS, Haiku operates differently: it only makes
13251 a system call.
13252 #endif
13253
13254 #ifdef __osf__
13255 "Do not use Tru64's statvfs implementation"
13256 #endif
13257
13258 #include <sys/statvfs.h>
13259 int
13260 main ()
13261 {
13262 struct statvfs fsd; statvfs (0, &fsd);
13263   ;
13264   return 0;
13265 }
13266 _ACEOF
13267 if ac_fn_c_try_link "$LINENO"; then :
13268   fu_cv_sys_stat_statvfs=yes
13269 else
13270   fu_cv_sys_stat_statvfs=no
13271 fi
13272 rm -f core conftest.err conftest.$ac_objext \
13273     conftest$ac_exeext conftest.$ac_ext
13274 fi
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs" >&5
13276 $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
13277   if test $fu_cv_sys_stat_statvfs = yes; then
13278     ac_fsusage_space=yes
13279
13280 $as_echo "#define STAT_STATVFS 1" >>confdefs.h
13281
13282   fi
13283 fi
13284
13285 if test $ac_fsusage_space = no; then
13286   # DEC Alpha running OSF/1
13287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3-argument statfs function (DEC OSF/1)" >&5
13288 $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
13289   if ${fu_cv_sys_stat_statfs3_osf1+:} false; then :
13290   $as_echo_n "(cached) " >&6
13291 else
13292   if test "$cross_compiling" = yes; then :
13293   fu_cv_sys_stat_statfs3_osf1=no
13294 else
13295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13296 /* end confdefs.h.  */
13297
13298 #include <sys/param.h>
13299 #include <sys/types.h>
13300 #include <sys/mount.h>
13301   int
13302   main ()
13303   {
13304     struct statfs fsd;
13305     fsd.f_fsize = 0;
13306     return statfs (".", &fsd, sizeof (struct statfs)) != 0;
13307   }
13308 _ACEOF
13309 if ac_fn_c_try_run "$LINENO"; then :
13310   fu_cv_sys_stat_statfs3_osf1=yes
13311 else
13312   fu_cv_sys_stat_statfs3_osf1=no
13313 fi
13314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13315   conftest.$ac_objext conftest.beam conftest.$ac_ext
13316 fi
13317
13318 fi
13319
13320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs3_osf1" >&5
13321 $as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
13322   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13323     ac_fsusage_space=yes
13324
13325 $as_echo "#define STAT_STATFS3_OSF1 1" >>confdefs.h
13326
13327   fi
13328 fi
13329
13330 if test $ac_fsusage_space = no; then
13331   # glibc/Linux, MacOS X < 10.4, FreeBSD < 5.0, NetBSD < 3.0, OpenBSD < 4.4.
13332   # (glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
13333   # OpenBSD >= 4.4, AIX, HP-UX, OSF/1, Cygwin already handled above.)
13334   # (On IRIX you need to include <sys/statfs.h>, not only <sys/mount.h> and
13335   # <sys/vfs.h>.)
13336   # (On Solaris, statfs has 4 arguments.)
13337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)" >&5
13338 $as_echo_n "checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)... " >&6; }
13339   if ${fu_cv_sys_stat_statfs2_bsize+:} false; then :
13340   $as_echo_n "(cached) " >&6
13341 else
13342   if test "$cross_compiling" = yes; then :
13343   fu_cv_sys_stat_statfs2_bsize=no
13344 else
13345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346 /* end confdefs.h.  */
13347
13348 #ifdef HAVE_SYS_PARAM_H
13349 #include <sys/param.h>
13350 #endif
13351 #ifdef HAVE_SYS_MOUNT_H
13352 #include <sys/mount.h>
13353 #endif
13354 #ifdef HAVE_SYS_VFS_H
13355 #include <sys/vfs.h>
13356 #endif
13357   int
13358   main ()
13359   {
13360   struct statfs fsd;
13361   fsd.f_bsize = 0;
13362   return statfs (".", &fsd) != 0;
13363   }
13364 _ACEOF
13365 if ac_fn_c_try_run "$LINENO"; then :
13366   fu_cv_sys_stat_statfs2_bsize=yes
13367 else
13368   fu_cv_sys_stat_statfs2_bsize=no
13369 fi
13370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13371   conftest.$ac_objext conftest.beam conftest.$ac_ext
13372 fi
13373
13374 fi
13375
13376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_bsize" >&5
13377 $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
13378   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13379     ac_fsusage_space=yes
13380
13381 $as_echo "#define STAT_STATFS2_BSIZE 1" >>confdefs.h
13382
13383   fi
13384 fi
13385
13386 if test $ac_fsusage_space = no; then
13387   # SVR3
13388   # (Solaris already handled above.)
13389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13390 $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
13391   if ${fu_cv_sys_stat_statfs4+:} false; then :
13392   $as_echo_n "(cached) " >&6
13393 else
13394   if test "$cross_compiling" = yes; then :
13395   fu_cv_sys_stat_statfs4=no
13396 else
13397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h.  */
13399
13400 #include <sys/types.h>
13401 #include <sys/statfs.h>
13402   int
13403   main ()
13404   {
13405   struct statfs fsd;
13406   return statfs (".", &fsd, sizeof fsd, 0) != 0;
13407   }
13408 _ACEOF
13409 if ac_fn_c_try_run "$LINENO"; then :
13410   fu_cv_sys_stat_statfs4=yes
13411 else
13412   fu_cv_sys_stat_statfs4=no
13413 fi
13414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13415   conftest.$ac_objext conftest.beam conftest.$ac_ext
13416 fi
13417
13418 fi
13419
13420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs4" >&5
13421 $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
13422   if test $fu_cv_sys_stat_statfs4 = yes; then
13423     ac_fsusage_space=yes
13424
13425 $as_echo "#define STAT_STATFS4 1" >>confdefs.h
13426
13427   fi
13428 fi
13429
13430 if test $ac_fsusage_space = no; then
13431   # 4.4BSD and older NetBSD
13432   # (OSF/1 already handled above.)
13433   # (On AIX, you need to include <sys/statfs.h>, not only <sys/mount.h>.)
13434   # (On Solaris, statfs has 4 arguments and 'struct statfs' is not declared in
13435   # <sys/mount.h>.)
13436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)" >&5
13437 $as_echo_n "checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)... " >&6; }
13438   if ${fu_cv_sys_stat_statfs2_fsize+:} false; then :
13439   $as_echo_n "(cached) " >&6
13440 else
13441   if test "$cross_compiling" = yes; then :
13442   fu_cv_sys_stat_statfs2_fsize=no
13443 else
13444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h.  */
13446
13447 #include <sys/types.h>
13448 #ifdef HAVE_SYS_PARAM_H
13449 #include <sys/param.h>
13450 #endif
13451 #ifdef HAVE_SYS_MOUNT_H
13452 #include <sys/mount.h>
13453 #endif
13454   int
13455   main ()
13456   {
13457   struct statfs fsd;
13458   fsd.f_fsize = 0;
13459   return statfs (".", &fsd) != 0;
13460   }
13461 _ACEOF
13462 if ac_fn_c_try_run "$LINENO"; then :
13463   fu_cv_sys_stat_statfs2_fsize=yes
13464 else
13465   fu_cv_sys_stat_statfs2_fsize=no
13466 fi
13467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13468   conftest.$ac_objext conftest.beam conftest.$ac_ext
13469 fi
13470
13471 fi
13472
13473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_fsize" >&5
13474 $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
13475   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13476     ac_fsusage_space=yes
13477
13478 $as_echo "#define STAT_STATFS2_FSIZE 1" >>confdefs.h
13479
13480   fi
13481 fi
13482
13483 if test $ac_fsusage_space = no; then
13484   # Ultrix
13485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13486 $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
13487   if ${fu_cv_sys_stat_fs_data+:} false; then :
13488   $as_echo_n "(cached) " >&6
13489 else
13490   if test "$cross_compiling" = yes; then :
13491   fu_cv_sys_stat_fs_data=no
13492 else
13493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h.  */
13495
13496 #include <sys/types.h>
13497 #ifdef HAVE_SYS_PARAM_H
13498 #include <sys/param.h>
13499 #endif
13500 #ifdef HAVE_SYS_MOUNT_H
13501 #include <sys/mount.h>
13502 #endif
13503 #ifdef HAVE_SYS_FS_TYPES_H
13504 #include <sys/fs_types.h>
13505 #endif
13506   int
13507   main ()
13508   {
13509   struct fs_data fsd;
13510   /* Ultrix's statfs returns 1 for success,
13511      0 for not mounted, -1 for failure.  */
13512   return statfs (".", &fsd) != 1;
13513   }
13514 _ACEOF
13515 if ac_fn_c_try_run "$LINENO"; then :
13516   fu_cv_sys_stat_fs_data=yes
13517 else
13518   fu_cv_sys_stat_fs_data=no
13519 fi
13520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13521   conftest.$ac_objext conftest.beam conftest.$ac_ext
13522 fi
13523
13524 fi
13525
13526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_fs_data" >&5
13527 $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
13528   if test $fu_cv_sys_stat_fs_data = yes; then
13529     ac_fsusage_space=yes
13530
13531 $as_echo "#define STAT_STATFS2_FS_DATA 1" >>confdefs.h
13532
13533   fi
13534 fi
13535
13536 if test $ac_fsusage_space = no; then
13537   # SVR2
13538   # (AIX, HP-UX, OSF/1 already handled above.)
13539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h.  */
13541 #include <sys/filsys.h>
13542
13543 _ACEOF
13544 if ac_fn_c_try_cpp "$LINENO"; then :
13545
13546 $as_echo "#define STAT_READ_FILSYS 1" >>confdefs.h
13547
13548      ac_fsusage_space=yes
13549 fi
13550 rm -f conftest.err conftest.i conftest.$ac_ext
13551 fi
13552
13553 if test $ac_fsusage_space = yes; then :
13554   gl_cv_fs_space=yes
13555 else
13556   gl_cv_fs_space=no
13557 fi
13558
13559
13560   if test $gl_cv_fs_space = yes; then
13561
13562
13563
13564
13565
13566
13567
13568
13569   gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
13570
13571
13572   for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
13573 do :
13574   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13575 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13576 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13577   cat >>confdefs.h <<_ACEOF
13578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13579 _ACEOF
13580
13581 fi
13582
13583 done
13584
13585
13586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statfs that truncates block counts" >&5
13587 $as_echo_n "checking for statfs that truncates block counts... " >&6; }
13588   if ${fu_cv_sys_truncating_statfs+:} false; then :
13589   $as_echo_n "(cached) " >&6
13590 else
13591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h.  */
13593
13594 #if !defined(sun) && !defined(__sun)
13595 choke -- this is a workaround for a Sun-specific problem
13596 #endif
13597 #include <sys/types.h>
13598 #include <sys/vfs.h>
13599 int
13600 main ()
13601 {
13602 struct statfs t; long c = *(t.f_spare);
13603         if (c) return 0;
13604   ;
13605   return 0;
13606 }
13607 _ACEOF
13608 if ac_fn_c_try_compile "$LINENO"; then :
13609   fu_cv_sys_truncating_statfs=yes
13610 else
13611   fu_cv_sys_truncating_statfs=no
13612 fi
13613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13614 fi
13615
13616   if test $fu_cv_sys_truncating_statfs = yes; then
13617
13618 $as_echo "#define STATFS_TRUNCATES_BLOCK_COUNTS 1" >>confdefs.h
13619
13620   fi
13621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_truncating_statfs" >&5
13622 $as_echo "$fu_cv_sys_truncating_statfs" >&6; }
13623
13624
13625   fi
13626
13627   # Code from module ftello:
13628
13629
13630
13631
13632
13633
13634
13635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
13636 $as_echo_n "checking for ftello... " >&6; }
13637 if ${gl_cv_func_ftello+:} false; then :
13638   $as_echo_n "(cached) " >&6
13639 else
13640
13641       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h.  */
13643 #include <stdio.h>
13644 int
13645 main ()
13646 {
13647 ftello (stdin);
13648   ;
13649   return 0;
13650 }
13651 _ACEOF
13652 if ac_fn_c_try_link "$LINENO"; then :
13653   gl_cv_func_ftello=yes
13654 else
13655   gl_cv_func_ftello=no
13656 fi
13657 rm -f core conftest.err conftest.$ac_objext \
13658     conftest$ac_exeext conftest.$ac_ext
13659
13660 fi
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
13662 $as_echo "$gl_cv_func_ftello" >&6; }
13663   if test $gl_cv_func_ftello = no; then
13664     HAVE_FTELLO=0
13665   else
13666     if test $gl_cv_var_stdin_large_offset = no; then
13667       REPLACE_FTELLO=1
13668     else
13669
13670       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
13671 $as_echo_n "checking whether ftello works... " >&6; }
13672 if ${gl_cv_func_ftello_works+:} false; then :
13673   $as_echo_n "(cached) " >&6
13674 else
13675
13676                               case "$host_os" in
13677                       # Guess no on Solaris.
13678             solaris*) gl_cv_func_ftello_works="guessing no" ;;
13679                       # Guess yes otherwise.
13680             *)        gl_cv_func_ftello_works="guessing yes" ;;
13681           esac
13682           if test "$cross_compiling" = yes; then :
13683   :
13684 else
13685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h.  */
13687
13688 #include <stdio.h>
13689 #include <stdlib.h>
13690 #include <string.h>
13691 #define TESTFILE "conftest.tmp"
13692 int
13693 main (void)
13694 {
13695   FILE *fp;
13696
13697   /* Create a file with some contents.  */
13698   fp = fopen (TESTFILE, "w");
13699   if (fp == NULL)
13700     return 70;
13701   if (fwrite ("foogarsh", 1, 8, fp) < 8)
13702     return 71;
13703   if (fclose (fp))
13704     return 72;
13705
13706   /* The file's contents is now "foogarsh".  */
13707
13708   /* Try writing after reading to EOF.  */
13709   fp = fopen (TESTFILE, "r+");
13710   if (fp == NULL)
13711     return 73;
13712   if (fseek (fp, -1, SEEK_END))
13713     return 74;
13714   if (!(getc (fp) == 'h'))
13715     return 1;
13716   if (!(getc (fp) == EOF))
13717     return 2;
13718   if (!(ftell (fp) == 8))
13719     return 3;
13720   if (!(ftell (fp) == 8))
13721     return 4;
13722   if (!(putc ('!', fp) == '!'))
13723     return 5;
13724   if (!(ftell (fp) == 9))
13725     return 6;
13726   if (!(fclose (fp) == 0))
13727     return 7;
13728   fp = fopen (TESTFILE, "r");
13729   if (fp == NULL)
13730     return 75;
13731   {
13732     char buf[10];
13733     if (!(fread (buf, 1, 10, fp) == 9))
13734       return 10;
13735     if (!(memcmp (buf, "foogarsh!", 9) == 0))
13736       return 11;
13737   }
13738   if (!(fclose (fp) == 0))
13739     return 12;
13740
13741   /* The file's contents is now "foogarsh!".  */
13742
13743   return 0;
13744 }
13745 _ACEOF
13746 if ac_fn_c_try_run "$LINENO"; then :
13747   gl_cv_func_ftello_works=yes
13748 else
13749   gl_cv_func_ftello_works=no
13750 fi
13751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13752   conftest.$ac_objext conftest.beam conftest.$ac_ext
13753 fi
13754
13755
13756 fi
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
13758 $as_echo "$gl_cv_func_ftello_works" >&6; }
13759       case "$gl_cv_func_ftello_works" in
13760         *yes) ;;
13761         *)
13762           REPLACE_FTELLO=1
13763
13764 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
13765
13766           ;;
13767       esac
13768     fi
13769   fi
13770   if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780   gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
13781
13782
13783   fi
13784
13785
13786
13787
13788   GNULIB_FTELLO=1
13789
13790
13791
13792 $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
13793
13794
13795
13796   # Code from module ftruncate:
13797
13798
13799
13800
13801   :
13802
13803
13804
13805
13806
13807   if test $ac_cv_func_ftruncate = no; then
13808     HAVE_FTRUNCATE=0
13809
13810
13811
13812
13813
13814
13815
13816
13817   gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
13818
13819
13820   for ac_func in chsize
13821 do :
13822   ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize"
13823 if test "x$ac_cv_func_chsize" = xyes; then :
13824   cat >>confdefs.h <<_ACEOF
13825 #define HAVE_CHSIZE 1
13826 _ACEOF
13827
13828 fi
13829 done
13830
13831
13832     case "$host_os" in
13833       mingw*)
13834         # Yes, we know mingw lacks ftruncate.
13835         ;;
13836       *)
13837         # If someone lacks ftruncate, make configure fail, and request
13838         # a bug report to inform us about it.
13839         if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
13840           { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13842 as_fn_error $? "Your system lacks the ftruncate function.
13843               Please report this, along with the output of \"uname -a\", to the
13844               bug-coreutils@gnu.org mailing list.  To continue past this point,
13845               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
13846               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
13847 See \`config.log' for more details" "$LINENO" 5; }
13848         fi
13849     esac
13850   fi
13851
13852
13853
13854
13855   GNULIB_FTRUNCATE=1
13856
13857
13858
13859 $as_echo "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h
13860
13861
13862
13863   # Code from module full-read:
13864   # Code from module full-write:
13865   # Code from module getaddrinfo:
13866
13867       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
13868 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
13869   GETADDRINFO_LIB=
13870   gai_saved_LIBS="$LIBS"
13871
13872               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13873 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13874 if ${ac_cv_search_getaddrinfo+:} false; then :
13875   $as_echo_n "(cached) " >&6
13876 else
13877   ac_func_search_save_LIBS=$LIBS
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h.  */
13880
13881 /* Override any GCC internal prototype to avoid an error.
13882    Use char because int might match the return type of a GCC
13883    builtin and then its argument prototype would still apply.  */
13884 #ifdef __cplusplus
13885 extern "C"
13886 #endif
13887 char getaddrinfo ();
13888 int
13889 main ()
13890 {
13891 return getaddrinfo ();
13892   ;
13893   return 0;
13894 }
13895 _ACEOF
13896 for ac_lib in '' socket network net; do
13897   if test -z "$ac_lib"; then
13898     ac_res="none required"
13899   else
13900     ac_res=-l$ac_lib
13901     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13902   fi
13903   if ac_fn_c_try_link "$LINENO"; then :
13904   ac_cv_search_getaddrinfo=$ac_res
13905 fi
13906 rm -f core conftest.err conftest.$ac_objext \
13907     conftest$ac_exeext
13908   if ${ac_cv_search_getaddrinfo+:} false; then :
13909   break
13910 fi
13911 done
13912 if ${ac_cv_search_getaddrinfo+:} false; then :
13913
13914 else
13915   ac_cv_search_getaddrinfo=no
13916 fi
13917 rm conftest.$ac_ext
13918 LIBS=$ac_func_search_save_LIBS
13919 fi
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13921 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13922 ac_res=$ac_cv_search_getaddrinfo
13923 if test "$ac_res" != no; then :
13924   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13925   if test "$ac_cv_search_getaddrinfo" != "none required"; then
13926        GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
13927      fi
13928 fi
13929
13930   LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
13931
13932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13933 $as_echo_n "checking for getaddrinfo... " >&6; }
13934 if ${gl_cv_func_getaddrinfo+:} false; then :
13935   $as_echo_n "(cached) " >&6
13936 else
13937
13938     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h.  */
13940
13941 #include <sys/types.h>
13942 #ifdef HAVE_SYS_SOCKET_H
13943 #include <sys/socket.h>
13944 #endif
13945 #ifdef HAVE_NETDB_H
13946 #include <netdb.h>
13947 #endif
13948 #include <stddef.h>
13949
13950 int
13951 main ()
13952 {
13953 getaddrinfo("", "", NULL, NULL);
13954   ;
13955   return 0;
13956 }
13957 _ACEOF
13958 if ac_fn_c_try_link "$LINENO"; then :
13959   gl_cv_func_getaddrinfo=yes
13960 else
13961   gl_cv_func_getaddrinfo=no
13962 fi
13963 rm -f core conftest.err conftest.$ac_objext \
13964     conftest$ac_exeext conftest.$ac_ext
13965 fi
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo" >&5
13967 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
13968   if test $gl_cv_func_getaddrinfo = no; then
13969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
13970 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
13971 if ${gl_cv_w32_getaddrinfo+:} false; then :
13972   $as_echo_n "(cached) " >&6
13973 else
13974
13975       gl_cv_w32_getaddrinfo=no
13976       am_save_LIBS="$LIBS"
13977       LIBS="$LIBS -lws2_32"
13978       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979 /* end confdefs.h.  */
13980
13981 #ifdef HAVE_WS2TCPIP_H
13982 #include <ws2tcpip.h>
13983 #endif
13984 #include <stddef.h>
13985
13986 int
13987 main ()
13988 {
13989 getaddrinfo(NULL, NULL, NULL, NULL);
13990   ;
13991   return 0;
13992 }
13993 _ACEOF
13994 if ac_fn_c_try_link "$LINENO"; then :
13995   gl_cv_w32_getaddrinfo=yes
13996 fi
13997 rm -f core conftest.err conftest.$ac_objext \
13998     conftest$ac_exeext conftest.$ac_ext
13999       LIBS="$am_save_LIBS"
14000
14001 fi
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getaddrinfo" >&5
14003 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
14004     if test "$gl_cv_w32_getaddrinfo" = "yes"; then
14005       GETADDRINFO_LIB="-lws2_32"
14006       LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
14007     else
14008
14009
14010
14011
14012
14013
14014
14015
14016   gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
14017
14018     fi
14019   fi
14020
14021   # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
14022   # inline function declared in ws2tcpip.h, so we need to get that
14023   # header included somehow.
14024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
14025 $as_echo_n "checking for gai_strerror (possibly via ws2tcpip.h)... " >&6; }
14026 if ${gl_cv_func_gai_strerror+:} false; then :
14027   $as_echo_n "(cached) " >&6
14028 else
14029
14030       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h.  */
14032
14033 #include <sys/types.h>
14034 #ifdef HAVE_SYS_SOCKET_H
14035 #include <sys/socket.h>
14036 #endif
14037 #ifdef HAVE_NETDB_H
14038 #include <netdb.h>
14039 #endif
14040 #ifdef HAVE_WS2TCPIP_H
14041 #include <ws2tcpip.h>
14042 #endif
14043 #include <stddef.h>
14044
14045 int
14046 main ()
14047 {
14048 gai_strerror (NULL);
14049   ;
14050   return 0;
14051 }
14052 _ACEOF
14053 if ac_fn_c_try_link "$LINENO"; then :
14054   gl_cv_func_gai_strerror=yes
14055 else
14056   gl_cv_func_gai_strerror=no
14057 fi
14058 rm -f core conftest.err conftest.$ac_objext \
14059     conftest$ac_exeext conftest.$ac_ext
14060 fi
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gai_strerror" >&5
14062 $as_echo "$gl_cv_func_gai_strerror" >&6; }
14063   if test $gl_cv_func_gai_strerror = no; then
14064
14065
14066
14067
14068
14069
14070
14071
14072   gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
14073
14074   fi
14075
14076   LIBS="$gai_saved_LIBS"
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086       ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
14087 "
14088 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14089
14090 cat >>confdefs.h <<_ACEOF
14091 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14092 _ACEOF
14093
14094
14095 fi
14096
14097
14098
14099   :
14100
14101
14102
14103
14104
14105
14106   ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" "
14107   /* sys/types.h is not needed according to POSIX, but the
14108      sys/socket.h in i386-unknown-freebsd4.10 and
14109      powerpc-apple-darwin5.5 required it. */
14110 #include <sys/types.h>
14111 #ifdef HAVE_SYS_SOCKET_H
14112 #include <sys/socket.h>
14113 #endif
14114 #ifdef HAVE_NETDB_H
14115 #include <netdb.h>
14116 #endif
14117 #ifdef HAVE_WS2TCPIP_H
14118 #include <ws2tcpip.h>
14119 #endif
14120
14121 "
14122 if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then :
14123   ac_have_decl=1
14124 else
14125   ac_have_decl=0
14126 fi
14127
14128 cat >>confdefs.h <<_ACEOF
14129 #define HAVE_DECL_GETADDRINFO $ac_have_decl
14130 _ACEOF
14131 ac_fn_c_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" "
14132   /* sys/types.h is not needed according to POSIX, but the
14133      sys/socket.h in i386-unknown-freebsd4.10 and
14134      powerpc-apple-darwin5.5 required it. */
14135 #include <sys/types.h>
14136 #ifdef HAVE_SYS_SOCKET_H
14137 #include <sys/socket.h>
14138 #endif
14139 #ifdef HAVE_NETDB_H
14140 #include <netdb.h>
14141 #endif
14142 #ifdef HAVE_WS2TCPIP_H
14143 #include <ws2tcpip.h>
14144 #endif
14145
14146 "
14147 if test "x$ac_cv_have_decl_freeaddrinfo" = xyes; then :
14148   ac_have_decl=1
14149 else
14150   ac_have_decl=0
14151 fi
14152
14153 cat >>confdefs.h <<_ACEOF
14154 #define HAVE_DECL_FREEADDRINFO $ac_have_decl
14155 _ACEOF
14156 ac_fn_c_check_decl "$LINENO" "gai_strerror" "ac_cv_have_decl_gai_strerror" "
14157   /* sys/types.h is not needed according to POSIX, but the
14158      sys/socket.h in i386-unknown-freebsd4.10 and
14159      powerpc-apple-darwin5.5 required it. */
14160 #include <sys/types.h>
14161 #ifdef HAVE_SYS_SOCKET_H
14162 #include <sys/socket.h>
14163 #endif
14164 #ifdef HAVE_NETDB_H
14165 #include <netdb.h>
14166 #endif
14167 #ifdef HAVE_WS2TCPIP_H
14168 #include <ws2tcpip.h>
14169 #endif
14170
14171 "
14172 if test "x$ac_cv_have_decl_gai_strerror" = xyes; then :
14173   ac_have_decl=1
14174 else
14175   ac_have_decl=0
14176 fi
14177
14178 cat >>confdefs.h <<_ACEOF
14179 #define HAVE_DECL_GAI_STRERROR $ac_have_decl
14180 _ACEOF
14181 ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" "
14182   /* sys/types.h is not needed according to POSIX, but the
14183      sys/socket.h in i386-unknown-freebsd4.10 and
14184      powerpc-apple-darwin5.5 required it. */
14185 #include <sys/types.h>
14186 #ifdef HAVE_SYS_SOCKET_H
14187 #include <sys/socket.h>
14188 #endif
14189 #ifdef HAVE_NETDB_H
14190 #include <netdb.h>
14191 #endif
14192 #ifdef HAVE_WS2TCPIP_H
14193 #include <ws2tcpip.h>
14194 #endif
14195
14196 "
14197 if test "x$ac_cv_have_decl_getnameinfo" = xyes; then :
14198   ac_have_decl=1
14199 else
14200   ac_have_decl=0
14201 fi
14202
14203 cat >>confdefs.h <<_ACEOF
14204 #define HAVE_DECL_GETNAMEINFO $ac_have_decl
14205 _ACEOF
14206
14207   if test $ac_cv_have_decl_getaddrinfo = no; then
14208     HAVE_DECL_GETADDRINFO=0
14209   fi
14210   if test $ac_cv_have_decl_freeaddrinfo = no; then
14211     HAVE_DECL_FREEADDRINFO=0
14212   fi
14213   if test $ac_cv_have_decl_gai_strerror = no; then
14214     HAVE_DECL_GAI_STRERROR=0
14215   fi
14216   if test $ac_cv_have_decl_getnameinfo = no; then
14217     HAVE_DECL_GETNAMEINFO=0
14218   fi
14219
14220   ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
14221 #include <sys/types.h>
14222 #ifdef HAVE_SYS_SOCKET_H
14223 #include <sys/socket.h>
14224 #endif
14225 #ifdef HAVE_NETDB_H
14226 #include <netdb.h>
14227 #endif
14228 #ifdef HAVE_WS2TCPIP_H
14229 #include <ws2tcpip.h>
14230 #endif
14231
14232 "
14233 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14234
14235 cat >>confdefs.h <<_ACEOF
14236 #define HAVE_STRUCT_ADDRINFO 1
14237 _ACEOF
14238
14239
14240 fi
14241
14242   if test $ac_cv_type_struct_addrinfo = no; then
14243     HAVE_STRUCT_ADDRINFO=0
14244   fi
14245
14246     case " $GETADDRINFO_LIB " in
14247     *" $HOSTENT_LIB "*) ;;
14248     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
14249   esac
14250
14251     case " $GETADDRINFO_LIB " in
14252     *" $SERVENT_LIB "*) ;;
14253     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
14254   esac
14255
14256     case " $GETADDRINFO_LIB " in
14257     *" $INET_NTOP_LIB "*) ;;
14258     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;;
14259   esac
14260
14261
14262
14263
14264
14265
14266
14267   GNULIB_GETADDRINFO=1
14268
14269
14270   # Code from module getopt-gnu:
14271
14272
14273
14274
14275
14276
14277
14278 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
14279
14280
14281   # Code from module getopt-posix:
14282
14283
14284
14285
14286
14287   if test -n "$gl_replace_getopt"; then :
14288
14289
14290
14291   GETOPT_H=getopt.h
14292
14293 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14294
14295
14296
14297     GNULIB_UNISTD_H_GETOPT=1
14298
14299
14300
14301
14302
14303
14304
14305
14306   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14317
14318
14319
14320   :
14321
14322
14323
14324
14325
14326
14327
14328
14329 fi
14330
14331
14332   # Code from module gettext-h:
14333
14334
14335   # Code from module gettimeofday:
14336
14337
14338
14339
14340
14341   :
14342
14343
14344
14345
14346
14347
14348   gl_gettimeofday_timezone=void
14349   if test $ac_cv_func_gettimeofday != yes; then
14350     HAVE_GETTIMEOFDAY=0
14351
14352
14353
14354
14355
14356
14357
14358
14359   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14360
14361
14362   for ac_header in sys/timeb.h
14363 do :
14364   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14365 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14366   cat >>confdefs.h <<_ACEOF
14367 #define HAVE_SYS_TIMEB_H 1
14368 _ACEOF
14369
14370 fi
14371
14372 done
14373
14374   for ac_func in _ftime
14375 do :
14376   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14377 if test "x$ac_cv_func__ftime" = xyes; then :
14378   cat >>confdefs.h <<_ACEOF
14379 #define HAVE__FTIME 1
14380 _ACEOF
14381
14382 fi
14383 done
14384
14385
14386   else
14387
14388
14389
14390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
14391 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
14392 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
14393   $as_echo_n "(cached) " >&6
14394 else
14395   if test "$cross_compiling" = yes; then :
14396        gl_cv_func_gettimeofday_clobber=yes
14397 else
14398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399 /* end confdefs.h.  */
14400 #include <string.h>
14401           #include <sys/time.h>
14402           #include <time.h>
14403           #include <stdlib.h>
14404
14405 int
14406 main ()
14407 {
14408
14409           time_t t = 0;
14410           struct tm *lt;
14411           struct tm saved_lt;
14412           struct timeval tv;
14413           lt = localtime (&t);
14414           saved_lt = *lt;
14415           gettimeofday (&tv, NULL);
14416           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
14417
14418   ;
14419   return 0;
14420 }
14421 _ACEOF
14422 if ac_fn_c_try_run "$LINENO"; then :
14423   gl_cv_func_gettimeofday_clobber=no
14424 else
14425   gl_cv_func_gettimeofday_clobber=yes
14426 fi
14427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14428   conftest.$ac_objext conftest.beam conftest.$ac_ext
14429 fi
14430
14431 fi
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
14433 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
14434
14435  if test $gl_cv_func_gettimeofday_clobber = yes; then
14436    REPLACE_GETTIMEOFDAY=1
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14447
14448
14449   for ac_header in sys/timeb.h
14450 do :
14451   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14452 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14453   cat >>confdefs.h <<_ACEOF
14454 #define HAVE_SYS_TIMEB_H 1
14455 _ACEOF
14456
14457 fi
14458
14459 done
14460
14461   for ac_func in _ftime
14462 do :
14463   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14464 if test "x$ac_cv_func__ftime" = xyes; then :
14465   cat >>confdefs.h <<_ACEOF
14466 #define HAVE__FTIME 1
14467 _ACEOF
14468
14469 fi
14470 done
14471
14472
14473
14474 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
14475
14476
14477 $as_echo "#define localtime rpl_localtime" >>confdefs.h
14478
14479
14480
14481 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
14482
14483  fi
14484
14485     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
14486 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
14487 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
14488   $as_echo_n "(cached) " >&6
14489 else
14490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h.  */
14492 #include <sys/time.h>
14493               struct timeval c;
14494               int gettimeofday (struct timeval *restrict, void *restrict);
14495
14496 int
14497 main ()
14498 {
14499 /* glibc uses struct timezone * rather than the POSIX void *
14500                  if _GNU_SOURCE is defined.  However, since the only portable
14501                  use of gettimeofday uses NULL as the second parameter, and
14502                  since the glibc definition is actually more typesafe, it is
14503                  not worth wrapping this to get a compliant signature.  */
14504               int (*f) (struct timeval *restrict, void *restrict)
14505                 = gettimeofday;
14506               int x = f (&c, 0);
14507               return !(x | c.tv_sec | c.tv_usec);
14508
14509   ;
14510   return 0;
14511 }
14512 _ACEOF
14513 if ac_fn_c_try_compile "$LINENO"; then :
14514   gl_cv_func_gettimeofday_posix_signature=yes
14515 else
14516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h.  */
14518 #include <sys/time.h>
14519 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
14520
14521 int
14522 main ()
14523 {
14524
14525   ;
14526   return 0;
14527 }
14528 _ACEOF
14529 if ac_fn_c_try_compile "$LINENO"; then :
14530   gl_cv_func_gettimeofday_posix_signature=almost
14531 else
14532   gl_cv_func_gettimeofday_posix_signature=no
14533 fi
14534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14535 fi
14536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14537 fi
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
14539 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
14540     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
14541       gl_gettimeofday_timezone='struct timezone'
14542     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
14543       REPLACE_GETTIMEOFDAY=1
14544
14545
14546
14547
14548
14549
14550
14551
14552   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14553
14554
14555   for ac_header in sys/timeb.h
14556 do :
14557   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14558 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14559   cat >>confdefs.h <<_ACEOF
14560 #define HAVE_SYS_TIMEB_H 1
14561 _ACEOF
14562
14563 fi
14564
14565 done
14566
14567   for ac_func in _ftime
14568 do :
14569   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14570 if test "x$ac_cv_func__ftime" = xyes; then :
14571   cat >>confdefs.h <<_ACEOF
14572 #define HAVE__FTIME 1
14573 _ACEOF
14574
14575 fi
14576 done
14577
14578
14579     fi
14580   fi
14581
14582 cat >>confdefs.h <<_ACEOF
14583 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
14584 _ACEOF
14585
14586
14587
14588
14589
14590   GNULIB_GETTIMEOFDAY=1
14591
14592
14593
14594 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
14595
14596
14597
14598   # Code from module havelib:
14599   # Code from module hostent:
14600
14601                   HOSTENT_LIB=
14602   gl_saved_libs="$LIBS"
14603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14604 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14605 if ${ac_cv_search_gethostbyname+:} false; then :
14606   $as_echo_n "(cached) " >&6
14607 else
14608   ac_func_search_save_LIBS=$LIBS
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h.  */
14611
14612 /* Override any GCC internal prototype to avoid an error.
14613    Use char because int might match the return type of a GCC
14614    builtin and then its argument prototype would still apply.  */
14615 #ifdef __cplusplus
14616 extern "C"
14617 #endif
14618 char gethostbyname ();
14619 int
14620 main ()
14621 {
14622 return gethostbyname ();
14623   ;
14624   return 0;
14625 }
14626 _ACEOF
14627 for ac_lib in '' nsl network net; do
14628   if test -z "$ac_lib"; then
14629     ac_res="none required"
14630   else
14631     ac_res=-l$ac_lib
14632     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14633   fi
14634   if ac_fn_c_try_link "$LINENO"; then :
14635   ac_cv_search_gethostbyname=$ac_res
14636 fi
14637 rm -f core conftest.err conftest.$ac_objext \
14638     conftest$ac_exeext
14639   if ${ac_cv_search_gethostbyname+:} false; then :
14640   break
14641 fi
14642 done
14643 if ${ac_cv_search_gethostbyname+:} false; then :
14644
14645 else
14646   ac_cv_search_gethostbyname=no
14647 fi
14648 rm conftest.$ac_ext
14649 LIBS=$ac_func_search_save_LIBS
14650 fi
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14652 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14653 ac_res=$ac_cv_search_gethostbyname
14654 if test "$ac_res" != no; then :
14655   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14656   if test "$ac_cv_search_gethostbyname" != "none required"; then
14657        HOSTENT_LIB="$ac_cv_search_gethostbyname"
14658      fi
14659 fi
14660
14661   LIBS="$gl_saved_libs"
14662   if test -z "$HOSTENT_LIB"; then
14663     for ac_func in gethostbyname
14664 do :
14665   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14666 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14667   cat >>confdefs.h <<_ACEOF
14668 #define HAVE_GETHOSTBYNAME 1
14669 _ACEOF
14670
14671 else
14672
14673       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
14674 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
14675 if ${gl_cv_w32_gethostbyname+:} false; then :
14676   $as_echo_n "(cached) " >&6
14677 else
14678   gl_cv_w32_gethostbyname=no
14679          gl_save_LIBS="$LIBS"
14680          LIBS="$LIBS -lws2_32"
14681          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14682 /* end confdefs.h.  */
14683
14684 #ifdef HAVE_WINSOCK2_H
14685 #include <winsock2.h>
14686 #endif
14687 #include <stddef.h>
14688
14689 int
14690 main ()
14691 {
14692 gethostbyname(NULL);
14693   ;
14694   return 0;
14695 }
14696 _ACEOF
14697 if ac_fn_c_try_link "$LINENO"; then :
14698   gl_cv_w32_gethostbyname=yes
14699 fi
14700 rm -f core conftest.err conftest.$ac_objext \
14701     conftest$ac_exeext conftest.$ac_ext
14702          LIBS="$gl_save_LIBS"
14703
14704 fi
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
14706 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
14707       if test "$gl_cv_w32_gethostbyname" = "yes"; then
14708         HOSTENT_LIB="-lws2_32"
14709       fi
14710
14711 fi
14712 done
14713
14714   fi
14715
14716
14717   # Code from module include_next:
14718   # Code from module inet_ntop:
14719
14720
14721
14722
14723     :
14724
14725
14726       gl_save_LIBS=$LIBS
14727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
14728 $as_echo_n "checking for library containing inet_ntop... " >&6; }
14729 if ${ac_cv_search_inet_ntop+:} false; then :
14730   $as_echo_n "(cached) " >&6
14731 else
14732   ac_func_search_save_LIBS=$LIBS
14733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734 /* end confdefs.h.  */
14735
14736 /* Override any GCC internal prototype to avoid an error.
14737    Use char because int might match the return type of a GCC
14738    builtin and then its argument prototype would still apply.  */
14739 #ifdef __cplusplus
14740 extern "C"
14741 #endif
14742 char inet_ntop ();
14743 int
14744 main ()
14745 {
14746 return inet_ntop ();
14747   ;
14748   return 0;
14749 }
14750 _ACEOF
14751 for ac_lib in '' nsl; do
14752   if test -z "$ac_lib"; then
14753     ac_res="none required"
14754   else
14755     ac_res=-l$ac_lib
14756     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14757   fi
14758   if ac_fn_c_try_link "$LINENO"; then :
14759   ac_cv_search_inet_ntop=$ac_res
14760 fi
14761 rm -f core conftest.err conftest.$ac_objext \
14762     conftest$ac_exeext
14763   if ${ac_cv_search_inet_ntop+:} false; then :
14764   break
14765 fi
14766 done
14767 if ${ac_cv_search_inet_ntop+:} false; then :
14768
14769 else
14770   ac_cv_search_inet_ntop=no
14771 fi
14772 rm conftest.$ac_ext
14773 LIBS=$ac_func_search_save_LIBS
14774 fi
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
14776 $as_echo "$ac_cv_search_inet_ntop" >&6; }
14777 ac_res=$ac_cv_search_inet_ntop
14778 if test "$ac_res" != no; then :
14779   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14780
14781 else
14782
14783
14784
14785
14786
14787
14788
14789
14790   for ac_func in inet_ntop
14791 do :
14792   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
14793 if test "x$ac_cv_func_inet_ntop" = xyes; then :
14794   cat >>confdefs.h <<_ACEOF
14795 #define HAVE_INET_NTOP 1
14796 _ACEOF
14797
14798 else
14799
14800     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14801
14802 fi
14803 done
14804
14805
14806 fi
14807
14808   LIBS=$gl_save_LIBS
14809   INET_NTOP_LIB=
14810   if test "$ac_cv_search_inet_ntop" != "no" &&
14811      test "$ac_cv_search_inet_ntop" != "none required"; then
14812     INET_NTOP_LIB="$ac_cv_search_inet_ntop"
14813   fi
14814
14815
14816
14817   ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
14818 "
14819 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
14820   ac_have_decl=1
14821 else
14822   ac_have_decl=0
14823 fi
14824
14825 cat >>confdefs.h <<_ACEOF
14826 #define HAVE_DECL_INET_NTOP $ac_have_decl
14827 _ACEOF
14828
14829   if test $ac_cv_have_decl_inet_ntop = no; then
14830     HAVE_DECL_INET_NTOP=0
14831   fi
14832
14833
14834
14835
14836
14837
14838
14839   GNULIB_INET_NTOP=1
14840
14841
14842   # Code from module inet_pton:
14843
14844
14845
14846
14847     :
14848
14849
14850       gl_save_LIBS=$LIBS
14851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14852 $as_echo_n "checking for library containing inet_pton... " >&6; }
14853 if ${ac_cv_search_inet_pton+:} false; then :
14854   $as_echo_n "(cached) " >&6
14855 else
14856   ac_func_search_save_LIBS=$LIBS
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h.  */
14859
14860 /* Override any GCC internal prototype to avoid an error.
14861    Use char because int might match the return type of a GCC
14862    builtin and then its argument prototype would still apply.  */
14863 #ifdef __cplusplus
14864 extern "C"
14865 #endif
14866 char inet_pton ();
14867 int
14868 main ()
14869 {
14870 return inet_pton ();
14871   ;
14872   return 0;
14873 }
14874 _ACEOF
14875 for ac_lib in '' nsl; do
14876   if test -z "$ac_lib"; then
14877     ac_res="none required"
14878   else
14879     ac_res=-l$ac_lib
14880     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14881   fi
14882   if ac_fn_c_try_link "$LINENO"; then :
14883   ac_cv_search_inet_pton=$ac_res
14884 fi
14885 rm -f core conftest.err conftest.$ac_objext \
14886     conftest$ac_exeext
14887   if ${ac_cv_search_inet_pton+:} false; then :
14888   break
14889 fi
14890 done
14891 if ${ac_cv_search_inet_pton+:} false; then :
14892
14893 else
14894   ac_cv_search_inet_pton=no
14895 fi
14896 rm conftest.$ac_ext
14897 LIBS=$ac_func_search_save_LIBS
14898 fi
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14900 $as_echo "$ac_cv_search_inet_pton" >&6; }
14901 ac_res=$ac_cv_search_inet_pton
14902 if test "$ac_res" != no; then :
14903   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14904
14905 else
14906
14907
14908
14909
14910
14911
14912
14913
14914   for ac_func in inet_pton
14915 do :
14916   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
14917 if test "x$ac_cv_func_inet_pton" = xyes; then :
14918   cat >>confdefs.h <<_ACEOF
14919 #define HAVE_INET_PTON 1
14920 _ACEOF
14921
14922 else
14923
14924     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14925
14926 fi
14927 done
14928
14929
14930 fi
14931
14932   LIBS=$gl_save_LIBS
14933   INET_PTON_LIB=
14934   if test "$ac_cv_search_inet_pton" != "no" &&
14935      test "$ac_cv_search_inet_pton" != "none required"; then
14936     INET_PTON_LIB="$ac_cv_search_inet_pton"
14937   fi
14938
14939
14940
14941   ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
14942 "
14943 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
14944   ac_have_decl=1
14945 else
14946   ac_have_decl=0
14947 fi
14948
14949 cat >>confdefs.h <<_ACEOF
14950 #define HAVE_DECL_INET_PTON $ac_have_decl
14951 _ACEOF
14952
14953   if test $ac_cv_have_decl_inet_pton = no; then
14954     HAVE_DECL_INET_PTON=0
14955   fi
14956
14957
14958
14959
14960
14961
14962
14963   GNULIB_INET_PTON=1
14964
14965
14966   # Code from module langinfo:
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976   :
14977
14978
14979
14980
14981
14982
14983
14984      if test $gl_cv_have_include_next = yes; then
14985        gl_cv_next_langinfo_h='<'langinfo.h'>'
14986      else
14987        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
14988 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
14989 if ${gl_cv_next_langinfo_h+:} false; then :
14990   $as_echo_n "(cached) " >&6
14991 else
14992
14993           if test $ac_cv_header_langinfo_h = yes; then
14994             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h.  */
14996 #include <langinfo.h>
14997
14998 _ACEOF
14999                                                                                                 case "$host_os" in
15000               aix*) gl_absname_cpp="$ac_cpp -C" ;;
15001               *)    gl_absname_cpp="$ac_cpp" ;;
15002             esac
15003                                                 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15004                sed -n '\#/langinfo.h#{
15005                  s#.*"\(.*/langinfo.h\)".*#\1#
15006                  s#^/[^/]#//&#
15007                  p
15008                  q
15009                }'`'"'
15010           else
15011             gl_cv_next_langinfo_h='<'langinfo.h'>'
15012           fi
15013
15014 fi
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
15016 $as_echo "$gl_cv_next_langinfo_h" >&6; }
15017      fi
15018      NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
15019
15020      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15021        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15022        gl_next_as_first_directive='<'langinfo.h'>'
15023      else
15024        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15025        gl_next_as_first_directive=$gl_cv_next_langinfo_h
15026      fi
15027      NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
15028
15029
15030
15031
15032     HAVE_LANGINFO_CODESET=0
15033   HAVE_LANGINFO_ERA=0
15034
15035   :
15036
15037
15038
15039
15040
15041   if test $ac_cv_header_langinfo_h = yes; then
15042     HAVE_LANGINFO_H=1
15043             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
15044 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
15045 if ${gl_cv_header_langinfo_codeset+:} false; then :
15046   $as_echo_n "(cached) " >&6
15047 else
15048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049 /* end confdefs.h.  */
15050 #include <langinfo.h>
15051 int a = CODESET;
15052
15053 int
15054 main ()
15055 {
15056
15057   ;
15058   return 0;
15059 }
15060 _ACEOF
15061 if ac_fn_c_try_compile "$LINENO"; then :
15062   gl_cv_header_langinfo_codeset=yes
15063 else
15064   gl_cv_header_langinfo_codeset=no
15065 fi
15066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15067
15068 fi
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
15070 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
15071     if test $gl_cv_header_langinfo_codeset = yes; then
15072       HAVE_LANGINFO_CODESET=1
15073     fi
15074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
15075 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
15076 if ${gl_cv_header_langinfo_era+:} false; then :
15077   $as_echo_n "(cached) " >&6
15078 else
15079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h.  */
15081 #include <langinfo.h>
15082 int a = ERA;
15083
15084 int
15085 main ()
15086 {
15087
15088   ;
15089   return 0;
15090 }
15091 _ACEOF
15092 if ac_fn_c_try_compile "$LINENO"; then :
15093   gl_cv_header_langinfo_era=yes
15094 else
15095   gl_cv_header_langinfo_era=no
15096 fi
15097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098
15099 fi
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
15101 $as_echo "$gl_cv_header_langinfo_era" >&6; }
15102     if test $gl_cv_header_langinfo_era = yes; then
15103       HAVE_LANGINFO_ERA=1
15104     fi
15105   else
15106     HAVE_LANGINFO_H=0
15107   fi
15108
15109
15110
15111
15112
15113     for gl_func in nl_langinfo; do
15114     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15116 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15117 if eval \${$as_gl_Symbol+:} false; then :
15118   $as_echo_n "(cached) " >&6
15119 else
15120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h.  */
15122 #include <langinfo.h>
15123
15124 int
15125 main ()
15126 {
15127 #undef $gl_func
15128   (void) $gl_func;
15129   ;
15130   return 0;
15131 }
15132 _ACEOF
15133 if ac_fn_c_try_compile "$LINENO"; then :
15134   eval "$as_gl_Symbol=yes"
15135 else
15136   eval "$as_gl_Symbol=no"
15137 fi
15138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15139 fi
15140 eval ac_res=\$$as_gl_Symbol
15141                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15142 $as_echo "$ac_res" >&6; }
15143      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15144   cat >>confdefs.h <<_ACEOF
15145 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15146 _ACEOF
15147
15148                      eval ac_cv_have_decl_$gl_func=yes
15149 fi
15150       done
15151
15152
15153   # Code from module localcharset:
15154
15155
15156
15157
15158   :
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
15169
15170   # Code from module lock:
15171
15172
15173   if test "$gl_threads_api" = posix; then
15174     # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
15175     # pthread_rwlock_* functions.
15176     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15177 "
15178 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15179
15180 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
15181
15182 fi
15183
15184     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
15185     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15186 /* end confdefs.h.  */
15187
15188       #include <pthread.h>
15189 int
15190 main ()
15191 {
15192
15193 #if __FreeBSD__ == 4
15194 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
15195 #else
15196 int x = (int)PTHREAD_MUTEX_RECURSIVE;
15197 return !x;
15198 #endif
15199
15200   ;
15201   return 0;
15202 }
15203 _ACEOF
15204 if ac_fn_c_try_compile "$LINENO"; then :
15205
15206 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
15207
15208 fi
15209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15210   fi
15211
15212
15213
15214
15215   # Code from module lseek:
15216
15217
15218
15219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
15220 $as_echo_n "checking whether lseek detects pipes... " >&6; }
15221 if ${gl_cv_func_lseek_pipe+:} false; then :
15222   $as_echo_n "(cached) " >&6
15223 else
15224   if test $cross_compiling = no; then
15225        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h.  */
15227
15228 #include <sys/types.h> /* for off_t */
15229 #include <stdio.h> /* for SEEK_CUR */
15230 #include <unistd.h>
15231 int
15232 main ()
15233 {
15234
15235   /* Exit with success only if stdin is seekable.  */
15236   return lseek (0, (off_t)0, SEEK_CUR) < 0;
15237
15238   ;
15239   return 0;
15240 }
15241 _ACEOF
15242 if ac_fn_c_try_link "$LINENO"; then :
15243   if test -s conftest$ac_exeext \
15244              && ./conftest$ac_exeext < conftest.$ac_ext \
15245              && test 1 = "`echo hi \
15246                | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
15247             gl_cv_func_lseek_pipe=yes
15248           else
15249             gl_cv_func_lseek_pipe=no
15250           fi
15251 else
15252   gl_cv_func_lseek_pipe=no
15253 fi
15254 rm -f core conftest.err conftest.$ac_objext \
15255     conftest$ac_exeext conftest.$ac_ext
15256      else
15257        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h.  */
15259
15260 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
15261 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes.  */
15262   Choke me.
15263 #endif
15264 _ACEOF
15265 if ac_fn_c_try_compile "$LINENO"; then :
15266   gl_cv_func_lseek_pipe=yes
15267 else
15268   gl_cv_func_lseek_pipe=no
15269 fi
15270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15271      fi
15272 fi
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
15274 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
15275   if test $gl_cv_func_lseek_pipe = no; then
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
15286
15287
15288   REPLACE_LSEEK=1
15289
15290 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
15291
15292
15293   fi
15294
15295
15296
15297
15298   GNULIB_LSEEK=1
15299
15300
15301
15302 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
15303
15304
15305
15306   # Code from module lstat:
15307
15308
15309
15310   :
15311
15312
15313
15314
15315
15316   if test $ac_cv_func_lstat = yes; then
15317
15318     if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15319             REPLACE_LSTAT=1
15320     fi
15321     # Prerequisites of lib/lstat.c.
15322
15323   else
15324     HAVE_LSTAT=0
15325   fi
15326
15327
15328
15329
15330   GNULIB_LSTAT=1
15331
15332
15333
15334 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
15335
15336
15337
15338   # Code from module malloc-gnu:
15339
15340
15341     for ac_header in stdlib.h
15342 do :
15343   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15344 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15345   cat >>confdefs.h <<_ACEOF
15346 #define HAVE_STDLIB_H 1
15347 _ACEOF
15348
15349 fi
15350
15351 done
15352
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15354 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15355 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15356   $as_echo_n "(cached) " >&6
15357 else
15358   if test "$cross_compiling" = yes; then :
15359   ac_cv_func_malloc_0_nonnull=no
15360 else
15361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h.  */
15363 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15364 # include <stdlib.h>
15365 #else
15366 char *malloc ();
15367 #endif
15368
15369 int
15370 main ()
15371 {
15372 return ! malloc (0);
15373   ;
15374   return 0;
15375 }
15376 _ACEOF
15377 if ac_fn_c_try_run "$LINENO"; then :
15378   ac_cv_func_malloc_0_nonnull=yes
15379 else
15380   ac_cv_func_malloc_0_nonnull=no
15381 fi
15382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15383   conftest.$ac_objext conftest.beam conftest.$ac_ext
15384 fi
15385
15386 fi
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15388 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15389 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15390
15391 $as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
15392
15393 else
15394   $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15406
15407   REPLACE_MALLOC=1
15408
15409
15410 fi
15411
15412
15413
15414
15415 cat >>confdefs.h <<_ACEOF
15416 #define GNULIB_MALLOC_GNU 1
15417 _ACEOF
15418
15419
15420   # Code from module malloc-posix:
15421
15422
15423
15424   if test $gl_cv_func_malloc_posix = yes; then
15425
15426 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
15427
15428   else
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15439
15440   REPLACE_MALLOC=1
15441
15442   fi
15443
15444
15445
15446
15447   GNULIB_MALLOC_POSIX=1
15448
15449
15450
15451 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
15452
15453
15454
15455   # Code from module mbrtowc:
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465   :
15466
15467
15468
15469
15470
15471
15472   :
15473
15474
15475
15476
15477
15478   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15479
15480
15481
15482      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15483 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15484 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
15485   $as_echo_n "(cached) " >&6
15486 else
15487
15488                   case "$host_os" in
15489                      # Guess no on AIX and OSF/1.
15490         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15491                      # Guess yes otherwise.
15492         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15493       esac
15494       if test $LOCALE_JA != none; then
15495         if test "$cross_compiling" = yes; then :
15496   :
15497 else
15498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499 /* end confdefs.h.  */
15500
15501 #include <locale.h>
15502 #include <string.h>
15503 #include <wchar.h>
15504 int main ()
15505 {
15506   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15507     {
15508       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15509       mbstate_t state;
15510       wchar_t wc;
15511
15512       memset (&state, '\0', sizeof (mbstate_t));
15513       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15514         if (mbsinit (&state))
15515           return 1;
15516     }
15517   return 0;
15518 }
15519 _ACEOF
15520 if ac_fn_c_try_run "$LINENO"; then :
15521   gl_cv_func_mbrtowc_incomplete_state=yes
15522 else
15523   gl_cv_func_mbrtowc_incomplete_state=no
15524 fi
15525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15526   conftest.$ac_objext conftest.beam conftest.$ac_ext
15527 fi
15528
15529       fi
15530
15531 fi
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15533 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15534
15535
15536
15537
15538      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15539 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15540 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
15541   $as_echo_n "(cached) " >&6
15542 else
15543
15544                   case "$host_os" in
15545                     # Guess no on Solaris 8.
15546         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15547                     # Guess yes otherwise.
15548         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15549       esac
15550       if test $LOCALE_ZH_CN != none; then
15551         if test "$cross_compiling" = yes; then :
15552   :
15553 else
15554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15555 /* end confdefs.h.  */
15556
15557 #include <locale.h>
15558 #include <stdlib.h>
15559 #include <string.h>
15560 #include <wchar.h>
15561 int main ()
15562 {
15563   /* This fails on Solaris 8:
15564      mbrtowc returns 2, and sets wc to 0x00F0.
15565      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
15566   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15567     {
15568       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15569       mbstate_t state;
15570       wchar_t wc;
15571
15572       memset (&state, '\0', sizeof (mbstate_t));
15573       if (mbrtowc (&wc, input + 3, 6, &state) != 4
15574           && mbtowc (&wc, input + 3, 6) == 4)
15575         return 1;
15576     }
15577   return 0;
15578 }
15579 _ACEOF
15580 if ac_fn_c_try_run "$LINENO"; then :
15581   gl_cv_func_mbrtowc_sanitycheck=yes
15582 else
15583   gl_cv_func_mbrtowc_sanitycheck=no
15584 fi
15585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15586   conftest.$ac_objext conftest.beam conftest.$ac_ext
15587 fi
15588
15589       fi
15590
15591 fi
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15593 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15594
15595     REPLACE_MBSTATE_T=0
15596     case "$gl_cv_func_mbrtowc_incomplete_state" in
15597       *yes) ;;
15598       *) REPLACE_MBSTATE_T=1 ;;
15599     esac
15600     case "$gl_cv_func_mbrtowc_sanitycheck" in
15601       *yes) ;;
15602       *) REPLACE_MBSTATE_T=1 ;;
15603     esac
15604   else
15605     REPLACE_MBSTATE_T=1
15606   fi
15607   if test $REPLACE_MBSTATE_T = 1; then
15608
15609     :
15610
15611   fi
15612
15613
15614
15615   :
15616
15617
15618
15619
15620
15621   if test $ac_cv_func_mbrtowc = no; then
15622     HAVE_MBRTOWC=0
15623   else
15624     if test $REPLACE_MBSTATE_T = 1; then
15625       REPLACE_MBRTOWC=1
15626     else
15627
15628
15629
15630      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
15631 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
15632 if ${gl_cv_func_mbrtowc_null_arg+:} false; then :
15633   $as_echo_n "(cached) " >&6
15634 else
15635
15636                   case "$host_os" in
15637               # Guess no on OSF/1.
15638         osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
15639               # Guess yes otherwise.
15640         *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
15641       esac
15642       if test $LOCALE_FR_UTF8 != none; then
15643         if test "$cross_compiling" = yes; then :
15644   :
15645 else
15646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h.  */
15648
15649 #include <locale.h>
15650 #include <string.h>
15651 #include <wchar.h>
15652 int main ()
15653 {
15654   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15655     {
15656       mbstate_t state;
15657       wchar_t wc;
15658       int ret;
15659
15660       memset (&state, '\0', sizeof (mbstate_t));
15661       wc = (wchar_t) 0xBADFACE;
15662       mbrtowc (&wc, NULL, 5, &state);
15663       /* Check that wc was not modified.  */
15664       if (wc != (wchar_t) 0xBADFACE)
15665         return 1;
15666     }
15667   return 0;
15668 }
15669 _ACEOF
15670 if ac_fn_c_try_run "$LINENO"; then :
15671   gl_cv_func_mbrtowc_null_arg=yes
15672 else
15673   gl_cv_func_mbrtowc_null_arg=no
15674 fi
15675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15676   conftest.$ac_objext conftest.beam conftest.$ac_ext
15677 fi
15678
15679       fi
15680
15681 fi
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
15683 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
15684
15685
15686
15687
15688
15689      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
15690 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
15691 if ${gl_cv_func_mbrtowc_retval+:} false; then :
15692   $as_echo_n "(cached) " >&6
15693 else
15694
15695                   case "$host_os" in
15696                           # Guess no on HP-UX and Solaris.
15697         hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
15698                           # Guess yes otherwise.
15699         *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
15700       esac
15701       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
15702         if test "$cross_compiling" = yes; then :
15703   :
15704 else
15705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15706 /* end confdefs.h.  */
15707
15708 #include <locale.h>
15709 #include <string.h>
15710 #include <wchar.h>
15711 int main ()
15712 {
15713   /* This fails on Solaris.  */
15714   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15715     {
15716       char input[] = "B\303\274\303\237er"; /* "Büßer" */
15717       mbstate_t state;
15718       wchar_t wc;
15719
15720       memset (&state, '\0', sizeof (mbstate_t));
15721       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15722         {
15723           input[1] = '\0';
15724           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
15725             return 1;
15726         }
15727     }
15728   /* This fails on HP-UX 11.11.  */
15729   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15730     {
15731       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15732       mbstate_t state;
15733       wchar_t wc;
15734
15735       memset (&state, '\0', sizeof (mbstate_t));
15736       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15737         {
15738           input[1] = '\0';
15739           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15740             return 1;
15741         }
15742     }
15743   return 0;
15744 }
15745 _ACEOF
15746 if ac_fn_c_try_run "$LINENO"; then :
15747   gl_cv_func_mbrtowc_retval=yes
15748 else
15749   gl_cv_func_mbrtowc_retval=no
15750 fi
15751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15752   conftest.$ac_objext conftest.beam conftest.$ac_ext
15753 fi
15754
15755       fi
15756
15757 fi
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15759 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15760
15761
15762
15763
15764      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15765 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15766 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
15767   $as_echo_n "(cached) " >&6
15768 else
15769
15770                   case "$host_os" in
15771                        # Guess no on Solaris 8 and 9.
15772         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15773                        # Guess yes otherwise.
15774         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15775       esac
15776       if test $LOCALE_ZH_CN != none; then
15777         if test "$cross_compiling" = yes; then :
15778   :
15779 else
15780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15781 /* end confdefs.h.  */
15782
15783 #include <locale.h>
15784 #include <string.h>
15785 #include <wchar.h>
15786 int main ()
15787 {
15788   /* This fails on Solaris 8 and 9.  */
15789   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15790     {
15791       mbstate_t state;
15792       wchar_t wc;
15793
15794       memset (&state, '\0', sizeof (mbstate_t));
15795       if (mbrtowc (&wc, "", 1, &state) != 0)
15796         return 1;
15797     }
15798   return 0;
15799 }
15800 _ACEOF
15801 if ac_fn_c_try_run "$LINENO"; then :
15802   gl_cv_func_mbrtowc_nul_retval=yes
15803 else
15804   gl_cv_func_mbrtowc_nul_retval=no
15805 fi
15806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15807   conftest.$ac_objext conftest.beam conftest.$ac_ext
15808 fi
15809
15810       fi
15811
15812 fi
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15814 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15815
15816       case "$gl_cv_func_mbrtowc_null_arg" in
15817         *yes) ;;
15818         *)
15819 $as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
15820
15821            REPLACE_MBRTOWC=1
15822            ;;
15823       esac
15824       case "$gl_cv_func_mbrtowc_retval" in
15825         *yes) ;;
15826         *)
15827 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15828
15829            REPLACE_MBRTOWC=1
15830            ;;
15831       esac
15832       case "$gl_cv_func_mbrtowc_nul_retval" in
15833         *yes) ;;
15834         *)
15835 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15836
15837            REPLACE_MBRTOWC=1
15838            ;;
15839       esac
15840     fi
15841   fi
15842   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15843
15844     :
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15855
15856
15857   :
15858
15859   fi
15860
15861
15862
15863
15864   GNULIB_MBRTOWC=1
15865
15866
15867
15868 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15869
15870
15871
15872   # Code from module mbsinit:
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882   :
15883
15884
15885
15886
15887
15888
15889   :
15890
15891
15892
15893
15894
15895   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15896
15897
15898
15899      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15900 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15901 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
15902   $as_echo_n "(cached) " >&6
15903 else
15904
15905                   case "$host_os" in
15906                      # Guess no on AIX and OSF/1.
15907         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15908                      # Guess yes otherwise.
15909         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15910       esac
15911       if test $LOCALE_JA != none; then
15912         if test "$cross_compiling" = yes; then :
15913   :
15914 else
15915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916 /* end confdefs.h.  */
15917
15918 #include <locale.h>
15919 #include <string.h>
15920 #include <wchar.h>
15921 int main ()
15922 {
15923   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15924     {
15925       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15926       mbstate_t state;
15927       wchar_t wc;
15928
15929       memset (&state, '\0', sizeof (mbstate_t));
15930       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15931         if (mbsinit (&state))
15932           return 1;
15933     }
15934   return 0;
15935 }
15936 _ACEOF
15937 if ac_fn_c_try_run "$LINENO"; then :
15938   gl_cv_func_mbrtowc_incomplete_state=yes
15939 else
15940   gl_cv_func_mbrtowc_incomplete_state=no
15941 fi
15942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15943   conftest.$ac_objext conftest.beam conftest.$ac_ext
15944 fi
15945
15946       fi
15947
15948 fi
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15950 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15951
15952
15953
15954
15955      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15956 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15957 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
15958   $as_echo_n "(cached) " >&6
15959 else
15960
15961                   case "$host_os" in
15962                     # Guess no on Solaris 8.
15963         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15964                     # Guess yes otherwise.
15965         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15966       esac
15967       if test $LOCALE_ZH_CN != none; then
15968         if test "$cross_compiling" = yes; then :
15969   :
15970 else
15971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972 /* end confdefs.h.  */
15973
15974 #include <locale.h>
15975 #include <stdlib.h>
15976 #include <string.h>
15977 #include <wchar.h>
15978 int main ()
15979 {
15980   /* This fails on Solaris 8:
15981      mbrtowc returns 2, and sets wc to 0x00F0.
15982      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
15983   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15984     {
15985       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15986       mbstate_t state;
15987       wchar_t wc;
15988
15989       memset (&state, '\0', sizeof (mbstate_t));
15990       if (mbrtowc (&wc, input + 3, 6, &state) != 4
15991           && mbtowc (&wc, input + 3, 6) == 4)
15992         return 1;
15993     }
15994   return 0;
15995 }
15996 _ACEOF
15997 if ac_fn_c_try_run "$LINENO"; then :
15998   gl_cv_func_mbrtowc_sanitycheck=yes
15999 else
16000   gl_cv_func_mbrtowc_sanitycheck=no
16001 fi
16002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16003   conftest.$ac_objext conftest.beam conftest.$ac_ext
16004 fi
16005
16006       fi
16007
16008 fi
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
16010 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
16011
16012     REPLACE_MBSTATE_T=0
16013     case "$gl_cv_func_mbrtowc_incomplete_state" in
16014       *yes) ;;
16015       *) REPLACE_MBSTATE_T=1 ;;
16016     esac
16017     case "$gl_cv_func_mbrtowc_sanitycheck" in
16018       *yes) ;;
16019       *) REPLACE_MBSTATE_T=1 ;;
16020     esac
16021   else
16022     REPLACE_MBSTATE_T=1
16023   fi
16024   if test $REPLACE_MBSTATE_T = 1; then
16025
16026     :
16027
16028   fi
16029
16030
16031
16032   :
16033
16034
16035
16036
16037
16038   if test $ac_cv_func_mbsinit = no; then
16039     HAVE_MBSINIT=0
16040   else
16041     if test $REPLACE_MBSTATE_T = 1; then
16042       REPLACE_MBSINIT=1
16043     fi
16044   fi
16045   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
16046
16047     :
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
16058
16059
16060   :
16061
16062   fi
16063
16064
16065
16066
16067   GNULIB_MBSINIT=1
16068
16069
16070
16071 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
16072
16073
16074
16075   # Code from module memchr:
16076
16077
16078
16079
16080   GNULIB_MEMCHR=1
16081
16082
16083
16084 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
16085
16086
16087
16088   # Code from module mkdtemp:
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099   for ac_func in mkdtemp
16100 do :
16101   ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
16102 if test "x$ac_cv_func_mkdtemp" = xyes; then :
16103   cat >>confdefs.h <<_ACEOF
16104 #define HAVE_MKDTEMP 1
16105 _ACEOF
16106
16107 else
16108
16109     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16110
16111 fi
16112 done
16113
16114
16115   if test $ac_cv_func_mkdtemp = no; then
16116     HAVE_MKDTEMP=0
16117     :
16118
16119   fi
16120
16121
16122
16123
16124   GNULIB_MKDTEMP=1
16125
16126
16127
16128 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
16129
16130
16131
16132   # Code from module multiarch:
16133
16134   # Code from module netdb:
16135
16136
16137
16138   :
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148   :
16149
16150
16151
16152
16153
16154
16155
16156      if test $gl_cv_have_include_next = yes; then
16157        gl_cv_next_netdb_h='<'netdb.h'>'
16158      else
16159        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
16160 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
16161 if ${gl_cv_next_netdb_h+:} false; then :
16162   $as_echo_n "(cached) " >&6
16163 else
16164
16165           if test $ac_cv_header_netdb_h = yes; then
16166             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16167 /* end confdefs.h.  */
16168 #include <netdb.h>
16169
16170 _ACEOF
16171                                                                                                 case "$host_os" in
16172               aix*) gl_absname_cpp="$ac_cpp -C" ;;
16173               *)    gl_absname_cpp="$ac_cpp" ;;
16174             esac
16175                                                 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16176                sed -n '\#/netdb.h#{
16177                  s#.*"\(.*/netdb.h\)".*#\1#
16178                  s#^/[^/]#//&#
16179                  p
16180                  q
16181                }'`'"'
16182           else
16183             gl_cv_next_netdb_h='<'netdb.h'>'
16184           fi
16185
16186 fi
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
16188 $as_echo "$gl_cv_next_netdb_h" >&6; }
16189      fi
16190      NEXT_NETDB_H=$gl_cv_next_netdb_h
16191
16192      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16193        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16194        gl_next_as_first_directive='<'netdb.h'>'
16195      else
16196        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16197        gl_next_as_first_directive=$gl_cv_next_netdb_h
16198      fi
16199      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
16200
16201
16202
16203   if test $ac_cv_header_netdb_h = yes; then
16204     HAVE_NETDB_H=1
16205   else
16206     HAVE_NETDB_H=0
16207   fi
16208
16209
16210
16211     for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
16212     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16213     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16214 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16215 if eval \${$as_gl_Symbol+:} false; then :
16216   $as_echo_n "(cached) " >&6
16217 else
16218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h.  */
16220 #include <netdb.h>
16221 int
16222 main ()
16223 {
16224 #undef $gl_func
16225   (void) $gl_func;
16226   ;
16227   return 0;
16228 }
16229 _ACEOF
16230 if ac_fn_c_try_compile "$LINENO"; then :
16231   eval "$as_gl_Symbol=yes"
16232 else
16233   eval "$as_gl_Symbol=no"
16234 fi
16235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16236 fi
16237 eval ac_res=\$$as_gl_Symbol
16238                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16239 $as_echo "$ac_res" >&6; }
16240      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
16241   cat >>confdefs.h <<_ACEOF
16242 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16243 _ACEOF
16244
16245                      eval ac_cv_have_decl_$gl_func=yes
16246 fi
16247       done
16248
16249
16250   # Code from module netinet_in:
16251
16252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
16253 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
16254 if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
16255   $as_echo_n "(cached) " >&6
16256 else
16257
16258       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259 /* end confdefs.h.  */
16260 #include <netinet/in.h>
16261 int
16262 main ()
16263 {
16264
16265   ;
16266   return 0;
16267 }
16268 _ACEOF
16269 if ac_fn_c_try_compile "$LINENO"; then :
16270   gl_cv_header_netinet_in_h_selfcontained=yes
16271 else
16272   gl_cv_header_netinet_in_h_selfcontained=no
16273 fi
16274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16275
16276 fi
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
16278 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
16279   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
16280     NETINET_IN_H=''
16281   else
16282     NETINET_IN_H='netinet/in.h'
16283     for ac_header in netinet/in.h
16284 do :
16285   ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16286 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
16287   cat >>confdefs.h <<_ACEOF
16288 #define HAVE_NETINET_IN_H 1
16289 _ACEOF
16290
16291 fi
16292
16293 done
16294
16295
16296
16297
16298
16299   :
16300
16301
16302
16303
16304
16305
16306
16307      if test $gl_cv_have_include_next = yes; then
16308        gl_cv_next_netinet_in_h='<'netinet/in.h'>'
16309      else
16310        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
16311 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
16312 if ${gl_cv_next_netinet_in_h+:} false; then :
16313   $as_echo_n "(cached) " >&6
16314 else
16315
16316           if test $ac_cv_header_netinet_in_h = yes; then
16317             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318 /* end confdefs.h.  */
16319 #include <netinet/in.h>
16320
16321 _ACEOF
16322                                                                                                 case "$host_os" in
16323               aix*) gl_absname_cpp="$ac_cpp -C" ;;
16324               *)    gl_absname_cpp="$ac_cpp" ;;
16325             esac
16326                                                 gl_cv_next_netinet_in_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16327                sed -n '\#/netinet/in.h#{
16328                  s#.*"\(.*/netinet/in.h\)".*#\1#
16329                  s#^/[^/]#//&#
16330                  p
16331                  q
16332                }'`'"'
16333           else
16334             gl_cv_next_netinet_in_h='<'netinet/in.h'>'
16335           fi
16336
16337 fi
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
16339 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
16340      fi
16341      NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
16342
16343      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16344        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16345        gl_next_as_first_directive='<'netinet/in.h'>'
16346      else
16347        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16348        gl_next_as_first_directive=$gl_cv_next_netinet_in_h
16349      fi
16350      NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
16351
16352
16353
16354     if test $ac_cv_header_netinet_in_h = yes; then
16355       HAVE_NETINET_IN_H=1
16356     else
16357       HAVE_NETINET_IN_H=0
16358     fi
16359
16360   fi
16361
16362
16363
16364   # Code from module nl_langinfo:
16365
16366
16367
16368
16369   :
16370
16371
16372
16373
16374
16375   if test $ac_cv_func_nl_langinfo = yes; then
16376     if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
16377       :
16378     else
16379       REPLACE_NL_LANGINFO=1
16380
16381 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391   gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
16392
16393     fi
16394   else
16395     HAVE_NL_LANGINFO=0
16396
16397
16398
16399
16400
16401
16402
16403
16404   gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
16405
16406   fi
16407
16408
16409
16410
16411   GNULIB_NL_LANGINFO=1
16412
16413
16414
16415 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
16416
16417
16418
16419   # Code from module physmem:
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429   gl_LIBOBJS="$gl_LIBOBJS physmem.$ac_objext"
16430
16431
16432   # Prerequisites of lib/physmem.c.
16433   for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
16434     machine/hal_sysinfo.h sys/table.h sys/param.h sys/systemcfg.h
16435 do :
16436   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16437 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16438 "
16439 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16440   cat >>confdefs.h <<_ACEOF
16441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16442 _ACEOF
16443
16444 fi
16445
16446 done
16447
16448     for ac_header in sys/sysctl.h
16449 do :
16450   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
16451      #if HAVE_SYS_PARAM_H
16452      # include <sys/param.h>
16453      #endif
16454
16455 "
16456 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
16457   cat >>confdefs.h <<_ACEOF
16458 #define HAVE_SYS_SYSCTL_H 1
16459 _ACEOF
16460
16461 fi
16462
16463 done
16464
16465
16466   for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
16467 do :
16468   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16469 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16470 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16471   cat >>confdefs.h <<_ACEOF
16472 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16473 _ACEOF
16474
16475 fi
16476 done
16477
16478
16479
16480   # Code from module regex:
16481
16482
16483   :
16484
16485
16486
16487
16488
16489
16490
16491 # Check whether --with-included-regex was given.
16492 if test "${with_included_regex+set}" = set; then :
16493   withval=$with_included_regex;
16494 fi
16495
16496
16497   case $with_included_regex in #(
16498   yes|no) ac_use_included_regex=$with_included_regex
16499         ;;
16500   '')
16501     # If the system regex support is good enough that it passes the
16502     # following run test, then default to *not* using the included regex.c.
16503     # If cross compiling, assume the test would fail and use the included
16504     # regex.c.
16505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
16506 $as_echo_n "checking for working re_compile_pattern... " >&6; }
16507 if ${gl_cv_func_re_compile_pattern_working+:} false; then :
16508   $as_echo_n "(cached) " >&6
16509 else
16510   if test "$cross_compiling" = yes; then :
16511          gl_cv_func_re_compile_pattern_working=no
16512 else
16513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16514 /* end confdefs.h.  */
16515 $ac_includes_default
16516            #if HAVE_LOCALE_H
16517             #include <locale.h>
16518            #endif
16519            #include <limits.h>
16520            #include <regex.h>
16521
16522 int
16523 main ()
16524 {
16525 static struct re_pattern_buffer regex;
16526             unsigned char folded_chars[UCHAR_MAX + 1];
16527             int i;
16528             const char *s;
16529             struct re_registers regs;
16530
16531             #if HAVE_LOCALE_H
16532               /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
16533                  This test needs valgrind to catch the bug on Debian
16534                  GNU/Linux 3.1 x86, but it might catch the bug better
16535                  on other platforms and it shouldn't hurt to try the
16536                  test here.  */
16537               if (setlocale (LC_ALL, "en_US.UTF-8"))
16538                 {
16539                   static char const pat[] = "insert into";
16540                   static char const data[] =
16541                     "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
16542                   re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
16543                                  | RE_ICASE);
16544                   memset (&regex, 0, sizeof regex);
16545                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
16546                   if (s)
16547                     return 1;
16548                   if (re_search (&regex, data, sizeof data - 1,
16549                                  0, sizeof data - 1, &regs)
16550                       != -1)
16551                     return 1;
16552                   if (! setlocale (LC_ALL, "C"))
16553                     return 1;
16554                 }
16555             #endif
16556
16557             /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
16558             re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
16559             memset (&regex, 0, sizeof regex);
16560             s = re_compile_pattern ("a[^x]b", 6, &regex);
16561             if (s)
16562               return 1;
16563
16564             /* This should fail, but succeeds for glibc-2.5.  */
16565             if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
16566               return 1;
16567
16568             /* This regular expression is from Spencer ere test number 75
16569                in grep-2.3.  */
16570             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
16571             memset (&regex, 0, sizeof regex);
16572             for (i = 0; i <= UCHAR_MAX; i++)
16573               folded_chars[i] = i;
16574             regex.translate = folded_chars;
16575             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
16576             /* This should fail with _Invalid character class name_ error.  */
16577             if (!s)
16578               return 1;
16579
16580             /* Ensure that [b-a] is diagnosed as invalid, when
16581                using RE_NO_EMPTY_RANGES. */
16582             re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
16583             memset (&regex, 0, sizeof regex);
16584             s = re_compile_pattern ("a[b-a]", 6, &regex);
16585             if (s == 0)
16586               return 1;
16587
16588             /* This should succeed, but does not for glibc-2.1.3.  */
16589             memset (&regex, 0, sizeof regex);
16590             s = re_compile_pattern ("{1", 2, &regex);
16591
16592             if (s)
16593               return 1;
16594
16595             /* The following example is derived from a problem report
16596                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
16597             memset (&regex, 0, sizeof regex);
16598             s = re_compile_pattern ("[an\371]*n", 7, &regex);
16599             if (s)
16600               return 1;
16601
16602             /* This should match, but does not for glibc-2.2.1.  */
16603             if (re_match (&regex, "an", 2, 0, &regs) != 2)
16604               return 1;
16605
16606             memset (&regex, 0, sizeof regex);
16607             s = re_compile_pattern ("x", 1, &regex);
16608             if (s)
16609               return 1;
16610
16611             /* glibc-2.2.93 does not work with a negative RANGE argument.  */
16612             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
16613               return 1;
16614
16615             /* The version of regex.c in older versions of gnulib
16616                ignored RE_ICASE.  Detect that problem too.  */
16617             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
16618             memset (&regex, 0, sizeof regex);
16619             s = re_compile_pattern ("x", 1, &regex);
16620             if (s)
16621               return 1;
16622
16623             if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
16624               return 1;
16625
16626             /* Catch a bug reported by Vin Shelton in
16627                http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
16628                */
16629             re_set_syntax (RE_SYNTAX_POSIX_BASIC
16630                            & ~RE_CONTEXT_INVALID_DUP
16631                            & ~RE_NO_EMPTY_RANGES);
16632             memset (&regex, 0, sizeof regex);
16633             s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
16634             if (s)
16635               return 1;
16636
16637             /* REG_STARTEND was added to glibc on 2004-01-15.
16638                Reject older versions.  */
16639             if (! REG_STARTEND)
16640               return 1;
16641
16642             /* Reject hosts whose regoff_t values are too narrow.
16643                These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
16644                and 32-bit int.  */
16645             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
16646                 || sizeof (regoff_t) < sizeof (ssize_t))
16647               return 1;
16648
16649             return 0;
16650   ;
16651   return 0;
16652 }
16653 _ACEOF
16654 if ac_fn_c_try_run "$LINENO"; then :
16655   gl_cv_func_re_compile_pattern_working=yes
16656 else
16657   gl_cv_func_re_compile_pattern_working=no
16658 fi
16659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16660   conftest.$ac_objext conftest.beam conftest.$ac_ext
16661 fi
16662
16663 fi
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
16665 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
16666     case $gl_cv_func_re_compile_pattern_working in #(
16667     yes) ac_use_included_regex=no;; #(
16668     no) ac_use_included_regex=yes;;
16669     esac
16670     ;;
16671   *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
16672     ;;
16673   esac
16674
16675   if test $ac_use_included_regex = yes; then
16676
16677 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
16678
16679
16680 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
16681
16682
16683 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
16684
16685
16686 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
16687
16688
16689 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
16690
16691
16692 $as_echo "#define re_search rpl_re_search" >>confdefs.h
16693
16694
16695 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
16696
16697
16698 $as_echo "#define re_match rpl_re_match" >>confdefs.h
16699
16700
16701 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
16702
16703
16704 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
16705
16706
16707 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
16708
16709
16710 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
16711
16712
16713 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
16714
16715
16716 $as_echo "#define regexec rpl_regexec" >>confdefs.h
16717
16718
16719 $as_echo "#define regerror rpl_regerror" >>confdefs.h
16720
16721
16722 $as_echo "#define regfree rpl_regfree" >>confdefs.h
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732   gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
16733
16734
16735
16736
16737
16738
16739   for ac_header in libintl.h
16740 do :
16741   ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16742 if test "x$ac_cv_header_libintl_h" = xyes; then :
16743   cat >>confdefs.h <<_ACEOF
16744 #define HAVE_LIBINTL_H 1
16745 _ACEOF
16746
16747 fi
16748
16749 done
16750
16751
16752   :
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764   ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16765 "
16766 if test "x$ac_cv_have_decl_isblank" = xyes; then :
16767   ac_have_decl=1
16768 else
16769   ac_have_decl=0
16770 fi
16771
16772 cat >>confdefs.h <<_ACEOF
16773 #define HAVE_DECL_ISBLANK $ac_have_decl
16774 _ACEOF
16775
16776
16777   fi
16778
16779   # Code from module safe-read:
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789   gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
16790
16791
16792
16793
16794
16795
16796   # Code from module safe-write:
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806   gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
16807
16808
16809
16810
16811
16812
16813
16814
16815   # Code from module servent:
16816
16817                       SERVENT_LIB=
16818   gl_saved_libs="$LIBS"
16819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
16820 $as_echo_n "checking for library containing getservbyname... " >&6; }
16821 if ${ac_cv_search_getservbyname+:} false; then :
16822   $as_echo_n "(cached) " >&6
16823 else
16824   ac_func_search_save_LIBS=$LIBS
16825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16826 /* end confdefs.h.  */
16827
16828 /* Override any GCC internal prototype to avoid an error.
16829    Use char because int might match the return type of a GCC
16830    builtin and then its argument prototype would still apply.  */
16831 #ifdef __cplusplus
16832 extern "C"
16833 #endif
16834 char getservbyname ();
16835 int
16836 main ()
16837 {
16838 return getservbyname ();
16839   ;
16840   return 0;
16841 }
16842 _ACEOF
16843 for ac_lib in '' socket network net; do
16844   if test -z "$ac_lib"; then
16845     ac_res="none required"
16846   else
16847     ac_res=-l$ac_lib
16848     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16849   fi
16850   if ac_fn_c_try_link "$LINENO"; then :
16851   ac_cv_search_getservbyname=$ac_res
16852 fi
16853 rm -f core conftest.err conftest.$ac_objext \
16854     conftest$ac_exeext
16855   if ${ac_cv_search_getservbyname+:} false; then :
16856   break
16857 fi
16858 done
16859 if ${ac_cv_search_getservbyname+:} false; then :
16860
16861 else
16862   ac_cv_search_getservbyname=no
16863 fi
16864 rm conftest.$ac_ext
16865 LIBS=$ac_func_search_save_LIBS
16866 fi
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
16868 $as_echo "$ac_cv_search_getservbyname" >&6; }
16869 ac_res=$ac_cv_search_getservbyname
16870 if test "$ac_res" != no; then :
16871   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16872   if test "$ac_cv_search_getservbyname" != "none required"; then
16873        SERVENT_LIB="$ac_cv_search_getservbyname"
16874      fi
16875 fi
16876
16877   LIBS="$gl_saved_libs"
16878   if test -z "$SERVENT_LIB"; then
16879     for ac_func in getservbyname
16880 do :
16881   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
16882 if test "x$ac_cv_func_getservbyname" = xyes; then :
16883   cat >>confdefs.h <<_ACEOF
16884 #define HAVE_GETSERVBYNAME 1
16885 _ACEOF
16886
16887 else
16888
16889       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
16890 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
16891 if ${gl_cv_w32_getservbyname+:} false; then :
16892   $as_echo_n "(cached) " >&6
16893 else
16894   gl_cv_w32_getservbyname=no
16895          gl_save_LIBS="$LIBS"
16896          LIBS="$LIBS -lws2_32"
16897          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16898 /* end confdefs.h.  */
16899
16900 #ifdef HAVE_WINSOCK2_H
16901 #include <winsock2.h>
16902 #endif
16903 #include <stddef.h>
16904
16905 int
16906 main ()
16907 {
16908 getservbyname(NULL,NULL);
16909   ;
16910   return 0;
16911 }
16912 _ACEOF
16913 if ac_fn_c_try_link "$LINENO"; then :
16914   gl_cv_w32_getservbyname=yes
16915 fi
16916 rm -f core conftest.err conftest.$ac_objext \
16917     conftest$ac_exeext conftest.$ac_ext
16918          LIBS="$gl_save_LIBS"
16919
16920 fi
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
16922 $as_echo "$gl_cv_w32_getservbyname" >&6; }
16923       if test "$gl_cv_w32_getservbyname" = "yes"; then
16924         SERVENT_LIB="-lws2_32"
16925       fi
16926
16927 fi
16928 done
16929
16930   fi
16931
16932
16933   # Code from module size_max:
16934
16935   for ac_header in stdint.h
16936 do :
16937   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
16938 if test "x$ac_cv_header_stdint_h" = xyes; then :
16939   cat >>confdefs.h <<_ACEOF
16940 #define HAVE_STDINT_H 1
16941 _ACEOF
16942
16943 fi
16944
16945 done
16946
16947     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
16948 $as_echo_n "checking for SIZE_MAX... " >&6; }
16949   result=
16950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951 /* end confdefs.h.  */
16952
16953 #include <limits.h>
16954 #if HAVE_STDINT_H
16955 #include <stdint.h>
16956 #endif
16957 #ifdef SIZE_MAX
16958 Found it
16959 #endif
16960
16961 _ACEOF
16962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16963   $EGREP "Found it" >/dev/null 2>&1; then :
16964   result=yes
16965 fi
16966 rm -f conftest*
16967
16968   if test -z "$result"; then
16969                 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
16970 #include <limits.h>"; then :
16971
16972 else
16973   size_t_bits_minus_1=
16974 fi
16975
16976
16977     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
16978
16979 else
16980   fits_in_uint=
16981 fi
16982
16983
16984     if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
16985       if test $fits_in_uint = 1; then
16986                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16987 /* end confdefs.h.  */
16988 #include <stddef.h>
16989           extern size_t foo;
16990           extern unsigned long foo;
16991
16992 int
16993 main ()
16994 {
16995
16996   ;
16997   return 0;
16998 }
16999 _ACEOF
17000 if ac_fn_c_try_compile "$LINENO"; then :
17001   fits_in_uint=0
17002 fi
17003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17004       fi
17005                         if test $fits_in_uint = 1; then
17006         result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
17007       else
17008         result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
17009       fi
17010     else
17011             result='((size_t)~(size_t)0)'
17012     fi
17013   fi
17014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
17015 $as_echo "$result" >&6; }
17016   if test "$result" != yes; then
17017
17018 cat >>confdefs.h <<_ACEOF
17019 #define SIZE_MAX $result
17020 _ACEOF
17021
17022   fi
17023
17024   # Code from module snprintf:
17025
17026
17027   gl_cv_func_snprintf_usable=no
17028   for ac_func in snprintf
17029 do :
17030   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17031 if test "x$ac_cv_func_snprintf" = xyes; then :
17032   cat >>confdefs.h <<_ACEOF
17033 #define HAVE_SNPRINTF 1
17034 _ACEOF
17035
17036 fi
17037 done
17038
17039   if test $ac_cv_func_snprintf = yes; then
17040
17041
17042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
17043 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
17044 if ${gl_cv_func_snprintf_size1+:} false; then :
17045   $as_echo_n "(cached) " >&6
17046 else
17047
17048       if test "$cross_compiling" = yes; then :
17049   gl_cv_func_snprintf_size1="guessing yes"
17050 else
17051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17052 /* end confdefs.h.  */
17053
17054 #include <stdio.h>
17055 int main()
17056 {
17057   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
17058   snprintf (buf, 1, "%d", 12345);
17059   return buf[1] != 'E';
17060 }
17061 _ACEOF
17062 if ac_fn_c_try_run "$LINENO"; then :
17063   gl_cv_func_snprintf_size1=yes
17064 else
17065   gl_cv_func_snprintf_size1=no
17066 fi
17067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17068   conftest.$ac_objext conftest.beam conftest.$ac_ext
17069 fi
17070
17071
17072 fi
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
17074 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
17075
17076     case "$gl_cv_func_snprintf_size1" in
17077       *yes)
17078         gl_cv_func_snprintf_usable=yes
17079         ;;
17080     esac
17081   fi
17082   if test $gl_cv_func_snprintf_usable = no; then
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
17094
17095   if test $ac_cv_func_snprintf = yes; then
17096     REPLACE_SNPRINTF=1
17097   fi
17098   :
17099
17100   fi
17101
17102   :
17103
17104
17105
17106
17107
17108   if test $ac_cv_have_decl_snprintf = no; then
17109     HAVE_DECL_SNPRINTF=0
17110   fi
17111
17112
17113
17114
17115   GNULIB_SNPRINTF=1
17116
17117
17118
17119 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
17120
17121
17122
17123   # Code from module socklen:
17124      ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
17125       #if HAVE_SYS_SOCKET_H
17126       # include <sys/socket.h>
17127       #elif HAVE_WS2TCPIP_H
17128       # include <ws2tcpip.h>
17129       #endif
17130 "
17131 if test "x$ac_cv_type_socklen_t" = xyes; then :
17132
17133 else
17134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
17135 $as_echo_n "checking for socklen_t equivalent... " >&6; }
17136       if ${gl_cv_socklen_t_equiv+:} false; then :
17137   $as_echo_n "(cached) " >&6
17138 else
17139   # Systems have either "struct sockaddr *" or
17140          # "void *" as the second argument to getpeername
17141          gl_cv_socklen_t_equiv=
17142          for arg2 in "struct sockaddr" void; do
17143            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
17144              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17145 /* end confdefs.h.  */
17146 #include <sys/types.h>
17147                    #include <sys/socket.h>
17148
17149                    int getpeername (int, $arg2 *, $t *);
17150 int
17151 main ()
17152 {
17153 $t len;
17154                   getpeername (0, 0, &len);
17155   ;
17156   return 0;
17157 }
17158 _ACEOF
17159 if ac_fn_c_try_compile "$LINENO"; then :
17160   gl_cv_socklen_t_equiv="$t"
17161 fi
17162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17163              test "$gl_cv_socklen_t_equiv" != "" && break
17164            done
17165            test "$gl_cv_socklen_t_equiv" != "" && break
17166          done
17167
17168 fi
17169
17170       if test "$gl_cv_socklen_t_equiv" = ""; then
17171         as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
17172       fi
17173       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
17174 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
17175
17176 cat >>confdefs.h <<_ACEOF
17177 #define socklen_t $gl_cv_socklen_t_equiv
17178 _ACEOF
17179
17180 fi
17181
17182   # Code from module ssize_t:
17183
17184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17185 $as_echo_n "checking for ssize_t... " >&6; }
17186 if ${gt_cv_ssize_t+:} false; then :
17187   $as_echo_n "(cached) " >&6
17188 else
17189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17190 /* end confdefs.h.  */
17191 #include <sys/types.h>
17192 int
17193 main ()
17194 {
17195 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17196             return !x;
17197   ;
17198   return 0;
17199 }
17200 _ACEOF
17201 if ac_fn_c_try_compile "$LINENO"; then :
17202   gt_cv_ssize_t=yes
17203 else
17204   gt_cv_ssize_t=no
17205 fi
17206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17207 fi
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17209 $as_echo "$gt_cv_ssize_t" >&6; }
17210   if test $gt_cv_ssize_t = no; then
17211
17212 $as_echo "#define ssize_t int" >>confdefs.h
17213
17214   fi
17215
17216   # Code from module stat:
17217
17218
17219
17220
17221   :
17222
17223
17224
17225
17226
17227     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
17228 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
17229 if ${gl_cv_func_stat_dir_slash+:} false; then :
17230   $as_echo_n "(cached) " >&6
17231 else
17232   if test "$cross_compiling" = yes; then :
17233   case $host_os in
17234             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
17235             *) gl_cv_func_stat_dir_slash="guessing yes";;
17236           esac
17237 else
17238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17239 /* end confdefs.h.  */
17240 #include <sys/stat.h>
17241
17242 int
17243 main ()
17244 {
17245 struct stat st; return stat (".", &st) != stat ("./", &st);
17246   ;
17247   return 0;
17248 }
17249 _ACEOF
17250 if ac_fn_c_try_run "$LINENO"; then :
17251   gl_cv_func_stat_dir_slash=yes
17252 else
17253   gl_cv_func_stat_dir_slash=no
17254 fi
17255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17256   conftest.$ac_objext conftest.beam conftest.$ac_ext
17257 fi
17258
17259 fi
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
17261 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
17262       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
17263 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
17264 if ${gl_cv_func_stat_file_slash+:} false; then :
17265   $as_echo_n "(cached) " >&6
17266 else
17267   touch conftest.tmp
17268        # Assume that if we have lstat, we can also check symlinks.
17269        if test $ac_cv_func_lstat = yes; then
17270          ln -s conftest.tmp conftest.lnk
17271        fi
17272        if test "$cross_compiling" = yes; then :
17273   gl_cv_func_stat_file_slash="guessing no"
17274 else
17275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17276 /* end confdefs.h.  */
17277 #include <sys/stat.h>
17278
17279 int
17280 main ()
17281 {
17282 struct stat st;
17283       if (!stat ("conftest.tmp/", &st)) return 1;
17284 #if HAVE_LSTAT
17285       if (!stat ("conftest.lnk/", &st)) return 2;
17286 #endif
17287
17288   ;
17289   return 0;
17290 }
17291 _ACEOF
17292 if ac_fn_c_try_run "$LINENO"; then :
17293   gl_cv_func_stat_file_slash=yes
17294 else
17295   gl_cv_func_stat_file_slash=no
17296 fi
17297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17298   conftest.$ac_objext conftest.beam conftest.$ac_ext
17299 fi
17300
17301        rm -f conftest.tmp conftest.lnk
17302 fi
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
17304 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
17305   case $gl_cv_func_stat_dir_slash in
17306     *no) REPLACE_STAT=1
17307
17308 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
17309 ;;
17310   esac
17311   case $gl_cv_func_stat_file_slash in
17312     *no) REPLACE_STAT=1
17313
17314 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
17315 ;;
17316   esac
17317   if test $REPLACE_STAT = 1; then
17318
17319
17320
17321
17322
17323
17324
17325
17326   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
17327
17328
17329   fi
17330
17331
17332
17333
17334   GNULIB_STAT=1
17335
17336
17337
17338 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
17339
17340
17341
17342   # Code from module stdbool:
17343
17344
17345
17346   # Define two additional variables used in the Makefile substitution.
17347
17348   if test "$ac_cv_header_stdbool_h" = yes; then
17349     STDBOOL_H=''
17350   else
17351     STDBOOL_H='stdbool.h'
17352   fi
17353
17354
17355   if test "$ac_cv_type__Bool" = yes; then
17356     HAVE__BOOL=1
17357   else
17358     HAVE__BOOL=0
17359   fi
17360
17361
17362   # Code from module stddef:
17363
17364
17365
17366   if test $gt_cv_c_wchar_t = no; then
17367     HAVE_WCHAR_T=0
17368     STDDEF_H=stddef.h
17369   fi
17370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17371 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17372 if ${gl_cv_decl_null_works+:} false; then :
17373   $as_echo_n "(cached) " >&6
17374 else
17375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17376 /* end confdefs.h.  */
17377 #include <stddef.h>
17378       int test[2 * (sizeof NULL == sizeof (void *)) -1];
17379
17380 int
17381 main ()
17382 {
17383
17384   ;
17385   return 0;
17386 }
17387 _ACEOF
17388 if ac_fn_c_try_compile "$LINENO"; then :
17389   gl_cv_decl_null_works=yes
17390 else
17391   gl_cv_decl_null_works=no
17392 fi
17393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17394 fi
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17396 $as_echo "$gl_cv_decl_null_works" >&6; }
17397   if test $gl_cv_decl_null_works = no; then
17398     REPLACE_NULL=1
17399     STDDEF_H=stddef.h
17400   fi
17401   if test -n "$STDDEF_H"; then
17402
17403
17404
17405
17406   :
17407
17408
17409
17410
17411
17412
17413
17414      if test $gl_cv_have_include_next = yes; then
17415        gl_cv_next_stddef_h='<'stddef.h'>'
17416      else
17417        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17418 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17419 if ${gl_cv_next_stddef_h+:} false; then :
17420   $as_echo_n "(cached) " >&6
17421 else
17422
17423           if test $ac_cv_header_stddef_h = yes; then
17424             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425 /* end confdefs.h.  */
17426 #include <stddef.h>
17427
17428 _ACEOF
17429                                                                                                 case "$host_os" in
17430               aix*) gl_absname_cpp="$ac_cpp -C" ;;
17431               *)    gl_absname_cpp="$ac_cpp" ;;
17432             esac
17433                                                 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17434                sed -n '\#/stddef.h#{
17435                  s#.*"\(.*/stddef.h\)".*#\1#
17436                  s#^/[^/]#//&#
17437                  p
17438                  q
17439                }'`'"'
17440           else
17441             gl_cv_next_stddef_h='<'stddef.h'>'
17442           fi
17443
17444 fi
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17446 $as_echo "$gl_cv_next_stddef_h" >&6; }
17447      fi
17448      NEXT_STDDEF_H=$gl_cv_next_stddef_h
17449
17450      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17451        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17452        gl_next_as_first_directive='<'stddef.h'>'
17453      else
17454        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17455        gl_next_as_first_directive=$gl_cv_next_stddef_h
17456      fi
17457      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17458
17459
17460
17461   fi
17462
17463   # Code from module stdint:
17464
17465
17466
17467   if test $ac_cv_type_long_long_int = yes; then
17468     HAVE_LONG_LONG_INT=1
17469   else
17470     HAVE_LONG_LONG_INT=0
17471   fi
17472
17473
17474   if test $ac_cv_type_unsigned_long_long_int = yes; then
17475     HAVE_UNSIGNED_LONG_LONG_INT=1
17476   else
17477     HAVE_UNSIGNED_LONG_LONG_INT=0
17478   fi
17479
17480
17481       if test $ac_cv_header_inttypes_h = yes; then
17482     HAVE_INTTYPES_H=1
17483   else
17484     HAVE_INTTYPES_H=0
17485   fi
17486
17487
17488       if test $ac_cv_header_sys_types_h = yes; then
17489     HAVE_SYS_TYPES_H=1
17490   else
17491     HAVE_SYS_TYPES_H=0
17492   fi
17493
17494
17495
17496
17497
17498
17499   :
17500
17501
17502
17503
17504
17505
17506
17507      if test $gl_cv_have_include_next = yes; then
17508        gl_cv_next_stdint_h='<'stdint.h'>'
17509      else
17510        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17511 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17512 if ${gl_cv_next_stdint_h+:} false; then :
17513   $as_echo_n "(cached) " >&6
17514 else
17515
17516           if test $ac_cv_header_stdint_h = yes; then
17517             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17518 /* end confdefs.h.  */
17519 #include <stdint.h>
17520
17521 _ACEOF
17522                                                                                                 case "$host_os" in
17523               aix*) gl_absname_cpp="$ac_cpp -C" ;;
17524               *)    gl_absname_cpp="$ac_cpp" ;;
17525             esac
17526                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17527                sed -n '\#/stdint.h#{
17528                  s#.*"\(.*/stdint.h\)".*#\1#
17529                  s#^/[^/]#//&#
17530                  p
17531                  q
17532                }'`'"'
17533           else
17534             gl_cv_next_stdint_h='<'stdint.h'>'
17535           fi
17536
17537 fi
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17539 $as_echo "$gl_cv_next_stdint_h" >&6; }
17540      fi
17541      NEXT_STDINT_H=$gl_cv_next_stdint_h
17542
17543      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17544        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17545        gl_next_as_first_directive='<'stdint.h'>'
17546      else
17547        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17548        gl_next_as_first_directive=$gl_cv_next_stdint_h
17549      fi
17550      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17551
17552
17553
17554   if test $ac_cv_header_stdint_h = yes; then
17555     HAVE_STDINT_H=1
17556   else
17557     HAVE_STDINT_H=0
17558   fi
17559
17560
17561     if test $ac_cv_header_stdint_h = yes; then
17562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17563 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17564 if ${gl_cv_header_working_stdint_h+:} false; then :
17565   $as_echo_n "(cached) " >&6
17566 else
17567   gl_cv_header_working_stdint_h=no
17568        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17569 /* end confdefs.h.  */
17570
17571
17572 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17573 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17574 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17575 #include <stdint.h>
17576 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
17577 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17578 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17579 #endif
17580
17581
17582   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17583      included before <wchar.h>.  */
17584   #include <stddef.h>
17585   #include <signal.h>
17586   #if HAVE_WCHAR_H
17587   # include <stdio.h>
17588   # include <time.h>
17589   # include <wchar.h>
17590   #endif
17591
17592
17593 #ifdef INT8_MAX
17594 int8_t a1 = INT8_MAX;
17595 int8_t a1min = INT8_MIN;
17596 #endif
17597 #ifdef INT16_MAX
17598 int16_t a2 = INT16_MAX;
17599 int16_t a2min = INT16_MIN;
17600 #endif
17601 #ifdef INT32_MAX
17602 int32_t a3 = INT32_MAX;
17603 int32_t a3min = INT32_MIN;
17604 #endif
17605 #ifdef INT64_MAX
17606 int64_t a4 = INT64_MAX;
17607 int64_t a4min = INT64_MIN;
17608 #endif
17609 #ifdef UINT8_MAX
17610 uint8_t b1 = UINT8_MAX;
17611 #else
17612 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17613 #endif
17614 #ifdef UINT16_MAX
17615 uint16_t b2 = UINT16_MAX;
17616 #endif
17617 #ifdef UINT32_MAX
17618 uint32_t b3 = UINT32_MAX;
17619 #endif
17620 #ifdef UINT64_MAX
17621 uint64_t b4 = UINT64_MAX;
17622 #endif
17623 int_least8_t c1 = INT8_C (0x7f);
17624 int_least8_t c1max = INT_LEAST8_MAX;
17625 int_least8_t c1min = INT_LEAST8_MIN;
17626 int_least16_t c2 = INT16_C (0x7fff);
17627 int_least16_t c2max = INT_LEAST16_MAX;
17628 int_least16_t c2min = INT_LEAST16_MIN;
17629 int_least32_t c3 = INT32_C (0x7fffffff);
17630 int_least32_t c3max = INT_LEAST32_MAX;
17631 int_least32_t c3min = INT_LEAST32_MIN;
17632 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17633 int_least64_t c4max = INT_LEAST64_MAX;
17634 int_least64_t c4min = INT_LEAST64_MIN;
17635 uint_least8_t d1 = UINT8_C (0xff);
17636 uint_least8_t d1max = UINT_LEAST8_MAX;
17637 uint_least16_t d2 = UINT16_C (0xffff);
17638 uint_least16_t d2max = UINT_LEAST16_MAX;
17639 uint_least32_t d3 = UINT32_C (0xffffffff);
17640 uint_least32_t d3max = UINT_LEAST32_MAX;
17641 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17642 uint_least64_t d4max = UINT_LEAST64_MAX;
17643 int_fast8_t e1 = INT_FAST8_MAX;
17644 int_fast8_t e1min = INT_FAST8_MIN;
17645 int_fast16_t e2 = INT_FAST16_MAX;
17646 int_fast16_t e2min = INT_FAST16_MIN;
17647 int_fast32_t e3 = INT_FAST32_MAX;
17648 int_fast32_t e3min = INT_FAST32_MIN;
17649 int_fast64_t e4 = INT_FAST64_MAX;
17650 int_fast64_t e4min = INT_FAST64_MIN;
17651 uint_fast8_t f1 = UINT_FAST8_MAX;
17652 uint_fast16_t f2 = UINT_FAST16_MAX;
17653 uint_fast32_t f3 = UINT_FAST32_MAX;
17654 uint_fast64_t f4 = UINT_FAST64_MAX;
17655 #ifdef INTPTR_MAX
17656 intptr_t g = INTPTR_MAX;
17657 intptr_t gmin = INTPTR_MIN;
17658 #endif
17659 #ifdef UINTPTR_MAX
17660 uintptr_t h = UINTPTR_MAX;
17661 #endif
17662 intmax_t i = INTMAX_MAX;
17663 uintmax_t j = UINTMAX_MAX;
17664
17665 #include <limits.h> /* for CHAR_BIT */
17666 #define TYPE_MINIMUM(t) \
17667   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
17668 #define TYPE_MAXIMUM(t) \
17669   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
17670 struct s {
17671   int check_PTRDIFF:
17672       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17673       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17674       ? 1 : -1;
17675   /* Detect bug in FreeBSD 6.0 / ia64.  */
17676   int check_SIG_ATOMIC:
17677       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17678       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17679       ? 1 : -1;
17680   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17681   int check_WCHAR:
17682       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17683       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17684       ? 1 : -1;
17685   /* Detect bug in mingw.  */
17686   int check_WINT:
17687       WINT_MIN == TYPE_MINIMUM (wint_t)
17688       && WINT_MAX == TYPE_MAXIMUM (wint_t)
17689       ? 1 : -1;
17690
17691   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
17692   int check_UINT8_C:
17693         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17694   int check_UINT16_C:
17695         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17696
17697   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
17698 #ifdef UINT8_MAX
17699   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17700 #endif
17701 #ifdef UINT16_MAX
17702   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17703 #endif
17704 #ifdef UINT32_MAX
17705   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17706 #endif
17707 #ifdef UINT64_MAX
17708   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17709 #endif
17710   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17711   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17712   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17713   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17714   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17715   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17716   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17717   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17718   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17719   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17720   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17721 };
17722
17723 int
17724 main ()
17725 {
17726
17727   ;
17728   return 0;
17729 }
17730 _ACEOF
17731 if ac_fn_c_try_compile "$LINENO"; then :
17732                                                     if test "$cross_compiling" = yes; then :
17733                  gl_cv_header_working_stdint_h=yes
17734
17735 else
17736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17737 /* end confdefs.h.  */
17738
17739
17740 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17741 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17742 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17743 #include <stdint.h>
17744
17745
17746   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17747      included before <wchar.h>.  */
17748   #include <stddef.h>
17749   #include <signal.h>
17750   #if HAVE_WCHAR_H
17751   # include <stdio.h>
17752   # include <time.h>
17753   # include <wchar.h>
17754   #endif
17755
17756
17757 #include <stdio.h>
17758 #include <string.h>
17759 #define MVAL(macro) MVAL1(macro)
17760 #define MVAL1(expression) #expression
17761 static const char *macro_values[] =
17762   {
17763 #ifdef INT8_MAX
17764     MVAL (INT8_MAX),
17765 #endif
17766 #ifdef INT16_MAX
17767     MVAL (INT16_MAX),
17768 #endif
17769 #ifdef INT32_MAX
17770     MVAL (INT32_MAX),
17771 #endif
17772 #ifdef INT64_MAX
17773     MVAL (INT64_MAX),
17774 #endif
17775 #ifdef UINT8_MAX
17776     MVAL (UINT8_MAX),
17777 #endif
17778 #ifdef UINT16_MAX
17779     MVAL (UINT16_MAX),
17780 #endif
17781 #ifdef UINT32_MAX
17782     MVAL (UINT32_MAX),
17783 #endif
17784 #ifdef UINT64_MAX
17785     MVAL (UINT64_MAX),
17786 #endif
17787     NULL
17788   };
17789
17790 int
17791 main ()
17792 {
17793
17794   const char **mv;
17795   for (mv = macro_values; *mv != NULL; mv++)
17796     {
17797       const char *value = *mv;
17798       /* Test whether it looks like a cast expression.  */
17799       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17800           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17801           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17802           || strncmp (value, "((int)"/*)*/, 6) == 0
17803           || strncmp (value, "((signed short)"/*)*/, 15) == 0
17804           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17805         return 1;
17806     }
17807   return 0;
17808
17809   ;
17810   return 0;
17811 }
17812 _ACEOF
17813 if ac_fn_c_try_run "$LINENO"; then :
17814   gl_cv_header_working_stdint_h=yes
17815 fi
17816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17817   conftest.$ac_objext conftest.beam conftest.$ac_ext
17818 fi
17819
17820
17821 fi
17822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17823
17824 fi
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17826 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17827   fi
17828   if test "$gl_cv_header_working_stdint_h" = yes; then
17829     STDINT_H=
17830   else
17831             for ac_header in sys/inttypes.h sys/bitypes.h
17832 do :
17833   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17834 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17835 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17836   cat >>confdefs.h <<_ACEOF
17837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17838 _ACEOF
17839
17840 fi
17841
17842 done
17843
17844     if test $ac_cv_header_sys_inttypes_h = yes; then
17845       HAVE_SYS_INTTYPES_H=1
17846     else
17847       HAVE_SYS_INTTYPES_H=0
17848     fi
17849
17850     if test $ac_cv_header_sys_bitypes_h = yes; then
17851       HAVE_SYS_BITYPES_H=1
17852     else
17853       HAVE_SYS_BITYPES_H=0
17854     fi
17855
17856
17857
17858   :
17859
17860
17861
17862
17863
17864
17865
17866
17867   if test $APPLE_UNIVERSAL_BUILD = 0; then
17868
17869
17870   for gltype in ptrdiff_t size_t ; do
17871     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17872 $as_echo_n "checking for bit size of $gltype... " >&6; }
17873 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
17874   $as_echo_n "(cached) " >&6
17875 else
17876   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
17877   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17878      included before <wchar.h>.  */
17879   #include <stddef.h>
17880   #include <signal.h>
17881   #if HAVE_WCHAR_H
17882   # include <stdio.h>
17883   # include <time.h>
17884   # include <wchar.h>
17885   #endif
17886
17887 #include <limits.h>"; then :
17888
17889 else
17890   result=unknown
17891 fi
17892
17893        eval gl_cv_bitsizeof_${gltype}=\$result
17894
17895 fi
17896 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17897                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17898 $as_echo "$ac_res" >&6; }
17899     eval result=\$gl_cv_bitsizeof_${gltype}
17900     if test $result = unknown; then
17901                                                 result=0
17902     fi
17903     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17904     cat >>confdefs.h <<_ACEOF
17905 #define BITSIZEOF_${GLTYPE} $result
17906 _ACEOF
17907
17908     eval BITSIZEOF_${GLTYPE}=\$result
17909   done
17910
17911
17912   fi
17913
17914
17915   for gltype in sig_atomic_t wchar_t wint_t ; do
17916     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17917 $as_echo_n "checking for bit size of $gltype... " >&6; }
17918 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
17919   $as_echo_n "(cached) " >&6
17920 else
17921   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
17922   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17923      included before <wchar.h>.  */
17924   #include <stddef.h>
17925   #include <signal.h>
17926   #if HAVE_WCHAR_H
17927   # include <stdio.h>
17928   # include <time.h>
17929   # include <wchar.h>
17930   #endif
17931
17932 #include <limits.h>"; then :
17933
17934 else
17935   result=unknown
17936 fi
17937
17938        eval gl_cv_bitsizeof_${gltype}=\$result
17939
17940 fi
17941 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17942                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17943 $as_echo "$ac_res" >&6; }
17944     eval result=\$gl_cv_bitsizeof_${gltype}
17945     if test $result = unknown; then
17946                                                 result=0
17947     fi
17948     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17949     cat >>confdefs.h <<_ACEOF
17950 #define BITSIZEOF_${GLTYPE} $result
17951 _ACEOF
17952
17953     eval BITSIZEOF_${GLTYPE}=\$result
17954   done
17955
17956
17957
17958
17959   for gltype in sig_atomic_t wchar_t wint_t ; do
17960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17961 $as_echo_n "checking whether $gltype is signed... " >&6; }
17962 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
17963   $as_echo_n "(cached) " >&6
17964 else
17965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17966 /* end confdefs.h.  */
17967
17968   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17969      included before <wchar.h>.  */
17970   #include <stddef.h>
17971   #include <signal.h>
17972   #if HAVE_WCHAR_H
17973   # include <stdio.h>
17974   # include <time.h>
17975   # include <wchar.h>
17976   #endif
17977
17978             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17979 int
17980 main ()
17981 {
17982
17983   ;
17984   return 0;
17985 }
17986 _ACEOF
17987 if ac_fn_c_try_compile "$LINENO"; then :
17988   result=yes
17989 else
17990   result=no
17991 fi
17992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17993        eval gl_cv_type_${gltype}_signed=\$result
17994
17995 fi
17996 eval ac_res=\$gl_cv_type_${gltype}_signed
17997                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17998 $as_echo "$ac_res" >&6; }
17999     eval result=\$gl_cv_type_${gltype}_signed
18000     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18001     if test "$result" = yes; then
18002       cat >>confdefs.h <<_ACEOF
18003 #define HAVE_SIGNED_${GLTYPE} 1
18004 _ACEOF
18005
18006       eval HAVE_SIGNED_${GLTYPE}=1
18007     else
18008       eval HAVE_SIGNED_${GLTYPE}=0
18009     fi
18010   done
18011
18012
18013   gl_cv_type_ptrdiff_t_signed=yes
18014   gl_cv_type_size_t_signed=no
18015   if test $APPLE_UNIVERSAL_BUILD = 0; then
18016
18017
18018   for gltype in ptrdiff_t size_t ; do
18019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18020 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18021 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18022   $as_echo_n "(cached) " >&6
18023 else
18024   eval gl_cv_type_${gltype}_suffix=no
18025        eval result=\$gl_cv_type_${gltype}_signed
18026        if test "$result" = yes; then
18027          glsufu=
18028        else
18029          glsufu=u
18030        fi
18031        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18032          case $glsuf in
18033            '')  gltype1='int';;
18034            l)   gltype1='long int';;
18035            ll)  gltype1='long long int';;
18036            i64) gltype1='__int64';;
18037            u)   gltype1='unsigned int';;
18038            ul)  gltype1='unsigned long int';;
18039            ull) gltype1='unsigned long long int';;
18040            ui64)gltype1='unsigned __int64';;
18041          esac
18042          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18043 /* end confdefs.h.  */
18044
18045   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18046      included before <wchar.h>.  */
18047   #include <stddef.h>
18048   #include <signal.h>
18049   #if HAVE_WCHAR_H
18050   # include <stdio.h>
18051   # include <time.h>
18052   # include <wchar.h>
18053   #endif
18054
18055               extern $gltype foo;
18056               extern $gltype1 foo;
18057 int
18058 main ()
18059 {
18060
18061   ;
18062   return 0;
18063 }
18064 _ACEOF
18065 if ac_fn_c_try_compile "$LINENO"; then :
18066   eval gl_cv_type_${gltype}_suffix=\$glsuf
18067 fi
18068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18069          eval result=\$gl_cv_type_${gltype}_suffix
18070          test "$result" != no && break
18071        done
18072 fi
18073 eval ac_res=\$gl_cv_type_${gltype}_suffix
18074                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18075 $as_echo "$ac_res" >&6; }
18076     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18077     eval result=\$gl_cv_type_${gltype}_suffix
18078     test "$result" = no && result=
18079     eval ${GLTYPE}_SUFFIX=\$result
18080     cat >>confdefs.h <<_ACEOF
18081 #define ${GLTYPE}_SUFFIX $result
18082 _ACEOF
18083
18084   done
18085
18086
18087   fi
18088
18089
18090   for gltype in sig_atomic_t wchar_t wint_t ; do
18091     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18092 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18093 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18094   $as_echo_n "(cached) " >&6
18095 else
18096   eval gl_cv_type_${gltype}_suffix=no
18097        eval result=\$gl_cv_type_${gltype}_signed
18098        if test "$result" = yes; then
18099          glsufu=
18100        else
18101          glsufu=u
18102        fi
18103        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18104          case $glsuf in
18105            '')  gltype1='int';;
18106            l)   gltype1='long int';;
18107            ll)  gltype1='long long int';;
18108            i64) gltype1='__int64';;
18109            u)   gltype1='unsigned int';;
18110            ul)  gltype1='unsigned long int';;
18111            ull) gltype1='unsigned long long int';;
18112            ui64)gltype1='unsigned __int64';;
18113          esac
18114          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18115 /* end confdefs.h.  */
18116
18117   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18118      included before <wchar.h>.  */
18119   #include <stddef.h>
18120   #include <signal.h>
18121   #if HAVE_WCHAR_H
18122   # include <stdio.h>
18123   # include <time.h>
18124   # include <wchar.h>
18125   #endif
18126
18127               extern $gltype foo;
18128               extern $gltype1 foo;
18129 int
18130 main ()
18131 {
18132
18133   ;
18134   return 0;
18135 }
18136 _ACEOF
18137 if ac_fn_c_try_compile "$LINENO"; then :
18138   eval gl_cv_type_${gltype}_suffix=\$glsuf
18139 fi
18140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18141          eval result=\$gl_cv_type_${gltype}_suffix
18142          test "$result" != no && break
18143        done
18144 fi
18145 eval ac_res=\$gl_cv_type_${gltype}_suffix
18146                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18147 $as_echo "$ac_res" >&6; }
18148     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18149     eval result=\$gl_cv_type_${gltype}_suffix
18150     test "$result" = no && result=
18151     eval ${GLTYPE}_SUFFIX=\$result
18152     cat >>confdefs.h <<_ACEOF
18153 #define ${GLTYPE}_SUFFIX $result
18154 _ACEOF
18155
18156   done
18157
18158
18159
18160     STDINT_H=stdint.h
18161   fi
18162
18163
18164   # Code from module stdio:
18165
18166
18167
18168
18169
18170
18171
18172
18173   :
18174
18175
18176
18177
18178
18179
18180
18181      if test $gl_cv_have_include_next = yes; then
18182        gl_cv_next_stdio_h='<'stdio.h'>'
18183      else
18184        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
18185 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
18186 if ${gl_cv_next_stdio_h+:} false; then :
18187   $as_echo_n "(cached) " >&6
18188 else
18189
18190           if test $ac_cv_header_stdio_h = yes; then
18191             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18192 /* end confdefs.h.  */
18193 #include <stdio.h>
18194
18195 _ACEOF
18196                                                                                                 case "$host_os" in
18197               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18198               *)    gl_absname_cpp="$ac_cpp" ;;
18199             esac
18200                                                 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18201                sed -n '\#/stdio.h#{
18202                  s#.*"\(.*/stdio.h\)".*#\1#
18203                  s#^/[^/]#//&#
18204                  p
18205                  q
18206                }'`'"'
18207           else
18208             gl_cv_next_stdio_h='<'stdio.h'>'
18209           fi
18210
18211 fi
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
18213 $as_echo "$gl_cv_next_stdio_h" >&6; }
18214      fi
18215      NEXT_STDIO_H=$gl_cv_next_stdio_h
18216
18217      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18218        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18219        gl_next_as_first_directive='<'stdio.h'>'
18220      else
18221        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18222        gl_next_as_first_directive=$gl_cv_next_stdio_h
18223      fi
18224      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
18225
18226
18227
18228       GNULIB_FPRINTF=1
18229   GNULIB_PRINTF=1
18230   GNULIB_VFPRINTF=1
18231   GNULIB_VPRINTF=1
18232   GNULIB_FPUTC=1
18233   GNULIB_PUTC=1
18234   GNULIB_PUTCHAR=1
18235   GNULIB_FPUTS=1
18236   GNULIB_PUTS=1
18237   GNULIB_FWRITE=1
18238
18239
18240
18241     for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat     snprintf tmpfile vdprintf vsnprintf; do
18242     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18243     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18244 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18245 if eval \${$as_gl_Symbol+:} false; then :
18246   $as_echo_n "(cached) " >&6
18247 else
18248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h.  */
18250 #include <stdio.h>
18251
18252 int
18253 main ()
18254 {
18255 #undef $gl_func
18256   (void) $gl_func;
18257   ;
18258   return 0;
18259 }
18260 _ACEOF
18261 if ac_fn_c_try_compile "$LINENO"; then :
18262   eval "$as_gl_Symbol=yes"
18263 else
18264   eval "$as_gl_Symbol=no"
18265 fi
18266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18267 fi
18268 eval ac_res=\$$as_gl_Symbol
18269                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18270 $as_echo "$ac_res" >&6; }
18271      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18272   cat >>confdefs.h <<_ACEOF
18273 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18274 _ACEOF
18275
18276                      eval ac_cv_have_decl_$gl_func=yes
18277 fi
18278       done
18279
18280
18281   # Code from module stdlib:
18282
18283
18284
18285
18286
18287
18288   :
18289
18290
18291
18292
18293
18294
18295
18296      if test $gl_cv_have_include_next = yes; then
18297        gl_cv_next_stdlib_h='<'stdlib.h'>'
18298      else
18299        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18300 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
18301 if ${gl_cv_next_stdlib_h+:} false; then :
18302   $as_echo_n "(cached) " >&6
18303 else
18304
18305           if test $ac_cv_header_stdlib_h = yes; then
18306             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18307 /* end confdefs.h.  */
18308 #include <stdlib.h>
18309
18310 _ACEOF
18311                                                                                                 case "$host_os" in
18312               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18313               *)    gl_absname_cpp="$ac_cpp" ;;
18314             esac
18315                                                 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18316                sed -n '\#/stdlib.h#{
18317                  s#.*"\(.*/stdlib.h\)".*#\1#
18318                  s#^/[^/]#//&#
18319                  p
18320                  q
18321                }'`'"'
18322           else
18323             gl_cv_next_stdlib_h='<'stdlib.h'>'
18324           fi
18325
18326 fi
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18328 $as_echo "$gl_cv_next_stdlib_h" >&6; }
18329      fi
18330      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
18331
18332      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18333        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18334        gl_next_as_first_directive='<'stdlib.h'>'
18335      else
18336        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18337        gl_next_as_first_directive=$gl_cv_next_stdlib_h
18338      fi
18339      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
18340
18341
18342
18343   for ac_header in random.h
18344 do :
18345   ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
18346 "
18347 if test "x$ac_cv_header_random_h" = xyes; then :
18348   cat >>confdefs.h <<_ACEOF
18349 #define HAVE_RANDOM_H 1
18350 _ACEOF
18351
18352 fi
18353
18354 done
18355
18356   if test $ac_cv_header_random_h = yes; then
18357     HAVE_RANDOM_H=1
18358   else
18359     HAVE_RANDOM_H=0
18360   fi
18361
18362   ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
18363       #if HAVE_RANDOM_H
18364       # include <random.h>
18365       #endif
18366
18367 "
18368 if test "x$ac_cv_type_struct_random_data" = xyes; then :
18369
18370 cat >>confdefs.h <<_ACEOF
18371 #define HAVE_STRUCT_RANDOM_DATA 1
18372 _ACEOF
18373
18374
18375 else
18376   HAVE_STRUCT_RANDOM_DATA=0
18377 fi
18378
18379
18380
18381     for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp     mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r     setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt     unsetenv; do
18382     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18384 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18385 if eval \${$as_gl_Symbol+:} false; then :
18386   $as_echo_n "(cached) " >&6
18387 else
18388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18389 /* end confdefs.h.  */
18390 #include <stdlib.h>
18391 #if HAVE_SYS_LOADAVG_H
18392 # include <sys/loadavg.h>
18393 #endif
18394 #if HAVE_RANDOM_H
18395 # include <random.h>
18396 #endif
18397
18398 int
18399 main ()
18400 {
18401 #undef $gl_func
18402   (void) $gl_func;
18403   ;
18404   return 0;
18405 }
18406 _ACEOF
18407 if ac_fn_c_try_compile "$LINENO"; then :
18408   eval "$as_gl_Symbol=yes"
18409 else
18410   eval "$as_gl_Symbol=no"
18411 fi
18412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18413 fi
18414 eval ac_res=\$$as_gl_Symbol
18415                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18416 $as_echo "$ac_res" >&6; }
18417      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18418   cat >>confdefs.h <<_ACEOF
18419 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18420 _ACEOF
18421
18422                      eval ac_cv_have_decl_$gl_func=yes
18423 fi
18424       done
18425
18426
18427   # Code from module streq:
18428   # Code from module string:
18429
18430
18431
18432   # Code from module sys_socket:
18433
18434
18435
18436
18437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
18438 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
18439 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
18440   $as_echo_n "(cached) " >&6
18441 else
18442
18443       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18444 /* end confdefs.h.  */
18445 #include <sys/socket.h>
18446 int
18447 main ()
18448 {
18449
18450   ;
18451   return 0;
18452 }
18453 _ACEOF
18454 if ac_fn_c_try_compile "$LINENO"; then :
18455   gl_cv_header_sys_socket_h_selfcontained=yes
18456 else
18457   gl_cv_header_sys_socket_h_selfcontained=no
18458 fi
18459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18460
18461 fi
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
18463 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
18464   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
18465             for ac_func in shutdown
18466 do :
18467   ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
18468 if test "x$ac_cv_func_shutdown" = xyes; then :
18469   cat >>confdefs.h <<_ACEOF
18470 #define HAVE_SHUTDOWN 1
18471 _ACEOF
18472
18473 fi
18474 done
18475
18476     if test $ac_cv_func_shutdown = yes; then
18477       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
18478 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
18479 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
18480   $as_echo_n "(cached) " >&6
18481 else
18482
18483           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18484 /* end confdefs.h.  */
18485 #include <sys/socket.h>
18486 int
18487 main ()
18488 {
18489 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
18490   ;
18491   return 0;
18492 }
18493 _ACEOF
18494 if ac_fn_c_try_compile "$LINENO"; then :
18495   gl_cv_header_sys_socket_h_shut=yes
18496 else
18497   gl_cv_header_sys_socket_h_shut=no
18498 fi
18499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18500
18501 fi
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
18503 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
18504       if test $gl_cv_header_sys_socket_h_shut = no; then
18505         SYS_SOCKET_H='sys/socket.h'
18506       fi
18507     fi
18508   fi
18509   # We need to check for ws2tcpip.h now.
18510
18511
18512
18513
18514
18515   :
18516
18517
18518
18519
18520
18521
18522
18523      if test $gl_cv_have_include_next = yes; then
18524        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
18525      else
18526        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
18527 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
18528 if ${gl_cv_next_sys_socket_h+:} false; then :
18529   $as_echo_n "(cached) " >&6
18530 else
18531
18532           if test $ac_cv_header_sys_socket_h = yes; then
18533             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18534 /* end confdefs.h.  */
18535 #include <sys/socket.h>
18536
18537 _ACEOF
18538                                                                                                 case "$host_os" in
18539               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18540               *)    gl_absname_cpp="$ac_cpp" ;;
18541             esac
18542                                                 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18543                sed -n '\#/sys/socket.h#{
18544                  s#.*"\(.*/sys/socket.h\)".*#\1#
18545                  s#^/[^/]#//&#
18546                  p
18547                  q
18548                }'`'"'
18549           else
18550             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
18551           fi
18552
18553 fi
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
18555 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
18556      fi
18557      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
18558
18559      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18560        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18561        gl_next_as_first_directive='<'sys/socket.h'>'
18562      else
18563        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18564        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
18565      fi
18566      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
18567
18568
18569
18570   if test $ac_cv_header_sys_socket_h = yes; then
18571     HAVE_SYS_SOCKET_H=1
18572     HAVE_WS2TCPIP_H=0
18573   else
18574     HAVE_SYS_SOCKET_H=0
18575                     for ac_header in ws2tcpip.h
18576 do :
18577   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18578 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
18579   cat >>confdefs.h <<_ACEOF
18580 #define HAVE_WS2TCPIP_H 1
18581 _ACEOF
18582
18583 fi
18584
18585 done
18586
18587     if test $ac_cv_header_ws2tcpip_h = yes; then
18588       HAVE_WS2TCPIP_H=1
18589     else
18590       HAVE_WS2TCPIP_H=0
18591     fi
18592   fi
18593
18594
18595
18596   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
18597   /* sys/types.h is not needed according to POSIX, but the
18598      sys/socket.h in i386-unknown-freebsd4.10 and
18599      powerpc-apple-darwin5.5 required it. */
18600 #include <sys/types.h>
18601 #ifdef HAVE_SYS_SOCKET_H
18602 #include <sys/socket.h>
18603 #endif
18604 #ifdef HAVE_WS2TCPIP_H
18605 #include <ws2tcpip.h>
18606 #endif
18607
18608 "
18609 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
18610
18611 cat >>confdefs.h <<_ACEOF
18612 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
18613 _ACEOF
18614
18615
18616 fi
18617 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
18618   /* sys/types.h is not needed according to POSIX, but the
18619      sys/socket.h in i386-unknown-freebsd4.10 and
18620      powerpc-apple-darwin5.5 required it. */
18621 #include <sys/types.h>
18622 #ifdef HAVE_SYS_SOCKET_H
18623 #include <sys/socket.h>
18624 #endif
18625 #ifdef HAVE_WS2TCPIP_H
18626 #include <ws2tcpip.h>
18627 #endif
18628
18629 "
18630 if test "x$ac_cv_type_sa_family_t" = xyes; then :
18631
18632 cat >>confdefs.h <<_ACEOF
18633 #define HAVE_SA_FAMILY_T 1
18634 _ACEOF
18635
18636
18637 fi
18638
18639   if test $ac_cv_type_struct_sockaddr_storage = no; then
18640     HAVE_STRUCT_SOCKADDR_STORAGE=0
18641   fi
18642   if test $ac_cv_type_sa_family_t = no; then
18643     HAVE_SA_FAMILY_T=0
18644   fi
18645
18646
18647
18648
18649   :
18650
18651
18652
18653
18654
18655   if test $ac_cv_header_sys_socket_h != yes; then
18656                     for ac_header in winsock2.h
18657 do :
18658   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18659 if test "x$ac_cv_header_winsock2_h" = xyes; then :
18660   cat >>confdefs.h <<_ACEOF
18661 #define HAVE_WINSOCK2_H 1
18662 _ACEOF
18663
18664 fi
18665
18666 done
18667
18668   fi
18669   if test "$ac_cv_header_winsock2_h" = yes; then
18670     HAVE_WINSOCK2_H=1
18671     UNISTD_H_HAVE_WINSOCK2_H=1
18672     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18673   else
18674     HAVE_WINSOCK2_H=0
18675   fi
18676
18677
18678
18679
18680     for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
18681     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18682     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18683 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18684 if eval \${$as_gl_Symbol+:} false; then :
18685   $as_echo_n "(cached) " >&6
18686 else
18687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18688 /* end confdefs.h.  */
18689
18690 /* Some systems require prerequisite headers.  */
18691 #include <sys/types.h>
18692 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
18693 # include <sys/time.h>
18694 #endif
18695 #include <sys/select.h>
18696
18697 int
18698 main ()
18699 {
18700 #undef $gl_func
18701   (void) $gl_func;
18702   ;
18703   return 0;
18704 }
18705 _ACEOF
18706 if ac_fn_c_try_compile "$LINENO"; then :
18707   eval "$as_gl_Symbol=yes"
18708 else
18709   eval "$as_gl_Symbol=no"
18710 fi
18711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18712 fi
18713 eval ac_res=\$$as_gl_Symbol
18714                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18715 $as_echo "$ac_res" >&6; }
18716      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18717   cat >>confdefs.h <<_ACEOF
18718 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18719 _ACEOF
18720
18721                      eval ac_cv_have_decl_$gl_func=yes
18722 fi
18723       done
18724
18725
18726
18727   # Code from module sys_stat:
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739   :
18740
18741
18742
18743
18744
18745
18746
18747      if test $gl_cv_have_include_next = yes; then
18748        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18749      else
18750        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18751 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18752 if ${gl_cv_next_sys_stat_h+:} false; then :
18753   $as_echo_n "(cached) " >&6
18754 else
18755
18756           if test $ac_cv_header_sys_stat_h = yes; then
18757             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18758 /* end confdefs.h.  */
18759 #include <sys/stat.h>
18760
18761 _ACEOF
18762                                                                                                 case "$host_os" in
18763               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18764               *)    gl_absname_cpp="$ac_cpp" ;;
18765             esac
18766                                                 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18767                sed -n '\#/sys/stat.h#{
18768                  s#.*"\(.*/sys/stat.h\)".*#\1#
18769                  s#^/[^/]#//&#
18770                  p
18771                  q
18772                }'`'"'
18773           else
18774             gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18775           fi
18776
18777 fi
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18779 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18780      fi
18781      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18782
18783      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18784        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18785        gl_next_as_first_directive='<'sys/stat.h'>'
18786      else
18787        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18788        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18789      fi
18790      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18791
18792
18793
18794
18795       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18796      #include <sys/stat.h>
18797 "
18798 if test "x$ac_cv_type_nlink_t" = xyes; then :
18799
18800 else
18801
18802 $as_echo "#define nlink_t int" >>confdefs.h
18803
18804 fi
18805
18806
18807
18808     for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
18809     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18810     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18811 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18812 if eval \${$as_gl_Symbol+:} false; then :
18813   $as_echo_n "(cached) " >&6
18814 else
18815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18816 /* end confdefs.h.  */
18817 #include <sys/stat.h>
18818
18819 int
18820 main ()
18821 {
18822 #undef $gl_func
18823   (void) $gl_func;
18824   ;
18825   return 0;
18826 }
18827 _ACEOF
18828 if ac_fn_c_try_compile "$LINENO"; then :
18829   eval "$as_gl_Symbol=yes"
18830 else
18831   eval "$as_gl_Symbol=no"
18832 fi
18833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18834 fi
18835 eval ac_res=\$$as_gl_Symbol
18836                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18837 $as_echo "$ac_res" >&6; }
18838      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18839   cat >>confdefs.h <<_ACEOF
18840 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18841 _ACEOF
18842
18843                      eval ac_cv_have_decl_$gl_func=yes
18844 fi
18845       done
18846
18847
18848
18849   # Code from module sys_time:
18850
18851
18852
18853
18854   # Code from module tempname:
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
18867
18868
18869   :
18870
18871
18872   # Code from module threadlib:
18873
18874
18875
18876
18877   # Code from module time:
18878
18879
18880
18881   # Code from module unistd:
18882
18883
18884
18885
18886
18887
18888
18889
18890   :
18891
18892
18893
18894
18895
18896
18897
18898      if test $gl_cv_have_include_next = yes; then
18899        gl_cv_next_unistd_h='<'unistd.h'>'
18900      else
18901        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18902 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18903 if ${gl_cv_next_unistd_h+:} false; then :
18904   $as_echo_n "(cached) " >&6
18905 else
18906
18907           if test $ac_cv_header_unistd_h = yes; then
18908             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18909 /* end confdefs.h.  */
18910 #include <unistd.h>
18911
18912 _ACEOF
18913                                                                                                 case "$host_os" in
18914               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18915               *)    gl_absname_cpp="$ac_cpp" ;;
18916             esac
18917                                                 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18918                sed -n '\#/unistd.h#{
18919                  s#.*"\(.*/unistd.h\)".*#\1#
18920                  s#^/[^/]#//&#
18921                  p
18922                  q
18923                }'`'"'
18924           else
18925             gl_cv_next_unistd_h='<'unistd.h'>'
18926           fi
18927
18928 fi
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18930 $as_echo "$gl_cv_next_unistd_h" >&6; }
18931      fi
18932      NEXT_UNISTD_H=$gl_cv_next_unistd_h
18933
18934      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18935        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18936        gl_next_as_first_directive='<'unistd.h'>'
18937      else
18938        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18939        gl_next_as_first_directive=$gl_cv_next_unistd_h
18940      fi
18941      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18942
18943
18944
18945
18946
18947   :
18948
18949
18950
18951
18952
18953   if test $ac_cv_header_unistd_h = yes; then
18954     HAVE_UNISTD_H=1
18955   else
18956     HAVE_UNISTD_H=0
18957   fi
18958
18959
18960
18961     for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat     fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize getusershell setusershell     endusershell lchown link linkat lseek pipe2 pread pwrite readlink     readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat     usleep; do
18962     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18964 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18965 if eval \${$as_gl_Symbol+:} false; then :
18966   $as_echo_n "(cached) " >&6
18967 else
18968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18969 /* end confdefs.h.  */
18970 #include <unistd.h>
18971 /* Some systems declare various items in the wrong headers.  */
18972 #ifndef __GLIBC__
18973 # include <fcntl.h>
18974 # include <stdio.h>
18975 # include <stdlib.h>
18976 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18977 #  include <io.h>
18978 # endif
18979 #endif
18980
18981 int
18982 main ()
18983 {
18984 #undef $gl_func
18985   (void) $gl_func;
18986   ;
18987   return 0;
18988 }
18989 _ACEOF
18990 if ac_fn_c_try_compile "$LINENO"; then :
18991   eval "$as_gl_Symbol=yes"
18992 else
18993   eval "$as_gl_Symbol=no"
18994 fi
18995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18996 fi
18997 eval ac_res=\$$as_gl_Symbol
18998                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18999 $as_echo "$ac_res" >&6; }
19000      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19001   cat >>confdefs.h <<_ACEOF
19002 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19003 _ACEOF
19004
19005                      eval ac_cv_have_decl_$gl_func=yes
19006 fi
19007       done
19008
19009
19010   # Code from module vasnprintf:
19011
19012
19013   :
19014
19015
19016
19017
19018
19019   if test $ac_cv_func_vasnprintf = no; then
19020
19021
19022   :
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
19067
19068   if test $ac_cv_func_vasnprintf = yes; then
19069
19070 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
19071
19072   fi
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19084 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19085
19086 else
19087
19088 $as_echo "#define ptrdiff_t long" >>confdefs.h
19089
19090
19091 fi
19092
19093
19094
19095
19096
19097
19098
19099   fi
19100
19101   # Code from module verify:
19102   # Code from module warn-on-use:
19103   # Code from module wchar:
19104
19105
19106
19107
19108   :
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118   :
19119
19120
19121
19122
19123
19124
19125
19126      if test $gl_cv_have_include_next = yes; then
19127        gl_cv_next_wchar_h='<'wchar.h'>'
19128      else
19129        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
19130 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
19131 if ${gl_cv_next_wchar_h+:} false; then :
19132   $as_echo_n "(cached) " >&6
19133 else
19134
19135           if test $ac_cv_header_wchar_h = yes; then
19136             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19137 /* end confdefs.h.  */
19138 #include <wchar.h>
19139
19140 _ACEOF
19141                                                                                                 case "$host_os" in
19142               aix*) gl_absname_cpp="$ac_cpp -C" ;;
19143               *)    gl_absname_cpp="$ac_cpp" ;;
19144             esac
19145                                                 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19146                sed -n '\#/wchar.h#{
19147                  s#.*"\(.*/wchar.h\)".*#\1#
19148                  s#^/[^/]#//&#
19149                  p
19150                  q
19151                }'`'"'
19152           else
19153             gl_cv_next_wchar_h='<'wchar.h'>'
19154           fi
19155
19156 fi
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
19158 $as_echo "$gl_cv_next_wchar_h" >&6; }
19159      fi
19160      NEXT_WCHAR_H=$gl_cv_next_wchar_h
19161
19162      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19163        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19164        gl_next_as_first_directive='<'wchar.h'>'
19165      else
19166        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19167        gl_next_as_first_directive=$gl_cv_next_wchar_h
19168      fi
19169      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
19170
19171
19172
19173   if test $ac_cv_header_wchar_h = yes; then
19174     HAVE_WCHAR_H=1
19175   else
19176     HAVE_WCHAR_H=0
19177   fi
19178
19179
19180
19181   if test $gt_cv_c_wint_t = yes; then
19182     HAVE_WINT_T=1
19183   else
19184     HAVE_WINT_T=0
19185   fi
19186
19187
19188
19189     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
19190     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19192 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19193 if eval \${$as_gl_Symbol+:} false; then :
19194   $as_echo_n "(cached) " >&6
19195 else
19196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19197 /* end confdefs.h.  */
19198
19199 /* Some systems require additional headers.  */
19200 #ifndef __GLIBC__
19201 # include <stddef.h>
19202 # include <stdio.h>
19203 # include <time.h>
19204 #endif
19205 #include <wchar.h>
19206
19207 int
19208 main ()
19209 {
19210 #undef $gl_func
19211   (void) $gl_func;
19212   ;
19213   return 0;
19214 }
19215 _ACEOF
19216 if ac_fn_c_try_compile "$LINENO"; then :
19217   eval "$as_gl_Symbol=yes"
19218 else
19219   eval "$as_gl_Symbol=no"
19220 fi
19221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19222 fi
19223 eval ac_res=\$$as_gl_Symbol
19224                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19225 $as_echo "$ac_res" >&6; }
19226      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19227   cat >>confdefs.h <<_ACEOF
19228 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19229 _ACEOF
19230
19231                      eval ac_cv_have_decl_$gl_func=yes
19232 fi
19233       done
19234
19235
19236   # Code from module wcrtomb:
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246   :
19247
19248
19249
19250
19251
19252
19253   :
19254
19255
19256
19257
19258
19259   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19260
19261
19262
19263      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19264 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19265 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
19266   $as_echo_n "(cached) " >&6
19267 else
19268
19269                   case "$host_os" in
19270                      # Guess no on AIX and OSF/1.
19271         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
19272                      # Guess yes otherwise.
19273         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
19274       esac
19275       if test $LOCALE_JA != none; then
19276         if test "$cross_compiling" = yes; then :
19277   :
19278 else
19279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19280 /* end confdefs.h.  */
19281
19282 #include <locale.h>
19283 #include <string.h>
19284 #include <wchar.h>
19285 int main ()
19286 {
19287   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19288     {
19289       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19290       mbstate_t state;
19291       wchar_t wc;
19292
19293       memset (&state, '\0', sizeof (mbstate_t));
19294       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19295         if (mbsinit (&state))
19296           return 1;
19297     }
19298   return 0;
19299 }
19300 _ACEOF
19301 if ac_fn_c_try_run "$LINENO"; then :
19302   gl_cv_func_mbrtowc_incomplete_state=yes
19303 else
19304   gl_cv_func_mbrtowc_incomplete_state=no
19305 fi
19306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19307   conftest.$ac_objext conftest.beam conftest.$ac_ext
19308 fi
19309
19310       fi
19311
19312 fi
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19314 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19315
19316
19317
19318
19319      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19320 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19321 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
19322   $as_echo_n "(cached) " >&6
19323 else
19324
19325                   case "$host_os" in
19326                     # Guess no on Solaris 8.
19327         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
19328                     # Guess yes otherwise.
19329         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
19330       esac
19331       if test $LOCALE_ZH_CN != none; then
19332         if test "$cross_compiling" = yes; then :
19333   :
19334 else
19335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19336 /* end confdefs.h.  */
19337
19338 #include <locale.h>
19339 #include <stdlib.h>
19340 #include <string.h>
19341 #include <wchar.h>
19342 int main ()
19343 {
19344   /* This fails on Solaris 8:
19345      mbrtowc returns 2, and sets wc to 0x00F0.
19346      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
19347   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19348     {
19349       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19350       mbstate_t state;
19351       wchar_t wc;
19352
19353       memset (&state, '\0', sizeof (mbstate_t));
19354       if (mbrtowc (&wc, input + 3, 6, &state) != 4
19355           && mbtowc (&wc, input + 3, 6) == 4)
19356         return 1;
19357     }
19358   return 0;
19359 }
19360 _ACEOF
19361 if ac_fn_c_try_run "$LINENO"; then :
19362   gl_cv_func_mbrtowc_sanitycheck=yes
19363 else
19364   gl_cv_func_mbrtowc_sanitycheck=no
19365 fi
19366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19367   conftest.$ac_objext conftest.beam conftest.$ac_ext
19368 fi
19369
19370       fi
19371
19372 fi
19373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19374 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19375
19376     REPLACE_MBSTATE_T=0
19377     case "$gl_cv_func_mbrtowc_incomplete_state" in
19378       *yes) ;;
19379       *) REPLACE_MBSTATE_T=1 ;;
19380     esac
19381     case "$gl_cv_func_mbrtowc_sanitycheck" in
19382       *yes) ;;
19383       *) REPLACE_MBSTATE_T=1 ;;
19384     esac
19385   else
19386     REPLACE_MBSTATE_T=1
19387   fi
19388   if test $REPLACE_MBSTATE_T = 1; then
19389
19390     :
19391
19392   fi
19393
19394
19395
19396   :
19397
19398
19399
19400
19401
19402   if test $ac_cv_func_wcrtomb = no; then
19403     HAVE_WCRTOMB=0
19404   else
19405     if test $REPLACE_MBSTATE_T = 1; then
19406       REPLACE_WCRTOMB=1
19407     else
19408
19409
19410
19411
19412
19413              { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
19414 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
19415 if ${gl_cv_func_wcrtomb_retval+:} false; then :
19416   $as_echo_n "(cached) " >&6
19417 else
19418
19419                               case "$host_os" in
19420                                      # Guess no on AIX 4, OSF/1 and Solaris.
19421             aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
19422                                      # Guess yes otherwise.
19423             *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
19424           esac
19425           if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
19426             if test "$cross_compiling" = yes; then :
19427   :
19428 else
19429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19430 /* end confdefs.h.  */
19431
19432 #include <locale.h>
19433 #include <stdio.h>
19434 #include <string.h>
19435 #include <wchar.h>
19436 int main ()
19437 {
19438   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
19439     {
19440       if (wcrtomb (NULL, 0, NULL) != 1)
19441         return 1;
19442     }
19443   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19444     {
19445       if (wcrtomb (NULL, 0, NULL) != 1)
19446         return 1;
19447     }
19448   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19449     {
19450       if (wcrtomb (NULL, 0, NULL) != 1)
19451         return 1;
19452     }
19453   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19454     {
19455       if (wcrtomb (NULL, 0, NULL) != 1)
19456         return 1;
19457     }
19458   return 0;
19459 }
19460 _ACEOF
19461 if ac_fn_c_try_run "$LINENO"; then :
19462   gl_cv_func_wcrtomb_retval=yes
19463 else
19464   gl_cv_func_wcrtomb_retval=no
19465 fi
19466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19467   conftest.$ac_objext conftest.beam conftest.$ac_ext
19468 fi
19469
19470           fi
19471
19472 fi
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
19474 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
19475       case "$gl_cv_func_wcrtomb_retval" in
19476         *yes) ;;
19477         *) REPLACE_WCRTOMB=1 ;;
19478       esac
19479     fi
19480   fi
19481   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
19482
19483     :
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493   gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
19494
19495
19496   :
19497
19498   fi
19499
19500
19501
19502
19503   GNULIB_WCRTOMB=1
19504
19505
19506
19507 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
19508
19509
19510
19511   # Code from module wctype:
19512
19513
19514
19515
19516   :
19517
19518
19519
19520
19521
19522   if test $ac_cv_func_iswcntrl = yes; then
19523     HAVE_ISWCNTRL=1
19524   else
19525     HAVE_ISWCNTRL=0
19526   fi
19527
19528
19529   :
19530
19531
19532
19533
19534
19535
19536   :
19537
19538
19539
19540
19541
19542   if test $ac_cv_func_iswblank = yes; then
19543     HAVE_ISWBLANK=1
19544     REPLACE_ISWBLANK=0
19545   else
19546     HAVE_ISWBLANK=0
19547     if test $ac_cv_have_decl_iswblank = yes; then
19548       REPLACE_ISWBLANK=1
19549     else
19550       REPLACE_ISWBLANK=0
19551     fi
19552   fi
19553
19554
19555
19556
19557   :
19558
19559
19560
19561
19562
19563
19564
19565
19566   if test $gt_cv_c_wint_t = yes; then
19567     HAVE_WINT_T=1
19568   else
19569     HAVE_WINT_T=0
19570   fi
19571
19572
19573   if test $ac_cv_header_wctype_h = yes; then
19574     if test $ac_cv_func_iswcntrl = yes; then
19575                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
19576 $as_echo_n "checking whether iswcntrl works... " >&6; }
19577 if ${gl_cv_func_iswcntrl_works+:} false; then :
19578   $as_echo_n "(cached) " >&6
19579 else
19580
19581           if test "$cross_compiling" = yes; then :
19582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19583 /* end confdefs.h.  */
19584 #include <stdlib.h>
19585                           #if __GNU_LIBRARY__ == 1
19586                           Linux libc5 i18n is broken.
19587                           #endif
19588 int
19589 main ()
19590 {
19591
19592   ;
19593   return 0;
19594 }
19595 _ACEOF
19596 if ac_fn_c_try_compile "$LINENO"; then :
19597   gl_cv_func_iswcntrl_works=yes
19598 else
19599   gl_cv_func_iswcntrl_works=no
19600 fi
19601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19602
19603 else
19604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19605 /* end confdefs.h.  */
19606
19607                             #include <stddef.h>
19608                             #include <stdio.h>
19609                             #include <time.h>
19610                             #include <wchar.h>
19611                             #include <wctype.h>
19612                             int main () { return iswprint ('x') == 0; }
19613 _ACEOF
19614 if ac_fn_c_try_run "$LINENO"; then :
19615   gl_cv_func_iswcntrl_works=yes
19616 else
19617   gl_cv_func_iswcntrl_works=no
19618 fi
19619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19620   conftest.$ac_objext conftest.beam conftest.$ac_ext
19621 fi
19622
19623
19624 fi
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
19626 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
19627     fi
19628
19629
19630
19631
19632   :
19633
19634
19635
19636
19637
19638
19639
19640      if test $gl_cv_have_include_next = yes; then
19641        gl_cv_next_wctype_h='<'wctype.h'>'
19642      else
19643        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
19644 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
19645 if ${gl_cv_next_wctype_h+:} false; then :
19646   $as_echo_n "(cached) " >&6
19647 else
19648
19649           if test $ac_cv_header_wctype_h = yes; then
19650             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19651 /* end confdefs.h.  */
19652 #include <wctype.h>
19653
19654 _ACEOF
19655                                                                                                 case "$host_os" in
19656               aix*) gl_absname_cpp="$ac_cpp -C" ;;
19657               *)    gl_absname_cpp="$ac_cpp" ;;
19658             esac
19659                                                 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19660                sed -n '\#/wctype.h#{
19661                  s#.*"\(.*/wctype.h\)".*#\1#
19662                  s#^/[^/]#//&#
19663                  p
19664                  q
19665                }'`'"'
19666           else
19667             gl_cv_next_wctype_h='<'wctype.h'>'
19668           fi
19669
19670 fi
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
19672 $as_echo "$gl_cv_next_wctype_h" >&6; }
19673      fi
19674      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
19675
19676      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19677        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19678        gl_next_as_first_directive='<'wctype.h'>'
19679      else
19680        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19681        gl_next_as_first_directive=$gl_cv_next_wctype_h
19682      fi
19683      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
19684
19685
19686
19687     HAVE_WCTYPE_H=1
19688   else
19689     HAVE_WCTYPE_H=0
19690   fi
19691
19692
19693   if test "$gl_cv_func_iswcntrl_works" = no; then
19694     REPLACE_ISWCNTRL=1
19695   else
19696     REPLACE_ISWCNTRL=0
19697   fi
19698
19699
19700   # Code from module write:
19701
19702
19703
19704
19705
19706
19707
19708   GNULIB_WRITE=1
19709
19710
19711
19712 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
19713
19714
19715
19716   # Code from module xsize:
19717
19718
19719
19720   for ac_header in stdint.h
19721 do :
19722   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19723 if test "x$ac_cv_header_stdint_h" = xyes; then :
19724   cat >>confdefs.h <<_ACEOF
19725 #define HAVE_STDINT_H 1
19726 _ACEOF
19727
19728 fi
19729
19730 done
19731
19732
19733   # End of code from modules
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743   gltests_libdeps=
19744   gltests_ltlibdeps=
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754   gl_source_base='tests'
19755   gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
19756
19757   gl_module_indicator_condition=$gltests_WITNESS
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771     # support deprecated ./configure flags to set various compiler flags
19772
19773
19774 # Check whether --with-cflags was given.
19775 if test "${with_cflags+set}" = set; then :
19776   withval=$with_cflags;
19777             case "$withval" in
19778             "" | y | ye | yes | n | no)
19779                 as_fn_error $? "*** You must supply an argument to the --with-cflags option." "$LINENO" 5
19780                 ;;
19781             esac
19782
19783             CFLAGS="$withval"
19784
19785 fi
19786
19787
19788
19789 # Check whether --with-includes was given.
19790 if test "${with_includes+set}" = set; then :
19791   withval=$with_includes;
19792             case "$withval" in
19793             "" | y | ye | yes | n | no)
19794                 as_fn_error $? "*** You must supply an argument to the --with-includes option." "$LINENO" 5
19795               ;;
19796             esac
19797
19798             for dir in $withval; do
19799                 if test -d "$dir"; then
19800                     CPPFLAGS="$CPPFLAGS -I$dir"
19801                 else
19802
19803     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Include directory $dir does not exist." >&5
19804 $as_echo "$as_me: WARNING: Include directory $dir does not exist." >&2;}
19805
19806
19807     cat <<AAW_EOF >>config.warnings
19808 Include directory $dir does not exist.
19809 AAW_EOF
19810
19811
19812                 fi
19813             done
19814
19815 fi
19816
19817
19818
19819 # Check whether --with-libraries was given.
19820 if test "${with_libraries+set}" = set; then :
19821   withval=$with_libraries;
19822             case "$withval" in
19823             "" | y | ye | yes | n | no)
19824                 as_fn_error $? "*** You must supply an argument to the --with-libraries option." "$LINENO" 5
19825               ;;
19826             esac
19827
19828             for dir in $withval; do
19829                 if test -d "$dir"; then
19830                     case "$host" in
19831                       *-solaris2*,*-netbsd*)
19832                             LDFLAGS="$LDFLAGS -R$dir"
19833                             ;;
19834                     esac
19835                     LDFLAGS="$LDFLAGS -L$dir"
19836                 else
19837
19838     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Library directory $dir does not exist." >&5
19839 $as_echo "$as_me: WARNING: Library directory $dir does not exist." >&2;}
19840
19841
19842     cat <<AAW_EOF >>config.warnings
19843 Library directory $dir does not exist.
19844 AAW_EOF
19845
19846
19847                 fi
19848             done
19849
19850 fi
19851
19852
19853     # Disable strict-aliasing optimizations
19854
19855     # test for -W'feature', then add the 'no-' version.
19856
19857
19858
19859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -fstrict-aliasing" >&5
19860 $as_echo_n "checking for gcc flag -fstrict-aliasing... " >&6; }
19861     if test "x$GCC" = "xyes"; then
19862                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19863            $CC -v --help 2>&1) |
19864          $EGREP -- '[^[:alnum:]]-fstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
19865                 if test $? -eq 0; then
19866             found_warning=yes
19867             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19868 $as_echo "yes" >&6; }
19869         else
19870             found_warning=no
19871             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19872 $as_echo "no" >&6; }
19873         fi
19874     else
19875         found_warning=no
19876         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19877 $as_echo "no (not using gcc)" >&6; }
19878     fi
19879
19880     if test x"$found_warning" = x"yes"; then
19881         CFLAGS="$CFLAGS -fno-strict-aliasing"
19882
19883         CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
19884
19885
19886     else
19887         :
19888     fi
19889
19890
19891
19892     # Warn for just about everything
19893
19894
19895
19896
19897     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wall" >&5
19898 $as_echo_n "checking for gcc flag -Wall... " >&6; }
19899     if test "x$GCC" = "xyes"; then
19900                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19901            $CC -v --help 2>&1) |
19902          $EGREP -- '[^[:alnum:]]-Wall[^[:alnum:]-]' 2>&1 > /dev/null
19903                 if test $? -eq 0; then
19904             found_warning=yes
19905             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19906 $as_echo "yes" >&6; }
19907         else
19908             found_warning=no
19909             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19910 $as_echo "no" >&6; }
19911         fi
19912     else
19913         found_warning=no
19914         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19915 $as_echo "no (not using gcc)" >&6; }
19916     fi
19917
19918     if test x"$found_warning" = x"yes"; then
19919         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wall"
19920
19921
19922     else
19923         :
19924     fi
19925
19926
19927
19928     # And add any extra warnings too
19929
19930
19931
19932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wextra" >&5
19933 $as_echo_n "checking for gcc flag -Wextra... " >&6; }
19934     if test "x$GCC" = "xyes"; then
19935                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19936            $CC -v --help 2>&1) |
19937          $EGREP -- '[^[:alnum:]]-Wextra[^[:alnum:]-]' 2>&1 > /dev/null
19938                 if test $? -eq 0; then
19939             found_warning=yes
19940             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19941 $as_echo "yes" >&6; }
19942         else
19943             found_warning=no
19944             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19945 $as_echo "no" >&6; }
19946         fi
19947     else
19948         found_warning=no
19949         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19950 $as_echo "no (not using gcc)" >&6; }
19951     fi
19952
19953     if test x"$found_warning" = x"yes"; then
19954         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wextra"
19955
19956
19957     else
19958
19959
19960
19961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -W" >&5
19962 $as_echo_n "checking for gcc flag -W... " >&6; }
19963     if test "x$GCC" = "xyes"; then
19964                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19965            $CC -v --help 2>&1) |
19966          $EGREP -- '^[:alnum:]-W^[:alnum:]-' 2>&1 > /dev/null
19967                 if test $? -eq 0; then
19968             found_warning=yes
19969             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19970 $as_echo "yes" >&6; }
19971         else
19972             found_warning=no
19973             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19974 $as_echo "no" >&6; }
19975         fi
19976     else
19977         found_warning=no
19978         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19979 $as_echo "no (not using gcc)" >&6; }
19980     fi
19981
19982     if test x"$found_warning" = x"yes"; then
19983         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -W"
19984
19985
19986     else
19987         :
19988     fi
19989
19990
19991     fi
19992
19993
19994
19995 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
19996
19997
19998     # Check whether --enable-as-needed was given.
19999 if test "${enable_as_needed+set}" = set; then :
20000   enableval=$enable_as_needed;  WANT_AS_NEEDED=$enableval
20001 else
20002    WANT_AS_NEEDED=no
20003 fi
20004
20005
20006      if test x"$WANT_AS_NEEDED" = x"yes"; then
20007   WANT_AS_NEEDED_TRUE=
20008   WANT_AS_NEEDED_FALSE='#'
20009 else
20010   WANT_AS_NEEDED_TRUE='#'
20011   WANT_AS_NEEDED_FALSE=
20012 fi
20013
20014
20015     if test x"$WANT_AS_NEEDED" = x"yes"; then
20016         AS_NEEDED_FLAGS="-Wl,--as-needed"
20017     else
20018         AS_NEEDED_FLAGS=""
20019     fi
20020
20021
20022
20023
20024 #
20025 # Configuration flags (--with-xxx and --enable-xxx)
20026 #
20027
20028
20029
20030 # Check whether --with-user was given.
20031 if test "${with_user+set}" = set; then :
20032   withval=$with_user;
20033             case "$withval" in
20034                 "" | y | ye | yes | n | no)
20035                     as_fn_error $? "*** You must supply an argument to the --with-user option." "$LINENO" 5
20036                   ;;
20037                 *)
20038                     CLIENT_LOGIN="$withval"
20039                   ;;
20040             esac
20041
20042 else
20043
20044
20045     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no user specified (--with-user) -- using 'amanda'" >&5
20046 $as_echo "$as_me: WARNING: no user specified (--with-user) -- using 'amanda'" >&2;}
20047
20048
20049     cat <<AAW_EOF >>config.warnings
20050 no user specified (--with-user) -- using 'amanda'
20051 AAW_EOF
20052
20053
20054             CLIENT_LOGIN=amanda
20055
20056
20057 fi
20058
20059
20060
20061 cat >>confdefs.h <<_ACEOF
20062 #define CLIENT_LOGIN "$CLIENT_LOGIN"
20063 _ACEOF
20064
20065
20066
20067
20068
20069 # Check whether --with-group was given.
20070 if test "${with_group+set}" = set; then :
20071   withval=$with_group;
20072             case "$withval" in
20073                 "" | y | ye | yes | n | no)
20074                     as_fn_error $? "*** You must supply an argument to the --with-group option." "$LINENO" 5
20075                   ;;
20076                 *) SETUID_GROUP="$withval"
20077                   ;;
20078             esac
20079
20080 else
20081
20082
20083     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no group specified (--with-group) -- using 'backup'" >&5
20084 $as_echo "$as_me: WARNING: no group specified (--with-group) -- using 'backup'" >&2;}
20085
20086
20087     cat <<AAW_EOF >>config.warnings
20088 no group specified (--with-group) -- using 'backup'
20089 AAW_EOF
20090
20091
20092             SETUID_GROUP=backup
20093
20094
20095 fi
20096
20097
20098
20099
20100
20101 # Check whether --with-dumperdir was given.
20102 if test "${with_dumperdir+set}" = set; then :
20103   withval=$with_dumperdir;
20104
20105     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-dumperdir is no longer used." >&5
20106 $as_echo "$as_me: WARNING: --with-dumperdir is no longer used." >&2;}
20107
20108
20109     cat <<AAW_EOF >>config.warnings
20110 --with-dumperdir is no longer used.
20111 AAW_EOF
20112
20113
20114
20115
20116 fi
20117
20118
20119
20120
20121 # Check whether --with-configdir was given.
20122 if test "${with_configdir+set}" = set; then :
20123   withval=$with_configdir;
20124             case "$withval" in
20125             "" | y | ye | yes | n | no)
20126                 as_fn_error $? "*** You must supply an argument to the --with-configdir option." "$LINENO" 5
20127               ;;
20128             *) CONFIG_DIR="$withval"
20129               ;;
20130             esac
20131
20132 else
20133
20134             : ${CONFIG_DIR='${sysconfdir}/amanda'} # (variable will be evaluated below)
20135
20136
20137 fi
20138
20139
20140   prefix_NONE=
20141   exec_prefix_NONE=
20142   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20143   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20144   eval ac_define_dir="\"$CONFIG_DIR\""
20145   eval ac_define_dir="\"$ac_define_dir\""
20146   CONFIG_DIR="$ac_define_dir"
20147
20148
20149 cat >>confdefs.h <<_ACEOF
20150 #define CONFIG_DIR "$ac_define_dir"
20151 _ACEOF
20152
20153   test "$prefix_NONE" && prefix=NONE
20154   test "$exec_prefix_NONE" && exec_prefix=NONE
20155
20156
20157
20158
20159 # Check whether --with-indexdir was given.
20160 if test "${with_indexdir+set}" = set; then :
20161   withval=$with_indexdir;    as_fn_error $? "*** --with-indexdir is deprecated; use indexdir in amanda.conf instead." "$LINENO" 5
20162
20163 fi
20164
20165
20166
20167
20168 # Check whether --with-dbdir was given.
20169 if test "${with_dbdir+set}" = set; then :
20170   withval=$with_dbdir;    as_fn_error $? "*** --with-dbdir is deprecated; use infofile in amanda.conf instead." "$LINENO" 5
20171
20172 fi
20173
20174
20175
20176
20177 # Check whether --with-logdir was given.
20178 if test "${with_logdir+set}" = set; then :
20179   withval=$with_logdir;    as_fn_error $? "*** --with-logdir is deprecated; use logfile in amanda.conf instead." "$LINENO" 5
20180
20181 fi
20182
20183
20184
20185
20186 # Check whether --with-suffixes was given.
20187 if test "${with_suffixes+set}" = set; then :
20188   withval=$with_suffixes;
20189
20190     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** --with-suffixes is deprecated" >&5
20191 $as_echo "$as_me: WARNING: ** --with-suffixes is deprecated" >&2;}
20192
20193
20194     cat <<AAW_EOF >>config.warnings
20195 ** --with-suffixes is deprecated
20196 AAW_EOF
20197
20198
20199
20200 fi
20201
20202
20203
20204
20205 # Check whether --with-gnutar-listdir was given.
20206 if test "${with_gnutar_listdir+set}" = set; then :
20207   withval=$with_gnutar_listdir;
20208             case "$withval" in
20209                 n | no) GNUTAR_LISTDIR= ;;
20210                 y | ye | yes) GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists' ;;
20211                 *) GNUTAR_LISTDIR="$withval" ;;
20212             esac
20213
20214 else
20215
20216             GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists'
20217
20218
20219 fi
20220
20221
20222     # substitute $prefix, etc. if necessary
20223
20224   prefix_NONE=
20225   exec_prefix_NONE=
20226   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20227   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20228   eval ac_define_dir="\"$GNUTAR_LISTDIR\""
20229   eval ac_define_dir="\"$ac_define_dir\""
20230   GNUTAR_LISTED_INCREMENTAL_DIR="$ac_define_dir"
20231
20232
20233 cat >>confdefs.h <<_ACEOF
20234 #define GNUTAR_LISTED_INCREMENTAL_DIR "$ac_define_dir"
20235 _ACEOF
20236
20237   test "$prefix_NONE" && prefix=NONE
20238   test "$exec_prefix_NONE" && exec_prefix=NONE
20239
20240
20241     # handle deprecated option
20242
20243 # Check whether --with-gnutar-listed-incremental was given.
20244 if test "${with_gnutar_listed_incremental+set}" = set; then :
20245   withval=$with_gnutar_listed_incremental;
20246             as_fn_error $? "*** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" "$LINENO" 5
20247
20248
20249 fi
20250
20251
20252
20253
20254 # Check whether --with-tmpdir was given.
20255 if test "${with_tmpdir+set}" = set; then :
20256   withval=$with_tmpdir;
20257             tmpdir="$withval"
20258
20259 else
20260
20261             tmpdir=yes
20262
20263
20264 fi
20265
20266
20267     case "$tmpdir" in
20268         n | no) as_fn_error $? "*** --without-tmpdir is not allowed." "$LINENO" 5;;
20269         y |  ye | yes) AMANDA_TMPDIR="/tmp/amanda";;
20270         *) AMANDA_TMPDIR="$tmpdir";;
20271     esac
20272
20273
20274   prefix_NONE=
20275   exec_prefix_NONE=
20276   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20277   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20278   eval ac_define_dir="\"$AMANDA_TMPDIR\""
20279   eval ac_define_dir="\"$ac_define_dir\""
20280   AMANDA_TMPDIR="$ac_define_dir"
20281
20282
20283 cat >>confdefs.h <<_ACEOF
20284 #define AMANDA_TMPDIR "$ac_define_dir"
20285 _ACEOF
20286
20287   test "$prefix_NONE" && prefix=NONE
20288   test "$exec_prefix_NONE" && exec_prefix=NONE
20289
20290
20291
20292
20293 # Check whether --with-force-uid was given.
20294 if test "${with_force_uid+set}" = set; then :
20295   withval=$with_force_uid; CHECK_USERID="$withval"
20296 else
20297   : ${CHECK_USERID=yes}
20298
20299 fi
20300
20301     case "$CHECK_USERID" in
20302         y | ye | yes)
20303             CHECK_USERID=1
20304
20305 $as_echo "#define CHECK_USERID 1" >>confdefs.h
20306
20307           ;;
20308         n | no) :
20309             CHECK_USERID=
20310           ;;
20311         *)
20312             as_fn_error $? "*** You must not supply an argument to --with-force-uid option." "$LINENO" 5
20313     esac
20314
20315      if test x"$CHECK_USERID" = x"1"; then
20316   CHECK_USERID_TRUE=
20317   CHECK_USERID_FALSE='#'
20318 else
20319   CHECK_USERID_TRUE='#'
20320   CHECK_USERID_FALSE=
20321 fi
20322
20323
20324
20325
20326
20327 # Check whether --with-owner was given.
20328 if test "${with_owner+set}" = set; then :
20329   withval=$with_owner;
20330             case "$withval" in
20331             "" | y | ye | yes | n | no)
20332                 as_fn_error $? "*** You must supply an argument to the --with-owner option." "$LINENO" 5
20333               ;;
20334             *) BINARY_OWNER="$withval"
20335               ;;
20336             esac
20337
20338 else
20339
20340             BINARY_OWNER="$CLIENT_LOGIN"
20341
20342
20343 fi
20344
20345
20346 cat >>confdefs.h <<_ACEOF
20347 #define BINARY_OWNER "$BINARY_OWNER"
20348 _ACEOF
20349
20350
20351
20352
20353
20354 # Check whether --with-fqdn was given.
20355 if test "${with_fqdn+set}" = set; then :
20356   withval=$with_fqdn;  USE_FQDN=$withval
20357 else
20358    USE_FQDN=no
20359 fi
20360
20361
20362     case "$USE_FQDN" in
20363     n | no) : ;;
20364     y |  ye | yes)
20365
20366 $as_echo "#define USE_FQDN 1" >>confdefs.h
20367
20368       ;;
20369     *) as_fn_error $? "You must not supply an argument to --with-fqdn option." "$LINENO" 5
20370       ;;
20371     esac
20372
20373
20374
20375 # Check whether --with-reuseports was given.
20376 if test "${with_reuseports+set}" = set; then :
20377   withval=$with_reuseports;  case "$withval" in
20378             y | ye | yes) USE_REUSEADDR=no;;
20379             n | no) USE_REUSEADDR=yes;;
20380             *) as_fn_error $? "You must not supply an argument to --without-reuseports" "$LINENO" 5;;
20381           esac
20382
20383 else
20384    USE_REUSEADDR=yes;
20385 fi
20386
20387     if test x"$USE_REUSEADDR" = x"yes"; then
20388
20389 $as_echo "#define USE_REUSEADDR 1" >>confdefs.h
20390
20391     fi
20392
20393
20394
20395 # Check whether --with-low-tcpportrange was given.
20396 if test "${with_low_tcpportrange+set}" = set; then :
20397   withval=$with_low_tcpportrange;  LOW_TCPPORTRANGE="$withval"
20398 else
20399    LOW_TCPPORTRANGE=unlimited
20400 fi
20401
20402
20403     if test x"$LOW_TCPPORTRANGE" != x"unlimited"; then
20404         if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20405             as_fn_error $? "--with-low-tcpportrange requires two comma-separated positive numbers" "$LINENO" 5
20406         fi
20407         min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
20408         max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
20409         if test $min_low_tcp_port -gt $max_low_tcp_port; then
20410             as_fn_error $? "the second TCP port number must be greater than the first in --with-low-tcpportrange" "$LINENO" 5
20411         fi
20412         if test $min_low_tcp_port -lt 512; then
20413
20414     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
20415 $as_echo "$as_me: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
20416
20417
20418     cat <<AAW_EOF >>config.warnings
20419 the low TCP port range should be 512 or greater in --with-low-tcpportrange
20420 AAW_EOF
20421
20422
20423         fi
20424         if test $max_low_tcp_port -ge 1024; then
20425
20426     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
20427 $as_echo "$as_me: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
20428
20429
20430     cat <<AAW_EOF >>config.warnings
20431 the low TCP port range should be less than 1024 in --with-low-tcpportrange
20432 AAW_EOF
20433
20434
20435         fi
20436
20437 cat >>confdefs.h <<_ACEOF
20438 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
20439 _ACEOF
20440
20441     fi
20442
20443
20444 # Check whether --with-tcpportrange was given.
20445 if test "${with_tcpportrange+set}" = set; then :
20446   withval=$with_tcpportrange;  TCPPORTRANGE="$withval"
20447 else
20448    TCPPORTRANGE="unlimited"
20449 fi
20450
20451
20452     if test x"$TCPPORTRANGE" != x"unlimited"; then
20453         if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20454             as_fn_error $? "--with-tcpportrange requires two comma-separated positive numbers" "$LINENO" 5
20455         fi
20456         min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
20457         max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
20458         if test $min_tcp_port -gt $max_tcp_port; then
20459             as_fn_error $? "the second TCP port number must be greater than the first in --with-tcpportrange" "$LINENO" 5
20460         fi
20461         if test $min_tcp_port -lt 1024; then
20462
20463     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
20464 $as_echo "$as_me: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
20465
20466
20467     cat <<AAW_EOF >>config.warnings
20468 the TCP port range should be 1024 or greater in --with-tcpportrange
20469 AAW_EOF
20470
20471
20472         fi
20473         if test $max_tcp_port -ge 65536; then
20474
20475     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&5
20476 $as_echo "$as_me: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
20477
20478
20479     cat <<AAW_EOF >>config.warnings
20480 the TCP port range should be less than 65536 in --with-tcpportrange
20481 AAW_EOF
20482
20483
20484         fi
20485
20486 cat >>confdefs.h <<_ACEOF
20487 #define TCPPORTRANGE $TCPPORTRANGE
20488 _ACEOF
20489
20490     fi
20491
20492
20493 # Check whether --with-udpportrange was given.
20494 if test "${with_udpportrange+set}" = set; then :
20495   withval=$with_udpportrange;  UDPPORTRANGE="$withval"
20496 else
20497    UDPPORTRANGE="unlimited"
20498 fi
20499
20500     if test x"$UDPPORTRANGE" != x"unlimited"; then
20501         if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20502             as_fn_error $? "--with-udpportrange requires two comma-separated positive numbers" "$LINENO" 5
20503         fi
20504         min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
20505         max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
20506         if test $min_udp_port -gt $max_udp_port; then
20507             as_fn_error $? "the second UDP port number must be greater than the first in --with-udpportrange" "$LINENO" 5
20508         fi
20509         if test $max_udp_port -ge 1024; then
20510
20511     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&5
20512 $as_echo "$as_me: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&2;}
20513
20514
20515     cat <<AAW_EOF >>config.warnings
20516 the UDP port range should be less than 1025 in --with-udpportrange
20517 AAW_EOF
20518
20519
20520         fi
20521         if test $min_udp_port -le 0; then
20522
20523     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&5
20524 $as_echo "$as_me: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
20525
20526
20527     cat <<AAW_EOF >>config.warnings
20528 the UDP port range should be greater than 0 in --with-udpportrange
20529 AAW_EOF
20530
20531
20532         fi
20533
20534 cat >>confdefs.h <<_ACEOF
20535 #define UDPPORTRANGE $UDPPORTRANGE
20536 _ACEOF
20537
20538     fi
20539
20540
20541
20542
20543
20544
20545 # Check whether --with-buffered-dump was given.
20546 if test "${with_buffered_dump+set}" = set; then :
20547   withval=$with_buffered_dump;  DUMPER_SOCKET_BUFFERING=$withval
20548 else
20549    DUMPER_SOCKET_BUFFERING=no
20550 fi
20551
20552     case "$DUMPER_SOCKET_BUFFERING" in
20553     n | no) ;;
20554     y | ye | yes)
20555
20556 $as_echo "#define DUMPER_SOCKET_BUFFERING 1" >>confdefs.h
20557
20558       ;;
20559     *) as_fn_error $? "You must not supply an argument to --with-buffered-dump." "$LINENO" 5 ;;
20560     esac
20561
20562
20563
20564 # Check whether --with-maxtapeblocksize was given.
20565 if test "${with_maxtapeblocksize+set}" = set; then :
20566   withval=$with_maxtapeblocksize;
20567     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-maxtapeblocksize is no longer needed" >&5
20568 $as_echo "$as_me: WARNING: --with-maxtapeblocksize is no longer needed" >&2;}
20569
20570
20571     cat <<AAW_EOF >>config.warnings
20572 --with-maxtapeblocksize is no longer needed
20573 AAW_EOF
20574
20575
20576
20577 fi
20578
20579
20580
20581     ASSERTIONS=
20582
20583 # Check whether --with-assertions was given.
20584 if test "${with_assertions+set}" = set; then :
20585   withval=$with_assertions;
20586             case "$withval" in
20587                 n | no) : ;;
20588                 y |  ye | yes)
20589                     ASSERTIONS=1
20590
20591 $as_echo "#define ASSERTIONS 1" >>confdefs.h
20592
20593                   ;;
20594                 *) as_fn_error $? "*** You must not supply an argument to --with-assertions option." "$LINENO" 5
20595                   ;;
20596             esac
20597
20598
20599 fi
20600
20601
20602
20603
20604
20605
20606 # Check whether --with-debugging was given.
20607 if test "${with_debugging+set}" = set; then :
20608   withval=$with_debugging;  debugging="$withval"
20609 else
20610    debugging="yes"
20611
20612 fi
20613
20614
20615     case "$debugging" in
20616         n | no) as_fn_error $? "Amanda no longer supports building with debugging disabled" "$LINENO" 5;;
20617         y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
20618         *) AMANDA_DBGDIR="$debugging";;
20619     esac
20620
20621     # evaluate any extra variables in the directory
20622
20623   prefix_NONE=
20624   exec_prefix_NONE=
20625   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20626   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20627   eval ac_define_dir="\"$AMANDA_DBGDIR\""
20628   eval ac_define_dir="\"$ac_define_dir\""
20629   AMANDA_DBGDIR="$ac_define_dir"
20630
20631
20632 cat >>confdefs.h <<_ACEOF
20633 #define AMANDA_DBGDIR "$ac_define_dir"
20634 _ACEOF
20635
20636   test "$prefix_NONE" && prefix=NONE
20637   test "$exec_prefix_NONE" && exec_prefix=NONE
20638
20639
20640
20641
20642 # Check whether --with-debug_days was given.
20643 if test "${with_debug_days+set}" = set; then :
20644   withval=$with_debug_days;
20645             debug_days="$withval"
20646
20647 else
20648
20649             debug_days="yes"
20650
20651
20652 fi
20653
20654     case "$debug_days" in
20655         n | no)
20656             AMANDA_DEBUG_DAYS=0 ;;
20657         y |  ye | yes)
20658             AMANDA_DEBUG_DAYS=4 ;;
20659         [0-9] | [0-9][0-9] | [0-9][0-9][0-9])
20660             AMANDA_DEBUG_DAYS="$debug_days" ;;
20661         *) as_fn_error $? "*** --with-debug-days value not numeric or out of range." "$LINENO" 5
20662           ;;
20663     esac
20664
20665 cat >>confdefs.h <<_ACEOF
20666 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
20667 _ACEOF
20668
20669
20670
20671
20672
20673 # Check whether --with-testing was given.
20674 if test "${with_testing+set}" = set; then :
20675   withval=$with_testing;
20676             TESTING="$withval"
20677
20678 else
20679
20680             TESTING="no"
20681
20682
20683 fi
20684
20685     case "$TESTING" in
20686         n | no) SERVICE_SUFFIX="";;
20687         y |  ye | yes) SERVICE_SUFFIX="-test";;
20688         *) SERVICE_SUFFIX="-$TESTING";;
20689     esac
20690
20691     AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
20692     KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
20693
20694
20695
20696 cat >>confdefs.h <<_ACEOF
20697 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
20698 _ACEOF
20699
20700
20701 cat >>confdefs.h <<_ACEOF
20702 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
20703 _ACEOF
20704
20705
20706 cat >>confdefs.h <<_ACEOF
20707 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
20708 _ACEOF
20709
20710
20711
20712     SINGLE_USERID=${SINGLE_USERID:-no}
20713     WANT_SETUID_CLIENT=${WANT_SETUID_CLIENT:-true}
20714
20715
20716 # Check whether --with-single-userid was given.
20717 if test "${with_single_userid+set}" = set; then :
20718   withval=$with_single_userid;    SINGLE_USERID=$withval
20719 fi
20720
20721
20722     case "$host" in
20723         *-pc-cygwin)
20724             WANT_SETUID_CLIENT=false
20725             SINGLE_USERID=yes
20726             ;;
20727     esac
20728
20729     if test x"$WANT_SETUID_CLIENT" = x"true"; then
20730
20731 $as_echo "#define WANT_SETUID_CLIENT 1" >>confdefs.h
20732
20733     fi
20734      if test x"$WANT_SETUID_CLIENT" = x"true"; then
20735   WANT_SETUID_CLIENT_TRUE=
20736   WANT_SETUID_CLIENT_FALSE='#'
20737 else
20738   WANT_SETUID_CLIENT_TRUE='#'
20739   WANT_SETUID_CLIENT_FALSE=
20740 fi
20741
20742
20743     if test x"$SINGLE_USERID" = x"yes"; then
20744
20745 $as_echo "#define SINGLE_USERID 1" >>confdefs.h
20746
20747     fi
20748
20749
20750     WANT_INSTALLPERMS=yes
20751     # Check whether --enable-installperms was given.
20752 if test "${enable_installperms+set}" = set; then :
20753   enableval=$enable_installperms;  WANT_INSTALLPERMS="$enableval"
20754 else
20755    WANT_INSTALLPERMS="yes"
20756
20757 fi
20758
20759      if test x"$WANT_INSTALLPERMS" = x"yes"; then
20760   WANT_INSTALLPERMS_TRUE=
20761   WANT_INSTALLPERMS_FALSE='#'
20762 else
20763   WANT_INSTALLPERMS_TRUE='#'
20764   WANT_INSTALLPERMS_FALSE=
20765 fi
20766
20767
20768
20769     # Check whether --enable-syntax-checks was given.
20770 if test "${enable_syntax_checks+set}" = set; then :
20771   enableval=$enable_syntax_checks;
20772             case "$enableval" in
20773                 no) SYNTAX_CHECKS=false;;
20774                 *)
20775                     SYNTAX_CHECKS=true
20776
20777     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&5
20778 $as_echo "$as_me: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&2;}
20779
20780
20781     cat <<AAW_EOF >>config.warnings
20782 --enable-syntax-checks can cause build failures and should only be used by developers
20783 AAW_EOF
20784
20785
20786                     ;;
20787             esac
20788
20789 else
20790
20791             SYNTAX_CHECKS=false
20792
20793 fi
20794
20795
20796      if $SYNTAX_CHECKS; then
20797   SYNTAX_CHECKS_TRUE=
20798   SYNTAX_CHECKS_FALSE='#'
20799 else
20800   SYNTAX_CHECKS_TRUE='#'
20801   SYNTAX_CHECKS_FALSE=
20802 fi
20803
20804
20805
20806
20807 #
20808 # Set up for Amanda components and modules
20809 #
20810
20811     WANT_SERVER=true
20812
20813 # Check whether --with-server was given.
20814 if test "${with_server+set}" = set; then :
20815   withval=$with_server;
20816             case "$withval" in
20817             y | ye | yes) WANT_SERVER=true;;
20818             n | no) WANT_SERVER=false;;
20819             *) as_fn_error $? "You must not supply an argument to the --without-server option." "$LINENO" 5 ;;
20820             esac
20821
20822 fi
20823
20824
20825
20826     WANT_CLIENT=true
20827
20828 # Check whether --with-client was given.
20829 if test "${with_client+set}" = set; then :
20830   withval=$with_client;
20831             case "$withval" in
20832             y | ye | yes) WANT_CLIENT=true;;
20833             n | no) WANT_CLIENT=false;;
20834             *) as_fn_error $? "You must not supply an argument to the --without-client option." "$LINENO" 5 ;;
20835             esac
20836
20837 fi
20838
20839
20840
20841
20842     WANT_RESTORE=${WANT_SERVER-true}
20843
20844 # Check whether --with-restore was given.
20845 if test "${with_restore+set}" = set; then :
20846   withval=$with_restore;
20847             case "$withval" in
20848             y | ye | yes) WANT_RESTORE=true;;
20849             n | no) WANT_RESTORE=false;;
20850             *) as_fn_error $? "You must not supply an argument to --with-restore option." "$LINENO" 5 ;;
20851             esac
20852
20853 fi
20854
20855
20856
20857
20858     WANT_RECOVER=${WANT_CLIENT-true}
20859
20860 # Check whether --with-amrecover was given.
20861 if test "${with_amrecover+set}" = set; then :
20862   withval=$with_amrecover;
20863             case "$withval" in
20864             y | ye | yes) WANT_RECOVER=true;;
20865             n | no) WANT_RECOVER=false;;
20866             *) as_fn_error $? "You must not supply an argument to --with-amrecover option." "$LINENO" 5 ;;
20867             esac
20868
20869 fi
20870
20871
20872
20873
20874 # Check whether --with-client-only was given.
20875 if test "${with_client_only+set}" = set; then :
20876   withval=$with_client_only;    as_fn_error $? "--with-client-only is deprecated, use --without-server instead." "$LINENO" 5
20877
20878 fi
20879
20880
20881
20882
20883 # Check whether --with-server-only was given.
20884 if test "${with_server_only+set}" = set; then :
20885   withval=$with_server_only;    as_fn_error $? "--with-server-only is deprecated, use --without-client instead." "$LINENO" 5
20886
20887 fi
20888
20889
20890
20891     WANT_NDMP=${WANT_NDMP-true}
20892
20893 # Check whether --with-ndmp was given.
20894 if test "${with_ndmp+set}" = set; then :
20895   withval=$with_ndmp;
20896             case "$withval" in
20897             y | ye | yes) WANT_NDMP=true;;
20898             n | no) WANT_NDMP=false;;
20899             *) as_fn_error $? "You must not supply an argument to --with-ndmp option." "$LINENO" 5 ;;
20900             esac
20901
20902 fi
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912     # detect invalid combinations of components
20913     if ! ${WANT_SERVER-true} && ${WANT_RESTORE-true}; then
20914         as_fn_error $? "--without-server requires --without-restore" "$LINENO" 5
20915     fi
20916     if ! ${WANT_CLIENT-true} && ${WANT_RECOVER-true}; then
20917         as_fn_error $? "--without-client requires --without-amrecover" "$LINENO" 5
20918     fi
20919
20920      if $WANT_CLIENT; then
20921   WANT_CLIENT_TRUE=
20922   WANT_CLIENT_FALSE='#'
20923 else
20924   WANT_CLIENT_TRUE='#'
20925   WANT_CLIENT_FALSE=
20926 fi
20927
20928      if $WANT_RESTORE; then
20929   WANT_RESTORE_TRUE=
20930   WANT_RESTORE_FALSE='#'
20931 else
20932   WANT_RESTORE_TRUE='#'
20933   WANT_RESTORE_FALSE=
20934 fi
20935
20936      if $WANT_SERVER; then
20937   WANT_SERVER_TRUE=
20938   WANT_SERVER_FALSE='#'
20939 else
20940   WANT_SERVER_TRUE='#'
20941   WANT_SERVER_FALSE=
20942 fi
20943
20944      if $WANT_RECOVER; then
20945   WANT_RECOVER_TRUE=
20946   WANT_RECOVER_FALSE='#'
20947 else
20948   WANT_RECOVER_TRUE='#'
20949   WANT_RECOVER_FALSE=
20950 fi
20951
20952      if $WANT_NDMP; then
20953   WANT_NDMP_TRUE=
20954   WANT_NDMP_FALSE='#'
20955 else
20956   WANT_NDMP_TRUE='#'
20957   WANT_NDMP_FALSE=
20958 fi
20959
20960
20961      if $WANT_SERVER || $WANT_RESTORE; then
20962   WANT_TAPE_TRUE=
20963   WANT_TAPE_FALSE='#'
20964 else
20965   WANT_TAPE_TRUE='#'
20966   WANT_TAPE_FALSE=
20967 fi
20968
20969
20970     # AMANDA_COMPONENTS goes to Amanda::Constants; missing_components is just for the
20971     # summary, below
20972     AMANDA_COMPONENTS=''
20973     missing_components=''
20974
20975     if $WANT_SERVER; then
20976         AMANDA_COMPONENTS="$AMANDA_COMPONENTS server";
20977     else
20978         missing_components="$missing_components (no server)";
20979     fi
20980     if $WANT_RESTORE; then
20981         AMANDA_COMPONENTS="$AMANDA_COMPONENTS restore";
20982     else
20983         missing_components="$missing_components (no restore)";
20984     fi
20985     if $WANT_CLIENT; then
20986         AMANDA_COMPONENTS="$AMANDA_COMPONENTS client";
20987     else
20988         missing_components="$missing_components (no client)";
20989     fi
20990     if $WANT_RECOVER; then
20991         AMANDA_COMPONENTS="$AMANDA_COMPONENTS amrecover";
20992     else
20993         missing_components="$missing_components (no amrecover)";
20994     fi
20995     if $WANT_NDMP; then
20996         AMANDA_COMPONENTS="$AMANDA_COMPONENTS ndmp";
20997     else
20998         missing_components="$missing_components (no ndmp)";
20999     fi
21000
21001
21002
21003
21004
21005
21006
21007 # Check whether --with-gnuplot was given.
21008 if test "${with_gnuplot+set}" = set; then :
21009   withval=$with_gnuplot;
21010             case "$withval" in
21011                 y | ye | yes) : ;;
21012                 n | no) GNUPLOT=no ;;
21013                 *) GNUPLOT="$withval" ;;
21014             esac
21015
21016 fi
21017
21018     if test "x$GNUPLOT" = "xno"; then
21019         GNUPLOT=
21020     else
21021         # Extract the first word of "gnuplot", so it can be a program name with args.
21022 set dummy gnuplot; ac_word=$2
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21024 $as_echo_n "checking for $ac_word... " >&6; }
21025 if ${ac_cv_path_GNUPLOT+:} false; then :
21026   $as_echo_n "(cached) " >&6
21027 else
21028   case $GNUPLOT in
21029   [\\/]* | ?:[\\/]*)
21030   ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
21031   ;;
21032   *)
21033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21034 for as_dir in $LOCSYSPATH
21035 do
21036   IFS=$as_save_IFS
21037   test -z "$as_dir" && as_dir=.
21038     for ac_exec_ext in '' $ac_executable_extensions; do
21039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21040     ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
21041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21042     break 2
21043   fi
21044 done
21045   done
21046 IFS=$as_save_IFS
21047
21048   ;;
21049 esac
21050 fi
21051 GNUPLOT=$ac_cv_path_GNUPLOT
21052 if test -n "$GNUPLOT"; then
21053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT" >&5
21054 $as_echo "$GNUPLOT" >&6; }
21055 else
21056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21057 $as_echo "no" >&6; }
21058 fi
21059
21060
21061     fi
21062
21063
21064
21065
21066
21067
21068     # Extract the first word of "pcat", so it can be a program name with args.
21069 set dummy pcat; ac_word=$2
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21071 $as_echo_n "checking for $ac_word... " >&6; }
21072 if ${ac_cv_path_PCAT+:} false; then :
21073   $as_echo_n "(cached) " >&6
21074 else
21075   case $PCAT in
21076   [\\/]* | ?:[\\/]*)
21077   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
21078   ;;
21079   *)
21080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21081 for as_dir in $LOCSYSPATH
21082 do
21083   IFS=$as_save_IFS
21084   test -z "$as_dir" && as_dir=.
21085     for ac_exec_ext in '' $ac_executable_extensions; do
21086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21087     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
21088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21089     break 2
21090   fi
21091 done
21092   done
21093 IFS=$as_save_IFS
21094
21095   ;;
21096 esac
21097 fi
21098 PCAT=$ac_cv_path_PCAT
21099 if test -n "$PCAT"; then
21100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAT" >&5
21101 $as_echo "$PCAT" >&6; }
21102 else
21103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21104 $as_echo "no" >&6; }
21105 fi
21106
21107
21108
21109
21110
21111     # Extract the first word of "compress", so it can be a program name with args.
21112 set dummy compress; ac_word=$2
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21114 $as_echo_n "checking for $ac_word... " >&6; }
21115 if ${ac_cv_path_COMPRESS+:} false; then :
21116   $as_echo_n "(cached) " >&6
21117 else
21118   case $COMPRESS in
21119   [\\/]* | ?:[\\/]*)
21120   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
21121   ;;
21122   *)
21123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21124 for as_dir in $LOCSYSPATH
21125 do
21126   IFS=$as_save_IFS
21127   test -z "$as_dir" && as_dir=.
21128     for ac_exec_ext in '' $ac_executable_extensions; do
21129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21130     ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
21131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21132     break 2
21133   fi
21134 done
21135   done
21136 IFS=$as_save_IFS
21137
21138   ;;
21139 esac
21140 fi
21141 COMPRESS=$ac_cv_path_COMPRESS
21142 if test -n "$COMPRESS"; then
21143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPRESS" >&5
21144 $as_echo "$COMPRESS" >&6; }
21145 else
21146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21147 $as_echo "no" >&6; }
21148 fi
21149
21150
21151
21152
21153
21154     # Extract the first word of "gzip", so it can be a program name with args.
21155 set dummy gzip; ac_word=$2
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21157 $as_echo_n "checking for $ac_word... " >&6; }
21158 if ${ac_cv_path_GZIP+:} false; then :
21159   $as_echo_n "(cached) " >&6
21160 else
21161   case $GZIP in
21162   [\\/]* | ?:[\\/]*)
21163   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
21164   ;;
21165   *)
21166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21167 for as_dir in $LOCSYSPATH
21168 do
21169   IFS=$as_save_IFS
21170   test -z "$as_dir" && as_dir=.
21171     for ac_exec_ext in '' $ac_executable_extensions; do
21172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21173     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
21174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21175     break 2
21176   fi
21177 done
21178   done
21179 IFS=$as_save_IFS
21180
21181   ;;
21182 esac
21183 fi
21184 GZIP=$ac_cv_path_GZIP
21185 if test -n "$GZIP"; then
21186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
21187 $as_echo "$GZIP" >&6; }
21188 else
21189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21190 $as_echo "no" >&6; }
21191 fi
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202     if test "x$GNUPLOT" != "x"; then
21203         WANT_AMPLOT=true
21204
21205         # variable substitutions for amcat.awk
21206         if test "$PCAT"; then
21207             AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
21208         else
21209             AMPLOT_CAT_PACK=
21210         fi
21211         if test "$COMPRESS"; then
21212             AMPLOT_COMPRESS=$COMPRESS
21213             AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
21214         else
21215             AMPLOT_CAT_COMPRESS=
21216         fi
21217         if test "$GZIP"; then
21218             AMPLOT_COMPRESS=$GZIP
21219             AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
21220         else
21221             AMPLOT_CAT_GZIP=
21222         fi
21223
21224
21225
21226
21227
21228     else
21229         WANT_AMPLOT=false
21230
21231     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building 'amplot', because gnuplot was not found" >&5
21232 $as_echo "$as_me: WARNING: Not building 'amplot', because gnuplot was not found" >&2;}
21233
21234
21235     cat <<AAW_EOF >>config.warnings
21236 Not building 'amplot', because gnuplot was not found
21237 AAW_EOF
21238
21239
21240     fi
21241
21242      if test x"$WANT_AMPLOT" = x"true"; then
21243   WANT_AMPLOT_TRUE=
21244   WANT_AMPLOT_FALSE='#'
21245 else
21246   WANT_AMPLOT_TRUE='#'
21247   WANT_AMPLOT_FALSE=
21248 fi
21249
21250
21251
21252     # Check whether --enable-manpage-build was given.
21253 if test "${enable_manpage_build+set}" = set; then :
21254   enableval=$enable_manpage_build;  ENABLE_MANPAGE_BUILD=$enableval
21255 else
21256    ENABLE_MANPAGE_BUILD=no
21257 fi
21258
21259
21260     # and ensure that everything docbook-related is OK if we'll be using it
21261     if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
21262         DOC_BUILD_DATE=`date '+%d-%m-%Y'`
21263
21264
21265 XSLTPROC_FLAGS="--nonet"
21266
21267
21268 # The (lack of) whitespace and overquoting here are all necessary for
21269 # proper formatting.
21270
21271 # Check whether --with-xsltproc was given.
21272 if test "${with_xsltproc+set}" = set; then :
21273   withval=$with_xsltproc;  ac_with_xsltproc=$withval;
21274 else
21275    ac_with_xsltproc=maybe;
21276 fi
21277
21278
21279
21280 # Check whether --with-xsltproc-flags was given.
21281 if test "${with_xsltproc_flags+set}" = set; then :
21282   withval=$with_xsltproc_flags;  if test "x$withval" == "xno"; then
21283         XSLTPROC_FLAGS=''
21284     else
21285         if test "x$withval" != "xyes"; then
21286             XSLTPROC_FLAGS="$withval"
21287         fi
21288     fi
21289
21290 fi
21291
21292
21293 # search for xsltproc if it wasn't specified
21294 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
21295     for ac_prog in xsltproc
21296 do
21297   # Extract the first word of "$ac_prog", so it can be a program name with args.
21298 set dummy $ac_prog; ac_word=$2
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21300 $as_echo_n "checking for $ac_word... " >&6; }
21301 if ${ac_cv_path_XSLTPROC+:} false; then :
21302   $as_echo_n "(cached) " >&6
21303 else
21304   case $XSLTPROC in
21305   [\\/]* | ?:[\\/]*)
21306   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
21307   ;;
21308   *)
21309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21310 for as_dir in $LOCSYSPATH
21311 do
21312   IFS=$as_save_IFS
21313   test -z "$as_dir" && as_dir=.
21314     for ac_exec_ext in '' $ac_executable_extensions; do
21315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21316     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
21317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21318     break 2
21319   fi
21320 done
21321   done
21322 IFS=$as_save_IFS
21323
21324   ;;
21325 esac
21326 fi
21327 XSLTPROC=$ac_cv_path_XSLTPROC
21328 if test -n "$XSLTPROC"; then
21329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
21330 $as_echo "$XSLTPROC" >&6; }
21331 else
21332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21333 $as_echo "no" >&6; }
21334 fi
21335
21336
21337   test -n "$XSLTPROC" && break
21338 done
21339
21340 else
21341     if test "$ac_with_xsltproc" != "no"; then
21342         if test -x "$ac_with_xsltproc"; then
21343             XSLTPROC="$ac_with_xsltproc";
21344         else
21345
21346     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&5
21347 $as_echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&2;}
21348
21349
21350     cat <<AAW_EOF >>config.warnings
21351 Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative.
21352 AAW_EOF
21353
21354
21355             for ac_prog in xsltproc
21356 do
21357   # Extract the first word of "$ac_prog", so it can be a program name with args.
21358 set dummy $ac_prog; ac_word=$2
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21360 $as_echo_n "checking for $ac_word... " >&6; }
21361 if ${ac_cv_path_XSLTPROC+:} false; then :
21362   $as_echo_n "(cached) " >&6
21363 else
21364   case $XSLTPROC in
21365   [\\/]* | ?:[\\/]*)
21366   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
21367   ;;
21368   *)
21369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21370 for as_dir in $LOCSYSPATH
21371 do
21372   IFS=$as_save_IFS
21373   test -z "$as_dir" && as_dir=.
21374     for ac_exec_ext in '' $ac_executable_extensions; do
21375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21376     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
21377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21378     break 2
21379   fi
21380 done
21381   done
21382 IFS=$as_save_IFS
21383
21384   ;;
21385 esac
21386 fi
21387 XSLTPROC=$ac_cv_path_XSLTPROC
21388 if test -n "$XSLTPROC"; then
21389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
21390 $as_echo "$XSLTPROC" >&6; }
21391 else
21392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21393 $as_echo "no" >&6; }
21394 fi
21395
21396
21397   test -n "$XSLTPROC" && break
21398 done
21399
21400         fi
21401     fi
21402 fi
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook XSLT version 1.72.0" >&5
21414 $as_echo_n "checking for Docbook XSLT version 1.72.0... " >&6; }
21415 if ${ac_cv_docbook_xslt_1_72_0+:} false; then :
21416   $as_echo_n "(cached) " >&6
21417 else
21418
21419         ac_cv_docbook_xslt_1_72_0=no
21420         if test -n "$XSLTPROC"; then
21421             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
21422             $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&5
21423
21424             if test "$?" = 0; then
21425                 ac_cv_docbook_xslt_1_72_0=yes
21426             fi
21427         fi
21428
21429 fi
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_xslt_1_72_0" >&5
21431 $as_echo "$ac_cv_docbook_xslt_1_72_0" >&6; }
21432
21433     HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
21434     HAVE_DOCBOOK_XSLT="$HAVE_DOCBOOK_XSLT_1_72_0"
21435
21436
21437
21438
21439
21440
21441
21442
21443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current Docbook XSLT version" >&5
21444 $as_echo_n "checking for current Docbook XSLT version... " >&6; }
21445 if ${ac_cv_docbook_xslt_current_version+:} false; then :
21446   $as_echo_n "(cached) " >&6
21447 else
21448
21449         ac_cv_docbook_xslt_current_version=no
21450
21451         if test -n "$XSLTPROC"; then
21452             cat >conftest.xsl <<EOF
21453                 <xsl:stylesheet
21454                     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
21455                     xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
21456                     version="1.0">
21457                     <xsl:output method="text"/>
21458                     <xsl:template match="fm:project/fm:Version">
21459                         <xsl:value-of select="." />
21460                     </xsl:template>
21461                     <!-- do nothing with any other text -->
21462                     <xsl:template match="text()"/>
21463                 </xsl:stylesheet>
21464 EOF
21465             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/VERSION' with input:" >&5
21466             echo "====" >&5
21467             cat conftest.xsl >&5
21468             echo "====" >&5
21469
21470             ac_cv_docbook_xslt_current_version=`$XSLTPROC $XSLTPROC_FLAGS conftest.xsl http://docbook.sourceforge.net/release/xsl/current/VERSION 2>&5`
21471
21472             if test "$?" != 0; then
21473                 ac_cv_docbook_xslt_current_version='no'
21474             fi
21475
21476             rm conftest.xsl
21477         fi
21478
21479 fi
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_xslt_current_version" >&5
21481 $as_echo "$ac_cv_docbook_xslt_current_version" >&6; }
21482
21483     DOCBOOK_XSLT_CURRENT_VERSION="$ac_cv_docbook_xslt_current_version"
21484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Docbook XSLT version is 1.72.0 or newer" >&5
21485 $as_echo_n "checking whether Docbook XSLT version is 1.72.0 or newer... " >&6; }
21486
21487     if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
21488         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21489 $as_echo "no" >&6; }
21490     else
21491
21492   # Used to indicate true or false condition
21493   ax_compare_version=false
21494
21495   # Convert the two version strings to be compared into a format that
21496   # allows a simple string comparison.  The end result is that a version
21497   # string of the form 1.12.5-r617 will be converted to the form
21498   # 0001001200050617.  In other words, each number is zero padded to four
21499   # digits, and non digits are removed.
21500
21501   ax_compare_version_A=`echo "$DOCBOOK_XSLT_CURRENT_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21502                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21503                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21504                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21505                      -e 's/[^0-9]//g'`
21506
21507
21508   ax_compare_version_B=`echo "1.72.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21509                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21510                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21511                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21512                      -e 's/[^0-9]//g'`
21513
21514
21515     ax_compare_version=`echo "x$ax_compare_version_A
21516 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
21517
21518
21519
21520     if test "$ax_compare_version" = "true" ; then
21521
21522             # version is less than required, so mark it as "no"
21523             DOCBOOK_XSLT_CURRENT_VERSION=no
21524
21525       fi
21526
21527
21528         if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
21529             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21530 $as_echo "no" >&6; }
21531         else
21532             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&5
21533 $as_echo "yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&6; }
21534         fi
21535     fi
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook DTD version 4.1.2" >&5
21547 $as_echo_n "checking for Docbook DTD version 4.1.2... " >&6; }
21548 if ${ac_cv_docbook_dtd_4_1_2+:} false; then :
21549   $as_echo_n "(cached) " >&6
21550 else
21551
21552         ac_cv_docbook_dtd_4_1_2=no
21553         if test -n "$XSLTPROC"; then
21554             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
21555             cat <<EOF >conftest.xml
21556 <?xml version="1.0" encoding='ISO-8859-1'?>
21557 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
21558 <book id="empty">
21559 </book>
21560 EOF
21561             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21562             echo "conftest.xml:" >&5
21563             echo "====" >&5
21564             cat conftest.xml >&5
21565             echo "====" >&5
21566
21567             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21568             if test "$?" = 0 -o "$?" = 5; then
21569                 # failing to load the DTD is just a warning, so check for it in the output.
21570                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21571                     : # no good..
21572                 else
21573                     ac_cv_docbook_dtd_4_1_2=yes
21574                 fi
21575             fi
21576             cat conftest.out >&5
21577
21578             rm -f conftest.xml conftest.out
21579         fi
21580
21581 fi
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_dtd_4_1_2" >&5
21583 $as_echo "$ac_cv_docbook_dtd_4_1_2" >&6; }
21584
21585     HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
21586     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_1_2"
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook DTD version 4.2" >&5
21602 $as_echo_n "checking for Docbook DTD version 4.2... " >&6; }
21603 if ${ac_cv_docbook_dtd_4_2+:} false; then :
21604   $as_echo_n "(cached) " >&6
21605 else
21606
21607         ac_cv_docbook_dtd_4_2=no
21608         if test -n "$XSLTPROC"; then
21609             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
21610             cat <<EOF >conftest.xml
21611 <?xml version="1.0" encoding='ISO-8859-1'?>
21612 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
21613 <book id="empty">
21614 </book>
21615 EOF
21616             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21617             echo "conftest.xml:" >&5
21618             echo "====" >&5
21619             cat conftest.xml >&5
21620             echo "====" >&5
21621
21622             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21623             if test "$?" = 0 -o "$?" = 5; then
21624                 # failing to load the DTD is just a warning, so check for it in the output.
21625                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21626                     : # no good..
21627                 else
21628                     ac_cv_docbook_dtd_4_2=yes
21629                 fi
21630             fi
21631             cat conftest.out >&5
21632
21633             rm -f conftest.xml conftest.out
21634         fi
21635
21636 fi
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_dtd_4_2" >&5
21638 $as_echo "$ac_cv_docbook_dtd_4_2" >&6; }
21639
21640     HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
21641     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_2"
21642
21643
21644
21645
21646
21647
21648         if test -z "$XSLTPROC"; then
21649             as_fn_error $? "Cannot build manpages: 'xsltproc' was not found." "$LINENO" 5
21650         fi
21651
21652         # if the 'current' Docbook revision is good enough, use that; otherwise,
21653         # if 1.72.0 is available, use that.
21654         XSLREL=current
21655         if test "x$DOCBOOK_XSLT_CURRENT_VERSION" = "xno"; then
21656             if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
21657                 as_fn_error $? "Cannot build manpages: docbook version 1.72.0 or higher required." "$LINENO" 5
21658             else
21659                 XSLREL=1.72.0
21660             fi
21661         fi
21662
21663         # disable validation if the correct DTDs are not available
21664         if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
21665
21666     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&5
21667 $as_echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
21668
21669
21670     cat <<AAW_EOF >>config.warnings
21671 Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation
21672 AAW_EOF
21673
21674
21675             XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
21676         fi
21677     fi
21678
21679      if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
21680   ENABLE_MANPAGE_BUILD_TRUE=
21681   ENABLE_MANPAGE_BUILD_FALSE='#'
21682 else
21683   ENABLE_MANPAGE_BUILD_TRUE='#'
21684   ENABLE_MANPAGE_BUILD_FALSE=
21685 fi
21686
21687
21688
21689
21690
21691     #allow configure CONFIG_CLOBBER_MY_CONFIG= to be used by make.
21692     CONFIG_CLOBBER_MY_CONFIG=$CLOBBER_MY_CONFIG
21693
21694
21695
21696 # Check whether --with-index-server was given.
21697 if test "${with_index_server+set}" = set; then :
21698   withval=$with_index_server;
21699             case "$withval" in
21700             "" | y | ye | yes | n | no)
21701                 as_fn_error $? "*** You must supply an argument to the --with-index-server option." "$LINENO" 5
21702               ;;
21703             *) DEFAULT_SERVER="$withval"
21704               ;;
21705             esac
21706
21707 else
21708   : ${DEFAULT_SERVER=`uname -n`}
21709
21710 fi
21711
21712
21713 cat >>confdefs.h <<_ACEOF
21714 #define DEFAULT_SERVER "$DEFAULT_SERVER"
21715 _ACEOF
21716
21717
21718
21719
21720 # Check whether --with-config was given.
21721 if test "${with_config+set}" = set; then :
21722   withval=$with_config;
21723             case "$withval" in
21724             "" | y | ye | yes | n | no)
21725                 as_fn_error $? "*** You must supply an argument to the --with-config option." "$LINENO" 5
21726               ;;
21727             *) DEFAULT_CONFIG="$withval"
21728               ;;
21729             esac
21730
21731 else
21732   : ${DEFAULT_CONFIG=DailySet1}
21733
21734 fi
21735
21736
21737 cat >>confdefs.h <<_ACEOF
21738 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
21739 _ACEOF
21740
21741
21742
21743
21744 # Check whether --with-tape-server was given.
21745 if test "${with_tape_server+set}" = set; then :
21746   withval=$with_tape_server;
21747             case "$withval" in
21748             "" | y | ye | yes | n | no)
21749                 as_fn_error $? "*** You must supply an argument to the --with-tape-server option." "$LINENO" 5
21750               ;;
21751             *) DEFAULT_TAPE_SERVER="$withval"
21752               ;;
21753             esac
21754
21755 else
21756   : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
21757
21758 fi
21759
21760
21761 cat >>confdefs.h <<_ACEOF
21762 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
21763 _ACEOF
21764
21765
21766
21767
21768 # Check whether --with-tape-device was given.
21769 if test "${with_tape_device+set}" = set; then :
21770   withval=$with_tape_device;
21771             case "$withval" in
21772             "" | y | ye | yes | n | no)
21773                 as_fn_error $? "*** You must supply an argument to the --with-tape-device option." "$LINENO" 5
21774               ;;
21775             *) DEFAULT_TAPE_DEVICE="$withval"
21776               ;;
21777             esac
21778
21779
21780 fi
21781
21782
21783
21784 cat >>confdefs.h <<_ACEOF
21785 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
21786 _ACEOF
21787
21788
21789
21790     if test "${DEFAULT_TAPE_DEVICE+set}" = "set"; then
21791         EXAMPLE_TAPEDEV="$DEFAULT_TAPE_DEVICE"
21792     else
21793         EXAMPLE_TAPEDEV="tape:/dev/YOUR-TAPE-DEVICE-HERE"
21794     fi
21795
21796
21797
21798 # Check whether --with-changer-device was given.
21799 if test "${with_changer_device+set}" = set; then :
21800   withval=$with_changer_device;
21801
21802     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-changer-device is no longer used." >&5
21803 $as_echo "$as_me: WARNING: --with-changer-device is no longer used." >&2;}
21804
21805
21806     cat <<AAW_EOF >>config.warnings
21807 --with-changer-device is no longer used.
21808 AAW_EOF
21809
21810
21811
21812
21813 fi
21814
21815
21816
21817 # Check whether --with-amandates was given.
21818 if test "${with_amandates+set}" = set; then :
21819   withval=$with_amandates;
21820             case "$withval" in
21821                 n | no) as_fn_error $? "*** --without-amandates is not allowed." "$LINENO" 5;;
21822                 y |  ye | yes) amandates='$localstatedir/amanda/amandates' ;;
21823                 *) amandates="$withval";;
21824             esac
21825
21826 else
21827   amandates='$localstatedir/amanda/amandates'
21828
21829 fi
21830
21831
21832
21833   prefix_NONE=
21834   exec_prefix_NONE=
21835   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21836   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21837   eval ac_define_dir="\"$amandates\""
21838   eval ac_define_dir="\"$ac_define_dir\""
21839   DEFAULT_AMANDATES_FILE="$ac_define_dir"
21840
21841
21842 cat >>confdefs.h <<_ACEOF
21843 #define DEFAULT_AMANDATES_FILE "$ac_define_dir"
21844 _ACEOF
21845
21846   test "$prefix_NONE" && prefix=NONE
21847   test "$exec_prefix_NONE" && exec_prefix=NONE
21848
21849
21850     DEFAULT_FSF_AFTER_FILEMARK="FALSE"
21851     case "$host" in
21852         *-solaris*) DEFAULT_FSF_AFTER_FILEMARK="TRUE"
21853                     ;;
21854     esac
21855
21856 cat >>confdefs.h <<_ACEOF
21857 #define DEFAULT_FSF_AFTER_FILEMARK $DEFAULT_FSF_AFTER_FILEMARK
21858 _ACEOF
21859
21860
21861
21862
21863     # Extract the first word of "getconf", so it can be a program name with args.
21864 set dummy getconf; ac_word=$2
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21866 $as_echo_n "checking for $ac_word... " >&6; }
21867 if ${ac_cv_path_GETCONF+:} false; then :
21868   $as_echo_n "(cached) " >&6
21869 else
21870   case $GETCONF in
21871   [\\/]* | ?:[\\/]*)
21872   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
21873   ;;
21874   *)
21875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21876 for as_dir in $SYSPATH
21877 do
21878   IFS=$as_save_IFS
21879   test -z "$as_dir" && as_dir=.
21880     for ac_exec_ext in '' $ac_executable_extensions; do
21881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21882     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
21883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21884     break 2
21885   fi
21886 done
21887   done
21888 IFS=$as_save_IFS
21889
21890   ;;
21891 esac
21892 fi
21893 GETCONF=$ac_cv_path_GETCONF
21894 if test -n "$GETCONF"; then
21895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
21896 $as_echo "$GETCONF" >&6; }
21897 else
21898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21899 $as_echo "no" >&6; }
21900 fi
21901
21902
21903
21904
21905
21906
21907
21908     # we use 'getconf', if it exists, to get the relevant
21909     # compiler flags.
21910     GETCONF_LFS="LFS"
21911     case "$host" in
21912         *-hp-*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21913         *-ibm-aix*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21914     esac
21915
21916     # Checks for compilers, typedefs, structures, and compiler characteristics.
21917     # Check for large file compilation environment.
21918     NEED_RESETOFS=yes
21919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation CFLAGS" >&5
21920 $as_echo_n "checking for large file compilation CFLAGS... " >&6; }
21921 if ${amanda_cv_LFS_CFLAGS+:} false; then :
21922   $as_echo_n "(cached) " >&6
21923 else
21924
21925         amanda_cv_LFS_CFLAGS=
21926         if test "$GETCONF"; then
21927             if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
21928                 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
21929                 NEED_RESETOFS=no
21930             fi
21931         fi
21932
21933
21934 fi
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_CFLAGS" >&5
21936 $as_echo "$amanda_cv_LFS_CFLAGS" >&6; }
21937     CFLAGS="$CFLAGS $amanda_cv_LFS_CFLAGS"
21938
21939
21940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation LDFLAGS" >&5
21941 $as_echo_n "checking for large file compilation LDFLAGS... " >&6; }
21942 if ${amanda_cv_LFS_LDFLAGS+:} false; then :
21943   $as_echo_n "(cached) " >&6
21944 else
21945
21946         amanda_cv_LFS_LDFLAGS=
21947         if test "$GETCONF"; then
21948             if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
21949                 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
21950                 NEED_RESETOFS=no
21951             fi
21952         fi
21953
21954
21955 fi
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_LDFLAGS" >&5
21957 $as_echo "$amanda_cv_LFS_LDFLAGS" >&6; }
21958     LDFLAGS="$LDFLAGS $amanda_cv_LFS_LDFLAGS"
21959
21960
21961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation LIBS" >&5
21962 $as_echo_n "checking for large file compilation LIBS... " >&6; }
21963 if ${amanda_cv_LFS_LIBS+:} false; then :
21964   $as_echo_n "(cached) " >&6
21965 else
21966
21967         amanda_cv_LFS_LIBS=
21968         if test "$GETCONF"; then
21969             if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
21970                 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
21971                 NEED_RESETOFS=no
21972             fi
21973         fi
21974
21975
21976 fi
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_LIBS" >&5
21978 $as_echo "$amanda_cv_LFS_LIBS" >&6; }
21979     LIBS="$amanda_cv_LFS_LIBS $LIBS"
21980
21981
21982     if test x"$NEED_RESETOFS" = x"yes"; then
21983
21984 $as_echo "#define NEED_RESETOFS 1" >>confdefs.h
21985
21986     fi
21987
21988
21989     for ac_header in fstab.h \
21990         mntent.h \
21991         mnttab.h \
21992         sys/vfstab.h \
21993
21994 do :
21995   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21996 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21997 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21998   cat >>confdefs.h <<_ACEOF
21999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22000 _ACEOF
22001
22002 fi
22003
22004 done
22005
22006
22007     for ac_func in endmntent
22008 do :
22009   ac_fn_c_check_func "$LINENO" "endmntent" "ac_cv_func_endmntent"
22010 if test "x$ac_cv_func_endmntent" = xyes; then :
22011   cat >>confdefs.h <<_ACEOF
22012 #define HAVE_ENDMNTENT 1
22013 _ACEOF
22014
22015 fi
22016 done
22017
22018     for ac_func in setmntent
22019 do :
22020   ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
22021 if test "x$ac_cv_func_setmntent" = xyes; then :
22022   cat >>confdefs.h <<_ACEOF
22023 #define HAVE_SETMNTENT 1
22024 _ACEOF
22025
22026 fi
22027 done
22028
22029
22030
22031     for ac_header in fcntl.h \
22032         sys/fcntl.h \
22033         sys/types.h \
22034         sys/file.h \
22035         unistd.h \
22036
22037 do :
22038   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22039 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22040 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22041   cat >>confdefs.h <<_ACEOF
22042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22043 _ACEOF
22044
22045 fi
22046
22047 done
22048
22049
22050     # find a working file-locking mechanism.
22051     # Note: these all use AC_TRY_LINK to make sure that we can compile
22052     # and link each variant.  They do not try to test the variants --
22053     # that is left to runtime.
22054     LOCKING="no"
22055
22056     # check POSIX locking
22057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX locking (with fcntl(2)) is available" >&5
22058 $as_echo_n "checking whether POSIX locking (with fcntl(2)) is available... " >&6; }
22059 if ${amanda_cv_posix_filelocking+:} false; then :
22060   $as_echo_n "(cached) " >&6
22061 else
22062
22063             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22064 /* end confdefs.h.  */
22065
22066 #if HAVE_SYS_TYPES_H
22067 # include <sys/types.h>
22068 #endif
22069 #if HAVE_UNISTD_H
22070 # include <unistd.h>
22071 #endif
22072 #if HAVE_FCNTL_H
22073 # include <fcntl.h>
22074 #endif
22075
22076 int
22077 main ()
22078 {
22079
22080             struct flock lock;
22081
22082             lock.l_type = F_RDLCK;
22083             lock.l_start = 0;
22084             lock.l_whence = SEEK_CUR;
22085             lock.l_len = 0;
22086             return fcntl(1, F_SETLK, &lock);
22087
22088   ;
22089   return 0;
22090 }
22091 _ACEOF
22092 if ac_fn_c_try_link "$LINENO"; then :
22093
22094         amanda_cv_posix_filelocking="yes"
22095
22096 else
22097
22098         amanda_cv_posix_filelocking="no"
22099
22100 fi
22101 rm -f core conftest.err conftest.$ac_objext \
22102     conftest$ac_exeext conftest.$ac_ext
22103
22104 fi
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_posix_filelocking" >&5
22106 $as_echo "$amanda_cv_posix_filelocking" >&6; }
22107     if test "x$amanda_cv_posix_filelocking" = xyes; then
22108
22109 $as_echo "#define WANT_AMFLOCK_POSIX 1" >>confdefs.h
22110
22111         WANT_AMFLOCK_POSIX="yes"
22112         LOCKING="POSIX_FCNTL"
22113     fi
22114      if test x"$WANT_AMFLOCK_POSIX" = x"yes"; then
22115   WANT_AMFLOCK_POSIX_TRUE=
22116   WANT_AMFLOCK_POSIX_FALSE='#'
22117 else
22118   WANT_AMFLOCK_POSIX_TRUE='#'
22119   WANT_AMFLOCK_POSIX_FALSE=
22120 fi
22121
22122
22123     # check flock-based (BSD) locking
22124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flock locking is available" >&5
22125 $as_echo_n "checking whether flock locking is available... " >&6; }
22126 if ${amanda_cv_flock_filelocking+:} false; then :
22127   $as_echo_n "(cached) " >&6
22128 else
22129
22130             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22131 /* end confdefs.h.  */
22132
22133 #if HAVE_SYS_FILE_H
22134 # include <sys/file.h>
22135 #endif
22136
22137 int
22138 main ()
22139 {
22140
22141             return flock(1, LOCK_SH);
22142
22143   ;
22144   return 0;
22145 }
22146 _ACEOF
22147 if ac_fn_c_try_link "$LINENO"; then :
22148
22149         amanda_cv_flock_filelocking="yes"
22150
22151 else
22152
22153         amanda_cv_flock_filelocking="no"
22154
22155 fi
22156 rm -f core conftest.err conftest.$ac_objext \
22157     conftest$ac_exeext conftest.$ac_ext
22158
22159 fi
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_flock_filelocking" >&5
22161 $as_echo "$amanda_cv_flock_filelocking" >&6; }
22162     if test "x$amanda_cv_flock_filelocking" = xyes; then
22163
22164 $as_echo "#define WANT_AMFLOCK_FLOCK 1" >>confdefs.h
22165
22166         WANT_AMFLOCK_FLOCK="yes"
22167         LOCKING="FLOCK"
22168     fi
22169      if test x"$WANT_AMFLOCK_FLOCK" = x"yes"; then
22170   WANT_AMFLOCK_FLOCK_TRUE=
22171   WANT_AMFLOCK_FLOCK_FALSE='#'
22172 else
22173   WANT_AMFLOCK_FLOCK_TRUE='#'
22174   WANT_AMFLOCK_FLOCK_FALSE=
22175 fi
22176
22177
22178     # check lockf-based (SVR2, SVR3, SVR4) locking
22179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lockf(3) locking is available" >&5
22180 $as_echo_n "checking whether lockf(3) locking is available... " >&6; }
22181 if ${amanda_cv_lockf_filelocking+:} false; then :
22182   $as_echo_n "(cached) " >&6
22183 else
22184
22185             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22186 /* end confdefs.h.  */
22187
22188 #if HAVE_UNISTD_H
22189 # include <unistd.h>
22190 #endif
22191
22192 int
22193 main ()
22194 {
22195
22196             return lockf(1, F_LOCK, 0);
22197
22198   ;
22199   return 0;
22200 }
22201 _ACEOF
22202 if ac_fn_c_try_link "$LINENO"; then :
22203
22204         amanda_cv_lockf_filelocking="yes"
22205
22206 else
22207
22208         amanda_cv_lockf_filelocking="no"
22209
22210 fi
22211 rm -f core conftest.err conftest.$ac_objext \
22212     conftest$ac_exeext conftest.$ac_ext
22213
22214 fi
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_lockf_filelocking" >&5
22216 $as_echo "$amanda_cv_lockf_filelocking" >&6; }
22217     if test "x$amanda_cv_lockf_filelocking" = xyes; then
22218
22219 $as_echo "#define WANT_AMFLOCK_LOCKF 1" >>confdefs.h
22220
22221         WANT_AMFLOCK_LOCKF="yes"
22222         LOCKING="LOCKF"
22223     fi
22224      if test x"$WANT_AMFLOCK_LOCKF" = x"yes"; then
22225   WANT_AMFLOCK_LOCKF_TRUE=
22226   WANT_AMFLOCK_LOCKF_FALSE='#'
22227 else
22228   WANT_AMFLOCK_LOCKF_TRUE='#'
22229   WANT_AMFLOCK_LOCKF_FALSE=
22230 fi
22231
22232
22233     # check our homebrew hardlink-based locking (requires hardlinks)
22234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link(2) is available for locking" >&5
22235 $as_echo_n "checking whether link(2) is available for locking... " >&6; }
22236 if ${amanda_cv_lnlock_filelocking+:} false; then :
22237   $as_echo_n "(cached) " >&6
22238 else
22239
22240             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22241 /* end confdefs.h.  */
22242
22243 #if HAVE_UNISTD_H
22244 # include <unistd.h>
22245 #endif
22246
22247 int
22248 main ()
22249 {
22250
22251             return link("/tmp/foo", "/tmp/bar");
22252
22253   ;
22254   return 0;
22255 }
22256 _ACEOF
22257 if ac_fn_c_try_link "$LINENO"; then :
22258
22259         amanda_cv_lnlock_filelocking="yes"
22260
22261 else
22262
22263         amanda_cv_lnlock_filelocking="no"
22264
22265 fi
22266 rm -f core conftest.err conftest.$ac_objext \
22267     conftest$ac_exeext conftest.$ac_ext
22268
22269 fi
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_lnlock_filelocking" >&5
22271 $as_echo "$amanda_cv_lnlock_filelocking" >&6; }
22272     if test "x$amanda_cv_lnlock_filelocking" = xyes; then
22273
22274 $as_echo "#define WANT_AMFLOCK_LNLOCK 1" >>confdefs.h
22275
22276         WANT_AMFLOCK_LNLOCK="yes"
22277         LOCKING="LNLOCK"
22278     fi
22279      if test x"$WANT_AMFLOCK_LNLOCK" = x"yes"; then
22280   WANT_AMFLOCK_LNLOCK_TRUE=
22281   WANT_AMFLOCK_LNLOCK_FALSE='#'
22282 else
22283   WANT_AMFLOCK_LNLOCK_TRUE='#'
22284   WANT_AMFLOCK_LNLOCK_FALSE=
22285 fi
22286
22287
22288     if test x"$LOCKING" = "no"; then
22289         # this shouldn't happen, and is *bad* if it does
22290         as_fn_error $? "*** No working file locking capability found!" "$LINENO" 5
22291     fi
22292
22293
22294
22295
22296
22297     for ac_prog in swig
22298 do
22299   # Extract the first word of "$ac_prog", so it can be a program name with args.
22300 set dummy $ac_prog; ac_word=$2
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22302 $as_echo_n "checking for $ac_word... " >&6; }
22303 if ${ac_cv_path_SWIG+:} false; then :
22304   $as_echo_n "(cached) " >&6
22305 else
22306   case $SWIG in
22307   [\\/]* | ?:[\\/]*)
22308   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22309   ;;
22310   *)
22311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22312 for as_dir in $LOCSYSPATH
22313 do
22314   IFS=$as_save_IFS
22315   test -z "$as_dir" && as_dir=.
22316     for ac_exec_ext in '' $ac_executable_extensions; do
22317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22318     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22320     break 2
22321   fi
22322 done
22323   done
22324 IFS=$as_save_IFS
22325
22326   ;;
22327 esac
22328 fi
22329 SWIG=$ac_cv_path_SWIG
22330 if test -n "$SWIG"; then
22331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
22332 $as_echo "$SWIG" >&6; }
22333 else
22334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22335 $as_echo "no" >&6; }
22336 fi
22337
22338
22339   test -n "$SWIG" && break
22340 done
22341
22342
22343     # 1.3.32 introduces a change in the way empty strings are handled (old versions
22344     # returned undef in Perl, while new versions return an empty Perl string)
22345     # 1.3.39 is required for the %begin block
22346
22347         # Extract the first word of "swig", so it can be a program name with args.
22348 set dummy swig; ac_word=$2
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22350 $as_echo_n "checking for $ac_word... " >&6; }
22351 if ${ac_cv_path_SWIG+:} false; then :
22352   $as_echo_n "(cached) " >&6
22353 else
22354   case $SWIG in
22355   [\\/]* | ?:[\\/]*)
22356   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22357   ;;
22358   *)
22359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22360 for as_dir in $PATH
22361 do
22362   IFS=$as_save_IFS
22363   test -z "$as_dir" && as_dir=.
22364     for ac_exec_ext in '' $ac_executable_extensions; do
22365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22366     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22368     break 2
22369   fi
22370 done
22371   done
22372 IFS=$as_save_IFS
22373
22374   ;;
22375 esac
22376 fi
22377 SWIG=$ac_cv_path_SWIG
22378 if test -n "$SWIG"; then
22379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
22380 $as_echo "$SWIG" >&6; }
22381 else
22382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22383 $as_echo "no" >&6; }
22384 fi
22385
22386
22387         if test -z "$SWIG" ; then
22388                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
22389         elif test -n "1.3.39" ; then
22390                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
22391 $as_echo_n "checking for SWIG version... " >&6; }
22392                 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
22393                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
22394 $as_echo "$swig_version" >&6; }
22395                 if test -n "$swig_version" ; then
22396
22397   # Used to indicate true or false condition
22398   ax_compare_version=false
22399
22400   # Convert the two version strings to be compared into a format that
22401   # allows a simple string comparison.  The end result is that a version
22402   # string of the form 1.12.5-r617 will be converted to the form
22403   # 0001001200050617.  In other words, each number is zero padded to four
22404   # digits, and non digits are removed.
22405
22406   ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22407                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22408                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22409                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22410                      -e 's/[^0-9]//g'`
22411
22412
22413   ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22414                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22415                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22416                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22417                      -e 's/[^0-9]//g'`
22418
22419
22420     ax_compare_version=`echo "x$ax_compare_version_A
22421 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
22422
22423
22424
22425     if test "$ax_compare_version" = "true" ; then
22426
22427                                                     SWIG_LIB=`$SWIG -swiglib`
22428
22429     else
22430                                                     SWIG='echo "Error: SWIG version >= 1.3.39 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
22431
22432   fi
22433
22434                 else
22435                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
22436                 fi
22437         fi
22438
22439
22440
22441
22442
22443     for ac_prog in perl5 perl
22444 do
22445   # Extract the first word of "$ac_prog", so it can be a program name with args.
22446 set dummy $ac_prog; ac_word=$2
22447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22448 $as_echo_n "checking for $ac_word... " >&6; }
22449 if ${ac_cv_path_PERL+:} false; then :
22450   $as_echo_n "(cached) " >&6
22451 else
22452   case $PERL in
22453   [\\/]* | ?:[\\/]*)
22454   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22455   ;;
22456   *)
22457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22458 for as_dir in $LOCSYSPATH
22459 do
22460   IFS=$as_save_IFS
22461   test -z "$as_dir" && as_dir=.
22462     for ac_exec_ext in '' $ac_executable_extensions; do
22463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22464     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22466     break 2
22467   fi
22468 done
22469   done
22470 IFS=$as_save_IFS
22471
22472   ;;
22473 esac
22474 fi
22475 PERL=$ac_cv_path_PERL
22476 if test -n "$PERL"; then
22477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22478 $as_echo "$PERL" >&6; }
22479 else
22480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22481 $as_echo "no" >&6; }
22482 fi
22483
22484
22485   test -n "$PERL" && break
22486 done
22487
22488
22489     # Make sure we have perl
22490 if test -z "$PERL"; then
22491 # Extract the first word of "perl", so it can be a program name with args.
22492 set dummy perl; ac_word=$2
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22494 $as_echo_n "checking for $ac_word... " >&6; }
22495 if ${ac_cv_prog_PERL+:} false; then :
22496   $as_echo_n "(cached) " >&6
22497 else
22498   if test -n "$PERL"; then
22499   ac_cv_prog_PERL="$PERL" # Let the user override the test.
22500 else
22501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22502 for as_dir in $PATH
22503 do
22504   IFS=$as_save_IFS
22505   test -z "$as_dir" && as_dir=.
22506     for ac_exec_ext in '' $ac_executable_extensions; do
22507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22508     ac_cv_prog_PERL="perl"
22509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22510     break 2
22511   fi
22512 done
22513   done
22514 IFS=$as_save_IFS
22515
22516 fi
22517 fi
22518 PERL=$ac_cv_prog_PERL
22519 if test -n "$PERL"; then
22520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22521 $as_echo "$PERL" >&6; }
22522 else
22523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22524 $as_echo "no" >&6; }
22525 fi
22526
22527
22528 fi
22529
22530 # Check if version of Perl is sufficient
22531 ac_perl_version="5.6.0"
22532
22533 if test "x$PERL" != "x"; then
22534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
22535 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
22536   # NB: It would be nice to log the error if there is one, but we cannot rely
22537   # on autoconf internals
22538   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
22539   if test $? -ne 0; then
22540     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22541 $as_echo "no" >&6; };
22542
22543         as_fn_error $? "Amanda requires at least perl 5.6.0" "$LINENO" 5
22544
22545   else
22546     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
22547 $as_echo "ok" >&6; };
22548
22549   fi
22550 else
22551   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
22552 $as_echo "$as_me: WARNING: could not find perl" >&2;}
22553 fi
22554
22555
22556
22557
22558
22559
22560     WANT_CYGWIN_COPY_PERL_DLL=false
22561     WANT_MANDATORY_THREAD_CHECK=false
22562
22563     # test for ExtUtils::Embed
22564     ac_perl_list_modules="ExtUtils::Embed 0.0"
22565 # Make sure we have perl
22566 if test -z "$PERL"; then
22567 # Extract the first word of "perl", so it can be a program name with args.
22568 set dummy perl; ac_word=$2
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22570 $as_echo_n "checking for $ac_word... " >&6; }
22571 if ${ac_cv_prog_PERL+:} false; then :
22572   $as_echo_n "(cached) " >&6
22573 else
22574   if test -n "$PERL"; then
22575   ac_cv_prog_PERL="$PERL" # Let the user override the test.
22576 else
22577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22578 for as_dir in $PATH
22579 do
22580   IFS=$as_save_IFS
22581   test -z "$as_dir" && as_dir=.
22582     for ac_exec_ext in '' $ac_executable_extensions; do
22583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22584     ac_cv_prog_PERL="perl"
22585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22586     break 2
22587   fi
22588 done
22589   done
22590 IFS=$as_save_IFS
22591
22592 fi
22593 fi
22594 PERL=$ac_cv_prog_PERL
22595 if test -n "$PERL"; then
22596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22597 $as_echo "$PERL" >&6; }
22598 else
22599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22600 $as_echo "no" >&6; }
22601 fi
22602
22603
22604 fi
22605
22606 # Check the number of arguments
22607 args_num=`echo $ac_perl_list_modules | wc -w`
22608 let "ckeck_args = $args_num % 2"
22609 if test "$check_args" = "1" ; then
22610   as_fn_error $? "syntax error" "$LINENO" 5
22611 else
22612   eval
22613 fi
22614
22615 if test "x$PERL" != x; then
22616   ac_failed=0
22617   while test ${#ac_perl_list_modules} -gt 2 ; do
22618         module_name=`echo $ac_perl_list_modules | cut -d " " -f 1`
22619         module_version=`echo $ac_perl_list_modules | cut -d " " -f 2`
22620         ac_perl_list_modules=`echo $ac_perl_list_modules | cut -d " " -f 3-`
22621         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $module_name version $module_version" >&5
22622 $as_echo_n "checking for perl module $module_name version $module_version... " >&6; }
22623
22624         $PERL "-M$module_name" -e exit > /dev/null 2>&1
22625         if test $? -ne 0; then
22626           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22627 $as_echo "no" >&6; };
22628           ac_failed=1
22629           ac_perl_list_modules=""
22630         else
22631           version=`$PERL "-M$module_name" -e 'print $'"$module_name::VERSION" 2>&1`
22632           $PERL -e 'exit(shift cmp shift)' "$version" "$module_version"
22633           if test $? -eq 0 -o $? -eq 1 ; then
22634             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
22635 $as_echo "ok" >&6; };
22636           else
22637             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22638 $as_echo "no" >&6; }
22639             ac_failed=1
22640             ac_perl_list_modules=""
22641           fi
22642         fi;
22643   done
22644
22645   if test "$ac_failed" = 0; then
22646     :
22647
22648   else
22649     :
22650
22651         as_fn_error $? "*** Amanda requires the perl package ExtUtils::Embed to build its perl modules" "$LINENO" 5
22652
22653   fi
22654 else
22655   as_fn_error $? "could not find perl" "$LINENO" 5
22656 fi
22657
22658     # get the include path for building perl extensions
22659     PERL_INC=`$PERL -MExtUtils::Embed -e perl_inc`
22660
22661
22662     if test x"$enable_shared" = x"no"; then
22663         as_fn_error $? "*** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" "$LINENO" 5
22664     fi
22665
22666     case "$host" in
22667         *freebsd[123456].*) # up to and including FreeBSD 6.*
22668             # Before 7.0, FreeBSD systems don't include a DT_NEEDS segment in
22669             # libgthread to automatically pull in the desired threading library.
22670             # Instead, they assume that any application linking against
22671             # libgthread will pull in the threading library.  This is fine for
22672             # Amanda C applications, but for Perl applications this assumption
22673             # means that the perl binary would pull in the threading library.
22674             # But perl is compiled without threading by default.
22675             #
22676             # Specifically, this occurs on any FreeBSD using gcc-3.*: the linking
22677             # decision is made in gcc's spec files, which were changed in
22678             # gcc-4.0.  For a more in-depth discussion, see
22679             #  http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_FreeBSD
22680             #
22681             # The easiest solution for the "default" case is to link all perl
22682             # extension libraries against the threading library, so it is loaded
22683             # when perl loads the extension library.  The default threading
22684             # library in FreeBSD is libpthread.  The below default will work on
22685             # such a FreeBSD system, but ports maintainers and those with
22686             # different configurations may need to override this value with
22687             # --with-perlextlibs.
22688             #
22689             # We can't use -pthread because gcc on FreeBSD ignores -pthread in
22690             # combination with -shared.  See
22691             #   http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026229.html
22692
22693             PERLEXTLIBS="-lpthread"
22694             WANT_MANDATORY_THREAD_CHECK=true
22695             ;;
22696
22697         *freebsd*) # all FreeBSD not matched above
22698             # for all FreeBSD (including 1.0-6.0, above), we want to run the
22699             # thread-check rule in perl/Makefile.am to double-check that a Perl
22700             # script can call a C extension that uses threads.
22701             WANT_MANDATORY_THREAD_CHECK=true
22702             ;;
22703
22704         *-pc-cygwin)
22705             # When need -lperl and the '-L' where it is located,
22706             # we don't want the DynaLoader.a
22707             PERLEXTLIBS=`perl -MExtUtils::Embed -e ldopts | sed -e 's/^.*-L/-L/'`
22708             # we want cygwin to copy ddl to modules directory.
22709             WANT_CYGWIN_COPY_PERL_DLL="true";
22710             ;;
22711     esac
22712      if $WANT_CYGWIN_COPY_PERL_DLL; then
22713   WANT_CYGWIN_COPY_PERL_DLL_TRUE=
22714   WANT_CYGWIN_COPY_PERL_DLL_FALSE='#'
22715 else
22716   WANT_CYGWIN_COPY_PERL_DLL_TRUE='#'
22717   WANT_CYGWIN_COPY_PERL_DLL_FALSE=
22718 fi
22719
22720      if $WANT_MANDATORY_THREAD_CHECK; then
22721   WANT_MANDATORY_THREAD_CHECK_TRUE=
22722   WANT_MANDATORY_THREAD_CHECK_FALSE='#'
22723 else
22724   WANT_MANDATORY_THREAD_CHECK_TRUE='#'
22725   WANT_MANDATORY_THREAD_CHECK_FALSE=
22726 fi
22727
22728
22729
22730 # Check whether --with-perlextlibs was given.
22731 if test "${with_perlextlibs+set}" = set; then :
22732   withval=$with_perlextlibs;
22733             case "$withval" in
22734                 y|ye|yes) as_fn_error $? "*** You must specify a value for --with-perlextlibs" "$LINENO" 5;;
22735                 n|no) PERLEXTLIBS='';;
22736                 *) PERLEXTLIBS="$withval" ;;
22737             esac
22738
22739 fi
22740
22741
22742
22743
22744
22745     # Extract the first word of "cat", so it can be a program name with args.
22746 set dummy cat; ac_word=$2
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22748 $as_echo_n "checking for $ac_word... " >&6; }
22749 if ${ac_cv_path_CAT+:} false; then :
22750   $as_echo_n "(cached) " >&6
22751 else
22752   case $CAT in
22753   [\\/]* | ?:[\\/]*)
22754   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
22755   ;;
22756   *)
22757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22758 for as_dir in $LOCSYSPATH
22759 do
22760   IFS=$as_save_IFS
22761   test -z "$as_dir" && as_dir=.
22762     for ac_exec_ext in '' $ac_executable_extensions; do
22763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22764     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
22765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22766     break 2
22767   fi
22768 done
22769   done
22770 IFS=$as_save_IFS
22771
22772   test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="cat"
22773   ;;
22774 esac
22775 fi
22776 CAT=$ac_cv_path_CAT
22777 if test -n "$CAT"; then
22778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
22779 $as_echo "$CAT" >&6; }
22780 else
22781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22782 $as_echo "no" >&6; }
22783 fi
22784
22785
22786
22787
22788
22789
22790
22791
22792     HAVE_GZIP=
22793     if test "$GZIP"; then
22794
22795 $as_echo "#define HAVE_GZIP 1" >>confdefs.h
22796
22797         HAVE_GZIP=1
22798         COMPRESS_PATH="$GZIP"
22799         COMPRESS_SUFFIX=".gz"
22800         COMPRESS_FAST_OPT="--fast"
22801         COMPRESS_BEST_OPT="--best"
22802         UNCOMPRESS_PATH="$GZIP"
22803         UNCOMPRESS_OPT="-dc"
22804     else
22805         if test "$COMPRESS"; then
22806             COMPRESS_PATH="$COMPRESS"
22807             COMPRESS_SUFFIX=".Z"
22808             COMPRESS_FAST_OPT="-f"
22809             COMPRESS_BEST_OPT="-f"
22810             UNCOMPRESS_PATH="$COMPRESS"
22811             UNCOMPRESS_OPT="-dc"
22812         else
22813             # If we have to use cat, we don't define COMPRESS_FAST_OPT,
22814             # COMPRESS_BEST_OPT, or UNCOMPRESS_OPT as "" since cat will look
22815             # look for a file by the name of "".
22816             # XXX is the above true? --dustin
22817
22818
22819     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find either gzip or compress.  Using cat." >&5
22820 $as_echo "$as_me: WARNING: Cannot find either gzip or compress.  Using cat." >&2;}
22821
22822
22823     cat <<AAW_EOF >>config.warnings
22824 Cannot find either gzip or compress.  Using cat.
22825 AAW_EOF
22826
22827
22828             COMPRESS_PATH="$CAT"
22829             COMPRESS_SUFFIX=""
22830             COMPRESS_FAST_OPT=""
22831             COMPRESS_BEST_OPT=""
22832             UNCOMPRESS_PATH="$CAT"
22833             UNCOMPRESS_OPT=""
22834         fi
22835     fi
22836
22837
22838 cat >>confdefs.h <<_ACEOF
22839 #define COMPRESS_PATH "$COMPRESS_PATH"
22840 _ACEOF
22841
22842
22843 cat >>confdefs.h <<_ACEOF
22844 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
22845 _ACEOF
22846
22847
22848 cat >>confdefs.h <<_ACEOF
22849 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
22850 _ACEOF
22851
22852
22853 cat >>confdefs.h <<_ACEOF
22854 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
22855 _ACEOF
22856
22857
22858 cat >>confdefs.h <<_ACEOF
22859 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
22860 _ACEOF
22861
22862
22863 cat >>confdefs.h <<_ACEOF
22864 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
22865 _ACEOF
22866
22867
22868
22869
22870
22871
22872
22873
22874
22875
22876     # Empty GZIP so that make dist works.
22877     GZIP=
22878
22879
22880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5
22881 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
22882 if ${ac_cv_has_sockaddr_storage+:} false; then :
22883   $as_echo_n "(cached) " >&6
22884 else
22885
22886         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22887 /* end confdefs.h.  */
22888
22889 #       include <sys/types.h>
22890 #       include <sys/socket.h>
22891 int
22892 main ()
22893 {
22894 u_int i = sizeof (struct sockaddr_storage)
22895   ;
22896   return 0;
22897 }
22898 _ACEOF
22899 if ac_fn_c_try_compile "$LINENO"; then :
22900   ac_cv_has_sockaddr_storage=yes
22901 else
22902   ac_cv_has_sockaddr_storage=no
22903 fi
22904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22905
22906 fi
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_sockaddr_storage" >&5
22908 $as_echo "$ac_cv_has_sockaddr_storage" >&6; }
22909
22910     if test $ac_cv_has_sockaddr_storage = yes ; then
22911
22912 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
22913
22914     fi
22915
22916
22917
22918
22919     WORKING_IPV6=no
22920
22921 # Check whether --with-ipv6 was given.
22922 if test "${with_ipv6+set}" = set; then :
22923   withval=$with_ipv6;
22924             case "$withval" in
22925             y | ye | yes) amanda_with_ipv6=yes;;
22926             n | no) amanda_with_ipv6=no;;
22927             *)
22928                 as_fn_error $? "*** You must not supply an argument to --with-ipv6 option." "$LINENO" 5
22929               ;;
22930             esac
22931
22932 else
22933
22934             amanda_with_ipv6=maybe
22935
22936
22937 fi
22938
22939
22940     if test x"$amanda_with_ipv6" = x"yes" ||
22941        test x"$amanda_with_ipv6" = x"maybe" ; then
22942         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working IPv6" >&5
22943 $as_echo_n "checking for working IPv6... " >&6; }
22944 if ${amanda_cv_working_ipv6+:} false; then :
22945   $as_echo_n "(cached) " >&6
22946 else
22947
22948             case "$host" in
22949                 *-pc-cygwin) amanda_cv_working_ipv6=no;;
22950                 *)
22951                     if test "$cross_compiling" = yes; then :
22952    amanda_cv_working_ipv6=yes
22953
22954 else
22955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22956 /* end confdefs.h.  */
22957
22958 #include <sys/types.h>
22959 #ifdef HAVE_SYS_SOCKET_H
22960 #include <sys/socket.h>
22961 #endif
22962 #ifdef HAVE_NETINET_IN_H
22963 #include <netinet/in.h>
22964 #endif
22965 #ifdef HAVE_WINSOCK2_H
22966 #include <winsock2.h>
22967 #endif
22968 #include <sys/socket.h>
22969 #include <errno.h>
22970
22971 main()
22972 {
22973    int aa;
22974    aa = socket(AF_INET6, SOCK_STREAM, 0);
22975    if (aa > 0) return 0;
22976    return aa;
22977 }
22978 _ACEOF
22979 if ac_fn_c_try_run "$LINENO"; then :
22980    amanda_cv_working_ipv6=yes
22981 else
22982    amanda_cv_working_ipv6=no
22983 fi
22984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22985   conftest.$ac_objext conftest.beam conftest.$ac_ext
22986 fi
22987
22988             esac
22989
22990 fi
22991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_working_ipv6" >&5
22992 $as_echo "$amanda_cv_working_ipv6" >&6; }
22993
22994         if test "$amanda_cv_working_ipv6" = yes; then
22995             WORKING_IPV6=yes
22996
22997 $as_echo "#define WORKING_IPV6 1" >>confdefs.h
22998
22999         else
23000             # error out only if the user specifically requested support
23001             if test x"$amanda_with_ipv6" = x"yes"; then
23002                 as_fn_error $? "IPv6 support was requested, but opening an IPv6 socket failed" "$LINENO" 5
23003             fi
23004         fi
23005     fi
23006
23007
23008     ac_header_dirent=no
23009 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23010   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
23012 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
23013 if eval \${$as_ac_Header+:} false; then :
23014   $as_echo_n "(cached) " >&6
23015 else
23016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23017 /* end confdefs.h.  */
23018 #include <sys/types.h>
23019 #include <$ac_hdr>
23020
23021 int
23022 main ()
23023 {
23024 if ((DIR *) 0)
23025 return 0;
23026   ;
23027   return 0;
23028 }
23029 _ACEOF
23030 if ac_fn_c_try_compile "$LINENO"; then :
23031   eval "$as_ac_Header=yes"
23032 else
23033   eval "$as_ac_Header=no"
23034 fi
23035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23036 fi
23037 eval ac_res=\$$as_ac_Header
23038                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23039 $as_echo "$ac_res" >&6; }
23040 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23041   cat >>confdefs.h <<_ACEOF
23042 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23043 _ACEOF
23044
23045 ac_header_dirent=$ac_hdr; break
23046 fi
23047
23048 done
23049 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23050 if test $ac_header_dirent = dirent.h; then
23051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23052 $as_echo_n "checking for library containing opendir... " >&6; }
23053 if ${ac_cv_search_opendir+:} false; then :
23054   $as_echo_n "(cached) " >&6
23055 else
23056   ac_func_search_save_LIBS=$LIBS
23057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23058 /* end confdefs.h.  */
23059
23060 /* Override any GCC internal prototype to avoid an error.
23061    Use char because int might match the return type of a GCC
23062    builtin and then its argument prototype would still apply.  */
23063 #ifdef __cplusplus
23064 extern "C"
23065 #endif
23066 char opendir ();
23067 int
23068 main ()
23069 {
23070 return opendir ();
23071   ;
23072   return 0;
23073 }
23074 _ACEOF
23075 for ac_lib in '' dir; do
23076   if test -z "$ac_lib"; then
23077     ac_res="none required"
23078   else
23079     ac_res=-l$ac_lib
23080     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23081   fi
23082   if ac_fn_c_try_link "$LINENO"; then :
23083   ac_cv_search_opendir=$ac_res
23084 fi
23085 rm -f core conftest.err conftest.$ac_objext \
23086     conftest$ac_exeext
23087   if ${ac_cv_search_opendir+:} false; then :
23088   break
23089 fi
23090 done
23091 if ${ac_cv_search_opendir+:} false; then :
23092
23093 else
23094   ac_cv_search_opendir=no
23095 fi
23096 rm conftest.$ac_ext
23097 LIBS=$ac_func_search_save_LIBS
23098 fi
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23100 $as_echo "$ac_cv_search_opendir" >&6; }
23101 ac_res=$ac_cv_search_opendir
23102 if test "$ac_res" != no; then :
23103   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23104
23105 fi
23106
23107 else
23108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23109 $as_echo_n "checking for library containing opendir... " >&6; }
23110 if ${ac_cv_search_opendir+:} false; then :
23111   $as_echo_n "(cached) " >&6
23112 else
23113   ac_func_search_save_LIBS=$LIBS
23114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23115 /* end confdefs.h.  */
23116
23117 /* Override any GCC internal prototype to avoid an error.
23118    Use char because int might match the return type of a GCC
23119    builtin and then its argument prototype would still apply.  */
23120 #ifdef __cplusplus
23121 extern "C"
23122 #endif
23123 char opendir ();
23124 int
23125 main ()
23126 {
23127 return opendir ();
23128   ;
23129   return 0;
23130 }
23131 _ACEOF
23132 for ac_lib in '' x; do
23133   if test -z "$ac_lib"; then
23134     ac_res="none required"
23135   else
23136     ac_res=-l$ac_lib
23137     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23138   fi
23139   if ac_fn_c_try_link "$LINENO"; then :
23140   ac_cv_search_opendir=$ac_res
23141 fi
23142 rm -f core conftest.err conftest.$ac_objext \
23143     conftest$ac_exeext
23144   if ${ac_cv_search_opendir+:} false; then :
23145   break
23146 fi
23147 done
23148 if ${ac_cv_search_opendir+:} false; then :
23149
23150 else
23151   ac_cv_search_opendir=no
23152 fi
23153 rm conftest.$ac_ext
23154 LIBS=$ac_func_search_save_LIBS
23155 fi
23156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23157 $as_echo "$ac_cv_search_opendir" >&6; }
23158 ac_res=$ac_cv_search_opendir
23159 if test "$ac_res" != no; then :
23160   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23161
23162 fi
23163
23164 fi
23165
23166
23167     # include the dirent headers as described in the autoconf documentation.
23168     ac_fn_c_check_decl "$LINENO" "readdir" "ac_cv_have_decl_readdir" "
23169 #if HAVE_DIRENT_H
23170 # include <dirent.h>
23171 # define NAMLEN(dirent) strlen((dirent)->d_name)
23172 #else
23173 # define dirent direct
23174 # define NAMLEN(dirent) (dirent)->d_namlen
23175 # if HAVE_SYS_NDIR_H
23176 #  include <sys/ndir.h>
23177 # endif
23178 # if HAVE_SYS_DIR_H
23179 #  include <sys/dir.h>
23180 # endif
23181 # if HAVE_NDIR_H
23182 #  include <ndir.h>
23183 # endif
23184 #endif
23185
23186 "
23187 if test "x$ac_cv_have_decl_readdir" = xyes; then :
23188   ac_have_decl=1
23189 else
23190   ac_have_decl=0
23191 fi
23192
23193 cat >>confdefs.h <<_ACEOF
23194 #define HAVE_DECL_READDIR $ac_have_decl
23195 _ACEOF
23196 ac_fn_c_check_decl "$LINENO" "readdir_r" "ac_cv_have_decl_readdir_r" "
23197 #if HAVE_DIRENT_H
23198 # include <dirent.h>
23199 # define NAMLEN(dirent) strlen((dirent)->d_name)
23200 #else
23201 # define dirent direct
23202 # define NAMLEN(dirent) (dirent)->d_namlen
23203 # if HAVE_SYS_NDIR_H
23204 #  include <sys/ndir.h>
23205 # endif
23206 # if HAVE_SYS_DIR_H
23207 #  include <sys/dir.h>
23208 # endif
23209 # if HAVE_NDIR_H
23210 #  include <ndir.h>
23211 # endif
23212 #endif
23213
23214 "
23215 if test "x$ac_cv_have_decl_readdir_r" = xyes; then :
23216   ac_have_decl=1
23217 else
23218   ac_have_decl=0
23219 fi
23220
23221 cat >>confdefs.h <<_ACEOF
23222 #define HAVE_DECL_READDIR_R $ac_have_decl
23223 _ACEOF
23224 ac_fn_c_check_decl "$LINENO" "readdir64" "ac_cv_have_decl_readdir64" "
23225 #if HAVE_DIRENT_H
23226 # include <dirent.h>
23227 # define NAMLEN(dirent) strlen((dirent)->d_name)
23228 #else
23229 # define dirent direct
23230 # define NAMLEN(dirent) (dirent)->d_namlen
23231 # if HAVE_SYS_NDIR_H
23232 #  include <sys/ndir.h>
23233 # endif
23234 # if HAVE_SYS_DIR_H
23235 #  include <sys/dir.h>
23236 # endif
23237 # if HAVE_NDIR_H
23238 #  include <ndir.h>
23239 # endif
23240 #endif
23241
23242 "
23243 if test "x$ac_cv_have_decl_readdir64" = xyes; then :
23244   ac_have_decl=1
23245 else
23246   ac_have_decl=0
23247 fi
23248
23249 cat >>confdefs.h <<_ACEOF
23250 #define HAVE_DECL_READDIR64 $ac_have_decl
23251 _ACEOF
23252 ac_fn_c_check_decl "$LINENO" "readdir64_r" "ac_cv_have_decl_readdir64_r" "
23253 #if HAVE_DIRENT_H
23254 # include <dirent.h>
23255 # define NAMLEN(dirent) strlen((dirent)->d_name)
23256 #else
23257 # define dirent direct
23258 # define NAMLEN(dirent) (dirent)->d_namlen
23259 # if HAVE_SYS_NDIR_H
23260 #  include <sys/ndir.h>
23261 # endif
23262 # if HAVE_SYS_DIR_H
23263 #  include <sys/dir.h>
23264 # endif
23265 # if HAVE_NDIR_H
23266 #  include <ndir.h>
23267 # endif
23268 #endif
23269
23270 "
23271 if test "x$ac_cv_have_decl_readdir64_r" = xyes; then :
23272   ac_have_decl=1
23273 else
23274   ac_have_decl=0
23275 fi
23276
23277 cat >>confdefs.h <<_ACEOF
23278 #define HAVE_DECL_READDIR64_R $ac_have_decl
23279 _ACEOF
23280
23281
23282
23283     # disk device prefixes
23284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking disk device prefixes" >&5
23285 $as_echo_n "checking disk device prefixes... " >&6; }
23286
23287     # Use df to find the mount point for the root filesystem.  Use
23288     # the positional parameters to find the particular line from df
23289     # that contains the root paritition.  We put it in a subshell so
23290     # that the original positional parameters are not messed with.
23291     dfline=`(
23292         df / | while read line; do
23293             set -- $line
23294                     while test $# -gt 0; do
23295                 if test "x$1" = "x/"; then
23296                     echo $line
23297                     break 2
23298                 fi
23299                 shift
23300             done
23301         done
23302     ) | sed 's/(//' | sed 's/)//' `
23303
23304     # Search for the mount point by using expr to find the parameter
23305     # with dev in it.
23306     mount=`(
23307         set -- $dfline
23308                 while test $# -gt 0; do
23309             if expr "$1" : '.*dev' >/dev/null 2>&1; then
23310                 echo $1
23311                 break
23312             fi
23313             shift
23314         done
23315     )`
23316
23317     # get any system-specific configuration information
23318     case "$host" in
23319         *-hp-*)
23320             CLIENT_SCRIPTS_OPT=amhpfixdevs
23321             case $mount in
23322                 /dev/vg*)
23323
23324     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&5
23325 $as_echo "$as_me: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&2;}
23326
23327
23328     cat <<AAW_EOF >>config.warnings
23329 Run amhpfixdevs on HP-UX systems using /dev/vg??.
23330 AAW_EOF
23331
23332
23333                     ;;
23334             esac
23335             ;;
23336         *-sni-sysv4)
23337             DEV_PREFIX=/dev/dsk/
23338             RDEV_PREFIX=/dev/rdsk/
23339             CLIENT_SCRIPTS_OPT=amsinixfixdevs
23340             if ! test -d /dev/dsk; then
23341
23342     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&5
23343 $as_echo "$as_me: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&2;}
23344
23345
23346     cat <<AAW_EOF >>config.warnings
23347 Run amsinixfixdevs on Sinix systems using VxFS.
23348 AAW_EOF
23349
23350
23351             fi
23352             ;;
23353         *-sco3.2v4*)
23354             DEV_PREFIX=/dev/
23355             RDEV_PREFIX=/dev/
23356             ;;
23357         *)
23358             CLIENT_SCRIPTS_OPT=
23359             ;;
23360     esac
23361
23362     if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
23363         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
23364 $as_echo "(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6; }
23365     else
23366         if test -d /dev/dsk; then
23367             DEV_PREFIX=/dev/dsk/
23368             if test -d /dev/rdsk; then
23369                 RDEV_PREFIX=/dev/rdsk/
23370             else
23371                 RDEV_PREFIX=/dev/dsk/
23372             fi
23373         elif test -d /dev; then
23374             DEV_PREFIX=/dev/
23375
23376             # Some systems, notably Linux, do not have raw disk devices
23377             # names.  Check this by trying to see if a raw disk device name
23378             # exists using the normal raw device path prepended to the
23379             # mount point of the root filesystem.
23380             if test "$mount"; then
23381                 dev_name="/dev/r`basename $mount`"
23382                 if test -b $dev_name -o -c $dev_name; then
23383                     RDEV_PREFIX=/dev/r
23384                 else
23385                     RDEV_PREFIX=/dev/
23386                 fi
23387             else
23388                 RDEV_PREFIX=/dev/r
23389             fi
23390         else
23391             # just fake it..
23392             DEV_PREFIX=/
23393             RDEV_PREFIX=/
23394         fi
23395         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
23396 $as_echo "$DEV_PREFIX - $RDEV_PREFIX" >&6; }
23397     fi
23398
23399
23400 cat >>confdefs.h <<_ACEOF
23401 #define DEV_PREFIX "${DEV_PREFIX}"
23402 _ACEOF
23403
23404
23405 cat >>confdefs.h <<_ACEOF
23406 #define RDEV_PREFIX "${RDEV_PREFIX}"
23407 _ACEOF
23408
23409
23410
23411
23412     case "$host" in
23413         *-dec-osf*)
23414                     ;;
23415         *-dg-*)
23416                     ;;
23417         *-netbsd*)
23418                     ;;
23419         *-freebsd*)
23420                     ;;
23421         *-openbsd*)
23422                     ;;
23423         *-hp-*)
23424                     case "$CC" in
23425                         *gcc*)
23426                             CPPFLAGS="$CPPFLAGS -D__STDC_EXT__"
23427
23428                             ;;
23429                         *cc*)
23430                             CFLAGS="$CFLAGS -Ae"
23431
23432                             ;;
23433                     esac
23434                     ;;
23435         *-ibm-aix*)
23436                     ;;
23437         m88k-motorola-sysv4)
23438                     ;;
23439         *-nextstep3)
23440                     ;;
23441         *-pc-bsdi*)
23442                     ;;
23443         *-pc-linux-*)
23444                     ;;
23445         *-redhat-linux-*)
23446                     ;;
23447         *-suse-linux-*)
23448                     ;;
23449         x86_64-*-linux-*)
23450                     ;;
23451         alpha*-*-linux-*)
23452                     ;;
23453         sparc*-*-linux-*)
23454                     ;;
23455         powerpc-*-linux-*)
23456                     ;;
23457         *-sgi-irix3*)
23458                     # The old cc won't work!
23459                     if test "x$GCC" != "xyes"; then
23460                         as_fn_error $? "The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" "$LINENO" 5
23461                     fi
23462                     ;;
23463         *-sgi-irix4*)
23464                     ;;
23465         *-sgi-irix5*)
23466                     ;;
23467         *-sgi-irix6*)
23468                     ;;
23469         *-solaris2*)
23470                     ;;
23471         *-sun-sunos4.1*)
23472                     ;;
23473         *-ultrix*)
23474                     ;;
23475         *-sysv4.2uw2*)
23476                     ;;
23477         *-sco3.2v5*)
23478                     ;;
23479         i386-pc-isc4*)
23480                     ;;
23481         *-sni-sysv4)
23482                     ;;
23483         *-pc-cygwin)
23484
23485 $as_echo "#define IGNORE_TAR_ERRORS 1" >>confdefs.h
23486
23487                     # Cygwin needs PATH to find cygwin1.dll
23488
23489 $as_echo "#define NEED_PATH_ENV 1" >>confdefs.h
23490
23491
23492 $as_echo "#define IGNORE_FSTAB 1" >>confdefs.h
23493
23494                     LDFLAGS="$LDFLAGS -Wl,-enable-runtime-pseudo-reloc -no-undefined"
23495
23496                     ;;
23497         *-apple-darwin7*) # MacOS X 10.3.* (Panther)
23498                     ;;
23499         *-apple-darwin8*) # MacOS X 10.4.* (Tiger)
23500                     ;;
23501         *-apple-darwin9*) # MacOS X 10.5.* (Leopard)
23502                     ;;
23503         *-apple-darwin10*) # MacOS X 10.6.* (Snow Leopard)
23504                     ;;
23505       *)
23506
23507
23508     cat <<AAW_EOF >>config.warnings
23509 *****
23510 This machine, target type $host, is not known to be fully supported
23511 by this configure script.  If the installation of Amanda on this system
23512 succeeds or needed any patches, please email amanda-hackers@amanda.org
23513 with the patches or an indication of the sucess or failure of the
23514 Amanda installation on your system.
23515 *****
23516 AAW_EOF
23517
23518                     ;;
23519     esac
23520
23521
23522
23523
23524
23525   prefix_NONE=
23526   exec_prefix_NONE=
23527   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23528   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23529   eval ac_define_dir="\"$bindir\""
23530   eval ac_define_dir="\"$ac_define_dir\""
23531   bindir="$ac_define_dir"
23532
23533
23534 cat >>confdefs.h <<_ACEOF
23535 #define bindir "$ac_define_dir"
23536 _ACEOF
23537
23538   test "$prefix_NONE" && prefix=NONE
23539   test "$exec_prefix_NONE" && exec_prefix=NONE
23540
23541
23542
23543   prefix_NONE=
23544   exec_prefix_NONE=
23545   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23546   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23547   eval ac_define_dir="\"$sbindir\""
23548   eval ac_define_dir="\"$ac_define_dir\""
23549   sbindir="$ac_define_dir"
23550
23551
23552 cat >>confdefs.h <<_ACEOF
23553 #define sbindir "$ac_define_dir"
23554 _ACEOF
23555
23556   test "$prefix_NONE" && prefix=NONE
23557   test "$exec_prefix_NONE" && exec_prefix=NONE
23558
23559
23560
23561   prefix_NONE=
23562   exec_prefix_NONE=
23563   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23564   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23565   eval ac_define_dir="\"$libexecdir\""
23566   eval ac_define_dir="\"$ac_define_dir\""
23567   libexecdir="$ac_define_dir"
23568
23569
23570 cat >>confdefs.h <<_ACEOF
23571 #define libexecdir "$ac_define_dir"
23572 _ACEOF
23573
23574   test "$prefix_NONE" && prefix=NONE
23575   test "$exec_prefix_NONE" && exec_prefix=NONE
23576
23577
23578
23579   prefix_NONE=
23580   exec_prefix_NONE=
23581   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23582   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23583   eval ac_define_dir="\"$mandir\""
23584   eval ac_define_dir="\"$ac_define_dir\""
23585   mandir="$ac_define_dir"
23586
23587
23588 cat >>confdefs.h <<_ACEOF
23589 #define mandir "$ac_define_dir"
23590 _ACEOF
23591
23592   test "$prefix_NONE" && prefix=NONE
23593   test "$exec_prefix_NONE" && exec_prefix=NONE
23594
23595
23596
23597     # amanda-specific directories
23598     AMLIBDIR=$libdir/amanda
23599
23600 # Check whether --with-amlibdir was given.
23601 if test "${with_amlibdir+set}" = set; then :
23602   withval=$with_amlibdir;
23603             case "$withval" in
23604                 n | no) AMLIBDIR=$libdir ;;
23605                 y | ye | yes) AMLIBDIR=$libdir/amanda ;;
23606                 *) AMLIBDIR=$withval ;;
23607             esac
23608
23609
23610 fi
23611
23612
23613   prefix_NONE=
23614   exec_prefix_NONE=
23615   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23616   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23617   eval ac_define_dir="\"$AMLIBDIR\""
23618   eval ac_define_dir="\"$ac_define_dir\""
23619   amlibdir="$ac_define_dir"
23620
23621
23622 cat >>confdefs.h <<_ACEOF
23623 #define amlibdir "$ac_define_dir"
23624 _ACEOF
23625
23626   test "$prefix_NONE" && prefix=NONE
23627   test "$exec_prefix_NONE" && exec_prefix=NONE
23628
23629
23630     AMLIBEXECDIR=$libexecdir/amanda
23631
23632 # Check whether --with-amlibexecdir was given.
23633 if test "${with_amlibexecdir+set}" = set; then :
23634   withval=$with_amlibexecdir;
23635             case "$withval" in
23636                 n | no) AMLIBEXECDIR=$libexecdir ;;
23637                 y | ye | yes) AMLIBEXECDIR=$libexecdir/amanda ;;
23638                 *) AMLIBEXECDIR=$withval ;;
23639             esac
23640
23641
23642 fi
23643
23644
23645   prefix_NONE=
23646   exec_prefix_NONE=
23647   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23648   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23649   eval ac_define_dir="\"$AMLIBEXECDIR\""
23650   eval ac_define_dir="\"$ac_define_dir\""
23651   amlibexecdir="$ac_define_dir"
23652
23653
23654 cat >>confdefs.h <<_ACEOF
23655 #define amlibexecdir "$ac_define_dir"
23656 _ACEOF
23657
23658   test "$prefix_NONE" && prefix=NONE
23659   test "$exec_prefix_NONE" && exec_prefix=NONE
23660
23661
23662     amincludedir="${includedir}/amanda"
23663
23664   prefix_NONE=
23665   exec_prefix_NONE=
23666   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23667   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23668   eval ac_define_dir="\"$amincludedir\""
23669   eval ac_define_dir="\"$ac_define_dir\""
23670   amincludedir="$ac_define_dir"
23671
23672
23673 cat >>confdefs.h <<_ACEOF
23674 #define amincludedir "$ac_define_dir"
23675 _ACEOF
23676
23677   test "$prefix_NONE" && prefix=NONE
23678   test "$exec_prefix_NONE" && exec_prefix=NONE
23679
23680
23681
23682 # Check whether --with-amperldir was given.
23683 if test "${with_amperldir+set}" = set; then :
23684   withval=$with_amperldir;
23685             case "$withval" in
23686                 y | ye | yes) AMPERLLIB=DEFAULT ;;
23687                 n | no) AMPERLLIB=$amlibdir/perl ;;
23688                 *) AMPERLLIB=$withval ;;
23689             esac
23690
23691 else
23692
23693             AMPERLLIB=DEFAULT
23694
23695
23696 fi
23697
23698     # apply the default if no value was given.
23699     if test x"$AMPERLLIB" = x"DEFAULT"; then
23700         eval `$PERL -V:installsitelib`
23701         AMPERLLIB=$installsitelib
23702     fi
23703
23704   prefix_NONE=
23705   exec_prefix_NONE=
23706   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23707   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23708   eval ac_define_dir="\"$AMPERLLIB\""
23709   eval ac_define_dir="\"$ac_define_dir\""
23710   amperldir="$ac_define_dir"
23711
23712
23713 cat >>confdefs.h <<_ACEOF
23714 #define amperldir "$ac_define_dir"
23715 _ACEOF
23716
23717   test "$prefix_NONE" && prefix=NONE
23718   test "$exec_prefix_NONE" && exec_prefix=NONE
23719
23720
23721     APPLICATION_DIR='${amlibexecdir}/application'
23722
23723   prefix_NONE=
23724   exec_prefix_NONE=
23725   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23726   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23727   eval ac_define_dir="\"$APPLICATION_DIR\""
23728   eval ac_define_dir="\"$ac_define_dir\""
23729   APPLICATION_DIR="$ac_define_dir"
23730
23731
23732 cat >>confdefs.h <<_ACEOF
23733 #define APPLICATION_DIR "$ac_define_dir"
23734 _ACEOF
23735
23736   test "$prefix_NONE" && prefix=NONE
23737   test "$exec_prefix_NONE" && exec_prefix=NONE
23738
23739
23740
23741 # Check whether --with-amdatadir was given.
23742 if test "${with_amdatadir+set}" = set; then :
23743   withval=$with_amdatadir;
23744             AMDATADIR=$withval
23745
23746 else
23747
23748             AMDATADIR=$datadir/amanda
23749
23750
23751 fi
23752
23753
23754   prefix_NONE=
23755   exec_prefix_NONE=
23756   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23757   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23758   eval ac_define_dir="\"$AMDATADIR\""
23759   eval ac_define_dir="\"$ac_define_dir\""
23760   amdatadir="$ac_define_dir"
23761
23762
23763 cat >>confdefs.h <<_ACEOF
23764 #define amdatadir "$ac_define_dir"
23765 _ACEOF
23766
23767   test "$prefix_NONE" && prefix=NONE
23768   test "$exec_prefix_NONE" && exec_prefix=NONE
23769
23770
23771
23772 #
23773 # Internationalization
23774 #
23775
23776     # FreeBSD needs to link libxpg4
23777     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale in -lxpg4" >&5
23778 $as_echo_n "checking for setlocale in -lxpg4... " >&6; }
23779 if ${ac_cv_lib_xpg4_setlocale+:} false; then :
23780   $as_echo_n "(cached) " >&6
23781 else
23782   ac_check_lib_save_LIBS=$LIBS
23783 LIBS="-lxpg4  $LIBS"
23784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23785 /* end confdefs.h.  */
23786
23787 /* Override any GCC internal prototype to avoid an error.
23788    Use char because int might match the return type of a GCC
23789    builtin and then its argument prototype would still apply.  */
23790 #ifdef __cplusplus
23791 extern "C"
23792 #endif
23793 char setlocale ();
23794 int
23795 main ()
23796 {
23797 return setlocale ();
23798   ;
23799   return 0;
23800 }
23801 _ACEOF
23802 if ac_fn_c_try_link "$LINENO"; then :
23803   ac_cv_lib_xpg4_setlocale=yes
23804 else
23805   ac_cv_lib_xpg4_setlocale=no
23806 fi
23807 rm -f core conftest.err conftest.$ac_objext \
23808     conftest$ac_exeext conftest.$ac_ext
23809 LIBS=$ac_check_lib_save_LIBS
23810 fi
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4_setlocale" >&5
23812 $as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
23813 if test "x$ac_cv_lib_xpg4_setlocale" = xyes; then :
23814   cat >>confdefs.h <<_ACEOF
23815 #define HAVE_LIBXPG4 1
23816 _ACEOF
23817
23818   LIBS="-lxpg4 $LIBS"
23819
23820 fi
23821
23822
23823     # ------------------------------------------------------------------
23824     # All list of languages for which a translation exist. Each
23825     #  language is separated by a space.
23826     # ------------------------------------------------------------------
23827     ALL_LINGUAS=""
23828
23829
23830     # Extract the first word of "msgfmt", so it can be a program name with args.
23831 set dummy msgfmt; ac_word=$2
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23833 $as_echo_n "checking for $ac_word... " >&6; }
23834 if ${ac_cv_path_MSGFMT+:} false; then :
23835   $as_echo_n "(cached) " >&6
23836 else
23837   case $MSGFMT in
23838   [\\/]* | ?:[\\/]*)
23839   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23840   ;;
23841   *)
23842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23843 for as_dir in $LOCSYSPATH
23844 do
23845   IFS=$as_save_IFS
23846   test -z "$as_dir" && as_dir=.
23847     for ac_exec_ext in '' $ac_executable_extensions; do
23848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23849     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
23850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23851     break 2
23852   fi
23853 done
23854   done
23855 IFS=$as_save_IFS
23856
23857   ;;
23858 esac
23859 fi
23860 MSGFMT=$ac_cv_path_MSGFMT
23861 if test -n "$MSGFMT"; then
23862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
23863 $as_echo "$MSGFMT" >&6; }
23864 else
23865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23866 $as_echo "no" >&6; }
23867 fi
23868
23869
23870     # Extract the first word of "gettext", so it can be a program name with args.
23871 set dummy gettext; ac_word=$2
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23873 $as_echo_n "checking for $ac_word... " >&6; }
23874 if ${ac_cv_path_GETTEXT+:} false; then :
23875   $as_echo_n "(cached) " >&6
23876 else
23877   case $GETTEXT in
23878   [\\/]* | ?:[\\/]*)
23879   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
23880   ;;
23881   *)
23882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23883 for as_dir in $LOCSYSPATH
23884 do
23885   IFS=$as_save_IFS
23886   test -z "$as_dir" && as_dir=.
23887     for ac_exec_ext in '' $ac_executable_extensions; do
23888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23889     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
23890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23891     break 2
23892   fi
23893 done
23894   done
23895 IFS=$as_save_IFS
23896
23897   ;;
23898 esac
23899 fi
23900 GETTEXT=$ac_cv_path_GETTEXT
23901 if test -n "$GETTEXT"; then
23902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETTEXT" >&5
23903 $as_echo "$GETTEXT" >&6; }
23904 else
23905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23906 $as_echo "no" >&6; }
23907 fi
23908
23909
23910
23911
23912
23913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
23914 $as_echo_n "checking whether NLS is requested... " >&6; }
23915     # Check whether --enable-nls was given.
23916 if test "${enable_nls+set}" = set; then :
23917   enableval=$enable_nls; USE_NLS=$enableval
23918 else
23919   USE_NLS=yes
23920 fi
23921
23922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
23923 $as_echo "$USE_NLS" >&6; }
23924
23925
23926
23927
23928
23929
23930 # Prepare PATH_SEPARATOR.
23931 # The user is always right.
23932 if test "${PATH_SEPARATOR+set}" != set; then
23933   echo "#! /bin/sh" >conf$$.sh
23934   echo  "exit 0"   >>conf$$.sh
23935   chmod +x conf$$.sh
23936   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23937     PATH_SEPARATOR=';'
23938   else
23939     PATH_SEPARATOR=:
23940   fi
23941   rm -f conf$$.sh
23942 fi
23943
23944 # Find out how to test for executable files. Don't use a zero-byte file,
23945 # as systems may use methods other than mode bits to determine executability.
23946 cat >conf$$.file <<_ASEOF
23947 #! /bin/sh
23948 exit 0
23949 _ASEOF
23950 chmod +x conf$$.file
23951 if test -x conf$$.file >/dev/null 2>&1; then
23952   ac_executable_p="test -x"
23953 else
23954   ac_executable_p="test -f"
23955 fi
23956 rm -f conf$$.file
23957
23958 # Extract the first word of "msgfmt", so it can be a program name with args.
23959 set dummy msgfmt; ac_word=$2
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23961 $as_echo_n "checking for $ac_word... " >&6; }
23962 if ${ac_cv_path_MSGFMT+:} false; then :
23963   $as_echo_n "(cached) " >&6
23964 else
23965   case "$MSGFMT" in
23966   [\\/]* | ?:[\\/]*)
23967     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23968     ;;
23969   *)
23970     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
23971     for ac_dir in $PATH; do
23972       IFS="$ac_save_IFS"
23973       test -z "$ac_dir" && ac_dir=.
23974       for ac_exec_ext in '' $ac_executable_extensions; do
23975         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
23976           echo "$as_me: trying $ac_dir/$ac_word..." >&5
23977           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
23978      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
23979             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
23980             break 2
23981           fi
23982         fi
23983       done
23984     done
23985     IFS="$ac_save_IFS"
23986   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
23987     ;;
23988 esac
23989 fi
23990 MSGFMT="$ac_cv_path_MSGFMT"
23991 if test "$MSGFMT" != ":"; then
23992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
23993 $as_echo "$MSGFMT" >&6; }
23994 else
23995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23996 $as_echo "no" >&6; }
23997 fi
23998
23999   # Extract the first word of "gmsgfmt", so it can be a program name with args.
24000 set dummy gmsgfmt; ac_word=$2
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24002 $as_echo_n "checking for $ac_word... " >&6; }
24003 if ${ac_cv_path_GMSGFMT+:} false; then :
24004   $as_echo_n "(cached) " >&6
24005 else
24006   case $GMSGFMT in
24007   [\\/]* | ?:[\\/]*)
24008   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
24009   ;;
24010   *)
24011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24012 for as_dir in $PATH
24013 do
24014   IFS=$as_save_IFS
24015   test -z "$as_dir" && as_dir=.
24016     for ac_exec_ext in '' $ac_executable_extensions; do
24017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24018     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
24019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24020     break 2
24021   fi
24022 done
24023   done
24024 IFS=$as_save_IFS
24025
24026   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
24027   ;;
24028 esac
24029 fi
24030 GMSGFMT=$ac_cv_path_GMSGFMT
24031 if test -n "$GMSGFMT"; then
24032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
24033 $as_echo "$GMSGFMT" >&6; }
24034 else
24035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24036 $as_echo "no" >&6; }
24037 fi
24038
24039
24040
24041     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
24042     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
24043     *) MSGFMT_015=$MSGFMT ;;
24044   esac
24045
24046   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
24047     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
24048     *) GMSGFMT_015=$GMSGFMT ;;
24049   esac
24050
24051
24052
24053 # Prepare PATH_SEPARATOR.
24054 # The user is always right.
24055 if test "${PATH_SEPARATOR+set}" != set; then
24056   echo "#! /bin/sh" >conf$$.sh
24057   echo  "exit 0"   >>conf$$.sh
24058   chmod +x conf$$.sh
24059   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24060     PATH_SEPARATOR=';'
24061   else
24062     PATH_SEPARATOR=:
24063   fi
24064   rm -f conf$$.sh
24065 fi
24066
24067 # Find out how to test for executable files. Don't use a zero-byte file,
24068 # as systems may use methods other than mode bits to determine executability.
24069 cat >conf$$.file <<_ASEOF
24070 #! /bin/sh
24071 exit 0
24072 _ASEOF
24073 chmod +x conf$$.file
24074 if test -x conf$$.file >/dev/null 2>&1; then
24075   ac_executable_p="test -x"
24076 else
24077   ac_executable_p="test -f"
24078 fi
24079 rm -f conf$$.file
24080
24081 # Extract the first word of "xgettext", so it can be a program name with args.
24082 set dummy xgettext; ac_word=$2
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24084 $as_echo_n "checking for $ac_word... " >&6; }
24085 if ${ac_cv_path_XGETTEXT+:} false; then :
24086   $as_echo_n "(cached) " >&6
24087 else
24088   case "$XGETTEXT" in
24089   [\\/]* | ?:[\\/]*)
24090     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
24091     ;;
24092   *)
24093     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
24094     for ac_dir in $PATH; do
24095       IFS="$ac_save_IFS"
24096       test -z "$ac_dir" && ac_dir=.
24097       for ac_exec_ext in '' $ac_executable_extensions; do
24098         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
24099           echo "$as_me: trying $ac_dir/$ac_word..." >&5
24100           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
24101      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
24102             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
24103             break 2
24104           fi
24105         fi
24106       done
24107     done
24108     IFS="$ac_save_IFS"
24109   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
24110     ;;
24111 esac
24112 fi
24113 XGETTEXT="$ac_cv_path_XGETTEXT"
24114 if test "$XGETTEXT" != ":"; then
24115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
24116 $as_echo "$XGETTEXT" >&6; }
24117 else
24118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24119 $as_echo "no" >&6; }
24120 fi
24121
24122     rm -f messages.po
24123
24124     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
24125     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
24126     *) XGETTEXT_015=$XGETTEXT ;;
24127   esac
24128
24129
24130
24131 # Prepare PATH_SEPARATOR.
24132 # The user is always right.
24133 if test "${PATH_SEPARATOR+set}" != set; then
24134   echo "#! /bin/sh" >conf$$.sh
24135   echo  "exit 0"   >>conf$$.sh
24136   chmod +x conf$$.sh
24137   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24138     PATH_SEPARATOR=';'
24139   else
24140     PATH_SEPARATOR=:
24141   fi
24142   rm -f conf$$.sh
24143 fi
24144
24145 # Find out how to test for executable files. Don't use a zero-byte file,
24146 # as systems may use methods other than mode bits to determine executability.
24147 cat >conf$$.file <<_ASEOF
24148 #! /bin/sh
24149 exit 0
24150 _ASEOF
24151 chmod +x conf$$.file
24152 if test -x conf$$.file >/dev/null 2>&1; then
24153   ac_executable_p="test -x"
24154 else
24155   ac_executable_p="test -f"
24156 fi
24157 rm -f conf$$.file
24158
24159 # Extract the first word of "msgmerge", so it can be a program name with args.
24160 set dummy msgmerge; ac_word=$2
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24162 $as_echo_n "checking for $ac_word... " >&6; }
24163 if ${ac_cv_path_MSGMERGE+:} false; then :
24164   $as_echo_n "(cached) " >&6
24165 else
24166   case "$MSGMERGE" in
24167   [\\/]* | ?:[\\/]*)
24168     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
24169     ;;
24170   *)
24171     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
24172     for ac_dir in $PATH; do
24173       IFS="$ac_save_IFS"
24174       test -z "$ac_dir" && ac_dir=.
24175       for ac_exec_ext in '' $ac_executable_extensions; do
24176         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
24177           echo "$as_me: trying $ac_dir/$ac_word..." >&5
24178           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
24179             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
24180             break 2
24181           fi
24182         fi
24183       done
24184     done
24185     IFS="$ac_save_IFS"
24186   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
24187     ;;
24188 esac
24189 fi
24190 MSGMERGE="$ac_cv_path_MSGMERGE"
24191 if test "$MSGMERGE" != ":"; then
24192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
24193 $as_echo "$MSGMERGE" >&6; }
24194 else
24195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24196 $as_echo "no" >&6; }
24197 fi
24198
24199
24200         test -n "$localedir" || localedir='${datadir}/locale'
24201
24202
24203   ac_config_commands="$ac_config_commands po-directories"
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213     use_additional=yes
24214
24215   acl_save_prefix="$prefix"
24216   prefix="$acl_final_prefix"
24217   acl_save_exec_prefix="$exec_prefix"
24218   exec_prefix="$acl_final_exec_prefix"
24219
24220     eval additional_includedir=\"$includedir\"
24221     eval additional_libdir=\"$libdir\"
24222
24223   exec_prefix="$acl_save_exec_prefix"
24224   prefix="$acl_save_prefix"
24225
24226
24227 # Check whether --with-libiconv-prefix was given.
24228 if test "${with_libiconv_prefix+set}" = set; then :
24229   withval=$with_libiconv_prefix;
24230     if test "X$withval" = "Xno"; then
24231       use_additional=no
24232     else
24233       if test "X$withval" = "X"; then
24234
24235   acl_save_prefix="$prefix"
24236   prefix="$acl_final_prefix"
24237   acl_save_exec_prefix="$exec_prefix"
24238   exec_prefix="$acl_final_exec_prefix"
24239
24240           eval additional_includedir=\"$includedir\"
24241           eval additional_libdir=\"$libdir\"
24242
24243   exec_prefix="$acl_save_exec_prefix"
24244   prefix="$acl_save_prefix"
24245
24246       else
24247         additional_includedir="$withval/include"
24248         additional_libdir="$withval/$acl_libdirstem"
24249       fi
24250     fi
24251
24252 fi
24253
24254       LIBICONV=
24255   LTLIBICONV=
24256   INCICONV=
24257   rpathdirs=
24258   ltrpathdirs=
24259   names_already_handled=
24260   names_next_round='iconv '
24261   while test -n "$names_next_round"; do
24262     names_this_round="$names_next_round"
24263     names_next_round=
24264     for name in $names_this_round; do
24265       already_handled=
24266       for n in $names_already_handled; do
24267         if test "$n" = "$name"; then
24268           already_handled=yes
24269           break
24270         fi
24271       done
24272       if test -z "$already_handled"; then
24273         names_already_handled="$names_already_handled $name"
24274                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24275         eval value=\"\$HAVE_LIB$uppername\"
24276         if test -n "$value"; then
24277           if test "$value" = yes; then
24278             eval value=\"\$LIB$uppername\"
24279             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
24280             eval value=\"\$LTLIB$uppername\"
24281             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
24282           else
24283                                     :
24284           fi
24285         else
24286                               found_dir=
24287           found_la=
24288           found_so=
24289           found_a=
24290           if test $use_additional = yes; then
24291             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
24292               found_dir="$additional_libdir"
24293               found_so="$additional_libdir/lib$name.$shlibext"
24294               if test -f "$additional_libdir/lib$name.la"; then
24295                 found_la="$additional_libdir/lib$name.la"
24296               fi
24297             else
24298               if test -f "$additional_libdir/lib$name.$libext"; then
24299                 found_dir="$additional_libdir"
24300                 found_a="$additional_libdir/lib$name.$libext"
24301                 if test -f "$additional_libdir/lib$name.la"; then
24302                   found_la="$additional_libdir/lib$name.la"
24303                 fi
24304               fi
24305             fi
24306           fi
24307           if test "X$found_dir" = "X"; then
24308             for x in $LDFLAGS $LTLIBICONV; do
24309
24310   acl_save_prefix="$prefix"
24311   prefix="$acl_final_prefix"
24312   acl_save_exec_prefix="$exec_prefix"
24313   exec_prefix="$acl_final_exec_prefix"
24314   eval x=\"$x\"
24315   exec_prefix="$acl_save_exec_prefix"
24316   prefix="$acl_save_prefix"
24317
24318               case "$x" in
24319                 -L*)
24320                   dir=`echo "X$x" | sed -e 's/^X-L//'`
24321                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24322                     found_dir="$dir"
24323                     found_so="$dir/lib$name.$shlibext"
24324                     if test -f "$dir/lib$name.la"; then
24325                       found_la="$dir/lib$name.la"
24326                     fi
24327                   else
24328                     if test -f "$dir/lib$name.$libext"; then
24329                       found_dir="$dir"
24330                       found_a="$dir/lib$name.$libext"
24331                       if test -f "$dir/lib$name.la"; then
24332                         found_la="$dir/lib$name.la"
24333                       fi
24334                     fi
24335                   fi
24336                   ;;
24337               esac
24338               if test "X$found_dir" != "X"; then
24339                 break
24340               fi
24341             done
24342           fi
24343           if test "X$found_dir" != "X"; then
24344                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
24345             if test "X$found_so" != "X"; then
24346                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
24347                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24348               else
24349                                                                                 haveit=
24350                 for x in $ltrpathdirs; do
24351                   if test "X$x" = "X$found_dir"; then
24352                     haveit=yes
24353                     break
24354                   fi
24355                 done
24356                 if test -z "$haveit"; then
24357                   ltrpathdirs="$ltrpathdirs $found_dir"
24358                 fi
24359                                 if test "$hardcode_direct" = yes; then
24360                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24361                 else
24362                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24363                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24364                                                             haveit=
24365                     for x in $rpathdirs; do
24366                       if test "X$x" = "X$found_dir"; then
24367                         haveit=yes
24368                         break
24369                       fi
24370                     done
24371                     if test -z "$haveit"; then
24372                       rpathdirs="$rpathdirs $found_dir"
24373                     fi
24374                   else
24375                                                                                 haveit=
24376                     for x in $LDFLAGS $LIBICONV; do
24377
24378   acl_save_prefix="$prefix"
24379   prefix="$acl_final_prefix"
24380   acl_save_exec_prefix="$exec_prefix"
24381   exec_prefix="$acl_final_exec_prefix"
24382   eval x=\"$x\"
24383   exec_prefix="$acl_save_exec_prefix"
24384   prefix="$acl_save_prefix"
24385
24386                       if test "X$x" = "X-L$found_dir"; then
24387                         haveit=yes
24388                         break
24389                       fi
24390                     done
24391                     if test -z "$haveit"; then
24392                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
24393                     fi
24394                     if test "$hardcode_minus_L" != no; then
24395                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24396                     else
24397                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24398                     fi
24399                   fi
24400                 fi
24401               fi
24402             else
24403               if test "X$found_a" != "X"; then
24404                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
24405               else
24406                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
24407               fi
24408             fi
24409                         additional_includedir=
24410             case "$found_dir" in
24411               */$acl_libdirstem | */$acl_libdirstem/)
24412                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
24413                 additional_includedir="$basedir/include"
24414                 ;;
24415             esac
24416             if test "X$additional_includedir" != "X"; then
24417                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
24418                 haveit=
24419                 if test "X$additional_includedir" = "X/usr/local/include"; then
24420                   if test -n "$GCC"; then
24421                     case $host_os in
24422                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24423                     esac
24424                   fi
24425                 fi
24426                 if test -z "$haveit"; then
24427                   for x in $CPPFLAGS $INCICONV; do
24428
24429   acl_save_prefix="$prefix"
24430   prefix="$acl_final_prefix"
24431   acl_save_exec_prefix="$exec_prefix"
24432   exec_prefix="$acl_final_exec_prefix"
24433   eval x=\"$x\"
24434   exec_prefix="$acl_save_exec_prefix"
24435   prefix="$acl_save_prefix"
24436
24437                     if test "X$x" = "X-I$additional_includedir"; then
24438                       haveit=yes
24439                       break
24440                     fi
24441                   done
24442                   if test -z "$haveit"; then
24443                     if test -d "$additional_includedir"; then
24444                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
24445                     fi
24446                   fi
24447                 fi
24448               fi
24449             fi
24450                         if test -n "$found_la"; then
24451                                                         save_libdir="$libdir"
24452               case "$found_la" in
24453                 */* | *\\*) . "$found_la" ;;
24454                 *) . "./$found_la" ;;
24455               esac
24456               libdir="$save_libdir"
24457                             for dep in $dependency_libs; do
24458                 case "$dep" in
24459                   -L*)
24460                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24461                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
24462                       haveit=
24463                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
24464                         if test -n "$GCC"; then
24465                           case $host_os in
24466                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24467                           esac
24468                         fi
24469                       fi
24470                       if test -z "$haveit"; then
24471                         haveit=
24472                         for x in $LDFLAGS $LIBICONV; do
24473
24474   acl_save_prefix="$prefix"
24475   prefix="$acl_final_prefix"
24476   acl_save_exec_prefix="$exec_prefix"
24477   exec_prefix="$acl_final_exec_prefix"
24478   eval x=\"$x\"
24479   exec_prefix="$acl_save_exec_prefix"
24480   prefix="$acl_save_prefix"
24481
24482                           if test "X$x" = "X-L$additional_libdir"; then
24483                             haveit=yes
24484                             break
24485                           fi
24486                         done
24487                         if test -z "$haveit"; then
24488                           if test -d "$additional_libdir"; then
24489                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
24490                           fi
24491                         fi
24492                         haveit=
24493                         for x in $LDFLAGS $LTLIBICONV; do
24494
24495   acl_save_prefix="$prefix"
24496   prefix="$acl_final_prefix"
24497   acl_save_exec_prefix="$exec_prefix"
24498   exec_prefix="$acl_final_exec_prefix"
24499   eval x=\"$x\"
24500   exec_prefix="$acl_save_exec_prefix"
24501   prefix="$acl_save_prefix"
24502
24503                           if test "X$x" = "X-L$additional_libdir"; then
24504                             haveit=yes
24505                             break
24506                           fi
24507                         done
24508                         if test -z "$haveit"; then
24509                           if test -d "$additional_libdir"; then
24510                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
24511                           fi
24512                         fi
24513                       fi
24514                     fi
24515                     ;;
24516                   -R*)
24517                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
24518                     if test "$enable_rpath" != no; then
24519                                                                   haveit=
24520                       for x in $rpathdirs; do
24521                         if test "X$x" = "X$dir"; then
24522                           haveit=yes
24523                           break
24524                         fi
24525                       done
24526                       if test -z "$haveit"; then
24527                         rpathdirs="$rpathdirs $dir"
24528                       fi
24529                                                                   haveit=
24530                       for x in $ltrpathdirs; do
24531                         if test "X$x" = "X$dir"; then
24532                           haveit=yes
24533                           break
24534                         fi
24535                       done
24536                       if test -z "$haveit"; then
24537                         ltrpathdirs="$ltrpathdirs $dir"
24538                       fi
24539                     fi
24540                     ;;
24541                   -l*)
24542                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24543                     ;;
24544                   *.la)
24545                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24546                     ;;
24547                   *)
24548                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
24549                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
24550                     ;;
24551                 esac
24552               done
24553             fi
24554           else
24555                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24556             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
24557           fi
24558         fi
24559       fi
24560     done
24561   done
24562   if test "X$rpathdirs" != "X"; then
24563     if test -n "$hardcode_libdir_separator"; then
24564                         alldirs=
24565       for found_dir in $rpathdirs; do
24566         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24567       done
24568             acl_save_libdir="$libdir"
24569       libdir="$alldirs"
24570       eval flag=\"$hardcode_libdir_flag_spec\"
24571       libdir="$acl_save_libdir"
24572       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24573     else
24574             for found_dir in $rpathdirs; do
24575         acl_save_libdir="$libdir"
24576         libdir="$found_dir"
24577         eval flag=\"$hardcode_libdir_flag_spec\"
24578         libdir="$acl_save_libdir"
24579         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24580       done
24581     fi
24582   fi
24583   if test "X$ltrpathdirs" != "X"; then
24584             for found_dir in $ltrpathdirs; do
24585       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
24586     done
24587   fi
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
24607 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
24608 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
24609   $as_echo_n "(cached) " >&6
24610 else
24611   gt_save_LIBS="$LIBS"
24612      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24613      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24614 /* end confdefs.h.  */
24615 #include <CoreFoundation/CFPreferences.h>
24616 int
24617 main ()
24618 {
24619 CFPreferencesCopyAppValue(NULL, NULL)
24620   ;
24621   return 0;
24622 }
24623 _ACEOF
24624 if ac_fn_c_try_link "$LINENO"; then :
24625   gt_cv_func_CFPreferencesCopyAppValue=yes
24626 else
24627   gt_cv_func_CFPreferencesCopyAppValue=no
24628 fi
24629 rm -f core conftest.err conftest.$ac_objext \
24630     conftest$ac_exeext conftest.$ac_ext
24631      LIBS="$gt_save_LIBS"
24632 fi
24633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
24634 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
24635   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
24636
24637 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
24638
24639   fi
24640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
24641 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
24642 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
24643   $as_echo_n "(cached) " >&6
24644 else
24645   gt_save_LIBS="$LIBS"
24646      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24647      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24648 /* end confdefs.h.  */
24649 #include <CoreFoundation/CFLocale.h>
24650 int
24651 main ()
24652 {
24653 CFLocaleCopyCurrent();
24654   ;
24655   return 0;
24656 }
24657 _ACEOF
24658 if ac_fn_c_try_link "$LINENO"; then :
24659   gt_cv_func_CFLocaleCopyCurrent=yes
24660 else
24661   gt_cv_func_CFLocaleCopyCurrent=no
24662 fi
24663 rm -f core conftest.err conftest.$ac_objext \
24664     conftest$ac_exeext conftest.$ac_ext
24665      LIBS="$gt_save_LIBS"
24666 fi
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
24668 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
24669   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24670
24671 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
24672
24673   fi
24674   INTL_MACOSX_LIBS=
24675   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24676     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
24677   fi
24678
24679
24680
24681
24682
24683
24684   LIBINTL=
24685   LTLIBINTL=
24686   POSUB=
24687
24688     if test "$USE_NLS" = "yes"; then
24689     gt_use_preinstalled_gnugettext=no
24690
24691
24692
24693
24694
24695
24696         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
24697 $as_echo_n "checking for GNU gettext in libc... " >&6; }
24698 if ${gt_cv_func_gnugettext1_libc+:} false; then :
24699   $as_echo_n "(cached) " >&6
24700 else
24701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24702 /* end confdefs.h.  */
24703 #include <libintl.h>
24704 extern int _nl_msg_cat_cntr;
24705 extern int *_nl_domain_bindings;
24706 int
24707 main ()
24708 {
24709 bindtextdomain ("", "");
24710 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
24711   ;
24712   return 0;
24713 }
24714 _ACEOF
24715 if ac_fn_c_try_link "$LINENO"; then :
24716   gt_cv_func_gnugettext1_libc=yes
24717 else
24718   gt_cv_func_gnugettext1_libc=no
24719 fi
24720 rm -f core conftest.err conftest.$ac_objext \
24721     conftest$ac_exeext conftest.$ac_ext
24722 fi
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
24724 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
24725
24726         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
24727
24728
24729
24730
24731
24732           am_save_CPPFLAGS="$CPPFLAGS"
24733
24734   for element in $INCICONV; do
24735     haveit=
24736     for x in $CPPFLAGS; do
24737
24738   acl_save_prefix="$prefix"
24739   prefix="$acl_final_prefix"
24740   acl_save_exec_prefix="$exec_prefix"
24741   exec_prefix="$acl_final_exec_prefix"
24742   eval x=\"$x\"
24743   exec_prefix="$acl_save_exec_prefix"
24744   prefix="$acl_save_prefix"
24745
24746       if test "X$x" = "X$element"; then
24747         haveit=yes
24748         break
24749       fi
24750     done
24751     if test -z "$haveit"; then
24752       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24753     fi
24754   done
24755
24756
24757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
24758 $as_echo_n "checking for iconv... " >&6; }
24759 if ${am_cv_func_iconv+:} false; then :
24760   $as_echo_n "(cached) " >&6
24761 else
24762
24763     am_cv_func_iconv="no, consider installing GNU libiconv"
24764     am_cv_lib_iconv=no
24765     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24766 /* end confdefs.h.  */
24767 #include <stdlib.h>
24768 #include <iconv.h>
24769 int
24770 main ()
24771 {
24772 iconv_t cd = iconv_open("","");
24773        iconv(cd,NULL,NULL,NULL,NULL);
24774        iconv_close(cd);
24775   ;
24776   return 0;
24777 }
24778 _ACEOF
24779 if ac_fn_c_try_link "$LINENO"; then :
24780   am_cv_func_iconv=yes
24781 fi
24782 rm -f core conftest.err conftest.$ac_objext \
24783     conftest$ac_exeext conftest.$ac_ext
24784     if test "$am_cv_func_iconv" != yes; then
24785       am_save_LIBS="$LIBS"
24786       LIBS="$LIBS $LIBICONV"
24787       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24788 /* end confdefs.h.  */
24789 #include <stdlib.h>
24790 #include <iconv.h>
24791 int
24792 main ()
24793 {
24794 iconv_t cd = iconv_open("","");
24795          iconv(cd,NULL,NULL,NULL,NULL);
24796          iconv_close(cd);
24797   ;
24798   return 0;
24799 }
24800 _ACEOF
24801 if ac_fn_c_try_link "$LINENO"; then :
24802   am_cv_lib_iconv=yes
24803         am_cv_func_iconv=yes
24804 fi
24805 rm -f core conftest.err conftest.$ac_objext \
24806     conftest$ac_exeext conftest.$ac_ext
24807       LIBS="$am_save_LIBS"
24808     fi
24809
24810 fi
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
24812 $as_echo "$am_cv_func_iconv" >&6; }
24813   if test "$am_cv_func_iconv" = yes; then
24814
24815 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
24816
24817   fi
24818   if test "$am_cv_lib_iconv" = yes; then
24819     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
24820 $as_echo_n "checking how to link with libiconv... " >&6; }
24821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
24822 $as_echo "$LIBICONV" >&6; }
24823   else
24824             CPPFLAGS="$am_save_CPPFLAGS"
24825     LIBICONV=
24826     LTLIBICONV=
24827   fi
24828
24829
24830
24831
24832
24833
24834
24835     use_additional=yes
24836
24837   acl_save_prefix="$prefix"
24838   prefix="$acl_final_prefix"
24839   acl_save_exec_prefix="$exec_prefix"
24840   exec_prefix="$acl_final_exec_prefix"
24841
24842     eval additional_includedir=\"$includedir\"
24843     eval additional_libdir=\"$libdir\"
24844
24845   exec_prefix="$acl_save_exec_prefix"
24846   prefix="$acl_save_prefix"
24847
24848
24849 # Check whether --with-libintl-prefix was given.
24850 if test "${with_libintl_prefix+set}" = set; then :
24851   withval=$with_libintl_prefix;
24852     if test "X$withval" = "Xno"; then
24853       use_additional=no
24854     else
24855       if test "X$withval" = "X"; then
24856
24857   acl_save_prefix="$prefix"
24858   prefix="$acl_final_prefix"
24859   acl_save_exec_prefix="$exec_prefix"
24860   exec_prefix="$acl_final_exec_prefix"
24861
24862           eval additional_includedir=\"$includedir\"
24863           eval additional_libdir=\"$libdir\"
24864
24865   exec_prefix="$acl_save_exec_prefix"
24866   prefix="$acl_save_prefix"
24867
24868       else
24869         additional_includedir="$withval/include"
24870         additional_libdir="$withval/$acl_libdirstem"
24871       fi
24872     fi
24873
24874 fi
24875
24876       LIBINTL=
24877   LTLIBINTL=
24878   INCINTL=
24879   rpathdirs=
24880   ltrpathdirs=
24881   names_already_handled=
24882   names_next_round='intl '
24883   while test -n "$names_next_round"; do
24884     names_this_round="$names_next_round"
24885     names_next_round=
24886     for name in $names_this_round; do
24887       already_handled=
24888       for n in $names_already_handled; do
24889         if test "$n" = "$name"; then
24890           already_handled=yes
24891           break
24892         fi
24893       done
24894       if test -z "$already_handled"; then
24895         names_already_handled="$names_already_handled $name"
24896                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24897         eval value=\"\$HAVE_LIB$uppername\"
24898         if test -n "$value"; then
24899           if test "$value" = yes; then
24900             eval value=\"\$LIB$uppername\"
24901             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
24902             eval value=\"\$LTLIB$uppername\"
24903             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
24904           else
24905                                     :
24906           fi
24907         else
24908                               found_dir=
24909           found_la=
24910           found_so=
24911           found_a=
24912           if test $use_additional = yes; then
24913             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
24914               found_dir="$additional_libdir"
24915               found_so="$additional_libdir/lib$name.$shlibext"
24916               if test -f "$additional_libdir/lib$name.la"; then
24917                 found_la="$additional_libdir/lib$name.la"
24918               fi
24919             else
24920               if test -f "$additional_libdir/lib$name.$libext"; then
24921                 found_dir="$additional_libdir"
24922                 found_a="$additional_libdir/lib$name.$libext"
24923                 if test -f "$additional_libdir/lib$name.la"; then
24924                   found_la="$additional_libdir/lib$name.la"
24925                 fi
24926               fi
24927             fi
24928           fi
24929           if test "X$found_dir" = "X"; then
24930             for x in $LDFLAGS $LTLIBINTL; do
24931
24932   acl_save_prefix="$prefix"
24933   prefix="$acl_final_prefix"
24934   acl_save_exec_prefix="$exec_prefix"
24935   exec_prefix="$acl_final_exec_prefix"
24936   eval x=\"$x\"
24937   exec_prefix="$acl_save_exec_prefix"
24938   prefix="$acl_save_prefix"
24939
24940               case "$x" in
24941                 -L*)
24942                   dir=`echo "X$x" | sed -e 's/^X-L//'`
24943                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24944                     found_dir="$dir"
24945                     found_so="$dir/lib$name.$shlibext"
24946                     if test -f "$dir/lib$name.la"; then
24947                       found_la="$dir/lib$name.la"
24948                     fi
24949                   else
24950                     if test -f "$dir/lib$name.$libext"; then
24951                       found_dir="$dir"
24952                       found_a="$dir/lib$name.$libext"
24953                       if test -f "$dir/lib$name.la"; then
24954                         found_la="$dir/lib$name.la"
24955                       fi
24956                     fi
24957                   fi
24958                   ;;
24959               esac
24960               if test "X$found_dir" != "X"; then
24961                 break
24962               fi
24963             done
24964           fi
24965           if test "X$found_dir" != "X"; then
24966                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
24967             if test "X$found_so" != "X"; then
24968                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
24969                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24970               else
24971                                                                                 haveit=
24972                 for x in $ltrpathdirs; do
24973                   if test "X$x" = "X$found_dir"; then
24974                     haveit=yes
24975                     break
24976                   fi
24977                 done
24978                 if test -z "$haveit"; then
24979                   ltrpathdirs="$ltrpathdirs $found_dir"
24980                 fi
24981                                 if test "$hardcode_direct" = yes; then
24982                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24983                 else
24984                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24985                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24986                                                             haveit=
24987                     for x in $rpathdirs; do
24988                       if test "X$x" = "X$found_dir"; then
24989                         haveit=yes
24990                         break
24991                       fi
24992                     done
24993                     if test -z "$haveit"; then
24994                       rpathdirs="$rpathdirs $found_dir"
24995                     fi
24996                   else
24997                                                                                 haveit=
24998                     for x in $LDFLAGS $LIBINTL; do
24999
25000   acl_save_prefix="$prefix"
25001   prefix="$acl_final_prefix"
25002   acl_save_exec_prefix="$exec_prefix"
25003   exec_prefix="$acl_final_exec_prefix"
25004   eval x=\"$x\"
25005   exec_prefix="$acl_save_exec_prefix"
25006   prefix="$acl_save_prefix"
25007
25008                       if test "X$x" = "X-L$found_dir"; then
25009                         haveit=yes
25010                         break
25011                       fi
25012                     done
25013                     if test -z "$haveit"; then
25014                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
25015                     fi
25016                     if test "$hardcode_minus_L" != no; then
25017                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
25018                     else
25019                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
25020                     fi
25021                   fi
25022                 fi
25023               fi
25024             else
25025               if test "X$found_a" != "X"; then
25026                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
25027               else
25028                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
25029               fi
25030             fi
25031                         additional_includedir=
25032             case "$found_dir" in
25033               */$acl_libdirstem | */$acl_libdirstem/)
25034                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
25035                 additional_includedir="$basedir/include"
25036                 ;;
25037             esac
25038             if test "X$additional_includedir" != "X"; then
25039                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
25040                 haveit=
25041                 if test "X$additional_includedir" = "X/usr/local/include"; then
25042                   if test -n "$GCC"; then
25043                     case $host_os in
25044                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25045                     esac
25046                   fi
25047                 fi
25048                 if test -z "$haveit"; then
25049                   for x in $CPPFLAGS $INCINTL; do
25050
25051   acl_save_prefix="$prefix"
25052   prefix="$acl_final_prefix"
25053   acl_save_exec_prefix="$exec_prefix"
25054   exec_prefix="$acl_final_exec_prefix"
25055   eval x=\"$x\"
25056   exec_prefix="$acl_save_exec_prefix"
25057   prefix="$acl_save_prefix"
25058
25059                     if test "X$x" = "X-I$additional_includedir"; then
25060                       haveit=yes
25061                       break
25062                     fi
25063                   done
25064                   if test -z "$haveit"; then
25065                     if test -d "$additional_includedir"; then
25066                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
25067                     fi
25068                   fi
25069                 fi
25070               fi
25071             fi
25072                         if test -n "$found_la"; then
25073                                                         save_libdir="$libdir"
25074               case "$found_la" in
25075                 */* | *\\*) . "$found_la" ;;
25076                 *) . "./$found_la" ;;
25077               esac
25078               libdir="$save_libdir"
25079                             for dep in $dependency_libs; do
25080                 case "$dep" in
25081                   -L*)
25082                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25083                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
25084                       haveit=
25085                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
25086                         if test -n "$GCC"; then
25087                           case $host_os in
25088                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25089                           esac
25090                         fi
25091                       fi
25092                       if test -z "$haveit"; then
25093                         haveit=
25094                         for x in $LDFLAGS $LIBINTL; do
25095
25096   acl_save_prefix="$prefix"
25097   prefix="$acl_final_prefix"
25098   acl_save_exec_prefix="$exec_prefix"
25099   exec_prefix="$acl_final_exec_prefix"
25100   eval x=\"$x\"
25101   exec_prefix="$acl_save_exec_prefix"
25102   prefix="$acl_save_prefix"
25103
25104                           if test "X$x" = "X-L$additional_libdir"; then
25105                             haveit=yes
25106                             break
25107                           fi
25108                         done
25109                         if test -z "$haveit"; then
25110                           if test -d "$additional_libdir"; then
25111                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
25112                           fi
25113                         fi
25114                         haveit=
25115                         for x in $LDFLAGS $LTLIBINTL; do
25116
25117   acl_save_prefix="$prefix"
25118   prefix="$acl_final_prefix"
25119   acl_save_exec_prefix="$exec_prefix"
25120   exec_prefix="$acl_final_exec_prefix"
25121   eval x=\"$x\"
25122   exec_prefix="$acl_save_exec_prefix"
25123   prefix="$acl_save_prefix"
25124
25125                           if test "X$x" = "X-L$additional_libdir"; then
25126                             haveit=yes
25127                             break
25128                           fi
25129                         done
25130                         if test -z "$haveit"; then
25131                           if test -d "$additional_libdir"; then
25132                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
25133                           fi
25134                         fi
25135                       fi
25136                     fi
25137                     ;;
25138                   -R*)
25139                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
25140                     if test "$enable_rpath" != no; then
25141                                                                   haveit=
25142                       for x in $rpathdirs; do
25143                         if test "X$x" = "X$dir"; then
25144                           haveit=yes
25145                           break
25146                         fi
25147                       done
25148                       if test -z "$haveit"; then
25149                         rpathdirs="$rpathdirs $dir"
25150                       fi
25151                                                                   haveit=
25152                       for x in $ltrpathdirs; do
25153                         if test "X$x" = "X$dir"; then
25154                           haveit=yes
25155                           break
25156                         fi
25157                       done
25158                       if test -z "$haveit"; then
25159                         ltrpathdirs="$ltrpathdirs $dir"
25160                       fi
25161                     fi
25162                     ;;
25163                   -l*)
25164                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25165                     ;;
25166                   *.la)
25167                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25168                     ;;
25169                   *)
25170                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
25171                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
25172                     ;;
25173                 esac
25174               done
25175             fi
25176           else
25177                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
25178             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
25179           fi
25180         fi
25181       fi
25182     done
25183   done
25184   if test "X$rpathdirs" != "X"; then
25185     if test -n "$hardcode_libdir_separator"; then
25186                         alldirs=
25187       for found_dir in $rpathdirs; do
25188         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
25189       done
25190             acl_save_libdir="$libdir"
25191       libdir="$alldirs"
25192       eval flag=\"$hardcode_libdir_flag_spec\"
25193       libdir="$acl_save_libdir"
25194       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
25195     else
25196             for found_dir in $rpathdirs; do
25197         acl_save_libdir="$libdir"
25198         libdir="$found_dir"
25199         eval flag=\"$hardcode_libdir_flag_spec\"
25200         libdir="$acl_save_libdir"
25201         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
25202       done
25203     fi
25204   fi
25205   if test "X$ltrpathdirs" != "X"; then
25206             for found_dir in $ltrpathdirs; do
25207       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
25208     done
25209   fi
25210
25211           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
25212 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
25213 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
25214   $as_echo_n "(cached) " >&6
25215 else
25216   gt_save_CPPFLAGS="$CPPFLAGS"
25217             CPPFLAGS="$CPPFLAGS $INCINTL"
25218             gt_save_LIBS="$LIBS"
25219             LIBS="$LIBS $LIBINTL"
25220                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25221 /* end confdefs.h.  */
25222 #include <libintl.h>
25223 extern int _nl_msg_cat_cntr;
25224 extern
25225 #ifdef __cplusplus
25226 "C"
25227 #endif
25228 const char *_nl_expand_alias (const char *);
25229 int
25230 main ()
25231 {
25232 bindtextdomain ("", "");
25233 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
25234   ;
25235   return 0;
25236 }
25237 _ACEOF
25238 if ac_fn_c_try_link "$LINENO"; then :
25239   gt_cv_func_gnugettext1_libintl=yes
25240 else
25241   gt_cv_func_gnugettext1_libintl=no
25242 fi
25243 rm -f core conftest.err conftest.$ac_objext \
25244     conftest$ac_exeext conftest.$ac_ext
25245                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
25246               LIBS="$LIBS $LIBICONV"
25247               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25248 /* end confdefs.h.  */
25249 #include <libintl.h>
25250 extern int _nl_msg_cat_cntr;
25251 extern
25252 #ifdef __cplusplus
25253 "C"
25254 #endif
25255 const char *_nl_expand_alias (const char *);
25256 int
25257 main ()
25258 {
25259 bindtextdomain ("", "");
25260 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
25261   ;
25262   return 0;
25263 }
25264 _ACEOF
25265 if ac_fn_c_try_link "$LINENO"; then :
25266   LIBINTL="$LIBINTL $LIBICONV"
25267                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
25268                 gt_cv_func_gnugettext1_libintl=yes
25269
25270 fi
25271 rm -f core conftest.err conftest.$ac_objext \
25272     conftest$ac_exeext conftest.$ac_ext
25273             fi
25274             CPPFLAGS="$gt_save_CPPFLAGS"
25275             LIBS="$gt_save_LIBS"
25276 fi
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
25278 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
25279         fi
25280
25281                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
25282            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
25283                 && test "$PACKAGE" != gettext-runtime \
25284                 && test "$PACKAGE" != gettext-tools; }; then
25285           gt_use_preinstalled_gnugettext=yes
25286         else
25287                     LIBINTL=
25288           LTLIBINTL=
25289           INCINTL=
25290         fi
25291
25292
25293
25294     if test -n "$INTL_MACOSX_LIBS"; then
25295       if test "$gt_use_preinstalled_gnugettext" = "yes" \
25296          || test "$nls_cv_use_gnu_gettext" = "yes"; then
25297                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
25298         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
25299       fi
25300     fi
25301
25302     if test "$gt_use_preinstalled_gnugettext" = "yes" \
25303        || test "$nls_cv_use_gnu_gettext" = "yes"; then
25304
25305 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
25306
25307     else
25308       USE_NLS=no
25309     fi
25310   fi
25311
25312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
25313 $as_echo_n "checking whether to use NLS... " >&6; }
25314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
25315 $as_echo "$USE_NLS" >&6; }
25316   if test "$USE_NLS" = "yes"; then
25317     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
25318 $as_echo_n "checking where the gettext function comes from... " >&6; }
25319     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25320       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
25321         gt_source="external libintl"
25322       else
25323         gt_source="libc"
25324       fi
25325     else
25326       gt_source="included intl directory"
25327     fi
25328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
25329 $as_echo "$gt_source" >&6; }
25330   fi
25331
25332   if test "$USE_NLS" = "yes"; then
25333
25334     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25335       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
25336         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
25337 $as_echo_n "checking how to link with libintl... " >&6; }
25338         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
25339 $as_echo "$LIBINTL" >&6; }
25340
25341   for element in $INCINTL; do
25342     haveit=
25343     for x in $CPPFLAGS; do
25344
25345   acl_save_prefix="$prefix"
25346   prefix="$acl_final_prefix"
25347   acl_save_exec_prefix="$exec_prefix"
25348   exec_prefix="$acl_final_exec_prefix"
25349   eval x=\"$x\"
25350   exec_prefix="$acl_save_exec_prefix"
25351   prefix="$acl_save_prefix"
25352
25353       if test "X$x" = "X$element"; then
25354         haveit=yes
25355         break
25356       fi
25357     done
25358     if test -z "$haveit"; then
25359       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25360     fi
25361   done
25362
25363       fi
25364
25365
25366 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
25367
25368
25369 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
25370
25371     fi
25372
25373         POSUB=po
25374   fi
25375
25376
25377
25378     INTLLIBS="$LIBINTL"
25379
25380
25381
25382
25383
25384
25385
25386 #
25387 # Security (authentication) mechansims
25388 #
25389
25390     BSD_SECURITY="yes"
25391
25392 # Check whether --with-bsd-security was given.
25393 if test "${with_bsd_security+set}" = set; then :
25394   withval=$with_bsd_security;
25395             case "$withval" in
25396                 n | no) BSD_SECURITY=no ;;
25397                 y |  ye | yes) BSD_SECURITY=yes ;;
25398                 *) as_fn_error $? "*** You must not supply an argument to --without-bsd-security." "$LINENO" 5
25399                     ;;
25400             esac
25401
25402 fi
25403
25404
25405     USE_AMANDAHOSTS=yes
25406
25407 # Check whether --with-amandahosts was given.
25408 if test "${with_amandahosts+set}" = set; then :
25409   withval=$with_amandahosts;
25410             case "$withval" in
25411                 n | no ) USE_AMANDAHOSTS=no ;;
25412                 y |  ye | yes) USE_AMANDAHOSTS=yes ;;
25413                 *) as_fn_error $? "*** You must not supply an argument to --without-amandahosts option." "$LINENO" 5
25414                   ;;
25415             esac
25416
25417
25418 fi
25419
25420
25421     if test "x$BSD_SECURITY" = "xyes"; then
25422
25423 $as_echo "#define BSD_SECURITY 1" >>confdefs.h
25424
25425         if test "x$USE_AMANDAHOSTS" = "xyes"; then
25426
25427 $as_echo "#define USE_AMANDAHOSTS 1" >>confdefs.h
25428
25429         fi
25430     fi
25431
25432      if test x"$BSD_SECURITY" = x"yes"; then
25433   WANT_BSD_SECURITY_TRUE=
25434   WANT_BSD_SECURITY_FALSE='#'
25435 else
25436   WANT_BSD_SECURITY_TRUE='#'
25437   WANT_BSD_SECURITY_FALSE=
25438 fi
25439
25440
25441
25442
25443
25444     BSDTCP_SECURITY="yes"
25445
25446 # Check whether --with-bsdtcp-security was given.
25447 if test "${with_bsdtcp_security+set}" = set; then :
25448   withval=$with_bsdtcp_security;
25449             case "$withval" in
25450                 n | no) BSDTCP_SECURITY=no ;;
25451                 y |  ye | yes) BSDTCP_SECURITY=yes ;;
25452                 *) as_fn_error $? "*** You must not supply an argument to --with-bsdtcp-security." "$LINENO" 5
25453               ;;
25454             esac
25455
25456 fi
25457
25458
25459     if test "x$BSDTCP_SECURITY" = "xyes"; then
25460
25461 $as_echo "#define BSDTCP_SECURITY 1" >>confdefs.h
25462
25463     fi
25464
25465      if test x"$BSDTCP_SECURITY" = x"yes"; then
25466   WANT_BSDTCP_SECURITY_TRUE=
25467   WANT_BSDTCP_SECURITY_FALSE='#'
25468 else
25469   WANT_BSDTCP_SECURITY_TRUE='#'
25470   WANT_BSDTCP_SECURITY_FALSE=
25471 fi
25472
25473
25474
25475
25476     BSDUDP_SECURITY="no"
25477
25478 # Check whether --with-bsdudp-security was given.
25479 if test "${with_bsdudp_security+set}" = set; then :
25480   withval=$with_bsdudp_security;
25481             case "$withval" in
25482                 n | no) : ;;
25483                 y |  ye | yes) BSDUDP_SECURITY=yes ;;
25484                 *) as_fn_error $? "*** You must not supply an argument to --with-bsdudp-security." "$LINENO" 5
25485               ;;
25486             esac
25487
25488 fi
25489
25490
25491     if test "x$BSDUDP_SECURITY" = "xyes"; then
25492
25493 $as_echo "#define BSDUDP_SECURITY 1" >>confdefs.h
25494
25495     fi
25496
25497      if test x"$BSDUDP_SECURITY" = x"yes"; then
25498   WANT_BSDUDP_SECURITY_TRUE=
25499   WANT_BSDUDP_SECURITY_FALSE='#'
25500 else
25501   WANT_BSDUDP_SECURITY_TRUE='#'
25502   WANT_BSDUDP_SECURITY_FALSE=
25503 fi
25504
25505
25506
25507
25508     RSH_SECURITY=no
25509
25510 # Check whether --with-rsh-security was given.
25511 if test "${with_rsh_security+set}" = set; then :
25512   withval=$with_rsh_security;
25513             case "$withval" in
25514                 n | no) : ;;
25515                 y |  ye | yes) RSH_SECURITY=yes ;;
25516                 *) as_fn_error $? "*** You must not supply an argument to --with-rsh-security." "$LINENO" 5
25517               ;;
25518             esac
25519
25520 fi
25521
25522
25523     if test "x$RSH_SECURITY" = "xyes"; then
25524
25525 $as_echo "#define RSH_SECURITY 1" >>confdefs.h
25526
25527     fi
25528      if test x"$RSH_SECURITY" = x"yes"; then
25529   WANT_RSH_SECURITY_TRUE=
25530   WANT_RSH_SECURITY_FALSE='#'
25531 else
25532   WANT_RSH_SECURITY_TRUE='#'
25533   WANT_RSH_SECURITY_FALSE=
25534 fi
25535
25536
25537
25538
25539     SSH_SECURITY=yes
25540
25541 # Check whether --with-ssh-security was given.
25542 if test "${with_ssh_security+set}" = set; then :
25543   withval=$with_ssh_security;
25544             case "$withval" in
25545                 n | no) SSH_SECURITY=no ;;
25546                 y |  ye | yes) SSH_SECURITY=yes ;;
25547                 *) as_fn_error $? "*** You must not supply an argument to --with-ssh-security." "$LINENO" 5
25548               ;;
25549             esac
25550
25551 fi
25552
25553
25554     if test "x$SSH_SECURITY" = "xyes"; then
25555         # find the SSH binary
25556         for ac_prog in ssh
25557 do
25558   # Extract the first word of "$ac_prog", so it can be a program name with args.
25559 set dummy $ac_prog; ac_word=$2
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25561 $as_echo_n "checking for $ac_word... " >&6; }
25562 if ${ac_cv_path_SSH+:} false; then :
25563   $as_echo_n "(cached) " >&6
25564 else
25565   case $SSH in
25566   [\\/]* | ?:[\\/]*)
25567   ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
25568   ;;
25569   *)
25570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25571 for as_dir in $LOCSYSPATH
25572 do
25573   IFS=$as_save_IFS
25574   test -z "$as_dir" && as_dir=.
25575     for ac_exec_ext in '' $ac_executable_extensions; do
25576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25577     ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
25578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25579     break 2
25580   fi
25581 done
25582   done
25583 IFS=$as_save_IFS
25584
25585   ;;
25586 esac
25587 fi
25588 SSH=$ac_cv_path_SSH
25589 if test -n "$SSH"; then
25590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSH" >&5
25591 $as_echo "$SSH" >&6; }
25592 else
25593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25594 $as_echo "no" >&6; }
25595 fi
25596
25597
25598   test -n "$SSH" && break
25599 done
25600
25601
25602         # see what options we should use
25603
25604 # Check whether --with-ssh-options was given.
25605 if test "${with_ssh_options+set}" = set; then :
25606   withval=$with_ssh_options;  SSH_OPTIONS="$withval"
25607 else
25608    SSH_OPTIONS=''
25609
25610 fi
25611
25612
25613         case "$SSH_OPTIONS" in
25614             y | ye | yes | n | no)
25615                 as_fn_error $? "*** You must supply an argument to --with-ssh-options." "$LINENO" 5;;
25616             *) : ;;
25617         esac
25618
25619         { $as_echo "$as_me:${as_lineno-$LINENO}: checking SSH options" >&5
25620 $as_echo_n "checking SSH options... " >&6; }
25621         # if we didn't get SSH options from the user, figure them out for ourselves
25622         if test -z "$SSH_OPTIONS"; then
25623             case `$SSH -V 2>&1` in
25624                 OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
25625                 *) SSH_OPTIONS='-x -o BatchMode=yes' ;;
25626             esac
25627         fi
25628
25629         # now convert that to a comma-separated list of C strings
25630         eval "set dummy ${SSH_OPTIONS}"; shift
25631         SSH_OPTIONS=''
25632         for i in "${@}"; do
25633             quoted="\"`echo "$i" | sed -e 's/\"/\\\"/'`\""
25634             SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }$quoted";
25635         done
25636         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSH_OPTIONS" >&5
25637 $as_echo "$SSH_OPTIONS" >&6; }
25638
25639         # finally, make the various outputs for all of this
25640
25641 $as_echo "#define SSH_SECURITY 1" >>confdefs.h
25642
25643
25644 cat >>confdefs.h <<_ACEOF
25645 #define SSH "$SSH"
25646 _ACEOF
25647
25648
25649 cat >>confdefs.h <<_ACEOF
25650 #define SSH_OPTIONS $SSH_OPTIONS
25651 _ACEOF
25652
25653     fi
25654      if test x"$SSH_SECURITY" = x"yes"; then
25655   WANT_SSH_SECURITY_TRUE=
25656   WANT_SSH_SECURITY_FALSE='#'
25657 else
25658   WANT_SSH_SECURITY_TRUE='#'
25659   WANT_SSH_SECURITY_FALSE=
25660 fi
25661
25662
25663
25664     # (note -- don't just substitute SSH_OPTIONS -- shell quoting will break)
25665
25666
25667     # Specify --with-krb5-security if Kerberos software is in somewhere
25668     # other than the listed KRB5_SPOTS.  We only compile kerberos support in
25669     # if the right files are there.
25670
25671     KRB5_SECURITY="no"
25672     : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
25673
25674
25675 # Check whether --with-krb5-security was given.
25676 if test "${with_krb5_security+set}" = set; then :
25677   withval=$with_krb5_security;
25678             case "$withval" in
25679                 n | no) KRB5_SECURITY=no ;;
25680                 y | ye | yes) KRB5_SECURITY=yes ;;
25681                 *) KRB5_SPOTS="$KRB5_SECURITY"
25682                    KRB5_SECURITY=yes
25683                    ;;
25684             esac
25685
25686
25687 fi
25688
25689
25690     if test "x$KRB5_SECURITY" = "xyes"; then
25691         # if found, force the static versions of these libs (.a) by linking directly
25692         # with the .a files.  I don't know how to get -R dependancies checked
25693         # in autoconf at this time. -kashmir
25694         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos V libraries" >&5
25695 $as_echo_n "checking for Kerberos V libraries... " >&6; }
25696         KRB5_DIR_FOUND=""
25697         for dir in $KRB5_SPOTS; do
25698           for lib in lib lib64; do
25699             k5libdir=${dir}/${lib}
25700             if test \( -f ${k5libdir}/libkrb5.a -o -f ${k5libdir}/libkrb5.so \) -a \( -f ${k5libdir}/libgssapi_krb5.so -o -f ${k5libdir}/libgssapi_krb5.a \) -a \( -f ${k5libdir}/libcom_err.a -o -f ${k5libdir}/libcom_err.so \); then
25701                 if test -f ${k5libdir}/libk5crypto.a -o -f ${k5libdir}/libk5crypto.so; then
25702                     K5CRYPTO=-lk5crypto
25703                 elif test -f ${k5libdir}/libcrypto.a -o -f ${k5libdir}/libcrypto.so; then
25704                     K5CRYPTO=-lcrypto
25705                 else
25706                     K5CRYPTO=""
25707                 fi
25708                 if test -f ${k5libdir}/libkrb5support.a -o -f ${k5libdir}/libkrb5support.so; then
25709                     K5SUPPORT=-lkrb5support
25710                 else
25711                     K5SUPPORT=""
25712                 fi
25713                 KRB5_DIR_FOUND=$dir
25714                 KRB5_LIBDIR_FOUND=$k5libdir
25715                 LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err $LIBS"
25716
25717                 break
25718             elif test \( -f ${k5libdir}/libkrb5.a -o -f ${k5libdir}/libkrb5.so \) -a \( -f ${k5libdir}/libasn1.a -o -f ${k5libdir}/libasn1.so \) -a \( -f ${k5libdir}/libgssapi.a -o -f ${k5libdir}/libgssapi.so \); then
25719                 LIBS="-lgssapi -lkrb5 -lasn1 $LIBS"
25720
25721                 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL_INCLUDES"
25722
25723                 break
25724             fi
25725           done
25726         done
25727
25728         if test "$KRB5_DIR_FOUND"; then
25729             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $KRB5_DIR_FOUND" >&5
25730 $as_echo "found in $KRB5_DIR_FOUND" >&6; }
25731             #
25732             # some OS's, such as NetBSD, stick krb5 includes out of the way...
25733             # should probably just use autoconf to look for various include
25734             # options and set them, but don't quite want to do that until I've
25735             # dug into it a bit more.
25736             #
25737             if test -d "$KRB5_DIR_FOUND/krb5" ; then
25738                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include/krb5"
25739
25740             else
25741                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include"
25742
25743             fi
25744                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
25745 $as_echo_n "checking for main in -lkrb5support... " >&6; }
25746 if ${ac_cv_lib_krb5support_main+:} false; then :
25747   $as_echo_n "(cached) " >&6
25748 else
25749   ac_check_lib_save_LIBS=$LIBS
25750 LIBS="-lkrb5support  $LIBS"
25751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25752 /* end confdefs.h.  */
25753
25754
25755 int
25756 main ()
25757 {
25758 return main ();
25759   ;
25760   return 0;
25761 }
25762 _ACEOF
25763 if ac_fn_c_try_link "$LINENO"; then :
25764   ac_cv_lib_krb5support_main=yes
25765 else
25766   ac_cv_lib_krb5support_main=no
25767 fi
25768 rm -f core conftest.err conftest.$ac_objext \
25769     conftest$ac_exeext conftest.$ac_ext
25770 LIBS=$ac_check_lib_save_LIBS
25771 fi
25772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
25773 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
25774 if test "x$ac_cv_lib_krb5support_main" = xyes; then :
25775   cat >>confdefs.h <<_ACEOF
25776 #define HAVE_LIBKRB5SUPPORT 1
25777 _ACEOF
25778
25779   LIBS="-lkrb5support $LIBS"
25780
25781 fi
25782
25783
25784             if test "$KRB5_LIBDIR_FOUND" != "$libdir" ; then
25785                 LDFLAGS="$LDFLAGS -L$KRB5_LIBDIR_FOUND"
25786
25787             fi
25788
25789
25790 $as_echo "#define KRB5_SECURITY 1" >>confdefs.h
25791
25792         else
25793             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no krb5 system libraries found" >&5
25794 $as_echo "no krb5 system libraries found" >&6; }
25795             as_fn_error $? "No Kerberos V libraries were found on your system; krb5-security cannot be enabled" "$LINENO" 5
25796             KRB5_SECURITY="no"
25797         fi
25798     fi
25799
25800      if test x"$KRB5_SECURITY" = x"yes"; then
25801   WANT_KRB5_SECURITY_TRUE=
25802   WANT_KRB5_SECURITY_FALSE='#'
25803 else
25804   WANT_KRB5_SECURITY_TRUE='#'
25805   WANT_KRB5_SECURITY_FALSE=
25806 fi
25807
25808
25809
25810
25811 #
25812 # Dumpers
25813 #
25814
25815
25816
25817     for ac_prog in xfsdump
25818 do
25819   # Extract the first word of "$ac_prog", so it can be a program name with args.
25820 set dummy $ac_prog; ac_word=$2
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25822 $as_echo_n "checking for $ac_word... " >&6; }
25823 if ${ac_cv_path_XFSDUMP+:} false; then :
25824   $as_echo_n "(cached) " >&6
25825 else
25826   case $XFSDUMP in
25827   [\\/]* | ?:[\\/]*)
25828   ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
25829   ;;
25830   *)
25831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25832 for as_dir in $SYSLOCPATH
25833 do
25834   IFS=$as_save_IFS
25835   test -z "$as_dir" && as_dir=.
25836     for ac_exec_ext in '' $ac_executable_extensions; do
25837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25838     ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
25839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25840     break 2
25841   fi
25842 done
25843   done
25844 IFS=$as_save_IFS
25845
25846   ;;
25847 esac
25848 fi
25849 XFSDUMP=$ac_cv_path_XFSDUMP
25850 if test -n "$XFSDUMP"; then
25851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFSDUMP" >&5
25852 $as_echo "$XFSDUMP" >&6; }
25853 else
25854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25855 $as_echo "no" >&6; }
25856 fi
25857
25858
25859   test -n "$XFSDUMP" && break
25860 done
25861
25862     for ac_prog in xfsrestore
25863 do
25864   # Extract the first word of "$ac_prog", so it can be a program name with args.
25865 set dummy $ac_prog; ac_word=$2
25866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25867 $as_echo_n "checking for $ac_word... " >&6; }
25868 if ${ac_cv_path_XFSRESTORE+:} false; then :
25869   $as_echo_n "(cached) " >&6
25870 else
25871   case $XFSRESTORE in
25872   [\\/]* | ?:[\\/]*)
25873   ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
25874   ;;
25875   *)
25876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25877 for as_dir in $SYSLOCPATH
25878 do
25879   IFS=$as_save_IFS
25880   test -z "$as_dir" && as_dir=.
25881     for ac_exec_ext in '' $ac_executable_extensions; do
25882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25883     ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
25884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25885     break 2
25886   fi
25887 done
25888   done
25889 IFS=$as_save_IFS
25890
25891   ;;
25892 esac
25893 fi
25894 XFSRESTORE=$ac_cv_path_XFSRESTORE
25895 if test -n "$XFSRESTORE"; then
25896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFSRESTORE" >&5
25897 $as_echo "$XFSRESTORE" >&6; }
25898 else
25899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25900 $as_echo "no" >&6; }
25901 fi
25902
25903
25904   test -n "$XFSRESTORE" && break
25905 done
25906
25907     if test "$XFSDUMP" -a "$XFSRESTORE"; then
25908
25909 cat >>confdefs.h <<_ACEOF
25910 #define XFSDUMP "$XFSDUMP"
25911 _ACEOF
25912
25913
25914 cat >>confdefs.h <<_ACEOF
25915 #define XFSRESTORE "$XFSRESTORE"
25916 _ACEOF
25917
25918
25919     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h" >&5
25920 $as_echo "$as_me: WARNING: xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h" >&2;}
25921
25922
25923     cat <<AAW_EOF >>config.warnings
25924 xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h
25925 AAW_EOF
25926
25927
25928     fi
25929
25930
25931
25932
25933     # Extract the first word of "vxdump", so it can be a program name with args.
25934 set dummy vxdump; ac_word=$2
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25936 $as_echo_n "checking for $ac_word... " >&6; }
25937 if ${ac_cv_path_VXDUMP+:} false; then :
25938   $as_echo_n "(cached) " >&6
25939 else
25940   case $VXDUMP in
25941   [\\/]* | ?:[\\/]*)
25942   ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
25943   ;;
25944   *)
25945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25946 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
25947 for as_dir in $as_dummy
25948 do
25949   IFS=$as_save_IFS
25950   test -z "$as_dir" && as_dir=.
25951     for ac_exec_ext in '' $ac_executable_extensions; do
25952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25953     ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
25954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25955     break 2
25956   fi
25957 done
25958   done
25959 IFS=$as_save_IFS
25960
25961   ;;
25962 esac
25963 fi
25964 VXDUMP=$ac_cv_path_VXDUMP
25965 if test -n "$VXDUMP"; then
25966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VXDUMP" >&5
25967 $as_echo "$VXDUMP" >&6; }
25968 else
25969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25970 $as_echo "no" >&6; }
25971 fi
25972
25973
25974     # Extract the first word of "vxrestore", so it can be a program name with args.
25975 set dummy vxrestore; ac_word=$2
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25977 $as_echo_n "checking for $ac_word... " >&6; }
25978 if ${ac_cv_path_VXRESTORE+:} false; then :
25979   $as_echo_n "(cached) " >&6
25980 else
25981   case $VXRESTORE in
25982   [\\/]* | ?:[\\/]*)
25983   ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
25984   ;;
25985   *)
25986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25987 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
25988 for as_dir in $as_dummy
25989 do
25990   IFS=$as_save_IFS
25991   test -z "$as_dir" && as_dir=.
25992     for ac_exec_ext in '' $ac_executable_extensions; do
25993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25994     ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
25995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25996     break 2
25997   fi
25998 done
25999   done
26000 IFS=$as_save_IFS
26001
26002   ;;
26003 esac
26004 fi
26005 VXRESTORE=$ac_cv_path_VXRESTORE
26006 if test -n "$VXRESTORE"; then
26007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VXRESTORE" >&5
26008 $as_echo "$VXRESTORE" >&6; }
26009 else
26010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26011 $as_echo "no" >&6; }
26012 fi
26013
26014
26015     if test "$VXDUMP" -a "$VXRESTORE"; then
26016
26017 cat >>confdefs.h <<_ACEOF
26018 #define VXDUMP "$VXDUMP"
26019 _ACEOF
26020
26021
26022 cat >>confdefs.h <<_ACEOF
26023 #define VXRESTORE "$VXRESTORE"
26024 _ACEOF
26025
26026     fi
26027
26028
26029
26030
26031     # Extract the first word of "vdump", so it can be a program name with args.
26032 set dummy vdump; ac_word=$2
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26034 $as_echo_n "checking for $ac_word... " >&6; }
26035 if ${ac_cv_path_VDUMP+:} false; then :
26036   $as_echo_n "(cached) " >&6
26037 else
26038   case $VDUMP in
26039   [\\/]* | ?:[\\/]*)
26040   ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
26041   ;;
26042   *)
26043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26044 for as_dir in $SYSLOCPATH
26045 do
26046   IFS=$as_save_IFS
26047   test -z "$as_dir" && as_dir=.
26048     for ac_exec_ext in '' $ac_executable_extensions; do
26049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26050     ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
26051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26052     break 2
26053   fi
26054 done
26055   done
26056 IFS=$as_save_IFS
26057
26058   ;;
26059 esac
26060 fi
26061 VDUMP=$ac_cv_path_VDUMP
26062 if test -n "$VDUMP"; then
26063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VDUMP" >&5
26064 $as_echo "$VDUMP" >&6; }
26065 else
26066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26067 $as_echo "no" >&6; }
26068 fi
26069
26070
26071     # Extract the first word of "vrestore", so it can be a program name with args.
26072 set dummy vrestore; ac_word=$2
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26074 $as_echo_n "checking for $ac_word... " >&6; }
26075 if ${ac_cv_path_VRESTORE+:} false; then :
26076   $as_echo_n "(cached) " >&6
26077 else
26078   case $VRESTORE in
26079   [\\/]* | ?:[\\/]*)
26080   ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
26081   ;;
26082   *)
26083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26084 for as_dir in $SYSLOCPATH
26085 do
26086   IFS=$as_save_IFS
26087   test -z "$as_dir" && as_dir=.
26088     for ac_exec_ext in '' $ac_executable_extensions; do
26089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26090     ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
26091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26092     break 2
26093   fi
26094 done
26095   done
26096 IFS=$as_save_IFS
26097
26098   ;;
26099 esac
26100 fi
26101 VRESTORE=$ac_cv_path_VRESTORE
26102 if test -n "$VRESTORE"; then
26103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VRESTORE" >&5
26104 $as_echo "$VRESTORE" >&6; }
26105 else
26106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26107 $as_echo "no" >&6; }
26108 fi
26109
26110
26111     if test "$VDUMP" -a "$VRESTORE"; then
26112
26113 cat >>confdefs.h <<_ACEOF
26114 #define VDUMP "$VDUMP"
26115 _ACEOF
26116
26117
26118 cat >>confdefs.h <<_ACEOF
26119 #define VRESTORE "$VRESTORE"
26120 _ACEOF
26121
26122     fi
26123
26124
26125
26126
26127
26128     # Set the order of dump programs to look for.  Finding the proper file
26129     # system dumping program is problematic.  Some systems, notably HP-UX
26130     # and AIX, have both the backup and dump programs.  HP-UX can't use the
26131     # the backup program while AIX systems can't use the dump program.  So
26132     # a variable is set up here to specify the order of dump programs to
26133     # search for on the system.
26134     DUMP_PROGRAMS="ufsdump dump backup"
26135     DUMP_RETURNS_1=
26136     AIX_BACKUP=
26137     case "$host" in
26138         *-dg-*)
26139             DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
26140             DUMP_RETURNS_1=1
26141             ;;
26142       *-ibm-aix*)
26143             DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
26144             AIX_BACKUP=1
26145
26146 $as_echo "#define AIX_BACKUP 1" >>confdefs.h
26147
26148             ;;
26149       *-ultrix*)
26150             DUMP_RETURNS_1=1
26151             ;;
26152     esac
26153
26154     if test -n "$DUMP_RETURNS_1"; then
26155
26156 $as_echo "#define DUMP_RETURNS_1 1" >>confdefs.h
26157
26158     fi
26159
26160     for ac_prog in $DUMP_PROGRAMS
26161 do
26162   # Extract the first word of "$ac_prog", so it can be a program name with args.
26163 set dummy $ac_prog; ac_word=$2
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26165 $as_echo_n "checking for $ac_word... " >&6; }
26166 if ${ac_cv_path_DUMP+:} false; then :
26167   $as_echo_n "(cached) " >&6
26168 else
26169   case $DUMP in
26170   [\\/]* | ?:[\\/]*)
26171   ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
26172   ;;
26173   *)
26174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26175 for as_dir in $SYSLOCPATH
26176 do
26177   IFS=$as_save_IFS
26178   test -z "$as_dir" && as_dir=.
26179     for ac_exec_ext in '' $ac_executable_extensions; do
26180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26181     ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
26182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26183     break 2
26184   fi
26185 done
26186   done
26187 IFS=$as_save_IFS
26188
26189   ;;
26190 esac
26191 fi
26192 DUMP=$ac_cv_path_DUMP
26193 if test -n "$DUMP"; then
26194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMP" >&5
26195 $as_echo "$DUMP" >&6; }
26196 else
26197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26198 $as_echo "no" >&6; }
26199 fi
26200
26201
26202   test -n "$DUMP" && break
26203 done
26204
26205     for ac_prog in ufsrestore restore
26206 do
26207   # Extract the first word of "$ac_prog", so it can be a program name with args.
26208 set dummy $ac_prog; ac_word=$2
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26210 $as_echo_n "checking for $ac_word... " >&6; }
26211 if ${ac_cv_path_RESTORE+:} false; then :
26212   $as_echo_n "(cached) " >&6
26213 else
26214   case $RESTORE in
26215   [\\/]* | ?:[\\/]*)
26216   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
26217   ;;
26218   *)
26219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26220 for as_dir in $SYSLOCPATH
26221 do
26222   IFS=$as_save_IFS
26223   test -z "$as_dir" && as_dir=.
26224     for ac_exec_ext in '' $ac_executable_extensions; do
26225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26226     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
26227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26228     break 2
26229   fi
26230 done
26231   done
26232 IFS=$as_save_IFS
26233
26234   ;;
26235 esac
26236 fi
26237 RESTORE=$ac_cv_path_RESTORE
26238 if test -n "$RESTORE"; then
26239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESTORE" >&5
26240 $as_echo "$RESTORE" >&6; }
26241 else
26242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26243 $as_echo "no" >&6; }
26244 fi
26245
26246
26247   test -n "$RESTORE" && break
26248 done
26249
26250
26251     # newer versions of GNU tar include a program named 'backup' which
26252     # does *not* implement the expected 'dump' interface.  Detect that here
26253     # and pretend we never saw it.
26254     if test -n "$DUMP"; then
26255       if test "`basename $DUMP`" = "backup"; then
26256         backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
26257         if test $? -eq 0; then
26258           DUMP=
26259         fi
26260       fi
26261     fi
26262
26263     if test "$DUMP" -a "$RESTORE"; then
26264
26265 cat >>confdefs.h <<_ACEOF
26266 #define DUMP "$DUMP"
26267 _ACEOF
26268
26269
26270 cat >>confdefs.h <<_ACEOF
26271 #define RESTORE "$RESTORE"
26272 _ACEOF
26273
26274
26275         # check for an estimate flag
26276         if test -x $DUMP; then
26277             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DUMP supports -E or -S for estimates" >&5
26278 $as_echo_n "checking whether $DUMP supports -E or -S for estimates... " >&6; }
26279 if ${amanda_cv_dump_estimate+:} false; then :
26280   $as_echo_n "(cached) " >&6
26281 else
26282
26283                     case "$DUMP" in
26284                     *dump)
26285                         { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
26286                             | $GREP -v Dumping
26287                             | $GREP -v Date
26288                             | $GREP -v Label >conftest.d-E 2>&1'
26289   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26290   (eval $ac_try) 2>&5
26291   ac_status=$?
26292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26293   test $ac_status = 0; }; }
26294                         cat conftest.d-E >&5
26295                         { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
26296                             | $GREP -v Dumping
26297                             | $GREP -v Date
26298                             | $GREP -v Label >conftest.d-S 2>&1'
26299   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26300   (eval $ac_try) 2>&5
26301   ac_status=$?
26302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26303   test $ac_status = 0; }; }
26304                         cat conftest.d-S >&5
26305                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
26306                             | $GREP -v Dumping
26307                             | $GREP -v Date
26308                             | $GREP -v Label >conftest.d 2>&1'
26309   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26310   (eval $ac_try) 2>&5
26311   ac_status=$?
26312   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26313   test $ac_status = 0; }; }
26314                         cat conftest.d >&5
26315                         if { ac_try='cmp conftest.d-E conftest.d 1>&2'
26316   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26317   (eval $ac_try) 2>&5
26318   ac_status=$?
26319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26320   test $ac_status = 0; }; }; then
26321                             amanda_cv_dump_estimate=E
26322                         elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
26323   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26324   (eval $ac_try) 2>&5
26325   ac_status=$?
26326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26327   test $ac_status = 0; }; }; then
26328                             amanda_cv_dump_estimate=S
26329                         else
26330                             amanda_cv_dump_estimate=no
26331                         fi
26332                         rm -f conftest.d conftest.d-E conftest.d-S
26333                       ;;
26334                     *) amanda_cv_dump_estimate=no
26335                       ;;
26336                     esac
26337
26338 fi
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_dump_estimate" >&5
26340 $as_echo "$amanda_cv_dump_estimate" >&6; }
26341         else
26342
26343     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $DUMP is not executable, cannot run -E/-S test" >&5
26344 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -E/-S test" >&2;}
26345
26346
26347     cat <<AAW_EOF >>config.warnings
26348 $DUMP is not executable, cannot run -E/-S test
26349 AAW_EOF
26350
26351
26352             amanda_cv_dump_estimate=no
26353         fi
26354         if test "x$amanda_cv_dump_estimate" != xno; then
26355
26356 cat >>confdefs.h <<_ACEOF
26357 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
26358 _ACEOF
26359
26360         fi
26361
26362
26363 # Check whether --with-dump-honor-nodump was given.
26364 if test "${with_dump_honor_nodump+set}" = set; then :
26365   withval=$with_dump_honor_nodump;
26366             if test -x $DUMP; then
26367                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DUMP supports -h (honor nodump flag)" >&5
26368 $as_echo_n "checking whether $DUMP supports -h (honor nodump flag)... " >&6; }
26369 if ${amanda_cv_honor_nodump+:} false; then :
26370   $as_echo_n "(cached) " >&6
26371 else
26372
26373                     case "$DUMP" in
26374                     *dump)
26375                         { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
26376                             | $GREP -v Dumping
26377                             | $GREP -v Date
26378                             | $GREP -v Label >conftest.d-h 2>&1'
26379   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26380   (eval $ac_try) 2>&5
26381   ac_status=$?
26382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26383   test $ac_status = 0; }; }
26384                         cat conftest.d-h >&5
26385                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
26386                             | $GREP -v Dumping
26387                             | $GREP -v Date
26388                             | $GREP -v Label >conftest.d 2>&1'
26389   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26390   (eval $ac_try) 2>&5
26391   ac_status=$?
26392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26393   test $ac_status = 0; }; }
26394                         cat conftest.d >&5
26395                         if { ac_try='diff conftest.d-h conftest.d 1>&2'
26396   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26397   (eval $ac_try) 2>&5
26398   ac_status=$?
26399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26400   test $ac_status = 0; }; }; then
26401                             amanda_cv_honor_nodump=yes
26402                         else
26403                             amanda_cv_honor_nodump=no
26404                         fi
26405                         rm -f conftest.d conftest.d-h
26406                       ;;
26407                     *) amanda_cv_honor_nodump=no
26408                       ;;
26409                     esac
26410
26411 fi
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_honor_nodump" >&5
26413 $as_echo "$amanda_cv_honor_nodump" >&6; }
26414             else
26415
26416     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $DUMP is not executable, cannot run -h test" >&5
26417 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -h test" >&2;}
26418
26419
26420     cat <<AAW_EOF >>config.warnings
26421 $DUMP is not executable, cannot run -h test
26422 AAW_EOF
26423
26424
26425                 amanda_cv_honor_nodump=no
26426             fi
26427             if test "x$amanda_cv_honor_nodump" = xyes; then
26428
26429 $as_echo "#define HAVE_HONOR_NODUMP 1" >>confdefs.h
26430
26431             fi
26432
26433 fi
26434
26435     fi
26436
26437
26438
26439
26440
26441
26442
26443     # call with
26444
26445 # Check whether --with-gnutar was given.
26446 if test "${with_gnutar+set}" = set; then :
26447   withval=$with_gnutar;
26448             # check withval
26449             case "$withval" in
26450                 /*) GNUTAR="$withval";;
26451                 y|ye|yes) :;;
26452                 n|no) GNUTAR=no ;;
26453                 *)  as_fn_error $? "*** You must supply a full pathname to --with-gnutar" "$LINENO" 5;;
26454             esac
26455             # done
26456
26457
26458 fi
26459
26460
26461     if test "x$GNUTAR" = "xno"; then
26462         GNUTAR=
26463     else
26464         OLD_GNUTAR=$GNUTAR
26465         for gnutar_name in gtar gnutar tar; do
26466             for ac_prog in $gnutar_name
26467 do
26468   # Extract the first word of "$ac_prog", so it can be a program name with args.
26469 set dummy $ac_prog; ac_word=$2
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26471 $as_echo_n "checking for $ac_word... " >&6; }
26472 if ${ac_cv_path_GNUTAR+:} false; then :
26473   $as_echo_n "(cached) " >&6
26474 else
26475   case $GNUTAR in
26476   [\\/]* | ?:[\\/]*)
26477   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
26478   ;;
26479   *)
26480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26481 for as_dir in $LOCSYSPATH
26482 do
26483   IFS=$as_save_IFS
26484   test -z "$as_dir" && as_dir=.
26485     for ac_exec_ext in '' $ac_executable_extensions; do
26486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26487     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
26488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26489     break 2
26490   fi
26491 done
26492   done
26493 IFS=$as_save_IFS
26494
26495   ;;
26496 esac
26497 fi
26498 GNUTAR=$ac_cv_path_GNUTAR
26499 if test -n "$GNUTAR"; then
26500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
26501 $as_echo "$GNUTAR" >&6; }
26502 else
26503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26504 $as_echo "no" >&6; }
26505 fi
26506
26507
26508   test -n "$GNUTAR" && break
26509 done
26510
26511             if test -n "$GNUTAR"; then
26512               case `"$GNUTAR" --version 2>&1` in
26513                *GNU*tar* | *Free*paxutils* )
26514                             # OK, it is GNU tar
26515                             break
26516                             ;;
26517                *)
26518                             if test -n "$OLD_GNUTAR"; then
26519
26520     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GNUTAR is not GNU tar, it will be used." >&5
26521 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, it will be used." >&2;}
26522
26523
26524     cat <<AAW_EOF >>config.warnings
26525 $GNUTAR is not GNU tar, it will be used.
26526 AAW_EOF
26527
26528
26529                             else
26530                                     # warning..
26531
26532     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&5
26533 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&2;}
26534
26535
26536     cat <<AAW_EOF >>config.warnings
26537 $GNUTAR is not GNU tar, so it will not be used.
26538 AAW_EOF
26539
26540
26541                                     # reset the cache for GNUTAR so AC_PATH_PROGS will search again
26542                                     GNUTAR=''
26543                                     unset ac_cv_path_GNUTAR
26544                             fi
26545                             ;;
26546               esac
26547             fi
26548         done
26549     fi
26550
26551     if test "x$GNUTAR" != "x"; then
26552         # define unquoted
26553
26554 cat >>confdefs.h <<_ACEOF
26555 #define GNUTAR "$GNUTAR"
26556 _ACEOF
26557
26558     fi
26559
26560
26561
26562
26563
26564
26565     # call with
26566
26567 # Check whether --with-star was given.
26568 if test "${with_star+set}" = set; then :
26569   withval=$with_star;
26570             # check withval
26571             case "$withval" in
26572                 /*) STAR="$withval";;
26573                 y|ye|yes) :;;
26574                 n|no) STAR=no ;;
26575                 *)  as_fn_error $? "*** You must supply a full pathname to --with-star" "$LINENO" 5;;
26576             esac
26577             # done
26578
26579
26580 fi
26581
26582
26583     if test "x$STAR" = "xno"; then
26584         STAR=
26585     else
26586         OLD_STAR=$STAR
26587         for ac_prog in star
26588 do
26589   # Extract the first word of "$ac_prog", so it can be a program name with args.
26590 set dummy $ac_prog; ac_word=$2
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26592 $as_echo_n "checking for $ac_word... " >&6; }
26593 if ${ac_cv_path_STAR+:} false; then :
26594   $as_echo_n "(cached) " >&6
26595 else
26596   case $STAR in
26597   [\\/]* | ?:[\\/]*)
26598   ac_cv_path_STAR="$STAR" # Let the user override the test with a path.
26599   ;;
26600   *)
26601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26602 for as_dir in $LOCSYSPATH
26603 do
26604   IFS=$as_save_IFS
26605   test -z "$as_dir" && as_dir=.
26606     for ac_exec_ext in '' $ac_executable_extensions; do
26607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26608     ac_cv_path_STAR="$as_dir/$ac_word$ac_exec_ext"
26609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26610     break 2
26611   fi
26612 done
26613   done
26614 IFS=$as_save_IFS
26615
26616   ;;
26617 esac
26618 fi
26619 STAR=$ac_cv_path_STAR
26620 if test -n "$STAR"; then
26621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAR" >&5
26622 $as_echo "$STAR" >&6; }
26623 else
26624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26625 $as_echo "no" >&6; }
26626 fi
26627
26628
26629   test -n "$STAR" && break
26630 done
26631
26632         if test -n "$STAR"; then
26633             case `"$STAR" --version 2>/dev/null` in
26634              *star*)
26635                     # OK, it is star
26636                     break
26637                     ;;
26638              *)
26639                     if test -n "$OLD_STAR"; then
26640
26641     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $STAR is not star, it will be used." >&5
26642 $as_echo "$as_me: WARNING: $STAR is not star, it will be used." >&2;}
26643
26644
26645     cat <<AAW_EOF >>config.warnings
26646 $STAR is not star, it will be used.
26647 AAW_EOF
26648
26649
26650                     else
26651                         # warning..
26652
26653     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $STAR is not star, so it will not be used." >&5
26654 $as_echo "$as_me: WARNING: $STAR is not star, so it will not be used." >&2;}
26655
26656
26657     cat <<AAW_EOF >>config.warnings
26658 $STAR is not star, so it will not be used.
26659 AAW_EOF
26660
26661
26662                         # reset the cache for STAR so AC_PATH_PROGS will search again
26663                         STAR=''
26664                         unset ac_cv_path_STAR
26665                     fi
26666                     ;;
26667             esac
26668         fi
26669     fi
26670
26671     if test "x$STAR" != "x"; then
26672         # define unquoted
26673
26674 cat >>confdefs.h <<_ACEOF
26675 #define STAR "$STAR"
26676 _ACEOF
26677
26678     fi
26679
26680
26681
26682
26683
26684
26685     # call with
26686
26687 # Check whether --with-suntar was given.
26688 if test "${with_suntar+set}" = set; then :
26689   withval=$with_suntar;
26690             # check withval
26691             case "$withval" in
26692                 /*) SUNTAR="$withval";;
26693                 y|ye|yes) :;;
26694                 n|no) SUNTAR=no ;;
26695                 *)  as_fn_error $? "*** You must supply a full pathname to --with-suntar" "$LINENO" 5;;
26696             esac
26697             # done
26698
26699 else
26700
26701             if test "x$SUNTAR" == "x"; then
26702                 SUNTAR="/usr/sbin/tar"
26703             fi
26704
26705
26706 fi
26707
26708
26709     if test "x$SUNTAR" = "xno"; then
26710         SUNTAR=
26711     fi
26712
26713     if test "x$SUNTAR" != "x"; then
26714         # define unquoted
26715
26716 cat >>confdefs.h <<_ACEOF
26717 #define SUNTAR "$SUNTAR"
26718 _ACEOF
26719
26720     fi
26721
26722
26723
26724
26725
26726
26727
26728 # Check whether --with-smbclient was given.
26729 if test "${with_smbclient+set}" = set; then :
26730   withval=$with_smbclient;
26731             case "$withval" in
26732                 /*) SAMBA_CLIENT="$withval";;
26733                 y|ye|yes) :;;
26734                 n|no) SAMBA_CLIENT=no ;;
26735                 *)  as_fn_error $? "*** You must supply a full pathname to --with-smbclient" "$LINENO" 5;;
26736             esac
26737
26738
26739 fi
26740
26741
26742
26743 # Check whether --with-samba-user was given.
26744 if test "${with_samba_user+set}" = set; then :
26745   withval=$with_samba_user;  as_fn_error $? "--with-samba-user is no longer supported; place username in 'amandapass'" "$LINENO" 5
26746
26747 fi
26748
26749
26750     if test "x$SAMBA_CLIENT" != "xno"; then
26751       # Extract the first word of "smbclient", so it can be a program name with args.
26752 set dummy smbclient; ac_word=$2
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26754 $as_echo_n "checking for $ac_word... " >&6; }
26755 if ${ac_cv_path_SAMBA_CLIENT+:} false; then :
26756   $as_echo_n "(cached) " >&6
26757 else
26758   case $SAMBA_CLIENT in
26759   [\\/]* | ?:[\\/]*)
26760   ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
26761   ;;
26762   *)
26763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26764 for as_dir in $LOCSYSPATH
26765 do
26766   IFS=$as_save_IFS
26767   test -z "$as_dir" && as_dir=.
26768     for ac_exec_ext in '' $ac_executable_extensions; do
26769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26770     ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
26771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26772     break 2
26773   fi
26774 done
26775   done
26776 IFS=$as_save_IFS
26777
26778   ;;
26779 esac
26780 fi
26781 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
26782 if test -n "$SAMBA_CLIENT"; then
26783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAMBA_CLIENT" >&5
26784 $as_echo "$SAMBA_CLIENT" >&6; }
26785 else
26786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26787 $as_echo "no" >&6; }
26788 fi
26789
26790
26791       smbversion=0
26792       if test ! -z "$SAMBA_CLIENT"; then
26793         case `"$SAMBA_CLIENT" '\\\\nosuchhost.amanda.org\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1` in
26794         *"Unknown host"*)
26795                       smbversion=1
26796                       ;;
26797         *"Connection to nosuchhost.amanda.org failed"*)
26798                       smbversion=2
26799                       ;;
26800         *)
26801
26802     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
26803 $as_echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
26804
26805
26806     cat <<AAW_EOF >>config.warnings
26807 $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.
26808 AAW_EOF
26809
26810
26811                       SAMBA_CLIENT=
26812                       ;;
26813         esac
26814         if test -n "$SAMBA_CLIENT"; then
26815
26816 cat >>confdefs.h <<_ACEOF
26817 #define SAMBA_CLIENT "$SAMBA_CLIENT"
26818 _ACEOF
26819
26820
26821 cat >>confdefs.h <<_ACEOF
26822 #define SAMBA_VERSION $smbversion
26823 _ACEOF
26824
26825         fi
26826       fi
26827     fi
26828
26829      if test -n "$SAMBA_CLIENT"; then
26830   WANT_SAMBA_TRUE=
26831   WANT_SAMBA_FALSE='#'
26832 else
26833   WANT_SAMBA_TRUE='#'
26834   WANT_SAMBA_FALSE=
26835 fi
26836
26837
26838
26839     USE_RUNDUMP=no
26840
26841     # some systems require rundump unconditionally
26842     case "$host" in
26843         *-ultrix*) USE_RUNDUMP=yes ;;
26844         *-dg-*) USE_RUNDUMP=yes ;;
26845     esac
26846
26847
26848 # Check whether --with-rundump was given.
26849 if test "${with_rundump+set}" = set; then :
26850   withval=$with_rundump;
26851         case "$withval" in
26852             n | no) USE_RUNDUMP=no ;;
26853             y | ye | yes) USE_RUNDUMP=yes ;;
26854             *) as_fn_error $? "You must not supply an argument to --with-rundump option." "$LINENO" 5;;
26855         esac
26856
26857 fi
26858
26859
26860     if test x"$USE_RUNDUMP" = x"yes"; then
26861         USE_RUNDUMP=1
26862
26863 $as_echo "#define USE_RUNDUMP 1" >>confdefs.h
26864
26865     else
26866         USE_RUNDUMP=
26867     fi
26868
26869
26870
26871
26872 #
26873 # Look for other programs Amanda will use
26874 #
26875
26876
26877     # Extract the first word of "grep", so it can be a program name with args.
26878 set dummy grep; ac_word=$2
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26880 $as_echo_n "checking for $ac_word... " >&6; }
26881 if ${ac_cv_path_GREP+:} false; then :
26882   $as_echo_n "(cached) " >&6
26883 else
26884   case $GREP in
26885   [\\/]* | ?:[\\/]*)
26886   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
26887   ;;
26888   *)
26889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26890 for as_dir in $LOCSYSPATH
26891 do
26892   IFS=$as_save_IFS
26893   test -z "$as_dir" && as_dir=.
26894     for ac_exec_ext in '' $ac_executable_extensions; do
26895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26896     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
26897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26898     break 2
26899   fi
26900 done
26901   done
26902 IFS=$as_save_IFS
26903
26904   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
26905   ;;
26906 esac
26907 fi
26908 GREP=$ac_cv_path_GREP
26909 if test -n "$GREP"; then
26910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
26911 $as_echo "$GREP" >&6; }
26912 else
26913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26914 $as_echo "no" >&6; }
26915 fi
26916
26917
26918
26919 cat >>confdefs.h <<_ACEOF
26920 #define GREP "$GREP"
26921 _ACEOF
26922
26923
26924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
26925 $as_echo_n "checking for egrep... " >&6; }
26926 if ${ac_cv_path_EGREP+:} false; then :
26927   $as_echo_n "(cached) " >&6
26928 else
26929   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
26930    then ac_cv_path_EGREP="$GREP -E"
26931    else
26932      if test -z "$EGREP"; then
26933   ac_path_EGREP_found=false
26934   # Loop through the user's path and test for each of PROGNAME-LIST
26935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26936 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
26937 do
26938   IFS=$as_save_IFS
26939   test -z "$as_dir" && as_dir=.
26940     for ac_prog in egrep; do
26941     for ac_exec_ext in '' $ac_executable_extensions; do
26942       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
26943       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
26944 # Check for GNU ac_path_EGREP and select it if it is found.
26945   # Check for GNU $ac_path_EGREP
26946 case `"$ac_path_EGREP" --version 2>&1` in
26947 *GNU*)
26948   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
26949 *)
26950   ac_count=0
26951   $as_echo_n 0123456789 >"conftest.in"
26952   while :
26953   do
26954     cat "conftest.in" "conftest.in" >"conftest.tmp"
26955     mv "conftest.tmp" "conftest.in"
26956     cp "conftest.in" "conftest.nl"
26957     $as_echo 'EGREP' >> "conftest.nl"
26958     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
26959     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
26960     as_fn_arith $ac_count + 1 && ac_count=$as_val
26961     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
26962       # Best one so far, save it but keep looking for a better one
26963       ac_cv_path_EGREP="$ac_path_EGREP"
26964       ac_path_EGREP_max=$ac_count
26965     fi
26966     # 10*(2^10) chars as input seems more than enough
26967     test $ac_count -gt 10 && break
26968   done
26969   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
26970 esac
26971
26972       $ac_path_EGREP_found && break 3
26973     done
26974   done
26975   done
26976 IFS=$as_save_IFS
26977   if test -z "$ac_cv_path_EGREP"; then
26978     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
26979   fi
26980 else
26981   ac_cv_path_EGREP=$EGREP
26982 fi
26983
26984    fi
26985 fi
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
26987 $as_echo "$ac_cv_path_EGREP" >&6; }
26988  EGREP="$ac_cv_path_EGREP"
26989
26990
26991
26992
26993
26994
26995     # Extract the first word of "lint", so it can be a program name with args.
26996 set dummy lint; ac_word=$2
26997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26998 $as_echo_n "checking for $ac_word... " >&6; }
26999 if ${ac_cv_path_AMLINT+:} false; then :
27000   $as_echo_n "(cached) " >&6
27001 else
27002   case $AMLINT in
27003   [\\/]* | ?:[\\/]*)
27004   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
27005   ;;
27006   *)
27007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27008 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
27009 for as_dir in $as_dummy
27010 do
27011   IFS=$as_save_IFS
27012   test -z "$as_dir" && as_dir=.
27013     for ac_exec_ext in '' $ac_executable_extensions; do
27014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27015     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
27016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27017     break 2
27018   fi
27019 done
27020   done
27021 IFS=$as_save_IFS
27022
27023   ;;
27024 esac
27025 fi
27026 AMLINT=$ac_cv_path_AMLINT
27027 if test -n "$AMLINT"; then
27028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AMLINT" >&5
27029 $as_echo "$AMLINT" >&6; }
27030 else
27031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27032 $as_echo "no" >&6; }
27033 fi
27034
27035
27036     if test ! -z "$AMLINT"; then
27037       $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
27038       if test $? -eq 0; then
27039         AMLINTFLAGS="-n -s -u -m -x"
27040         AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
27041         AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
27042         AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
27043         AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
27044         AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
27045         AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
27046         AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
27047         AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
27048         AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
27049         AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
27050         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
27051         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
27052         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
27053         AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
27054         AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
27055         AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
27056         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
27057         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
27058         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
27059         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
27060         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
27061         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
27062         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
27063         AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
27064         AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
27065         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
27066         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
27067         AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
27068         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
27069         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
27070         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
27071         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
27072         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
27073         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
27074         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
27075         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
27076         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
27077         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
27078         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
27079         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
27080         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
27081         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
27082         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
27083         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
27084         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
27085         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
27086         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
27087         AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
27088         AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
27089         AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
27090       else
27091         AMLINTFLAGS=""
27092       fi
27093     else
27094       # Extract the first word of "splint", so it can be a program name with args.
27095 set dummy splint; ac_word=$2
27096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27097 $as_echo_n "checking for $ac_word... " >&6; }
27098 if ${ac_cv_path_AMLINT+:} false; then :
27099   $as_echo_n "(cached) " >&6
27100 else
27101   case $AMLINT in
27102   [\\/]* | ?:[\\/]*)
27103   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
27104   ;;
27105   *)
27106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27107 for as_dir in $SYSLOCPATH
27108 do
27109   IFS=$as_save_IFS
27110   test -z "$as_dir" && as_dir=.
27111     for ac_exec_ext in '' $ac_executable_extensions; do
27112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27113     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
27114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27115     break 2
27116   fi
27117 done
27118   done
27119 IFS=$as_save_IFS
27120
27121   ;;
27122 esac
27123 fi
27124 AMLINT=$ac_cv_path_AMLINT
27125 if test -n "$AMLINT"; then
27126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AMLINT" >&5
27127 $as_echo "$AMLINT" >&6; }
27128 else
27129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27130 $as_echo "no" >&6; }
27131 fi
27132
27133
27134       if test ! -z "$AMLINT"; then
27135         AMLINT="splint"
27136         AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
27137       else
27138         AMLINT='echo "Error: LINT is not installed" ; false'
27139         AMLINTFLAGS=''
27140       fi
27141     fi
27142
27143
27144 for ac_prog in flex lex
27145 do
27146   # Extract the first word of "$ac_prog", so it can be a program name with args.
27147 set dummy $ac_prog; ac_word=$2
27148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27149 $as_echo_n "checking for $ac_word... " >&6; }
27150 if ${ac_cv_prog_LEX+:} false; then :
27151   $as_echo_n "(cached) " >&6
27152 else
27153   if test -n "$LEX"; then
27154   ac_cv_prog_LEX="$LEX" # Let the user override the test.
27155 else
27156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27157 for as_dir in $PATH
27158 do
27159   IFS=$as_save_IFS
27160   test -z "$as_dir" && as_dir=.
27161     for ac_exec_ext in '' $ac_executable_extensions; do
27162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27163     ac_cv_prog_LEX="$ac_prog"
27164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27165     break 2
27166   fi
27167 done
27168   done
27169 IFS=$as_save_IFS
27170
27171 fi
27172 fi
27173 LEX=$ac_cv_prog_LEX
27174 if test -n "$LEX"; then
27175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
27176 $as_echo "$LEX" >&6; }
27177 else
27178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27179 $as_echo "no" >&6; }
27180 fi
27181
27182
27183   test -n "$LEX" && break
27184 done
27185 test -n "$LEX" || LEX=":"
27186
27187 if test "x$LEX" != "x:"; then
27188   cat >conftest.l <<_ACEOF
27189 %%
27190 a { ECHO; }
27191 b { REJECT; }
27192 c { yymore (); }
27193 d { yyless (1); }
27194 e { yyless (input () != 0); }
27195 f { unput (yytext[0]); }
27196 . { BEGIN INITIAL; }
27197 %%
27198 #ifdef YYTEXT_POINTER
27199 extern char *yytext;
27200 #endif
27201 int
27202 main (void)
27203 {
27204   return ! yylex () + ! yywrap ();
27205 }
27206 _ACEOF
27207 { { ac_try="$LEX conftest.l"
27208 case "(($ac_try" in
27209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27210   *) ac_try_echo=$ac_try;;
27211 esac
27212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27213 $as_echo "$ac_try_echo"; } >&5
27214   (eval "$LEX conftest.l") 2>&5
27215   ac_status=$?
27216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27217   test $ac_status = 0; }
27218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
27219 $as_echo_n "checking lex output file root... " >&6; }
27220 if ${ac_cv_prog_lex_root+:} false; then :
27221   $as_echo_n "(cached) " >&6
27222 else
27223
27224 if test -f lex.yy.c; then
27225   ac_cv_prog_lex_root=lex.yy
27226 elif test -f lexyy.c; then
27227   ac_cv_prog_lex_root=lexyy
27228 else
27229   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
27230 fi
27231 fi
27232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
27233 $as_echo "$ac_cv_prog_lex_root" >&6; }
27234 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
27235
27236 if test -z "${LEXLIB+set}"; then
27237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
27238 $as_echo_n "checking lex library... " >&6; }
27239 if ${ac_cv_lib_lex+:} false; then :
27240   $as_echo_n "(cached) " >&6
27241 else
27242
27243     ac_save_LIBS=$LIBS
27244     ac_cv_lib_lex='none needed'
27245     for ac_lib in '' -lfl -ll; do
27246       LIBS="$ac_lib $ac_save_LIBS"
27247       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27248 /* end confdefs.h.  */
27249 `cat $LEX_OUTPUT_ROOT.c`
27250 _ACEOF
27251 if ac_fn_c_try_link "$LINENO"; then :
27252   ac_cv_lib_lex=$ac_lib
27253 fi
27254 rm -f core conftest.err conftest.$ac_objext \
27255     conftest$ac_exeext conftest.$ac_ext
27256       test "$ac_cv_lib_lex" != 'none needed' && break
27257     done
27258     LIBS=$ac_save_LIBS
27259
27260 fi
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
27262 $as_echo "$ac_cv_lib_lex" >&6; }
27263   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
27264 fi
27265
27266
27267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
27268 $as_echo_n "checking whether yytext is a pointer... " >&6; }
27269 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
27270   $as_echo_n "(cached) " >&6
27271 else
27272   # POSIX says lex can declare yytext either as a pointer or an array; the
27273 # default is implementation-dependent.  Figure out which it is, since
27274 # not all implementations provide the %pointer and %array declarations.
27275 ac_cv_prog_lex_yytext_pointer=no
27276 ac_save_LIBS=$LIBS
27277 LIBS="$LEXLIB $ac_save_LIBS"
27278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27279 /* end confdefs.h.  */
27280
27281   #define YYTEXT_POINTER 1
27282 `cat $LEX_OUTPUT_ROOT.c`
27283 _ACEOF
27284 if ac_fn_c_try_link "$LINENO"; then :
27285   ac_cv_prog_lex_yytext_pointer=yes
27286 fi
27287 rm -f core conftest.err conftest.$ac_objext \
27288     conftest$ac_exeext conftest.$ac_ext
27289 LIBS=$ac_save_LIBS
27290
27291 fi
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
27293 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
27294 if test $ac_cv_prog_lex_yytext_pointer = yes; then
27295
27296 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
27297
27298 fi
27299 rm -f conftest.l $LEX_OUTPUT_ROOT.c
27300
27301 fi
27302 if test "$LEX" = :; then
27303   LEX=${am_missing_run}flex
27304 fi
27305
27306
27307
27308     if test x"$LEX" != x""; then
27309         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lex is broken Solaris (SGU) lex" >&5
27310 $as_echo_n "checking whether lex is broken Solaris (SGU) lex... " >&6; }
27311         $LEX -V < /dev/null >/dev/null 2>conftest.out
27312         if grep SGU conftest.out >/dev/null; then
27313             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&5
27314 $as_echo "yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&6; }
27315             LEX='echo no lex equivalent available; false'
27316         else
27317             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27318 $as_echo "no" >&6; }
27319         fi
27320         rm conftest.out
27321     fi
27322
27323
27324
27325     # Extract the first word of "ar", so it can be a program name with args.
27326 set dummy ar; ac_word=$2
27327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27328 $as_echo_n "checking for $ac_word... " >&6; }
27329 if ${ac_cv_path_AR+:} false; then :
27330   $as_echo_n "(cached) " >&6
27331 else
27332   case $AR in
27333   [\\/]* | ?:[\\/]*)
27334   ac_cv_path_AR="$AR" # Let the user override the test with a path.
27335   ;;
27336   *)
27337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27338 for as_dir in $LOCSYSPATH
27339 do
27340   IFS=$as_save_IFS
27341   test -z "$as_dir" && as_dir=.
27342     for ac_exec_ext in '' $ac_executable_extensions; do
27343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27344     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
27345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27346     break 2
27347   fi
27348 done
27349   done
27350 IFS=$as_save_IFS
27351
27352   ;;
27353 esac
27354 fi
27355 AR=$ac_cv_path_AR
27356 if test -n "$AR"; then
27357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
27358 $as_echo "$AR" >&6; }
27359 else
27360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27361 $as_echo "no" >&6; }
27362 fi
27363
27364
27365
27366
27367
27368     # Extract the first word of "gettext", so it can be a program name with args.
27369 set dummy gettext; ac_word=$2
27370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27371 $as_echo_n "checking for $ac_word... " >&6; }
27372 if ${ac_cv_path_GETTEXT+:} false; then :
27373   $as_echo_n "(cached) " >&6
27374 else
27375   case $GETTEXT in
27376   [\\/]* | ?:[\\/]*)
27377   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
27378   ;;
27379   *)
27380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27381 for as_dir in $LOCSYSPATH
27382 do
27383   IFS=$as_save_IFS
27384   test -z "$as_dir" && as_dir=.
27385     for ac_exec_ext in '' $ac_executable_extensions; do
27386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27387     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
27388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27389     break 2
27390   fi
27391 done
27392   done
27393 IFS=$as_save_IFS
27394
27395   ;;
27396 esac
27397 fi
27398 GETTEXT=$ac_cv_path_GETTEXT
27399 if test -n "$GETTEXT"; then
27400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETTEXT" >&5
27401 $as_echo "$GETTEXT" >&6; }
27402 else
27403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27404 $as_echo "no" >&6; }
27405 fi
27406
27407
27408
27409 for ac_prog in gawk mawk nawk awk
27410 do
27411   # Extract the first word of "$ac_prog", so it can be a program name with args.
27412 set dummy $ac_prog; ac_word=$2
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27414 $as_echo_n "checking for $ac_word... " >&6; }
27415 if ${ac_cv_prog_AWK+:} false; then :
27416   $as_echo_n "(cached) " >&6
27417 else
27418   if test -n "$AWK"; then
27419   ac_cv_prog_AWK="$AWK" # Let the user override the test.
27420 else
27421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27422 for as_dir in $PATH
27423 do
27424   IFS=$as_save_IFS
27425   test -z "$as_dir" && as_dir=.
27426     for ac_exec_ext in '' $ac_executable_extensions; do
27427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27428     ac_cv_prog_AWK="$ac_prog"
27429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27430     break 2
27431   fi
27432 done
27433   done
27434 IFS=$as_save_IFS
27435
27436 fi
27437 fi
27438 AWK=$ac_cv_prog_AWK
27439 if test -n "$AWK"; then
27440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
27441 $as_echo "$AWK" >&6; }
27442 else
27443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27444 $as_echo "no" >&6; }
27445 fi
27446
27447
27448   test -n "$AWK" && break
27449 done
27450
27451 for ac_prog in 'bison -y' byacc
27452 do
27453   # Extract the first word of "$ac_prog", so it can be a program name with args.
27454 set dummy $ac_prog; ac_word=$2
27455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27456 $as_echo_n "checking for $ac_word... " >&6; }
27457 if ${ac_cv_prog_YACC+:} false; then :
27458   $as_echo_n "(cached) " >&6
27459 else
27460   if test -n "$YACC"; then
27461   ac_cv_prog_YACC="$YACC" # Let the user override the test.
27462 else
27463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27464 for as_dir in $PATH
27465 do
27466   IFS=$as_save_IFS
27467   test -z "$as_dir" && as_dir=.
27468     for ac_exec_ext in '' $ac_executable_extensions; do
27469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27470     ac_cv_prog_YACC="$ac_prog"
27471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27472     break 2
27473   fi
27474 done
27475   done
27476 IFS=$as_save_IFS
27477
27478 fi
27479 fi
27480 YACC=$ac_cv_prog_YACC
27481 if test -n "$YACC"; then
27482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
27483 $as_echo "$YACC" >&6; }
27484 else
27485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27486 $as_echo "no" >&6; }
27487 fi
27488
27489
27490   test -n "$YACC" && break
27491 done
27492 test -n "$YACC" || YACC="yacc"
27493
27494
27495
27496
27497     # Extract the first word of "dd", so it can be a program name with args.
27498 set dummy dd; ac_word=$2
27499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27500 $as_echo_n "checking for $ac_word... " >&6; }
27501 if ${ac_cv_path_DD+:} false; then :
27502   $as_echo_n "(cached) " >&6
27503 else
27504   case $DD in
27505   [\\/]* | ?:[\\/]*)
27506   ac_cv_path_DD="$DD" # Let the user override the test with a path.
27507   ;;
27508   *)
27509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27510 for as_dir in $LOCSYSPATH
27511 do
27512   IFS=$as_save_IFS
27513   test -z "$as_dir" && as_dir=.
27514     for ac_exec_ext in '' $ac_executable_extensions; do
27515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27516     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
27517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27518     break 2
27519   fi
27520 done
27521   done
27522 IFS=$as_save_IFS
27523
27524   ;;
27525 esac
27526 fi
27527 DD=$ac_cv_path_DD
27528 if test -n "$DD"; then
27529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
27530 $as_echo "$DD" >&6; }
27531 else
27532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27533 $as_echo "no" >&6; }
27534 fi
27535
27536
27537
27538
27539
27540     # Extract the first word of "bash", so it can be a program name with args.
27541 set dummy bash; ac_word=$2
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27543 $as_echo_n "checking for $ac_word... " >&6; }
27544 if ${ac_cv_path_BASH+:} false; then :
27545   $as_echo_n "(cached) " >&6
27546 else
27547   case $BASH in
27548   [\\/]* | ?:[\\/]*)
27549   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
27550   ;;
27551   *)
27552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27553 for as_dir in $SYSPATH
27554 do
27555   IFS=$as_save_IFS
27556   test -z "$as_dir" && as_dir=.
27557     for ac_exec_ext in '' $ac_executable_extensions; do
27558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27559     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
27560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27561     break 2
27562   fi
27563 done
27564   done
27565 IFS=$as_save_IFS
27566
27567   ;;
27568 esac
27569 fi
27570 BASH=$ac_cv_path_BASH
27571 if test -n "$BASH"; then
27572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
27573 $as_echo "$BASH" >&6; }
27574 else
27575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27576 $as_echo "no" >&6; }
27577 fi
27578
27579
27580
27581
27582
27583
27584
27585     # Extract the first word of "sort", so it can be a program name with args.
27586 set dummy sort; ac_word=$2
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27588 $as_echo_n "checking for $ac_word... " >&6; }
27589 if ${ac_cv_path_SORT+:} false; then :
27590   $as_echo_n "(cached) " >&6
27591 else
27592   case $SORT in
27593   [\\/]* | ?:[\\/]*)
27594   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
27595   ;;
27596   *)
27597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27598 for as_dir in $LOCSYSPATH
27599 do
27600   IFS=$as_save_IFS
27601   test -z "$as_dir" && as_dir=.
27602     for ac_exec_ext in '' $ac_executable_extensions; do
27603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27604     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
27605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27606     break 2
27607   fi
27608 done
27609   done
27610 IFS=$as_save_IFS
27611
27612   test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
27613   ;;
27614 esac
27615 fi
27616 SORT=$ac_cv_path_SORT
27617 if test -n "$SORT"; then
27618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
27619 $as_echo "$SORT" >&6; }
27620 else
27621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27622 $as_echo "no" >&6; }
27623 fi
27624
27625
27626
27627     # sort is only needed in the server build
27628     if test x"$SORT" = x"NONE" && $WANT_SERVER; then
27629         as_fn_error $? "Set SORT to the path of the sort program." "$LINENO" 5
27630     fi
27631
27632
27633 cat >>confdefs.h <<_ACEOF
27634 #define SORT_PATH "$SORT"
27635 _ACEOF
27636
27637
27638
27639
27640     for ac_prog in Mail mailx mail
27641 do
27642   # Extract the first word of "$ac_prog", so it can be a program name with args.
27643 set dummy $ac_prog; ac_word=$2
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27645 $as_echo_n "checking for $ac_word... " >&6; }
27646 if ${ac_cv_path_MAILER+:} false; then :
27647   $as_echo_n "(cached) " >&6
27648 else
27649   case $MAILER in
27650   [\\/]* | ?:[\\/]*)
27651   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
27652   ;;
27653   *)
27654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27655 for as_dir in $PATH
27656 do
27657   IFS=$as_save_IFS
27658   test -z "$as_dir" && as_dir=.
27659     for ac_exec_ext in '' $ac_executable_extensions; do
27660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27661     ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
27662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27663     break 2
27664   fi
27665 done
27666   done
27667 IFS=$as_save_IFS
27668
27669   ;;
27670 esac
27671 fi
27672 MAILER=$ac_cv_path_MAILER
27673 if test -n "$MAILER"; then
27674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAILER" >&5
27675 $as_echo "$MAILER" >&6; }
27676 else
27677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27678 $as_echo "no" >&6; }
27679 fi
27680
27681
27682   test -n "$MAILER" && break
27683 done
27684 test -n "$MAILER" || MAILER="NONE"
27685
27686     if test x"$MAILER" = x"NONE"; then
27687
27688     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
27689 $as_echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
27690
27691
27692     cat <<AAW_EOF >>config.warnings
27693 WARNING: Amanda cannot send mail reports without a mailer.
27694 AAW_EOF
27695
27696
27697         DEFAULT_MAILER=""
27698     else
27699         DEFAULT_MAILER="$MAILER"
27700     fi
27701
27702 cat >>confdefs.h <<_ACEOF
27703 #define DEFAULT_MAILER "$DEFAULT_MAILER"
27704 _ACEOF
27705
27706
27707
27708
27709
27710     # Extract the first word of "mt", so it can be a program name with args.
27711 set dummy mt; ac_word=$2
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27713 $as_echo_n "checking for $ac_word... " >&6; }
27714 if ${ac_cv_path_MT+:} false; then :
27715   $as_echo_n "(cached) " >&6
27716 else
27717   case $MT in
27718   [\\/]* | ?:[\\/]*)
27719   ac_cv_path_MT="$MT" # Let the user override the test with a path.
27720   ;;
27721   *)
27722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27723 for as_dir in $SYSLOCPATH
27724 do
27725   IFS=$as_save_IFS
27726   test -z "$as_dir" && as_dir=.
27727     for ac_exec_ext in '' $ac_executable_extensions; do
27728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27729     ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
27730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27731     break 2
27732   fi
27733 done
27734   done
27735 IFS=$as_save_IFS
27736
27737   test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
27738   ;;
27739 esac
27740 fi
27741 MT=$ac_cv_path_MT
27742 if test -n "$MT"; then
27743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5
27744 $as_echo "$MT" >&6; }
27745 else
27746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27747 $as_echo "no" >&6; }
27748 fi
27749
27750
27751
27752     case "$host" in
27753         *-hp-*) MT_FILE_FLAG="-t" ;;
27754         *) MT_FILE_FLAG="-f" ;;
27755     esac
27756
27757
27758
27759 cat >>confdefs.h <<_ACEOF
27760 #define MT_FILE_FLAG "$MT_FILE_FLAG"
27761 _ACEOF
27762
27763
27764
27765
27766     # Extract the first word of "mtx", so it can be a program name with args.
27767 set dummy mtx; ac_word=$2
27768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27769 $as_echo_n "checking for $ac_word... " >&6; }
27770 if ${ac_cv_path_MTX+:} false; then :
27771   $as_echo_n "(cached) " >&6
27772 else
27773   case $MTX in
27774   [\\/]* | ?:[\\/]*)
27775   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
27776   ;;
27777   *)
27778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27779 for as_dir in $LOCSYSPATH
27780 do
27781   IFS=$as_save_IFS
27782   test -z "$as_dir" && as_dir=.
27783     for ac_exec_ext in '' $ac_executable_extensions; do
27784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27785     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
27786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27787     break 2
27788   fi
27789 done
27790   done
27791 IFS=$as_save_IFS
27792
27793   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
27794   ;;
27795 esac
27796 fi
27797 MTX=$ac_cv_path_MTX
27798 if test -n "$MTX"; then
27799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
27800 $as_echo "$MTX" >&6; }
27801 else
27802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27803 $as_echo "no" >&6; }
27804 fi
27805
27806
27807
27808
27809
27810
27811     # Extract the first word of "mount", so it can be a program name with args.
27812 set dummy mount; ac_word=$2
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27814 $as_echo_n "checking for $ac_word... " >&6; }
27815 if ${ac_cv_path_MOUNT+:} false; then :
27816   $as_echo_n "(cached) " >&6
27817 else
27818   case $MOUNT in
27819   [\\/]* | ?:[\\/]*)
27820   ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
27821   ;;
27822   *)
27823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27824 for as_dir in $LOCSYSPATH
27825 do
27826   IFS=$as_save_IFS
27827   test -z "$as_dir" && as_dir=.
27828     for ac_exec_ext in '' $ac_executable_extensions; do
27829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27830     ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
27831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27832     break 2
27833   fi
27834 done
27835   done
27836 IFS=$as_save_IFS
27837
27838   test -z "$ac_cv_path_MOUNT" && ac_cv_path_MOUNT="mount"
27839   ;;
27840 esac
27841 fi
27842 MOUNT=$ac_cv_path_MOUNT
27843 if test -n "$MOUNT"; then
27844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOUNT" >&5
27845 $as_echo "$MOUNT" >&6; }
27846 else
27847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27848 $as_echo "no" >&6; }
27849 fi
27850
27851
27852
27853
27854
27855
27856     # Extract the first word of "umount", so it can be a program name with args.
27857 set dummy umount; ac_word=$2
27858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27859 $as_echo_n "checking for $ac_word... " >&6; }
27860 if ${ac_cv_path_UMOUNT+:} false; then :
27861   $as_echo_n "(cached) " >&6
27862 else
27863   case $UMOUNT in
27864   [\\/]* | ?:[\\/]*)
27865   ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
27866   ;;
27867   *)
27868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27869 for as_dir in $LOCSYSPATH
27870 do
27871   IFS=$as_save_IFS
27872   test -z "$as_dir" && as_dir=.
27873     for ac_exec_ext in '' $ac_executable_extensions; do
27874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27875     ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
27876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27877     break 2
27878   fi
27879 done
27880   done
27881 IFS=$as_save_IFS
27882
27883   test -z "$ac_cv_path_UMOUNT" && ac_cv_path_UMOUNT="umount"
27884   ;;
27885 esac
27886 fi
27887 UMOUNT=$ac_cv_path_UMOUNT
27888 if test -n "$UMOUNT"; then
27889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UMOUNT" >&5
27890 $as_echo "$UMOUNT" >&6; }
27891 else
27892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27893 $as_echo "no" >&6; }
27894 fi
27895
27896
27897
27898
27899
27900
27901     # Extract the first word of "uname", so it can be a program name with args.
27902 set dummy uname; ac_word=$2
27903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27904 $as_echo_n "checking for $ac_word... " >&6; }
27905 if ${ac_cv_path_UNAME+:} false; then :
27906   $as_echo_n "(cached) " >&6
27907 else
27908   case $UNAME in
27909   [\\/]* | ?:[\\/]*)
27910   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
27911   ;;
27912   *)
27913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27914 for as_dir in $LOCSYSPATH
27915 do
27916   IFS=$as_save_IFS
27917   test -z "$as_dir" && as_dir=.
27918     for ac_exec_ext in '' $ac_executable_extensions; do
27919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27920     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
27921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27922     break 2
27923   fi
27924 done
27925   done
27926 IFS=$as_save_IFS
27927
27928   ;;
27929 esac
27930 fi
27931 UNAME=$ac_cv_path_UNAME
27932 if test -n "$UNAME"; then
27933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
27934 $as_echo "$UNAME" >&6; }
27935 else
27936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27937 $as_echo "no" >&6; }
27938 fi
27939
27940
27941
27942 cat >>confdefs.h <<_ACEOF
27943 #define UNAME_PATH "$UNAME"
27944 _ACEOF
27945
27946
27947
27948
27949
27950     for ac_prog in lpr lp
27951 do
27952   # Extract the first word of "$ac_prog", so it can be a program name with args.
27953 set dummy $ac_prog; ac_word=$2
27954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27955 $as_echo_n "checking for $ac_word... " >&6; }
27956 if ${ac_cv_path_LPR+:} false; then :
27957   $as_echo_n "(cached) " >&6
27958 else
27959   case $LPR in
27960   [\\/]* | ?:[\\/]*)
27961   ac_cv_path_LPR="$LPR" # Let the user override the test with a path.
27962   ;;
27963   *)
27964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27965 for as_dir in $PATH
27966 do
27967   IFS=$as_save_IFS
27968   test -z "$as_dir" && as_dir=.
27969     for ac_exec_ext in '' $ac_executable_extensions; do
27970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27971     ac_cv_path_LPR="$as_dir/$ac_word$ac_exec_ext"
27972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27973     break 2
27974   fi
27975 done
27976   done
27977 IFS=$as_save_IFS
27978
27979   ;;
27980 esac
27981 fi
27982 LPR=$ac_cv_path_LPR
27983 if test -n "$LPR"; then
27984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPR" >&5
27985 $as_echo "$LPR" >&6; }
27986 else
27987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27988 $as_echo "no" >&6; }
27989 fi
27990
27991
27992   test -n "$LPR" && break
27993 done
27994
27995     if test ! -z "$LPR"; then
27996
27997 $as_echo "#define HAVE_LPR_CMD 1" >>confdefs.h
27998
27999
28000         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flag to use to select a printer" >&5
28001 $as_echo_n "checking which flag to use to select a printer... " >&6; }
28002 if ${amanda_cv_printer_flag+:} false; then :
28003   $as_echo_n "(cached) " >&6
28004 else
28005
28006             amanda_cv_printer_flag=$LPRFLAG
28007             case "$LPR" in
28008                 lpr|*/lpr) amanda_cv_printer_flag="-P";;
28009                 lp|*/lp) amanda_cv_printer_flag="-d";;
28010             esac
28011
28012 fi
28013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_printer_flag" >&5
28014 $as_echo "$amanda_cv_printer_flag" >&6; }
28015         if test -z "$amanda_cv_printer_flag"; then
28016
28017     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: amanda will always print to the default printer" >&5
28018 $as_echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
28019
28020
28021     cat <<AAW_EOF >>config.warnings
28022 WARNING: amanda will always print to the default printer
28023 AAW_EOF
28024
28025
28026         fi
28027     fi
28028
28029
28030
28031
28032
28033
28034     # Extract the first word of "pcat", so it can be a program name with args.
28035 set dummy pcat; ac_word=$2
28036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28037 $as_echo_n "checking for $ac_word... " >&6; }
28038 if ${ac_cv_path_PCAT+:} false; then :
28039   $as_echo_n "(cached) " >&6
28040 else
28041   case $PCAT in
28042   [\\/]* | ?:[\\/]*)
28043   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
28044   ;;
28045   *)
28046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28047 for as_dir in $LOCSYSPATH
28048 do
28049   IFS=$as_save_IFS
28050   test -z "$as_dir" && as_dir=.
28051     for ac_exec_ext in '' $ac_executable_extensions; do
28052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28053     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
28054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28055     break 2
28056   fi
28057 done
28058   done
28059 IFS=$as_save_IFS
28060
28061   ;;
28062 esac
28063 fi
28064 PCAT=$ac_cv_path_PCAT
28065 if test -n "$PCAT"; then
28066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAT" >&5
28067 $as_echo "$PCAT" >&6; }
28068 else
28069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28070 $as_echo "no" >&6; }
28071 fi
28072
28073
28074
28075
28076
28077     for ac_prog in perl5 perl
28078 do
28079   # Extract the first word of "$ac_prog", so it can be a program name with args.
28080 set dummy $ac_prog; ac_word=$2
28081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28082 $as_echo_n "checking for $ac_word... " >&6; }
28083 if ${ac_cv_path_PERL+:} false; then :
28084   $as_echo_n "(cached) " >&6
28085 else
28086   case $PERL in
28087   [\\/]* | ?:[\\/]*)
28088   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
28089   ;;
28090   *)
28091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28092 for as_dir in $LOCSYSPATH
28093 do
28094   IFS=$as_save_IFS
28095   test -z "$as_dir" && as_dir=.
28096     for ac_exec_ext in '' $ac_executable_extensions; do
28097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28098     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
28099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28100     break 2
28101   fi
28102 done
28103   done
28104 IFS=$as_save_IFS
28105
28106   ;;
28107 esac
28108 fi
28109 PERL=$ac_cv_path_PERL
28110 if test -n "$PERL"; then
28111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
28112 $as_echo "$PERL" >&6; }
28113 else
28114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28115 $as_echo "no" >&6; }
28116 fi
28117
28118
28119   test -n "$PERL" && break
28120 done
28121
28122
28123     # Make sure we have perl
28124 if test -z "$PERL"; then
28125 # Extract the first word of "perl", so it can be a program name with args.
28126 set dummy perl; ac_word=$2
28127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28128 $as_echo_n "checking for $ac_word... " >&6; }
28129 if ${ac_cv_prog_PERL+:} false; then :
28130   $as_echo_n "(cached) " >&6
28131 else
28132   if test -n "$PERL"; then
28133   ac_cv_prog_PERL="$PERL" # Let the user override the test.
28134 else
28135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28136 for as_dir in $PATH
28137 do
28138   IFS=$as_save_IFS
28139   test -z "$as_dir" && as_dir=.
28140     for ac_exec_ext in '' $ac_executable_extensions; do
28141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28142     ac_cv_prog_PERL="perl"
28143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28144     break 2
28145   fi
28146 done
28147   done
28148 IFS=$as_save_IFS
28149
28150 fi
28151 fi
28152 PERL=$ac_cv_prog_PERL
28153 if test -n "$PERL"; then
28154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
28155 $as_echo "$PERL" >&6; }
28156 else
28157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28158 $as_echo "no" >&6; }
28159 fi
28160
28161
28162 fi
28163
28164 # Check if version of Perl is sufficient
28165 ac_perl_version="5.6.0"
28166
28167 if test "x$PERL" != "x"; then
28168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
28169 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
28170   # NB: It would be nice to log the error if there is one, but we cannot rely
28171   # on autoconf internals
28172   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
28173   if test $? -ne 0; then
28174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28175 $as_echo "no" >&6; };
28176
28177         as_fn_error $? "Amanda requires at least perl 5.6.0" "$LINENO" 5
28178
28179   else
28180     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
28181 $as_echo "ok" >&6; };
28182
28183   fi
28184 else
28185   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
28186 $as_echo "$as_me: WARNING: could not find perl" >&2;}
28187 fi
28188
28189
28190
28191
28192     for ac_prog in swig
28193 do
28194   # Extract the first word of "$ac_prog", so it can be a program name with args.
28195 set dummy $ac_prog; ac_word=$2
28196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28197 $as_echo_n "checking for $ac_word... " >&6; }
28198 if ${ac_cv_path_SWIG+:} false; then :
28199   $as_echo_n "(cached) " >&6
28200 else
28201   case $SWIG in
28202   [\\/]* | ?:[\\/]*)
28203   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
28204   ;;
28205   *)
28206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28207 for as_dir in $LOCSYSPATH
28208 do
28209   IFS=$as_save_IFS
28210   test -z "$as_dir" && as_dir=.
28211     for ac_exec_ext in '' $ac_executable_extensions; do
28212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28213     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
28214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28215     break 2
28216   fi
28217 done
28218   done
28219 IFS=$as_save_IFS
28220
28221   ;;
28222 esac
28223 fi
28224 SWIG=$ac_cv_path_SWIG
28225 if test -n "$SWIG"; then
28226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
28227 $as_echo "$SWIG" >&6; }
28228 else
28229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28230 $as_echo "no" >&6; }
28231 fi
28232
28233
28234   test -n "$SWIG" && break
28235 done
28236
28237
28238     # 1.3.32 introduces a change in the way empty strings are handled (old versions
28239     # returned undef in Perl, while new versions return an empty Perl string)
28240     # 1.3.39 is required for the %begin block
28241
28242         # Extract the first word of "swig", so it can be a program name with args.
28243 set dummy swig; ac_word=$2
28244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28245 $as_echo_n "checking for $ac_word... " >&6; }
28246 if ${ac_cv_path_SWIG+:} false; then :
28247   $as_echo_n "(cached) " >&6
28248 else
28249   case $SWIG in
28250   [\\/]* | ?:[\\/]*)
28251   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
28252   ;;
28253   *)
28254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28255 for as_dir in $PATH
28256 do
28257   IFS=$as_save_IFS
28258   test -z "$as_dir" && as_dir=.
28259     for ac_exec_ext in '' $ac_executable_extensions; do
28260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28261     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
28262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28263     break 2
28264   fi
28265 done
28266   done
28267 IFS=$as_save_IFS
28268
28269   ;;
28270 esac
28271 fi
28272 SWIG=$ac_cv_path_SWIG
28273 if test -n "$SWIG"; then
28274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
28275 $as_echo "$SWIG" >&6; }
28276 else
28277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28278 $as_echo "no" >&6; }
28279 fi
28280
28281
28282         if test -z "$SWIG" ; then
28283                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
28284         elif test -n "1.3.39" ; then
28285                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
28286 $as_echo_n "checking for SWIG version... " >&6; }
28287                 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
28288                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
28289 $as_echo "$swig_version" >&6; }
28290                 if test -n "$swig_version" ; then
28291
28292   # Used to indicate true or false condition
28293   ax_compare_version=false
28294
28295   # Convert the two version strings to be compared into a format that
28296   # allows a simple string comparison.  The end result is that a version
28297   # string of the form 1.12.5-r617 will be converted to the form
28298   # 0001001200050617.  In other words, each number is zero padded to four
28299   # digits, and non digits are removed.
28300
28301   ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
28302                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
28303                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
28304                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
28305                      -e 's/[^0-9]//g'`
28306
28307
28308   ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
28309                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
28310                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
28311                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
28312                      -e 's/[^0-9]//g'`
28313
28314
28315     ax_compare_version=`echo "x$ax_compare_version_A
28316 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
28317
28318
28319
28320     if test "$ax_compare_version" = "true" ; then
28321
28322                                                     SWIG_LIB=`$SWIG -swiglib`
28323
28324     else
28325                                                     SWIG='echo "Error: SWIG version >= 1.3.39 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
28326
28327   fi
28328
28329                 else
28330                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
28331                 fi
28332         fi
28333
28334
28335
28336
28337     # Extract the first word of "ps", so it can be a program name with args.
28338 set dummy ps; ac_word=$2
28339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28340 $as_echo_n "checking for $ac_word... " >&6; }
28341 if ${ac_cv_path_PS+:} false; then :
28342   $as_echo_n "(cached) " >&6
28343 else
28344   case $PS in
28345   [\\/]* | ?:[\\/]*)
28346   ac_cv_path_PS="$PS" # Let the user override the test with a path.
28347   ;;
28348   *)
28349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28350 for as_dir in $PATH
28351 do
28352   IFS=$as_save_IFS
28353   test -z "$as_dir" && as_dir=.
28354     for ac_exec_ext in '' $ac_executable_extensions; do
28355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28356     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
28357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28358     break 2
28359   fi
28360 done
28361   done
28362 IFS=$as_save_IFS
28363
28364   ;;
28365 esac
28366 fi
28367 PS=$ac_cv_path_PS
28368 if test -n "$PS"; then
28369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
28370 $as_echo "$PS" >&6; }
28371 else
28372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28373 $as_echo "no" >&6; }
28374 fi
28375
28376
28377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking ps argument to use" >&5
28378 $as_echo_n "checking ps argument to use... " >&6; }
28379     PS_ARGUMENT=
28380
28381     # ps is *very* non-portable, and across many systems, the same option
28382     # (e.g., -e) can mean different things.  So this macro tries to
28383     # special-case most known systems, and makes an effort to detect unknown
28384     # systems
28385     case "$host" in
28386         *-*-solaris*)
28387             PS_ARGUMENT="-eo pid,ppid,comm"
28388             PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
28389             ;;
28390
28391         *-*-linux-*)
28392             PS_ARGUMENT="-eo pid,ppid,command"
28393             PS_ARGUMENT_ARGS="-eo pid,ppid,command"
28394             ;;
28395
28396         *-*-*bsd*)
28397             PS_ARGUMENT="-axo pid,ppid,command"
28398             PS_ARGUMENT_ARGS="-axo pid,ppid,command"
28399             ;;
28400
28401         *-apple-darwin*)
28402             PS_ARGUMENT="-aAco pid,ppid,command"
28403             PS_ARGUMENT_ARGS="-aAo pid,ppid,command"
28404             ;;
28405
28406         *-pc-cygwin)
28407             # Cygwin is special-cased in Amanda::Process
28408             PS_ARGUMENT=CYGWIN
28409             PS_ARGUMENT_ARGS="-ef"
28410             ;;
28411
28412         *-*-hpux*)
28413             # HPUX's 'PS' needs the env var UNIX95 to run in "xpg4" mode
28414             PS="UNIX95=1 $PS"
28415             PS_ARGUMENT="-eo pid,ppid,comm"
28416             PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
28417             ;;
28418
28419         *)
28420             for try in \
28421                 "-axo pid,ppid,command" \
28422                 "-aAco pid,ppid,command" \
28423                 "-eo pid,ppid,comm"
28424             do
28425                 ps $try >/dev/null 2>/dev/null
28426                 if test $? -eq 0; then
28427                     PS_ARGUMENT="$try"
28428                     break
28429                 fi
28430             done
28431             for try in \
28432                 "-axo pid,ppid,command" \
28433                 "-aAo pid,ppid,command" \
28434                 "-eo pid,ppid,comm"
28435             do
28436                 ps $try >/dev/null 2>/dev/null
28437                 if test $? -eq 0; then
28438                     PS_ARGUMENT_ARGS="$try"
28439                     break
28440                 fi
28441             done
28442             if test -z "$PS_ARGUMENT" -o -z "$PS_ARGUMENT_ARGS"; then
28443                 as_fn_error $? "Can't find ps argument to use." "$LINENO" 5
28444             fi
28445             ;;
28446     esac
28447
28448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS_ARGUMENT" >&5
28449 $as_echo "$PS_ARGUMENT" >&6; }
28450
28451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS_ARGUMENT_ARGS" >&5
28452 $as_echo "$PS_ARGUMENT_ARGS" >&6; }
28453
28454
28455
28456
28457     # Extract the first word of "rpcgen", so it can be a program name with args.
28458 set dummy rpcgen; ac_word=$2
28459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28460 $as_echo_n "checking for $ac_word... " >&6; }
28461 if ${ac_cv_path_RPCGEN+:} false; then :
28462   $as_echo_n "(cached) " >&6
28463 else
28464   case $RPCGEN in
28465   [\\/]* | ?:[\\/]*)
28466   ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a path.
28467   ;;
28468   *)
28469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28470 for as_dir in $LOCSYSPATH
28471 do
28472   IFS=$as_save_IFS
28473   test -z "$as_dir" && as_dir=.
28474     for ac_exec_ext in '' $ac_executable_extensions; do
28475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28476     ac_cv_path_RPCGEN="$as_dir/$ac_word$ac_exec_ext"
28477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28478     break 2
28479   fi
28480 done
28481   done
28482 IFS=$as_save_IFS
28483
28484   ;;
28485 esac
28486 fi
28487 RPCGEN=$ac_cv_path_RPCGEN
28488 if test -n "$RPCGEN"; then
28489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPCGEN" >&5
28490 $as_echo "$RPCGEN" >&6; }
28491 else
28492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28493 $as_echo "no" >&6; }
28494 fi
28495
28496
28497
28498
28499     # Extract the first word of "nc", so it can be a program name with args.
28500 set dummy nc; ac_word=$2
28501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28502 $as_echo_n "checking for $ac_word... " >&6; }
28503 if ${ac_cv_path_NC+:} false; then :
28504   $as_echo_n "(cached) " >&6
28505 else
28506   case $NC in
28507   [\\/]* | ?:[\\/]*)
28508   ac_cv_path_NC="$NC" # Let the user override the test with a path.
28509   ;;
28510   *)
28511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28512 for as_dir in $LOCSYSPATH
28513 do
28514   IFS=$as_save_IFS
28515   test -z "$as_dir" && as_dir=.
28516     for ac_exec_ext in '' $ac_executable_extensions; do
28517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28518     ac_cv_path_NC="$as_dir/$ac_word$ac_exec_ext"
28519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28520     break 2
28521   fi
28522 done
28523   done
28524 IFS=$as_save_IFS
28525
28526   ;;
28527 esac
28528 fi
28529 NC=$ac_cv_path_NC
28530 if test -n "$NC"; then
28531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NC" >&5
28532 $as_echo "$NC" >&6; }
28533 else
28534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28535 $as_echo "no" >&6; }
28536 fi
28537
28538
28539     # Extract the first word of "nc6", so it can be a program name with args.
28540 set dummy nc6; ac_word=$2
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28542 $as_echo_n "checking for $ac_word... " >&6; }
28543 if ${ac_cv_path_NC6+:} false; then :
28544   $as_echo_n "(cached) " >&6
28545 else
28546   case $NC6 in
28547   [\\/]* | ?:[\\/]*)
28548   ac_cv_path_NC6="$NC6" # Let the user override the test with a path.
28549   ;;
28550   *)
28551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28552 for as_dir in $LOCSYSPATH
28553 do
28554   IFS=$as_save_IFS
28555   test -z "$as_dir" && as_dir=.
28556     for ac_exec_ext in '' $ac_executable_extensions; do
28557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28558     ac_cv_path_NC6="$as_dir/$ac_word$ac_exec_ext"
28559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28560     break 2
28561   fi
28562 done
28563   done
28564 IFS=$as_save_IFS
28565
28566   ;;
28567 esac
28568 fi
28569 NC6=$ac_cv_path_NC6
28570 if test -n "$NC6"; then
28571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NC6" >&5
28572 $as_echo "$NC6" >&6; }
28573 else
28574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28575 $as_echo "no" >&6; }
28576 fi
28577
28578
28579     # Extract the first word of "netcat", so it can be a program name with args.
28580 set dummy netcat; ac_word=$2
28581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28582 $as_echo_n "checking for $ac_word... " >&6; }
28583 if ${ac_cv_path_NETCAT+:} false; then :
28584   $as_echo_n "(cached) " >&6
28585 else
28586   case $NETCAT in
28587   [\\/]* | ?:[\\/]*)
28588   ac_cv_path_NETCAT="$NETCAT" # Let the user override the test with a path.
28589   ;;
28590   *)
28591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28592 for as_dir in $LOCSYSPATH
28593 do
28594   IFS=$as_save_IFS
28595   test -z "$as_dir" && as_dir=.
28596     for ac_exec_ext in '' $ac_executable_extensions; do
28597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28598     ac_cv_path_NETCAT="$as_dir/$ac_word$ac_exec_ext"
28599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28600     break 2
28601   fi
28602 done
28603   done
28604 IFS=$as_save_IFS
28605
28606   ;;
28607 esac
28608 fi
28609 NETCAT=$ac_cv_path_NETCAT
28610 if test -n "$NETCAT"; then
28611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETCAT" >&5
28612 $as_echo "$NETCAT" >&6; }
28613 else
28614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28615 $as_echo "no" >&6; }
28616 fi
28617
28618
28619
28620
28621
28622 #
28623 # Compiler / system characteristics
28624 #
28625
28626 #
28627 # compiler
28628 #
28629 if test $ac_cv_c_compiler_gnu = yes; then
28630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
28631 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
28632 if ${ac_cv_prog_gcc_traditional+:} false; then :
28633   $as_echo_n "(cached) " >&6
28634 else
28635     ac_pattern="Autoconf.*'x'"
28636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28637 /* end confdefs.h.  */
28638 #include <sgtty.h>
28639 Autoconf TIOCGETP
28640 _ACEOF
28641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28642   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
28643   ac_cv_prog_gcc_traditional=yes
28644 else
28645   ac_cv_prog_gcc_traditional=no
28646 fi
28647 rm -f conftest*
28648
28649
28650   if test $ac_cv_prog_gcc_traditional = no; then
28651     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28652 /* end confdefs.h.  */
28653 #include <termio.h>
28654 Autoconf TCGETA
28655 _ACEOF
28656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28657   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
28658   ac_cv_prog_gcc_traditional=yes
28659 fi
28660 rm -f conftest*
28661
28662   fi
28663 fi
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
28665 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
28666   if test $ac_cv_prog_gcc_traditional = yes; then
28667     CC="$CC -traditional"
28668   fi
28669 fi
28670
28671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28672 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28673 if ${ac_cv_c_const+:} false; then :
28674   $as_echo_n "(cached) " >&6
28675 else
28676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28677 /* end confdefs.h.  */
28678
28679 int
28680 main ()
28681 {
28682 /* FIXME: Include the comments suggested by Paul. */
28683 #ifndef __cplusplus
28684   /* Ultrix mips cc rejects this.  */
28685   typedef int charset[2];
28686   const charset cs;
28687   /* SunOS 4.1.1 cc rejects this.  */
28688   char const *const *pcpcc;
28689   char **ppc;
28690   /* NEC SVR4.0.2 mips cc rejects this.  */
28691   struct point {int x, y;};
28692   static struct point const zero = {0,0};
28693   /* AIX XL C 1.02.0.0 rejects this.
28694      It does not let you subtract one const X* pointer from another in
28695      an arm of an if-expression whose if-part is not a constant
28696      expression */
28697   const char *g = "string";
28698   pcpcc = &g + (g ? g-g : 0);
28699   /* HPUX 7.0 cc rejects these. */
28700   ++pcpcc;
28701   ppc = (char**) pcpcc;
28702   pcpcc = (char const *const *) ppc;
28703   { /* SCO 3.2v4 cc rejects this.  */
28704     char *t;
28705     char const *s = 0 ? (char *) 0 : (char const *) 0;
28706
28707     *t++ = 0;
28708     if (s) return 0;
28709   }
28710   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
28711     int x[] = {25, 17};
28712     const int *foo = &x[0];
28713     ++foo;
28714   }
28715   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28716     typedef const int *iptr;
28717     iptr p = 0;
28718     ++p;
28719   }
28720   { /* AIX XL C 1.02.0.0 rejects this saying
28721        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28722     struct s { int j; const int *ap[3]; };
28723     struct s *b; b->j = 5;
28724   }
28725   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28726     const int foo = 10;
28727     if (!foo) return 0;
28728   }
28729   return !cs[0] && !zero.x;
28730 #endif
28731
28732   ;
28733   return 0;
28734 }
28735 _ACEOF
28736 if ac_fn_c_try_compile "$LINENO"; then :
28737   ac_cv_c_const=yes
28738 else
28739   ac_cv_c_const=no
28740 fi
28741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28742 fi
28743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28744 $as_echo "$ac_cv_c_const" >&6; }
28745 if test $ac_cv_c_const = no; then
28746
28747 $as_echo "#define const /**/" >>confdefs.h
28748
28749 fi
28750
28751  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
28752 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28753 if ${ac_cv_c_bigendian+:} false; then :
28754   $as_echo_n "(cached) " >&6
28755 else
28756   ac_cv_c_bigendian=unknown
28757     # See if we're dealing with a universal compiler.
28758     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28759 /* end confdefs.h.  */
28760 #ifndef __APPLE_CC__
28761                not a universal capable compiler
28762              #endif
28763              typedef int dummy;
28764
28765 _ACEOF
28766 if ac_fn_c_try_compile "$LINENO"; then :
28767
28768         # Check for potential -arch flags.  It is not universal unless
28769         # there are at least two -arch flags with different values.
28770         ac_arch=
28771         ac_prev=
28772         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28773          if test -n "$ac_prev"; then
28774            case $ac_word in
28775              i?86 | x86_64 | ppc | ppc64)
28776                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
28777                  ac_arch=$ac_word
28778                else
28779                  ac_cv_c_bigendian=universal
28780                  break
28781                fi
28782                ;;
28783            esac
28784            ac_prev=
28785          elif test "x$ac_word" = "x-arch"; then
28786            ac_prev=arch
28787          fi
28788        done
28789 fi
28790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28791     if test $ac_cv_c_bigendian = unknown; then
28792       # See if sys/param.h defines the BYTE_ORDER macro.
28793       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28794 /* end confdefs.h.  */
28795 #include <sys/types.h>
28796              #include <sys/param.h>
28797
28798 int
28799 main ()
28800 {
28801 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28802                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28803                      && LITTLE_ENDIAN)
28804               bogus endian macros
28805              #endif
28806
28807   ;
28808   return 0;
28809 }
28810 _ACEOF
28811 if ac_fn_c_try_compile "$LINENO"; then :
28812   # It does; now see whether it defined to BIG_ENDIAN or not.
28813          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28814 /* end confdefs.h.  */
28815 #include <sys/types.h>
28816                 #include <sys/param.h>
28817
28818 int
28819 main ()
28820 {
28821 #if BYTE_ORDER != BIG_ENDIAN
28822                  not big endian
28823                 #endif
28824
28825   ;
28826   return 0;
28827 }
28828 _ACEOF
28829 if ac_fn_c_try_compile "$LINENO"; then :
28830   ac_cv_c_bigendian=yes
28831 else
28832   ac_cv_c_bigendian=no
28833 fi
28834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28835 fi
28836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28837     fi
28838     if test $ac_cv_c_bigendian = unknown; then
28839       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28840       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28841 /* end confdefs.h.  */
28842 #include <limits.h>
28843
28844 int
28845 main ()
28846 {
28847 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28848               bogus endian macros
28849              #endif
28850
28851   ;
28852   return 0;
28853 }
28854 _ACEOF
28855 if ac_fn_c_try_compile "$LINENO"; then :
28856   # It does; now see whether it defined to _BIG_ENDIAN or not.
28857          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28858 /* end confdefs.h.  */
28859 #include <limits.h>
28860
28861 int
28862 main ()
28863 {
28864 #ifndef _BIG_ENDIAN
28865                  not big endian
28866                 #endif
28867
28868   ;
28869   return 0;
28870 }
28871 _ACEOF
28872 if ac_fn_c_try_compile "$LINENO"; then :
28873   ac_cv_c_bigendian=yes
28874 else
28875   ac_cv_c_bigendian=no
28876 fi
28877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28878 fi
28879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28880     fi
28881     if test $ac_cv_c_bigendian = unknown; then
28882       # Compile a test program.
28883       if test "$cross_compiling" = yes; then :
28884   # Try to guess by grepping values from an object file.
28885          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28886 /* end confdefs.h.  */
28887 short int ascii_mm[] =
28888                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28889                 short int ascii_ii[] =
28890                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28891                 int use_ascii (int i) {
28892                   return ascii_mm[i] + ascii_ii[i];
28893                 }
28894                 short int ebcdic_ii[] =
28895                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28896                 short int ebcdic_mm[] =
28897                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28898                 int use_ebcdic (int i) {
28899                   return ebcdic_mm[i] + ebcdic_ii[i];
28900                 }
28901                 extern int foo;
28902
28903 int
28904 main ()
28905 {
28906 return use_ascii (foo) == use_ebcdic (foo);
28907   ;
28908   return 0;
28909 }
28910 _ACEOF
28911 if ac_fn_c_try_compile "$LINENO"; then :
28912   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28913               ac_cv_c_bigendian=yes
28914             fi
28915             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28916               if test "$ac_cv_c_bigendian" = unknown; then
28917                 ac_cv_c_bigendian=no
28918               else
28919                 # finding both strings is unlikely to happen, but who knows?
28920                 ac_cv_c_bigendian=unknown
28921               fi
28922             fi
28923 fi
28924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28925 else
28926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28927 /* end confdefs.h.  */
28928 $ac_includes_default
28929 int
28930 main ()
28931 {
28932
28933              /* Are we little or big endian?  From Harbison&Steele.  */
28934              union
28935              {
28936                long int l;
28937                char c[sizeof (long int)];
28938              } u;
28939              u.l = 1;
28940              return u.c[sizeof (long int) - 1] == 1;
28941
28942   ;
28943   return 0;
28944 }
28945 _ACEOF
28946 if ac_fn_c_try_run "$LINENO"; then :
28947   ac_cv_c_bigendian=no
28948 else
28949   ac_cv_c_bigendian=yes
28950 fi
28951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28952   conftest.$ac_objext conftest.beam conftest.$ac_ext
28953 fi
28954
28955     fi
28956 fi
28957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
28958 $as_echo "$ac_cv_c_bigendian" >&6; }
28959  case $ac_cv_c_bigendian in #(
28960    yes)
28961      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
28962 ;; #(
28963    no)
28964       ;; #(
28965    universal)
28966
28967 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
28968
28969      ;; #(
28970    *)
28971      as_fn_error $? "unknown endianness
28972  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
28973  esac
28974
28975
28976 # GCC_COMPILER is needed in the gnulib Makefile to silence errors
28977  if test "x$GCC" = "xyes"; then
28978   GCC_COMPILER_TRUE=
28979   GCC_COMPILER_FALSE='#'
28980 else
28981   GCC_COMPILER_TRUE='#'
28982   GCC_COMPILER_FALSE=
28983 fi
28984
28985
28986 #
28987 # Warnings
28988 #
28989
28990
28991
28992
28993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wparentheses" >&5
28994 $as_echo_n "checking for gcc flag -Wparentheses... " >&6; }
28995     if test "x$GCC" = "xyes"; then
28996                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
28997            $CC -v --help 2>&1) |
28998          $EGREP -- '[^[:alnum:]]-Wparentheses[^[:alnum:]-]' 2>&1 > /dev/null
28999                 if test $? -eq 0; then
29000             found_warning=yes
29001             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29002 $as_echo "yes" >&6; }
29003         else
29004             found_warning=no
29005             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29006 $as_echo "no" >&6; }
29007         fi
29008     else
29009         found_warning=no
29010         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29011 $as_echo "no (not using gcc)" >&6; }
29012     fi
29013
29014     if test x"$found_warning" = x"yes"; then
29015         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
29016
29017
29018     else
29019         :
29020     fi
29021
29022
29023
29024
29025
29026
29027     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wdeclaration-after-statement" >&5
29028 $as_echo_n "checking for gcc flag -Wdeclaration-after-statement... " >&6; }
29029     if test "x$GCC" = "xyes"; then
29030                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29031            $CC -v --help 2>&1) |
29032          $EGREP -- '[^[:alnum:]]-Wdeclaration-after-statement[^[:alnum:]-]' 2>&1 > /dev/null
29033                 if test $? -eq 0; then
29034             found_warning=yes
29035             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29036 $as_echo "yes" >&6; }
29037         else
29038             found_warning=no
29039             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29040 $as_echo "no" >&6; }
29041         fi
29042     else
29043         found_warning=no
29044         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29045 $as_echo "no (not using gcc)" >&6; }
29046     fi
29047
29048     if test x"$found_warning" = x"yes"; then
29049         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
29050
29051
29052     else
29053         :
29054     fi
29055
29056
29057
29058
29059
29060
29061     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wmissing-prototypes" >&5
29062 $as_echo_n "checking for gcc flag -Wmissing-prototypes... " >&6; }
29063     if test "x$GCC" = "xyes"; then
29064                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29065            $CC -v --help 2>&1) |
29066          $EGREP -- '[^[:alnum:]]-Wmissing-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
29067                 if test $? -eq 0; then
29068             found_warning=yes
29069             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29070 $as_echo "yes" >&6; }
29071         else
29072             found_warning=no
29073             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29074 $as_echo "no" >&6; }
29075         fi
29076     else
29077         found_warning=no
29078         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29079 $as_echo "no (not using gcc)" >&6; }
29080     fi
29081
29082     if test x"$found_warning" = x"yes"; then
29083         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
29084
29085
29086     else
29087         :
29088     fi
29089
29090
29091
29092
29093
29094
29095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wstrict-prototypes" >&5
29096 $as_echo_n "checking for gcc flag -Wstrict-prototypes... " >&6; }
29097     if test "x$GCC" = "xyes"; then
29098                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29099            $CC -v --help 2>&1) |
29100          $EGREP -- '[^[:alnum:]]-Wstrict-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
29101                 if test $? -eq 0; then
29102             found_warning=yes
29103             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29104 $as_echo "yes" >&6; }
29105         else
29106             found_warning=no
29107             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29108 $as_echo "no" >&6; }
29109         fi
29110     else
29111         found_warning=no
29112         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29113 $as_echo "no (not using gcc)" >&6; }
29114     fi
29115
29116     if test x"$found_warning" = x"yes"; then
29117         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
29118
29119
29120     else
29121         :
29122     fi
29123
29124
29125
29126
29127
29128
29129     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wmissing-declarations" >&5
29130 $as_echo_n "checking for gcc flag -Wmissing-declarations... " >&6; }
29131     if test "x$GCC" = "xyes"; then
29132                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29133            $CC -v --help 2>&1) |
29134          $EGREP -- '[^[:alnum:]]-Wmissing-declarations[^[:alnum:]-]' 2>&1 > /dev/null
29135                 if test $? -eq 0; then
29136             found_warning=yes
29137             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29138 $as_echo "yes" >&6; }
29139         else
29140             found_warning=no
29141             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29142 $as_echo "no" >&6; }
29143         fi
29144     else
29145         found_warning=no
29146         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29147 $as_echo "no (not using gcc)" >&6; }
29148     fi
29149
29150     if test x"$found_warning" = x"yes"; then
29151         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
29152
29153
29154     else
29155         :
29156     fi
29157
29158
29159
29160
29161
29162
29163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wformat" >&5
29164 $as_echo_n "checking for gcc flag -Wformat... " >&6; }
29165     if test "x$GCC" = "xyes"; then
29166                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29167            $CC -v --help 2>&1) |
29168          $EGREP -- '[^[:alnum:]]-Wformat[^[:alnum:]-]' 2>&1 > /dev/null
29169                 if test $? -eq 0; then
29170             found_warning=yes
29171             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29172 $as_echo "yes" >&6; }
29173         else
29174             found_warning=no
29175             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29176 $as_echo "no" >&6; }
29177         fi
29178     else
29179         found_warning=no
29180         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29181 $as_echo "no (not using gcc)" >&6; }
29182     fi
29183
29184     if test x"$found_warning" = x"yes"; then
29185         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
29186
29187
29188     else
29189         :
29190     fi
29191
29192
29193
29194
29195
29196
29197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wformat-security" >&5
29198 $as_echo_n "checking for gcc flag -Wformat-security... " >&6; }
29199     if test "x$GCC" = "xyes"; then
29200                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29201            $CC -v --help 2>&1) |
29202          $EGREP -- '[^[:alnum:]]-Wformat-security[^[:alnum:]-]' 2>&1 > /dev/null
29203                 if test $? -eq 0; then
29204             found_warning=yes
29205             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29206 $as_echo "yes" >&6; }
29207         else
29208             found_warning=no
29209             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29210 $as_echo "no" >&6; }
29211         fi
29212     else
29213         found_warning=no
29214         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29215 $as_echo "no (not using gcc)" >&6; }
29216     fi
29217
29218     if test x"$found_warning" = x"yes"; then
29219         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat-security"
29220
29221
29222     else
29223         :
29224     fi
29225
29226
29227
29228
29229
29230
29231     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wsign-compare" >&5
29232 $as_echo_n "checking for gcc flag -Wsign-compare... " >&6; }
29233     if test "x$GCC" = "xyes"; then
29234                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29235            $CC -v --help 2>&1) |
29236          $EGREP -- '[^[:alnum:]]-Wsign-compare[^[:alnum:]-]' 2>&1 > /dev/null
29237                 if test $? -eq 0; then
29238             found_warning=yes
29239             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29240 $as_echo "yes" >&6; }
29241         else
29242             found_warning=no
29243             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29244 $as_echo "no" >&6; }
29245         fi
29246     else
29247         found_warning=no
29248         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29249 $as_echo "no (not using gcc)" >&6; }
29250     fi
29251
29252     if test x"$found_warning" = x"yes"; then
29253         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
29254
29255
29256     else
29257         :
29258     fi
29259
29260
29261
29262
29263
29264
29265     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wfloat-equal" >&5
29266 $as_echo_n "checking for gcc flag -Wfloat-equal... " >&6; }
29267     if test "x$GCC" = "xyes"; then
29268                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29269            $CC -v --help 2>&1) |
29270          $EGREP -- '[^[:alnum:]]-Wfloat-equal[^[:alnum:]-]' 2>&1 > /dev/null
29271                 if test $? -eq 0; then
29272             found_warning=yes
29273             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29274 $as_echo "yes" >&6; }
29275         else
29276             found_warning=no
29277             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29278 $as_echo "no" >&6; }
29279         fi
29280     else
29281         found_warning=no
29282         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29283 $as_echo "no (not using gcc)" >&6; }
29284     fi
29285
29286     if test x"$found_warning" = x"yes"; then
29287         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
29288
29289
29290     else
29291         :
29292     fi
29293
29294
29295
29296
29297
29298
29299     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wold-style-definition" >&5
29300 $as_echo_n "checking for gcc flag -Wold-style-definition... " >&6; }
29301     if test "x$GCC" = "xyes"; then
29302                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29303            $CC -v --help 2>&1) |
29304          $EGREP -- '[^[:alnum:]]-Wold-style-definition[^[:alnum:]-]' 2>&1 > /dev/null
29305                 if test $? -eq 0; then
29306             found_warning=yes
29307             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29308 $as_echo "yes" >&6; }
29309         else
29310             found_warning=no
29311             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29312 $as_echo "no" >&6; }
29313         fi
29314     else
29315         found_warning=no
29316         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29317 $as_echo "no (not using gcc)" >&6; }
29318     fi
29319
29320     if test x"$found_warning" = x"yes"; then
29321         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
29322
29323
29324     else
29325         :
29326     fi
29327
29328
29329
29330     # test for -W'warning', then add the 'no-' version.
29331
29332
29333
29334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wstrict-aliasing" >&5
29335 $as_echo_n "checking for gcc flag -Wstrict-aliasing... " >&6; }
29336     if test "x$GCC" = "xyes"; then
29337                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29338            $CC -v --help 2>&1) |
29339          $EGREP -- '[^[:alnum:]]-Wstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
29340                 if test $? -eq 0; then
29341             found_warning=yes
29342             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29343 $as_echo "yes" >&6; }
29344         else
29345             found_warning=no
29346             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29347 $as_echo "no" >&6; }
29348         fi
29349     else
29350         found_warning=no
29351         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29352 $as_echo "no (not using gcc)" >&6; }
29353     fi
29354
29355     if test x"$found_warning" = x"yes"; then
29356         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
29357
29358
29359     else
29360         :
29361     fi
29362
29363
29364
29365     # test for -W'warning', then add the 'no-' version.
29366
29367
29368
29369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wunknown-pragmas" >&5
29370 $as_echo_n "checking for gcc flag -Wunknown-pragmas... " >&6; }
29371     if test "x$GCC" = "xyes"; then
29372                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29373            $CC -v --help 2>&1) |
29374          $EGREP -- '[^[:alnum:]]-Wunknown-pragmas[^[:alnum:]-]' 2>&1 > /dev/null
29375                 if test $? -eq 0; then
29376             found_warning=yes
29377             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29378 $as_echo "yes" >&6; }
29379         else
29380             found_warning=no
29381             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29382 $as_echo "no" >&6; }
29383         fi
29384     else
29385         found_warning=no
29386         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29387 $as_echo "no (not using gcc)" >&6; }
29388     fi
29389
29390     if test x"$found_warning" = x"yes"; then
29391         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
29392
29393
29394     else
29395         :
29396     fi
29397
29398
29399
29400     # Check whether --enable-werror was given.
29401 if test "${enable_werror+set}" = set; then :
29402   enableval=$enable_werror;
29403             case "$enableval" in
29404             "" | y | ye | yes)
29405
29406
29407
29408
29409     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Werror" >&5
29410 $as_echo_n "checking for gcc flag -Werror... " >&6; }
29411     if test "x$GCC" = "xyes"; then
29412                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29413            $CC -v --help 2>&1) |
29414          $EGREP -- '[^[:alnum:]]-Werror[^[:alnum:]-]' 2>&1 > /dev/null
29415                 if test $? -eq 0; then
29416             found_warning=yes
29417             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29418 $as_echo "yes" >&6; }
29419         else
29420             found_warning=no
29421             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29422 $as_echo "no" >&6; }
29423         fi
29424     else
29425         found_warning=no
29426         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29427 $as_echo "no (not using gcc)" >&6; }
29428     fi
29429
29430     if test x"$found_warning" = x"yes"; then
29431         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Werror"
29432
29433
29434     else
29435         :
29436     fi
29437
29438
29439                 ;;
29440             esac
29441
29442 fi
29443
29444
29445
29446     # Check whether --enable-swig-error was given.
29447 if test "${enable_swig_error+set}" = set; then :
29448   enableval=$enable_swig_error;
29449             case "$enableval" in
29450             "" | y | ye | yes)
29451                 AMANDA_SWIG_PERL_CFLAGS=-Werror
29452                 ;;
29453             *n | no)
29454                 AMANDA_SWIG_PERL_CFLAGS=
29455                 ;;
29456             esac
29457
29458 fi
29459
29460
29461
29462
29463 #
29464 # Libtool
29465 #
29466 case `pwd` in
29467   *\ * | *\     *)
29468     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
29469 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
29470 esac
29471
29472
29473
29474 macro_version='2.4'
29475 macro_revision='1.3293'
29476
29477
29478
29479
29480
29481
29482
29483
29484
29485
29486
29487
29488
29489 ltmain="$ac_aux_dir/ltmain.sh"
29490
29491 # Backslashify metacharacters that are still active within
29492 # double-quoted strings.
29493 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
29494
29495 # Same as above, but do not quote variable references.
29496 double_quote_subst='s/\(["`\\]\)/\\\1/g'
29497
29498 # Sed substitution to delay expansion of an escaped shell variable in a
29499 # double_quote_subst'ed string.
29500 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
29501
29502 # Sed substitution to delay expansion of an escaped single quote.
29503 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
29504
29505 # Sed substitution to avoid accidental globbing in evaled expressions
29506 no_glob_subst='s/\*/\\\*/g'
29507
29508 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29509 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
29510 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
29511
29512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
29513 $as_echo_n "checking how to print strings... " >&6; }
29514 # Test print first, because it will be a builtin if present.
29515 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
29516    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
29517   ECHO='print -r --'
29518 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
29519   ECHO='printf %s\n'
29520 else
29521   # Use this function as a fallback that always works.
29522   func_fallback_echo ()
29523   {
29524     eval 'cat <<_LTECHO_EOF
29525 $1
29526 _LTECHO_EOF'
29527   }
29528   ECHO='func_fallback_echo'
29529 fi
29530
29531 # func_echo_all arg...
29532 # Invoke $ECHO with all args, space-separated.
29533 func_echo_all ()
29534 {
29535     $ECHO ""
29536 }
29537
29538 case "$ECHO" in
29539   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
29540 $as_echo "printf" >&6; } ;;
29541   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
29542 $as_echo "print -r" >&6; } ;;
29543   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
29544 $as_echo "cat" >&6; } ;;
29545 esac
29546
29547
29548
29549
29550
29551
29552
29553
29554
29555
29556
29557
29558
29559
29560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
29561 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
29562 if ${ac_cv_path_SED+:} false; then :
29563   $as_echo_n "(cached) " >&6
29564 else
29565             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
29566      for ac_i in 1 2 3 4 5 6 7; do
29567        ac_script="$ac_script$as_nl$ac_script"
29568      done
29569      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
29570      { ac_script=; unset ac_script;}
29571      if test -z "$SED"; then
29572   ac_path_SED_found=false
29573   # Loop through the user's path and test for each of PROGNAME-LIST
29574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29575 for as_dir in $PATH
29576 do
29577   IFS=$as_save_IFS
29578   test -z "$as_dir" && as_dir=.
29579     for ac_prog in sed gsed; do
29580     for ac_exec_ext in '' $ac_executable_extensions; do
29581       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
29582       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
29583 # Check for GNU ac_path_SED and select it if it is found.
29584   # Check for GNU $ac_path_SED
29585 case `"$ac_path_SED" --version 2>&1` in
29586 *GNU*)
29587   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
29588 *)
29589   ac_count=0
29590   $as_echo_n 0123456789 >"conftest.in"
29591   while :
29592   do
29593     cat "conftest.in" "conftest.in" >"conftest.tmp"
29594     mv "conftest.tmp" "conftest.in"
29595     cp "conftest.in" "conftest.nl"
29596     $as_echo '' >> "conftest.nl"
29597     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
29598     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
29599     as_fn_arith $ac_count + 1 && ac_count=$as_val
29600     if test $ac_count -gt ${ac_path_SED_max-0}; then
29601       # Best one so far, save it but keep looking for a better one
29602       ac_cv_path_SED="$ac_path_SED"
29603       ac_path_SED_max=$ac_count
29604     fi
29605     # 10*(2^10) chars as input seems more than enough
29606     test $ac_count -gt 10 && break
29607   done
29608   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
29609 esac
29610
29611       $ac_path_SED_found && break 3
29612     done
29613   done
29614   done
29615 IFS=$as_save_IFS
29616   if test -z "$ac_cv_path_SED"; then
29617     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
29618   fi
29619 else
29620   ac_cv_path_SED=$SED
29621 fi
29622
29623 fi
29624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
29625 $as_echo "$ac_cv_path_SED" >&6; }
29626  SED="$ac_cv_path_SED"
29627   rm -f conftest.sed
29628
29629 test -z "$SED" && SED=sed
29630 Xsed="$SED -e 1s/^X//"
29631
29632
29633
29634
29635
29636
29637
29638
29639
29640
29641
29642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
29643 $as_echo_n "checking for fgrep... " >&6; }
29644 if ${ac_cv_path_FGREP+:} false; then :
29645   $as_echo_n "(cached) " >&6
29646 else
29647   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
29648    then ac_cv_path_FGREP="$GREP -F"
29649    else
29650      if test -z "$FGREP"; then
29651   ac_path_FGREP_found=false
29652   # Loop through the user's path and test for each of PROGNAME-LIST
29653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29654 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
29655 do
29656   IFS=$as_save_IFS
29657   test -z "$as_dir" && as_dir=.
29658     for ac_prog in fgrep; do
29659     for ac_exec_ext in '' $ac_executable_extensions; do
29660       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
29661       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
29662 # Check for GNU ac_path_FGREP and select it if it is found.
29663   # Check for GNU $ac_path_FGREP
29664 case `"$ac_path_FGREP" --version 2>&1` in
29665 *GNU*)
29666   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
29667 *)
29668   ac_count=0
29669   $as_echo_n 0123456789 >"conftest.in"
29670   while :
29671   do
29672     cat "conftest.in" "conftest.in" >"conftest.tmp"
29673     mv "conftest.tmp" "conftest.in"
29674     cp "conftest.in" "conftest.nl"
29675     $as_echo 'FGREP' >> "conftest.nl"
29676     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
29677     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
29678     as_fn_arith $ac_count + 1 && ac_count=$as_val
29679     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
29680       # Best one so far, save it but keep looking for a better one
29681       ac_cv_path_FGREP="$ac_path_FGREP"
29682       ac_path_FGREP_max=$ac_count
29683     fi
29684     # 10*(2^10) chars as input seems more than enough
29685     test $ac_count -gt 10 && break
29686   done
29687   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
29688 esac
29689
29690       $ac_path_FGREP_found && break 3
29691     done
29692   done
29693   done
29694 IFS=$as_save_IFS
29695   if test -z "$ac_cv_path_FGREP"; then
29696     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
29697   fi
29698 else
29699   ac_cv_path_FGREP=$FGREP
29700 fi
29701
29702    fi
29703 fi
29704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
29705 $as_echo "$ac_cv_path_FGREP" >&6; }
29706  FGREP="$ac_cv_path_FGREP"
29707
29708
29709 test -z "$GREP" && GREP=grep
29710
29711
29712
29713
29714
29715
29716
29717
29718
29719
29720
29721
29722
29723
29724
29725
29726
29727
29728
29729 # Check whether --with-gnu-ld was given.
29730 if test "${with_gnu_ld+set}" = set; then :
29731   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
29732 else
29733   with_gnu_ld=no
29734 fi
29735
29736 ac_prog=ld
29737 if test "$GCC" = yes; then
29738   # Check if gcc -print-prog-name=ld gives a path.
29739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
29740 $as_echo_n "checking for ld used by $CC... " >&6; }
29741   case $host in
29742   *-*-mingw*)
29743     # gcc leaves a trailing carriage return which upsets mingw
29744     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
29745   *)
29746     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
29747   esac
29748   case $ac_prog in
29749     # Accept absolute paths.
29750     [\\/]* | ?:[\\/]*)
29751       re_direlt='/[^/][^/]*/\.\./'
29752       # Canonicalize the pathname of ld
29753       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
29754       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
29755         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
29756       done
29757       test -z "$LD" && LD="$ac_prog"
29758       ;;
29759   "")
29760     # If it fails, then pretend we aren't using GCC.
29761     ac_prog=ld
29762     ;;
29763   *)
29764     # If it is relative, then search for the first ld in PATH.
29765     with_gnu_ld=unknown
29766     ;;
29767   esac
29768 elif test "$with_gnu_ld" = yes; then
29769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
29770 $as_echo_n "checking for GNU ld... " >&6; }
29771 else
29772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
29773 $as_echo_n "checking for non-GNU ld... " >&6; }
29774 fi
29775 if ${lt_cv_path_LD+:} false; then :
29776   $as_echo_n "(cached) " >&6
29777 else
29778   if test -z "$LD"; then
29779   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
29780   for ac_dir in $PATH; do
29781     IFS="$lt_save_ifs"
29782     test -z "$ac_dir" && ac_dir=.
29783     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
29784       lt_cv_path_LD="$ac_dir/$ac_prog"
29785       # Check to see if the program is GNU ld.  I'd rather use --version,
29786       # but apparently some variants of GNU ld only accept -v.
29787       # Break only if it was the GNU/non-GNU ld that we prefer.
29788       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
29789       *GNU* | *'with BFD'*)
29790         test "$with_gnu_ld" != no && break
29791         ;;
29792       *)
29793         test "$with_gnu_ld" != yes && break
29794         ;;
29795       esac
29796     fi
29797   done
29798   IFS="$lt_save_ifs"
29799 else
29800   lt_cv_path_LD="$LD" # Let the user override the test with a path.
29801 fi
29802 fi
29803
29804 LD="$lt_cv_path_LD"
29805 if test -n "$LD"; then
29806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
29807 $as_echo "$LD" >&6; }
29808 else
29809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29810 $as_echo "no" >&6; }
29811 fi
29812 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
29813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
29814 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
29815 if ${lt_cv_prog_gnu_ld+:} false; then :
29816   $as_echo_n "(cached) " >&6
29817 else
29818   # I'd rather use --version here, but apparently some GNU lds only accept -v.
29819 case `$LD -v 2>&1 </dev/null` in
29820 *GNU* | *'with BFD'*)
29821   lt_cv_prog_gnu_ld=yes
29822   ;;
29823 *)
29824   lt_cv_prog_gnu_ld=no
29825   ;;
29826 esac
29827 fi
29828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
29829 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
29830 with_gnu_ld=$lt_cv_prog_gnu_ld
29831
29832
29833
29834
29835
29836
29837
29838
29839
29840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
29841 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
29842 if ${lt_cv_path_NM+:} false; then :
29843   $as_echo_n "(cached) " >&6
29844 else
29845   if test -n "$NM"; then
29846   # Let the user override the test.
29847   lt_cv_path_NM="$NM"
29848 else
29849   lt_nm_to_check="${ac_tool_prefix}nm"
29850   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
29851     lt_nm_to_check="$lt_nm_to_check nm"
29852   fi
29853   for lt_tmp_nm in $lt_nm_to_check; do
29854     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
29855     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
29856       IFS="$lt_save_ifs"
29857       test -z "$ac_dir" && ac_dir=.
29858       tmp_nm="$ac_dir/$lt_tmp_nm"
29859       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
29860         # Check to see if the nm accepts a BSD-compat flag.
29861         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
29862         #   nm: unknown option "B" ignored
29863         # Tru64's nm complains that /dev/null is an invalid object file
29864         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
29865         */dev/null* | *'Invalid file or object type'*)
29866           lt_cv_path_NM="$tmp_nm -B"
29867           break
29868           ;;
29869         *)
29870           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
29871           */dev/null*)
29872             lt_cv_path_NM="$tmp_nm -p"
29873             break
29874             ;;
29875           *)
29876             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
29877             continue # so that we can try to find one that supports BSD flags
29878             ;;
29879           esac
29880           ;;
29881         esac
29882       fi
29883     done
29884     IFS="$lt_save_ifs"
29885   done
29886   : ${lt_cv_path_NM=no}
29887 fi
29888 fi
29889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
29890 $as_echo "$lt_cv_path_NM" >&6; }
29891 if test "$lt_cv_path_NM" != "no"; then
29892   NM="$lt_cv_path_NM"
29893 else
29894   # Didn't find any BSD compatible name lister, look for dumpbin.
29895   if test -n "$DUMPBIN"; then :
29896     # Let the user override the test.
29897   else
29898     if test -n "$ac_tool_prefix"; then
29899   for ac_prog in dumpbin "link -dump"
29900   do
29901     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
29903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29904 $as_echo_n "checking for $ac_word... " >&6; }
29905 if ${ac_cv_prog_DUMPBIN+:} false; then :
29906   $as_echo_n "(cached) " >&6
29907 else
29908   if test -n "$DUMPBIN"; then
29909   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
29910 else
29911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29912 for as_dir in $PATH
29913 do
29914   IFS=$as_save_IFS
29915   test -z "$as_dir" && as_dir=.
29916     for ac_exec_ext in '' $ac_executable_extensions; do
29917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29918     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
29919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29920     break 2
29921   fi
29922 done
29923   done
29924 IFS=$as_save_IFS
29925
29926 fi
29927 fi
29928 DUMPBIN=$ac_cv_prog_DUMPBIN
29929 if test -n "$DUMPBIN"; then
29930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
29931 $as_echo "$DUMPBIN" >&6; }
29932 else
29933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29934 $as_echo "no" >&6; }
29935 fi
29936
29937
29938     test -n "$DUMPBIN" && break
29939   done
29940 fi
29941 if test -z "$DUMPBIN"; then
29942   ac_ct_DUMPBIN=$DUMPBIN
29943   for ac_prog in dumpbin "link -dump"
29944 do
29945   # Extract the first word of "$ac_prog", so it can be a program name with args.
29946 set dummy $ac_prog; ac_word=$2
29947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29948 $as_echo_n "checking for $ac_word... " >&6; }
29949 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
29950   $as_echo_n "(cached) " >&6
29951 else
29952   if test -n "$ac_ct_DUMPBIN"; then
29953   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
29954 else
29955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29956 for as_dir in $PATH
29957 do
29958   IFS=$as_save_IFS
29959   test -z "$as_dir" && as_dir=.
29960     for ac_exec_ext in '' $ac_executable_extensions; do
29961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29962     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
29963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29964     break 2
29965   fi
29966 done
29967   done
29968 IFS=$as_save_IFS
29969
29970 fi
29971 fi
29972 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
29973 if test -n "$ac_ct_DUMPBIN"; then
29974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
29975 $as_echo "$ac_ct_DUMPBIN" >&6; }
29976 else
29977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29978 $as_echo "no" >&6; }
29979 fi
29980
29981
29982   test -n "$ac_ct_DUMPBIN" && break
29983 done
29984
29985   if test "x$ac_ct_DUMPBIN" = x; then
29986     DUMPBIN=":"
29987   else
29988     case $cross_compiling:$ac_tool_warned in
29989 yes:)
29990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29992 ac_tool_warned=yes ;;
29993 esac
29994     DUMPBIN=$ac_ct_DUMPBIN
29995   fi
29996 fi
29997
29998     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
29999     *COFF*)
30000       DUMPBIN="$DUMPBIN -symbols"
30001       ;;
30002     *)
30003       DUMPBIN=:
30004       ;;
30005     esac
30006   fi
30007
30008   if test "$DUMPBIN" != ":"; then
30009     NM="$DUMPBIN"
30010   fi
30011 fi
30012 test -z "$NM" && NM=nm
30013
30014
30015
30016
30017
30018
30019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
30020 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
30021 if ${lt_cv_nm_interface+:} false; then :
30022   $as_echo_n "(cached) " >&6
30023 else
30024   lt_cv_nm_interface="BSD nm"
30025   echo "int some_variable = 0;" > conftest.$ac_ext
30026   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
30027   (eval "$ac_compile" 2>conftest.err)
30028   cat conftest.err >&5
30029   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
30030   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
30031   cat conftest.err >&5
30032   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
30033   cat conftest.out >&5
30034   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
30035     lt_cv_nm_interface="MS dumpbin"
30036   fi
30037   rm -f conftest*
30038 fi
30039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
30040 $as_echo "$lt_cv_nm_interface" >&6; }
30041
30042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
30043 $as_echo_n "checking whether ln -s works... " >&6; }
30044 LN_S=$as_ln_s
30045 if test "$LN_S" = "ln -s"; then
30046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30047 $as_echo "yes" >&6; }
30048 else
30049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
30050 $as_echo "no, using $LN_S" >&6; }
30051 fi
30052
30053 # find the maximum length of command line arguments
30054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
30055 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
30056 if ${lt_cv_sys_max_cmd_len+:} false; then :
30057   $as_echo_n "(cached) " >&6
30058 else
30059     i=0
30060   teststring="ABCD"
30061
30062   case $build_os in
30063   msdosdjgpp*)
30064     # On DJGPP, this test can blow up pretty badly due to problems in libc
30065     # (any single argument exceeding 2000 bytes causes a buffer overrun
30066     # during glob expansion).  Even if it were fixed, the result of this
30067     # check would be larger than it should be.
30068     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
30069     ;;
30070
30071   gnu*)
30072     # Under GNU Hurd, this test is not required because there is
30073     # no limit to the length of command line arguments.
30074     # Libtool will interpret -1 as no limit whatsoever
30075     lt_cv_sys_max_cmd_len=-1;
30076     ;;
30077
30078   cygwin* | mingw* | cegcc*)
30079     # On Win9x/ME, this test blows up -- it succeeds, but takes
30080     # about 5 minutes as the teststring grows exponentially.
30081     # Worse, since 9x/ME are not pre-emptively multitasking,
30082     # you end up with a "frozen" computer, even though with patience
30083     # the test eventually succeeds (with a max line length of 256k).
30084     # Instead, let's just punt: use the minimum linelength reported by
30085     # all of the supported platforms: 8192 (on NT/2K/XP).
30086     lt_cv_sys_max_cmd_len=8192;
30087     ;;
30088
30089   mint*)
30090     # On MiNT this can take a long time and run out of memory.
30091     lt_cv_sys_max_cmd_len=8192;
30092     ;;
30093
30094   amigaos*)
30095     # On AmigaOS with pdksh, this test takes hours, literally.
30096     # So we just punt and use a minimum line length of 8192.
30097     lt_cv_sys_max_cmd_len=8192;
30098     ;;
30099
30100   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
30101     # This has been around since 386BSD, at least.  Likely further.
30102     if test -x /sbin/sysctl; then
30103       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
30104     elif test -x /usr/sbin/sysctl; then
30105       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
30106     else
30107       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
30108     fi
30109     # And add a safety zone
30110     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
30111     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
30112     ;;
30113
30114   interix*)
30115     # We know the value 262144 and hardcode it with a safety zone (like BSD)
30116     lt_cv_sys_max_cmd_len=196608
30117     ;;
30118
30119   osf*)
30120     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
30121     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
30122     # nice to cause kernel panics so lets avoid the loop below.
30123     # First set a reasonable default.
30124     lt_cv_sys_max_cmd_len=16384
30125     #
30126     if test -x /sbin/sysconfig; then
30127       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
30128         *1*) lt_cv_sys_max_cmd_len=-1 ;;
30129       esac
30130     fi
30131     ;;
30132   sco3.2v5*)
30133     lt_cv_sys_max_cmd_len=102400
30134     ;;
30135   sysv5* | sco5v6* | sysv4.2uw2*)
30136     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
30137     if test -n "$kargmax"; then
30138       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
30139     else
30140       lt_cv_sys_max_cmd_len=32768
30141     fi
30142     ;;
30143   *)
30144     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
30145     if test -n "$lt_cv_sys_max_cmd_len"; then
30146       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
30147       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
30148     else
30149       # Make teststring a little bigger before we do anything with it.
30150       # a 1K string should be a reasonable start.
30151       for i in 1 2 3 4 5 6 7 8 ; do
30152         teststring=$teststring$teststring
30153       done
30154       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
30155       # If test is not a shell built-in, we'll probably end up computing a
30156       # maximum length that is only half of the actual maximum length, but
30157       # we can't tell.
30158       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
30159                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
30160               test $i != 17 # 1/2 MB should be enough
30161       do
30162         i=`expr $i + 1`
30163         teststring=$teststring$teststring
30164       done
30165       # Only check the string length outside the loop.
30166       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
30167       teststring=
30168       # Add a significant safety factor because C++ compilers can tack on
30169       # massive amounts of additional arguments before passing them to the
30170       # linker.  It appears as though 1/2 is a usable value.
30171       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
30172     fi
30173     ;;
30174   esac
30175
30176 fi
30177
30178 if test -n $lt_cv_sys_max_cmd_len ; then
30179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
30180 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
30181 else
30182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
30183 $as_echo "none" >&6; }
30184 fi
30185 max_cmd_len=$lt_cv_sys_max_cmd_len
30186
30187
30188
30189
30190
30191
30192 : ${CP="cp -f"}
30193 : ${MV="mv -f"}
30194 : ${RM="rm -f"}
30195
30196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
30197 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
30198 # Try some XSI features
30199 xsi_shell=no
30200 ( _lt_dummy="a/b/c"
30201   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
30202       = c,a/b,b/c, \
30203     && eval 'test $(( 1 + 1 )) -eq 2 \
30204     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
30205   && xsi_shell=yes
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
30207 $as_echo "$xsi_shell" >&6; }
30208
30209
30210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
30211 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
30212 lt_shell_append=no
30213 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
30214     >/dev/null 2>&1 \
30215   && lt_shell_append=yes
30216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
30217 $as_echo "$lt_shell_append" >&6; }
30218
30219
30220 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30221   lt_unset=unset
30222 else
30223   lt_unset=false
30224 fi
30225
30226
30227
30228
30229
30230 # test EBCDIC or ASCII
30231 case `echo X|tr X '\101'` in
30232  A) # ASCII based system
30233     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
30234   lt_SP2NL='tr \040 \012'
30235   lt_NL2SP='tr \015\012 \040\040'
30236   ;;
30237  *) # EBCDIC based system
30238   lt_SP2NL='tr \100 \n'
30239   lt_NL2SP='tr \r\n \100\100'
30240   ;;
30241 esac
30242
30243
30244
30245
30246
30247
30248
30249
30250
30251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
30252 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
30253 if ${lt_cv_to_host_file_cmd+:} false; then :
30254   $as_echo_n "(cached) " >&6
30255 else
30256   case $host in
30257   *-*-mingw* )
30258     case $build in
30259       *-*-mingw* ) # actually msys
30260         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
30261         ;;
30262       *-*-cygwin* )
30263         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
30264         ;;
30265       * ) # otherwise, assume *nix
30266         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
30267         ;;
30268     esac
30269     ;;
30270   *-*-cygwin* )
30271     case $build in
30272       *-*-mingw* ) # actually msys
30273         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
30274         ;;
30275       *-*-cygwin* )
30276         lt_cv_to_host_file_cmd=func_convert_file_noop
30277         ;;
30278       * ) # otherwise, assume *nix
30279         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
30280         ;;
30281     esac
30282     ;;
30283   * ) # unhandled hosts (and "normal" native builds)
30284     lt_cv_to_host_file_cmd=func_convert_file_noop
30285     ;;
30286 esac
30287
30288 fi
30289
30290 to_host_file_cmd=$lt_cv_to_host_file_cmd
30291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
30292 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
30293
30294
30295
30296
30297
30298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
30299 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
30300 if ${lt_cv_to_tool_file_cmd+:} false; then :
30301   $as_echo_n "(cached) " >&6
30302 else
30303   #assume ordinary cross tools, or native build.
30304 lt_cv_to_tool_file_cmd=func_convert_file_noop
30305 case $host in
30306   *-*-mingw* )
30307     case $build in
30308       *-*-mingw* ) # actually msys
30309         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
30310         ;;
30311     esac
30312     ;;
30313 esac
30314
30315 fi
30316
30317 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
30319 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
30320
30321
30322
30323
30324
30325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
30326 $as_echo_n "checking for $LD option to reload object files... " >&6; }
30327 if ${lt_cv_ld_reload_flag+:} false; then :
30328   $as_echo_n "(cached) " >&6
30329 else
30330   lt_cv_ld_reload_flag='-r'
30331 fi
30332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
30333 $as_echo "$lt_cv_ld_reload_flag" >&6; }
30334 reload_flag=$lt_cv_ld_reload_flag
30335 case $reload_flag in
30336 "" | " "*) ;;
30337 *) reload_flag=" $reload_flag" ;;
30338 esac
30339 reload_cmds='$LD$reload_flag -o $output$reload_objs'
30340 case $host_os in
30341   cygwin* | mingw* | pw32* | cegcc*)
30342     if test "$GCC" != yes; then
30343       reload_cmds=false
30344     fi
30345     ;;
30346   darwin*)
30347     if test "$GCC" = yes; then
30348       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
30349     else
30350       reload_cmds='$LD$reload_flag -o $output$reload_objs'
30351     fi
30352     ;;
30353 esac
30354
30355
30356
30357
30358
30359
30360
30361
30362
30363 if test -n "$ac_tool_prefix"; then
30364   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
30365 set dummy ${ac_tool_prefix}objdump; ac_word=$2
30366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30367 $as_echo_n "checking for $ac_word... " >&6; }
30368 if ${ac_cv_prog_OBJDUMP+:} false; then :
30369   $as_echo_n "(cached) " >&6
30370 else
30371   if test -n "$OBJDUMP"; then
30372   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
30373 else
30374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30375 for as_dir in $PATH
30376 do
30377   IFS=$as_save_IFS
30378   test -z "$as_dir" && as_dir=.
30379     for ac_exec_ext in '' $ac_executable_extensions; do
30380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30381     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
30382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30383     break 2
30384   fi
30385 done
30386   done
30387 IFS=$as_save_IFS
30388
30389 fi
30390 fi
30391 OBJDUMP=$ac_cv_prog_OBJDUMP
30392 if test -n "$OBJDUMP"; then
30393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
30394 $as_echo "$OBJDUMP" >&6; }
30395 else
30396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30397 $as_echo "no" >&6; }
30398 fi
30399
30400
30401 fi
30402 if test -z "$ac_cv_prog_OBJDUMP"; then
30403   ac_ct_OBJDUMP=$OBJDUMP
30404   # Extract the first word of "objdump", so it can be a program name with args.
30405 set dummy objdump; ac_word=$2
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30407 $as_echo_n "checking for $ac_word... " >&6; }
30408 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
30409   $as_echo_n "(cached) " >&6
30410 else
30411   if test -n "$ac_ct_OBJDUMP"; then
30412   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
30413 else
30414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30415 for as_dir in $PATH
30416 do
30417   IFS=$as_save_IFS
30418   test -z "$as_dir" && as_dir=.
30419     for ac_exec_ext in '' $ac_executable_extensions; do
30420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30421     ac_cv_prog_ac_ct_OBJDUMP="objdump"
30422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30423     break 2
30424   fi
30425 done
30426   done
30427 IFS=$as_save_IFS
30428
30429 fi
30430 fi
30431 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
30432 if test -n "$ac_ct_OBJDUMP"; then
30433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
30434 $as_echo "$ac_ct_OBJDUMP" >&6; }
30435 else
30436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30437 $as_echo "no" >&6; }
30438 fi
30439
30440   if test "x$ac_ct_OBJDUMP" = x; then
30441     OBJDUMP="false"
30442   else
30443     case $cross_compiling:$ac_tool_warned in
30444 yes:)
30445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30447 ac_tool_warned=yes ;;
30448 esac
30449     OBJDUMP=$ac_ct_OBJDUMP
30450   fi
30451 else
30452   OBJDUMP="$ac_cv_prog_OBJDUMP"
30453 fi
30454
30455 test -z "$OBJDUMP" && OBJDUMP=objdump
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
30466 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
30467 if ${lt_cv_deplibs_check_method+:} false; then :
30468   $as_echo_n "(cached) " >&6
30469 else
30470   lt_cv_file_magic_cmd='$MAGIC_CMD'
30471 lt_cv_file_magic_test_file=
30472 lt_cv_deplibs_check_method='unknown'
30473 # Need to set the preceding variable on all platforms that support
30474 # interlibrary dependencies.
30475 # 'none' -- dependencies not supported.
30476 # `unknown' -- same as none, but documents that we really don't know.
30477 # 'pass_all' -- all dependencies passed with no checks.
30478 # 'test_compile' -- check by making test program.
30479 # 'file_magic [[regex]]' -- check by looking for files in library path
30480 # which responds to the $file_magic_cmd with a given extended regex.
30481 # If you have `file' or equivalent on your system and you're not sure
30482 # whether `pass_all' will *always* work, you probably want this one.
30483
30484 case $host_os in
30485 aix[4-9]*)
30486   lt_cv_deplibs_check_method=pass_all
30487   ;;
30488
30489 beos*)
30490   lt_cv_deplibs_check_method=pass_all
30491   ;;
30492
30493 bsdi[45]*)
30494   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
30495   lt_cv_file_magic_cmd='/usr/bin/file -L'
30496   lt_cv_file_magic_test_file=/shlib/libc.so
30497   ;;
30498
30499 cygwin*)
30500   # func_win32_libid is a shell function defined in ltmain.sh
30501   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30502   lt_cv_file_magic_cmd='func_win32_libid'
30503   ;;
30504
30505 mingw* | pw32*)
30506   # Base MSYS/MinGW do not provide the 'file' command needed by
30507   # func_win32_libid shell function, so use a weaker test based on 'objdump',
30508   # unless we find 'file', for example because we are cross-compiling.
30509   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
30510   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
30511     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30512     lt_cv_file_magic_cmd='func_win32_libid'
30513   else
30514     # Keep this pattern in sync with the one in func_win32_libid.
30515     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
30516     lt_cv_file_magic_cmd='$OBJDUMP -f'
30517   fi
30518   ;;
30519
30520 cegcc*)
30521   # use the weaker test based on 'objdump'. See mingw*.
30522   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
30523   lt_cv_file_magic_cmd='$OBJDUMP -f'
30524   ;;
30525
30526 darwin* | rhapsody*)
30527   lt_cv_deplibs_check_method=pass_all
30528   ;;
30529
30530 freebsd* | dragonfly*)
30531   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
30532     case $host_cpu in
30533     i*86 )
30534       # Not sure whether the presence of OpenBSD here was a mistake.
30535       # Let's accept both of them until this is cleared up.
30536       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
30537       lt_cv_file_magic_cmd=/usr/bin/file
30538       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
30539       ;;
30540     esac
30541   else
30542     lt_cv_deplibs_check_method=pass_all
30543   fi
30544   ;;
30545
30546 gnu*)
30547   lt_cv_deplibs_check_method=pass_all
30548   ;;
30549
30550 haiku*)
30551   lt_cv_deplibs_check_method=pass_all
30552   ;;
30553
30554 hpux10.20* | hpux11*)
30555   lt_cv_file_magic_cmd=/usr/bin/file
30556   case $host_cpu in
30557   ia64*)
30558     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
30559     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
30560     ;;
30561   hppa*64*)
30562     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
30563     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
30564     ;;
30565   *)
30566     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
30567     lt_cv_file_magic_test_file=/usr/lib/libc.sl
30568     ;;
30569   esac
30570   ;;
30571
30572 interix[3-9]*)
30573   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
30574   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
30575   ;;
30576
30577 irix5* | irix6* | nonstopux*)
30578   case $LD in
30579   *-32|*"-32 ") libmagic=32-bit;;
30580   *-n32|*"-n32 ") libmagic=N32;;
30581   *-64|*"-64 ") libmagic=64-bit;;
30582   *) libmagic=never-match;;
30583   esac
30584   lt_cv_deplibs_check_method=pass_all
30585   ;;
30586
30587 # This must be Linux ELF.
30588 linux* | k*bsd*-gnu | kopensolaris*-gnu)
30589   lt_cv_deplibs_check_method=pass_all
30590   ;;
30591
30592 netbsd*)
30593   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
30594     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
30595   else
30596     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
30597   fi
30598   ;;
30599
30600 newos6*)
30601   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
30602   lt_cv_file_magic_cmd=/usr/bin/file
30603   lt_cv_file_magic_test_file=/usr/lib/libnls.so
30604   ;;
30605
30606 *nto* | *qnx*)
30607   lt_cv_deplibs_check_method=pass_all
30608   ;;
30609
30610 openbsd*)
30611   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
30612     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
30613   else
30614     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
30615   fi
30616   ;;
30617
30618 osf3* | osf4* | osf5*)
30619   lt_cv_deplibs_check_method=pass_all
30620   ;;
30621
30622 rdos*)
30623   lt_cv_deplibs_check_method=pass_all
30624   ;;
30625
30626 solaris*)
30627   lt_cv_deplibs_check_method=pass_all
30628   ;;
30629
30630 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
30631   lt_cv_deplibs_check_method=pass_all
30632   ;;
30633
30634 sysv4 | sysv4.3*)
30635   case $host_vendor in
30636   motorola)
30637     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]'
30638     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
30639     ;;
30640   ncr)
30641     lt_cv_deplibs_check_method=pass_all
30642     ;;
30643   sequent)
30644     lt_cv_file_magic_cmd='/bin/file'
30645     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
30646     ;;
30647   sni)
30648     lt_cv_file_magic_cmd='/bin/file'
30649     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
30650     lt_cv_file_magic_test_file=/lib/libc.so
30651     ;;
30652   siemens)
30653     lt_cv_deplibs_check_method=pass_all
30654     ;;
30655   pc)
30656     lt_cv_deplibs_check_method=pass_all
30657     ;;
30658   esac
30659   ;;
30660
30661 tpf*)
30662   lt_cv_deplibs_check_method=pass_all
30663   ;;
30664 esac
30665
30666 fi
30667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
30668 $as_echo "$lt_cv_deplibs_check_method" >&6; }
30669
30670 file_magic_glob=
30671 want_nocaseglob=no
30672 if test "$build" = "$host"; then
30673   case $host_os in
30674   mingw* | pw32*)
30675     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
30676       want_nocaseglob=yes
30677     else
30678       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
30679     fi
30680     ;;
30681   esac
30682 fi
30683
30684 file_magic_cmd=$lt_cv_file_magic_cmd
30685 deplibs_check_method=$lt_cv_deplibs_check_method
30686 test -z "$deplibs_check_method" && deplibs_check_method=unknown
30687
30688
30689
30690
30691
30692
30693
30694
30695
30696
30697
30698
30699
30700
30701
30702
30703
30704
30705
30706
30707
30708
30709 if test -n "$ac_tool_prefix"; then
30710   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
30711 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
30712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30713 $as_echo_n "checking for $ac_word... " >&6; }
30714 if ${ac_cv_prog_DLLTOOL+:} false; then :
30715   $as_echo_n "(cached) " >&6
30716 else
30717   if test -n "$DLLTOOL"; then
30718   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
30719 else
30720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30721 for as_dir in $PATH
30722 do
30723   IFS=$as_save_IFS
30724   test -z "$as_dir" && as_dir=.
30725     for ac_exec_ext in '' $ac_executable_extensions; do
30726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30727     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
30728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30729     break 2
30730   fi
30731 done
30732   done
30733 IFS=$as_save_IFS
30734
30735 fi
30736 fi
30737 DLLTOOL=$ac_cv_prog_DLLTOOL
30738 if test -n "$DLLTOOL"; then
30739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
30740 $as_echo "$DLLTOOL" >&6; }
30741 else
30742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30743 $as_echo "no" >&6; }
30744 fi
30745
30746
30747 fi
30748 if test -z "$ac_cv_prog_DLLTOOL"; then
30749   ac_ct_DLLTOOL=$DLLTOOL
30750   # Extract the first word of "dlltool", so it can be a program name with args.
30751 set dummy dlltool; ac_word=$2
30752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30753 $as_echo_n "checking for $ac_word... " >&6; }
30754 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
30755   $as_echo_n "(cached) " >&6
30756 else
30757   if test -n "$ac_ct_DLLTOOL"; then
30758   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
30759 else
30760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30761 for as_dir in $PATH
30762 do
30763   IFS=$as_save_IFS
30764   test -z "$as_dir" && as_dir=.
30765     for ac_exec_ext in '' $ac_executable_extensions; do
30766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30767     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
30768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30769     break 2
30770   fi
30771 done
30772   done
30773 IFS=$as_save_IFS
30774
30775 fi
30776 fi
30777 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
30778 if test -n "$ac_ct_DLLTOOL"; then
30779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
30780 $as_echo "$ac_ct_DLLTOOL" >&6; }
30781 else
30782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30783 $as_echo "no" >&6; }
30784 fi
30785
30786   if test "x$ac_ct_DLLTOOL" = x; then
30787     DLLTOOL="false"
30788   else
30789     case $cross_compiling:$ac_tool_warned in
30790 yes:)
30791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30793 ac_tool_warned=yes ;;
30794 esac
30795     DLLTOOL=$ac_ct_DLLTOOL
30796   fi
30797 else
30798   DLLTOOL="$ac_cv_prog_DLLTOOL"
30799 fi
30800
30801 test -z "$DLLTOOL" && DLLTOOL=dlltool
30802
30803
30804
30805
30806
30807
30808
30809
30810
30811
30812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
30813 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
30814 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
30815   $as_echo_n "(cached) " >&6
30816 else
30817   lt_cv_sharedlib_from_linklib_cmd='unknown'
30818
30819 case $host_os in
30820 cygwin* | mingw* | pw32* | cegcc*)
30821   # two different shell functions defined in ltmain.sh
30822   # decide which to use based on capabilities of $DLLTOOL
30823   case `$DLLTOOL --help 2>&1` in
30824   *--identify-strict*)
30825     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
30826     ;;
30827   *)
30828     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
30829     ;;
30830   esac
30831   ;;
30832 *)
30833   # fallback: assume linklib IS sharedlib
30834   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
30835   ;;
30836 esac
30837
30838 fi
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
30840 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
30841 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
30842 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
30843
30844
30845
30846
30847
30848
30849
30850 if test -n "$ac_tool_prefix"; then
30851   for ac_prog in ar
30852   do
30853     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30856 $as_echo_n "checking for $ac_word... " >&6; }
30857 if ${ac_cv_prog_AR+:} false; then :
30858   $as_echo_n "(cached) " >&6
30859 else
30860   if test -n "$AR"; then
30861   ac_cv_prog_AR="$AR" # Let the user override the test.
30862 else
30863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30864 for as_dir in $PATH
30865 do
30866   IFS=$as_save_IFS
30867   test -z "$as_dir" && as_dir=.
30868     for ac_exec_ext in '' $ac_executable_extensions; do
30869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30870     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
30871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30872     break 2
30873   fi
30874 done
30875   done
30876 IFS=$as_save_IFS
30877
30878 fi
30879 fi
30880 AR=$ac_cv_prog_AR
30881 if test -n "$AR"; then
30882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
30883 $as_echo "$AR" >&6; }
30884 else
30885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30886 $as_echo "no" >&6; }
30887 fi
30888
30889
30890     test -n "$AR" && break
30891   done
30892 fi
30893 if test -z "$AR"; then
30894   ac_ct_AR=$AR
30895   for ac_prog in ar
30896 do
30897   # Extract the first word of "$ac_prog", so it can be a program name with args.
30898 set dummy $ac_prog; ac_word=$2
30899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30900 $as_echo_n "checking for $ac_word... " >&6; }
30901 if ${ac_cv_prog_ac_ct_AR+:} false; then :
30902   $as_echo_n "(cached) " >&6
30903 else
30904   if test -n "$ac_ct_AR"; then
30905   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
30906 else
30907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30908 for as_dir in $PATH
30909 do
30910   IFS=$as_save_IFS
30911   test -z "$as_dir" && as_dir=.
30912     for ac_exec_ext in '' $ac_executable_extensions; do
30913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30914     ac_cv_prog_ac_ct_AR="$ac_prog"
30915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30916     break 2
30917   fi
30918 done
30919   done
30920 IFS=$as_save_IFS
30921
30922 fi
30923 fi
30924 ac_ct_AR=$ac_cv_prog_ac_ct_AR
30925 if test -n "$ac_ct_AR"; then
30926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
30927 $as_echo "$ac_ct_AR" >&6; }
30928 else
30929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30930 $as_echo "no" >&6; }
30931 fi
30932
30933
30934   test -n "$ac_ct_AR" && break
30935 done
30936
30937   if test "x$ac_ct_AR" = x; then
30938     AR="false"
30939   else
30940     case $cross_compiling:$ac_tool_warned in
30941 yes:)
30942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30944 ac_tool_warned=yes ;;
30945 esac
30946     AR=$ac_ct_AR
30947   fi
30948 fi
30949
30950 : ${AR=ar}
30951 : ${AR_FLAGS=cru}
30952
30953
30954
30955
30956
30957
30958
30959
30960
30961
30962
30963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
30964 $as_echo_n "checking for archiver @FILE support... " >&6; }
30965 if ${lt_cv_ar_at_file+:} false; then :
30966   $as_echo_n "(cached) " >&6
30967 else
30968   lt_cv_ar_at_file=no
30969    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30970 /* end confdefs.h.  */
30971
30972 int
30973 main ()
30974 {
30975
30976   ;
30977   return 0;
30978 }
30979 _ACEOF
30980 if ac_fn_c_try_compile "$LINENO"; then :
30981   echo conftest.$ac_objext > conftest.lst
30982       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
30983       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
30984   (eval $lt_ar_try) 2>&5
30985   ac_status=$?
30986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30987   test $ac_status = 0; }
30988       if test "$ac_status" -eq 0; then
30989         # Ensure the archiver fails upon bogus file names.
30990         rm -f conftest.$ac_objext libconftest.a
30991         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
30992   (eval $lt_ar_try) 2>&5
30993   ac_status=$?
30994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30995   test $ac_status = 0; }
30996         if test "$ac_status" -ne 0; then
30997           lt_cv_ar_at_file=@
30998         fi
30999       fi
31000       rm -f conftest.* libconftest.a
31001
31002 fi
31003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31004
31005 fi
31006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
31007 $as_echo "$lt_cv_ar_at_file" >&6; }
31008
31009 if test "x$lt_cv_ar_at_file" = xno; then
31010   archiver_list_spec=
31011 else
31012   archiver_list_spec=$lt_cv_ar_at_file
31013 fi
31014
31015
31016
31017
31018
31019
31020
31021 if test -n "$ac_tool_prefix"; then
31022   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
31023 set dummy ${ac_tool_prefix}strip; ac_word=$2
31024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31025 $as_echo_n "checking for $ac_word... " >&6; }
31026 if ${ac_cv_prog_STRIP+:} false; then :
31027   $as_echo_n "(cached) " >&6
31028 else
31029   if test -n "$STRIP"; then
31030   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
31031 else
31032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31033 for as_dir in $PATH
31034 do
31035   IFS=$as_save_IFS
31036   test -z "$as_dir" && as_dir=.
31037     for ac_exec_ext in '' $ac_executable_extensions; do
31038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31039     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
31040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31041     break 2
31042   fi
31043 done
31044   done
31045 IFS=$as_save_IFS
31046
31047 fi
31048 fi
31049 STRIP=$ac_cv_prog_STRIP
31050 if test -n "$STRIP"; then
31051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
31052 $as_echo "$STRIP" >&6; }
31053 else
31054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31055 $as_echo "no" >&6; }
31056 fi
31057
31058
31059 fi
31060 if test -z "$ac_cv_prog_STRIP"; then
31061   ac_ct_STRIP=$STRIP
31062   # Extract the first word of "strip", so it can be a program name with args.
31063 set dummy strip; ac_word=$2
31064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31065 $as_echo_n "checking for $ac_word... " >&6; }
31066 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
31067   $as_echo_n "(cached) " >&6
31068 else
31069   if test -n "$ac_ct_STRIP"; then
31070   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
31071 else
31072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31073 for as_dir in $PATH
31074 do
31075   IFS=$as_save_IFS
31076   test -z "$as_dir" && as_dir=.
31077     for ac_exec_ext in '' $ac_executable_extensions; do
31078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31079     ac_cv_prog_ac_ct_STRIP="strip"
31080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31081     break 2
31082   fi
31083 done
31084   done
31085 IFS=$as_save_IFS
31086
31087 fi
31088 fi
31089 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
31090 if test -n "$ac_ct_STRIP"; then
31091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
31092 $as_echo "$ac_ct_STRIP" >&6; }
31093 else
31094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31095 $as_echo "no" >&6; }
31096 fi
31097
31098   if test "x$ac_ct_STRIP" = x; then
31099     STRIP=":"
31100   else
31101     case $cross_compiling:$ac_tool_warned in
31102 yes:)
31103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31105 ac_tool_warned=yes ;;
31106 esac
31107     STRIP=$ac_ct_STRIP
31108   fi
31109 else
31110   STRIP="$ac_cv_prog_STRIP"
31111 fi
31112
31113 test -z "$STRIP" && STRIP=:
31114
31115
31116
31117
31118
31119
31120 if test -n "$ac_tool_prefix"; then
31121   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
31122 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
31123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31124 $as_echo_n "checking for $ac_word... " >&6; }
31125 if ${ac_cv_prog_RANLIB+:} false; then :
31126   $as_echo_n "(cached) " >&6
31127 else
31128   if test -n "$RANLIB"; then
31129   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
31130 else
31131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31132 for as_dir in $PATH
31133 do
31134   IFS=$as_save_IFS
31135   test -z "$as_dir" && as_dir=.
31136     for ac_exec_ext in '' $ac_executable_extensions; do
31137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31138     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
31139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31140     break 2
31141   fi
31142 done
31143   done
31144 IFS=$as_save_IFS
31145
31146 fi
31147 fi
31148 RANLIB=$ac_cv_prog_RANLIB
31149 if test -n "$RANLIB"; then
31150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
31151 $as_echo "$RANLIB" >&6; }
31152 else
31153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31154 $as_echo "no" >&6; }
31155 fi
31156
31157
31158 fi
31159 if test -z "$ac_cv_prog_RANLIB"; then
31160   ac_ct_RANLIB=$RANLIB
31161   # Extract the first word of "ranlib", so it can be a program name with args.
31162 set dummy ranlib; ac_word=$2
31163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31164 $as_echo_n "checking for $ac_word... " >&6; }
31165 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
31166   $as_echo_n "(cached) " >&6
31167 else
31168   if test -n "$ac_ct_RANLIB"; then
31169   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
31170 else
31171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31172 for as_dir in $PATH
31173 do
31174   IFS=$as_save_IFS
31175   test -z "$as_dir" && as_dir=.
31176     for ac_exec_ext in '' $ac_executable_extensions; do
31177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31178     ac_cv_prog_ac_ct_RANLIB="ranlib"
31179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31180     break 2
31181   fi
31182 done
31183   done
31184 IFS=$as_save_IFS
31185
31186 fi
31187 fi
31188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
31189 if test -n "$ac_ct_RANLIB"; then
31190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
31191 $as_echo "$ac_ct_RANLIB" >&6; }
31192 else
31193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31194 $as_echo "no" >&6; }
31195 fi
31196
31197   if test "x$ac_ct_RANLIB" = x; then
31198     RANLIB=":"
31199   else
31200     case $cross_compiling:$ac_tool_warned in
31201 yes:)
31202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31204 ac_tool_warned=yes ;;
31205 esac
31206     RANLIB=$ac_ct_RANLIB
31207   fi
31208 else
31209   RANLIB="$ac_cv_prog_RANLIB"
31210 fi
31211
31212 test -z "$RANLIB" && RANLIB=:
31213
31214
31215
31216
31217
31218
31219 # Determine commands to create old-style static archives.
31220 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
31221 old_postinstall_cmds='chmod 644 $oldlib'
31222 old_postuninstall_cmds=
31223
31224 if test -n "$RANLIB"; then
31225   case $host_os in
31226   openbsd*)
31227     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
31228     ;;
31229   *)
31230     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
31231     ;;
31232   esac
31233   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
31234 fi
31235
31236 case $host_os in
31237   darwin*)
31238     lock_old_archive_extraction=yes ;;
31239   *)
31240     lock_old_archive_extraction=no ;;
31241 esac
31242
31243
31244
31245
31246
31247
31248
31249
31250
31251
31252
31253
31254
31255
31256
31257
31258
31259
31260
31261
31262
31263
31264
31265
31266
31267
31268
31269
31270
31271
31272
31273
31274
31275
31276
31277
31278
31279
31280
31281 # If no C compiler was specified, use CC.
31282 LTCC=${LTCC-"$CC"}
31283
31284 # If no C compiler flags were specified, use CFLAGS.
31285 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
31286
31287 # Allow CC to be a program name with arguments.
31288 compiler=$CC
31289
31290
31291 # Check for command to grab the raw symbol name followed by C symbol from nm.
31292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
31293 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
31294 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
31295   $as_echo_n "(cached) " >&6
31296 else
31297
31298 # These are sane defaults that work on at least a few old systems.
31299 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
31300
31301 # Character class describing NM global symbol codes.
31302 symcode='[BCDEGRST]'
31303
31304 # Regexp to match symbols that can be accessed directly from C.
31305 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
31306
31307 # Define system-specific variables.
31308 case $host_os in
31309 aix*)
31310   symcode='[BCDT]'
31311   ;;
31312 cygwin* | mingw* | pw32* | cegcc*)
31313   symcode='[ABCDGISTW]'
31314   ;;
31315 hpux*)
31316   if test "$host_cpu" = ia64; then
31317     symcode='[ABCDEGRST]'
31318   fi
31319   ;;
31320 irix* | nonstopux*)
31321   symcode='[BCDEGRST]'
31322   ;;
31323 osf*)
31324   symcode='[BCDEGQRST]'
31325   ;;
31326 solaris*)
31327   symcode='[BDRT]'
31328   ;;
31329 sco3.2v5*)
31330   symcode='[DT]'
31331   ;;
31332 sysv4.2uw2*)
31333   symcode='[DT]'
31334   ;;
31335 sysv5* | sco5v6* | unixware* | OpenUNIX*)
31336   symcode='[ABDT]'
31337   ;;
31338 sysv4)
31339   symcode='[DFNSTU]'
31340   ;;
31341 esac
31342
31343 # If we're using GNU nm, then use its standard symbol codes.
31344 case `$NM -V 2>&1` in
31345 *GNU* | *'with BFD'*)
31346   symcode='[ABCDGIRSTW]' ;;
31347 esac
31348
31349 # Transform an extracted symbol line into a proper C declaration.
31350 # Some systems (esp. on ia64) link data and code symbols differently,
31351 # so use this general approach.
31352 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
31353
31354 # Transform an extracted symbol line into symbol name and symbol address
31355 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
31356 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'"
31357
31358 # Handle CRLF in mingw tool chain
31359 opt_cr=
31360 case $build_os in
31361 mingw*)
31362   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
31363   ;;
31364 esac
31365
31366 # Try without a prefix underscore, then with it.
31367 for ac_symprfx in "" "_"; do
31368
31369   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
31370   symxfrm="\\1 $ac_symprfx\\2 \\2"
31371
31372   # Write the raw and C identifiers.
31373   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
31374     # Fake it for dumpbin and say T for any non-static function
31375     # and D for any global variable.
31376     # Also find C++ and __fastcall symbols from MSVC++,
31377     # which start with @ or ?.
31378     lt_cv_sys_global_symbol_pipe="$AWK '"\
31379 "     {last_section=section; section=\$ 3};"\
31380 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
31381 "     \$ 0!~/External *\|/{next};"\
31382 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
31383 "     {if(hide[section]) next};"\
31384 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
31385 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
31386 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
31387 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
31388 "     ' prfx=^$ac_symprfx"
31389   else
31390     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
31391   fi
31392   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
31393
31394   # Check to see that the pipe works correctly.
31395   pipe_works=no
31396
31397   rm -f conftest*
31398   cat > conftest.$ac_ext <<_LT_EOF
31399 #ifdef __cplusplus
31400 extern "C" {
31401 #endif
31402 char nm_test_var;
31403 void nm_test_func(void);
31404 void nm_test_func(void){}
31405 #ifdef __cplusplus
31406 }
31407 #endif
31408 int main(){nm_test_var='a';nm_test_func();return(0);}
31409 _LT_EOF
31410
31411   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31412   (eval $ac_compile) 2>&5
31413   ac_status=$?
31414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31415   test $ac_status = 0; }; then
31416     # Now try to grab the symbols.
31417     nlist=conftest.nm
31418     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
31419   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
31420   ac_status=$?
31421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31422   test $ac_status = 0; } && test -s "$nlist"; then
31423       # Try sorting and uniquifying the output.
31424       if sort "$nlist" | uniq > "$nlist"T; then
31425         mv -f "$nlist"T "$nlist"
31426       else
31427         rm -f "$nlist"T
31428       fi
31429
31430       # Make sure that we snagged all the symbols we need.
31431       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
31432         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
31433           cat <<_LT_EOF > conftest.$ac_ext
31434 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
31435 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
31436 /* DATA imports from DLLs on WIN32 con't be const, because runtime
31437    relocations are performed -- see ld's documentation on pseudo-relocs.  */
31438 # define LT_DLSYM_CONST
31439 #elif defined(__osf__)
31440 /* This system does not cope well with relocations in const data.  */
31441 # define LT_DLSYM_CONST
31442 #else
31443 # define LT_DLSYM_CONST const
31444 #endif
31445
31446 #ifdef __cplusplus
31447 extern "C" {
31448 #endif
31449
31450 _LT_EOF
31451           # Now generate the symbol file.
31452           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
31453
31454           cat <<_LT_EOF >> conftest.$ac_ext
31455
31456 /* The mapping between symbol names and symbols.  */
31457 LT_DLSYM_CONST struct {
31458   const char *name;
31459   void       *address;
31460 }
31461 lt__PROGRAM__LTX_preloaded_symbols[] =
31462 {
31463   { "@PROGRAM@", (void *) 0 },
31464 _LT_EOF
31465           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
31466           cat <<\_LT_EOF >> conftest.$ac_ext
31467   {0, (void *) 0}
31468 };
31469
31470 /* This works around a problem in FreeBSD linker */
31471 #ifdef FREEBSD_WORKAROUND
31472 static const void *lt_preloaded_setup() {
31473   return lt__PROGRAM__LTX_preloaded_symbols;
31474 }
31475 #endif
31476
31477 #ifdef __cplusplus
31478 }
31479 #endif
31480 _LT_EOF
31481           # Now try linking the two files.
31482           mv conftest.$ac_objext conftstm.$ac_objext
31483           lt_globsym_save_LIBS=$LIBS
31484           lt_globsym_save_CFLAGS=$CFLAGS
31485           LIBS="conftstm.$ac_objext"
31486           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
31487           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
31488   (eval $ac_link) 2>&5
31489   ac_status=$?
31490   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31491   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
31492             pipe_works=yes
31493           fi
31494           LIBS=$lt_globsym_save_LIBS
31495           CFLAGS=$lt_globsym_save_CFLAGS
31496         else
31497           echo "cannot find nm_test_func in $nlist" >&5
31498         fi
31499       else
31500         echo "cannot find nm_test_var in $nlist" >&5
31501       fi
31502     else
31503       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
31504     fi
31505   else
31506     echo "$progname: failed program was:" >&5
31507     cat conftest.$ac_ext >&5
31508   fi
31509   rm -rf conftest* conftst*
31510
31511   # Do not use the global_symbol_pipe unless it works.
31512   if test "$pipe_works" = yes; then
31513     break
31514   else
31515     lt_cv_sys_global_symbol_pipe=
31516   fi
31517 done
31518
31519 fi
31520
31521 if test -z "$lt_cv_sys_global_symbol_pipe"; then
31522   lt_cv_sys_global_symbol_to_cdecl=
31523 fi
31524 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
31525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
31526 $as_echo "failed" >&6; }
31527 else
31528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
31529 $as_echo "ok" >&6; }
31530 fi
31531
31532 # Response file support.
31533 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
31534   nm_file_list_spec='@'
31535 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
31536   nm_file_list_spec='@'
31537 fi
31538
31539
31540
31541
31542
31543
31544
31545
31546
31547
31548
31549
31550
31551
31552
31553
31554
31555
31556
31557
31558
31559
31560
31561
31562
31563
31564
31565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
31566 $as_echo_n "checking for sysroot... " >&6; }
31567
31568 # Check whether --with-sysroot was given.
31569 if test "${with_sysroot+set}" = set; then :
31570   withval=$with_sysroot;
31571 else
31572   with_sysroot=no
31573 fi
31574
31575
31576 lt_sysroot=
31577 case ${with_sysroot} in #(
31578  yes)
31579    if test "$GCC" = yes; then
31580      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
31581    fi
31582    ;; #(
31583  /*)
31584    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
31585    ;; #(
31586  no|'')
31587    ;; #(
31588  *)
31589    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
31590 $as_echo "${with_sysroot}" >&6; }
31591    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
31592    ;;
31593 esac
31594
31595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
31596 $as_echo "${lt_sysroot:-no}" >&6; }
31597
31598
31599
31600
31601
31602 # Check whether --enable-libtool-lock was given.
31603 if test "${enable_libtool_lock+set}" = set; then :
31604   enableval=$enable_libtool_lock;
31605 fi
31606
31607 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
31608
31609 # Some flags need to be propagated to the compiler or linker for good
31610 # libtool support.
31611 case $host in
31612 ia64-*-hpux*)
31613   # Find out which ABI we are using.
31614   echo 'int i;' > conftest.$ac_ext
31615   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31616   (eval $ac_compile) 2>&5
31617   ac_status=$?
31618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31619   test $ac_status = 0; }; then
31620     case `/usr/bin/file conftest.$ac_objext` in
31621       *ELF-32*)
31622         HPUX_IA64_MODE="32"
31623         ;;
31624       *ELF-64*)
31625         HPUX_IA64_MODE="64"
31626         ;;
31627     esac
31628   fi
31629   rm -rf conftest*
31630   ;;
31631 *-*-irix6*)
31632   # Find out which ABI we are using.
31633   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
31634   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31635   (eval $ac_compile) 2>&5
31636   ac_status=$?
31637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31638   test $ac_status = 0; }; then
31639     if test "$lt_cv_prog_gnu_ld" = yes; then
31640       case `/usr/bin/file conftest.$ac_objext` in
31641         *32-bit*)
31642           LD="${LD-ld} -melf32bsmip"
31643           ;;
31644         *N32*)
31645           LD="${LD-ld} -melf32bmipn32"
31646           ;;
31647         *64-bit*)
31648           LD="${LD-ld} -melf64bmip"
31649         ;;
31650       esac
31651     else
31652       case `/usr/bin/file conftest.$ac_objext` in
31653         *32-bit*)
31654           LD="${LD-ld} -32"
31655           ;;
31656         *N32*)
31657           LD="${LD-ld} -n32"
31658           ;;
31659         *64-bit*)
31660           LD="${LD-ld} -64"
31661           ;;
31662       esac
31663     fi
31664   fi
31665   rm -rf conftest*
31666   ;;
31667
31668 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
31669 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
31670   # Find out which ABI we are using.
31671   echo 'int i;' > conftest.$ac_ext
31672   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31673   (eval $ac_compile) 2>&5
31674   ac_status=$?
31675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31676   test $ac_status = 0; }; then
31677     case `/usr/bin/file conftest.o` in
31678       *32-bit*)
31679         case $host in
31680           x86_64-*kfreebsd*-gnu)
31681             LD="${LD-ld} -m elf_i386_fbsd"
31682             ;;
31683           x86_64-*linux*)
31684             LD="${LD-ld} -m elf_i386"
31685             ;;
31686           ppc64-*linux*|powerpc64-*linux*)
31687             LD="${LD-ld} -m elf32ppclinux"
31688             ;;
31689           s390x-*linux*)
31690             LD="${LD-ld} -m elf_s390"
31691             ;;
31692           sparc64-*linux*)
31693             LD="${LD-ld} -m elf32_sparc"
31694             ;;
31695         esac
31696         ;;
31697       *64-bit*)
31698         case $host in
31699           x86_64-*kfreebsd*-gnu)
31700             LD="${LD-ld} -m elf_x86_64_fbsd"
31701             ;;
31702           x86_64-*linux*)
31703             LD="${LD-ld} -m elf_x86_64"
31704             ;;
31705           ppc*-*linux*|powerpc*-*linux*)
31706             LD="${LD-ld} -m elf64ppc"
31707             ;;
31708           s390*-*linux*|s390*-*tpf*)
31709             LD="${LD-ld} -m elf64_s390"
31710             ;;
31711           sparc*-*linux*)
31712             LD="${LD-ld} -m elf64_sparc"
31713             ;;
31714         esac
31715         ;;
31716     esac
31717   fi
31718   rm -rf conftest*
31719   ;;
31720
31721 *-*-sco3.2v5*)
31722   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
31723   SAVE_CFLAGS="$CFLAGS"
31724   CFLAGS="$CFLAGS -belf"
31725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
31726 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
31727 if ${lt_cv_cc_needs_belf+:} false; then :
31728   $as_echo_n "(cached) " >&6
31729 else
31730   ac_ext=c
31731 ac_cpp='$CPP $CPPFLAGS'
31732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31735
31736      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31737 /* end confdefs.h.  */
31738
31739 int
31740 main ()
31741 {
31742
31743   ;
31744   return 0;
31745 }
31746 _ACEOF
31747 if ac_fn_c_try_link "$LINENO"; then :
31748   lt_cv_cc_needs_belf=yes
31749 else
31750   lt_cv_cc_needs_belf=no
31751 fi
31752 rm -f core conftest.err conftest.$ac_objext \
31753     conftest$ac_exeext conftest.$ac_ext
31754      ac_ext=c
31755 ac_cpp='$CPP $CPPFLAGS'
31756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31759
31760 fi
31761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
31762 $as_echo "$lt_cv_cc_needs_belf" >&6; }
31763   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
31764     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
31765     CFLAGS="$SAVE_CFLAGS"
31766   fi
31767   ;;
31768 sparc*-*solaris*)
31769   # Find out which ABI we are using.
31770   echo 'int i;' > conftest.$ac_ext
31771   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31772   (eval $ac_compile) 2>&5
31773   ac_status=$?
31774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31775   test $ac_status = 0; }; then
31776     case `/usr/bin/file conftest.o` in
31777     *64-bit*)
31778       case $lt_cv_prog_gnu_ld in
31779       yes*) LD="${LD-ld} -m elf64_sparc" ;;
31780       *)
31781         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
31782           LD="${LD-ld} -64"
31783         fi
31784         ;;
31785       esac
31786       ;;
31787     esac
31788   fi
31789   rm -rf conftest*
31790   ;;
31791 esac
31792
31793 need_locks="$enable_libtool_lock"
31794
31795 if test -n "$ac_tool_prefix"; then
31796   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
31797 set dummy ${ac_tool_prefix}mt; ac_word=$2
31798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31799 $as_echo_n "checking for $ac_word... " >&6; }
31800 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
31801   $as_echo_n "(cached) " >&6
31802 else
31803   if test -n "$MANIFEST_TOOL"; then
31804   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
31805 else
31806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31807 for as_dir in $PATH
31808 do
31809   IFS=$as_save_IFS
31810   test -z "$as_dir" && as_dir=.
31811     for ac_exec_ext in '' $ac_executable_extensions; do
31812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31813     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
31814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31815     break 2
31816   fi
31817 done
31818   done
31819 IFS=$as_save_IFS
31820
31821 fi
31822 fi
31823 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
31824 if test -n "$MANIFEST_TOOL"; then
31825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
31826 $as_echo "$MANIFEST_TOOL" >&6; }
31827 else
31828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31829 $as_echo "no" >&6; }
31830 fi
31831
31832
31833 fi
31834 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
31835   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
31836   # Extract the first word of "mt", so it can be a program name with args.
31837 set dummy mt; ac_word=$2
31838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31839 $as_echo_n "checking for $ac_word... " >&6; }
31840 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
31841   $as_echo_n "(cached) " >&6
31842 else
31843   if test -n "$ac_ct_MANIFEST_TOOL"; then
31844   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
31845 else
31846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31847 for as_dir in $PATH
31848 do
31849   IFS=$as_save_IFS
31850   test -z "$as_dir" && as_dir=.
31851     for ac_exec_ext in '' $ac_executable_extensions; do
31852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31853     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
31854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31855     break 2
31856   fi
31857 done
31858   done
31859 IFS=$as_save_IFS
31860
31861 fi
31862 fi
31863 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
31864 if test -n "$ac_ct_MANIFEST_TOOL"; then
31865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
31866 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
31867 else
31868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31869 $as_echo "no" >&6; }
31870 fi
31871
31872   if test "x$ac_ct_MANIFEST_TOOL" = x; then
31873     MANIFEST_TOOL=":"
31874   else
31875     case $cross_compiling:$ac_tool_warned in
31876 yes:)
31877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31879 ac_tool_warned=yes ;;
31880 esac
31881     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
31882   fi
31883 else
31884   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
31885 fi
31886
31887 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
31888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
31889 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
31890 if ${lt_cv_path_mainfest_tool+:} false; then :
31891   $as_echo_n "(cached) " >&6
31892 else
31893   lt_cv_path_mainfest_tool=no
31894   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
31895   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
31896   cat conftest.err >&5
31897   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
31898     lt_cv_path_mainfest_tool=yes
31899   fi
31900   rm -f conftest*
31901 fi
31902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
31903 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
31904 if test "x$lt_cv_path_mainfest_tool" != xyes; then
31905   MANIFEST_TOOL=:
31906 fi
31907
31908
31909
31910
31911
31912
31913   case $host_os in
31914     rhapsody* | darwin*)
31915     if test -n "$ac_tool_prefix"; then
31916   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
31917 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
31918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31919 $as_echo_n "checking for $ac_word... " >&6; }
31920 if ${ac_cv_prog_DSYMUTIL+:} false; then :
31921   $as_echo_n "(cached) " >&6
31922 else
31923   if test -n "$DSYMUTIL"; then
31924   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
31925 else
31926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31927 for as_dir in $PATH
31928 do
31929   IFS=$as_save_IFS
31930   test -z "$as_dir" && as_dir=.
31931     for ac_exec_ext in '' $ac_executable_extensions; do
31932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31933     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
31934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31935     break 2
31936   fi
31937 done
31938   done
31939 IFS=$as_save_IFS
31940
31941 fi
31942 fi
31943 DSYMUTIL=$ac_cv_prog_DSYMUTIL
31944 if test -n "$DSYMUTIL"; then
31945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
31946 $as_echo "$DSYMUTIL" >&6; }
31947 else
31948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31949 $as_echo "no" >&6; }
31950 fi
31951
31952
31953 fi
31954 if test -z "$ac_cv_prog_DSYMUTIL"; then
31955   ac_ct_DSYMUTIL=$DSYMUTIL
31956   # Extract the first word of "dsymutil", so it can be a program name with args.
31957 set dummy dsymutil; ac_word=$2
31958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31959 $as_echo_n "checking for $ac_word... " >&6; }
31960 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
31961   $as_echo_n "(cached) " >&6
31962 else
31963   if test -n "$ac_ct_DSYMUTIL"; then
31964   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
31965 else
31966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31967 for as_dir in $PATH
31968 do
31969   IFS=$as_save_IFS
31970   test -z "$as_dir" && as_dir=.
31971     for ac_exec_ext in '' $ac_executable_extensions; do
31972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31973     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
31974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31975     break 2
31976   fi
31977 done
31978   done
31979 IFS=$as_save_IFS
31980
31981 fi
31982 fi
31983 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
31984 if test -n "$ac_ct_DSYMUTIL"; then
31985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
31986 $as_echo "$ac_ct_DSYMUTIL" >&6; }
31987 else
31988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31989 $as_echo "no" >&6; }
31990 fi
31991
31992   if test "x$ac_ct_DSYMUTIL" = x; then
31993     DSYMUTIL=":"
31994   else
31995     case $cross_compiling:$ac_tool_warned in
31996 yes:)
31997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31999 ac_tool_warned=yes ;;
32000 esac
32001     DSYMUTIL=$ac_ct_DSYMUTIL
32002   fi
32003 else
32004   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
32005 fi
32006
32007     if test -n "$ac_tool_prefix"; then
32008   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
32009 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
32010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32011 $as_echo_n "checking for $ac_word... " >&6; }
32012 if ${ac_cv_prog_NMEDIT+:} false; then :
32013   $as_echo_n "(cached) " >&6
32014 else
32015   if test -n "$NMEDIT"; then
32016   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
32017 else
32018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32019 for as_dir in $PATH
32020 do
32021   IFS=$as_save_IFS
32022   test -z "$as_dir" && as_dir=.
32023     for ac_exec_ext in '' $ac_executable_extensions; do
32024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32025     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
32026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32027     break 2
32028   fi
32029 done
32030   done
32031 IFS=$as_save_IFS
32032
32033 fi
32034 fi
32035 NMEDIT=$ac_cv_prog_NMEDIT
32036 if test -n "$NMEDIT"; then
32037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
32038 $as_echo "$NMEDIT" >&6; }
32039 else
32040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32041 $as_echo "no" >&6; }
32042 fi
32043
32044
32045 fi
32046 if test -z "$ac_cv_prog_NMEDIT"; then
32047   ac_ct_NMEDIT=$NMEDIT
32048   # Extract the first word of "nmedit", so it can be a program name with args.
32049 set dummy nmedit; ac_word=$2
32050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32051 $as_echo_n "checking for $ac_word... " >&6; }
32052 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
32053   $as_echo_n "(cached) " >&6
32054 else
32055   if test -n "$ac_ct_NMEDIT"; then
32056   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
32057 else
32058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32059 for as_dir in $PATH
32060 do
32061   IFS=$as_save_IFS
32062   test -z "$as_dir" && as_dir=.
32063     for ac_exec_ext in '' $ac_executable_extensions; do
32064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32065     ac_cv_prog_ac_ct_NMEDIT="nmedit"
32066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32067     break 2
32068   fi
32069 done
32070   done
32071 IFS=$as_save_IFS
32072
32073 fi
32074 fi
32075 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
32076 if test -n "$ac_ct_NMEDIT"; then
32077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
32078 $as_echo "$ac_ct_NMEDIT" >&6; }
32079 else
32080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32081 $as_echo "no" >&6; }
32082 fi
32083
32084   if test "x$ac_ct_NMEDIT" = x; then
32085     NMEDIT=":"
32086   else
32087     case $cross_compiling:$ac_tool_warned in
32088 yes:)
32089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32091 ac_tool_warned=yes ;;
32092 esac
32093     NMEDIT=$ac_ct_NMEDIT
32094   fi
32095 else
32096   NMEDIT="$ac_cv_prog_NMEDIT"
32097 fi
32098
32099     if test -n "$ac_tool_prefix"; then
32100   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
32101 set dummy ${ac_tool_prefix}lipo; ac_word=$2
32102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32103 $as_echo_n "checking for $ac_word... " >&6; }
32104 if ${ac_cv_prog_LIPO+:} false; then :
32105   $as_echo_n "(cached) " >&6
32106 else
32107   if test -n "$LIPO"; then
32108   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
32109 else
32110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32111 for as_dir in $PATH
32112 do
32113   IFS=$as_save_IFS
32114   test -z "$as_dir" && as_dir=.
32115     for ac_exec_ext in '' $ac_executable_extensions; do
32116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32117     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
32118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32119     break 2
32120   fi
32121 done
32122   done
32123 IFS=$as_save_IFS
32124
32125 fi
32126 fi
32127 LIPO=$ac_cv_prog_LIPO
32128 if test -n "$LIPO"; then
32129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
32130 $as_echo "$LIPO" >&6; }
32131 else
32132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32133 $as_echo "no" >&6; }
32134 fi
32135
32136
32137 fi
32138 if test -z "$ac_cv_prog_LIPO"; then
32139   ac_ct_LIPO=$LIPO
32140   # Extract the first word of "lipo", so it can be a program name with args.
32141 set dummy lipo; ac_word=$2
32142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32143 $as_echo_n "checking for $ac_word... " >&6; }
32144 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
32145   $as_echo_n "(cached) " >&6
32146 else
32147   if test -n "$ac_ct_LIPO"; then
32148   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
32149 else
32150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32151 for as_dir in $PATH
32152 do
32153   IFS=$as_save_IFS
32154   test -z "$as_dir" && as_dir=.
32155     for ac_exec_ext in '' $ac_executable_extensions; do
32156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32157     ac_cv_prog_ac_ct_LIPO="lipo"
32158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32159     break 2
32160   fi
32161 done
32162   done
32163 IFS=$as_save_IFS
32164
32165 fi
32166 fi
32167 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
32168 if test -n "$ac_ct_LIPO"; then
32169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
32170 $as_echo "$ac_ct_LIPO" >&6; }
32171 else
32172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32173 $as_echo "no" >&6; }
32174 fi
32175
32176   if test "x$ac_ct_LIPO" = x; then
32177     LIPO=":"
32178   else
32179     case $cross_compiling:$ac_tool_warned in
32180 yes:)
32181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32183 ac_tool_warned=yes ;;
32184 esac
32185     LIPO=$ac_ct_LIPO
32186   fi
32187 else
32188   LIPO="$ac_cv_prog_LIPO"
32189 fi
32190
32191     if test -n "$ac_tool_prefix"; then
32192   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
32193 set dummy ${ac_tool_prefix}otool; ac_word=$2
32194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32195 $as_echo_n "checking for $ac_word... " >&6; }
32196 if ${ac_cv_prog_OTOOL+:} false; then :
32197   $as_echo_n "(cached) " >&6
32198 else
32199   if test -n "$OTOOL"; then
32200   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
32201 else
32202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32203 for as_dir in $PATH
32204 do
32205   IFS=$as_save_IFS
32206   test -z "$as_dir" && as_dir=.
32207     for ac_exec_ext in '' $ac_executable_extensions; do
32208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32209     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
32210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32211     break 2
32212   fi
32213 done
32214   done
32215 IFS=$as_save_IFS
32216
32217 fi
32218 fi
32219 OTOOL=$ac_cv_prog_OTOOL
32220 if test -n "$OTOOL"; then
32221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
32222 $as_echo "$OTOOL" >&6; }
32223 else
32224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32225 $as_echo "no" >&6; }
32226 fi
32227
32228
32229 fi
32230 if test -z "$ac_cv_prog_OTOOL"; then
32231   ac_ct_OTOOL=$OTOOL
32232   # Extract the first word of "otool", so it can be a program name with args.
32233 set dummy otool; ac_word=$2
32234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32235 $as_echo_n "checking for $ac_word... " >&6; }
32236 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
32237   $as_echo_n "(cached) " >&6
32238 else
32239   if test -n "$ac_ct_OTOOL"; then
32240   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
32241 else
32242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32243 for as_dir in $PATH
32244 do
32245   IFS=$as_save_IFS
32246   test -z "$as_dir" && as_dir=.
32247     for ac_exec_ext in '' $ac_executable_extensions; do
32248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32249     ac_cv_prog_ac_ct_OTOOL="otool"
32250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32251     break 2
32252   fi
32253 done
32254   done
32255 IFS=$as_save_IFS
32256
32257 fi
32258 fi
32259 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
32260 if test -n "$ac_ct_OTOOL"; then
32261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
32262 $as_echo "$ac_ct_OTOOL" >&6; }
32263 else
32264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32265 $as_echo "no" >&6; }
32266 fi
32267
32268   if test "x$ac_ct_OTOOL" = x; then
32269     OTOOL=":"
32270   else
32271     case $cross_compiling:$ac_tool_warned in
32272 yes:)
32273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32275 ac_tool_warned=yes ;;
32276 esac
32277     OTOOL=$ac_ct_OTOOL
32278   fi
32279 else
32280   OTOOL="$ac_cv_prog_OTOOL"
32281 fi
32282
32283     if test -n "$ac_tool_prefix"; then
32284   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
32285 set dummy ${ac_tool_prefix}otool64; ac_word=$2
32286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32287 $as_echo_n "checking for $ac_word... " >&6; }
32288 if ${ac_cv_prog_OTOOL64+:} false; then :
32289   $as_echo_n "(cached) " >&6
32290 else
32291   if test -n "$OTOOL64"; then
32292   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
32293 else
32294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32295 for as_dir in $PATH
32296 do
32297   IFS=$as_save_IFS
32298   test -z "$as_dir" && as_dir=.
32299     for ac_exec_ext in '' $ac_executable_extensions; do
32300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32301     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
32302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32303     break 2
32304   fi
32305 done
32306   done
32307 IFS=$as_save_IFS
32308
32309 fi
32310 fi
32311 OTOOL64=$ac_cv_prog_OTOOL64
32312 if test -n "$OTOOL64"; then
32313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
32314 $as_echo "$OTOOL64" >&6; }
32315 else
32316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32317 $as_echo "no" >&6; }
32318 fi
32319
32320
32321 fi
32322 if test -z "$ac_cv_prog_OTOOL64"; then
32323   ac_ct_OTOOL64=$OTOOL64
32324   # Extract the first word of "otool64", so it can be a program name with args.
32325 set dummy otool64; ac_word=$2
32326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32327 $as_echo_n "checking for $ac_word... " >&6; }
32328 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
32329   $as_echo_n "(cached) " >&6
32330 else
32331   if test -n "$ac_ct_OTOOL64"; then
32332   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
32333 else
32334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32335 for as_dir in $PATH
32336 do
32337   IFS=$as_save_IFS
32338   test -z "$as_dir" && as_dir=.
32339     for ac_exec_ext in '' $ac_executable_extensions; do
32340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32341     ac_cv_prog_ac_ct_OTOOL64="otool64"
32342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32343     break 2
32344   fi
32345 done
32346   done
32347 IFS=$as_save_IFS
32348
32349 fi
32350 fi
32351 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
32352 if test -n "$ac_ct_OTOOL64"; then
32353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
32354 $as_echo "$ac_ct_OTOOL64" >&6; }
32355 else
32356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32357 $as_echo "no" >&6; }
32358 fi
32359
32360   if test "x$ac_ct_OTOOL64" = x; then
32361     OTOOL64=":"
32362   else
32363     case $cross_compiling:$ac_tool_warned in
32364 yes:)
32365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32367 ac_tool_warned=yes ;;
32368 esac
32369     OTOOL64=$ac_ct_OTOOL64
32370   fi
32371 else
32372   OTOOL64="$ac_cv_prog_OTOOL64"
32373 fi
32374
32375
32376
32377
32378
32379
32380
32381
32382
32383
32384
32385
32386
32387
32388
32389
32390
32391
32392
32393
32394
32395
32396
32397
32398
32399
32400
32401     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
32402 $as_echo_n "checking for -single_module linker flag... " >&6; }
32403 if ${lt_cv_apple_cc_single_mod+:} false; then :
32404   $as_echo_n "(cached) " >&6
32405 else
32406   lt_cv_apple_cc_single_mod=no
32407       if test -z "${LT_MULTI_MODULE}"; then
32408         # By default we will add the -single_module flag. You can override
32409         # by either setting the environment variable LT_MULTI_MODULE
32410         # non-empty at configure time, or by adding -multi_module to the
32411         # link flags.
32412         rm -rf libconftest.dylib*
32413         echo "int foo(void){return 1;}" > conftest.c
32414         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
32415 -dynamiclib -Wl,-single_module conftest.c" >&5
32416         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
32417           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
32418         _lt_result=$?
32419         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
32420           lt_cv_apple_cc_single_mod=yes
32421         else
32422           cat conftest.err >&5
32423         fi
32424         rm -rf libconftest.dylib*
32425         rm -f conftest.*
32426       fi
32427 fi
32428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
32429 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
32430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
32431 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
32432 if ${lt_cv_ld_exported_symbols_list+:} false; then :
32433   $as_echo_n "(cached) " >&6
32434 else
32435   lt_cv_ld_exported_symbols_list=no
32436       save_LDFLAGS=$LDFLAGS
32437       echo "_main" > conftest.sym
32438       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
32439       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32440 /* end confdefs.h.  */
32441
32442 int
32443 main ()
32444 {
32445
32446   ;
32447   return 0;
32448 }
32449 _ACEOF
32450 if ac_fn_c_try_link "$LINENO"; then :
32451   lt_cv_ld_exported_symbols_list=yes
32452 else
32453   lt_cv_ld_exported_symbols_list=no
32454 fi
32455 rm -f core conftest.err conftest.$ac_objext \
32456     conftest$ac_exeext conftest.$ac_ext
32457         LDFLAGS="$save_LDFLAGS"
32458
32459 fi
32460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
32461 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
32462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
32463 $as_echo_n "checking for -force_load linker flag... " >&6; }
32464 if ${lt_cv_ld_force_load+:} false; then :
32465   $as_echo_n "(cached) " >&6
32466 else
32467   lt_cv_ld_force_load=no
32468       cat > conftest.c << _LT_EOF
32469 int forced_loaded() { return 2;}
32470 _LT_EOF
32471       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
32472       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
32473       echo "$AR cru libconftest.a conftest.o" >&5
32474       $AR cru libconftest.a conftest.o 2>&5
32475       echo "$RANLIB libconftest.a" >&5
32476       $RANLIB libconftest.a 2>&5
32477       cat > conftest.c << _LT_EOF
32478 int main() { return 0;}
32479 _LT_EOF
32480       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
32481       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
32482       _lt_result=$?
32483       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
32484         lt_cv_ld_force_load=yes
32485       else
32486         cat conftest.err >&5
32487       fi
32488         rm -f conftest.err libconftest.a conftest conftest.c
32489         rm -rf conftest.dSYM
32490
32491 fi
32492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
32493 $as_echo "$lt_cv_ld_force_load" >&6; }
32494     case $host_os in
32495     rhapsody* | darwin1.[012])
32496       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
32497     darwin1.*)
32498       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
32499     darwin*) # darwin 5.x on
32500       # if running on 10.5 or later, the deployment target defaults
32501       # to the OS version, if on x86, and 10.4, the deployment
32502       # target defaults to 10.4. Don't you love it?
32503       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
32504         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
32505           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
32506         10.[012]*)
32507           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
32508         10.*)
32509           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
32510       esac
32511     ;;
32512   esac
32513     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
32514       _lt_dar_single_mod='$single_module'
32515     fi
32516     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
32517       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
32518     else
32519       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
32520     fi
32521     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
32522       _lt_dsymutil='~$DSYMUTIL $lib || :'
32523     else
32524       _lt_dsymutil=
32525     fi
32526     ;;
32527   esac
32528
32529 for ac_header in dlfcn.h
32530 do :
32531   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
32532 "
32533 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
32534   cat >>confdefs.h <<_ACEOF
32535 #define HAVE_DLFCN_H 1
32536 _ACEOF
32537
32538 fi
32539
32540 done
32541
32542
32543
32544
32545
32546 # Set options
32547
32548
32549
32550         enable_dlopen=no
32551
32552
32553   enable_win32_dll=no
32554
32555
32556             # Check whether --enable-shared was given.
32557 if test "${enable_shared+set}" = set; then :
32558   enableval=$enable_shared; p=${PACKAGE-default}
32559     case $enableval in
32560     yes) enable_shared=yes ;;
32561     no) enable_shared=no ;;
32562     *)
32563       enable_shared=no
32564       # Look at the argument we got.  We use all the common list separators.
32565       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32566       for pkg in $enableval; do
32567         IFS="$lt_save_ifs"
32568         if test "X$pkg" = "X$p"; then
32569           enable_shared=yes
32570         fi
32571       done
32572       IFS="$lt_save_ifs"
32573       ;;
32574     esac
32575 else
32576   enable_shared=yes
32577 fi
32578
32579
32580
32581
32582
32583
32584
32585
32586
32587   # Check whether --enable-static was given.
32588 if test "${enable_static+set}" = set; then :
32589   enableval=$enable_static; p=${PACKAGE-default}
32590     case $enableval in
32591     yes) enable_static=yes ;;
32592     no) enable_static=no ;;
32593     *)
32594      enable_static=no
32595       # Look at the argument we got.  We use all the common list separators.
32596       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32597       for pkg in $enableval; do
32598         IFS="$lt_save_ifs"
32599         if test "X$pkg" = "X$p"; then
32600           enable_static=yes
32601         fi
32602       done
32603       IFS="$lt_save_ifs"
32604       ;;
32605     esac
32606 else
32607   enable_static=yes
32608 fi
32609
32610
32611
32612
32613
32614
32615
32616
32617
32618
32619 # Check whether --with-pic was given.
32620 if test "${with_pic+set}" = set; then :
32621   withval=$with_pic; pic_mode="$withval"
32622 else
32623   pic_mode=default
32624 fi
32625
32626
32627 test -z "$pic_mode" && pic_mode=default
32628
32629
32630
32631
32632
32633
32634
32635   # Check whether --enable-fast-install was given.
32636 if test "${enable_fast_install+set}" = set; then :
32637   enableval=$enable_fast_install; p=${PACKAGE-default}
32638     case $enableval in
32639     yes) enable_fast_install=yes ;;
32640     no) enable_fast_install=no ;;
32641     *)
32642       enable_fast_install=no
32643       # Look at the argument we got.  We use all the common list separators.
32644       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32645       for pkg in $enableval; do
32646         IFS="$lt_save_ifs"
32647         if test "X$pkg" = "X$p"; then
32648           enable_fast_install=yes
32649         fi
32650       done
32651       IFS="$lt_save_ifs"
32652       ;;
32653     esac
32654 else
32655   enable_fast_install=yes
32656 fi
32657
32658
32659
32660
32661
32662
32663
32664
32665
32666
32667
32668 # This can be used to rebuild libtool when needed
32669 LIBTOOL_DEPS="$ltmain"
32670
32671 # Always use our own libtool.
32672 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
32673
32674
32675
32676
32677
32678
32679
32680
32681
32682
32683
32684
32685
32686
32687
32688
32689
32690
32691
32692
32693
32694
32695
32696
32697
32698
32699 test -z "$LN_S" && LN_S="ln -s"
32700
32701
32702
32703
32704
32705
32706
32707
32708
32709
32710
32711
32712
32713
32714 if test -n "${ZSH_VERSION+set}" ; then
32715    setopt NO_GLOB_SUBST
32716 fi
32717
32718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
32719 $as_echo_n "checking for objdir... " >&6; }
32720 if ${lt_cv_objdir+:} false; then :
32721   $as_echo_n "(cached) " >&6
32722 else
32723   rm -f .libs 2>/dev/null
32724 mkdir .libs 2>/dev/null
32725 if test -d .libs; then
32726   lt_cv_objdir=.libs
32727 else
32728   # MS-DOS does not allow filenames that begin with a dot.
32729   lt_cv_objdir=_libs
32730 fi
32731 rmdir .libs 2>/dev/null
32732 fi
32733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
32734 $as_echo "$lt_cv_objdir" >&6; }
32735 objdir=$lt_cv_objdir
32736
32737
32738
32739
32740
32741 cat >>confdefs.h <<_ACEOF
32742 #define LT_OBJDIR "$lt_cv_objdir/"
32743 _ACEOF
32744
32745
32746
32747
32748 case $host_os in
32749 aix3*)
32750   # AIX sometimes has problems with the GCC collect2 program.  For some
32751   # reason, if we set the COLLECT_NAMES environment variable, the problems
32752   # vanish in a puff of smoke.
32753   if test "X${COLLECT_NAMES+set}" != Xset; then
32754     COLLECT_NAMES=
32755     export COLLECT_NAMES
32756   fi
32757   ;;
32758 esac
32759
32760 # Global variables:
32761 ofile=libtool
32762 can_build_shared=yes
32763
32764 # All known linkers require a `.a' archive for static linking (except MSVC,
32765 # which needs '.lib').
32766 libext=a
32767
32768 with_gnu_ld="$lt_cv_prog_gnu_ld"
32769
32770 old_CC="$CC"
32771 old_CFLAGS="$CFLAGS"
32772
32773 # Set sane defaults for various variables
32774 test -z "$CC" && CC=cc
32775 test -z "$LTCC" && LTCC=$CC
32776 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
32777 test -z "$LD" && LD=ld
32778 test -z "$ac_objext" && ac_objext=o
32779
32780 for cc_temp in $compiler""; do
32781   case $cc_temp in
32782     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
32783     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
32784     \-*) ;;
32785     *) break;;
32786   esac
32787 done
32788 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
32789
32790
32791 # Only perform the check for file, if the check method requires it
32792 test -z "$MAGIC_CMD" && MAGIC_CMD=file
32793 case $deplibs_check_method in
32794 file_magic*)
32795   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
32796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
32797 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
32798 if ${lt_cv_path_MAGIC_CMD+:} false; then :
32799   $as_echo_n "(cached) " >&6
32800 else
32801   case $MAGIC_CMD in
32802 [\\/*] |  ?:[\\/]*)
32803   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
32804   ;;
32805 *)
32806   lt_save_MAGIC_CMD="$MAGIC_CMD"
32807   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32808   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
32809   for ac_dir in $ac_dummy; do
32810     IFS="$lt_save_ifs"
32811     test -z "$ac_dir" && ac_dir=.
32812     if test -f $ac_dir/${ac_tool_prefix}file; then
32813       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
32814       if test -n "$file_magic_test_file"; then
32815         case $deplibs_check_method in
32816         "file_magic "*)
32817           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
32818           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32819           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
32820             $EGREP "$file_magic_regex" > /dev/null; then
32821             :
32822           else
32823             cat <<_LT_EOF 1>&2
32824
32825 *** Warning: the command libtool uses to detect shared libraries,
32826 *** $file_magic_cmd, produces output that libtool cannot recognize.
32827 *** The result is that libtool may fail to recognize shared libraries
32828 *** as such.  This will affect the creation of libtool libraries that
32829 *** depend on shared libraries, but programs linked with such libtool
32830 *** libraries will work regardless of this problem.  Nevertheless, you
32831 *** may want to report the problem to your system manager and/or to
32832 *** bug-libtool@gnu.org
32833
32834 _LT_EOF
32835           fi ;;
32836         esac
32837       fi
32838       break
32839     fi
32840   done
32841   IFS="$lt_save_ifs"
32842   MAGIC_CMD="$lt_save_MAGIC_CMD"
32843   ;;
32844 esac
32845 fi
32846
32847 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32848 if test -n "$MAGIC_CMD"; then
32849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
32850 $as_echo "$MAGIC_CMD" >&6; }
32851 else
32852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32853 $as_echo "no" >&6; }
32854 fi
32855
32856
32857
32858
32859
32860 if test -z "$lt_cv_path_MAGIC_CMD"; then
32861   if test -n "$ac_tool_prefix"; then
32862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
32863 $as_echo_n "checking for file... " >&6; }
32864 if ${lt_cv_path_MAGIC_CMD+:} false; then :
32865   $as_echo_n "(cached) " >&6
32866 else
32867   case $MAGIC_CMD in
32868 [\\/*] |  ?:[\\/]*)
32869   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
32870   ;;
32871 *)
32872   lt_save_MAGIC_CMD="$MAGIC_CMD"
32873   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32874   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
32875   for ac_dir in $ac_dummy; do
32876     IFS="$lt_save_ifs"
32877     test -z "$ac_dir" && ac_dir=.
32878     if test -f $ac_dir/file; then
32879       lt_cv_path_MAGIC_CMD="$ac_dir/file"
32880       if test -n "$file_magic_test_file"; then
32881         case $deplibs_check_method in
32882         "file_magic "*)
32883           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
32884           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32885           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
32886             $EGREP "$file_magic_regex" > /dev/null; then
32887             :
32888           else
32889             cat <<_LT_EOF 1>&2
32890
32891 *** Warning: the command libtool uses to detect shared libraries,
32892 *** $file_magic_cmd, produces output that libtool cannot recognize.
32893 *** The result is that libtool may fail to recognize shared libraries
32894 *** as such.  This will affect the creation of libtool libraries that
32895 *** depend on shared libraries, but programs linked with such libtool
32896 *** libraries will work regardless of this problem.  Nevertheless, you
32897 *** may want to report the problem to your system manager and/or to
32898 *** bug-libtool@gnu.org
32899
32900 _LT_EOF
32901           fi ;;
32902         esac
32903       fi
32904       break
32905     fi
32906   done
32907   IFS="$lt_save_ifs"
32908   MAGIC_CMD="$lt_save_MAGIC_CMD"
32909   ;;
32910 esac
32911 fi
32912
32913 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32914 if test -n "$MAGIC_CMD"; then
32915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
32916 $as_echo "$MAGIC_CMD" >&6; }
32917 else
32918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32919 $as_echo "no" >&6; }
32920 fi
32921
32922
32923   else
32924     MAGIC_CMD=:
32925   fi
32926 fi
32927
32928   fi
32929   ;;
32930 esac
32931
32932 # Use C for the default configuration in the libtool script
32933
32934 lt_save_CC="$CC"
32935 ac_ext=c
32936 ac_cpp='$CPP $CPPFLAGS'
32937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32940
32941
32942 # Source file extension for C test sources.
32943 ac_ext=c
32944
32945 # Object file extension for compiled C test sources.
32946 objext=o
32947 objext=$objext
32948
32949 # Code to be used in simple compile tests
32950 lt_simple_compile_test_code="int some_variable = 0;"
32951
32952 # Code to be used in simple link tests
32953 lt_simple_link_test_code='int main(){return(0);}'
32954
32955
32956
32957
32958
32959
32960
32961 # If no C compiler was specified, use CC.
32962 LTCC=${LTCC-"$CC"}
32963
32964 # If no C compiler flags were specified, use CFLAGS.
32965 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
32966
32967 # Allow CC to be a program name with arguments.
32968 compiler=$CC
32969
32970 # Save the default compiler, since it gets overwritten when the other
32971 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
32972 compiler_DEFAULT=$CC
32973
32974 # save warnings/boilerplate of simple test code
32975 ac_outfile=conftest.$ac_objext
32976 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
32977 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
32978 _lt_compiler_boilerplate=`cat conftest.err`
32979 $RM conftest*
32980
32981 ac_outfile=conftest.$ac_objext
32982 echo "$lt_simple_link_test_code" >conftest.$ac_ext
32983 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
32984 _lt_linker_boilerplate=`cat conftest.err`
32985 $RM -r conftest*
32986
32987
32988 ## CAVEAT EMPTOR:
32989 ## There is no encapsulation within the following macros, do not change
32990 ## the running order or otherwise move them around unless you know exactly
32991 ## what you are doing...
32992 if test -n "$compiler"; then
32993
32994 lt_prog_compiler_no_builtin_flag=
32995
32996 if test "$GCC" = yes; then
32997   case $cc_basename in
32998   nvcc*)
32999     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
33000   *)
33001     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
33002   esac
33003
33004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
33005 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
33006 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
33007   $as_echo_n "(cached) " >&6
33008 else
33009   lt_cv_prog_compiler_rtti_exceptions=no
33010    ac_outfile=conftest.$ac_objext
33011    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33012    lt_compiler_flag="-fno-rtti -fno-exceptions"
33013    # Insert the option either (1) after the last *FLAGS variable, or
33014    # (2) before a word containing "conftest.", or (3) at the end.
33015    # Note that $ac_compile itself does not contain backslashes and begins
33016    # with a dollar sign (not a hyphen), so the echo should work correctly.
33017    # The option is referenced via a variable to avoid confusing sed.
33018    lt_compile=`echo "$ac_compile" | $SED \
33019    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33020    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33021    -e 's:$: $lt_compiler_flag:'`
33022    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33023    (eval "$lt_compile" 2>conftest.err)
33024    ac_status=$?
33025    cat conftest.err >&5
33026    echo "$as_me:$LINENO: \$? = $ac_status" >&5
33027    if (exit $ac_status) && test -s "$ac_outfile"; then
33028      # The compiler can only warn and ignore the option if not recognized
33029      # So say no if there are warnings other than the usual output.
33030      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
33031      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
33032      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
33033        lt_cv_prog_compiler_rtti_exceptions=yes
33034      fi
33035    fi
33036    $RM conftest*
33037
33038 fi
33039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
33040 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
33041
33042 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
33043     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
33044 else
33045     :
33046 fi
33047
33048 fi
33049
33050
33051
33052
33053
33054
33055   lt_prog_compiler_wl=
33056 lt_prog_compiler_pic=
33057 lt_prog_compiler_static=
33058
33059
33060   if test "$GCC" = yes; then
33061     lt_prog_compiler_wl='-Wl,'
33062     lt_prog_compiler_static='-static'
33063
33064     case $host_os in
33065       aix*)
33066       # All AIX code is PIC.
33067       if test "$host_cpu" = ia64; then
33068         # AIX 5 now supports IA64 processor
33069         lt_prog_compiler_static='-Bstatic'
33070       fi
33071       ;;
33072
33073     amigaos*)
33074       case $host_cpu in
33075       powerpc)
33076             # see comment about AmigaOS4 .so support
33077             lt_prog_compiler_pic='-fPIC'
33078         ;;
33079       m68k)
33080             # FIXME: we need at least 68020 code to build shared libraries, but
33081             # adding the `-m68020' flag to GCC prevents building anything better,
33082             # like `-m68040'.
33083             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
33084         ;;
33085       esac
33086       ;;
33087
33088     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
33089       # PIC is the default for these OSes.
33090       ;;
33091
33092     mingw* | cygwin* | pw32* | os2* | cegcc*)
33093       # This hack is so that the source file can tell whether it is being
33094       # built for inclusion in a dll (and should export symbols for example).
33095       # Although the cygwin gcc ignores -fPIC, still need this for old-style
33096       # (--disable-auto-import) libraries
33097       lt_prog_compiler_pic='-DDLL_EXPORT'
33098       ;;
33099
33100     darwin* | rhapsody*)
33101       # PIC is the default on this platform
33102       # Common symbols not allowed in MH_DYLIB files
33103       lt_prog_compiler_pic='-fno-common'
33104       ;;
33105
33106     haiku*)
33107       # PIC is the default for Haiku.
33108       # The "-static" flag exists, but is broken.
33109       lt_prog_compiler_static=
33110       ;;
33111
33112     hpux*)
33113       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
33114       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
33115       # sets the default TLS model and affects inlining.
33116       case $host_cpu in
33117       hppa*64*)
33118         # +Z the default
33119         ;;
33120       *)
33121         lt_prog_compiler_pic='-fPIC'
33122         ;;
33123       esac
33124       ;;
33125
33126     interix[3-9]*)
33127       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
33128       # Instead, we relocate shared libraries at runtime.
33129       ;;
33130
33131     msdosdjgpp*)
33132       # Just because we use GCC doesn't mean we suddenly get shared libraries
33133       # on systems that don't support them.
33134       lt_prog_compiler_can_build_shared=no
33135       enable_shared=no
33136       ;;
33137
33138     *nto* | *qnx*)
33139       # QNX uses GNU C++, but need to define -shared option too, otherwise
33140       # it will coredump.
33141       lt_prog_compiler_pic='-fPIC -shared'
33142       ;;
33143
33144     sysv4*MP*)
33145       if test -d /usr/nec; then
33146         lt_prog_compiler_pic=-Kconform_pic
33147       fi
33148       ;;
33149
33150     *)
33151       lt_prog_compiler_pic='-fPIC'
33152       ;;
33153     esac
33154
33155     case $cc_basename in
33156     nvcc*) # Cuda Compiler Driver 2.2
33157       lt_prog_compiler_wl='-Xlinker '
33158       lt_prog_compiler_pic='-Xcompiler -fPIC'
33159       ;;
33160     esac
33161   else
33162     # PORTME Check for flag to pass linker flags through the system compiler.
33163     case $host_os in
33164     aix*)
33165       lt_prog_compiler_wl='-Wl,'
33166       if test "$host_cpu" = ia64; then
33167         # AIX 5 now supports IA64 processor
33168         lt_prog_compiler_static='-Bstatic'
33169       else
33170         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
33171       fi
33172       ;;
33173
33174     mingw* | cygwin* | pw32* | os2* | cegcc*)
33175       # This hack is so that the source file can tell whether it is being
33176       # built for inclusion in a dll (and should export symbols for example).
33177       lt_prog_compiler_pic='-DDLL_EXPORT'
33178       ;;
33179
33180     hpux9* | hpux10* | hpux11*)
33181       lt_prog_compiler_wl='-Wl,'
33182       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
33183       # not for PA HP-UX.
33184       case $host_cpu in
33185       hppa*64*|ia64*)
33186         # +Z the default
33187         ;;
33188       *)
33189         lt_prog_compiler_pic='+Z'
33190         ;;
33191       esac
33192       # Is there a better lt_prog_compiler_static that works with the bundled CC?
33193       lt_prog_compiler_static='${wl}-a ${wl}archive'
33194       ;;
33195
33196     irix5* | irix6* | nonstopux*)
33197       lt_prog_compiler_wl='-Wl,'
33198       # PIC (with -KPIC) is the default.
33199       lt_prog_compiler_static='-non_shared'
33200       ;;
33201
33202     linux* | k*bsd*-gnu | kopensolaris*-gnu)
33203       case $cc_basename in
33204       # old Intel for x86_64 which still supported -KPIC.
33205       ecc*)
33206         lt_prog_compiler_wl='-Wl,'
33207         lt_prog_compiler_pic='-KPIC'
33208         lt_prog_compiler_static='-static'
33209         ;;
33210       # icc used to be incompatible with GCC.
33211       # ICC 10 doesn't accept -KPIC any more.
33212       icc* | ifort*)
33213         lt_prog_compiler_wl='-Wl,'
33214         lt_prog_compiler_pic='-fPIC'
33215         lt_prog_compiler_static='-static'
33216         ;;
33217       # Lahey Fortran 8.1.
33218       lf95*)
33219         lt_prog_compiler_wl='-Wl,'
33220         lt_prog_compiler_pic='--shared'
33221         lt_prog_compiler_static='--static'
33222         ;;
33223       nagfor*)
33224         # NAG Fortran compiler
33225         lt_prog_compiler_wl='-Wl,-Wl,,'
33226         lt_prog_compiler_pic='-PIC'
33227         lt_prog_compiler_static='-Bstatic'
33228         ;;
33229       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
33230         # Portland Group compilers (*not* the Pentium gcc compiler,
33231         # which looks to be a dead project)
33232         lt_prog_compiler_wl='-Wl,'
33233         lt_prog_compiler_pic='-fpic'
33234         lt_prog_compiler_static='-Bstatic'
33235         ;;
33236       ccc*)
33237         lt_prog_compiler_wl='-Wl,'
33238         # All Alpha code is PIC.
33239         lt_prog_compiler_static='-non_shared'
33240         ;;
33241       xl* | bgxl* | bgf* | mpixl*)
33242         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
33243         lt_prog_compiler_wl='-Wl,'
33244         lt_prog_compiler_pic='-qpic'
33245         lt_prog_compiler_static='-qstaticlink'
33246         ;;
33247       *)
33248         case `$CC -V 2>&1 | sed 5q` in
33249         *Sun\ F* | *Sun*Fortran*)
33250           # Sun Fortran 8.3 passes all unrecognized flags to the linker
33251           lt_prog_compiler_pic='-KPIC'
33252           lt_prog_compiler_static='-Bstatic'
33253           lt_prog_compiler_wl=''
33254           ;;
33255         *Sun\ C*)
33256           # Sun C 5.9
33257           lt_prog_compiler_pic='-KPIC'
33258           lt_prog_compiler_static='-Bstatic'
33259           lt_prog_compiler_wl='-Wl,'
33260           ;;
33261         esac
33262         ;;
33263       esac
33264       ;;
33265
33266     newsos6)
33267       lt_prog_compiler_pic='-KPIC'
33268       lt_prog_compiler_static='-Bstatic'
33269       ;;
33270
33271     *nto* | *qnx*)
33272       # QNX uses GNU C++, but need to define -shared option too, otherwise
33273       # it will coredump.
33274       lt_prog_compiler_pic='-fPIC -shared'
33275       ;;
33276
33277     osf3* | osf4* | osf5*)
33278       lt_prog_compiler_wl='-Wl,'
33279       # All OSF/1 code is PIC.
33280       lt_prog_compiler_static='-non_shared'
33281       ;;
33282
33283     rdos*)
33284       lt_prog_compiler_static='-non_shared'
33285       ;;
33286
33287     solaris*)
33288       lt_prog_compiler_pic='-KPIC'
33289       lt_prog_compiler_static='-Bstatic'
33290       case $cc_basename in
33291       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
33292         lt_prog_compiler_wl='-Qoption ld ';;
33293       *)
33294         lt_prog_compiler_wl='-Wl,';;
33295       esac
33296       ;;
33297
33298     sunos4*)
33299       lt_prog_compiler_wl='-Qoption ld '
33300       lt_prog_compiler_pic='-PIC'
33301       lt_prog_compiler_static='-Bstatic'
33302       ;;
33303
33304     sysv4 | sysv4.2uw2* | sysv4.3*)
33305       lt_prog_compiler_wl='-Wl,'
33306       lt_prog_compiler_pic='-KPIC'
33307       lt_prog_compiler_static='-Bstatic'
33308       ;;
33309
33310     sysv4*MP*)
33311       if test -d /usr/nec ;then
33312         lt_prog_compiler_pic='-Kconform_pic'
33313         lt_prog_compiler_static='-Bstatic'
33314       fi
33315       ;;
33316
33317     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
33318       lt_prog_compiler_wl='-Wl,'
33319       lt_prog_compiler_pic='-KPIC'
33320       lt_prog_compiler_static='-Bstatic'
33321       ;;
33322
33323     unicos*)
33324       lt_prog_compiler_wl='-Wl,'
33325       lt_prog_compiler_can_build_shared=no
33326       ;;
33327
33328     uts4*)
33329       lt_prog_compiler_pic='-pic'
33330       lt_prog_compiler_static='-Bstatic'
33331       ;;
33332
33333     *)
33334       lt_prog_compiler_can_build_shared=no
33335       ;;
33336     esac
33337   fi
33338
33339 case $host_os in
33340   # For platforms which do not support PIC, -DPIC is meaningless:
33341   *djgpp*)
33342     lt_prog_compiler_pic=
33343     ;;
33344   *)
33345     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
33346     ;;
33347 esac
33348
33349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
33350 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
33351 if ${lt_cv_prog_compiler_pic+:} false; then :
33352   $as_echo_n "(cached) " >&6
33353 else
33354   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
33355 fi
33356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
33357 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
33358 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
33359
33360 #
33361 # Check to make sure the PIC flag actually works.
33362 #
33363 if test -n "$lt_prog_compiler_pic"; then
33364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
33365 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
33366 if ${lt_cv_prog_compiler_pic_works+:} false; then :
33367   $as_echo_n "(cached) " >&6
33368 else
33369   lt_cv_prog_compiler_pic_works=no
33370    ac_outfile=conftest.$ac_objext
33371    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33372    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
33373    # Insert the option either (1) after the last *FLAGS variable, or
33374    # (2) before a word containing "conftest.", or (3) at the end.
33375    # Note that $ac_compile itself does not contain backslashes and begins
33376    # with a dollar sign (not a hyphen), so the echo should work correctly.
33377    # The option is referenced via a variable to avoid confusing sed.
33378    lt_compile=`echo "$ac_compile" | $SED \
33379    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33380    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33381    -e 's:$: $lt_compiler_flag:'`
33382    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33383    (eval "$lt_compile" 2>conftest.err)
33384    ac_status=$?
33385    cat conftest.err >&5
33386    echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387    if (exit $ac_status) && test -s "$ac_outfile"; then
33388      # The compiler can only warn and ignore the option if not recognized
33389      # So say no if there are warnings other than the usual output.
33390      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
33391      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
33392      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
33393        lt_cv_prog_compiler_pic_works=yes
33394      fi
33395    fi
33396    $RM conftest*
33397
33398 fi
33399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
33400 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
33401
33402 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
33403     case $lt_prog_compiler_pic in
33404      "" | " "*) ;;
33405      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
33406      esac
33407 else
33408     lt_prog_compiler_pic=
33409      lt_prog_compiler_can_build_shared=no
33410 fi
33411
33412 fi
33413
33414
33415
33416
33417
33418
33419
33420
33421
33422
33423
33424 #
33425 # Check to make sure the static flag actually works.
33426 #
33427 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
33428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
33429 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
33430 if ${lt_cv_prog_compiler_static_works+:} false; then :
33431   $as_echo_n "(cached) " >&6
33432 else
33433   lt_cv_prog_compiler_static_works=no
33434    save_LDFLAGS="$LDFLAGS"
33435    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
33436    echo "$lt_simple_link_test_code" > conftest.$ac_ext
33437    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
33438      # The linker can only warn and ignore the option if not recognized
33439      # So say no if there are warnings
33440      if test -s conftest.err; then
33441        # Append any errors to the config.log.
33442        cat conftest.err 1>&5
33443        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
33444        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
33445        if diff conftest.exp conftest.er2 >/dev/null; then
33446          lt_cv_prog_compiler_static_works=yes
33447        fi
33448      else
33449        lt_cv_prog_compiler_static_works=yes
33450      fi
33451    fi
33452    $RM -r conftest*
33453    LDFLAGS="$save_LDFLAGS"
33454
33455 fi
33456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
33457 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
33458
33459 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
33460     :
33461 else
33462     lt_prog_compiler_static=
33463 fi
33464
33465
33466
33467
33468
33469
33470
33471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
33472 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
33473 if ${lt_cv_prog_compiler_c_o+:} false; then :
33474   $as_echo_n "(cached) " >&6
33475 else
33476   lt_cv_prog_compiler_c_o=no
33477    $RM -r conftest 2>/dev/null
33478    mkdir conftest
33479    cd conftest
33480    mkdir out
33481    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33482
33483    lt_compiler_flag="-o out/conftest2.$ac_objext"
33484    # Insert the option either (1) after the last *FLAGS variable, or
33485    # (2) before a word containing "conftest.", or (3) at the end.
33486    # Note that $ac_compile itself does not contain backslashes and begins
33487    # with a dollar sign (not a hyphen), so the echo should work correctly.
33488    lt_compile=`echo "$ac_compile" | $SED \
33489    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33490    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33491    -e 's:$: $lt_compiler_flag:'`
33492    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33493    (eval "$lt_compile" 2>out/conftest.err)
33494    ac_status=$?
33495    cat out/conftest.err >&5
33496    echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497    if (exit $ac_status) && test -s out/conftest2.$ac_objext
33498    then
33499      # The compiler can only warn and ignore the option if not recognized
33500      # So say no if there are warnings
33501      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
33502      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
33503      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
33504        lt_cv_prog_compiler_c_o=yes
33505      fi
33506    fi
33507    chmod u+w . 2>&5
33508    $RM conftest*
33509    # SGI C++ compiler will create directory out/ii_files/ for
33510    # template instantiation
33511    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
33512    $RM out/* && rmdir out
33513    cd ..
33514    $RM -r conftest
33515    $RM conftest*
33516
33517 fi
33518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
33519 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
33520
33521
33522
33523
33524
33525
33526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
33527 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
33528 if ${lt_cv_prog_compiler_c_o+:} false; then :
33529   $as_echo_n "(cached) " >&6
33530 else
33531   lt_cv_prog_compiler_c_o=no
33532    $RM -r conftest 2>/dev/null
33533    mkdir conftest
33534    cd conftest
33535    mkdir out
33536    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33537
33538    lt_compiler_flag="-o out/conftest2.$ac_objext"
33539    # Insert the option either (1) after the last *FLAGS variable, or
33540    # (2) before a word containing "conftest.", or (3) at the end.
33541    # Note that $ac_compile itself does not contain backslashes and begins
33542    # with a dollar sign (not a hyphen), so the echo should work correctly.
33543    lt_compile=`echo "$ac_compile" | $SED \
33544    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33545    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33546    -e 's:$: $lt_compiler_flag:'`
33547    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33548    (eval "$lt_compile" 2>out/conftest.err)
33549    ac_status=$?
33550    cat out/conftest.err >&5
33551    echo "$as_me:$LINENO: \$? = $ac_status" >&5
33552    if (exit $ac_status) && test -s out/conftest2.$ac_objext
33553    then
33554      # The compiler can only warn and ignore the option if not recognized
33555      # So say no if there are warnings
33556      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
33557      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
33558      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
33559        lt_cv_prog_compiler_c_o=yes
33560      fi
33561    fi
33562    chmod u+w . 2>&5
33563    $RM conftest*
33564    # SGI C++ compiler will create directory out/ii_files/ for
33565    # template instantiation
33566    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
33567    $RM out/* && rmdir out
33568    cd ..
33569    $RM -r conftest
33570    $RM conftest*
33571
33572 fi
33573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
33574 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
33575
33576
33577
33578
33579 hard_links="nottested"
33580 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
33581   # do not overwrite the value of need_locks provided by the user
33582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
33583 $as_echo_n "checking if we can lock with hard links... " >&6; }
33584   hard_links=yes
33585   $RM conftest*
33586   ln conftest.a conftest.b 2>/dev/null && hard_links=no
33587   touch conftest.a
33588   ln conftest.a conftest.b 2>&5 || hard_links=no
33589   ln conftest.a conftest.b 2>/dev/null && hard_links=no
33590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
33591 $as_echo "$hard_links" >&6; }
33592   if test "$hard_links" = no; then
33593     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
33594 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
33595     need_locks=warn
33596   fi
33597 else
33598   need_locks=no
33599 fi
33600
33601
33602
33603
33604
33605
33606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
33607 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
33608
33609   runpath_var=
33610   allow_undefined_flag=
33611   always_export_symbols=no
33612   archive_cmds=
33613   archive_expsym_cmds=
33614   compiler_needs_object=no
33615   enable_shared_with_static_runtimes=no
33616   export_dynamic_flag_spec=
33617   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
33618   hardcode_automatic=no
33619   hardcode_direct=no
33620   hardcode_direct_absolute=no
33621   hardcode_libdir_flag_spec=
33622   hardcode_libdir_flag_spec_ld=
33623   hardcode_libdir_separator=
33624   hardcode_minus_L=no
33625   hardcode_shlibpath_var=unsupported
33626   inherit_rpath=no
33627   link_all_deplibs=unknown
33628   module_cmds=
33629   module_expsym_cmds=
33630   old_archive_from_new_cmds=
33631   old_archive_from_expsyms_cmds=
33632   thread_safe_flag_spec=
33633   whole_archive_flag_spec=
33634   # include_expsyms should be a list of space-separated symbols to be *always*
33635   # included in the symbol list
33636   include_expsyms=
33637   # exclude_expsyms can be an extended regexp of symbols to exclude
33638   # it will be wrapped by ` (' and `)$', so one must not match beginning or
33639   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
33640   # as well as any symbol that contains `d'.
33641   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
33642   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
33643   # platforms (ab)use it in PIC code, but their linkers get confused if
33644   # the symbol is explicitly referenced.  Since portable code cannot
33645   # rely on this symbol name, it's probably fine to never include it in
33646   # preloaded symbol tables.
33647   # Exclude shared library initialization/finalization symbols.
33648   extract_expsyms_cmds=
33649
33650   case $host_os in
33651   cygwin* | mingw* | pw32* | cegcc*)
33652     # FIXME: the MSVC++ port hasn't been tested in a loooong time
33653     # When not using gcc, we currently assume that we are using
33654     # Microsoft Visual C++.
33655     if test "$GCC" != yes; then
33656       with_gnu_ld=no
33657     fi
33658     ;;
33659   interix*)
33660     # we just hope/assume this is gcc and not c89 (= MSVC++)
33661     with_gnu_ld=yes
33662     ;;
33663   openbsd*)
33664     with_gnu_ld=no
33665     ;;
33666   esac
33667
33668   ld_shlibs=yes
33669
33670   # On some targets, GNU ld is compatible enough with the native linker
33671   # that we're better off using the native interface for both.
33672   lt_use_gnu_ld_interface=no
33673   if test "$with_gnu_ld" = yes; then
33674     case $host_os in
33675       aix*)
33676         # The AIX port of GNU ld has always aspired to compatibility
33677         # with the native linker.  However, as the warning in the GNU ld
33678         # block says, versions before 2.19.5* couldn't really create working
33679         # shared libraries, regardless of the interface used.
33680         case `$LD -v 2>&1` in
33681           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
33682           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
33683           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
33684           *)
33685             lt_use_gnu_ld_interface=yes
33686             ;;
33687         esac
33688         ;;
33689       *)
33690         lt_use_gnu_ld_interface=yes
33691         ;;
33692     esac
33693   fi
33694
33695   if test "$lt_use_gnu_ld_interface" = yes; then
33696     # If archive_cmds runs LD, not CC, wlarc should be empty
33697     wlarc='${wl}'
33698
33699     # Set some defaults for GNU ld with shared library support. These
33700     # are reset later if shared libraries are not supported. Putting them
33701     # here allows them to be overridden if necessary.
33702     runpath_var=LD_RUN_PATH
33703     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
33704     export_dynamic_flag_spec='${wl}--export-dynamic'
33705     # ancient GNU ld didn't support --whole-archive et. al.
33706     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
33707       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
33708     else
33709       whole_archive_flag_spec=
33710     fi
33711     supports_anon_versioning=no
33712     case `$LD -v 2>&1` in
33713       *GNU\ gold*) supports_anon_versioning=yes ;;
33714       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
33715       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
33716       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
33717       *\ 2.11.*) ;; # other 2.11 versions
33718       *) supports_anon_versioning=yes ;;
33719     esac
33720
33721     # See if GNU ld supports shared libraries.
33722     case $host_os in
33723     aix[3-9]*)
33724       # On AIX/PPC, the GNU linker is very broken
33725       if test "$host_cpu" != ia64; then
33726         ld_shlibs=no
33727         cat <<_LT_EOF 1>&2
33728
33729 *** Warning: the GNU linker, at least up to release 2.19, is reported
33730 *** to be unable to reliably create shared libraries on AIX.
33731 *** Therefore, libtool is disabling shared libraries support.  If you
33732 *** really care for shared libraries, you may want to install binutils
33733 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
33734 *** You will then need to restart the configuration process.
33735
33736 _LT_EOF
33737       fi
33738       ;;
33739
33740     amigaos*)
33741       case $host_cpu in
33742       powerpc)
33743             # see comment about AmigaOS4 .so support
33744             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33745             archive_expsym_cmds=''
33746         ;;
33747       m68k)
33748             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)'
33749             hardcode_libdir_flag_spec='-L$libdir'
33750             hardcode_minus_L=yes
33751         ;;
33752       esac
33753       ;;
33754
33755     beos*)
33756       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33757         allow_undefined_flag=unsupported
33758         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
33759         # support --undefined.  This deserves some investigation.  FIXME
33760         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33761       else
33762         ld_shlibs=no
33763       fi
33764       ;;
33765
33766     cygwin* | mingw* | pw32* | cegcc*)
33767       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
33768       # as there is no search path for DLLs.
33769       hardcode_libdir_flag_spec='-L$libdir'
33770       export_dynamic_flag_spec='${wl}--export-all-symbols'
33771       allow_undefined_flag=unsupported
33772       always_export_symbols=no
33773       enable_shared_with_static_runtimes=yes
33774       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
33775       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
33776
33777       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
33778         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
33779         # If the export-symbols file already is a .def file (1st line
33780         # is EXPORTS), use it as is; otherwise, prepend...
33781         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
33782           cp $export_symbols $output_objdir/$soname.def;
33783         else
33784           echo EXPORTS > $output_objdir/$soname.def;
33785           cat $export_symbols >> $output_objdir/$soname.def;
33786         fi~
33787         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
33788       else
33789         ld_shlibs=no
33790       fi
33791       ;;
33792
33793     haiku*)
33794       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33795       link_all_deplibs=yes
33796       ;;
33797
33798     interix[3-9]*)
33799       hardcode_direct=no
33800       hardcode_shlibpath_var=no
33801       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
33802       export_dynamic_flag_spec='${wl}-E'
33803       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
33804       # Instead, shared libraries are loaded at an image base (0x10000000 by
33805       # default) and relocated if they conflict, which is a slow very memory
33806       # consuming and fragmenting process.  To avoid this, we pick a random,
33807       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
33808       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
33809       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
33810       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'
33811       ;;
33812
33813     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
33814       tmp_diet=no
33815       if test "$host_os" = linux-dietlibc; then
33816         case $cc_basename in
33817           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
33818         esac
33819       fi
33820       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
33821          && test "$tmp_diet" = no
33822       then
33823         tmp_addflag=' $pic_flag'
33824         tmp_sharedflag='-shared'
33825         case $cc_basename,$host_cpu in
33826         pgcc*)                          # Portland Group C compiler
33827           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
33828           tmp_addflag=' $pic_flag'
33829           ;;
33830         pgf77* | pgf90* | pgf95* | pgfortran*)
33831                                         # Portland Group f77 and f90 compilers
33832           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
33833           tmp_addflag=' $pic_flag -Mnomain' ;;
33834         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
33835           tmp_addflag=' -i_dynamic' ;;
33836         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
33837           tmp_addflag=' -i_dynamic -nofor_main' ;;
33838         ifc* | ifort*)                  # Intel Fortran compiler
33839           tmp_addflag=' -nofor_main' ;;
33840         lf95*)                          # Lahey Fortran 8.1
33841           whole_archive_flag_spec=
33842           tmp_sharedflag='--shared' ;;
33843         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
33844           tmp_sharedflag='-qmkshrobj'
33845           tmp_addflag= ;;
33846         nvcc*)  # Cuda Compiler Driver 2.2
33847           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
33848           compiler_needs_object=yes
33849           ;;
33850         esac
33851         case `$CC -V 2>&1 | sed 5q` in
33852         *Sun\ C*)                       # Sun C 5.9
33853           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
33854           compiler_needs_object=yes
33855           tmp_sharedflag='-G' ;;
33856         *Sun\ F*)                       # Sun Fortran 8.3
33857           tmp_sharedflag='-G' ;;
33858         esac
33859         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33860
33861         if test "x$supports_anon_versioning" = xyes; then
33862           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
33863             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
33864             echo "local: *; };" >> $output_objdir/$libname.ver~
33865             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
33866         fi
33867
33868         case $cc_basename in
33869         xlf* | bgf* | bgxlf* | mpixlf*)
33870           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
33871           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
33872           hardcode_libdir_flag_spec=
33873           hardcode_libdir_flag_spec_ld='-rpath $libdir'
33874           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
33875           if test "x$supports_anon_versioning" = xyes; then
33876             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
33877               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
33878               echo "local: *; };" >> $output_objdir/$libname.ver~
33879               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
33880           fi
33881           ;;
33882         esac
33883       else
33884         ld_shlibs=no
33885       fi
33886       ;;
33887
33888     netbsd*)
33889       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
33890         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
33891         wlarc=
33892       else
33893         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33894         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33895       fi
33896       ;;
33897
33898     solaris*)
33899       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
33900         ld_shlibs=no
33901         cat <<_LT_EOF 1>&2
33902
33903 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
33904 *** create shared libraries on Solaris systems.  Therefore, libtool
33905 *** is disabling shared libraries support.  We urge you to upgrade GNU
33906 *** binutils to release 2.9.1 or newer.  Another option is to modify
33907 *** your PATH or compiler configuration so that the native linker is
33908 *** used, and then restart.
33909
33910 _LT_EOF
33911       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33912         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33913         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33914       else
33915         ld_shlibs=no
33916       fi
33917       ;;
33918
33919     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
33920       case `$LD -v 2>&1` in
33921         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
33922         ld_shlibs=no
33923         cat <<_LT_EOF 1>&2
33924
33925 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
33926 *** reliably create shared libraries on SCO systems.  Therefore, libtool
33927 *** is disabling shared libraries support.  We urge you to upgrade GNU
33928 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
33929 *** your PATH or compiler configuration so that the native linker is
33930 *** used, and then restart.
33931
33932 _LT_EOF
33933         ;;
33934         *)
33935           # For security reasons, it is highly recommended that you always
33936           # use absolute paths for naming shared libraries, and exclude the
33937           # DT_RUNPATH tag from executables and libraries.  But doing so
33938           # requires that you compile everything twice, which is a pain.
33939           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33940             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
33941             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33942             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33943           else
33944             ld_shlibs=no
33945           fi
33946         ;;
33947       esac
33948       ;;
33949
33950     sunos4*)
33951       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
33952       wlarc=
33953       hardcode_direct=yes
33954       hardcode_shlibpath_var=no
33955       ;;
33956
33957     *)
33958       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33959         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33960         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33961       else
33962         ld_shlibs=no
33963       fi
33964       ;;
33965     esac
33966
33967     if test "$ld_shlibs" = no; then
33968       runpath_var=
33969       hardcode_libdir_flag_spec=
33970       export_dynamic_flag_spec=
33971       whole_archive_flag_spec=
33972     fi
33973   else
33974     # PORTME fill in a description of your system's linker (not GNU ld)
33975     case $host_os in
33976     aix3*)
33977       allow_undefined_flag=unsupported
33978       always_export_symbols=yes
33979       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'
33980       # Note: this linker hardcodes the directories in LIBPATH if there
33981       # are no directories specified by -L.
33982       hardcode_minus_L=yes
33983       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
33984         # Neither direct hardcoding nor static linking is supported with a
33985         # broken collect2.
33986         hardcode_direct=unsupported
33987       fi
33988       ;;
33989
33990     aix[4-9]*)
33991       if test "$host_cpu" = ia64; then
33992         # On IA64, the linker does run time linking by default, so we don't
33993         # have to do anything special.
33994         aix_use_runtimelinking=no
33995         exp_sym_flag='-Bexport'
33996         no_entry_flag=""
33997       else
33998         # If we're using GNU nm, then we don't want the "-C" option.
33999         # -C means demangle to AIX nm, but means don't demangle with GNU nm
34000         # Also, AIX nm treats weak defined symbols like other global
34001         # defined symbols, whereas GNU nm marks them as "W".
34002         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
34003           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
34004         else
34005           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'
34006         fi
34007         aix_use_runtimelinking=no
34008
34009         # Test if we are trying to use run time linking or normal
34010         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
34011         # need to do runtime linking.
34012         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
34013           for ld_flag in $LDFLAGS; do
34014           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
34015             aix_use_runtimelinking=yes
34016             break
34017           fi
34018           done
34019           ;;
34020         esac
34021
34022         exp_sym_flag='-bexport'
34023         no_entry_flag='-bnoentry'
34024       fi
34025
34026       # When large executables or shared objects are built, AIX ld can
34027       # have problems creating the table of contents.  If linking a library
34028       # or program results in "error TOC overflow" add -mminimal-toc to
34029       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
34030       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
34031
34032       archive_cmds=''
34033       hardcode_direct=yes
34034       hardcode_direct_absolute=yes
34035       hardcode_libdir_separator=':'
34036       link_all_deplibs=yes
34037       file_list_spec='${wl}-f,'
34038
34039       if test "$GCC" = yes; then
34040         case $host_os in aix4.[012]|aix4.[012].*)
34041         # We only want to do this on AIX 4.2 and lower, the check
34042         # below for broken collect2 doesn't work under 4.3+
34043           collect2name=`${CC} -print-prog-name=collect2`
34044           if test -f "$collect2name" &&
34045            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
34046           then
34047           # We have reworked collect2
34048           :
34049           else
34050           # We have old collect2
34051           hardcode_direct=unsupported
34052           # It fails to find uninstalled libraries when the uninstalled
34053           # path is not listed in the libpath.  Setting hardcode_minus_L
34054           # to unsupported forces relinking
34055           hardcode_minus_L=yes
34056           hardcode_libdir_flag_spec='-L$libdir'
34057           hardcode_libdir_separator=
34058           fi
34059           ;;
34060         esac
34061         shared_flag='-shared'
34062         if test "$aix_use_runtimelinking" = yes; then
34063           shared_flag="$shared_flag "'${wl}-G'
34064         fi
34065       else
34066         # not using gcc
34067         if test "$host_cpu" = ia64; then
34068         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
34069         # chokes on -Wl,-G. The following line is correct:
34070           shared_flag='-G'
34071         else
34072           if test "$aix_use_runtimelinking" = yes; then
34073             shared_flag='${wl}-G'
34074           else
34075             shared_flag='${wl}-bM:SRE'
34076           fi
34077         fi
34078       fi
34079
34080       export_dynamic_flag_spec='${wl}-bexpall'
34081       # It seems that -bexpall does not export symbols beginning with
34082       # underscore (_), so it is better to generate a list of symbols to export.
34083       always_export_symbols=yes
34084       if test "$aix_use_runtimelinking" = yes; then
34085         # Warning - without using the other runtime loading flags (-brtl),
34086         # -berok will link without error, but may produce a broken library.
34087         allow_undefined_flag='-berok'
34088         # Determine the default libpath from the value encoded in an
34089         # empty executable.
34090         if test "${lt_cv_aix_libpath+set}" = set; then
34091   aix_libpath=$lt_cv_aix_libpath
34092 else
34093   if ${lt_cv_aix_libpath_+:} false; then :
34094   $as_echo_n "(cached) " >&6
34095 else
34096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34097 /* end confdefs.h.  */
34098
34099 int
34100 main ()
34101 {
34102
34103   ;
34104   return 0;
34105 }
34106 _ACEOF
34107 if ac_fn_c_try_link "$LINENO"; then :
34108
34109   lt_aix_libpath_sed='
34110       /Import File Strings/,/^$/ {
34111           /^0/ {
34112               s/^0  *\([^ ]*\) *$/\1/
34113               p
34114           }
34115       }'
34116   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
34117   # Check for a 64-bit object if we didn't find anything.
34118   if test -z "$lt_cv_aix_libpath_"; then
34119     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
34120   fi
34121 fi
34122 rm -f core conftest.err conftest.$ac_objext \
34123     conftest$ac_exeext conftest.$ac_ext
34124   if test -z "$lt_cv_aix_libpath_"; then
34125     lt_cv_aix_libpath_="/usr/lib:/lib"
34126   fi
34127
34128 fi
34129
34130   aix_libpath=$lt_cv_aix_libpath_
34131 fi
34132
34133         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
34134         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
34135       else
34136         if test "$host_cpu" = ia64; then
34137           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
34138           allow_undefined_flag="-z nodefs"
34139           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"
34140         else
34141          # Determine the default libpath from the value encoded in an
34142          # empty executable.
34143          if test "${lt_cv_aix_libpath+set}" = set; then
34144   aix_libpath=$lt_cv_aix_libpath
34145 else
34146   if ${lt_cv_aix_libpath_+:} false; then :
34147   $as_echo_n "(cached) " >&6
34148 else
34149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34150 /* end confdefs.h.  */
34151
34152 int
34153 main ()
34154 {
34155
34156   ;
34157   return 0;
34158 }
34159 _ACEOF
34160 if ac_fn_c_try_link "$LINENO"; then :
34161
34162   lt_aix_libpath_sed='
34163       /Import File Strings/,/^$/ {
34164           /^0/ {
34165               s/^0  *\([^ ]*\) *$/\1/
34166               p
34167           }
34168       }'
34169   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
34170   # Check for a 64-bit object if we didn't find anything.
34171   if test -z "$lt_cv_aix_libpath_"; then
34172     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
34173   fi
34174 fi
34175 rm -f core conftest.err conftest.$ac_objext \
34176     conftest$ac_exeext conftest.$ac_ext
34177   if test -z "$lt_cv_aix_libpath_"; then
34178     lt_cv_aix_libpath_="/usr/lib:/lib"
34179   fi
34180
34181 fi
34182
34183   aix_libpath=$lt_cv_aix_libpath_
34184 fi
34185
34186          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
34187           # Warning - without using the other run time loading flags,
34188           # -berok will link without error, but may produce a broken library.
34189           no_undefined_flag=' ${wl}-bernotok'
34190           allow_undefined_flag=' ${wl}-berok'
34191           if test "$with_gnu_ld" = yes; then
34192             # We only use this code for GNU lds that support --whole-archive.
34193             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
34194           else
34195             # Exported symbols can be pulled into shared objects from archives
34196             whole_archive_flag_spec='$convenience'
34197           fi
34198           archive_cmds_need_lc=yes
34199           # This is similar to how AIX traditionally builds its shared libraries.
34200           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'
34201         fi
34202       fi
34203       ;;
34204
34205     amigaos*)
34206       case $host_cpu in
34207       powerpc)
34208             # see comment about AmigaOS4 .so support
34209             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
34210             archive_expsym_cmds=''
34211         ;;
34212       m68k)
34213             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)'
34214             hardcode_libdir_flag_spec='-L$libdir'
34215             hardcode_minus_L=yes
34216         ;;
34217       esac
34218       ;;
34219
34220     bsdi[45]*)
34221       export_dynamic_flag_spec=-rdynamic
34222       ;;
34223
34224     cygwin* | mingw* | pw32* | cegcc*)
34225       # When not using gcc, we currently assume that we are using
34226       # Microsoft Visual C++.
34227       # hardcode_libdir_flag_spec is actually meaningless, as there is
34228       # no search path for DLLs.
34229       case $cc_basename in
34230       cl*)
34231         # Native MSVC
34232         hardcode_libdir_flag_spec=' '
34233         allow_undefined_flag=unsupported
34234         always_export_symbols=yes
34235         file_list_spec='@'
34236         # Tell ltmain to make .lib files, not .a files.
34237         libext=lib
34238         # Tell ltmain to make .dll files, not .so files.
34239         shrext_cmds=".dll"
34240         # FIXME: Setting linknames here is a bad hack.
34241         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
34242         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
34243             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
34244           else
34245             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
34246           fi~
34247           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
34248           linknames='
34249         # The linker will not automatically build a static lib if we build a DLL.
34250         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
34251         enable_shared_with_static_runtimes=yes
34252         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
34253         # Don't use ranlib
34254         old_postinstall_cmds='chmod 644 $oldlib'
34255         postlink_cmds='lt_outputfile="@OUTPUT@"~
34256           lt_tool_outputfile="@TOOL_OUTPUT@"~
34257           case $lt_outputfile in
34258             *.exe|*.EXE) ;;
34259             *)
34260               lt_outputfile="$lt_outputfile.exe"
34261               lt_tool_outputfile="$lt_tool_outputfile.exe"
34262               ;;
34263           esac~
34264           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
34265             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
34266             $RM "$lt_outputfile.manifest";
34267           fi'
34268         ;;
34269       *)
34270         # Assume MSVC wrapper
34271         hardcode_libdir_flag_spec=' '
34272         allow_undefined_flag=unsupported
34273         # Tell ltmain to make .lib files, not .a files.
34274         libext=lib
34275         # Tell ltmain to make .dll files, not .so files.
34276         shrext_cmds=".dll"
34277         # FIXME: Setting linknames here is a bad hack.
34278         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
34279         # The linker will automatically build a .lib file if we build a DLL.
34280         old_archive_from_new_cmds='true'
34281         # FIXME: Should let the user specify the lib program.
34282         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
34283         enable_shared_with_static_runtimes=yes
34284         ;;
34285       esac
34286       ;;
34287
34288     darwin* | rhapsody*)
34289
34290
34291   archive_cmds_need_lc=no
34292   hardcode_direct=no
34293   hardcode_automatic=yes
34294   hardcode_shlibpath_var=unsupported
34295   if test "$lt_cv_ld_force_load" = "yes"; then
34296     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
34297   else
34298     whole_archive_flag_spec=''
34299   fi
34300   link_all_deplibs=yes
34301   allow_undefined_flag="$_lt_dar_allow_undefined"
34302   case $cc_basename in
34303      ifort*) _lt_dar_can_shared=yes ;;
34304      *) _lt_dar_can_shared=$GCC ;;
34305   esac
34306   if test "$_lt_dar_can_shared" = "yes"; then
34307     output_verbose_link_cmd=func_echo_all
34308     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
34309     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
34310     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}"
34311     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}"
34312
34313   else
34314   ld_shlibs=no
34315   fi
34316
34317       ;;
34318
34319     dgux*)
34320       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34321       hardcode_libdir_flag_spec='-L$libdir'
34322       hardcode_shlibpath_var=no
34323       ;;
34324
34325     freebsd1*)
34326       ld_shlibs=no
34327       ;;
34328
34329     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
34330     # support.  Future versions do this automatically, but an explicit c++rt0.o
34331     # does not break anything, and helps significantly (at the cost of a little
34332     # extra space).
34333     freebsd2.2*)
34334       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
34335       hardcode_libdir_flag_spec='-R$libdir'
34336       hardcode_direct=yes
34337       hardcode_shlibpath_var=no
34338       ;;
34339
34340     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
34341     freebsd2*)
34342       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
34343       hardcode_direct=yes
34344       hardcode_minus_L=yes
34345       hardcode_shlibpath_var=no
34346       ;;
34347
34348     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
34349     freebsd* | dragonfly*)
34350       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
34351       hardcode_libdir_flag_spec='-R$libdir'
34352       hardcode_direct=yes
34353       hardcode_shlibpath_var=no
34354       ;;
34355
34356     hpux9*)
34357       if test "$GCC" = yes; then
34358         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
34359       else
34360         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'
34361       fi
34362       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
34363       hardcode_libdir_separator=:
34364       hardcode_direct=yes
34365
34366       # hardcode_minus_L: Not really in the search PATH,
34367       # but as the default location of the library.
34368       hardcode_minus_L=yes
34369       export_dynamic_flag_spec='${wl}-E'
34370       ;;
34371
34372     hpux10*)
34373       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
34374         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
34375       else
34376         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
34377       fi
34378       if test "$with_gnu_ld" = no; then
34379         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
34380         hardcode_libdir_flag_spec_ld='+b $libdir'
34381         hardcode_libdir_separator=:
34382         hardcode_direct=yes
34383         hardcode_direct_absolute=yes
34384         export_dynamic_flag_spec='${wl}-E'
34385         # hardcode_minus_L: Not really in the search PATH,
34386         # but as the default location of the library.
34387         hardcode_minus_L=yes
34388       fi
34389       ;;
34390
34391     hpux11*)
34392       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
34393         case $host_cpu in
34394         hppa*64*)
34395           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
34396           ;;
34397         ia64*)
34398           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
34399           ;;
34400         *)
34401           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
34402           ;;
34403         esac
34404       else
34405         case $host_cpu in
34406         hppa*64*)
34407           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
34408           ;;
34409         ia64*)
34410           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
34411           ;;
34412         *)
34413
34414           # Older versions of the 11.00 compiler do not understand -b yet
34415           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
34416           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
34417 $as_echo_n "checking if $CC understands -b... " >&6; }
34418 if ${lt_cv_prog_compiler__b+:} false; then :
34419   $as_echo_n "(cached) " >&6
34420 else
34421   lt_cv_prog_compiler__b=no
34422    save_LDFLAGS="$LDFLAGS"
34423    LDFLAGS="$LDFLAGS -b"
34424    echo "$lt_simple_link_test_code" > conftest.$ac_ext
34425    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
34426      # The linker can only warn and ignore the option if not recognized
34427      # So say no if there are warnings
34428      if test -s conftest.err; then
34429        # Append any errors to the config.log.
34430        cat conftest.err 1>&5
34431        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
34432        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
34433        if diff conftest.exp conftest.er2 >/dev/null; then
34434          lt_cv_prog_compiler__b=yes
34435        fi
34436      else
34437        lt_cv_prog_compiler__b=yes
34438      fi
34439    fi
34440    $RM -r conftest*
34441    LDFLAGS="$save_LDFLAGS"
34442
34443 fi
34444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
34445 $as_echo "$lt_cv_prog_compiler__b" >&6; }
34446
34447 if test x"$lt_cv_prog_compiler__b" = xyes; then
34448     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
34449 else
34450     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
34451 fi
34452
34453           ;;
34454         esac
34455       fi
34456       if test "$with_gnu_ld" = no; then
34457         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
34458         hardcode_libdir_separator=:
34459
34460         case $host_cpu in
34461         hppa*64*|ia64*)
34462           hardcode_direct=no
34463           hardcode_shlibpath_var=no
34464           ;;
34465         *)
34466           hardcode_direct=yes
34467           hardcode_direct_absolute=yes
34468           export_dynamic_flag_spec='${wl}-E'
34469
34470           # hardcode_minus_L: Not really in the search PATH,
34471           # but as the default location of the library.
34472           hardcode_minus_L=yes
34473           ;;
34474         esac
34475       fi
34476       ;;
34477
34478     irix5* | irix6* | nonstopux*)
34479       if test "$GCC" = yes; then
34480         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
34481         # Try to use the -exported_symbol ld option, if it does not
34482         # work, assume that -exports_file does not work either and
34483         # implicitly export all symbols.
34484         # This should be the same for all languages, so no per-tag cache variable.
34485         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
34486 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
34487 if ${lt_cv_irix_exported_symbol+:} false; then :
34488   $as_echo_n "(cached) " >&6
34489 else
34490   save_LDFLAGS="$LDFLAGS"
34491            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
34492            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34493 /* end confdefs.h.  */
34494 int foo (void) { return 0; }
34495 _ACEOF
34496 if ac_fn_c_try_link "$LINENO"; then :
34497   lt_cv_irix_exported_symbol=yes
34498 else
34499   lt_cv_irix_exported_symbol=no
34500 fi
34501 rm -f core conftest.err conftest.$ac_objext \
34502     conftest$ac_exeext conftest.$ac_ext
34503            LDFLAGS="$save_LDFLAGS"
34504 fi
34505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
34506 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
34507         if test "$lt_cv_irix_exported_symbol" = yes; then
34508           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
34509         fi
34510       else
34511         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
34512         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
34513       fi
34514       archive_cmds_need_lc='no'
34515       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34516       hardcode_libdir_separator=:
34517       inherit_rpath=yes
34518       link_all_deplibs=yes
34519       ;;
34520
34521     netbsd*)
34522       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
34523         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
34524       else
34525         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
34526       fi
34527       hardcode_libdir_flag_spec='-R$libdir'
34528       hardcode_direct=yes
34529       hardcode_shlibpath_var=no
34530       ;;
34531
34532     newsos6)
34533       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34534       hardcode_direct=yes
34535       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34536       hardcode_libdir_separator=:
34537       hardcode_shlibpath_var=no
34538       ;;
34539
34540     *nto* | *qnx*)
34541       ;;
34542
34543     openbsd*)
34544       if test -f /usr/libexec/ld.so; then
34545         hardcode_direct=yes
34546         hardcode_shlibpath_var=no
34547         hardcode_direct_absolute=yes
34548         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
34549           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
34550           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
34551           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
34552           export_dynamic_flag_spec='${wl}-E'
34553         else
34554           case $host_os in
34555            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
34556              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
34557              hardcode_libdir_flag_spec='-R$libdir'
34558              ;;
34559            *)
34560              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
34561              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
34562              ;;
34563           esac
34564         fi
34565       else
34566         ld_shlibs=no
34567       fi
34568       ;;
34569
34570     os2*)
34571       hardcode_libdir_flag_spec='-L$libdir'
34572       hardcode_minus_L=yes
34573       allow_undefined_flag=unsupported
34574       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'
34575       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
34576       ;;
34577
34578     osf3*)
34579       if test "$GCC" = yes; then
34580         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
34581         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
34582       else
34583         allow_undefined_flag=' -expect_unresolved \*'
34584         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
34585       fi
34586       archive_cmds_need_lc='no'
34587       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34588       hardcode_libdir_separator=:
34589       ;;
34590
34591     osf4* | osf5*)      # as osf3* with the addition of -msym flag
34592       if test "$GCC" = yes; then
34593         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
34594         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
34595         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34596       else
34597         allow_undefined_flag=' -expect_unresolved \*'
34598         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
34599         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~
34600         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
34601
34602         # Both c and cxx compiler support -rpath directly
34603         hardcode_libdir_flag_spec='-rpath $libdir'
34604       fi
34605       archive_cmds_need_lc='no'
34606       hardcode_libdir_separator=:
34607       ;;
34608
34609     solaris*)
34610       no_undefined_flag=' -z defs'
34611       if test "$GCC" = yes; then
34612         wlarc='${wl}'
34613         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
34614         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
34615           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
34616       else
34617         case `$CC -V 2>&1` in
34618         *"Compilers 5.0"*)
34619           wlarc=''
34620           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
34621           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
34622           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
34623           ;;
34624         *)
34625           wlarc='${wl}'
34626           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
34627           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
34628           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
34629           ;;
34630         esac
34631       fi
34632       hardcode_libdir_flag_spec='-R$libdir'
34633       hardcode_shlibpath_var=no
34634       case $host_os in
34635       solaris2.[0-5] | solaris2.[0-5].*) ;;
34636       *)
34637         # The compiler driver will combine and reorder linker options,
34638         # but understands `-z linker_flag'.  GCC discards it without `$wl',
34639         # but is careful enough not to reorder.
34640         # Supported since Solaris 2.6 (maybe 2.5.1?)
34641         if test "$GCC" = yes; then
34642           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
34643         else
34644           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
34645         fi
34646         ;;
34647       esac
34648       link_all_deplibs=yes
34649       ;;
34650
34651     sunos4*)
34652       if test "x$host_vendor" = xsequent; then
34653         # Use $CC to link under sequent, because it throws in some extra .o
34654         # files that make .init and .fini sections work.
34655         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
34656       else
34657         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
34658       fi
34659       hardcode_libdir_flag_spec='-L$libdir'
34660       hardcode_direct=yes
34661       hardcode_minus_L=yes
34662       hardcode_shlibpath_var=no
34663       ;;
34664
34665     sysv4)
34666       case $host_vendor in
34667         sni)
34668           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34669           hardcode_direct=yes # is this really true???
34670         ;;
34671         siemens)
34672           ## LD is ld it makes a PLAMLIB
34673           ## CC just makes a GrossModule.
34674           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
34675           reload_cmds='$CC -r -o $output$reload_objs'
34676           hardcode_direct=no
34677         ;;
34678         motorola)
34679           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34680           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
34681         ;;
34682       esac
34683       runpath_var='LD_RUN_PATH'
34684       hardcode_shlibpath_var=no
34685       ;;
34686
34687     sysv4.3*)
34688       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34689       hardcode_shlibpath_var=no
34690       export_dynamic_flag_spec='-Bexport'
34691       ;;
34692
34693     sysv4*MP*)
34694       if test -d /usr/nec; then
34695         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34696         hardcode_shlibpath_var=no
34697         runpath_var=LD_RUN_PATH
34698         hardcode_runpath_var=yes
34699         ld_shlibs=yes
34700       fi
34701       ;;
34702
34703     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
34704       no_undefined_flag='${wl}-z,text'
34705       archive_cmds_need_lc=no
34706       hardcode_shlibpath_var=no
34707       runpath_var='LD_RUN_PATH'
34708
34709       if test "$GCC" = yes; then
34710         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34711         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34712       else
34713         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34714         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34715       fi
34716       ;;
34717
34718     sysv5* | sco3.2v5* | sco5v6*)
34719       # Note: We can NOT use -z defs as we might desire, because we do not
34720       # link with -lc, and that would cause any symbols used from libc to
34721       # always be unresolved, which means just about no library would
34722       # ever link correctly.  If we're not using GNU ld we use -z text
34723       # though, which does catch some bad symbols but isn't as heavy-handed
34724       # as -z defs.
34725       no_undefined_flag='${wl}-z,text'
34726       allow_undefined_flag='${wl}-z,nodefs'
34727       archive_cmds_need_lc=no
34728       hardcode_shlibpath_var=no
34729       hardcode_libdir_flag_spec='${wl}-R,$libdir'
34730       hardcode_libdir_separator=':'
34731       link_all_deplibs=yes
34732       export_dynamic_flag_spec='${wl}-Bexport'
34733       runpath_var='LD_RUN_PATH'
34734
34735       if test "$GCC" = yes; then
34736         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34737         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34738       else
34739         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34740         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34741       fi
34742       ;;
34743
34744     uts4*)
34745       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34746       hardcode_libdir_flag_spec='-L$libdir'
34747       hardcode_shlibpath_var=no
34748       ;;
34749
34750     *)
34751       ld_shlibs=no
34752       ;;
34753     esac
34754
34755     if test x$host_vendor = xsni; then
34756       case $host in
34757       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
34758         export_dynamic_flag_spec='${wl}-Blargedynsym'
34759         ;;
34760       esac
34761     fi
34762   fi
34763
34764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
34765 $as_echo "$ld_shlibs" >&6; }
34766 test "$ld_shlibs" = no && can_build_shared=no
34767
34768 with_gnu_ld=$with_gnu_ld
34769
34770
34771
34772
34773
34774
34775
34776
34777
34778
34779
34780
34781
34782
34783
34784 #
34785 # Do we need to explicitly link libc?
34786 #
34787 case "x$archive_cmds_need_lc" in
34788 x|xyes)
34789   # Assume -lc should be added
34790   archive_cmds_need_lc=yes
34791
34792   if test "$enable_shared" = yes && test "$GCC" = yes; then
34793     case $archive_cmds in
34794     *'~'*)
34795       # FIXME: we may have to deal with multi-command sequences.
34796       ;;
34797     '$CC '*)
34798       # Test whether the compiler implicitly links with -lc since on some
34799       # systems, -lgcc has to come before -lc. If gcc already passes -lc
34800       # to ld, don't add -lc before -lgcc.
34801       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
34802 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
34803 if ${lt_cv_archive_cmds_need_lc+:} false; then :
34804   $as_echo_n "(cached) " >&6
34805 else
34806   $RM conftest*
34807         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
34808
34809         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
34810   (eval $ac_compile) 2>&5
34811   ac_status=$?
34812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34813   test $ac_status = 0; } 2>conftest.err; then
34814           soname=conftest
34815           lib=conftest
34816           libobjs=conftest.$ac_objext
34817           deplibs=
34818           wl=$lt_prog_compiler_wl
34819           pic_flag=$lt_prog_compiler_pic
34820           compiler_flags=-v
34821           linker_flags=-v
34822           verstring=
34823           output_objdir=.
34824           libname=conftest
34825           lt_save_allow_undefined_flag=$allow_undefined_flag
34826           allow_undefined_flag=
34827           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
34828   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
34829   ac_status=$?
34830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34831   test $ac_status = 0; }
34832           then
34833             lt_cv_archive_cmds_need_lc=no
34834           else
34835             lt_cv_archive_cmds_need_lc=yes
34836           fi
34837           allow_undefined_flag=$lt_save_allow_undefined_flag
34838         else
34839           cat conftest.err 1>&5
34840         fi
34841         $RM conftest*
34842
34843 fi
34844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
34845 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
34846       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
34847       ;;
34848     esac
34849   fi
34850   ;;
34851 esac
34852
34853
34854
34855
34856
34857
34858
34859
34860
34861
34862
34863
34864
34865
34866
34867
34868
34869
34870
34871
34872
34873
34874
34875
34876
34877
34878
34879
34880
34881
34882
34883
34884
34885
34886
34887
34888
34889
34890
34891
34892
34893
34894
34895
34896
34897
34898
34899
34900
34901
34902
34903
34904
34905
34906
34907
34908
34909
34910
34911
34912
34913
34914
34915
34916
34917
34918
34919
34920
34921
34922
34923
34924
34925
34926
34927
34928
34929
34930
34931
34932
34933
34934
34935
34936
34937
34938
34939
34940
34941
34942
34943
34944
34945
34946
34947
34948
34949
34950
34951
34952
34953
34954
34955
34956
34957
34958
34959
34960
34961
34962
34963
34964
34965
34966
34967
34968
34969
34970
34971
34972
34973
34974
34975
34976
34977
34978
34979
34980
34981
34982
34983
34984
34985
34986
34987
34988
34989
34990
34991
34992
34993
34994
34995
34996
34997
34998
34999
35000
35001
35002
35003
35004
35005
35006
35007
35008
35009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
35010 $as_echo_n "checking dynamic linker characteristics... " >&6; }
35011
35012 if test "$GCC" = yes; then
35013   case $host_os in
35014     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
35015     *) lt_awk_arg="/^libraries:/" ;;
35016   esac
35017   case $host_os in
35018     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
35019     *) lt_sed_strip_eq="s,=/,/,g" ;;
35020   esac
35021   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
35022   case $lt_search_path_spec in
35023   *\;*)
35024     # if the path contains ";" then we assume it to be the separator
35025     # otherwise default to the standard path separator (i.e. ":") - it is
35026     # assumed that no part of a normal pathname contains ";" but that should
35027     # okay in the real world where ";" in dirpaths is itself problematic.
35028     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
35029     ;;
35030   *)
35031     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
35032     ;;
35033   esac
35034   # Ok, now we have the path, separated by spaces, we can step through it
35035   # and add multilib dir if necessary.
35036   lt_tmp_lt_search_path_spec=
35037   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
35038   for lt_sys_path in $lt_search_path_spec; do
35039     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
35040       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
35041     else
35042       test -d "$lt_sys_path" && \
35043         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
35044     fi
35045   done
35046   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
35047 BEGIN {RS=" "; FS="/|\n";} {
35048   lt_foo="";
35049   lt_count=0;
35050   for (lt_i = NF; lt_i > 0; lt_i--) {
35051     if ($lt_i != "" && $lt_i != ".") {
35052       if ($lt_i == "..") {
35053         lt_count++;
35054       } else {
35055         if (lt_count == 0) {
35056           lt_foo="/" $lt_i lt_foo;
35057         } else {
35058           lt_count--;
35059         }
35060       }
35061     }
35062   }
35063   if (lt_foo != "") { lt_freq[lt_foo]++; }
35064   if (lt_freq[lt_foo] == 1) { print lt_foo; }
35065 }'`
35066   # AWK program above erroneously prepends '/' to C:/dos/paths
35067   # for these hosts.
35068   case $host_os in
35069     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
35070       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
35071   esac
35072   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
35073 else
35074   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
35075 fi
35076 library_names_spec=
35077 libname_spec='lib$name'
35078 soname_spec=
35079 shrext_cmds=".so"
35080 postinstall_cmds=
35081 postuninstall_cmds=
35082 finish_cmds=
35083 finish_eval=
35084 shlibpath_var=
35085 shlibpath_overrides_runpath=unknown
35086 version_type=none
35087 dynamic_linker="$host_os ld.so"
35088 sys_lib_dlsearch_path_spec="/lib /usr/lib"
35089 need_lib_prefix=unknown
35090 hardcode_into_libs=no
35091
35092 # when you set need_version to no, make sure it does not cause -set_version
35093 # flags to be left without arguments
35094 need_version=unknown
35095
35096 case $host_os in
35097 aix3*)
35098   version_type=linux
35099   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
35100   shlibpath_var=LIBPATH
35101
35102   # AIX 3 has no versioning support, so we append a major version to the name.
35103   soname_spec='${libname}${release}${shared_ext}$major'
35104   ;;
35105
35106 aix[4-9]*)
35107   version_type=linux
35108   need_lib_prefix=no
35109   need_version=no
35110   hardcode_into_libs=yes
35111   if test "$host_cpu" = ia64; then
35112     # AIX 5 supports IA64
35113     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
35114     shlibpath_var=LD_LIBRARY_PATH
35115   else
35116     # With GCC up to 2.95.x, collect2 would create an import file
35117     # for dependence libraries.  The import file would start with
35118     # the line `#! .'.  This would cause the generated library to
35119     # depend on `.', always an invalid library.  This was fixed in
35120     # development snapshots of GCC prior to 3.0.
35121     case $host_os in
35122       aix4 | aix4.[01] | aix4.[01].*)
35123       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
35124            echo ' yes '
35125            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
35126         :
35127       else
35128         can_build_shared=no
35129       fi
35130       ;;
35131     esac
35132     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
35133     # soname into executable. Probably we can add versioning support to
35134     # collect2, so additional links can be useful in future.
35135     if test "$aix_use_runtimelinking" = yes; then
35136       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
35137       # instead of lib<name>.a to let people know that these are not
35138       # typical AIX shared libraries.
35139       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35140     else
35141       # We preserve .a as extension for shared libraries through AIX4.2
35142       # and later when we are not doing run time linking.
35143       library_names_spec='${libname}${release}.a $libname.a'
35144       soname_spec='${libname}${release}${shared_ext}$major'
35145     fi
35146     shlibpath_var=LIBPATH
35147   fi
35148   ;;
35149
35150 amigaos*)
35151   case $host_cpu in
35152   powerpc)
35153     # Since July 2007 AmigaOS4 officially supports .so libraries.
35154     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
35155     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35156     ;;
35157   m68k)
35158     library_names_spec='$libname.ixlibrary $libname.a'
35159     # Create ${libname}_ixlibrary.a entries in /sys/libs.
35160     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
35161     ;;
35162   esac
35163   ;;
35164
35165 beos*)
35166   library_names_spec='${libname}${shared_ext}'
35167   dynamic_linker="$host_os ld.so"
35168   shlibpath_var=LIBRARY_PATH
35169   ;;
35170
35171 bsdi[45]*)
35172   version_type=linux
35173   need_version=no
35174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35175   soname_spec='${libname}${release}${shared_ext}$major'
35176   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
35177   shlibpath_var=LD_LIBRARY_PATH
35178   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
35179   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
35180   # the default ld.so.conf also contains /usr/contrib/lib and
35181   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
35182   # libtool to hard-code these into programs
35183   ;;
35184
35185 cygwin* | mingw* | pw32* | cegcc*)
35186   version_type=windows
35187   shrext_cmds=".dll"
35188   need_version=no
35189   need_lib_prefix=no
35190
35191   case $GCC,$cc_basename in
35192   yes,*)
35193     # gcc
35194     library_names_spec='$libname.dll.a'
35195     # DLL is installed to $(libdir)/../bin by postinstall_cmds
35196     postinstall_cmds='base_file=`basename \${file}`~
35197       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
35198       dldir=$destdir/`dirname \$dlpath`~
35199       test -d \$dldir || mkdir -p \$dldir~
35200       $install_prog $dir/$dlname \$dldir/$dlname~
35201       chmod a+x \$dldir/$dlname~
35202       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
35203         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
35204       fi'
35205     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
35206       dlpath=$dir/\$dldll~
35207        $RM \$dlpath'
35208     shlibpath_overrides_runpath=yes
35209
35210     case $host_os in
35211     cygwin*)
35212       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
35213       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35214
35215       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
35216       ;;
35217     mingw* | cegcc*)
35218       # MinGW DLLs use traditional 'lib' prefix
35219       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35220       ;;
35221     pw32*)
35222       # pw32 DLLs use 'pw' prefix rather than 'lib'
35223       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35224       ;;
35225     esac
35226     dynamic_linker='Win32 ld.exe'
35227     ;;
35228
35229   *,cl*)
35230     # Native MSVC
35231     libname_spec='$name'
35232     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35233     library_names_spec='${libname}.dll.lib'
35234
35235     case $build_os in
35236     mingw*)
35237       sys_lib_search_path_spec=
35238       lt_save_ifs=$IFS
35239       IFS=';'
35240       for lt_path in $LIB
35241       do
35242         IFS=$lt_save_ifs
35243         # Let DOS variable expansion print the short 8.3 style file name.
35244         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
35245         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
35246       done
35247       IFS=$lt_save_ifs
35248       # Convert to MSYS style.
35249       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
35250       ;;
35251     cygwin*)
35252       # Convert to unix form, then to dos form, then back to unix form
35253       # but this time dos style (no spaces!) so that the unix form looks
35254       # like /cygdrive/c/PROGRA~1:/cygdr...
35255       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
35256       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
35257       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
35258       ;;
35259     *)
35260       sys_lib_search_path_spec="$LIB"
35261       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
35262         # It is most probably a Windows format PATH.
35263         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
35264       else
35265         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
35266       fi
35267       # FIXME: find the short name or the path components, as spaces are
35268       # common. (e.g. "Program Files" -> "PROGRA~1")
35269       ;;
35270     esac
35271
35272     # DLL is installed to $(libdir)/../bin by postinstall_cmds
35273     postinstall_cmds='base_file=`basename \${file}`~
35274       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
35275       dldir=$destdir/`dirname \$dlpath`~
35276       test -d \$dldir || mkdir -p \$dldir~
35277       $install_prog $dir/$dlname \$dldir/$dlname'
35278     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
35279       dlpath=$dir/\$dldll~
35280        $RM \$dlpath'
35281     shlibpath_overrides_runpath=yes
35282     dynamic_linker='Win32 link.exe'
35283     ;;
35284
35285   *)
35286     # Assume MSVC wrapper
35287     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
35288     dynamic_linker='Win32 ld.exe'
35289     ;;
35290   esac
35291   # FIXME: first we should search . and the directory the executable is in
35292   shlibpath_var=PATH
35293   ;;
35294
35295 darwin* | rhapsody*)
35296   dynamic_linker="$host_os dyld"
35297   version_type=darwin
35298   need_lib_prefix=no
35299   need_version=no
35300   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
35301   soname_spec='${libname}${release}${major}$shared_ext'
35302   shlibpath_overrides_runpath=yes
35303   shlibpath_var=DYLD_LIBRARY_PATH
35304   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
35305
35306   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
35307   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
35308   ;;
35309
35310 dgux*)
35311   version_type=linux
35312   need_lib_prefix=no
35313   need_version=no
35314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
35315   soname_spec='${libname}${release}${shared_ext}$major'
35316   shlibpath_var=LD_LIBRARY_PATH
35317   ;;
35318
35319 freebsd1*)
35320   dynamic_linker=no
35321   ;;
35322
35323 freebsd* | dragonfly*)
35324   # DragonFly does not have aout.  When/if they implement a new
35325   # versioning mechanism, adjust this.
35326   if test -x /usr/bin/objformat; then
35327     objformat=`/usr/bin/objformat`
35328   else
35329     case $host_os in
35330     freebsd[123]*) objformat=aout ;;
35331     *) objformat=elf ;;
35332     esac
35333   fi
35334   version_type=freebsd-$objformat
35335   case $version_type in
35336     freebsd-elf*)
35337       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
35338       need_version=no
35339       need_lib_prefix=no
35340       ;;
35341     freebsd-*)
35342       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
35343       need_version=yes
35344       ;;
35345   esac
35346   shlibpath_var=LD_LIBRARY_PATH
35347   case $host_os in
35348   freebsd2*)
35349     shlibpath_overrides_runpath=yes
35350     ;;
35351   freebsd3.[01]* | freebsdelf3.[01]*)
35352     shlibpath_overrides_runpath=yes
35353     hardcode_into_libs=yes
35354     ;;
35355   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
35356   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
35357     shlibpath_overrides_runpath=no
35358     hardcode_into_libs=yes
35359     ;;
35360   *) # from 4.6 on, and DragonFly
35361     shlibpath_overrides_runpath=yes
35362     hardcode_into_libs=yes
35363     ;;
35364   esac
35365   ;;
35366
35367 gnu*)
35368   version_type=linux
35369   need_lib_prefix=no
35370   need_version=no
35371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
35372   soname_spec='${libname}${release}${shared_ext}$major'
35373   shlibpath_var=LD_LIBRARY_PATH
35374   hardcode_into_libs=yes
35375   ;;
35376
35377 haiku*)
35378   version_type=linux
35379   need_lib_prefix=no
35380   need_version=no
35381   dynamic_linker="$host_os runtime_loader"
35382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
35383   soname_spec='${libname}${release}${shared_ext}$major'
35384   shlibpath_var=LIBRARY_PATH
35385   shlibpath_overrides_runpath=yes
35386   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
35387   hardcode_into_libs=yes
35388   ;;
35389
35390 hpux9* | hpux10* | hpux11*)
35391   # Give a soname corresponding to the major version so that dld.sl refuses to
35392   # link against other versions.
35393   version_type=sunos
35394   need_lib_prefix=no
35395   need_version=no
35396   case $host_cpu in
35397   ia64*)
35398     shrext_cmds='.so'
35399     hardcode_into_libs=yes
35400     dynamic_linker="$host_os dld.so"
35401     shlibpath_var=LD_LIBRARY_PATH
35402     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
35403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35404     soname_spec='${libname}${release}${shared_ext}$major'
35405     if test "X$HPUX_IA64_MODE" = X32; then
35406       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
35407     else
35408       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
35409     fi
35410     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
35411     ;;
35412   hppa*64*)
35413     shrext_cmds='.sl'
35414     hardcode_into_libs=yes
35415     dynamic_linker="$host_os dld.sl"
35416     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
35417     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
35418     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35419     soname_spec='${libname}${release}${shared_ext}$major'
35420     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
35421     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
35422     ;;
35423   *)
35424     shrext_cmds='.sl'
35425     dynamic_linker="$host_os dld.sl"
35426     shlibpath_var=SHLIB_PATH
35427     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
35428     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35429     soname_spec='${libname}${release}${shared_ext}$major'
35430     ;;
35431   esac
35432   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
35433   postinstall_cmds='chmod 555 $lib'
35434   # or fails outright, so override atomically:
35435   install_override_mode=555
35436   ;;
35437
35438 interix[3-9]*)
35439   version_type=linux
35440   need_lib_prefix=no
35441   need_version=no
35442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
35443   soname_spec='${libname}${release}${shared_ext}$major'
35444   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
35445   shlibpath_var=LD_LIBRARY_PATH
35446   shlibpath_overrides_runpath=no
35447   hardcode_into_libs=yes
35448   ;;
35449
35450 irix5* | irix6* | nonstopux*)
35451   case $host_os in
35452     nonstopux*) version_type=nonstopux ;;
35453     *)
35454         if test "$lt_cv_prog_gnu_ld" = yes; then
35455                 version_type=linux
35456         else
35457                 version_type=irix
35458         fi ;;
35459   esac
35460   need_lib_prefix=no
35461   need_version=no
35462   soname_spec='${libname}${release}${shared_ext}$major'
35463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
35464   case $host_os in
35465   irix5* | nonstopux*)
35466     libsuff= shlibsuff=
35467     ;;
35468   *)
35469     case $LD in # libtool.m4 will add one of these switches to LD
35470     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
35471       libsuff= shlibsuff= libmagic=32-bit;;
35472     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
35473       libsuff=32 shlibsuff=N32 libmagic=N32;;
35474     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
35475       libsuff=64 shlibsuff=64 libmagic=64-bit;;
35476     *) libsuff= shlibsuff= libmagic=never-match;;
35477     esac
35478     ;;
35479   esac
35480   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
35481   shlibpath_overrides_runpath=no
35482   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
35483   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
35484   hardcode_into_libs=yes
35485   ;;
35486
35487 # No shared lib support for Linux oldld, aout, or coff.
35488 linux*oldld* | linux*aout* | linux*coff*)
35489   dynamic_linker=no
35490   ;;
35491
35492 # This must be Linux ELF.
35493 linux* | k*bsd*-gnu | kopensolaris*-gnu)
35494   version_type=linux
35495   need_lib_prefix=no
35496   need_version=no
35497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35498   soname_spec='${libname}${release}${shared_ext}$major'
35499   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
35500   shlibpath_var=LD_LIBRARY_PATH
35501   shlibpath_overrides_runpath=no
35502
35503   # Some binutils ld are patched to set DT_RUNPATH
35504   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
35505   $as_echo_n "(cached) " >&6
35506 else
35507   lt_cv_shlibpath_overrides_runpath=no
35508     save_LDFLAGS=$LDFLAGS
35509     save_libdir=$libdir
35510     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
35511          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
35512     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35513 /* end confdefs.h.  */
35514
35515 int
35516 main ()
35517 {
35518
35519   ;
35520   return 0;
35521 }
35522 _ACEOF
35523 if ac_fn_c_try_link "$LINENO"; then :
35524   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
35525   lt_cv_shlibpath_overrides_runpath=yes
35526 fi
35527 fi
35528 rm -f core conftest.err conftest.$ac_objext \
35529     conftest$ac_exeext conftest.$ac_ext
35530     LDFLAGS=$save_LDFLAGS
35531     libdir=$save_libdir
35532
35533 fi
35534
35535   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
35536
35537   # This implies no fast_install, which is unacceptable.
35538   # Some rework will be needed to allow for fast_install
35539   # before this can be enabled.
35540   hardcode_into_libs=yes
35541
35542   # Add ABI-specific directories to the system library path.
35543   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
35544
35545   # Append ld.so.conf contents to the search path
35546   if test -f /etc/ld.so.conf; then
35547     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
35548     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
35549
35550   fi
35551
35552   # We used to test for /lib/ld.so.1 and disable shared libraries on
35553   # powerpc, because MkLinux only supported shared libraries with the
35554   # GNU dynamic linker.  Since this was broken with cross compilers,
35555   # most powerpc-linux boxes support dynamic linking these days and
35556   # people can always --disable-shared, the test was removed, and we
35557   # assume the GNU/Linux dynamic linker is in use.
35558   dynamic_linker='GNU/Linux ld.so'
35559   ;;
35560
35561 netbsd*)
35562   version_type=sunos
35563   need_lib_prefix=no
35564   need_version=no
35565   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
35566     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
35567     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
35568     dynamic_linker='NetBSD (a.out) ld.so'
35569   else
35570     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
35571     soname_spec='${libname}${release}${shared_ext}$major'
35572     dynamic_linker='NetBSD ld.elf_so'
35573   fi
35574   shlibpath_var=LD_LIBRARY_PATH
35575   shlibpath_overrides_runpath=yes
35576   hardcode_into_libs=yes
35577   ;;
35578
35579 newsos6)
35580   version_type=linux
35581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35582   shlibpath_var=LD_LIBRARY_PATH
35583   shlibpath_overrides_runpath=yes
35584   ;;
35585
35586 *nto* | *qnx*)
35587   version_type=qnx
35588   need_lib_prefix=no
35589   need_version=no
35590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35591   soname_spec='${libname}${release}${shared_ext}$major'
35592   shlibpath_var=LD_LIBRARY_PATH
35593   shlibpath_overrides_runpath=no
35594   hardcode_into_libs=yes
35595   dynamic_linker='ldqnx.so'
35596   ;;
35597
35598 openbsd*)
35599   version_type=sunos
35600   sys_lib_dlsearch_path_spec="/usr/lib"
35601   need_lib_prefix=no
35602   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
35603   case $host_os in
35604     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
35605     *)                          need_version=no  ;;
35606   esac
35607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
35608   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
35609   shlibpath_var=LD_LIBRARY_PATH
35610   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
35611     case $host_os in
35612       openbsd2.[89] | openbsd2.[89].*)
35613         shlibpath_overrides_runpath=no
35614         ;;
35615       *)
35616         shlibpath_overrides_runpath=yes
35617         ;;
35618       esac
35619   else
35620     shlibpath_overrides_runpath=yes
35621   fi
35622   ;;
35623
35624 os2*)
35625   libname_spec='$name'
35626   shrext_cmds=".dll"
35627   need_lib_prefix=no
35628   library_names_spec='$libname${shared_ext} $libname.a'
35629   dynamic_linker='OS/2 ld.exe'
35630   shlibpath_var=LIBPATH
35631   ;;
35632
35633 osf3* | osf4* | osf5*)
35634   version_type=osf
35635   need_lib_prefix=no
35636   need_version=no
35637   soname_spec='${libname}${release}${shared_ext}$major'
35638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35639   shlibpath_var=LD_LIBRARY_PATH
35640   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
35641   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
35642   ;;
35643
35644 rdos*)
35645   dynamic_linker=no
35646   ;;
35647
35648 solaris*)
35649   version_type=linux
35650   need_lib_prefix=no
35651   need_version=no
35652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35653   soname_spec='${libname}${release}${shared_ext}$major'
35654   shlibpath_var=LD_LIBRARY_PATH
35655   shlibpath_overrides_runpath=yes
35656   hardcode_into_libs=yes
35657   # ldd complains unless libraries are executable
35658   postinstall_cmds='chmod +x $lib'
35659   ;;
35660
35661 sunos4*)
35662   version_type=sunos
35663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
35664   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
35665   shlibpath_var=LD_LIBRARY_PATH
35666   shlibpath_overrides_runpath=yes
35667   if test "$with_gnu_ld" = yes; then
35668     need_lib_prefix=no
35669   fi
35670   need_version=yes
35671   ;;
35672
35673 sysv4 | sysv4.3*)
35674   version_type=linux
35675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35676   soname_spec='${libname}${release}${shared_ext}$major'
35677   shlibpath_var=LD_LIBRARY_PATH
35678   case $host_vendor in
35679     sni)
35680       shlibpath_overrides_runpath=no
35681       need_lib_prefix=no
35682       runpath_var=LD_RUN_PATH
35683       ;;
35684     siemens)
35685       need_lib_prefix=no
35686       ;;
35687     motorola)
35688       need_lib_prefix=no
35689       need_version=no
35690       shlibpath_overrides_runpath=no
35691       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
35692       ;;
35693   esac
35694   ;;
35695
35696 sysv4*MP*)
35697   if test -d /usr/nec ;then
35698     version_type=linux
35699     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
35700     soname_spec='$libname${shared_ext}.$major'
35701     shlibpath_var=LD_LIBRARY_PATH
35702   fi
35703   ;;
35704
35705 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
35706   version_type=freebsd-elf
35707   need_lib_prefix=no
35708   need_version=no
35709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
35710   soname_spec='${libname}${release}${shared_ext}$major'
35711   shlibpath_var=LD_LIBRARY_PATH
35712   shlibpath_overrides_runpath=yes
35713   hardcode_into_libs=yes
35714   if test "$with_gnu_ld" = yes; then
35715     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
35716   else
35717     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
35718     case $host_os in
35719       sco3.2v5*)
35720         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
35721         ;;
35722     esac
35723   fi
35724   sys_lib_dlsearch_path_spec='/usr/lib'
35725   ;;
35726
35727 tpf*)
35728   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
35729   version_type=linux
35730   need_lib_prefix=no
35731   need_version=no
35732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35733   shlibpath_var=LD_LIBRARY_PATH
35734   shlibpath_overrides_runpath=no
35735   hardcode_into_libs=yes
35736   ;;
35737
35738 uts4*)
35739   version_type=linux
35740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35741   soname_spec='${libname}${release}${shared_ext}$major'
35742   shlibpath_var=LD_LIBRARY_PATH
35743   ;;
35744
35745 *)
35746   dynamic_linker=no
35747   ;;
35748 esac
35749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
35750 $as_echo "$dynamic_linker" >&6; }
35751 test "$dynamic_linker" = no && can_build_shared=no
35752
35753 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
35754 if test "$GCC" = yes; then
35755   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
35756 fi
35757
35758 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
35759   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
35760 fi
35761 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
35762   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
35763 fi
35764
35765
35766
35767
35768
35769
35770
35771
35772
35773
35774
35775
35776
35777
35778
35779
35780
35781
35782
35783
35784
35785
35786
35787
35788
35789
35790
35791
35792
35793
35794
35795
35796
35797
35798
35799
35800
35801
35802
35803
35804
35805
35806
35807
35808
35809
35810
35811
35812
35813
35814
35815
35816
35817
35818
35819
35820
35821
35822
35823
35824
35825
35826
35827
35828
35829
35830
35831
35832
35833
35834
35835
35836
35837
35838
35839
35840
35841
35842
35843
35844
35845
35846
35847
35848
35849
35850
35851
35852
35853
35854
35855
35856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
35857 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
35858 hardcode_action=
35859 if test -n "$hardcode_libdir_flag_spec" ||
35860    test -n "$runpath_var" ||
35861    test "X$hardcode_automatic" = "Xyes" ; then
35862
35863   # We can hardcode non-existent directories.
35864   if test "$hardcode_direct" != no &&
35865      # If the only mechanism to avoid hardcoding is shlibpath_var, we
35866      # have to relink, otherwise we might link with an installed library
35867      # when we should be linking with a yet-to-be-installed one
35868      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
35869      test "$hardcode_minus_L" != no; then
35870     # Linking always hardcodes the temporary library directory.
35871     hardcode_action=relink
35872   else
35873     # We can link without hardcoding, and we can hardcode nonexisting dirs.
35874     hardcode_action=immediate
35875   fi
35876 else
35877   # We cannot hardcode anything, or else we can only hardcode existing
35878   # directories.
35879   hardcode_action=unsupported
35880 fi
35881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
35882 $as_echo "$hardcode_action" >&6; }
35883
35884 if test "$hardcode_action" = relink ||
35885    test "$inherit_rpath" = yes; then
35886   # Fast installation is not supported
35887   enable_fast_install=no
35888 elif test "$shlibpath_overrides_runpath" = yes ||
35889      test "$enable_shared" = no; then
35890   # Fast installation is not necessary
35891   enable_fast_install=needless
35892 fi
35893
35894
35895
35896
35897
35898
35899   if test "x$enable_dlopen" != xyes; then
35900   enable_dlopen=unknown
35901   enable_dlopen_self=unknown
35902   enable_dlopen_self_static=unknown
35903 else
35904   lt_cv_dlopen=no
35905   lt_cv_dlopen_libs=
35906
35907   case $host_os in
35908   beos*)
35909     lt_cv_dlopen="load_add_on"
35910     lt_cv_dlopen_libs=
35911     lt_cv_dlopen_self=yes
35912     ;;
35913
35914   mingw* | pw32* | cegcc*)
35915     lt_cv_dlopen="LoadLibrary"
35916     lt_cv_dlopen_libs=
35917     ;;
35918
35919   cygwin*)
35920     lt_cv_dlopen="dlopen"
35921     lt_cv_dlopen_libs=
35922     ;;
35923
35924   darwin*)
35925   # if libdl is installed we need to link against it
35926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
35927 $as_echo_n "checking for dlopen in -ldl... " >&6; }
35928 if ${ac_cv_lib_dl_dlopen+:} false; then :
35929   $as_echo_n "(cached) " >&6
35930 else
35931   ac_check_lib_save_LIBS=$LIBS
35932 LIBS="-ldl  $LIBS"
35933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35934 /* end confdefs.h.  */
35935
35936 /* Override any GCC internal prototype to avoid an error.
35937    Use char because int might match the return type of a GCC
35938    builtin and then its argument prototype would still apply.  */
35939 #ifdef __cplusplus
35940 extern "C"
35941 #endif
35942 char dlopen ();
35943 int
35944 main ()
35945 {
35946 return dlopen ();
35947   ;
35948   return 0;
35949 }
35950 _ACEOF
35951 if ac_fn_c_try_link "$LINENO"; then :
35952   ac_cv_lib_dl_dlopen=yes
35953 else
35954   ac_cv_lib_dl_dlopen=no
35955 fi
35956 rm -f core conftest.err conftest.$ac_objext \
35957     conftest$ac_exeext conftest.$ac_ext
35958 LIBS=$ac_check_lib_save_LIBS
35959 fi
35960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
35961 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
35962 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
35963   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
35964 else
35965
35966     lt_cv_dlopen="dyld"
35967     lt_cv_dlopen_libs=
35968     lt_cv_dlopen_self=yes
35969
35970 fi
35971
35972     ;;
35973
35974   *)
35975     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
35976 if test "x$ac_cv_func_shl_load" = xyes; then :
35977   lt_cv_dlopen="shl_load"
35978 else
35979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
35980 $as_echo_n "checking for shl_load in -ldld... " >&6; }
35981 if ${ac_cv_lib_dld_shl_load+:} false; then :
35982   $as_echo_n "(cached) " >&6
35983 else
35984   ac_check_lib_save_LIBS=$LIBS
35985 LIBS="-ldld  $LIBS"
35986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35987 /* end confdefs.h.  */
35988
35989 /* Override any GCC internal prototype to avoid an error.
35990    Use char because int might match the return type of a GCC
35991    builtin and then its argument prototype would still apply.  */
35992 #ifdef __cplusplus
35993 extern "C"
35994 #endif
35995 char shl_load ();
35996 int
35997 main ()
35998 {
35999 return shl_load ();
36000   ;
36001   return 0;
36002 }
36003 _ACEOF
36004 if ac_fn_c_try_link "$LINENO"; then :
36005   ac_cv_lib_dld_shl_load=yes
36006 else
36007   ac_cv_lib_dld_shl_load=no
36008 fi
36009 rm -f core conftest.err conftest.$ac_objext \
36010     conftest$ac_exeext conftest.$ac_ext
36011 LIBS=$ac_check_lib_save_LIBS
36012 fi
36013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
36014 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
36015 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
36016   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
36017 else
36018   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
36019 if test "x$ac_cv_func_dlopen" = xyes; then :
36020   lt_cv_dlopen="dlopen"
36021 else
36022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
36023 $as_echo_n "checking for dlopen in -ldl... " >&6; }
36024 if ${ac_cv_lib_dl_dlopen+:} false; then :
36025   $as_echo_n "(cached) " >&6
36026 else
36027   ac_check_lib_save_LIBS=$LIBS
36028 LIBS="-ldl  $LIBS"
36029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36030 /* end confdefs.h.  */
36031
36032 /* Override any GCC internal prototype to avoid an error.
36033    Use char because int might match the return type of a GCC
36034    builtin and then its argument prototype would still apply.  */
36035 #ifdef __cplusplus
36036 extern "C"
36037 #endif
36038 char dlopen ();
36039 int
36040 main ()
36041 {
36042 return dlopen ();
36043   ;
36044   return 0;
36045 }
36046 _ACEOF
36047 if ac_fn_c_try_link "$LINENO"; then :
36048   ac_cv_lib_dl_dlopen=yes
36049 else
36050   ac_cv_lib_dl_dlopen=no
36051 fi
36052 rm -f core conftest.err conftest.$ac_objext \
36053     conftest$ac_exeext conftest.$ac_ext
36054 LIBS=$ac_check_lib_save_LIBS
36055 fi
36056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
36057 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
36058 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
36059   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
36060 else
36061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
36062 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
36063 if ${ac_cv_lib_svld_dlopen+:} false; then :
36064   $as_echo_n "(cached) " >&6
36065 else
36066   ac_check_lib_save_LIBS=$LIBS
36067 LIBS="-lsvld  $LIBS"
36068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36069 /* end confdefs.h.  */
36070
36071 /* Override any GCC internal prototype to avoid an error.
36072    Use char because int might match the return type of a GCC
36073    builtin and then its argument prototype would still apply.  */
36074 #ifdef __cplusplus
36075 extern "C"
36076 #endif
36077 char dlopen ();
36078 int
36079 main ()
36080 {
36081 return dlopen ();
36082   ;
36083   return 0;
36084 }
36085 _ACEOF
36086 if ac_fn_c_try_link "$LINENO"; then :
36087   ac_cv_lib_svld_dlopen=yes
36088 else
36089   ac_cv_lib_svld_dlopen=no
36090 fi
36091 rm -f core conftest.err conftest.$ac_objext \
36092     conftest$ac_exeext conftest.$ac_ext
36093 LIBS=$ac_check_lib_save_LIBS
36094 fi
36095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
36096 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
36097 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
36098   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
36099 else
36100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
36101 $as_echo_n "checking for dld_link in -ldld... " >&6; }
36102 if ${ac_cv_lib_dld_dld_link+:} false; then :
36103   $as_echo_n "(cached) " >&6
36104 else
36105   ac_check_lib_save_LIBS=$LIBS
36106 LIBS="-ldld  $LIBS"
36107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36108 /* end confdefs.h.  */
36109
36110 /* Override any GCC internal prototype to avoid an error.
36111    Use char because int might match the return type of a GCC
36112    builtin and then its argument prototype would still apply.  */
36113 #ifdef __cplusplus
36114 extern "C"
36115 #endif
36116 char dld_link ();
36117 int
36118 main ()
36119 {
36120 return dld_link ();
36121   ;
36122   return 0;
36123 }
36124 _ACEOF
36125 if ac_fn_c_try_link "$LINENO"; then :
36126   ac_cv_lib_dld_dld_link=yes
36127 else
36128   ac_cv_lib_dld_dld_link=no
36129 fi
36130 rm -f core conftest.err conftest.$ac_objext \
36131     conftest$ac_exeext conftest.$ac_ext
36132 LIBS=$ac_check_lib_save_LIBS
36133 fi
36134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
36135 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
36136 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
36137   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
36138 fi
36139
36140
36141 fi
36142
36143
36144 fi
36145
36146
36147 fi
36148
36149
36150 fi
36151
36152
36153 fi
36154
36155     ;;
36156   esac
36157
36158   if test "x$lt_cv_dlopen" != xno; then
36159     enable_dlopen=yes
36160   else
36161     enable_dlopen=no
36162   fi
36163
36164   case $lt_cv_dlopen in
36165   dlopen)
36166     save_CPPFLAGS="$CPPFLAGS"
36167     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
36168
36169     save_LDFLAGS="$LDFLAGS"
36170     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
36171
36172     save_LIBS="$LIBS"
36173     LIBS="$lt_cv_dlopen_libs $LIBS"
36174
36175     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
36176 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
36177 if ${lt_cv_dlopen_self+:} false; then :
36178   $as_echo_n "(cached) " >&6
36179 else
36180           if test "$cross_compiling" = yes; then :
36181   lt_cv_dlopen_self=cross
36182 else
36183   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
36184   lt_status=$lt_dlunknown
36185   cat > conftest.$ac_ext <<_LT_EOF
36186 #line $LINENO "configure"
36187 #include "confdefs.h"
36188
36189 #if HAVE_DLFCN_H
36190 #include <dlfcn.h>
36191 #endif
36192
36193 #include <stdio.h>
36194
36195 #ifdef RTLD_GLOBAL
36196 #  define LT_DLGLOBAL           RTLD_GLOBAL
36197 #else
36198 #  ifdef DL_GLOBAL
36199 #    define LT_DLGLOBAL         DL_GLOBAL
36200 #  else
36201 #    define LT_DLGLOBAL         0
36202 #  endif
36203 #endif
36204
36205 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
36206    find out it does not work in some platform. */
36207 #ifndef LT_DLLAZY_OR_NOW
36208 #  ifdef RTLD_LAZY
36209 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
36210 #  else
36211 #    ifdef DL_LAZY
36212 #      define LT_DLLAZY_OR_NOW          DL_LAZY
36213 #    else
36214 #      ifdef RTLD_NOW
36215 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
36216 #      else
36217 #        ifdef DL_NOW
36218 #          define LT_DLLAZY_OR_NOW      DL_NOW
36219 #        else
36220 #          define LT_DLLAZY_OR_NOW      0
36221 #        endif
36222 #      endif
36223 #    endif
36224 #  endif
36225 #endif
36226
36227 /* When -fvisbility=hidden is used, assume the code has been annotated
36228    correspondingly for the symbols needed.  */
36229 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
36230 int fnord () __attribute__((visibility("default")));
36231 #endif
36232
36233 int fnord () { return 42; }
36234 int main ()
36235 {
36236   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
36237   int status = $lt_dlunknown;
36238
36239   if (self)
36240     {
36241       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
36242       else
36243         {
36244           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
36245           else puts (dlerror ());
36246         }
36247       /* dlclose (self); */
36248     }
36249   else
36250     puts (dlerror ());
36251
36252   return status;
36253 }
36254 _LT_EOF
36255   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
36256   (eval $ac_link) 2>&5
36257   ac_status=$?
36258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36259   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
36260     (./conftest; exit; ) >&5 2>/dev/null
36261     lt_status=$?
36262     case x$lt_status in
36263       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
36264       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
36265       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
36266     esac
36267   else :
36268     # compilation failed
36269     lt_cv_dlopen_self=no
36270   fi
36271 fi
36272 rm -fr conftest*
36273
36274
36275 fi
36276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
36277 $as_echo "$lt_cv_dlopen_self" >&6; }
36278
36279     if test "x$lt_cv_dlopen_self" = xyes; then
36280       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
36281       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
36282 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
36283 if ${lt_cv_dlopen_self_static+:} false; then :
36284   $as_echo_n "(cached) " >&6
36285 else
36286           if test "$cross_compiling" = yes; then :
36287   lt_cv_dlopen_self_static=cross
36288 else
36289   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
36290   lt_status=$lt_dlunknown
36291   cat > conftest.$ac_ext <<_LT_EOF
36292 #line $LINENO "configure"
36293 #include "confdefs.h"
36294
36295 #if HAVE_DLFCN_H
36296 #include <dlfcn.h>
36297 #endif
36298
36299 #include <stdio.h>
36300
36301 #ifdef RTLD_GLOBAL
36302 #  define LT_DLGLOBAL           RTLD_GLOBAL
36303 #else
36304 #  ifdef DL_GLOBAL
36305 #    define LT_DLGLOBAL         DL_GLOBAL
36306 #  else
36307 #    define LT_DLGLOBAL         0
36308 #  endif
36309 #endif
36310
36311 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
36312    find out it does not work in some platform. */
36313 #ifndef LT_DLLAZY_OR_NOW
36314 #  ifdef RTLD_LAZY
36315 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
36316 #  else
36317 #    ifdef DL_LAZY
36318 #      define LT_DLLAZY_OR_NOW          DL_LAZY
36319 #    else
36320 #      ifdef RTLD_NOW
36321 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
36322 #      else
36323 #        ifdef DL_NOW
36324 #          define LT_DLLAZY_OR_NOW      DL_NOW
36325 #        else
36326 #          define LT_DLLAZY_OR_NOW      0
36327 #        endif
36328 #      endif
36329 #    endif
36330 #  endif
36331 #endif
36332
36333 /* When -fvisbility=hidden is used, assume the code has been annotated
36334    correspondingly for the symbols needed.  */
36335 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
36336 int fnord () __attribute__((visibility("default")));
36337 #endif
36338
36339 int fnord () { return 42; }
36340 int main ()
36341 {
36342   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
36343   int status = $lt_dlunknown;
36344
36345   if (self)
36346     {
36347       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
36348       else
36349         {
36350           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
36351           else puts (dlerror ());
36352         }
36353       /* dlclose (self); */
36354     }
36355   else
36356     puts (dlerror ());
36357
36358   return status;
36359 }
36360 _LT_EOF
36361   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
36362   (eval $ac_link) 2>&5
36363   ac_status=$?
36364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36365   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
36366     (./conftest; exit; ) >&5 2>/dev/null
36367     lt_status=$?
36368     case x$lt_status in
36369       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
36370       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
36371       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
36372     esac
36373   else :
36374     # compilation failed
36375     lt_cv_dlopen_self_static=no
36376   fi
36377 fi
36378 rm -fr conftest*
36379
36380
36381 fi
36382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
36383 $as_echo "$lt_cv_dlopen_self_static" >&6; }
36384     fi
36385
36386     CPPFLAGS="$save_CPPFLAGS"
36387     LDFLAGS="$save_LDFLAGS"
36388     LIBS="$save_LIBS"
36389     ;;
36390   esac
36391
36392   case $lt_cv_dlopen_self in
36393   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
36394   *) enable_dlopen_self=unknown ;;
36395   esac
36396
36397   case $lt_cv_dlopen_self_static in
36398   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
36399   *) enable_dlopen_self_static=unknown ;;
36400   esac
36401 fi
36402
36403
36404
36405
36406
36407
36408
36409
36410
36411
36412
36413
36414
36415
36416
36417
36418
36419 striplib=
36420 old_striplib=
36421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
36422 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
36423 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
36424   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
36425   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
36426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36427 $as_echo "yes" >&6; }
36428 else
36429 # FIXME - insert some real tests, host_os isn't really good enough
36430   case $host_os in
36431   darwin*)
36432     if test -n "$STRIP" ; then
36433       striplib="$STRIP -x"
36434       old_striplib="$STRIP -S"
36435       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36436 $as_echo "yes" >&6; }
36437     else
36438       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36439 $as_echo "no" >&6; }
36440     fi
36441     ;;
36442   *)
36443     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36444 $as_echo "no" >&6; }
36445     ;;
36446   esac
36447 fi
36448
36449
36450
36451
36452
36453
36454
36455
36456
36457
36458
36459
36460   # Report which library types will actually be built
36461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
36462 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
36463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
36464 $as_echo "$can_build_shared" >&6; }
36465
36466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
36467 $as_echo_n "checking whether to build shared libraries... " >&6; }
36468   test "$can_build_shared" = "no" && enable_shared=no
36469
36470   # On AIX, shared libraries and static libraries use the same namespace, and
36471   # are all built from PIC.
36472   case $host_os in
36473   aix3*)
36474     test "$enable_shared" = yes && enable_static=no
36475     if test -n "$RANLIB"; then
36476       archive_cmds="$archive_cmds~\$RANLIB \$lib"
36477       postinstall_cmds='$RANLIB $lib'
36478     fi
36479     ;;
36480
36481   aix[4-9]*)
36482     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
36483       test "$enable_shared" = yes && enable_static=no
36484     fi
36485     ;;
36486   esac
36487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
36488 $as_echo "$enable_shared" >&6; }
36489
36490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
36491 $as_echo_n "checking whether to build static libraries... " >&6; }
36492   # Make sure either enable_shared or enable_static is yes.
36493   test "$enable_shared" = yes || enable_static=yes
36494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
36495 $as_echo "$enable_static" >&6; }
36496
36497
36498
36499
36500 fi
36501 ac_ext=c
36502 ac_cpp='$CPP $CPPFLAGS'
36503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36506
36507 CC="$lt_save_CC"
36508
36509
36510
36511
36512
36513
36514
36515
36516
36517
36518
36519
36520
36521         ac_config_commands="$ac_config_commands libtool"
36522
36523
36524
36525
36526 # Only expand once:
36527
36528
36529
36530
36531     # Check whether --enable-static-binary was given.
36532 if test "${enable_static_binary+set}" = set; then :
36533   enableval=$enable_static_binary;
36534             case "$enableval" in
36535             "" | y | ye | yes)
36536                 AMANDA_STATIC_LDFLAGS=-static
36537                 if test x"$enable_static" = x"no"; then
36538                         as_fn_error $? "*** --enable-static-binary is incompatible with --disable-static" "$LINENO" 5
36539                 fi
36540                 ;;
36541             *n | no)
36542                 AMANDA_STATIC_LDFLAGS=
36543                 ;;
36544             esac
36545
36546 fi
36547
36548
36549
36550
36551 #
36552 # headers
36553 #
36554 ac_header_dirent=no
36555 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
36556   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
36557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
36558 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
36559 if eval \${$as_ac_Header+:} false; then :
36560   $as_echo_n "(cached) " >&6
36561 else
36562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36563 /* end confdefs.h.  */
36564 #include <sys/types.h>
36565 #include <$ac_hdr>
36566
36567 int
36568 main ()
36569 {
36570 if ((DIR *) 0)
36571 return 0;
36572   ;
36573   return 0;
36574 }
36575 _ACEOF
36576 if ac_fn_c_try_compile "$LINENO"; then :
36577   eval "$as_ac_Header=yes"
36578 else
36579   eval "$as_ac_Header=no"
36580 fi
36581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36582 fi
36583 eval ac_res=\$$as_ac_Header
36584                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36585 $as_echo "$ac_res" >&6; }
36586 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36587   cat >>confdefs.h <<_ACEOF
36588 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
36589 _ACEOF
36590
36591 ac_header_dirent=$ac_hdr; break
36592 fi
36593
36594 done
36595 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
36596 if test $ac_header_dirent = dirent.h; then
36597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
36598 $as_echo_n "checking for library containing opendir... " >&6; }
36599 if ${ac_cv_search_opendir+:} false; then :
36600   $as_echo_n "(cached) " >&6
36601 else
36602   ac_func_search_save_LIBS=$LIBS
36603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36604 /* end confdefs.h.  */
36605
36606 /* Override any GCC internal prototype to avoid an error.
36607    Use char because int might match the return type of a GCC
36608    builtin and then its argument prototype would still apply.  */
36609 #ifdef __cplusplus
36610 extern "C"
36611 #endif
36612 char opendir ();
36613 int
36614 main ()
36615 {
36616 return opendir ();
36617   ;
36618   return 0;
36619 }
36620 _ACEOF
36621 for ac_lib in '' dir; do
36622   if test -z "$ac_lib"; then
36623     ac_res="none required"
36624   else
36625     ac_res=-l$ac_lib
36626     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36627   fi
36628   if ac_fn_c_try_link "$LINENO"; then :
36629   ac_cv_search_opendir=$ac_res
36630 fi
36631 rm -f core conftest.err conftest.$ac_objext \
36632     conftest$ac_exeext
36633   if ${ac_cv_search_opendir+:} false; then :
36634   break
36635 fi
36636 done
36637 if ${ac_cv_search_opendir+:} false; then :
36638
36639 else
36640   ac_cv_search_opendir=no
36641 fi
36642 rm conftest.$ac_ext
36643 LIBS=$ac_func_search_save_LIBS
36644 fi
36645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
36646 $as_echo "$ac_cv_search_opendir" >&6; }
36647 ac_res=$ac_cv_search_opendir
36648 if test "$ac_res" != no; then :
36649   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36650
36651 fi
36652
36653 else
36654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
36655 $as_echo_n "checking for library containing opendir... " >&6; }
36656 if ${ac_cv_search_opendir+:} false; then :
36657   $as_echo_n "(cached) " >&6
36658 else
36659   ac_func_search_save_LIBS=$LIBS
36660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36661 /* end confdefs.h.  */
36662
36663 /* Override any GCC internal prototype to avoid an error.
36664    Use char because int might match the return type of a GCC
36665    builtin and then its argument prototype would still apply.  */
36666 #ifdef __cplusplus
36667 extern "C"
36668 #endif
36669 char opendir ();
36670 int
36671 main ()
36672 {
36673 return opendir ();
36674   ;
36675   return 0;
36676 }
36677 _ACEOF
36678 for ac_lib in '' x; do
36679   if test -z "$ac_lib"; then
36680     ac_res="none required"
36681   else
36682     ac_res=-l$ac_lib
36683     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36684   fi
36685   if ac_fn_c_try_link "$LINENO"; then :
36686   ac_cv_search_opendir=$ac_res
36687 fi
36688 rm -f core conftest.err conftest.$ac_objext \
36689     conftest$ac_exeext
36690   if ${ac_cv_search_opendir+:} false; then :
36691   break
36692 fi
36693 done
36694 if ${ac_cv_search_opendir+:} false; then :
36695
36696 else
36697   ac_cv_search_opendir=no
36698 fi
36699 rm conftest.$ac_ext
36700 LIBS=$ac_func_search_save_LIBS
36701 fi
36702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
36703 $as_echo "$ac_cv_search_opendir" >&6; }
36704 ac_res=$ac_cv_search_opendir
36705 if test "$ac_res" != no; then :
36706   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36707
36708 fi
36709
36710 fi
36711
36712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
36713 $as_echo_n "checking for ANSI C header files... " >&6; }
36714 if ${ac_cv_header_stdc+:} false; then :
36715   $as_echo_n "(cached) " >&6
36716 else
36717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36718 /* end confdefs.h.  */
36719 #include <stdlib.h>
36720 #include <stdarg.h>
36721 #include <string.h>
36722 #include <float.h>
36723
36724 int
36725 main ()
36726 {
36727
36728   ;
36729   return 0;
36730 }
36731 _ACEOF
36732 if ac_fn_c_try_compile "$LINENO"; then :
36733   ac_cv_header_stdc=yes
36734 else
36735   ac_cv_header_stdc=no
36736 fi
36737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36738
36739 if test $ac_cv_header_stdc = yes; then
36740   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
36741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36742 /* end confdefs.h.  */
36743 #include <string.h>
36744
36745 _ACEOF
36746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36747   $EGREP "memchr" >/dev/null 2>&1; then :
36748
36749 else
36750   ac_cv_header_stdc=no
36751 fi
36752 rm -f conftest*
36753
36754 fi
36755
36756 if test $ac_cv_header_stdc = yes; then
36757   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
36758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36759 /* end confdefs.h.  */
36760 #include <stdlib.h>
36761
36762 _ACEOF
36763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36764   $EGREP "free" >/dev/null 2>&1; then :
36765
36766 else
36767   ac_cv_header_stdc=no
36768 fi
36769 rm -f conftest*
36770
36771 fi
36772
36773 if test $ac_cv_header_stdc = yes; then
36774   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
36775   if test "$cross_compiling" = yes; then :
36776   :
36777 else
36778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36779 /* end confdefs.h.  */
36780 #include <ctype.h>
36781 #include <stdlib.h>
36782 #if ((' ' & 0x0FF) == 0x020)
36783 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
36784 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
36785 #else
36786 # define ISLOWER(c) \
36787                    (('a' <= (c) && (c) <= 'i') \
36788                      || ('j' <= (c) && (c) <= 'r') \
36789                      || ('s' <= (c) && (c) <= 'z'))
36790 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
36791 #endif
36792
36793 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
36794 int
36795 main ()
36796 {
36797   int i;
36798   for (i = 0; i < 256; i++)
36799     if (XOR (islower (i), ISLOWER (i))
36800         || toupper (i) != TOUPPER (i))
36801       return 2;
36802   return 0;
36803 }
36804 _ACEOF
36805 if ac_fn_c_try_run "$LINENO"; then :
36806
36807 else
36808   ac_cv_header_stdc=no
36809 fi
36810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36811   conftest.$ac_objext conftest.beam conftest.$ac_ext
36812 fi
36813
36814 fi
36815 fi
36816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
36817 $as_echo "$ac_cv_header_stdc" >&6; }
36818 if test $ac_cv_header_stdc = yes; then
36819
36820 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
36821
36822 fi
36823
36824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
36825 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
36826 if ${ac_cv_header_time+:} false; then :
36827   $as_echo_n "(cached) " >&6
36828 else
36829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36830 /* end confdefs.h.  */
36831 #include <sys/types.h>
36832 #include <sys/time.h>
36833 #include <time.h>
36834
36835 int
36836 main ()
36837 {
36838 if ((struct tm *) 0)
36839 return 0;
36840   ;
36841   return 0;
36842 }
36843 _ACEOF
36844 if ac_fn_c_try_compile "$LINENO"; then :
36845   ac_cv_header_time=yes
36846 else
36847   ac_cv_header_time=no
36848 fi
36849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36850 fi
36851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
36852 $as_echo "$ac_cv_header_time" >&6; }
36853 if test $ac_cv_header_time = yes; then
36854
36855 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
36856
36857 fi
36858
36859 for ac_header in grp.h \
36860         libc.h \
36861         libgen.h \
36862         limits.h \
36863         math.h \
36864         netinet/in.h \
36865         regex.h \
36866         stdarg.h \
36867         stdlib.h \
36868         strings.h \
36869         rpc/rpc.h \
36870         sys/file.h \
36871         sys/ioctl.h \
36872         sys/ipc.h \
36873         sys/mntent.h \
36874         sys/param.h \
36875         sys/select.h \
36876         sys/stat.h \
36877         sys/shm.h \
36878         sys/time.h \
36879         sys/types.h \
36880         sys/uio.h \
36881         syslog.h \
36882         time.h \
36883         unistd.h \
36884
36885 do :
36886   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36887 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
36888 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36889   cat >>confdefs.h <<_ACEOF
36890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36891 _ACEOF
36892
36893 fi
36894
36895 done
36896
36897
36898 $as_echo "#define HAVE_AMANDA_H 1" >>confdefs.h
36899
36900
36901 $as_echo "#define HAVE_UTIL_H 1" >>confdefs.h
36902
36903
36904
36905 $as_echo "#define USE_GETTEXT 1" >>confdefs.h
36906
36907
36908 #
36909 # Types
36910 #
36911 # The cast to long int works around a bug in the HP C Compiler
36912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36914 # This bug is HP SR number 8606223364.
36915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
36916 $as_echo_n "checking size of int... " >&6; }
36917 if ${ac_cv_sizeof_int+:} false; then :
36918   $as_echo_n "(cached) " >&6
36919 else
36920   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
36921
36922 else
36923   if test "$ac_cv_type_int" = yes; then
36924      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36926 as_fn_error 77 "cannot compute sizeof (int)
36927 See \`config.log' for more details" "$LINENO" 5; }
36928    else
36929      ac_cv_sizeof_int=0
36930    fi
36931 fi
36932
36933 fi
36934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
36935 $as_echo "$ac_cv_sizeof_int" >&6; }
36936
36937
36938
36939 cat >>confdefs.h <<_ACEOF
36940 #define SIZEOF_INT $ac_cv_sizeof_int
36941 _ACEOF
36942
36943
36944 # The cast to long int works around a bug in the HP C Compiler
36945 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36946 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36947 # This bug is HP SR number 8606223364.
36948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
36949 $as_echo_n "checking size of long... " >&6; }
36950 if ${ac_cv_sizeof_long+:} false; then :
36951   $as_echo_n "(cached) " >&6
36952 else
36953   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
36954
36955 else
36956   if test "$ac_cv_type_long" = yes; then
36957      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36959 as_fn_error 77 "cannot compute sizeof (long)
36960 See \`config.log' for more details" "$LINENO" 5; }
36961    else
36962      ac_cv_sizeof_long=0
36963    fi
36964 fi
36965
36966 fi
36967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
36968 $as_echo "$ac_cv_sizeof_long" >&6; }
36969
36970
36971
36972 cat >>confdefs.h <<_ACEOF
36973 #define SIZEOF_LONG $ac_cv_sizeof_long
36974 _ACEOF
36975
36976
36977 # The cast to long int works around a bug in the HP C Compiler
36978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36980 # This bug is HP SR number 8606223364.
36981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
36982 $as_echo_n "checking size of long long... " >&6; }
36983 if ${ac_cv_sizeof_long_long+:} false; then :
36984   $as_echo_n "(cached) " >&6
36985 else
36986   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
36987
36988 else
36989   if test "$ac_cv_type_long_long" = yes; then
36990      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36992 as_fn_error 77 "cannot compute sizeof (long long)
36993 See \`config.log' for more details" "$LINENO" 5; }
36994    else
36995      ac_cv_sizeof_long_long=0
36996    fi
36997 fi
36998
36999 fi
37000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
37001 $as_echo "$ac_cv_sizeof_long_long" >&6; }
37002
37003
37004
37005 cat >>confdefs.h <<_ACEOF
37006 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
37007 _ACEOF
37008
37009
37010 # The cast to long int works around a bug in the HP C Compiler
37011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37013 # This bug is HP SR number 8606223364.
37014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
37015 $as_echo_n "checking size of intmax_t... " >&6; }
37016 if ${ac_cv_sizeof_intmax_t+:} false; then :
37017   $as_echo_n "(cached) " >&6
37018 else
37019   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t"        "$ac_includes_default"; then :
37020
37021 else
37022   if test "$ac_cv_type_intmax_t" = yes; then
37023      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37025 as_fn_error 77 "cannot compute sizeof (intmax_t)
37026 See \`config.log' for more details" "$LINENO" 5; }
37027    else
37028      ac_cv_sizeof_intmax_t=0
37029    fi
37030 fi
37031
37032 fi
37033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
37034 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
37035
37036
37037
37038 cat >>confdefs.h <<_ACEOF
37039 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
37040 _ACEOF
37041
37042
37043 # The cast to long int works around a bug in the HP C Compiler
37044 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37045 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37046 # This bug is HP SR number 8606223364.
37047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
37048 $as_echo_n "checking size of off_t... " >&6; }
37049 if ${ac_cv_sizeof_off_t+:} false; then :
37050   $as_echo_n "(cached) " >&6
37051 else
37052   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
37053
37054 else
37055   if test "$ac_cv_type_off_t" = yes; then
37056      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37058 as_fn_error 77 "cannot compute sizeof (off_t)
37059 See \`config.log' for more details" "$LINENO" 5; }
37060    else
37061      ac_cv_sizeof_off_t=0
37062    fi
37063 fi
37064
37065 fi
37066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
37067 $as_echo "$ac_cv_sizeof_off_t" >&6; }
37068
37069
37070
37071 cat >>confdefs.h <<_ACEOF
37072 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
37073 _ACEOF
37074
37075
37076 # The cast to long int works around a bug in the HP C Compiler
37077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37079 # This bug is HP SR number 8606223364.
37080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
37081 $as_echo_n "checking size of size_t... " >&6; }
37082 if ${ac_cv_sizeof_size_t+:} false; then :
37083   $as_echo_n "(cached) " >&6
37084 else
37085   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
37086
37087 else
37088   if test "$ac_cv_type_size_t" = yes; then
37089      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37091 as_fn_error 77 "cannot compute sizeof (size_t)
37092 See \`config.log' for more details" "$LINENO" 5; }
37093    else
37094      ac_cv_sizeof_size_t=0
37095    fi
37096 fi
37097
37098 fi
37099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
37100 $as_echo "$ac_cv_sizeof_size_t" >&6; }
37101
37102
37103
37104 cat >>confdefs.h <<_ACEOF
37105 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
37106 _ACEOF
37107
37108
37109 # The cast to long int works around a bug in the HP C Compiler
37110 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37111 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37112 # This bug is HP SR number 8606223364.
37113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
37114 $as_echo_n "checking size of ssize_t... " >&6; }
37115 if ${ac_cv_sizeof_ssize_t+:} false; then :
37116   $as_echo_n "(cached) " >&6
37117 else
37118   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
37119
37120 else
37121   if test "$ac_cv_type_ssize_t" = yes; then
37122      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37124 as_fn_error 77 "cannot compute sizeof (ssize_t)
37125 See \`config.log' for more details" "$LINENO" 5; }
37126    else
37127      ac_cv_sizeof_ssize_t=0
37128    fi
37129 fi
37130
37131 fi
37132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
37133 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
37134
37135
37136
37137 cat >>confdefs.h <<_ACEOF
37138 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
37139 _ACEOF
37140
37141
37142 # The cast to long int works around a bug in the HP C Compiler
37143 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37144 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37145 # This bug is HP SR number 8606223364.
37146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
37147 $as_echo_n "checking size of time_t... " >&6; }
37148 if ${ac_cv_sizeof_time_t+:} false; then :
37149   $as_echo_n "(cached) " >&6
37150 else
37151   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
37152
37153 else
37154   if test "$ac_cv_type_time_t" = yes; then
37155      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37157 as_fn_error 77 "cannot compute sizeof (time_t)
37158 See \`config.log' for more details" "$LINENO" 5; }
37159    else
37160      ac_cv_sizeof_time_t=0
37161    fi
37162 fi
37163
37164 fi
37165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
37166 $as_echo "$ac_cv_sizeof_time_t" >&6; }
37167
37168
37169
37170 cat >>confdefs.h <<_ACEOF
37171 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
37172 _ACEOF
37173
37174
37175 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
37176 if test "x$ac_cv_type_off_t" = xyes; then :
37177
37178 else
37179
37180 cat >>confdefs.h <<_ACEOF
37181 #define off_t long int
37182 _ACEOF
37183
37184 fi
37185
37186 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
37187 if test "x$ac_cv_type_pid_t" = xyes; then :
37188
37189 else
37190
37191 cat >>confdefs.h <<_ACEOF
37192 #define pid_t int
37193 _ACEOF
37194
37195 fi
37196
37197 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
37198 if test "x$ac_cv_type_size_t" = xyes; then :
37199
37200 else
37201
37202 cat >>confdefs.h <<_ACEOF
37203 #define size_t unsigned int
37204 _ACEOF
37205
37206 fi
37207
37208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
37209 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
37210 if ${ac_cv_type_uid_t+:} false; then :
37211   $as_echo_n "(cached) " >&6
37212 else
37213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37214 /* end confdefs.h.  */
37215 #include <sys/types.h>
37216
37217 _ACEOF
37218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37219   $EGREP "uid_t" >/dev/null 2>&1; then :
37220   ac_cv_type_uid_t=yes
37221 else
37222   ac_cv_type_uid_t=no
37223 fi
37224 rm -f conftest*
37225
37226 fi
37227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
37228 $as_echo "$ac_cv_type_uid_t" >&6; }
37229 if test $ac_cv_type_uid_t = no; then
37230
37231 $as_echo "#define uid_t int" >>confdefs.h
37232
37233
37234 $as_echo "#define gid_t int" >>confdefs.h
37235
37236 fi
37237
37238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
37239 $as_echo_n "checking return type of signal handlers... " >&6; }
37240 if ${ac_cv_type_signal+:} false; then :
37241   $as_echo_n "(cached) " >&6
37242 else
37243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37244 /* end confdefs.h.  */
37245 #include <sys/types.h>
37246 #include <signal.h>
37247
37248 int
37249 main ()
37250 {
37251 return *(signal (0, 0)) (0) == 1;
37252   ;
37253   return 0;
37254 }
37255 _ACEOF
37256 if ac_fn_c_try_compile "$LINENO"; then :
37257   ac_cv_type_signal=int
37258 else
37259   ac_cv_type_signal=void
37260 fi
37261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37262 fi
37263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
37264 $as_echo "$ac_cv_type_signal" >&6; }
37265
37266 cat >>confdefs.h <<_ACEOF
37267 #define RETSIGTYPE $ac_cv_type_signal
37268 _ACEOF
37269
37270
37271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
37272 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
37273 if ${ac_cv_struct_tm+:} false; then :
37274   $as_echo_n "(cached) " >&6
37275 else
37276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37277 /* end confdefs.h.  */
37278 #include <sys/types.h>
37279 #include <time.h>
37280
37281 int
37282 main ()
37283 {
37284 struct tm tm;
37285                                      int *p = &tm.tm_sec;
37286                                      return !p;
37287   ;
37288   return 0;
37289 }
37290 _ACEOF
37291 if ac_fn_c_try_compile "$LINENO"; then :
37292   ac_cv_struct_tm=time.h
37293 else
37294   ac_cv_struct_tm=sys/time.h
37295 fi
37296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37297 fi
37298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
37299 $as_echo "$ac_cv_struct_tm" >&6; }
37300 if test $ac_cv_struct_tm = sys/time.h; then
37301
37302 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
37303
37304 fi
37305
37306
37307       ## lifted from config/gnulib/socklen.m4
37308             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
37309 $as_echo_n "checking for socklen_t equivalent... " >&6; }
37310       if ${gl_cv_socklen_t_equiv+:} false; then :
37311   $as_echo_n "(cached) " >&6
37312 else
37313   # Systems have either "struct sockaddr *" or
37314          # "void *" as the second argument to getpeername
37315          gl_cv_socklen_t_equiv=
37316          for arg2 in "struct sockaddr" void; do
37317            for t in socklen_t int size_t "unsigned int" "long int" "unsigned long int"; do
37318              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37319 /* end confdefs.h.  */
37320 #include <sys/types.h>
37321                 #include <sys/socket.h>
37322
37323                 int getpeername (int, $arg2 *, $t *);
37324 int
37325 main ()
37326 {
37327 $t len;
37328                 getpeername (0, 0, &len);
37329   ;
37330   return 0;
37331 }
37332 _ACEOF
37333 if ac_fn_c_try_compile "$LINENO"; then :
37334   gl_cv_socklen_t_equiv="$t"
37335 fi
37336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37337              test "$gl_cv_socklen_t_equiv" != "" && break
37338            done
37339            test "$gl_cv_socklen_t_equiv" != "" && break
37340          done
37341
37342 fi
37343
37344       ## end lifting from config/gnulib/socklen.m4
37345       # fallback if the check fails
37346       if test "$gl_cv_socklen_t_equiv" = ""; then
37347         gl_cv_socklen_t_equiv=socklen_t
37348       fi
37349       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
37350 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
37351
37352
37353 cat >>confdefs.h <<_ACEOF
37354 #define socklen_t_equiv $gl_cv_socklen_t_equiv
37355 _ACEOF
37356
37357
37358
37359
37360     ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
37361 #ifdef HAVE_SYS_TYPES_H
37362 #include <sys/types.h>
37363 #endif
37364 #ifdef STDC_HEADERS
37365 #include <stdlib.h>
37366 #include <stddef.h>
37367 #endif
37368 #include <sys/socket.h>
37369
37370
37371 "
37372 if test "x$ac_cv_type_sa_family_t" = xyes; then :
37373
37374 else
37375
37376
37377 $as_echo "#define sa_family_t unsigned short" >>confdefs.h
37378
37379
37380 fi
37381
37382
37383
37384
37385     ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
37386 #ifdef HAVE_SYS_TYPES_H
37387 #include <sys/types.h>
37388 #endif
37389 #ifdef STDC_HEADERS
37390 #include <stdlib.h>
37391 #include <stddef.h>
37392 #endif
37393 #include <netinet/in.h>
37394
37395
37396 "
37397 if test "x$ac_cv_type_in_port_t" = xyes; then :
37398
37399 else
37400
37401
37402 $as_echo "#define in_port_t unsigned short" >>confdefs.h
37403
37404
37405 fi
37406
37407
37408
37409
37410     for ac_header in sys/wait.h wait.h
37411 do :
37412   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37413 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
37414 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37415   cat >>confdefs.h <<_ACEOF
37416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37417 _ACEOF
37418
37419 fi
37420
37421 done
37422
37423     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait uses union wait" >&5
37424 $as_echo_n "checking whether wait uses union wait... " >&6; }
37425 if ${cf_cv_arg_union_wait+:} false; then :
37426   $as_echo_n "(cached) " >&6
37427 else
37428
37429         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37430 /* end confdefs.h.  */
37431
37432 #include <sys/types.h>
37433
37434 #if HAVE_SYS_WAIT_H
37435 # include <sys/wait.h>
37436 #else
37437 # if HAVE_WAIT_H
37438 #  include <wait.h>
37439 # endif
37440 #endif
37441
37442 #ifdef __STDC__
37443 pid_t wait(union wait *);
37444 #endif
37445
37446 int
37447 main ()
37448 {
37449
37450   union wait x; int i;
37451   wait(&x); i = WIFEXITED(x)
37452
37453   ;
37454   return 0;
37455 }
37456 _ACEOF
37457 if ac_fn_c_try_compile "$LINENO"; then :
37458   cf_cv_arg_union_wait=yes
37459 else
37460   cf_cv_arg_union_wait=no
37461 fi
37462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37463 fi
37464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_arg_union_wait" >&5
37465 $as_echo "$cf_cv_arg_union_wait" >&6; }
37466     if test $cf_cv_arg_union_wait = yes; then
37467
37468 $as_echo "#define WAIT_USES_UNION 1" >>confdefs.h
37469
37470     fi
37471
37472
37473
37474     for ac_header in sys/wait.h wait.h
37475 do :
37476   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37477 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
37478 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37479   cat >>confdefs.h <<_ACEOF
37480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37481 _ACEOF
37482
37483 fi
37484
37485 done
37486
37487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait uses int" >&5
37488 $as_echo_n "checking whether wait uses int... " >&6; }
37489 if ${cf_cv_arg_int+:} false; then :
37490   $as_echo_n "(cached) " >&6
37491 else
37492
37493         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37494 /* end confdefs.h.  */
37495
37496 #include <sys/types.h>
37497
37498 #if HAVE_SYS_WAIT_H
37499 # include <sys/wait.h>
37500 #else
37501 # if HAVE_WAIT_H
37502 #  include <wait.h>
37503 # endif
37504 #endif
37505
37506 #ifdef __STDC__
37507 pid_t wait(int *);
37508 #endif
37509
37510 int
37511 main ()
37512 {
37513
37514   int x; int i;
37515   wait(&x); i = WIFEXITED(x)
37516
37517   ;
37518   return 0;
37519 }
37520 _ACEOF
37521 if ac_fn_c_try_compile "$LINENO"; then :
37522   cf_cv_arg_int=yes
37523 else
37524   cf_cv_arg_int=no
37525 fi
37526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37527 fi
37528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_arg_int" >&5
37529 $as_echo "$cf_cv_arg_int" >&6; }
37530 if test $cf_cv_arg_int = yes; then
37531
37532 $as_echo "#define WAIT_USES_INT 1" >>confdefs.h
37533
37534 fi
37535
37536
37537 #
37538 # Libraries
37539 #
37540 # cur_colr is on some HP's
37541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcur_colr" >&5
37542 $as_echo_n "checking for main in -lcur_colr... " >&6; }
37543 if ${ac_cv_lib_cur_colr_main+:} false; then :
37544   $as_echo_n "(cached) " >&6
37545 else
37546   ac_check_lib_save_LIBS=$LIBS
37547 LIBS="-lcur_colr  $LIBS"
37548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37549 /* end confdefs.h.  */
37550
37551
37552 int
37553 main ()
37554 {
37555 return main ();
37556   ;
37557   return 0;
37558 }
37559 _ACEOF
37560 if ac_fn_c_try_link "$LINENO"; then :
37561   ac_cv_lib_cur_colr_main=yes
37562 else
37563   ac_cv_lib_cur_colr_main=no
37564 fi
37565 rm -f core conftest.err conftest.$ac_objext \
37566     conftest$ac_exeext conftest.$ac_ext
37567 LIBS=$ac_check_lib_save_LIBS
37568 fi
37569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_main" >&5
37570 $as_echo "$ac_cv_lib_cur_colr_main" >&6; }
37571 if test "x$ac_cv_lib_cur_colr_main" = xyes; then :
37572   cat >>confdefs.h <<_ACEOF
37573 #define HAVE_LIBCUR_COLR 1
37574 _ACEOF
37575
37576   LIBS="-lcur_colr $LIBS"
37577
37578 fi
37579
37580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lintl" >&5
37581 $as_echo_n "checking for main in -lintl... " >&6; }
37582 if ${ac_cv_lib_intl_main+:} false; then :
37583   $as_echo_n "(cached) " >&6
37584 else
37585   ac_check_lib_save_LIBS=$LIBS
37586 LIBS="-lintl  $LIBS"
37587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37588 /* end confdefs.h.  */
37589
37590
37591 int
37592 main ()
37593 {
37594 return main ();
37595   ;
37596   return 0;
37597 }
37598 _ACEOF
37599 if ac_fn_c_try_link "$LINENO"; then :
37600   ac_cv_lib_intl_main=yes
37601 else
37602   ac_cv_lib_intl_main=no
37603 fi
37604 rm -f core conftest.err conftest.$ac_objext \
37605     conftest$ac_exeext conftest.$ac_ext
37606 LIBS=$ac_check_lib_save_LIBS
37607 fi
37608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_main" >&5
37609 $as_echo "$ac_cv_lib_intl_main" >&6; }
37610 if test "x$ac_cv_lib_intl_main" = xyes; then :
37611   cat >>confdefs.h <<_ACEOF
37612 #define HAVE_LIBINTL 1
37613 _ACEOF
37614
37615   LIBS="-lintl $LIBS"
37616
37617 fi
37618
37619
37620     # Make sure we don't use -lnsl and -lsun on Irix systems.
37621     case "$host" in
37622         *sgi-irix*)
37623                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
37624 $as_echo_n "checking for main in -lsocket... " >&6; }
37625 if ${ac_cv_lib_socket_main+:} false; then :
37626   $as_echo_n "(cached) " >&6
37627 else
37628   ac_check_lib_save_LIBS=$LIBS
37629 LIBS="-lsocket  $LIBS"
37630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37631 /* end confdefs.h.  */
37632
37633
37634 int
37635 main ()
37636 {
37637 return main ();
37638   ;
37639   return 0;
37640 }
37641 _ACEOF
37642 if ac_fn_c_try_link "$LINENO"; then :
37643   ac_cv_lib_socket_main=yes
37644 else
37645   ac_cv_lib_socket_main=no
37646 fi
37647 rm -f core conftest.err conftest.$ac_objext \
37648     conftest$ac_exeext conftest.$ac_ext
37649 LIBS=$ac_check_lib_save_LIBS
37650 fi
37651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
37652 $as_echo "$ac_cv_lib_socket_main" >&6; }
37653 if test "x$ac_cv_lib_socket_main" = xyes; then :
37654   cat >>confdefs.h <<_ACEOF
37655 #define HAVE_LIBSOCKET 1
37656 _ACEOF
37657
37658   LIBS="-lsocket $LIBS"
37659
37660 fi
37661
37662                             ;;
37663         *)
37664                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
37665 $as_echo_n "checking for main in -lresolv... " >&6; }
37666 if ${ac_cv_lib_resolv_main+:} false; then :
37667   $as_echo_n "(cached) " >&6
37668 else
37669   ac_check_lib_save_LIBS=$LIBS
37670 LIBS="-lresolv  $LIBS"
37671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37672 /* end confdefs.h.  */
37673
37674
37675 int
37676 main ()
37677 {
37678 return main ();
37679   ;
37680   return 0;
37681 }
37682 _ACEOF
37683 if ac_fn_c_try_link "$LINENO"; then :
37684   ac_cv_lib_resolv_main=yes
37685 else
37686   ac_cv_lib_resolv_main=no
37687 fi
37688 rm -f core conftest.err conftest.$ac_objext \
37689     conftest$ac_exeext conftest.$ac_ext
37690 LIBS=$ac_check_lib_save_LIBS
37691 fi
37692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
37693 $as_echo "$ac_cv_lib_resolv_main" >&6; }
37694 if test "x$ac_cv_lib_resolv_main" = xyes; then :
37695   cat >>confdefs.h <<_ACEOF
37696 #define HAVE_LIBRESOLV 1
37697 _ACEOF
37698
37699   LIBS="-lresolv $LIBS"
37700
37701 fi
37702
37703                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
37704 $as_echo_n "checking for main in -lnsl... " >&6; }
37705 if ${ac_cv_lib_nsl_main+:} false; then :
37706   $as_echo_n "(cached) " >&6
37707 else
37708   ac_check_lib_save_LIBS=$LIBS
37709 LIBS="-lnsl  $LIBS"
37710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37711 /* end confdefs.h.  */
37712
37713
37714 int
37715 main ()
37716 {
37717 return main ();
37718   ;
37719   return 0;
37720 }
37721 _ACEOF
37722 if ac_fn_c_try_link "$LINENO"; then :
37723   ac_cv_lib_nsl_main=yes
37724 else
37725   ac_cv_lib_nsl_main=no
37726 fi
37727 rm -f core conftest.err conftest.$ac_objext \
37728     conftest$ac_exeext conftest.$ac_ext
37729 LIBS=$ac_check_lib_save_LIBS
37730 fi
37731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
37732 $as_echo "$ac_cv_lib_nsl_main" >&6; }
37733 if test "x$ac_cv_lib_nsl_main" = xyes; then :
37734   cat >>confdefs.h <<_ACEOF
37735 #define HAVE_LIBNSL 1
37736 _ACEOF
37737
37738   LIBS="-lnsl $LIBS"
37739
37740 fi
37741
37742                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
37743 $as_echo_n "checking for main in -lsocket... " >&6; }
37744 if ${ac_cv_lib_socket_main+:} false; then :
37745   $as_echo_n "(cached) " >&6
37746 else
37747   ac_check_lib_save_LIBS=$LIBS
37748 LIBS="-lsocket  $LIBS"
37749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37750 /* end confdefs.h.  */
37751
37752
37753 int
37754 main ()
37755 {
37756 return main ();
37757   ;
37758   return 0;
37759 }
37760 _ACEOF
37761 if ac_fn_c_try_link "$LINENO"; then :
37762   ac_cv_lib_socket_main=yes
37763 else
37764   ac_cv_lib_socket_main=no
37765 fi
37766 rm -f core conftest.err conftest.$ac_objext \
37767     conftest$ac_exeext conftest.$ac_ext
37768 LIBS=$ac_check_lib_save_LIBS
37769 fi
37770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
37771 $as_echo "$ac_cv_lib_socket_main" >&6; }
37772 if test "x$ac_cv_lib_socket_main" = xyes; then :
37773   cat >>confdefs.h <<_ACEOF
37774 #define HAVE_LIBSOCKET 1
37775 _ACEOF
37776
37777   LIBS="-lsocket $LIBS"
37778
37779 fi
37780
37781                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsun" >&5
37782 $as_echo_n "checking for main in -lsun... " >&6; }
37783 if ${ac_cv_lib_sun_main+:} false; then :
37784   $as_echo_n "(cached) " >&6
37785 else
37786   ac_check_lib_save_LIBS=$LIBS
37787 LIBS="-lsun  $LIBS"
37788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37789 /* end confdefs.h.  */
37790
37791
37792 int
37793 main ()
37794 {
37795 return main ();
37796   ;
37797   return 0;
37798 }
37799 _ACEOF
37800 if ac_fn_c_try_link "$LINENO"; then :
37801   ac_cv_lib_sun_main=yes
37802 else
37803   ac_cv_lib_sun_main=no
37804 fi
37805 rm -f core conftest.err conftest.$ac_objext \
37806     conftest$ac_exeext conftest.$ac_ext
37807 LIBS=$ac_check_lib_save_LIBS
37808 fi
37809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_main" >&5
37810 $as_echo "$ac_cv_lib_sun_main" >&6; }
37811 if test "x$ac_cv_lib_sun_main" = xyes; then :
37812   cat >>confdefs.h <<_ACEOF
37813 #define HAVE_LIBSUN 1
37814 _ACEOF
37815
37816   LIBS="-lsun $LIBS"
37817
37818 fi
37819
37820                             ;;
37821     esac
37822
37823
37824
37825
37826
37827
37828
37829
37830     # if any of the precious variables are set, disable the pkg-config run.
37831     # Further, if any is specified, all must be specified.
37832     explicit_glib=no
37833     test x"$GLIB_CFLAGS" = x"" || explicit_glib=yes
37834     test x"$GLIB_LIBS" = x"" || explicit_glib=yes
37835     test x"$GLIB_GENMARSHAL" = x"" || explicit_glib=yes
37836     test x"$GOBJECT_QUERY" = x"" || explicit_glib=yes
37837     test x"$GLIB_MKENUMS" = x"" || explicit_glib=yes
37838
37839     if test x"$explicit_glib" = x"no"; then
37840         # search for pkg-config, which the glib configuration uses, adding a few
37841         # system-specific search paths.
37842         # Extract the first word of "pkg-config", so it can be a program name with args.
37843 set dummy pkg-config; ac_word=$2
37844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37845 $as_echo_n "checking for $ac_word... " >&6; }
37846 if ${ac_cv_path_PKG_CONFIG+:} false; then :
37847   $as_echo_n "(cached) " >&6
37848 else
37849   case $PKG_CONFIG in
37850   [\\/]* | ?:[\\/]*)
37851   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37852   ;;
37853   *)
37854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37855 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
37856 for as_dir in $as_dummy
37857 do
37858   IFS=$as_save_IFS
37859   test -z "$as_dir" && as_dir=.
37860     for ac_exec_ext in '' $ac_executable_extensions; do
37861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37862     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37864     break 2
37865   fi
37866 done
37867   done
37868 IFS=$as_save_IFS
37869
37870   ;;
37871 esac
37872 fi
37873 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37874 if test -n "$PKG_CONFIG"; then
37875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
37876 $as_echo "$PKG_CONFIG" >&6; }
37877 else
37878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37879 $as_echo "no" >&6; }
37880 fi
37881
37882
37883
37884         case "$host" in
37885             sparc-sun-solaris2.8) # Solaris 8
37886                 # give the linker a runtime search path; pkg-config doesn't supply this.
37887                 # Users could also specify this with LD_LIBRARY_PATH to both ./configure
37888                 # and make.  Adding this support here makes straight './configure; make'
37889                 # "just work" on Solaris 8
37890                 if test -n "$PKG_CONFIG"; then
37891                     glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
37892                     LDFLAGS="$LDFLAGS $glib_R_flag"
37893                 fi
37894                 ;;
37895         esac
37896
37897         # Check whether --enable-glibtest was given.
37898 if test "${enable_glibtest+set}" = set; then :
37899   enableval=$enable_glibtest;
37900 else
37901   enable_glibtest=yes
37902 fi
37903
37904
37905   pkg_config_args=glib-2.0
37906   for module in . gmodule gobject gthread
37907   do
37908       case "$module" in
37909          gmodule)
37910              pkg_config_args="$pkg_config_args gmodule-2.0"
37911          ;;
37912          gmodule-no-export)
37913              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
37914          ;;
37915          gobject)
37916              pkg_config_args="$pkg_config_args gobject-2.0"
37917          ;;
37918          gthread)
37919              pkg_config_args="$pkg_config_args gthread-2.0"
37920          ;;
37921          gio*)
37922              pkg_config_args="$pkg_config_args $module-2.0"
37923          ;;
37924       esac
37925   done
37926
37927
37928
37929
37930
37931
37932
37933 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
37934         if test -n "$ac_tool_prefix"; then
37935   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
37936 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
37937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37938 $as_echo_n "checking for $ac_word... " >&6; }
37939 if ${ac_cv_path_PKG_CONFIG+:} false; then :
37940   $as_echo_n "(cached) " >&6
37941 else
37942   case $PKG_CONFIG in
37943   [\\/]* | ?:[\\/]*)
37944   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37945   ;;
37946   *)
37947   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37948 for as_dir in $PATH
37949 do
37950   IFS=$as_save_IFS
37951   test -z "$as_dir" && as_dir=.
37952     for ac_exec_ext in '' $ac_executable_extensions; do
37953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37954     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37956     break 2
37957   fi
37958 done
37959   done
37960 IFS=$as_save_IFS
37961
37962   ;;
37963 esac
37964 fi
37965 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37966 if test -n "$PKG_CONFIG"; then
37967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
37968 $as_echo "$PKG_CONFIG" >&6; }
37969 else
37970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37971 $as_echo "no" >&6; }
37972 fi
37973
37974
37975 fi
37976 if test -z "$ac_cv_path_PKG_CONFIG"; then
37977   ac_pt_PKG_CONFIG=$PKG_CONFIG
37978   # Extract the first word of "pkg-config", so it can be a program name with args.
37979 set dummy pkg-config; ac_word=$2
37980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37981 $as_echo_n "checking for $ac_word... " >&6; }
37982 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
37983   $as_echo_n "(cached) " >&6
37984 else
37985   case $ac_pt_PKG_CONFIG in
37986   [\\/]* | ?:[\\/]*)
37987   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
37988   ;;
37989   *)
37990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37991 for as_dir in $PATH
37992 do
37993   IFS=$as_save_IFS
37994   test -z "$as_dir" && as_dir=.
37995     for ac_exec_ext in '' $ac_executable_extensions; do
37996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37997     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37999     break 2
38000   fi
38001 done
38002   done
38003 IFS=$as_save_IFS
38004
38005   ;;
38006 esac
38007 fi
38008 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
38009 if test -n "$ac_pt_PKG_CONFIG"; then
38010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
38011 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
38012 else
38013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38014 $as_echo "no" >&6; }
38015 fi
38016
38017   if test "x$ac_pt_PKG_CONFIG" = x; then
38018     PKG_CONFIG=""
38019   else
38020     case $cross_compiling:$ac_tool_warned in
38021 yes:)
38022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38024 ac_tool_warned=yes ;;
38025 esac
38026     PKG_CONFIG=$ac_pt_PKG_CONFIG
38027   fi
38028 else
38029   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
38030 fi
38031
38032 fi
38033 if test -n "$PKG_CONFIG"; then
38034         _pkg_min_version=0.7
38035         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
38036 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
38037         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
38038                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38039 $as_echo "yes" >&6; }
38040         else
38041                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38042 $as_echo "no" >&6; }
38043                 PKG_CONFIG=""
38044         fi
38045 fi
38046
38047   no_glib=""
38048
38049   if test "x$PKG_CONFIG" = x ; then
38050     no_glib=yes
38051     PKG_CONFIG=no
38052   fi
38053
38054   min_glib_version=2.2.0
38055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
38056 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
38057
38058   if test x$PKG_CONFIG != xno ; then
38059     ## don't try to run the test against uninstalled libtool libs
38060     if $PKG_CONFIG --uninstalled $pkg_config_args; then
38061           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
38062           enable_glibtest=no
38063     fi
38064
38065     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
38066           :
38067     else
38068           no_glib=yes
38069     fi
38070   fi
38071
38072   if test x"$no_glib" = x ; then
38073     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
38074     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
38075     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
38076
38077     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
38078     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
38079     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
38080            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
38081     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
38082            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
38083     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
38084            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
38085     if test "x$enable_glibtest" = "xyes" ; then
38086       ac_save_CFLAGS="$CFLAGS"
38087       ac_save_LIBS="$LIBS"
38088       CFLAGS="$CFLAGS $GLIB_CFLAGS"
38089       LIBS="$GLIB_LIBS $LIBS"
38090       rm -f conf.glibtest
38091       if test "$cross_compiling" = yes; then :
38092   echo $ac_n "cross compiling; assumed OK... $ac_c"
38093 else
38094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38095 /* end confdefs.h.  */
38096
38097 #include <glib.h>
38098 #include <stdio.h>
38099 #include <stdlib.h>
38100
38101 int
38102 main ()
38103 {
38104   unsigned int major, minor, micro;
38105   char *tmp_version;
38106
38107   fclose (fopen ("conf.glibtest", "w"));
38108
38109   /* HP/UX 9 (%@#!) writes to sscanf strings */
38110   tmp_version = g_strdup("$min_glib_version");
38111   if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
38112      printf("%s, bad version string\n", "$min_glib_version");
38113      exit(1);
38114    }
38115
38116   if ((glib_major_version != $glib_config_major_version) ||
38117       (glib_minor_version != $glib_config_minor_version) ||
38118       (glib_micro_version != $glib_config_micro_version))
38119     {
38120       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
38121              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
38122              glib_major_version, glib_minor_version, glib_micro_version);
38123       printf ("*** was found! If pkg-config was correct, then it is best\n");
38124       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
38125       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
38126       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
38127       printf("*** required on your system.\n");
38128       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
38129       printf("*** to point to the correct configuration files\n");
38130     }
38131   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
38132            (glib_minor_version != GLIB_MINOR_VERSION) ||
38133            (glib_micro_version != GLIB_MICRO_VERSION))
38134     {
38135       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
38136              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
38137       printf("*** library (version %d.%d.%d)\n",
38138              glib_major_version, glib_minor_version, glib_micro_version);
38139     }
38140   else
38141     {
38142       if ((glib_major_version > major) ||
38143         ((glib_major_version == major) && (glib_minor_version > minor)) ||
38144         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
38145       {
38146         return 0;
38147        }
38148      else
38149       {
38150         printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
38151                glib_major_version, glib_minor_version, glib_micro_version);
38152         printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
38153                major, minor, micro);
38154         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
38155         printf("***\n");
38156         printf("*** If you have already installed a sufficiently new version, this error\n");
38157         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
38158         printf("*** being found. The easiest way to fix this is to remove the old version\n");
38159         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
38160         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
38161         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
38162         printf("*** so that the correct libraries are found at run-time))\n");
38163       }
38164     }
38165   return 1;
38166 }
38167
38168 _ACEOF
38169 if ac_fn_c_try_run "$LINENO"; then :
38170
38171 else
38172   no_glib=yes
38173 fi
38174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38175   conftest.$ac_objext conftest.beam conftest.$ac_ext
38176 fi
38177
38178        CFLAGS="$ac_save_CFLAGS"
38179        LIBS="$ac_save_LIBS"
38180      fi
38181   fi
38182   if test "x$no_glib" = x ; then
38183      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
38184 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
38185      :
38186   else
38187      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38188 $as_echo "no" >&6; }
38189      if test "$PKG_CONFIG" = "no" ; then
38190        echo "*** A new enough version of pkg-config was not found."
38191        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
38192      else
38193        if test -f conf.glibtest ; then
38194         :
38195        else
38196           echo "*** Could not run GLIB test program, checking why..."
38197           ac_save_CFLAGS="$CFLAGS"
38198           ac_save_LIBS="$LIBS"
38199           CFLAGS="$CFLAGS $GLIB_CFLAGS"
38200           LIBS="$LIBS $GLIB_LIBS"
38201           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38202 /* end confdefs.h.  */
38203
38204 #include <glib.h>
38205 #include <stdio.h>
38206
38207 int
38208 main ()
38209 {
38210  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
38211   ;
38212   return 0;
38213 }
38214 _ACEOF
38215 if ac_fn_c_try_link "$LINENO"; then :
38216    echo "*** The test program compiled, but did not run. This usually means"
38217           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
38218           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
38219           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
38220           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
38221           echo "*** is required on your system"
38222           echo "***"
38223           echo "*** If you have an old version installed, it is best to remove it, although"
38224           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
38225 else
38226    echo "*** The test program failed to compile or link. See the file config.log for the"
38227           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
38228 fi
38229 rm -f core conftest.err conftest.$ac_objext \
38230     conftest$ac_exeext conftest.$ac_ext
38231           CFLAGS="$ac_save_CFLAGS"
38232           LIBS="$ac_save_LIBS"
38233        fi
38234      fi
38235      GLIB_CFLAGS=""
38236      GLIB_LIBS=""
38237      GLIB_GENMARSHAL=""
38238      GOBJECT_QUERY=""
38239      GLIB_MKENUMS=""
38240
38241             as_fn_error $? "glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" "$LINENO" 5
38242
38243   fi
38244
38245
38246
38247
38248
38249   rm -f conf.glibtest
38250
38251     else
38252         # Confirm that all GLIB_ variables are set
38253         if test ! x"$GLIB_CFLAGS" = x"" && \
38254            test ! x"$GLIB_LIBS" = x"" && \
38255            test ! x"$GLIB_GENMARSHAL" = x"" && \
38256            test ! x"$GOBJECT_QUERY" = x"" && \
38257            test ! x"$GLIB_MKENUMS" = x""; then
38258             :
38259         else
38260             as_fn_error $? "Not all precious glib variables were set." "$LINENO" 5
38261         fi
38262     fi
38263
38264     # GLIB_CPPFLAGS is not set by autoconf, yet GLIB_CFLAGS contains what GLIB_CPPFLAGS should contain.
38265     CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
38266
38267     LIBS="$GLIB_LIBS $LIBS"
38268
38269
38270
38271
38272 # Check whether --with-readline was given.
38273 if test "${with_readline+set}" = set; then :
38274   withval=$with_readline;
38275             case "$withval" in
38276                 y | ye | yes | n | no) : ;;
38277                 *) as_fn_error $? "*** --with-readline does not take a value" "$LINENO" 5
38278             esac
38279             want_readline="$withval"
38280
38281 else
38282
38283             want_readline="maybe" # meaning "only if we can find it"
38284
38285 fi
38286
38287
38288
38289   # unless the user said "no", look for readline.
38290   if test x"$want_readline" != x"no"; then
38291     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
38292 $as_echo_n "checking for a readline compatible library... " >&6; }
38293 if ${ax_cv_lib_readline+:} false; then :
38294   $as_echo_n "(cached) " >&6
38295 else
38296
38297       ORIG_LIBS="$LIBS"
38298       for readline_lib in readline edit editline; do
38299         for termcap_lib in "" termcap curses ncurses; do
38300           if test -z "$termcap_lib"; then
38301             TRY_LIB="-l$readline_lib"
38302           else
38303             TRY_LIB="-l$readline_lib -l$termcap_lib"
38304           fi
38305           LIBS="$ORIG_LIBS $TRY_LIB"
38306           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38307 /* end confdefs.h.  */
38308
38309 /* Override any GCC internal prototype to avoid an error.
38310    Use char because int might match the return type of a GCC
38311    builtin and then its argument prototype would still apply.  */
38312 #ifdef __cplusplus
38313 extern "C"
38314 #endif
38315 char readline ();
38316 int
38317 main ()
38318 {
38319 return readline ();
38320   ;
38321   return 0;
38322 }
38323 _ACEOF
38324 if ac_fn_c_try_link "$LINENO"; then :
38325   ax_cv_lib_readline="$TRY_LIB"
38326 fi
38327 rm -f core conftest.err conftest.$ac_objext \
38328     conftest$ac_exeext conftest.$ac_ext
38329           if test -n "$ax_cv_lib_readline"; then
38330             break
38331           fi
38332         done
38333         if test -n "$ax_cv_lib_readline"; then
38334           break
38335         fi
38336       done
38337       if test -z "$ax_cv_lib_readline"; then
38338         ax_cv_lib_readline="no"
38339       fi
38340       LIBS="$ORIG_LIBS"
38341
38342 fi
38343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
38344 $as_echo "$ax_cv_lib_readline" >&6; }
38345
38346     if test "$ax_cv_lib_readline" != "no"; then
38347       ORIG_LIBS="$LIBS"
38348       LIBS="$LIBS $ax_cv_lib_readline"
38349       READLINE_LIBS="$ax_cv_lib_readline"
38350
38351 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
38352
38353       for ac_header in readline.h readline/readline.h
38354 do :
38355   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38356 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38357 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38358   cat >>confdefs.h <<_ACEOF
38359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38360 _ACEOF
38361
38362 fi
38363
38364 done
38365
38366       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
38367 $as_echo_n "checking whether readline supports history... " >&6; }
38368 if ${ax_cv_lib_readline_history+:} false; then :
38369   $as_echo_n "(cached) " >&6
38370 else
38371
38372         ax_cv_lib_readline_history="no"
38373         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38374 /* end confdefs.h.  */
38375
38376 /* Override any GCC internal prototype to avoid an error.
38377    Use char because int might match the return type of a GCC
38378    builtin and then its argument prototype would still apply.  */
38379 #ifdef __cplusplus
38380 extern "C"
38381 #endif
38382 char add_history ();
38383 int
38384 main ()
38385 {
38386 return add_history ();
38387   ;
38388   return 0;
38389 }
38390 _ACEOF
38391 if ac_fn_c_try_link "$LINENO"; then :
38392   ax_cv_lib_readline_history="yes"
38393 fi
38394 rm -f core conftest.err conftest.$ac_objext \
38395     conftest$ac_exeext conftest.$ac_ext
38396
38397 fi
38398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
38399 $as_echo "$ax_cv_lib_readline_history" >&6; }
38400       if test "$ax_cv_lib_readline_history" = "yes"; then
38401
38402 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
38403
38404         for ac_header in history.h readline/history.h
38405 do :
38406   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38407 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38408 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38409   cat >>confdefs.h <<_ACEOF
38410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38411 _ACEOF
38412
38413 fi
38414
38415 done
38416
38417       fi
38418       LIBS="$ORIG_LIBS"
38419
38420     else
38421       # no readline.  if the user *really* wanted it, bail out.
38422       if test x"$want_readline" = x"yes"; then
38423         as_fn_error $? "*** No readline implementation found.  Try using --with-libraries and --with-includes" "$LINENO" 5
38424       fi
38425       READLINE_LIBS=""
38426     fi
38427   fi
38428
38429
38430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf in -lm" >&5
38431 $as_echo_n "checking for modf in -lm... " >&6; }
38432 if ${ac_cv_lib_m_modf+:} false; then :
38433   $as_echo_n "(cached) " >&6
38434 else
38435   ac_check_lib_save_LIBS=$LIBS
38436 LIBS="-lm  $LIBS"
38437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38438 /* end confdefs.h.  */
38439
38440 /* Override any GCC internal prototype to avoid an error.
38441    Use char because int might match the return type of a GCC
38442    builtin and then its argument prototype would still apply.  */
38443 #ifdef __cplusplus
38444 extern "C"
38445 #endif
38446 char modf ();
38447 int
38448 main ()
38449 {
38450 return modf ();
38451   ;
38452   return 0;
38453 }
38454 _ACEOF
38455 if ac_fn_c_try_link "$LINENO"; then :
38456   ac_cv_lib_m_modf=yes
38457 else
38458   ac_cv_lib_m_modf=no
38459 fi
38460 rm -f core conftest.err conftest.$ac_objext \
38461     conftest$ac_exeext conftest.$ac_ext
38462 LIBS=$ac_check_lib_save_LIBS
38463 fi
38464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_modf" >&5
38465 $as_echo "$ac_cv_lib_m_modf" >&6; }
38466 if test "x$ac_cv_lib_m_modf" = xyes; then :
38467   cat >>confdefs.h <<_ACEOF
38468 #define HAVE_LIBM 1
38469 _ACEOF
38470
38471   LIBS="-lm $LIBS"
38472
38473 fi
38474
38475
38476     ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
38477 if test "x$ac_cv_header_execinfo_h" = xyes; then :
38478
38479         ac_fn_c_check_func "$LINENO" "backtrace_symbols_fd" "ac_cv_func_backtrace_symbols_fd"
38480 if test "x$ac_cv_func_backtrace_symbols_fd" = xyes; then :
38481
38482
38483 $as_echo "#define HAVE_GLIBC_BACKTRACE 1" >>confdefs.h
38484
38485
38486 fi
38487
38488
38489 fi
38490
38491
38492
38493
38494 #
38495 # Declarations
38496 #
38497 # Checks for library functions and if the function is declared in
38498 # an appropriate header file.  Functions which exist, but for which
38499 # no declaration is available, are declared in common-src/amanda.h.
38500 # It's not clear that any existing system implements but does not
38501 # declare common functions such as these.
38502 #
38503
38504 ice_have_accept=no
38505 for ac_func in accept
38506 do :
38507   ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
38508 if test "x$ac_cv_func_accept" = xyes; then :
38509   cat >>confdefs.h <<_ACEOF
38510 #define HAVE_ACCEPT 1
38511 _ACEOF
38512  ice_have_accept=yes
38513 fi
38514 done
38515
38516 if test "${ice_have_accept}" = yes; then
38517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept declaration in sys/types.h sys/socket.h" >&5
38518 $as_echo_n "checking for accept declaration in sys/types.h sys/socket.h... " >&6; }
38519 if ${ice_cv_have_accept_decl+:} false; then :
38520   $as_echo_n "(cached) " >&6
38521 else
38522
38523 ice_cv_have_accept_decl=no
38524 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38525 ice_re_word='(^|[^a-zA-Z0-9_])'
38526 for header in sys/types.h sys/socket.h; do
38527 # Check for ordinary declaration
38528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38529 /* end confdefs.h.  */
38530 #include <$header>
38531
38532 _ACEOF
38533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38534   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then :
38535   ice_cv_have_accept_decl=yes
38536 fi
38537 rm -f conftest*
38538
38539 if test "$ice_cv_have_accept_decl" = yes; then
38540         break
38541 fi
38542 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38544 /* end confdefs.h.  */
38545 #include <$header>
38546
38547 _ACEOF
38548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38549   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38550   ice_cv_have_accept_decl=yes
38551 fi
38552 rm -f conftest*
38553
38554 if test "$ice_cv_have_accept_decl" = yes; then
38555         break
38556 fi
38557 done
38558
38559 fi
38560
38561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_accept_decl" >&5
38562 $as_echo "$ice_cv_have_accept_decl" >&6; }
38563 if test "$ice_cv_have_accept_decl" = yes; then
38564
38565 cat >>confdefs.h <<_ACEOF
38566 #define HAVE_ACCEPT_DECL 1
38567 _ACEOF
38568
38569 fi
38570 fi
38571
38572 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
38573 # for constant arguments.  Useless!
38574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
38575 $as_echo_n "checking for working alloca.h... " >&6; }
38576 if ${ac_cv_working_alloca_h+:} false; then :
38577   $as_echo_n "(cached) " >&6
38578 else
38579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38580 /* end confdefs.h.  */
38581 #include <alloca.h>
38582 int
38583 main ()
38584 {
38585 char *p = (char *) alloca (2 * sizeof (int));
38586                           if (p) return 0;
38587   ;
38588   return 0;
38589 }
38590 _ACEOF
38591 if ac_fn_c_try_link "$LINENO"; then :
38592   ac_cv_working_alloca_h=yes
38593 else
38594   ac_cv_working_alloca_h=no
38595 fi
38596 rm -f core conftest.err conftest.$ac_objext \
38597     conftest$ac_exeext conftest.$ac_ext
38598 fi
38599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
38600 $as_echo "$ac_cv_working_alloca_h" >&6; }
38601 if test $ac_cv_working_alloca_h = yes; then
38602
38603 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
38604
38605 fi
38606
38607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
38608 $as_echo_n "checking for alloca... " >&6; }
38609 if ${ac_cv_func_alloca_works+:} false; then :
38610   $as_echo_n "(cached) " >&6
38611 else
38612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38613 /* end confdefs.h.  */
38614 #ifdef __GNUC__
38615 # define alloca __builtin_alloca
38616 #else
38617 # ifdef _MSC_VER
38618 #  include <malloc.h>
38619 #  define alloca _alloca
38620 # else
38621 #  ifdef HAVE_ALLOCA_H
38622 #   include <alloca.h>
38623 #  else
38624 #   ifdef _AIX
38625  #pragma alloca
38626 #   else
38627 #    ifndef alloca /* predefined by HP cc +Olibcalls */
38628 void *alloca (size_t);
38629 #    endif
38630 #   endif
38631 #  endif
38632 # endif
38633 #endif
38634
38635 int
38636 main ()
38637 {
38638 char *p = (char *) alloca (1);
38639                                     if (p) return 0;
38640   ;
38641   return 0;
38642 }
38643 _ACEOF
38644 if ac_fn_c_try_link "$LINENO"; then :
38645   ac_cv_func_alloca_works=yes
38646 else
38647   ac_cv_func_alloca_works=no
38648 fi
38649 rm -f core conftest.err conftest.$ac_objext \
38650     conftest$ac_exeext conftest.$ac_ext
38651 fi
38652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
38653 $as_echo "$ac_cv_func_alloca_works" >&6; }
38654
38655 if test $ac_cv_func_alloca_works = yes; then
38656
38657 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
38658
38659 else
38660   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
38661 # that cause trouble.  Some versions do not even contain alloca or
38662 # contain a buggy version.  If you still want to use their alloca,
38663 # use ar to extract alloca.o from them instead of compiling alloca.c.
38664
38665 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
38666
38667 $as_echo "#define C_ALLOCA 1" >>confdefs.h
38668
38669
38670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
38671 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
38672 if ${ac_cv_os_cray+:} false; then :
38673   $as_echo_n "(cached) " >&6
38674 else
38675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38676 /* end confdefs.h.  */
38677 #if defined CRAY && ! defined CRAY2
38678 webecray
38679 #else
38680 wenotbecray
38681 #endif
38682
38683 _ACEOF
38684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38685   $EGREP "webecray" >/dev/null 2>&1; then :
38686   ac_cv_os_cray=yes
38687 else
38688   ac_cv_os_cray=no
38689 fi
38690 rm -f conftest*
38691
38692 fi
38693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
38694 $as_echo "$ac_cv_os_cray" >&6; }
38695 if test $ac_cv_os_cray = yes; then
38696   for ac_func in _getb67 GETB67 getb67; do
38697     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
38699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
38700
38701 cat >>confdefs.h <<_ACEOF
38702 #define CRAY_STACKSEG_END $ac_func
38703 _ACEOF
38704
38705     break
38706 fi
38707
38708   done
38709 fi
38710
38711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
38712 $as_echo_n "checking stack direction for C alloca... " >&6; }
38713 if ${ac_cv_c_stack_direction+:} false; then :
38714   $as_echo_n "(cached) " >&6
38715 else
38716   if test "$cross_compiling" = yes; then :
38717   ac_cv_c_stack_direction=0
38718 else
38719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38720 /* end confdefs.h.  */
38721 $ac_includes_default
38722 int
38723 find_stack_direction ()
38724 {
38725   static char *addr = 0;
38726   auto char dummy;
38727   if (addr == 0)
38728     {
38729       addr = &dummy;
38730       return find_stack_direction ();
38731     }
38732   else
38733     return (&dummy > addr) ? 1 : -1;
38734 }
38735
38736 int
38737 main ()
38738 {
38739   return find_stack_direction () < 0;
38740 }
38741 _ACEOF
38742 if ac_fn_c_try_run "$LINENO"; then :
38743   ac_cv_c_stack_direction=1
38744 else
38745   ac_cv_c_stack_direction=-1
38746 fi
38747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38748   conftest.$ac_objext conftest.beam conftest.$ac_ext
38749 fi
38750
38751 fi
38752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
38753 $as_echo "$ac_cv_c_stack_direction" >&6; }
38754 cat >>confdefs.h <<_ACEOF
38755 #define STACK_DIRECTION $ac_cv_c_stack_direction
38756 _ACEOF
38757
38758
38759 fi
38760
38761 for ac_func in atexit
38762 do :
38763   ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
38764 if test "x$ac_cv_func_atexit" = xyes; then :
38765   cat >>confdefs.h <<_ACEOF
38766 #define HAVE_ATEXIT 1
38767 _ACEOF
38768
38769 fi
38770 done
38771
38772
38773 ice_have_atof=no
38774 for ac_func in atof
38775 do :
38776   ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
38777 if test "x$ac_cv_func_atof" = xyes; then :
38778   cat >>confdefs.h <<_ACEOF
38779 #define HAVE_ATOF 1
38780 _ACEOF
38781  ice_have_atof=yes
38782 fi
38783 done
38784
38785 if test "${ice_have_atof}" = yes; then
38786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atof declaration in stdlib.h" >&5
38787 $as_echo_n "checking for atof declaration in stdlib.h... " >&6; }
38788 if ${ice_cv_have_atof_decl+:} false; then :
38789   $as_echo_n "(cached) " >&6
38790 else
38791
38792 ice_cv_have_atof_decl=no
38793 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38794 ice_re_word='(^|[^a-zA-Z0-9_])'
38795 for header in stdlib.h; do
38796 # Check for ordinary declaration
38797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38798 /* end confdefs.h.  */
38799 #include <$header>
38800
38801 _ACEOF
38802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38803   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then :
38804   ice_cv_have_atof_decl=yes
38805 fi
38806 rm -f conftest*
38807
38808 if test "$ice_cv_have_atof_decl" = yes; then
38809         break
38810 fi
38811 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38813 /* end confdefs.h.  */
38814 #include <$header>
38815
38816 _ACEOF
38817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38818   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38819   ice_cv_have_atof_decl=yes
38820 fi
38821 rm -f conftest*
38822
38823 if test "$ice_cv_have_atof_decl" = yes; then
38824         break
38825 fi
38826 done
38827
38828 fi
38829
38830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atof_decl" >&5
38831 $as_echo "$ice_cv_have_atof_decl" >&6; }
38832 if test "$ice_cv_have_atof_decl" = yes; then
38833
38834 cat >>confdefs.h <<_ACEOF
38835 #define HAVE_ATOF_DECL 1
38836 _ACEOF
38837
38838 fi
38839 fi
38840
38841
38842 ice_have_atol=no
38843 for ac_func in atol
38844 do :
38845   ac_fn_c_check_func "$LINENO" "atol" "ac_cv_func_atol"
38846 if test "x$ac_cv_func_atol" = xyes; then :
38847   cat >>confdefs.h <<_ACEOF
38848 #define HAVE_ATOL 1
38849 _ACEOF
38850  ice_have_atol=yes
38851 fi
38852 done
38853
38854 if test "${ice_have_atol}" = yes; then
38855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atol declaration in stdlib.h" >&5
38856 $as_echo_n "checking for atol declaration in stdlib.h... " >&6; }
38857 if ${ice_cv_have_atol_decl+:} false; then :
38858   $as_echo_n "(cached) " >&6
38859 else
38860
38861 ice_cv_have_atol_decl=no
38862 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38863 ice_re_word='(^|[^a-zA-Z0-9_])'
38864 for header in stdlib.h; do
38865 # Check for ordinary declaration
38866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38867 /* end confdefs.h.  */
38868 #include <$header>
38869
38870 _ACEOF
38871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38872   $EGREP "${ice_re_word}atol[   ]*\(" >/dev/null 2>&1; then :
38873   ice_cv_have_atol_decl=yes
38874 fi
38875 rm -f conftest*
38876
38877 if test "$ice_cv_have_atol_decl" = yes; then
38878         break
38879 fi
38880 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38882 /* end confdefs.h.  */
38883 #include <$header>
38884
38885 _ACEOF
38886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38887   $EGREP "${ice_re_word}atol[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38888   ice_cv_have_atol_decl=yes
38889 fi
38890 rm -f conftest*
38891
38892 if test "$ice_cv_have_atol_decl" = yes; then
38893         break
38894 fi
38895 done
38896
38897 fi
38898
38899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atol_decl" >&5
38900 $as_echo "$ice_cv_have_atol_decl" >&6; }
38901 if test "$ice_cv_have_atol_decl" = yes; then
38902
38903 cat >>confdefs.h <<_ACEOF
38904 #define HAVE_ATOL_DECL 1
38905 _ACEOF
38906
38907 fi
38908 fi
38909
38910
38911 ice_have_atoll=no
38912 for ac_func in atoll
38913 do :
38914   ac_fn_c_check_func "$LINENO" "atoll" "ac_cv_func_atoll"
38915 if test "x$ac_cv_func_atoll" = xyes; then :
38916   cat >>confdefs.h <<_ACEOF
38917 #define HAVE_ATOLL 1
38918 _ACEOF
38919  ice_have_atoll=yes
38920 fi
38921 done
38922
38923 if test "${ice_have_atoll}" = yes; then
38924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atoll declaration in stdlib.h" >&5
38925 $as_echo_n "checking for atoll declaration in stdlib.h... " >&6; }
38926 if ${ice_cv_have_atoll_decl+:} false; then :
38927   $as_echo_n "(cached) " >&6
38928 else
38929
38930 ice_cv_have_atoll_decl=no
38931 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38932 ice_re_word='(^|[^a-zA-Z0-9_])'
38933 for header in stdlib.h; do
38934 # Check for ordinary declaration
38935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38936 /* end confdefs.h.  */
38937 #include <$header>
38938
38939 _ACEOF
38940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38941   $EGREP "${ice_re_word}atoll[  ]*\(" >/dev/null 2>&1; then :
38942   ice_cv_have_atoll_decl=yes
38943 fi
38944 rm -f conftest*
38945
38946 if test "$ice_cv_have_atoll_decl" = yes; then
38947         break
38948 fi
38949 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38951 /* end confdefs.h.  */
38952 #include <$header>
38953
38954 _ACEOF
38955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38956   $EGREP "${ice_re_word}atoll[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38957   ice_cv_have_atoll_decl=yes
38958 fi
38959 rm -f conftest*
38960
38961 if test "$ice_cv_have_atoll_decl" = yes; then
38962         break
38963 fi
38964 done
38965
38966 fi
38967
38968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atoll_decl" >&5
38969 $as_echo "$ice_cv_have_atoll_decl" >&6; }
38970 if test "$ice_cv_have_atoll_decl" = yes; then
38971
38972 cat >>confdefs.h <<_ACEOF
38973 #define HAVE_ATOLL_DECL 1
38974 _ACEOF
38975
38976 fi
38977 fi
38978
38979
38980 ice_have_strtol=no
38981 for ac_func in strtol
38982 do :
38983   ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
38984 if test "x$ac_cv_func_strtol" = xyes; then :
38985   cat >>confdefs.h <<_ACEOF
38986 #define HAVE_STRTOL 1
38987 _ACEOF
38988  ice_have_strtol=yes
38989 fi
38990 done
38991
38992 if test "${ice_have_strtol}" = yes; then
38993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtol declaration in stdlib.h" >&5
38994 $as_echo_n "checking for strtol declaration in stdlib.h... " >&6; }
38995 if ${ice_cv_have_strtol_decl+:} false; then :
38996   $as_echo_n "(cached) " >&6
38997 else
38998
38999 ice_cv_have_strtol_decl=no
39000 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39001 ice_re_word='(^|[^a-zA-Z0-9_])'
39002 for header in stdlib.h; do
39003 # Check for ordinary declaration
39004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39005 /* end confdefs.h.  */
39006 #include <$header>
39007
39008 _ACEOF
39009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39010   $EGREP "${ice_re_word}strtol[         ]*\(" >/dev/null 2>&1; then :
39011   ice_cv_have_strtol_decl=yes
39012 fi
39013 rm -f conftest*
39014
39015 if test "$ice_cv_have_strtol_decl" = yes; then
39016         break
39017 fi
39018 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39020 /* end confdefs.h.  */
39021 #include <$header>
39022
39023 _ACEOF
39024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39025   $EGREP "${ice_re_word}strtol[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39026   ice_cv_have_strtol_decl=yes
39027 fi
39028 rm -f conftest*
39029
39030 if test "$ice_cv_have_strtol_decl" = yes; then
39031         break
39032 fi
39033 done
39034
39035 fi
39036
39037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strtol_decl" >&5
39038 $as_echo "$ice_cv_have_strtol_decl" >&6; }
39039 if test "$ice_cv_have_strtol_decl" = yes; then
39040
39041 cat >>confdefs.h <<_ACEOF
39042 #define HAVE_STRTOL_DECL 1
39043 _ACEOF
39044
39045 fi
39046 fi
39047
39048
39049 ice_have_strtoll=no
39050 for ac_func in strtoll
39051 do :
39052   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
39053 if test "x$ac_cv_func_strtoll" = xyes; then :
39054   cat >>confdefs.h <<_ACEOF
39055 #define HAVE_STRTOLL 1
39056 _ACEOF
39057  ice_have_strtoll=yes
39058 fi
39059 done
39060
39061 if test "${ice_have_strtoll}" = yes; then
39062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtoll declaration in stdlib.h" >&5
39063 $as_echo_n "checking for strtoll declaration in stdlib.h... " >&6; }
39064 if ${ice_cv_have_strtoll_decl+:} false; then :
39065   $as_echo_n "(cached) " >&6
39066 else
39067
39068 ice_cv_have_strtoll_decl=no
39069 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39070 ice_re_word='(^|[^a-zA-Z0-9_])'
39071 for header in stdlib.h; do
39072 # Check for ordinary declaration
39073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39074 /* end confdefs.h.  */
39075 #include <$header>
39076
39077 _ACEOF
39078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39079   $EGREP "${ice_re_word}strtoll[        ]*\(" >/dev/null 2>&1; then :
39080   ice_cv_have_strtoll_decl=yes
39081 fi
39082 rm -f conftest*
39083
39084 if test "$ice_cv_have_strtoll_decl" = yes; then
39085         break
39086 fi
39087 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39089 /* end confdefs.h.  */
39090 #include <$header>
39091
39092 _ACEOF
39093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39094   $EGREP "${ice_re_word}strtoll[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39095   ice_cv_have_strtoll_decl=yes
39096 fi
39097 rm -f conftest*
39098
39099 if test "$ice_cv_have_strtoll_decl" = yes; then
39100         break
39101 fi
39102 done
39103
39104 fi
39105
39106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strtoll_decl" >&5
39107 $as_echo "$ice_cv_have_strtoll_decl" >&6; }
39108 if test "$ice_cv_have_strtoll_decl" = yes; then
39109
39110 cat >>confdefs.h <<_ACEOF
39111 #define HAVE_STRTOLL_DECL 1
39112 _ACEOF
39113
39114 fi
39115 fi
39116
39117 for ac_func in basename
39118 do :
39119   ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
39120 if test "x$ac_cv_func_basename" = xyes; then :
39121   cat >>confdefs.h <<_ACEOF
39122 #define HAVE_BASENAME 1
39123 _ACEOF
39124
39125 fi
39126 done
39127
39128
39129 ice_have_bind=no
39130 for ac_func in bind
39131 do :
39132   ac_fn_c_check_func "$LINENO" "bind" "ac_cv_func_bind"
39133 if test "x$ac_cv_func_bind" = xyes; then :
39134   cat >>confdefs.h <<_ACEOF
39135 #define HAVE_BIND 1
39136 _ACEOF
39137  ice_have_bind=yes
39138 fi
39139 done
39140
39141 if test "${ice_have_bind}" = yes; then
39142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind declaration in sys/types.h sys/socket.h" >&5
39143 $as_echo_n "checking for bind declaration in sys/types.h sys/socket.h... " >&6; }
39144 if ${ice_cv_have_bind_decl+:} false; then :
39145   $as_echo_n "(cached) " >&6
39146 else
39147
39148 ice_cv_have_bind_decl=no
39149 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39150 ice_re_word='(^|[^a-zA-Z0-9_])'
39151 for header in sys/types.h sys/socket.h; do
39152 # Check for ordinary declaration
39153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39154 /* end confdefs.h.  */
39155 #include <$header>
39156
39157 _ACEOF
39158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39159   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then :
39160   ice_cv_have_bind_decl=yes
39161 fi
39162 rm -f conftest*
39163
39164 if test "$ice_cv_have_bind_decl" = yes; then
39165         break
39166 fi
39167 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39169 /* end confdefs.h.  */
39170 #include <$header>
39171
39172 _ACEOF
39173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39174   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39175   ice_cv_have_bind_decl=yes
39176 fi
39177 rm -f conftest*
39178
39179 if test "$ice_cv_have_bind_decl" = yes; then
39180         break
39181 fi
39182 done
39183
39184 fi
39185
39186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bind_decl" >&5
39187 $as_echo "$ice_cv_have_bind_decl" >&6; }
39188 if test "$ice_cv_have_bind_decl" = yes; then
39189
39190 cat >>confdefs.h <<_ACEOF
39191 #define HAVE_BIND_DECL 1
39192 _ACEOF
39193
39194 fi
39195 fi
39196
39197
39198 ice_have_bcopy=no
39199 for ac_func in bcopy
39200 do :
39201   ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
39202 if test "x$ac_cv_func_bcopy" = xyes; then :
39203   cat >>confdefs.h <<_ACEOF
39204 #define HAVE_BCOPY 1
39205 _ACEOF
39206  ice_have_bcopy=yes
39207 fi
39208 done
39209
39210 if test "${ice_have_bcopy}" = yes; then
39211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
39212 $as_echo_n "checking for bcopy declaration in string.h strings.h stdlib.h... " >&6; }
39213 if ${ice_cv_have_bcopy_decl+:} false; then :
39214   $as_echo_n "(cached) " >&6
39215 else
39216
39217 ice_cv_have_bcopy_decl=no
39218 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39219 ice_re_word='(^|[^a-zA-Z0-9_])'
39220 for header in string.h strings.h stdlib.h; do
39221 # Check for ordinary declaration
39222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39223 /* end confdefs.h.  */
39224 #include <$header>
39225
39226 _ACEOF
39227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39228   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then :
39229   ice_cv_have_bcopy_decl=yes
39230 fi
39231 rm -f conftest*
39232
39233 if test "$ice_cv_have_bcopy_decl" = yes; then
39234         break
39235 fi
39236 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39238 /* end confdefs.h.  */
39239 #include <$header>
39240
39241 _ACEOF
39242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39243   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39244   ice_cv_have_bcopy_decl=yes
39245 fi
39246 rm -f conftest*
39247
39248 if test "$ice_cv_have_bcopy_decl" = yes; then
39249         break
39250 fi
39251 done
39252
39253 fi
39254
39255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bcopy_decl" >&5
39256 $as_echo "$ice_cv_have_bcopy_decl" >&6; }
39257 if test "$ice_cv_have_bcopy_decl" = yes; then
39258
39259 cat >>confdefs.h <<_ACEOF
39260 #define HAVE_BCOPY_DECL 1
39261 _ACEOF
39262
39263 fi
39264 fi
39265
39266
39267 ice_have_bzero=no
39268 for ac_func in bzero
39269 do :
39270   ac_fn_c_check_func "$LINENO" "bzero" "ac_cv_func_bzero"
39271 if test "x$ac_cv_func_bzero" = xyes; then :
39272   cat >>confdefs.h <<_ACEOF
39273 #define HAVE_BZERO 1
39274 _ACEOF
39275  ice_have_bzero=yes
39276 fi
39277 done
39278
39279 if test "${ice_have_bzero}" = yes; then
39280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzero declaration in string.h strings.h stdlib.h" >&5
39281 $as_echo_n "checking for bzero declaration in string.h strings.h stdlib.h... " >&6; }
39282 if ${ice_cv_have_bzero_decl+:} false; then :
39283   $as_echo_n "(cached) " >&6
39284 else
39285
39286 ice_cv_have_bzero_decl=no
39287 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39288 ice_re_word='(^|[^a-zA-Z0-9_])'
39289 for header in string.h strings.h stdlib.h; do
39290 # Check for ordinary declaration
39291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39292 /* end confdefs.h.  */
39293 #include <$header>
39294
39295 _ACEOF
39296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39297   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then :
39298   ice_cv_have_bzero_decl=yes
39299 fi
39300 rm -f conftest*
39301
39302 if test "$ice_cv_have_bzero_decl" = yes; then
39303         break
39304 fi
39305 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39307 /* end confdefs.h.  */
39308 #include <$header>
39309
39310 _ACEOF
39311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39312   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39313   ice_cv_have_bzero_decl=yes
39314 fi
39315 rm -f conftest*
39316
39317 if test "$ice_cv_have_bzero_decl" = yes; then
39318         break
39319 fi
39320 done
39321
39322 fi
39323
39324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bzero_decl" >&5
39325 $as_echo "$ice_cv_have_bzero_decl" >&6; }
39326 if test "$ice_cv_have_bzero_decl" = yes; then
39327
39328 cat >>confdefs.h <<_ACEOF
39329 #define HAVE_BZERO_DECL 1
39330 _ACEOF
39331
39332 fi
39333 fi
39334
39335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
39336 $as_echo_n "checking whether closedir returns void... " >&6; }
39337 if ${ac_cv_func_closedir_void+:} false; then :
39338   $as_echo_n "(cached) " >&6
39339 else
39340   if test "$cross_compiling" = yes; then :
39341   ac_cv_func_closedir_void=yes
39342 else
39343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39344 /* end confdefs.h.  */
39345 $ac_includes_default
39346 #include <$ac_header_dirent>
39347 #ifndef __cplusplus
39348 int closedir ();
39349 #endif
39350
39351 int
39352 main ()
39353 {
39354 return closedir (opendir (".")) != 0;
39355   ;
39356   return 0;
39357 }
39358 _ACEOF
39359 if ac_fn_c_try_run "$LINENO"; then :
39360   ac_cv_func_closedir_void=no
39361 else
39362   ac_cv_func_closedir_void=yes
39363 fi
39364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39365   conftest.$ac_objext conftest.beam conftest.$ac_ext
39366 fi
39367
39368 fi
39369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
39370 $as_echo "$ac_cv_func_closedir_void" >&6; }
39371 if test $ac_cv_func_closedir_void = yes; then
39372
39373 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
39374
39375 fi
39376
39377
39378 ice_have_closelog=no
39379 for ac_func in closelog
39380 do :
39381   ac_fn_c_check_func "$LINENO" "closelog" "ac_cv_func_closelog"
39382 if test "x$ac_cv_func_closelog" = xyes; then :
39383   cat >>confdefs.h <<_ACEOF
39384 #define HAVE_CLOSELOG 1
39385 _ACEOF
39386  ice_have_closelog=yes
39387 fi
39388 done
39389
39390 if test "${ice_have_closelog}" = yes; then
39391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for closelog declaration in syslog.h" >&5
39392 $as_echo_n "checking for closelog declaration in syslog.h... " >&6; }
39393 if ${ice_cv_have_closelog_decl+:} false; then :
39394   $as_echo_n "(cached) " >&6
39395 else
39396
39397 ice_cv_have_closelog_decl=no
39398 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39399 ice_re_word='(^|[^a-zA-Z0-9_])'
39400 for header in syslog.h; do
39401 # Check for ordinary declaration
39402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39403 /* end confdefs.h.  */
39404 #include <$header>
39405
39406 _ACEOF
39407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39408   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then :
39409   ice_cv_have_closelog_decl=yes
39410 fi
39411 rm -f conftest*
39412
39413 if test "$ice_cv_have_closelog_decl" = yes; then
39414         break
39415 fi
39416 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39418 /* end confdefs.h.  */
39419 #include <$header>
39420
39421 _ACEOF
39422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39423   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39424   ice_cv_have_closelog_decl=yes
39425 fi
39426 rm -f conftest*
39427
39428 if test "$ice_cv_have_closelog_decl" = yes; then
39429         break
39430 fi
39431 done
39432
39433 fi
39434
39435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_closelog_decl" >&5
39436 $as_echo "$ice_cv_have_closelog_decl" >&6; }
39437 if test "$ice_cv_have_closelog_decl" = yes; then
39438
39439 cat >>confdefs.h <<_ACEOF
39440 #define HAVE_CLOSELOG_DECL 1
39441 _ACEOF
39442
39443 fi
39444 fi
39445
39446
39447 ice_have_connect=no
39448 for ac_func in connect
39449 do :
39450   ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
39451 if test "x$ac_cv_func_connect" = xyes; then :
39452   cat >>confdefs.h <<_ACEOF
39453 #define HAVE_CONNECT 1
39454 _ACEOF
39455  ice_have_connect=yes
39456 fi
39457 done
39458
39459 if test "${ice_have_connect}" = yes; then
39460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect declaration in sys/types.h sys/socket.h" >&5
39461 $as_echo_n "checking for connect declaration in sys/types.h sys/socket.h... " >&6; }
39462 if ${ice_cv_have_connect_decl+:} false; then :
39463   $as_echo_n "(cached) " >&6
39464 else
39465
39466 ice_cv_have_connect_decl=no
39467 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39468 ice_re_word='(^|[^a-zA-Z0-9_])'
39469 for header in sys/types.h sys/socket.h; do
39470 # Check for ordinary declaration
39471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39472 /* end confdefs.h.  */
39473 #include <$header>
39474
39475 _ACEOF
39476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39477   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then :
39478   ice_cv_have_connect_decl=yes
39479 fi
39480 rm -f conftest*
39481
39482 if test "$ice_cv_have_connect_decl" = yes; then
39483         break
39484 fi
39485 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39487 /* end confdefs.h.  */
39488 #include <$header>
39489
39490 _ACEOF
39491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39492   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39493   ice_cv_have_connect_decl=yes
39494 fi
39495 rm -f conftest*
39496
39497 if test "$ice_cv_have_connect_decl" = yes; then
39498         break
39499 fi
39500 done
39501
39502 fi
39503
39504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_connect_decl" >&5
39505 $as_echo "$ice_cv_have_connect_decl" >&6; }
39506 if test "$ice_cv_have_connect_decl" = yes; then
39507
39508 cat >>confdefs.h <<_ACEOF
39509 #define HAVE_CONNECT_DECL 1
39510 _ACEOF
39511
39512 fi
39513 fi
39514
39515
39516 ice_have_fclose=no
39517 for ac_func in fclose
39518 do :
39519   ac_fn_c_check_func "$LINENO" "fclose" "ac_cv_func_fclose"
39520 if test "x$ac_cv_func_fclose" = xyes; then :
39521   cat >>confdefs.h <<_ACEOF
39522 #define HAVE_FCLOSE 1
39523 _ACEOF
39524  ice_have_fclose=yes
39525 fi
39526 done
39527
39528 if test "${ice_have_fclose}" = yes; then
39529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose declaration in stdio.h" >&5
39530 $as_echo_n "checking for fclose declaration in stdio.h... " >&6; }
39531 if ${ice_cv_have_fclose_decl+:} false; then :
39532   $as_echo_n "(cached) " >&6
39533 else
39534
39535 ice_cv_have_fclose_decl=no
39536 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39537 ice_re_word='(^|[^a-zA-Z0-9_])'
39538 for header in stdio.h; do
39539 # Check for ordinary declaration
39540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39541 /* end confdefs.h.  */
39542 #include <$header>
39543
39544 _ACEOF
39545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39546   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then :
39547   ice_cv_have_fclose_decl=yes
39548 fi
39549 rm -f conftest*
39550
39551 if test "$ice_cv_have_fclose_decl" = yes; then
39552         break
39553 fi
39554 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39556 /* end confdefs.h.  */
39557 #include <$header>
39558
39559 _ACEOF
39560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39561   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39562   ice_cv_have_fclose_decl=yes
39563 fi
39564 rm -f conftest*
39565
39566 if test "$ice_cv_have_fclose_decl" = yes; then
39567         break
39568 fi
39569 done
39570
39571 fi
39572
39573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fclose_decl" >&5
39574 $as_echo "$ice_cv_have_fclose_decl" >&6; }
39575 if test "$ice_cv_have_fclose_decl" = yes; then
39576
39577 cat >>confdefs.h <<_ACEOF
39578 #define HAVE_FCLOSE_DECL 1
39579 _ACEOF
39580
39581 fi
39582 fi
39583
39584
39585 ice_have_fflush=no
39586 for ac_func in fflush
39587 do :
39588   ac_fn_c_check_func "$LINENO" "fflush" "ac_cv_func_fflush"
39589 if test "x$ac_cv_func_fflush" = xyes; then :
39590   cat >>confdefs.h <<_ACEOF
39591 #define HAVE_FFLUSH 1
39592 _ACEOF
39593  ice_have_fflush=yes
39594 fi
39595 done
39596
39597 if test "${ice_have_fflush}" = yes; then
39598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fflush declaration in stdio.h" >&5
39599 $as_echo_n "checking for fflush declaration in stdio.h... " >&6; }
39600 if ${ice_cv_have_fflush_decl+:} false; then :
39601   $as_echo_n "(cached) " >&6
39602 else
39603
39604 ice_cv_have_fflush_decl=no
39605 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39606 ice_re_word='(^|[^a-zA-Z0-9_])'
39607 for header in stdio.h; do
39608 # Check for ordinary declaration
39609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39610 /* end confdefs.h.  */
39611 #include <$header>
39612
39613 _ACEOF
39614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39615   $EGREP "${ice_re_word}fflush[         ]*\(" >/dev/null 2>&1; then :
39616   ice_cv_have_fflush_decl=yes
39617 fi
39618 rm -f conftest*
39619
39620 if test "$ice_cv_have_fflush_decl" = yes; then
39621         break
39622 fi
39623 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39625 /* end confdefs.h.  */
39626 #include <$header>
39627
39628 _ACEOF
39629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39630   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39631   ice_cv_have_fflush_decl=yes
39632 fi
39633 rm -f conftest*
39634
39635 if test "$ice_cv_have_fflush_decl" = yes; then
39636         break
39637 fi
39638 done
39639
39640 fi
39641
39642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fflush_decl" >&5
39643 $as_echo "$ice_cv_have_fflush_decl" >&6; }
39644 if test "$ice_cv_have_fflush_decl" = yes; then
39645
39646 cat >>confdefs.h <<_ACEOF
39647 #define HAVE_FFLUSH_DECL 1
39648 _ACEOF
39649
39650 fi
39651 fi
39652
39653
39654 ice_have_fprintf=no
39655 for ac_func in fprintf
39656 do :
39657   ac_fn_c_check_func "$LINENO" "fprintf" "ac_cv_func_fprintf"
39658 if test "x$ac_cv_func_fprintf" = xyes; then :
39659   cat >>confdefs.h <<_ACEOF
39660 #define HAVE_FPRINTF 1
39661 _ACEOF
39662  ice_have_fprintf=yes
39663 fi
39664 done
39665
39666 if test "${ice_have_fprintf}" = yes; then
39667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fprintf declaration in stdio.h" >&5
39668 $as_echo_n "checking for fprintf declaration in stdio.h... " >&6; }
39669 if ${ice_cv_have_fprintf_decl+:} false; then :
39670   $as_echo_n "(cached) " >&6
39671 else
39672
39673 ice_cv_have_fprintf_decl=no
39674 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39675 ice_re_word='(^|[^a-zA-Z0-9_])'
39676 for header in stdio.h; do
39677 # Check for ordinary declaration
39678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39679 /* end confdefs.h.  */
39680 #include <$header>
39681
39682 _ACEOF
39683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39684   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then :
39685   ice_cv_have_fprintf_decl=yes
39686 fi
39687 rm -f conftest*
39688
39689 if test "$ice_cv_have_fprintf_decl" = yes; then
39690         break
39691 fi
39692 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39694 /* end confdefs.h.  */
39695 #include <$header>
39696
39697 _ACEOF
39698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39699   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39700   ice_cv_have_fprintf_decl=yes
39701 fi
39702 rm -f conftest*
39703
39704 if test "$ice_cv_have_fprintf_decl" = yes; then
39705         break
39706 fi
39707 done
39708
39709 fi
39710
39711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fprintf_decl" >&5
39712 $as_echo "$ice_cv_have_fprintf_decl" >&6; }
39713 if test "$ice_cv_have_fprintf_decl" = yes; then
39714
39715 cat >>confdefs.h <<_ACEOF
39716 #define HAVE_FPRINTF_DECL 1
39717 _ACEOF
39718
39719 fi
39720 fi
39721
39722
39723 ice_have_fputc=no
39724 for ac_func in fputc
39725 do :
39726   ac_fn_c_check_func "$LINENO" "fputc" "ac_cv_func_fputc"
39727 if test "x$ac_cv_func_fputc" = xyes; then :
39728   cat >>confdefs.h <<_ACEOF
39729 #define HAVE_FPUTC 1
39730 _ACEOF
39731  ice_have_fputc=yes
39732 fi
39733 done
39734
39735 if test "${ice_have_fputc}" = yes; then
39736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fputc declaration in stdio.h" >&5
39737 $as_echo_n "checking for fputc declaration in stdio.h... " >&6; }
39738 if ${ice_cv_have_fputc_decl+:} false; then :
39739   $as_echo_n "(cached) " >&6
39740 else
39741
39742 ice_cv_have_fputc_decl=no
39743 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39744 ice_re_word='(^|[^a-zA-Z0-9_])'
39745 for header in stdio.h; do
39746 # Check for ordinary declaration
39747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39748 /* end confdefs.h.  */
39749 #include <$header>
39750
39751 _ACEOF
39752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39753   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then :
39754   ice_cv_have_fputc_decl=yes
39755 fi
39756 rm -f conftest*
39757
39758 if test "$ice_cv_have_fputc_decl" = yes; then
39759         break
39760 fi
39761 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39763 /* end confdefs.h.  */
39764 #include <$header>
39765
39766 _ACEOF
39767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39768   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39769   ice_cv_have_fputc_decl=yes
39770 fi
39771 rm -f conftest*
39772
39773 if test "$ice_cv_have_fputc_decl" = yes; then
39774         break
39775 fi
39776 done
39777
39778 fi
39779
39780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fputc_decl" >&5
39781 $as_echo "$ice_cv_have_fputc_decl" >&6; }
39782 if test "$ice_cv_have_fputc_decl" = yes; then
39783
39784 cat >>confdefs.h <<_ACEOF
39785 #define HAVE_FPUTC_DECL 1
39786 _ACEOF
39787
39788 fi
39789 fi
39790
39791
39792 ice_have_fputs=no
39793 for ac_func in fputs
39794 do :
39795   ac_fn_c_check_func "$LINENO" "fputs" "ac_cv_func_fputs"
39796 if test "x$ac_cv_func_fputs" = xyes; then :
39797   cat >>confdefs.h <<_ACEOF
39798 #define HAVE_FPUTS 1
39799 _ACEOF
39800  ice_have_fputs=yes
39801 fi
39802 done
39803
39804 if test "${ice_have_fputs}" = yes; then
39805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fputs declaration in stdio.h" >&5
39806 $as_echo_n "checking for fputs declaration in stdio.h... " >&6; }
39807 if ${ice_cv_have_fputs_decl+:} false; then :
39808   $as_echo_n "(cached) " >&6
39809 else
39810
39811 ice_cv_have_fputs_decl=no
39812 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39813 ice_re_word='(^|[^a-zA-Z0-9_])'
39814 for header in stdio.h; do
39815 # Check for ordinary declaration
39816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39817 /* end confdefs.h.  */
39818 #include <$header>
39819
39820 _ACEOF
39821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39822   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then :
39823   ice_cv_have_fputs_decl=yes
39824 fi
39825 rm -f conftest*
39826
39827 if test "$ice_cv_have_fputs_decl" = yes; then
39828         break
39829 fi
39830 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39832 /* end confdefs.h.  */
39833 #include <$header>
39834
39835 _ACEOF
39836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39837   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39838   ice_cv_have_fputs_decl=yes
39839 fi
39840 rm -f conftest*
39841
39842 if test "$ice_cv_have_fputs_decl" = yes; then
39843         break
39844 fi
39845 done
39846
39847 fi
39848
39849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fputs_decl" >&5
39850 $as_echo "$ice_cv_have_fputs_decl" >&6; }
39851 if test "$ice_cv_have_fputs_decl" = yes; then
39852
39853 cat >>confdefs.h <<_ACEOF
39854 #define HAVE_FPUTS_DECL 1
39855 _ACEOF
39856
39857 fi
39858 fi
39859
39860
39861 ice_have_fread=no
39862 for ac_func in fread
39863 do :
39864   ac_fn_c_check_func "$LINENO" "fread" "ac_cv_func_fread"
39865 if test "x$ac_cv_func_fread" = xyes; then :
39866   cat >>confdefs.h <<_ACEOF
39867 #define HAVE_FREAD 1
39868 _ACEOF
39869  ice_have_fread=yes
39870 fi
39871 done
39872
39873 if test "${ice_have_fread}" = yes; then
39874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fread declaration in stdio.h stdlib.h" >&5
39875 $as_echo_n "checking for fread declaration in stdio.h stdlib.h... " >&6; }
39876 if ${ice_cv_have_fread_decl+:} false; then :
39877   $as_echo_n "(cached) " >&6
39878 else
39879
39880 ice_cv_have_fread_decl=no
39881 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39882 ice_re_word='(^|[^a-zA-Z0-9_])'
39883 for header in stdio.h stdlib.h; do
39884 # Check for ordinary declaration
39885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39886 /* end confdefs.h.  */
39887 #include <$header>
39888
39889 _ACEOF
39890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39891   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then :
39892   ice_cv_have_fread_decl=yes
39893 fi
39894 rm -f conftest*
39895
39896 if test "$ice_cv_have_fread_decl" = yes; then
39897         break
39898 fi
39899 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39901 /* end confdefs.h.  */
39902 #include <$header>
39903
39904 _ACEOF
39905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39906   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39907   ice_cv_have_fread_decl=yes
39908 fi
39909 rm -f conftest*
39910
39911 if test "$ice_cv_have_fread_decl" = yes; then
39912         break
39913 fi
39914 done
39915
39916 fi
39917
39918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fread_decl" >&5
39919 $as_echo "$ice_cv_have_fread_decl" >&6; }
39920 if test "$ice_cv_have_fread_decl" = yes; then
39921
39922 cat >>confdefs.h <<_ACEOF
39923 #define HAVE_FREAD_DECL 1
39924 _ACEOF
39925
39926 fi
39927 fi
39928
39929
39930 ice_have_fseek=no
39931 for ac_func in fseek
39932 do :
39933   ac_fn_c_check_func "$LINENO" "fseek" "ac_cv_func_fseek"
39934 if test "x$ac_cv_func_fseek" = xyes; then :
39935   cat >>confdefs.h <<_ACEOF
39936 #define HAVE_FSEEK 1
39937 _ACEOF
39938  ice_have_fseek=yes
39939 fi
39940 done
39941
39942 if test "${ice_have_fseek}" = yes; then
39943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseek declaration in stdio.h" >&5
39944 $as_echo_n "checking for fseek declaration in stdio.h... " >&6; }
39945 if ${ice_cv_have_fseek_decl+:} false; then :
39946   $as_echo_n "(cached) " >&6
39947 else
39948
39949 ice_cv_have_fseek_decl=no
39950 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39951 ice_re_word='(^|[^a-zA-Z0-9_])'
39952 for header in stdio.h; do
39953 # Check for ordinary declaration
39954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39955 /* end confdefs.h.  */
39956 #include <$header>
39957
39958 _ACEOF
39959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39960   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then :
39961   ice_cv_have_fseek_decl=yes
39962 fi
39963 rm -f conftest*
39964
39965 if test "$ice_cv_have_fseek_decl" = yes; then
39966         break
39967 fi
39968 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39970 /* end confdefs.h.  */
39971 #include <$header>
39972
39973 _ACEOF
39974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39975   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39976   ice_cv_have_fseek_decl=yes
39977 fi
39978 rm -f conftest*
39979
39980 if test "$ice_cv_have_fseek_decl" = yes; then
39981         break
39982 fi
39983 done
39984
39985 fi
39986
39987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fseek_decl" >&5
39988 $as_echo "$ice_cv_have_fseek_decl" >&6; }
39989 if test "$ice_cv_have_fseek_decl" = yes; then
39990
39991 cat >>confdefs.h <<_ACEOF
39992 #define HAVE_FSEEK_DECL 1
39993 _ACEOF
39994
39995 fi
39996 fi
39997
39998
39999 ice_have_fwrite=no
40000 for ac_func in fwrite
40001 do :
40002   ac_fn_c_check_func "$LINENO" "fwrite" "ac_cv_func_fwrite"
40003 if test "x$ac_cv_func_fwrite" = xyes; then :
40004   cat >>confdefs.h <<_ACEOF
40005 #define HAVE_FWRITE 1
40006 _ACEOF
40007  ice_have_fwrite=yes
40008 fi
40009 done
40010
40011 if test "${ice_have_fwrite}" = yes; then
40012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fwrite declaration in stdio.h stdlib.h" >&5
40013 $as_echo_n "checking for fwrite declaration in stdio.h stdlib.h... " >&6; }
40014 if ${ice_cv_have_fwrite_decl+:} false; then :
40015   $as_echo_n "(cached) " >&6
40016 else
40017
40018 ice_cv_have_fwrite_decl=no
40019 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40020 ice_re_word='(^|[^a-zA-Z0-9_])'
40021 for header in stdio.h stdlib.h; do
40022 # Check for ordinary declaration
40023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40024 /* end confdefs.h.  */
40025 #include <$header>
40026
40027 _ACEOF
40028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40029   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then :
40030   ice_cv_have_fwrite_decl=yes
40031 fi
40032 rm -f conftest*
40033
40034 if test "$ice_cv_have_fwrite_decl" = yes; then
40035         break
40036 fi
40037 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40039 /* end confdefs.h.  */
40040 #include <$header>
40041
40042 _ACEOF
40043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40044   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40045   ice_cv_have_fwrite_decl=yes
40046 fi
40047 rm -f conftest*
40048
40049 if test "$ice_cv_have_fwrite_decl" = yes; then
40050         break
40051 fi
40052 done
40053
40054 fi
40055
40056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fwrite_decl" >&5
40057 $as_echo "$ice_cv_have_fwrite_decl" >&6; }
40058 if test "$ice_cv_have_fwrite_decl" = yes; then
40059
40060 cat >>confdefs.h <<_ACEOF
40061 #define HAVE_FWRITE_DECL 1
40062 _ACEOF
40063
40064 fi
40065 fi
40066
40067 for ac_func in getgrgid_r
40068 do :
40069   ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"
40070 if test "x$ac_cv_func_getgrgid_r" = xyes; then :
40071   cat >>confdefs.h <<_ACEOF
40072 #define HAVE_GETGRGID_R 1
40073 _ACEOF
40074
40075 fi
40076 done
40077
40078 for ac_func in getpwuid_r
40079 do :
40080   ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
40081 if test "x$ac_cv_func_getpwuid_r" = xyes; then :
40082   cat >>confdefs.h <<_ACEOF
40083 #define HAVE_GETPWUID_R 1
40084 _ACEOF
40085
40086 fi
40087 done
40088
40089
40090 ice_have_gethostname=no
40091 for ac_func in gethostname
40092 do :
40093   ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
40094 if test "x$ac_cv_func_gethostname" = xyes; then :
40095   cat >>confdefs.h <<_ACEOF
40096 #define HAVE_GETHOSTNAME 1
40097 _ACEOF
40098  ice_have_gethostname=yes
40099 fi
40100 done
40101
40102 if test "${ice_have_gethostname}" = yes; then
40103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname declaration in unistd.h" >&5
40104 $as_echo_n "checking for gethostname declaration in unistd.h... " >&6; }
40105 if ${ice_cv_have_gethostname_decl+:} false; then :
40106   $as_echo_n "(cached) " >&6
40107 else
40108
40109 ice_cv_have_gethostname_decl=no
40110 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40111 ice_re_word='(^|[^a-zA-Z0-9_])'
40112 for header in unistd.h; do
40113 # Check for ordinary declaration
40114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40115 /* end confdefs.h.  */
40116 #include <$header>
40117
40118 _ACEOF
40119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40120   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then :
40121   ice_cv_have_gethostname_decl=yes
40122 fi
40123 rm -f conftest*
40124
40125 if test "$ice_cv_have_gethostname_decl" = yes; then
40126         break
40127 fi
40128 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40130 /* end confdefs.h.  */
40131 #include <$header>
40132
40133 _ACEOF
40134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40135   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40136   ice_cv_have_gethostname_decl=yes
40137 fi
40138 rm -f conftest*
40139
40140 if test "$ice_cv_have_gethostname_decl" = yes; then
40141         break
40142 fi
40143 done
40144
40145 fi
40146
40147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_gethostname_decl" >&5
40148 $as_echo "$ice_cv_have_gethostname_decl" >&6; }
40149 if test "$ice_cv_have_gethostname_decl" = yes; then
40150
40151 cat >>confdefs.h <<_ACEOF
40152 #define HAVE_GETHOSTNAME_DECL 1
40153 _ACEOF
40154
40155 fi
40156 fi
40157
40158
40159 ice_have_getopt=no
40160 for ac_func in getopt
40161 do :
40162   ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
40163 if test "x$ac_cv_func_getopt" = xyes; then :
40164   cat >>confdefs.h <<_ACEOF
40165 #define HAVE_GETOPT 1
40166 _ACEOF
40167  ice_have_getopt=yes
40168 fi
40169 done
40170
40171 if test "${ice_have_getopt}" = yes; then
40172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
40173 $as_echo_n "checking for getopt declaration in stdlib.h unistd.h libc.h... " >&6; }
40174 if ${ice_cv_have_getopt_decl+:} false; then :
40175   $as_echo_n "(cached) " >&6
40176 else
40177
40178 ice_cv_have_getopt_decl=no
40179 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40180 ice_re_word='(^|[^a-zA-Z0-9_])'
40181 for header in stdlib.h unistd.h libc.h; do
40182 # Check for ordinary declaration
40183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40184 /* end confdefs.h.  */
40185 #include <$header>
40186
40187 _ACEOF
40188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40189   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then :
40190   ice_cv_have_getopt_decl=yes
40191 fi
40192 rm -f conftest*
40193
40194 if test "$ice_cv_have_getopt_decl" = yes; then
40195         break
40196 fi
40197 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40199 /* end confdefs.h.  */
40200 #include <$header>
40201
40202 _ACEOF
40203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40204   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40205   ice_cv_have_getopt_decl=yes
40206 fi
40207 rm -f conftest*
40208
40209 if test "$ice_cv_have_getopt_decl" = yes; then
40210         break
40211 fi
40212 done
40213
40214 fi
40215
40216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getopt_decl" >&5
40217 $as_echo "$ice_cv_have_getopt_decl" >&6; }
40218 if test "$ice_cv_have_getopt_decl" = yes; then
40219
40220 cat >>confdefs.h <<_ACEOF
40221 #define HAVE_GETOPT_DECL 1
40222 _ACEOF
40223
40224 fi
40225 fi
40226
40227
40228 ice_have_getpeername=no
40229 for ac_func in getpeername
40230 do :
40231   ac_fn_c_check_func "$LINENO" "getpeername" "ac_cv_func_getpeername"
40232 if test "x$ac_cv_func_getpeername" = xyes; then :
40233   cat >>confdefs.h <<_ACEOF
40234 #define HAVE_GETPEERNAME 1
40235 _ACEOF
40236  ice_have_getpeername=yes
40237 fi
40238 done
40239
40240 if test "${ice_have_getpeername}" = yes; then
40241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
40242 $as_echo_n "checking for getpeername declaration in sys/types.h sys/socket.h... " >&6; }
40243 if ${ice_cv_have_getpeername_decl+:} false; then :
40244   $as_echo_n "(cached) " >&6
40245 else
40246
40247 ice_cv_have_getpeername_decl=no
40248 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40249 ice_re_word='(^|[^a-zA-Z0-9_])'
40250 for header in sys/types.h sys/socket.h; do
40251 # Check for ordinary declaration
40252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40253 /* end confdefs.h.  */
40254 #include <$header>
40255
40256 _ACEOF
40257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40258   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then :
40259   ice_cv_have_getpeername_decl=yes
40260 fi
40261 rm -f conftest*
40262
40263 if test "$ice_cv_have_getpeername_decl" = yes; then
40264         break
40265 fi
40266 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40268 /* end confdefs.h.  */
40269 #include <$header>
40270
40271 _ACEOF
40272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40273   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40274   ice_cv_have_getpeername_decl=yes
40275 fi
40276 rm -f conftest*
40277
40278 if test "$ice_cv_have_getpeername_decl" = yes; then
40279         break
40280 fi
40281 done
40282
40283 fi
40284
40285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getpeername_decl" >&5
40286 $as_echo "$ice_cv_have_getpeername_decl" >&6; }
40287 if test "$ice_cv_have_getpeername_decl" = yes; then
40288
40289 cat >>confdefs.h <<_ACEOF
40290 #define HAVE_GETPEERNAME_DECL 1
40291 _ACEOF
40292
40293 fi
40294 fi
40295
40296 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
40297 if test "x$ac_cv_func_getpgrp" = xyes; then :
40298
40299 fi
40300
40301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
40302 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
40303 if ${ac_cv_func_getpgrp_void+:} false; then :
40304   $as_echo_n "(cached) " >&6
40305 else
40306   # Use it with a single arg.
40307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40308 /* end confdefs.h.  */
40309 $ac_includes_default
40310 int
40311 main ()
40312 {
40313 getpgrp (0);
40314   ;
40315   return 0;
40316 }
40317 _ACEOF
40318 if ac_fn_c_try_compile "$LINENO"; then :
40319   ac_cv_func_getpgrp_void=no
40320 else
40321   ac_cv_func_getpgrp_void=yes
40322 fi
40323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40324
40325 fi
40326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
40327 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
40328 if test $ac_cv_func_getpgrp_void = yes; then
40329
40330 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
40331
40332 fi
40333
40334
40335 ice_have_getsockname=no
40336 for ac_func in getsockname
40337 do :
40338   ac_fn_c_check_func "$LINENO" "getsockname" "ac_cv_func_getsockname"
40339 if test "x$ac_cv_func_getsockname" = xyes; then :
40340   cat >>confdefs.h <<_ACEOF
40341 #define HAVE_GETSOCKNAME 1
40342 _ACEOF
40343  ice_have_getsockname=yes
40344 fi
40345 done
40346
40347 if test "${ice_have_getsockname}" = yes; then
40348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
40349 $as_echo_n "checking for getsockname declaration in sys/types.h sys/socket.h... " >&6; }
40350 if ${ice_cv_have_getsockname_decl+:} false; then :
40351   $as_echo_n "(cached) " >&6
40352 else
40353
40354 ice_cv_have_getsockname_decl=no
40355 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40356 ice_re_word='(^|[^a-zA-Z0-9_])'
40357 for header in sys/types.h sys/socket.h; do
40358 # Check for ordinary declaration
40359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40360 /* end confdefs.h.  */
40361 #include <$header>
40362
40363 _ACEOF
40364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40365   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then :
40366   ice_cv_have_getsockname_decl=yes
40367 fi
40368 rm -f conftest*
40369
40370 if test "$ice_cv_have_getsockname_decl" = yes; then
40371         break
40372 fi
40373 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40375 /* end confdefs.h.  */
40376 #include <$header>
40377
40378 _ACEOF
40379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40380   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40381   ice_cv_have_getsockname_decl=yes
40382 fi
40383 rm -f conftest*
40384
40385 if test "$ice_cv_have_getsockname_decl" = yes; then
40386         break
40387 fi
40388 done
40389
40390 fi
40391
40392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getsockname_decl" >&5
40393 $as_echo "$ice_cv_have_getsockname_decl" >&6; }
40394 if test "$ice_cv_have_getsockname_decl" = yes; then
40395
40396 cat >>confdefs.h <<_ACEOF
40397 #define HAVE_GETSOCKNAME_DECL 1
40398 _ACEOF
40399
40400 fi
40401 fi
40402
40403
40404 ice_have_getsockopt=no
40405 for ac_func in getsockopt
40406 do :
40407   ac_fn_c_check_func "$LINENO" "getsockopt" "ac_cv_func_getsockopt"
40408 if test "x$ac_cv_func_getsockopt" = xyes; then :
40409   cat >>confdefs.h <<_ACEOF
40410 #define HAVE_GETSOCKOPT 1
40411 _ACEOF
40412  ice_have_getsockopt=yes
40413 fi
40414 done
40415
40416 if test "${ice_have_getsockopt}" = yes; then
40417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
40418 $as_echo_n "checking for getsockopt declaration in sys/types.h sys/socket.h... " >&6; }
40419 if ${ice_cv_have_getsockopt_decl+:} false; then :
40420   $as_echo_n "(cached) " >&6
40421 else
40422
40423 ice_cv_have_getsockopt_decl=no
40424 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40425 ice_re_word='(^|[^a-zA-Z0-9_])'
40426 for header in sys/types.h sys/socket.h; do
40427 # Check for ordinary declaration
40428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40429 /* end confdefs.h.  */
40430 #include <$header>
40431
40432 _ACEOF
40433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40434   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then :
40435   ice_cv_have_getsockopt_decl=yes
40436 fi
40437 rm -f conftest*
40438
40439 if test "$ice_cv_have_getsockopt_decl" = yes; then
40440         break
40441 fi
40442 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40444 /* end confdefs.h.  */
40445 #include <$header>
40446
40447 _ACEOF
40448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40449   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40450   ice_cv_have_getsockopt_decl=yes
40451 fi
40452 rm -f conftest*
40453
40454 if test "$ice_cv_have_getsockopt_decl" = yes; then
40455         break
40456 fi
40457 done
40458
40459 fi
40460
40461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getsockopt_decl" >&5
40462 $as_echo "$ice_cv_have_getsockopt_decl" >&6; }
40463 if test "$ice_cv_have_getsockopt_decl" = yes; then
40464
40465 cat >>confdefs.h <<_ACEOF
40466 #define HAVE_GETSOCKOPT_DECL 1
40467 _ACEOF
40468
40469 fi
40470 fi
40471
40472
40473 ice_have_initgroups=no
40474 for ac_func in initgroups
40475 do :
40476   ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
40477 if test "x$ac_cv_func_initgroups" = xyes; then :
40478   cat >>confdefs.h <<_ACEOF
40479 #define HAVE_INITGROUPS 1
40480 _ACEOF
40481  ice_have_initgroups=yes
40482 fi
40483 done
40484
40485 if test "${ice_have_initgroups}" = yes; then
40486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
40487 $as_echo_n "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... " >&6; }
40488 if ${ice_cv_have_initgroups_decl+:} false; then :
40489   $as_echo_n "(cached) " >&6
40490 else
40491
40492 ice_cv_have_initgroups_decl=no
40493 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40494 ice_re_word='(^|[^a-zA-Z0-9_])'
40495 for header in grp.h sys/types.h unistd.h libc.h; do
40496 # Check for ordinary declaration
40497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40498 /* end confdefs.h.  */
40499 #include <$header>
40500
40501 _ACEOF
40502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40503   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then :
40504   ice_cv_have_initgroups_decl=yes
40505 fi
40506 rm -f conftest*
40507
40508 if test "$ice_cv_have_initgroups_decl" = yes; then
40509         break
40510 fi
40511 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40513 /* end confdefs.h.  */
40514 #include <$header>
40515
40516 _ACEOF
40517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40518   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40519   ice_cv_have_initgroups_decl=yes
40520 fi
40521 rm -f conftest*
40522
40523 if test "$ice_cv_have_initgroups_decl" = yes; then
40524         break
40525 fi
40526 done
40527
40528 fi
40529
40530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_initgroups_decl" >&5
40531 $as_echo "$ice_cv_have_initgroups_decl" >&6; }
40532 if test "$ice_cv_have_initgroups_decl" = yes; then
40533
40534 cat >>confdefs.h <<_ACEOF
40535 #define HAVE_INITGROUPS_DECL 1
40536 _ACEOF
40537
40538 fi
40539 fi
40540
40541
40542 ice_have_ioctl=no
40543 for ac_func in ioctl
40544 do :
40545   ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
40546 if test "x$ac_cv_func_ioctl" = xyes; then :
40547   cat >>confdefs.h <<_ACEOF
40548 #define HAVE_IOCTL 1
40549 _ACEOF
40550  ice_have_ioctl=yes
40551 fi
40552 done
40553
40554 if test "${ice_have_ioctl}" = yes; then
40555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
40556 $as_echo_n "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... " >&6; }
40557 if ${ice_cv_have_ioctl_decl+:} false; then :
40558   $as_echo_n "(cached) " >&6
40559 else
40560
40561 ice_cv_have_ioctl_decl=no
40562 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40563 ice_re_word='(^|[^a-zA-Z0-9_])'
40564 for header in sys/ioctl.h unistd.h libc.h; do
40565 # Check for ordinary declaration
40566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40567 /* end confdefs.h.  */
40568 #include <$header>
40569
40570 _ACEOF
40571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40572   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then :
40573   ice_cv_have_ioctl_decl=yes
40574 fi
40575 rm -f conftest*
40576
40577 if test "$ice_cv_have_ioctl_decl" = yes; then
40578         break
40579 fi
40580 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40582 /* end confdefs.h.  */
40583 #include <$header>
40584
40585 _ACEOF
40586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40587   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40588   ice_cv_have_ioctl_decl=yes
40589 fi
40590 rm -f conftest*
40591
40592 if test "$ice_cv_have_ioctl_decl" = yes; then
40593         break
40594 fi
40595 done
40596
40597 fi
40598
40599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ioctl_decl" >&5
40600 $as_echo "$ice_cv_have_ioctl_decl" >&6; }
40601 if test "$ice_cv_have_ioctl_decl" = yes; then
40602
40603 cat >>confdefs.h <<_ACEOF
40604 #define HAVE_IOCTL_DECL 1
40605 _ACEOF
40606
40607 fi
40608 fi
40609
40610
40611 ice_have_isnormal=no
40612 for ac_func in isnormal
40613 do :
40614   ac_fn_c_check_func "$LINENO" "isnormal" "ac_cv_func_isnormal"
40615 if test "x$ac_cv_func_isnormal" = xyes; then :
40616   cat >>confdefs.h <<_ACEOF
40617 #define HAVE_ISNORMAL 1
40618 _ACEOF
40619  ice_have_isnormal=yes
40620 fi
40621 done
40622
40623 if test "${ice_have_isnormal}" = yes; then
40624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnormal declaration in math.h" >&5
40625 $as_echo_n "checking for isnormal declaration in math.h... " >&6; }
40626 if ${ice_cv_have_isnormal_decl+:} false; then :
40627   $as_echo_n "(cached) " >&6
40628 else
40629
40630 ice_cv_have_isnormal_decl=no
40631 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40632 ice_re_word='(^|[^a-zA-Z0-9_])'
40633 for header in math.h; do
40634 # Check for ordinary declaration
40635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40636 /* end confdefs.h.  */
40637 #include <$header>
40638
40639 _ACEOF
40640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40641   $EGREP "${ice_re_word}isnormal[       ]*\(" >/dev/null 2>&1; then :
40642   ice_cv_have_isnormal_decl=yes
40643 fi
40644 rm -f conftest*
40645
40646 if test "$ice_cv_have_isnormal_decl" = yes; then
40647         break
40648 fi
40649 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40651 /* end confdefs.h.  */
40652 #include <$header>
40653
40654 _ACEOF
40655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40656   $EGREP "${ice_re_word}isnormal[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40657   ice_cv_have_isnormal_decl=yes
40658 fi
40659 rm -f conftest*
40660
40661 if test "$ice_cv_have_isnormal_decl" = yes; then
40662         break
40663 fi
40664 done
40665
40666 fi
40667
40668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_isnormal_decl" >&5
40669 $as_echo "$ice_cv_have_isnormal_decl" >&6; }
40670 if test "$ice_cv_have_isnormal_decl" = yes; then
40671
40672 cat >>confdefs.h <<_ACEOF
40673 #define HAVE_ISNORMAL_DECL 1
40674 _ACEOF
40675
40676 fi
40677 fi
40678
40679
40680 ice_have_listen=no
40681 for ac_func in listen
40682 do :
40683   ac_fn_c_check_func "$LINENO" "listen" "ac_cv_func_listen"
40684 if test "x$ac_cv_func_listen" = xyes; then :
40685   cat >>confdefs.h <<_ACEOF
40686 #define HAVE_LISTEN 1
40687 _ACEOF
40688  ice_have_listen=yes
40689 fi
40690 done
40691
40692 if test "${ice_have_listen}" = yes; then
40693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for listen declaration in sys/types.h sys/socket.h" >&5
40694 $as_echo_n "checking for listen declaration in sys/types.h sys/socket.h... " >&6; }
40695 if ${ice_cv_have_listen_decl+:} false; then :
40696   $as_echo_n "(cached) " >&6
40697 else
40698
40699 ice_cv_have_listen_decl=no
40700 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40701 ice_re_word='(^|[^a-zA-Z0-9_])'
40702 for header in sys/types.h sys/socket.h; do
40703 # Check for ordinary declaration
40704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40705 /* end confdefs.h.  */
40706 #include <$header>
40707
40708 _ACEOF
40709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40710   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then :
40711   ice_cv_have_listen_decl=yes
40712 fi
40713 rm -f conftest*
40714
40715 if test "$ice_cv_have_listen_decl" = yes; then
40716         break
40717 fi
40718 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40720 /* end confdefs.h.  */
40721 #include <$header>
40722
40723 _ACEOF
40724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40725   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40726   ice_cv_have_listen_decl=yes
40727 fi
40728 rm -f conftest*
40729
40730 if test "$ice_cv_have_listen_decl" = yes; then
40731         break
40732 fi
40733 done
40734
40735 fi
40736
40737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_listen_decl" >&5
40738 $as_echo "$ice_cv_have_listen_decl" >&6; }
40739 if test "$ice_cv_have_listen_decl" = yes; then
40740
40741 cat >>confdefs.h <<_ACEOF
40742 #define HAVE_LISTEN_DECL 1
40743 _ACEOF
40744
40745 fi
40746 fi
40747
40748
40749 ice_have_lstat=no
40750 for ac_func in lstat
40751 do :
40752   ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
40753 if test "x$ac_cv_func_lstat" = xyes; then :
40754   cat >>confdefs.h <<_ACEOF
40755 #define HAVE_LSTAT 1
40756 _ACEOF
40757  ice_have_lstat=yes
40758 fi
40759 done
40760
40761 if test "${ice_have_lstat}" = yes; then
40762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat declaration in sys/types.h sys/stat.h" >&5
40763 $as_echo_n "checking for lstat declaration in sys/types.h sys/stat.h... " >&6; }
40764 if ${ice_cv_have_lstat_decl+:} false; then :
40765   $as_echo_n "(cached) " >&6
40766 else
40767
40768 ice_cv_have_lstat_decl=no
40769 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40770 ice_re_word='(^|[^a-zA-Z0-9_])'
40771 for header in sys/types.h sys/stat.h; do
40772 # Check for ordinary declaration
40773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40774 /* end confdefs.h.  */
40775 #include <$header>
40776
40777 _ACEOF
40778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40779   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then :
40780   ice_cv_have_lstat_decl=yes
40781 fi
40782 rm -f conftest*
40783
40784 if test "$ice_cv_have_lstat_decl" = yes; then
40785         break
40786 fi
40787 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40789 /* end confdefs.h.  */
40790 #include <$header>
40791
40792 _ACEOF
40793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40794   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40795   ice_cv_have_lstat_decl=yes
40796 fi
40797 rm -f conftest*
40798
40799 if test "$ice_cv_have_lstat_decl" = yes; then
40800         break
40801 fi
40802 done
40803
40804 fi
40805
40806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_lstat_decl" >&5
40807 $as_echo "$ice_cv_have_lstat_decl" >&6; }
40808 if test "$ice_cv_have_lstat_decl" = yes; then
40809
40810 cat >>confdefs.h <<_ACEOF
40811 #define HAVE_LSTAT_DECL 1
40812 _ACEOF
40813
40814 fi
40815 fi
40816
40817
40818 ice_have_malloc=no
40819 for ac_func in malloc
40820 do :
40821   ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
40822 if test "x$ac_cv_func_malloc" = xyes; then :
40823   cat >>confdefs.h <<_ACEOF
40824 #define HAVE_MALLOC 1
40825 _ACEOF
40826  ice_have_malloc=yes
40827 fi
40828 done
40829
40830 if test "${ice_have_malloc}" = yes; then
40831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc declaration in stdlib.h" >&5
40832 $as_echo_n "checking for malloc declaration in stdlib.h... " >&6; }
40833 if ${ice_cv_have_malloc_decl+:} false; then :
40834   $as_echo_n "(cached) " >&6
40835 else
40836
40837 ice_cv_have_malloc_decl=no
40838 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40839 ice_re_word='(^|[^a-zA-Z0-9_])'
40840 for header in stdlib.h; do
40841 # Check for ordinary declaration
40842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40843 /* end confdefs.h.  */
40844 #include <$header>
40845
40846 _ACEOF
40847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40848   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then :
40849   ice_cv_have_malloc_decl=yes
40850 fi
40851 rm -f conftest*
40852
40853 if test "$ice_cv_have_malloc_decl" = yes; then
40854         break
40855 fi
40856 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40858 /* end confdefs.h.  */
40859 #include <$header>
40860
40861 _ACEOF
40862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40863   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40864   ice_cv_have_malloc_decl=yes
40865 fi
40866 rm -f conftest*
40867
40868 if test "$ice_cv_have_malloc_decl" = yes; then
40869         break
40870 fi
40871 done
40872
40873 fi
40874
40875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_malloc_decl" >&5
40876 $as_echo "$ice_cv_have_malloc_decl" >&6; }
40877 if test "$ice_cv_have_malloc_decl" = yes; then
40878
40879 cat >>confdefs.h <<_ACEOF
40880 #define HAVE_MALLOC_DECL 1
40881 _ACEOF
40882
40883 fi
40884 fi
40885
40886
40887 ice_have_memmove=no
40888 for ac_func in memmove
40889 do :
40890   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
40891 if test "x$ac_cv_func_memmove" = xyes; then :
40892   cat >>confdefs.h <<_ACEOF
40893 #define HAVE_MEMMOVE 1
40894 _ACEOF
40895  ice_have_memmove=yes
40896 fi
40897 done
40898
40899 if test "${ice_have_memmove}" = yes; then
40900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memmove declaration in string.h strings.h" >&5
40901 $as_echo_n "checking for memmove declaration in string.h strings.h... " >&6; }
40902 if ${ice_cv_have_memmove_decl+:} false; then :
40903   $as_echo_n "(cached) " >&6
40904 else
40905
40906 ice_cv_have_memmove_decl=no
40907 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40908 ice_re_word='(^|[^a-zA-Z0-9_])'
40909 for header in string.h strings.h; do
40910 # Check for ordinary declaration
40911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40912 /* end confdefs.h.  */
40913 #include <$header>
40914
40915 _ACEOF
40916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40917   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then :
40918   ice_cv_have_memmove_decl=yes
40919 fi
40920 rm -f conftest*
40921
40922 if test "$ice_cv_have_memmove_decl" = yes; then
40923         break
40924 fi
40925 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40927 /* end confdefs.h.  */
40928 #include <$header>
40929
40930 _ACEOF
40931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40932   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40933   ice_cv_have_memmove_decl=yes
40934 fi
40935 rm -f conftest*
40936
40937 if test "$ice_cv_have_memmove_decl" = yes; then
40938         break
40939 fi
40940 done
40941
40942 fi
40943
40944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_memmove_decl" >&5
40945 $as_echo "$ice_cv_have_memmove_decl" >&6; }
40946 if test "$ice_cv_have_memmove_decl" = yes; then
40947
40948 cat >>confdefs.h <<_ACEOF
40949 #define HAVE_MEMMOVE_DECL 1
40950 _ACEOF
40951
40952 fi
40953 fi
40954
40955
40956 ice_have_memset=no
40957 for ac_func in memset
40958 do :
40959   ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
40960 if test "x$ac_cv_func_memset" = xyes; then :
40961   cat >>confdefs.h <<_ACEOF
40962 #define HAVE_MEMSET 1
40963 _ACEOF
40964  ice_have_memset=yes
40965 fi
40966 done
40967
40968 if test "${ice_have_memset}" = yes; then
40969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memset declaration in string.h strings.h" >&5
40970 $as_echo_n "checking for memset declaration in string.h strings.h... " >&6; }
40971 if ${ice_cv_have_memset_decl+:} false; then :
40972   $as_echo_n "(cached) " >&6
40973 else
40974
40975 ice_cv_have_memset_decl=no
40976 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40977 ice_re_word='(^|[^a-zA-Z0-9_])'
40978 for header in string.h strings.h; do
40979 # Check for ordinary declaration
40980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40981 /* end confdefs.h.  */
40982 #include <$header>
40983
40984 _ACEOF
40985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40986   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then :
40987   ice_cv_have_memset_decl=yes
40988 fi
40989 rm -f conftest*
40990
40991 if test "$ice_cv_have_memset_decl" = yes; then
40992         break
40993 fi
40994 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40996 /* end confdefs.h.  */
40997 #include <$header>
40998
40999 _ACEOF
41000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41001   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41002   ice_cv_have_memset_decl=yes
41003 fi
41004 rm -f conftest*
41005
41006 if test "$ice_cv_have_memset_decl" = yes; then
41007         break
41008 fi
41009 done
41010
41011 fi
41012
41013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_memset_decl" >&5
41014 $as_echo "$ice_cv_have_memset_decl" >&6; }
41015 if test "$ice_cv_have_memset_decl" = yes; then
41016
41017 cat >>confdefs.h <<_ACEOF
41018 #define HAVE_MEMSET_DECL 1
41019 _ACEOF
41020
41021 fi
41022 fi
41023
41024
41025 ice_have_mkstemp=no
41026 for ac_func in mkstemp
41027 do :
41028   ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
41029 if test "x$ac_cv_func_mkstemp" = xyes; then :
41030   cat >>confdefs.h <<_ACEOF
41031 #define HAVE_MKSTEMP 1
41032 _ACEOF
41033  ice_have_mkstemp=yes
41034 fi
41035 done
41036
41037 if test "${ice_have_mkstemp}" = yes; then
41038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkstemp declaration in stdlib.h" >&5
41039 $as_echo_n "checking for mkstemp declaration in stdlib.h... " >&6; }
41040 if ${ice_cv_have_mkstemp_decl+:} false; then :
41041   $as_echo_n "(cached) " >&6
41042 else
41043
41044 ice_cv_have_mkstemp_decl=no
41045 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41046 ice_re_word='(^|[^a-zA-Z0-9_])'
41047 for header in stdlib.h; do
41048 # Check for ordinary declaration
41049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41050 /* end confdefs.h.  */
41051 #include <$header>
41052
41053 _ACEOF
41054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41055   $EGREP "${ice_re_word}mkstemp[        ]*\(" >/dev/null 2>&1; then :
41056   ice_cv_have_mkstemp_decl=yes
41057 fi
41058 rm -f conftest*
41059
41060 if test "$ice_cv_have_mkstemp_decl" = yes; then
41061         break
41062 fi
41063 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41065 /* end confdefs.h.  */
41066 #include <$header>
41067
41068 _ACEOF
41069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41070   $EGREP "${ice_re_word}mkstemp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41071   ice_cv_have_mkstemp_decl=yes
41072 fi
41073 rm -f conftest*
41074
41075 if test "$ice_cv_have_mkstemp_decl" = yes; then
41076         break
41077 fi
41078 done
41079
41080 fi
41081
41082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mkstemp_decl" >&5
41083 $as_echo "$ice_cv_have_mkstemp_decl" >&6; }
41084 if test "$ice_cv_have_mkstemp_decl" = yes; then
41085
41086 cat >>confdefs.h <<_ACEOF
41087 #define HAVE_MKSTEMP_DECL 1
41088 _ACEOF
41089
41090 fi
41091 fi
41092
41093
41094 ice_have_mktemp=no
41095 for ac_func in mktemp
41096 do :
41097   ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
41098 if test "x$ac_cv_func_mktemp" = xyes; then :
41099   cat >>confdefs.h <<_ACEOF
41100 #define HAVE_MKTEMP 1
41101 _ACEOF
41102  ice_have_mktemp=yes
41103 fi
41104 done
41105
41106 if test "${ice_have_mktemp}" = yes; then
41107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mktemp declaration in stdlib.h" >&5
41108 $as_echo_n "checking for mktemp declaration in stdlib.h... " >&6; }
41109 if ${ice_cv_have_mktemp_decl+:} false; then :
41110   $as_echo_n "(cached) " >&6
41111 else
41112
41113 ice_cv_have_mktemp_decl=no
41114 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41115 ice_re_word='(^|[^a-zA-Z0-9_])'
41116 for header in stdlib.h; do
41117 # Check for ordinary declaration
41118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41119 /* end confdefs.h.  */
41120 #include <$header>
41121
41122 _ACEOF
41123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41124   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then :
41125   ice_cv_have_mktemp_decl=yes
41126 fi
41127 rm -f conftest*
41128
41129 if test "$ice_cv_have_mktemp_decl" = yes; then
41130         break
41131 fi
41132 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41134 /* end confdefs.h.  */
41135 #include <$header>
41136
41137 _ACEOF
41138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41139   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41140   ice_cv_have_mktemp_decl=yes
41141 fi
41142 rm -f conftest*
41143
41144 if test "$ice_cv_have_mktemp_decl" = yes; then
41145         break
41146 fi
41147 done
41148
41149 fi
41150
41151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mktemp_decl" >&5
41152 $as_echo "$ice_cv_have_mktemp_decl" >&6; }
41153 if test "$ice_cv_have_mktemp_decl" = yes; then
41154
41155 cat >>confdefs.h <<_ACEOF
41156 #define HAVE_MKTEMP_DECL 1
41157 _ACEOF
41158
41159 fi
41160 fi
41161
41162
41163 ice_have_mktime=no
41164 for ac_func in mktime
41165 do :
41166   ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
41167 if test "x$ac_cv_func_mktime" = xyes; then :
41168   cat >>confdefs.h <<_ACEOF
41169 #define HAVE_MKTIME 1
41170 _ACEOF
41171  ice_have_mktime=yes
41172 fi
41173 done
41174
41175 if test "${ice_have_mktime}" = yes; then
41176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mktime declaration in time.h sys/time.h" >&5
41177 $as_echo_n "checking for mktime declaration in time.h sys/time.h... " >&6; }
41178 if ${ice_cv_have_mktime_decl+:} false; then :
41179   $as_echo_n "(cached) " >&6
41180 else
41181
41182 ice_cv_have_mktime_decl=no
41183 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41184 ice_re_word='(^|[^a-zA-Z0-9_])'
41185 for header in time.h sys/time.h; do
41186 # Check for ordinary declaration
41187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41188 /* end confdefs.h.  */
41189 #include <$header>
41190
41191 _ACEOF
41192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41193   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then :
41194   ice_cv_have_mktime_decl=yes
41195 fi
41196 rm -f conftest*
41197
41198 if test "$ice_cv_have_mktime_decl" = yes; then
41199         break
41200 fi
41201 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41203 /* end confdefs.h.  */
41204 #include <$header>
41205
41206 _ACEOF
41207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41208   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41209   ice_cv_have_mktime_decl=yes
41210 fi
41211 rm -f conftest*
41212
41213 if test "$ice_cv_have_mktime_decl" = yes; then
41214         break
41215 fi
41216 done
41217
41218 fi
41219
41220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mktime_decl" >&5
41221 $as_echo "$ice_cv_have_mktime_decl" >&6; }
41222 if test "$ice_cv_have_mktime_decl" = yes; then
41223
41224 cat >>confdefs.h <<_ACEOF
41225 #define HAVE_MKTIME_DECL 1
41226 _ACEOF
41227
41228 fi
41229 fi
41230
41231 for ac_func in on_exit
41232 do :
41233   ac_fn_c_check_func "$LINENO" "on_exit" "ac_cv_func_on_exit"
41234 if test "x$ac_cv_func_on_exit" = xyes; then :
41235   cat >>confdefs.h <<_ACEOF
41236 #define HAVE_ON_EXIT 1
41237 _ACEOF
41238
41239 fi
41240 done
41241
41242
41243 ice_have_openlog=no
41244 for ac_func in openlog
41245 do :
41246   ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
41247 if test "x$ac_cv_func_openlog" = xyes; then :
41248   cat >>confdefs.h <<_ACEOF
41249 #define HAVE_OPENLOG 1
41250 _ACEOF
41251  ice_have_openlog=yes
41252 fi
41253 done
41254
41255 if test "${ice_have_openlog}" = yes; then
41256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openlog declaration in syslog.h" >&5
41257 $as_echo_n "checking for openlog declaration in syslog.h... " >&6; }
41258 if ${ice_cv_have_openlog_decl+:} false; then :
41259   $as_echo_n "(cached) " >&6
41260 else
41261
41262 ice_cv_have_openlog_decl=no
41263 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41264 ice_re_word='(^|[^a-zA-Z0-9_])'
41265 for header in syslog.h; do
41266 # Check for ordinary declaration
41267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41268 /* end confdefs.h.  */
41269 #include <$header>
41270
41271 _ACEOF
41272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41273   $EGREP "${ice_re_word}openlog[        ]*\(" >/dev/null 2>&1; then :
41274   ice_cv_have_openlog_decl=yes
41275 fi
41276 rm -f conftest*
41277
41278 if test "$ice_cv_have_openlog_decl" = yes; then
41279         break
41280 fi
41281 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41283 /* end confdefs.h.  */
41284 #include <$header>
41285
41286 _ACEOF
41287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41288   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41289   ice_cv_have_openlog_decl=yes
41290 fi
41291 rm -f conftest*
41292
41293 if test "$ice_cv_have_openlog_decl" = yes; then
41294         break
41295 fi
41296 done
41297
41298 fi
41299
41300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_openlog_decl" >&5
41301 $as_echo "$ice_cv_have_openlog_decl" >&6; }
41302 if test "$ice_cv_have_openlog_decl" = yes; then
41303
41304 cat >>confdefs.h <<_ACEOF
41305 #define HAVE_OPENLOG_DECL 1
41306 _ACEOF
41307
41308 fi
41309 fi
41310
41311
41312 ice_have_pclose=no
41313 for ac_func in pclose
41314 do :
41315   ac_fn_c_check_func "$LINENO" "pclose" "ac_cv_func_pclose"
41316 if test "x$ac_cv_func_pclose" = xyes; then :
41317   cat >>confdefs.h <<_ACEOF
41318 #define HAVE_PCLOSE 1
41319 _ACEOF
41320  ice_have_pclose=yes
41321 fi
41322 done
41323
41324 if test "${ice_have_pclose}" = yes; then
41325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pclose declaration in stdio.h" >&5
41326 $as_echo_n "checking for pclose declaration in stdio.h... " >&6; }
41327 if ${ice_cv_have_pclose_decl+:} false; then :
41328   $as_echo_n "(cached) " >&6
41329 else
41330
41331 ice_cv_have_pclose_decl=no
41332 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41333 ice_re_word='(^|[^a-zA-Z0-9_])'
41334 for header in stdio.h; do
41335 # Check for ordinary declaration
41336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41337 /* end confdefs.h.  */
41338 #include <$header>
41339
41340 _ACEOF
41341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41342   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then :
41343   ice_cv_have_pclose_decl=yes
41344 fi
41345 rm -f conftest*
41346
41347 if test "$ice_cv_have_pclose_decl" = yes; then
41348         break
41349 fi
41350 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41352 /* end confdefs.h.  */
41353 #include <$header>
41354
41355 _ACEOF
41356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41357   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41358   ice_cv_have_pclose_decl=yes
41359 fi
41360 rm -f conftest*
41361
41362 if test "$ice_cv_have_pclose_decl" = yes; then
41363         break
41364 fi
41365 done
41366
41367 fi
41368
41369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_pclose_decl" >&5
41370 $as_echo "$ice_cv_have_pclose_decl" >&6; }
41371 if test "$ice_cv_have_pclose_decl" = yes; then
41372
41373 cat >>confdefs.h <<_ACEOF
41374 #define HAVE_PCLOSE_DECL 1
41375 _ACEOF
41376
41377 fi
41378 fi
41379
41380
41381 ice_have_perror=no
41382 for ac_func in perror
41383 do :
41384   ac_fn_c_check_func "$LINENO" "perror" "ac_cv_func_perror"
41385 if test "x$ac_cv_func_perror" = xyes; then :
41386   cat >>confdefs.h <<_ACEOF
41387 #define HAVE_PERROR 1
41388 _ACEOF
41389  ice_have_perror=yes
41390 fi
41391 done
41392
41393 if test "${ice_have_perror}" = yes; then
41394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perror declaration in stdio.h" >&5
41395 $as_echo_n "checking for perror declaration in stdio.h... " >&6; }
41396 if ${ice_cv_have_perror_decl+:} false; then :
41397   $as_echo_n "(cached) " >&6
41398 else
41399
41400 ice_cv_have_perror_decl=no
41401 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41402 ice_re_word='(^|[^a-zA-Z0-9_])'
41403 for header in stdio.h; do
41404 # Check for ordinary declaration
41405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41406 /* end confdefs.h.  */
41407 #include <$header>
41408
41409 _ACEOF
41410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41411   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then :
41412   ice_cv_have_perror_decl=yes
41413 fi
41414 rm -f conftest*
41415
41416 if test "$ice_cv_have_perror_decl" = yes; then
41417         break
41418 fi
41419 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41421 /* end confdefs.h.  */
41422 #include <$header>
41423
41424 _ACEOF
41425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41426   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41427   ice_cv_have_perror_decl=yes
41428 fi
41429 rm -f conftest*
41430
41431 if test "$ice_cv_have_perror_decl" = yes; then
41432         break
41433 fi
41434 done
41435
41436 fi
41437
41438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_perror_decl" >&5
41439 $as_echo "$ice_cv_have_perror_decl" >&6; }
41440 if test "$ice_cv_have_perror_decl" = yes; then
41441
41442 cat >>confdefs.h <<_ACEOF
41443 #define HAVE_PERROR_DECL 1
41444 _ACEOF
41445
41446 fi
41447 fi
41448
41449
41450 ice_have_printf=no
41451 for ac_func in printf
41452 do :
41453   ac_fn_c_check_func "$LINENO" "printf" "ac_cv_func_printf"
41454 if test "x$ac_cv_func_printf" = xyes; then :
41455   cat >>confdefs.h <<_ACEOF
41456 #define HAVE_PRINTF 1
41457 _ACEOF
41458  ice_have_printf=yes
41459 fi
41460 done
41461
41462 if test "${ice_have_printf}" = yes; then
41463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf declaration in stdio.h" >&5
41464 $as_echo_n "checking for printf declaration in stdio.h... " >&6; }
41465 if ${ice_cv_have_printf_decl+:} false; then :
41466   $as_echo_n "(cached) " >&6
41467 else
41468
41469 ice_cv_have_printf_decl=no
41470 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41471 ice_re_word='(^|[^a-zA-Z0-9_])'
41472 for header in stdio.h; do
41473 # Check for ordinary declaration
41474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41475 /* end confdefs.h.  */
41476 #include <$header>
41477
41478 _ACEOF
41479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41480   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then :
41481   ice_cv_have_printf_decl=yes
41482 fi
41483 rm -f conftest*
41484
41485 if test "$ice_cv_have_printf_decl" = yes; then
41486         break
41487 fi
41488 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41490 /* end confdefs.h.  */
41491 #include <$header>
41492
41493 _ACEOF
41494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41495   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41496   ice_cv_have_printf_decl=yes
41497 fi
41498 rm -f conftest*
41499
41500 if test "$ice_cv_have_printf_decl" = yes; then
41501         break
41502 fi
41503 done
41504
41505 fi
41506
41507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_printf_decl" >&5
41508 $as_echo "$ice_cv_have_printf_decl" >&6; }
41509 if test "$ice_cv_have_printf_decl" = yes; then
41510
41511 cat >>confdefs.h <<_ACEOF
41512 #define HAVE_PRINTF_DECL 1
41513 _ACEOF
41514
41515 fi
41516 fi
41517
41518 for ac_func in putenv
41519 do :
41520   ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
41521 if test "x$ac_cv_func_putenv" = xyes; then :
41522   cat >>confdefs.h <<_ACEOF
41523 #define HAVE_PUTENV 1
41524 _ACEOF
41525
41526 fi
41527 done
41528
41529
41530 ice_have_puts=no
41531 for ac_func in puts
41532 do :
41533   ac_fn_c_check_func "$LINENO" "puts" "ac_cv_func_puts"
41534 if test "x$ac_cv_func_puts" = xyes; then :
41535   cat >>confdefs.h <<_ACEOF
41536 #define HAVE_PUTS 1
41537 _ACEOF
41538  ice_have_puts=yes
41539 fi
41540 done
41541
41542 if test "${ice_have_puts}" = yes; then
41543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts declaration in stdio.h" >&5
41544 $as_echo_n "checking for puts declaration in stdio.h... " >&6; }
41545 if ${ice_cv_have_puts_decl+:} false; then :
41546   $as_echo_n "(cached) " >&6
41547 else
41548
41549 ice_cv_have_puts_decl=no
41550 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41551 ice_re_word='(^|[^a-zA-Z0-9_])'
41552 for header in stdio.h; do
41553 # Check for ordinary declaration
41554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41555 /* end confdefs.h.  */
41556 #include <$header>
41557
41558 _ACEOF
41559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41560   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then :
41561   ice_cv_have_puts_decl=yes
41562 fi
41563 rm -f conftest*
41564
41565 if test "$ice_cv_have_puts_decl" = yes; then
41566         break
41567 fi
41568 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41570 /* end confdefs.h.  */
41571 #include <$header>
41572
41573 _ACEOF
41574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41575   $EGREP "${ice_re_word}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41576   ice_cv_have_puts_decl=yes
41577 fi
41578 rm -f conftest*
41579
41580 if test "$ice_cv_have_puts_decl" = yes; then
41581         break
41582 fi
41583 done
41584
41585 fi
41586
41587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_puts_decl" >&5
41588 $as_echo "$ice_cv_have_puts_decl" >&6; }
41589 if test "$ice_cv_have_puts_decl" = yes; then
41590
41591 cat >>confdefs.h <<_ACEOF
41592 #define HAVE_PUTS_DECL 1
41593 _ACEOF
41594
41595 fi
41596 fi
41597
41598
41599 ice_have_realloc=no
41600 for ac_func in realloc
41601 do :
41602   ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
41603 if test "x$ac_cv_func_realloc" = xyes; then :
41604   cat >>confdefs.h <<_ACEOF
41605 #define HAVE_REALLOC 1
41606 _ACEOF
41607  ice_have_realloc=yes
41608 fi
41609 done
41610
41611 if test "${ice_have_realloc}" = yes; then
41612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for realloc declaration in stdlib.h" >&5
41613 $as_echo_n "checking for realloc declaration in stdlib.h... " >&6; }
41614 if ${ice_cv_have_realloc_decl+:} false; then :
41615   $as_echo_n "(cached) " >&6
41616 else
41617
41618 ice_cv_have_realloc_decl=no
41619 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41620 ice_re_word='(^|[^a-zA-Z0-9_])'
41621 for header in stdlib.h; do
41622 # Check for ordinary declaration
41623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41624 /* end confdefs.h.  */
41625 #include <$header>
41626
41627 _ACEOF
41628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41629   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then :
41630   ice_cv_have_realloc_decl=yes
41631 fi
41632 rm -f conftest*
41633
41634 if test "$ice_cv_have_realloc_decl" = yes; then
41635         break
41636 fi
41637 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41639 /* end confdefs.h.  */
41640 #include <$header>
41641
41642 _ACEOF
41643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41644   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41645   ice_cv_have_realloc_decl=yes
41646 fi
41647 rm -f conftest*
41648
41649 if test "$ice_cv_have_realloc_decl" = yes; then
41650         break
41651 fi
41652 done
41653
41654 fi
41655
41656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_realloc_decl" >&5
41657 $as_echo "$ice_cv_have_realloc_decl" >&6; }
41658 if test "$ice_cv_have_realloc_decl" = yes; then
41659
41660 cat >>confdefs.h <<_ACEOF
41661 #define HAVE_REALLOC_DECL 1
41662 _ACEOF
41663
41664 fi
41665 fi
41666
41667
41668 ice_have_recvfrom=no
41669 for ac_func in recvfrom
41670 do :
41671   ac_fn_c_check_func "$LINENO" "recvfrom" "ac_cv_func_recvfrom"
41672 if test "x$ac_cv_func_recvfrom" = xyes; then :
41673   cat >>confdefs.h <<_ACEOF
41674 #define HAVE_RECVFROM 1
41675 _ACEOF
41676  ice_have_recvfrom=yes
41677 fi
41678 done
41679
41680 if test "${ice_have_recvfrom}" = yes; then
41681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
41682 $as_echo_n "checking for recvfrom declaration in sys/types.h sys/socket.h... " >&6; }
41683 if ${ice_cv_have_recvfrom_decl+:} false; then :
41684   $as_echo_n "(cached) " >&6
41685 else
41686
41687 ice_cv_have_recvfrom_decl=no
41688 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41689 ice_re_word='(^|[^a-zA-Z0-9_])'
41690 for header in sys/types.h sys/socket.h; do
41691 # Check for ordinary declaration
41692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41693 /* end confdefs.h.  */
41694 #include <$header>
41695
41696 _ACEOF
41697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41698   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then :
41699   ice_cv_have_recvfrom_decl=yes
41700 fi
41701 rm -f conftest*
41702
41703 if test "$ice_cv_have_recvfrom_decl" = yes; then
41704         break
41705 fi
41706 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41708 /* end confdefs.h.  */
41709 #include <$header>
41710
41711 _ACEOF
41712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41713   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41714   ice_cv_have_recvfrom_decl=yes
41715 fi
41716 rm -f conftest*
41717
41718 if test "$ice_cv_have_recvfrom_decl" = yes; then
41719         break
41720 fi
41721 done
41722
41723 fi
41724
41725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_recvfrom_decl" >&5
41726 $as_echo "$ice_cv_have_recvfrom_decl" >&6; }
41727 if test "$ice_cv_have_recvfrom_decl" = yes; then
41728
41729 cat >>confdefs.h <<_ACEOF
41730 #define HAVE_RECVFROM_DECL 1
41731 _ACEOF
41732
41733 fi
41734 fi
41735
41736
41737 ice_have_remove=no
41738 for ac_func in remove
41739 do :
41740   ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
41741 if test "x$ac_cv_func_remove" = xyes; then :
41742   cat >>confdefs.h <<_ACEOF
41743 #define HAVE_REMOVE 1
41744 _ACEOF
41745  ice_have_remove=yes
41746 fi
41747 done
41748
41749 if test "${ice_have_remove}" = yes; then
41750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove declaration in stdio.h" >&5
41751 $as_echo_n "checking for remove declaration in stdio.h... " >&6; }
41752 if ${ice_cv_have_remove_decl+:} false; then :
41753   $as_echo_n "(cached) " >&6
41754 else
41755
41756 ice_cv_have_remove_decl=no
41757 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41758 ice_re_word='(^|[^a-zA-Z0-9_])'
41759 for header in stdio.h; do
41760 # Check for ordinary declaration
41761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41762 /* end confdefs.h.  */
41763 #include <$header>
41764
41765 _ACEOF
41766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41767   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then :
41768   ice_cv_have_remove_decl=yes
41769 fi
41770 rm -f conftest*
41771
41772 if test "$ice_cv_have_remove_decl" = yes; then
41773         break
41774 fi
41775 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41777 /* end confdefs.h.  */
41778 #include <$header>
41779
41780 _ACEOF
41781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41782   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41783   ice_cv_have_remove_decl=yes
41784 fi
41785 rm -f conftest*
41786
41787 if test "$ice_cv_have_remove_decl" = yes; then
41788         break
41789 fi
41790 done
41791
41792 fi
41793
41794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_remove_decl" >&5
41795 $as_echo "$ice_cv_have_remove_decl" >&6; }
41796 if test "$ice_cv_have_remove_decl" = yes; then
41797
41798 cat >>confdefs.h <<_ACEOF
41799 #define HAVE_REMOVE_DECL 1
41800 _ACEOF
41801
41802 fi
41803 fi
41804
41805
41806 ice_have_rename=no
41807 for ac_func in rename
41808 do :
41809   ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename"
41810 if test "x$ac_cv_func_rename" = xyes; then :
41811   cat >>confdefs.h <<_ACEOF
41812 #define HAVE_RENAME 1
41813 _ACEOF
41814  ice_have_rename=yes
41815 fi
41816 done
41817
41818 if test "${ice_have_rename}" = yes; then
41819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename declaration in stdio.h" >&5
41820 $as_echo_n "checking for rename declaration in stdio.h... " >&6; }
41821 if ${ice_cv_have_rename_decl+:} false; then :
41822   $as_echo_n "(cached) " >&6
41823 else
41824
41825 ice_cv_have_rename_decl=no
41826 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41827 ice_re_word='(^|[^a-zA-Z0-9_])'
41828 for header in stdio.h; do
41829 # Check for ordinary declaration
41830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41831 /* end confdefs.h.  */
41832 #include <$header>
41833
41834 _ACEOF
41835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41836   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then :
41837   ice_cv_have_rename_decl=yes
41838 fi
41839 rm -f conftest*
41840
41841 if test "$ice_cv_have_rename_decl" = yes; then
41842         break
41843 fi
41844 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41846 /* end confdefs.h.  */
41847 #include <$header>
41848
41849 _ACEOF
41850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41851   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41852   ice_cv_have_rename_decl=yes
41853 fi
41854 rm -f conftest*
41855
41856 if test "$ice_cv_have_rename_decl" = yes; then
41857         break
41858 fi
41859 done
41860
41861 fi
41862
41863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_rename_decl" >&5
41864 $as_echo "$ice_cv_have_rename_decl" >&6; }
41865 if test "$ice_cv_have_rename_decl" = yes; then
41866
41867 cat >>confdefs.h <<_ACEOF
41868 #define HAVE_RENAME_DECL 1
41869 _ACEOF
41870
41871 fi
41872 fi
41873
41874
41875 ice_have_rewind=no
41876 for ac_func in rewind
41877 do :
41878   ac_fn_c_check_func "$LINENO" "rewind" "ac_cv_func_rewind"
41879 if test "x$ac_cv_func_rewind" = xyes; then :
41880   cat >>confdefs.h <<_ACEOF
41881 #define HAVE_REWIND 1
41882 _ACEOF
41883  ice_have_rewind=yes
41884 fi
41885 done
41886
41887 if test "${ice_have_rewind}" = yes; then
41888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rewind declaration in stdio.h" >&5
41889 $as_echo_n "checking for rewind declaration in stdio.h... " >&6; }
41890 if ${ice_cv_have_rewind_decl+:} false; then :
41891   $as_echo_n "(cached) " >&6
41892 else
41893
41894 ice_cv_have_rewind_decl=no
41895 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41896 ice_re_word='(^|[^a-zA-Z0-9_])'
41897 for header in stdio.h; do
41898 # Check for ordinary declaration
41899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41900 /* end confdefs.h.  */
41901 #include <$header>
41902
41903 _ACEOF
41904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41905   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then :
41906   ice_cv_have_rewind_decl=yes
41907 fi
41908 rm -f conftest*
41909
41910 if test "$ice_cv_have_rewind_decl" = yes; then
41911         break
41912 fi
41913 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41915 /* end confdefs.h.  */
41916 #include <$header>
41917
41918 _ACEOF
41919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41920   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41921   ice_cv_have_rewind_decl=yes
41922 fi
41923 rm -f conftest*
41924
41925 if test "$ice_cv_have_rewind_decl" = yes; then
41926         break
41927 fi
41928 done
41929
41930 fi
41931
41932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_rewind_decl" >&5
41933 $as_echo "$ice_cv_have_rewind_decl" >&6; }
41934 if test "$ice_cv_have_rewind_decl" = yes; then
41935
41936 cat >>confdefs.h <<_ACEOF
41937 #define HAVE_REWIND_DECL 1
41938 _ACEOF
41939
41940 fi
41941 fi
41942
41943
41944 ice_have_ruserok=no
41945 for ac_func in ruserok
41946 do :
41947   ac_fn_c_check_func "$LINENO" "ruserok" "ac_cv_func_ruserok"
41948 if test "x$ac_cv_func_ruserok" = xyes; then :
41949   cat >>confdefs.h <<_ACEOF
41950 #define HAVE_RUSEROK 1
41951 _ACEOF
41952  ice_have_ruserok=yes
41953 fi
41954 done
41955
41956 if test "${ice_have_ruserok}" = yes; then
41957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
41958 $as_echo_n "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... " >&6; }
41959 if ${ice_cv_have_ruserok_decl+:} false; then :
41960   $as_echo_n "(cached) " >&6
41961 else
41962
41963 ice_cv_have_ruserok_decl=no
41964 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41965 ice_re_word='(^|[^a-zA-Z0-9_])'
41966 for header in netdb.h sys/socket.h libc.h unistd.h; do
41967 # Check for ordinary declaration
41968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41969 /* end confdefs.h.  */
41970 #include <$header>
41971
41972 _ACEOF
41973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41974   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then :
41975   ice_cv_have_ruserok_decl=yes
41976 fi
41977 rm -f conftest*
41978
41979 if test "$ice_cv_have_ruserok_decl" = yes; then
41980         break
41981 fi
41982 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41984 /* end confdefs.h.  */
41985 #include <$header>
41986
41987 _ACEOF
41988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41989   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41990   ice_cv_have_ruserok_decl=yes
41991 fi
41992 rm -f conftest*
41993
41994 if test "$ice_cv_have_ruserok_decl" = yes; then
41995         break
41996 fi
41997 done
41998
41999 fi
42000
42001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ruserok_decl" >&5
42002 $as_echo "$ice_cv_have_ruserok_decl" >&6; }
42003 if test "$ice_cv_have_ruserok_decl" = yes; then
42004
42005 cat >>confdefs.h <<_ACEOF
42006 #define HAVE_RUSEROK_DECL 1
42007 _ACEOF
42008
42009 fi
42010 fi
42011
42012
42013 ice_have_select=no
42014 for ac_func in select
42015 do :
42016   ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
42017 if test "x$ac_cv_func_select" = xyes; then :
42018   cat >>confdefs.h <<_ACEOF
42019 #define HAVE_SELECT 1
42020 _ACEOF
42021  ice_have_select=yes
42022 fi
42023 done
42024
42025 if test "${ice_have_select}" = yes; then
42026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
42027 $as_echo_n "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... " >&6; }
42028 if ${ice_cv_have_select_decl+:} false; then :
42029   $as_echo_n "(cached) " >&6
42030 else
42031
42032 ice_cv_have_select_decl=no
42033 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42034 ice_re_word='(^|[^a-zA-Z0-9_])'
42035 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
42036 # Check for ordinary declaration
42037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42038 /* end confdefs.h.  */
42039 #include <$header>
42040
42041 _ACEOF
42042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42043   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then :
42044   ice_cv_have_select_decl=yes
42045 fi
42046 rm -f conftest*
42047
42048 if test "$ice_cv_have_select_decl" = yes; then
42049         break
42050 fi
42051 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42053 /* end confdefs.h.  */
42054 #include <$header>
42055
42056 _ACEOF
42057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42058   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42059   ice_cv_have_select_decl=yes
42060 fi
42061 rm -f conftest*
42062
42063 if test "$ice_cv_have_select_decl" = yes; then
42064         break
42065 fi
42066 done
42067
42068 fi
42069
42070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_select_decl" >&5
42071 $as_echo "$ice_cv_have_select_decl" >&6; }
42072 if test "$ice_cv_have_select_decl" = yes; then
42073
42074 cat >>confdefs.h <<_ACEOF
42075 #define HAVE_SELECT_DECL 1
42076 _ACEOF
42077
42078 fi
42079 fi
42080
42081
42082
42083         for ac_header in sys/time.h \
42084             sys/types.h \
42085             sys/select.h \
42086             sys/socket.h \
42087             unistd.h \
42088
42089 do :
42090   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42091 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
42092 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
42093   cat >>confdefs.h <<_ACEOF
42094 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42095 _ACEOF
42096
42097 fi
42098
42099 done
42100
42101
42102         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select() argument type" >&5
42103 $as_echo_n "checking for select() argument type... " >&6; }
42104 if ${amanda_cv_select_arg_type+:} false; then :
42105   $as_echo_n "(cached) " >&6
42106 else
42107
42108                 rm -f conftest.c
42109                 cat <<EOF >conftest.$ac_ext
42110 #include "confdefs.h"
42111 #ifdef TIME_WITH_SYS_TIME
42112 #  include <sys/time.h>
42113 #  include <time.h>
42114 #else
42115 #  ifdef HAVE_SYS_TIME_H
42116 #    include <sys/time.h>
42117 #  else
42118 #    include <time.h>
42119 #  endif
42120 #endif
42121 #ifdef HAVE_SYS_TYPES_H
42122 # include <sys/types.h>
42123 #endif
42124 #ifdef HAVE_SYS_SELECT_H
42125 #  include <sys/select.h>
42126 #endif
42127 #ifdef HAVE_SYS_SOCKET_H
42128 #  include <sys/socket.h>
42129 #endif
42130 #ifdef HAVE_UNISTD_H
42131 # include <unistd.h>
42132 #endif
42133
42134 int main()
42135 {
42136 #ifdef FD_SET_POINTER
42137         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
42138 #else
42139         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
42140 #endif
42141         return 0;
42142 }
42143 EOF
42144
42145                 # Figure out the select argument type by first trying to
42146                 # compile with the fd_set argument.  If the compile fails,
42147                 # then we know to use the int.  If it suceeds, then try to
42148                 # use the int.  If the int fails, then use fd_set.  If
42149                 # both suceeed, then do a line count on the number of
42150                 # lines that the compiler spit out, assuming that the
42151                 # compile outputing more lines had more errors.
42152                 amanda_cv_select_arg_type=no
42153                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
42154                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
42155                 if test $? -ne 0; then
42156                     amanda_cv_select_arg_type=int
42157                 fi
42158                 if test "$amanda_cv_select_arg_type" = no; then
42159                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
42160                     if test $? -ne 0; then
42161                         amanda_cv_select_arg_type=fd_set
42162                     fi
42163                 fi
42164                 if test "$amanda_cv_select_arg_type" = no; then
42165                     wc_fdset=`wc -l <conftest.fd_set`
42166                     wc_int=`wc -l <conftest.int`
42167                     if test "$wc_fdset" -le "$wc_int"; then
42168                         amanda_cv_select_arg_type=fd_set
42169                     else
42170                         amanda_cv_select_arg_type=int
42171                     fi
42172                 fi
42173                 rm -f conftest*
42174
42175
42176 fi
42177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_select_arg_type" >&5
42178 $as_echo "$amanda_cv_select_arg_type" >&6; }
42179
42180 cat >>confdefs.h <<_ACEOF
42181 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
42182 _ACEOF
42183
42184
42185
42186
42187 ice_have_sendto=no
42188 for ac_func in sendto
42189 do :
42190   ac_fn_c_check_func "$LINENO" "sendto" "ac_cv_func_sendto"
42191 if test "x$ac_cv_func_sendto" = xyes; then :
42192   cat >>confdefs.h <<_ACEOF
42193 #define HAVE_SENDTO 1
42194 _ACEOF
42195  ice_have_sendto=yes
42196 fi
42197 done
42198
42199 if test "${ice_have_sendto}" = yes; then
42200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendto declaration in sys/types.h sys/socket.h" >&5
42201 $as_echo_n "checking for sendto declaration in sys/types.h sys/socket.h... " >&6; }
42202 if ${ice_cv_have_sendto_decl+:} false; then :
42203   $as_echo_n "(cached) " >&6
42204 else
42205
42206 ice_cv_have_sendto_decl=no
42207 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42208 ice_re_word='(^|[^a-zA-Z0-9_])'
42209 for header in sys/types.h sys/socket.h; do
42210 # Check for ordinary declaration
42211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42212 /* end confdefs.h.  */
42213 #include <$header>
42214
42215 _ACEOF
42216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42217   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then :
42218   ice_cv_have_sendto_decl=yes
42219 fi
42220 rm -f conftest*
42221
42222 if test "$ice_cv_have_sendto_decl" = yes; then
42223         break
42224 fi
42225 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42227 /* end confdefs.h.  */
42228 #include <$header>
42229
42230 _ACEOF
42231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42232   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42233   ice_cv_have_sendto_decl=yes
42234 fi
42235 rm -f conftest*
42236
42237 if test "$ice_cv_have_sendto_decl" = yes; then
42238         break
42239 fi
42240 done
42241
42242 fi
42243
42244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_sendto_decl" >&5
42245 $as_echo "$ice_cv_have_sendto_decl" >&6; }
42246 if test "$ice_cv_have_sendto_decl" = yes; then
42247
42248 cat >>confdefs.h <<_ACEOF
42249 #define HAVE_SENDTO_DECL 1
42250 _ACEOF
42251
42252 fi
42253 fi
42254
42255
42256 ice_have_setegid=no
42257 for ac_func in setegid
42258 do :
42259   ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
42260 if test "x$ac_cv_func_setegid" = xyes; then :
42261   cat >>confdefs.h <<_ACEOF
42262 #define HAVE_SETEGID 1
42263 _ACEOF
42264  ice_have_setegid=yes
42265 fi
42266 done
42267
42268 if test "${ice_have_setegid}" = yes; then
42269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setegid declaration in unistd.h" >&5
42270 $as_echo_n "checking for setegid declaration in unistd.h... " >&6; }
42271 if ${ice_cv_have_setegid_decl+:} false; then :
42272   $as_echo_n "(cached) " >&6
42273 else
42274
42275 ice_cv_have_setegid_decl=no
42276 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42277 ice_re_word='(^|[^a-zA-Z0-9_])'
42278 for header in unistd.h; do
42279 # Check for ordinary declaration
42280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42281 /* end confdefs.h.  */
42282 #include <$header>
42283
42284 _ACEOF
42285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42286   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then :
42287   ice_cv_have_setegid_decl=yes
42288 fi
42289 rm -f conftest*
42290
42291 if test "$ice_cv_have_setegid_decl" = yes; then
42292         break
42293 fi
42294 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42296 /* end confdefs.h.  */
42297 #include <$header>
42298
42299 _ACEOF
42300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42301   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42302   ice_cv_have_setegid_decl=yes
42303 fi
42304 rm -f conftest*
42305
42306 if test "$ice_cv_have_setegid_decl" = yes; then
42307         break
42308 fi
42309 done
42310
42311 fi
42312
42313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setegid_decl" >&5
42314 $as_echo "$ice_cv_have_setegid_decl" >&6; }
42315 if test "$ice_cv_have_setegid_decl" = yes; then
42316
42317 cat >>confdefs.h <<_ACEOF
42318 #define HAVE_SETEGID_DECL 1
42319 _ACEOF
42320
42321 fi
42322 fi
42323
42324
42325 ice_have_seteuid=no
42326 for ac_func in seteuid
42327 do :
42328   ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
42329 if test "x$ac_cv_func_seteuid" = xyes; then :
42330   cat >>confdefs.h <<_ACEOF
42331 #define HAVE_SETEUID 1
42332 _ACEOF
42333  ice_have_seteuid=yes
42334 fi
42335 done
42336
42337 if test "${ice_have_seteuid}" = yes; then
42338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seteuid declaration in unistd.h" >&5
42339 $as_echo_n "checking for seteuid declaration in unistd.h... " >&6; }
42340 if ${ice_cv_have_seteuid_decl+:} false; then :
42341   $as_echo_n "(cached) " >&6
42342 else
42343
42344 ice_cv_have_seteuid_decl=no
42345 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42346 ice_re_word='(^|[^a-zA-Z0-9_])'
42347 for header in unistd.h; do
42348 # Check for ordinary declaration
42349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42350 /* end confdefs.h.  */
42351 #include <$header>
42352
42353 _ACEOF
42354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42355   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then :
42356   ice_cv_have_seteuid_decl=yes
42357 fi
42358 rm -f conftest*
42359
42360 if test "$ice_cv_have_seteuid_decl" = yes; then
42361         break
42362 fi
42363 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42365 /* end confdefs.h.  */
42366 #include <$header>
42367
42368 _ACEOF
42369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42370   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42371   ice_cv_have_seteuid_decl=yes
42372 fi
42373 rm -f conftest*
42374
42375 if test "$ice_cv_have_seteuid_decl" = yes; then
42376         break
42377 fi
42378 done
42379
42380 fi
42381
42382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_seteuid_decl" >&5
42383 $as_echo "$ice_cv_have_seteuid_decl" >&6; }
42384 if test "$ice_cv_have_seteuid_decl" = yes; then
42385
42386 cat >>confdefs.h <<_ACEOF
42387 #define HAVE_SETEUID_DECL 1
42388 _ACEOF
42389
42390 fi
42391 fi
42392
42393
42394 ice_have_setresgid=no
42395 for ac_func in setresgid
42396 do :
42397   ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
42398 if test "x$ac_cv_func_setresgid" = xyes; then :
42399   cat >>confdefs.h <<_ACEOF
42400 #define HAVE_SETRESGID 1
42401 _ACEOF
42402  ice_have_setresgid=yes
42403 fi
42404 done
42405
42406 if test "${ice_have_setresgid}" = yes; then
42407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setresgid declaration in unistd.h" >&5
42408 $as_echo_n "checking for setresgid declaration in unistd.h... " >&6; }
42409 if ${ice_cv_have_setresgid_decl+:} false; then :
42410   $as_echo_n "(cached) " >&6
42411 else
42412
42413 ice_cv_have_setresgid_decl=no
42414 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42415 ice_re_word='(^|[^a-zA-Z0-9_])'
42416 for header in unistd.h; do
42417 # Check for ordinary declaration
42418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42419 /* end confdefs.h.  */
42420 #include <$header>
42421
42422 _ACEOF
42423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42424   $EGREP "${ice_re_word}setresgid[      ]*\(" >/dev/null 2>&1; then :
42425   ice_cv_have_setresgid_decl=yes
42426 fi
42427 rm -f conftest*
42428
42429 if test "$ice_cv_have_setresgid_decl" = yes; then
42430         break
42431 fi
42432 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42434 /* end confdefs.h.  */
42435 #include <$header>
42436
42437 _ACEOF
42438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42439   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42440   ice_cv_have_setresgid_decl=yes
42441 fi
42442 rm -f conftest*
42443
42444 if test "$ice_cv_have_setresgid_decl" = yes; then
42445         break
42446 fi
42447 done
42448
42449 fi
42450
42451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setresgid_decl" >&5
42452 $as_echo "$ice_cv_have_setresgid_decl" >&6; }
42453 if test "$ice_cv_have_setresgid_decl" = yes; then
42454
42455 cat >>confdefs.h <<_ACEOF
42456 #define HAVE_SETRESGID_DECL 1
42457 _ACEOF
42458
42459 fi
42460 fi
42461
42462
42463 ice_have_setresuid=no
42464 for ac_func in setresuid
42465 do :
42466   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
42467 if test "x$ac_cv_func_setresuid" = xyes; then :
42468   cat >>confdefs.h <<_ACEOF
42469 #define HAVE_SETRESUID 1
42470 _ACEOF
42471  ice_have_setresuid=yes
42472 fi
42473 done
42474
42475 if test "${ice_have_setresuid}" = yes; then
42476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setresuid declaration in unistd.h" >&5
42477 $as_echo_n "checking for setresuid declaration in unistd.h... " >&6; }
42478 if ${ice_cv_have_setresuid_decl+:} false; then :
42479   $as_echo_n "(cached) " >&6
42480 else
42481
42482 ice_cv_have_setresuid_decl=no
42483 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42484 ice_re_word='(^|[^a-zA-Z0-9_])'
42485 for header in unistd.h; do
42486 # Check for ordinary declaration
42487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42488 /* end confdefs.h.  */
42489 #include <$header>
42490
42491 _ACEOF
42492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42493   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then :
42494   ice_cv_have_setresuid_decl=yes
42495 fi
42496 rm -f conftest*
42497
42498 if test "$ice_cv_have_setresuid_decl" = yes; then
42499         break
42500 fi
42501 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42503 /* end confdefs.h.  */
42504 #include <$header>
42505
42506 _ACEOF
42507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42508   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42509   ice_cv_have_setresuid_decl=yes
42510 fi
42511 rm -f conftest*
42512
42513 if test "$ice_cv_have_setresuid_decl" = yes; then
42514         break
42515 fi
42516 done
42517
42518 fi
42519
42520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setresuid_decl" >&5
42521 $as_echo "$ice_cv_have_setresuid_decl" >&6; }
42522 if test "$ice_cv_have_setresuid_decl" = yes; then
42523
42524 cat >>confdefs.h <<_ACEOF
42525 #define HAVE_SETRESUID_DECL 1
42526 _ACEOF
42527
42528 fi
42529 fi
42530
42531
42532 ice_have_snprintf=no
42533 for ac_func in snprintf
42534 do :
42535   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
42536 if test "x$ac_cv_func_snprintf" = xyes; then :
42537   cat >>confdefs.h <<_ACEOF
42538 #define HAVE_SNPRINTF 1
42539 _ACEOF
42540  ice_have_snprintf=yes
42541 fi
42542 done
42543
42544 if test "${ice_have_snprintf}" = yes; then
42545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snprintf declaration in stdio.h" >&5
42546 $as_echo_n "checking for snprintf declaration in stdio.h... " >&6; }
42547 if ${ice_cv_have_snprintf_decl+:} false; then :
42548   $as_echo_n "(cached) " >&6
42549 else
42550
42551 ice_cv_have_snprintf_decl=no
42552 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42553 ice_re_word='(^|[^a-zA-Z0-9_])'
42554 for header in stdio.h; do
42555 # Check for ordinary declaration
42556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42557 /* end confdefs.h.  */
42558 #include <$header>
42559
42560 _ACEOF
42561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42562   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then :
42563   ice_cv_have_snprintf_decl=yes
42564 fi
42565 rm -f conftest*
42566
42567 if test "$ice_cv_have_snprintf_decl" = yes; then
42568         break
42569 fi
42570 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42572 /* end confdefs.h.  */
42573 #include <$header>
42574
42575 _ACEOF
42576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42577   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42578   ice_cv_have_snprintf_decl=yes
42579 fi
42580 rm -f conftest*
42581
42582 if test "$ice_cv_have_snprintf_decl" = yes; then
42583         break
42584 fi
42585 done
42586
42587 fi
42588
42589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_snprintf_decl" >&5
42590 $as_echo "$ice_cv_have_snprintf_decl" >&6; }
42591 if test "$ice_cv_have_snprintf_decl" = yes; then
42592
42593 cat >>confdefs.h <<_ACEOF
42594 #define HAVE_SNPRINTF_DECL 1
42595 _ACEOF
42596
42597 fi
42598 fi
42599
42600
42601 ice_have_vsnprintf=no
42602 for ac_func in vsnprintf
42603 do :
42604   ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
42605 if test "x$ac_cv_func_vsnprintf" = xyes; then :
42606   cat >>confdefs.h <<_ACEOF
42607 #define HAVE_VSNPRINTF 1
42608 _ACEOF
42609  ice_have_vsnprintf=yes
42610 fi
42611 done
42612
42613 if test "${ice_have_vsnprintf}" = yes; then
42614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vsnprintf declaration in stdio.h" >&5
42615 $as_echo_n "checking for vsnprintf declaration in stdio.h... " >&6; }
42616 if ${ice_cv_have_vsnprintf_decl+:} false; then :
42617   $as_echo_n "(cached) " >&6
42618 else
42619
42620 ice_cv_have_vsnprintf_decl=no
42621 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42622 ice_re_word='(^|[^a-zA-Z0-9_])'
42623 for header in stdio.h; do
42624 # Check for ordinary declaration
42625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42626 /* end confdefs.h.  */
42627 #include <$header>
42628
42629 _ACEOF
42630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42631   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then :
42632   ice_cv_have_vsnprintf_decl=yes
42633 fi
42634 rm -f conftest*
42635
42636 if test "$ice_cv_have_vsnprintf_decl" = yes; then
42637         break
42638 fi
42639 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42641 /* end confdefs.h.  */
42642 #include <$header>
42643
42644 _ACEOF
42645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42646   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42647   ice_cv_have_vsnprintf_decl=yes
42648 fi
42649 rm -f conftest*
42650
42651 if test "$ice_cv_have_vsnprintf_decl" = yes; then
42652         break
42653 fi
42654 done
42655
42656 fi
42657
42658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vsnprintf_decl" >&5
42659 $as_echo "$ice_cv_have_vsnprintf_decl" >&6; }
42660 if test "$ice_cv_have_vsnprintf_decl" = yes; then
42661
42662 cat >>confdefs.h <<_ACEOF
42663 #define HAVE_VSNPRINTF_DECL 1
42664 _ACEOF
42665
42666 fi
42667 fi
42668
42669
42670     ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
42671 if test "x$ac_cv_func_setpgid" = xyes; then :
42672
42673
42674 $as_echo "#define HAVE_SETPGID 1" >>confdefs.h
42675
42676
42677 ice_have_setpgid=no
42678 for ac_func in setpgid
42679 do :
42680   ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
42681 if test "x$ac_cv_func_setpgid" = xyes; then :
42682   cat >>confdefs.h <<_ACEOF
42683 #define HAVE_SETPGID 1
42684 _ACEOF
42685  ice_have_setpgid=yes
42686 fi
42687 done
42688
42689 if test "${ice_have_setpgid}" = yes; then
42690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setpgid declaration in sys/types.h unistd.h" >&5
42691 $as_echo_n "checking for setpgid declaration in sys/types.h unistd.h... " >&6; }
42692 if ${ice_cv_have_setpgid_decl+:} false; then :
42693   $as_echo_n "(cached) " >&6
42694 else
42695
42696 ice_cv_have_setpgid_decl=no
42697 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42698 ice_re_word='(^|[^a-zA-Z0-9_])'
42699 for header in sys/types.h unistd.h; do
42700 # Check for ordinary declaration
42701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42702 /* end confdefs.h.  */
42703 #include <$header>
42704
42705 _ACEOF
42706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42707   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then :
42708   ice_cv_have_setpgid_decl=yes
42709 fi
42710 rm -f conftest*
42711
42712 if test "$ice_cv_have_setpgid_decl" = yes; then
42713         break
42714 fi
42715 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42717 /* end confdefs.h.  */
42718 #include <$header>
42719
42720 _ACEOF
42721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42722   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42723   ice_cv_have_setpgid_decl=yes
42724 fi
42725 rm -f conftest*
42726
42727 if test "$ice_cv_have_setpgid_decl" = yes; then
42728         break
42729 fi
42730 done
42731
42732 fi
42733
42734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setpgid_decl" >&5
42735 $as_echo "$ice_cv_have_setpgid_decl" >&6; }
42736 if test "$ice_cv_have_setpgid_decl" = yes; then
42737
42738 cat >>confdefs.h <<_ACEOF
42739 #define HAVE_SETPGID_DECL 1
42740 _ACEOF
42741
42742 fi
42743 fi
42744
42745
42746 fi
42747
42748
42749 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
42750 if test "x$ac_cv_func_setpgrp" = xyes; then :
42751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
42752 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
42753 if ${ac_cv_func_setpgrp_void+:} false; then :
42754   $as_echo_n "(cached) " >&6
42755 else
42756   if test "$cross_compiling" = yes; then :
42757   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
42758 else
42759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42760 /* end confdefs.h.  */
42761 $ac_includes_default
42762 int
42763 main ()
42764 {
42765 /* If this system has a BSD-style setpgrp which takes arguments,
42766   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
42767   exit successfully. */
42768   return setpgrp (1,1) != -1;
42769   ;
42770   return 0;
42771 }
42772 _ACEOF
42773 if ac_fn_c_try_run "$LINENO"; then :
42774   ac_cv_func_setpgrp_void=no
42775 else
42776   ac_cv_func_setpgrp_void=yes
42777 fi
42778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42779   conftest.$ac_objext conftest.beam conftest.$ac_ext
42780 fi
42781
42782 fi
42783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
42784 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
42785 if test $ac_cv_func_setpgrp_void = yes; then
42786
42787 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
42788
42789 fi
42790
42791 fi
42792
42793
42794 ice_have_setpgrp=no
42795 for ac_func in setpgrp
42796 do :
42797   ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
42798 if test "x$ac_cv_func_setpgrp" = xyes; then :
42799   cat >>confdefs.h <<_ACEOF
42800 #define HAVE_SETPGRP 1
42801 _ACEOF
42802  ice_have_setpgrp=yes
42803 fi
42804 done
42805
42806 if test "${ice_have_setpgrp}" = yes; then
42807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
42808 $as_echo_n "checking for setpgrp declaration in sys/types.h unistd.h libc.h... " >&6; }
42809 if ${ice_cv_have_setpgrp_decl+:} false; then :
42810   $as_echo_n "(cached) " >&6
42811 else
42812
42813 ice_cv_have_setpgrp_decl=no
42814 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42815 ice_re_word='(^|[^a-zA-Z0-9_])'
42816 for header in sys/types.h unistd.h libc.h; do
42817 # Check for ordinary declaration
42818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42819 /* end confdefs.h.  */
42820 #include <$header>
42821
42822 _ACEOF
42823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42824   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then :
42825   ice_cv_have_setpgrp_decl=yes
42826 fi
42827 rm -f conftest*
42828
42829 if test "$ice_cv_have_setpgrp_decl" = yes; then
42830         break
42831 fi
42832 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42834 /* end confdefs.h.  */
42835 #include <$header>
42836
42837 _ACEOF
42838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42839   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42840   ice_cv_have_setpgrp_decl=yes
42841 fi
42842 rm -f conftest*
42843
42844 if test "$ice_cv_have_setpgrp_decl" = yes; then
42845         break
42846 fi
42847 done
42848
42849 fi
42850
42851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setpgrp_decl" >&5
42852 $as_echo "$ice_cv_have_setpgrp_decl" >&6; }
42853 if test "$ice_cv_have_setpgrp_decl" = yes; then
42854
42855 cat >>confdefs.h <<_ACEOF
42856 #define HAVE_SETPGRP_DECL 1
42857 _ACEOF
42858
42859 fi
42860 fi
42861
42862
42863 ice_have_setsockopt=no
42864 for ac_func in setsockopt
42865 do :
42866   ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
42867 if test "x$ac_cv_func_setsockopt" = xyes; then :
42868   cat >>confdefs.h <<_ACEOF
42869 #define HAVE_SETSOCKOPT 1
42870 _ACEOF
42871  ice_have_setsockopt=yes
42872 fi
42873 done
42874
42875 if test "${ice_have_setsockopt}" = yes; then
42876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
42877 $as_echo_n "checking for setsockopt declaration in sys/types.h sys/socket.h... " >&6; }
42878 if ${ice_cv_have_setsockopt_decl+:} false; then :
42879   $as_echo_n "(cached) " >&6
42880 else
42881
42882 ice_cv_have_setsockopt_decl=no
42883 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42884 ice_re_word='(^|[^a-zA-Z0-9_])'
42885 for header in sys/types.h sys/socket.h; do
42886 # Check for ordinary declaration
42887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42888 /* end confdefs.h.  */
42889 #include <$header>
42890
42891 _ACEOF
42892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42893   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then :
42894   ice_cv_have_setsockopt_decl=yes
42895 fi
42896 rm -f conftest*
42897
42898 if test "$ice_cv_have_setsockopt_decl" = yes; then
42899         break
42900 fi
42901 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42903 /* end confdefs.h.  */
42904 #include <$header>
42905
42906 _ACEOF
42907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42908   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42909   ice_cv_have_setsockopt_decl=yes
42910 fi
42911 rm -f conftest*
42912
42913 if test "$ice_cv_have_setsockopt_decl" = yes; then
42914         break
42915 fi
42916 done
42917
42918 fi
42919
42920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setsockopt_decl" >&5
42921 $as_echo "$ice_cv_have_setsockopt_decl" >&6; }
42922 if test "$ice_cv_have_setsockopt_decl" = yes; then
42923
42924 cat >>confdefs.h <<_ACEOF
42925 #define HAVE_SETSOCKOPT_DECL 1
42926 _ACEOF
42927
42928 fi
42929 fi
42930
42931 for ac_func in sigaction sigemptyset sigvec
42932 do :
42933   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42934 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
42935 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
42936   cat >>confdefs.h <<_ACEOF
42937 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42938 _ACEOF
42939
42940 fi
42941 done
42942
42943
42944 ice_have_socket=no
42945 for ac_func in socket
42946 do :
42947   ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
42948 if test "x$ac_cv_func_socket" = xyes; then :
42949   cat >>confdefs.h <<_ACEOF
42950 #define HAVE_SOCKET 1
42951 _ACEOF
42952  ice_have_socket=yes
42953 fi
42954 done
42955
42956 if test "${ice_have_socket}" = yes; then
42957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket declaration in sys/types.h sys/socket.h" >&5
42958 $as_echo_n "checking for socket declaration in sys/types.h sys/socket.h... " >&6; }
42959 if ${ice_cv_have_socket_decl+:} false; then :
42960   $as_echo_n "(cached) " >&6
42961 else
42962
42963 ice_cv_have_socket_decl=no
42964 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42965 ice_re_word='(^|[^a-zA-Z0-9_])'
42966 for header in sys/types.h sys/socket.h; do
42967 # Check for ordinary declaration
42968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42969 /* end confdefs.h.  */
42970 #include <$header>
42971
42972 _ACEOF
42973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42974   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then :
42975   ice_cv_have_socket_decl=yes
42976 fi
42977 rm -f conftest*
42978
42979 if test "$ice_cv_have_socket_decl" = yes; then
42980         break
42981 fi
42982 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42984 /* end confdefs.h.  */
42985 #include <$header>
42986
42987 _ACEOF
42988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42989   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42990   ice_cv_have_socket_decl=yes
42991 fi
42992 rm -f conftest*
42993
42994 if test "$ice_cv_have_socket_decl" = yes; then
42995         break
42996 fi
42997 done
42998
42999 fi
43000
43001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_socket_decl" >&5
43002 $as_echo "$ice_cv_have_socket_decl" >&6; }
43003 if test "$ice_cv_have_socket_decl" = yes; then
43004
43005 cat >>confdefs.h <<_ACEOF
43006 #define HAVE_SOCKET_DECL 1
43007 _ACEOF
43008
43009 fi
43010 fi
43011
43012
43013 ice_have_socketpair=no
43014 for ac_func in socketpair
43015 do :
43016   ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
43017 if test "x$ac_cv_func_socketpair" = xyes; then :
43018   cat >>confdefs.h <<_ACEOF
43019 #define HAVE_SOCKETPAIR 1
43020 _ACEOF
43021  ice_have_socketpair=yes
43022 fi
43023 done
43024
43025 if test "${ice_have_socketpair}" = yes; then
43026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
43027 $as_echo_n "checking for socketpair declaration in sys/types.h sys/socket.h... " >&6; }
43028 if ${ice_cv_have_socketpair_decl+:} false; then :
43029   $as_echo_n "(cached) " >&6
43030 else
43031
43032 ice_cv_have_socketpair_decl=no
43033 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43034 ice_re_word='(^|[^a-zA-Z0-9_])'
43035 for header in sys/types.h sys/socket.h; do
43036 # Check for ordinary declaration
43037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43038 /* end confdefs.h.  */
43039 #include <$header>
43040
43041 _ACEOF
43042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43043   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then :
43044   ice_cv_have_socketpair_decl=yes
43045 fi
43046 rm -f conftest*
43047
43048 if test "$ice_cv_have_socketpair_decl" = yes; then
43049         break
43050 fi
43051 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43053 /* end confdefs.h.  */
43054 #include <$header>
43055
43056 _ACEOF
43057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43058   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43059   ice_cv_have_socketpair_decl=yes
43060 fi
43061 rm -f conftest*
43062
43063 if test "$ice_cv_have_socketpair_decl" = yes; then
43064         break
43065 fi
43066 done
43067
43068 fi
43069
43070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_socketpair_decl" >&5
43071 $as_echo "$ice_cv_have_socketpair_decl" >&6; }
43072 if test "$ice_cv_have_socketpair_decl" = yes; then
43073
43074 cat >>confdefs.h <<_ACEOF
43075 #define HAVE_SOCKETPAIR_DECL 1
43076 _ACEOF
43077
43078 fi
43079 fi
43080
43081
43082 ice_have_sscanf=no
43083 for ac_func in sscanf
43084 do :
43085   ac_fn_c_check_func "$LINENO" "sscanf" "ac_cv_func_sscanf"
43086 if test "x$ac_cv_func_sscanf" = xyes; then :
43087   cat >>confdefs.h <<_ACEOF
43088 #define HAVE_SSCANF 1
43089 _ACEOF
43090  ice_have_sscanf=yes
43091 fi
43092 done
43093
43094 if test "${ice_have_sscanf}" = yes; then
43095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sscanf declaration in stdio.h" >&5
43096 $as_echo_n "checking for sscanf declaration in stdio.h... " >&6; }
43097 if ${ice_cv_have_sscanf_decl+:} false; then :
43098   $as_echo_n "(cached) " >&6
43099 else
43100
43101 ice_cv_have_sscanf_decl=no
43102 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43103 ice_re_word='(^|[^a-zA-Z0-9_])'
43104 for header in stdio.h; do
43105 # Check for ordinary declaration
43106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43107 /* end confdefs.h.  */
43108 #include <$header>
43109
43110 _ACEOF
43111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43112   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then :
43113   ice_cv_have_sscanf_decl=yes
43114 fi
43115 rm -f conftest*
43116
43117 if test "$ice_cv_have_sscanf_decl" = yes; then
43118         break
43119 fi
43120 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43122 /* end confdefs.h.  */
43123 #include <$header>
43124
43125 _ACEOF
43126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43127   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43128   ice_cv_have_sscanf_decl=yes
43129 fi
43130 rm -f conftest*
43131
43132 if test "$ice_cv_have_sscanf_decl" = yes; then
43133         break
43134 fi
43135 done
43136
43137 fi
43138
43139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_sscanf_decl" >&5
43140 $as_echo "$ice_cv_have_sscanf_decl" >&6; }
43141 if test "$ice_cv_have_sscanf_decl" = yes; then
43142
43143 cat >>confdefs.h <<_ACEOF
43144 #define HAVE_SSCANF_DECL 1
43145 _ACEOF
43146
43147 fi
43148 fi
43149
43150
43151 ice_have_strerror=no
43152 for ac_func in strerror
43153 do :
43154   ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
43155 if test "x$ac_cv_func_strerror" = xyes; then :
43156   cat >>confdefs.h <<_ACEOF
43157 #define HAVE_STRERROR 1
43158 _ACEOF
43159  ice_have_strerror=yes
43160 fi
43161 done
43162
43163 if test "${ice_have_strerror}" = yes; then
43164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror declaration in string.h strings.h" >&5
43165 $as_echo_n "checking for strerror declaration in string.h strings.h... " >&6; }
43166 if ${ice_cv_have_strerror_decl+:} false; then :
43167   $as_echo_n "(cached) " >&6
43168 else
43169
43170 ice_cv_have_strerror_decl=no
43171 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43172 ice_re_word='(^|[^a-zA-Z0-9_])'
43173 for header in string.h strings.h; do
43174 # Check for ordinary declaration
43175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43176 /* end confdefs.h.  */
43177 #include <$header>
43178
43179 _ACEOF
43180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43181   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then :
43182   ice_cv_have_strerror_decl=yes
43183 fi
43184 rm -f conftest*
43185
43186 if test "$ice_cv_have_strerror_decl" = yes; then
43187         break
43188 fi
43189 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43191 /* end confdefs.h.  */
43192 #include <$header>
43193
43194 _ACEOF
43195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43196   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43197   ice_cv_have_strerror_decl=yes
43198 fi
43199 rm -f conftest*
43200
43201 if test "$ice_cv_have_strerror_decl" = yes; then
43202         break
43203 fi
43204 done
43205
43206 fi
43207
43208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strerror_decl" >&5
43209 $as_echo "$ice_cv_have_strerror_decl" >&6; }
43210 if test "$ice_cv_have_strerror_decl" = yes; then
43211
43212 cat >>confdefs.h <<_ACEOF
43213 #define HAVE_STRERROR_DECL 1
43214 _ACEOF
43215
43216 fi
43217 fi
43218
43219 for ac_func in strftime
43220 do :
43221   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
43222 if test "x$ac_cv_func_strftime" = xyes; then :
43223   cat >>confdefs.h <<_ACEOF
43224 #define HAVE_STRFTIME 1
43225 _ACEOF
43226
43227 else
43228   # strftime is in -lintl on SCO UNIX.
43229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
43230 $as_echo_n "checking for strftime in -lintl... " >&6; }
43231 if ${ac_cv_lib_intl_strftime+:} false; then :
43232   $as_echo_n "(cached) " >&6
43233 else
43234   ac_check_lib_save_LIBS=$LIBS
43235 LIBS="-lintl  $LIBS"
43236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43237 /* end confdefs.h.  */
43238
43239 /* Override any GCC internal prototype to avoid an error.
43240    Use char because int might match the return type of a GCC
43241    builtin and then its argument prototype would still apply.  */
43242 #ifdef __cplusplus
43243 extern "C"
43244 #endif
43245 char strftime ();
43246 int
43247 main ()
43248 {
43249 return strftime ();
43250   ;
43251   return 0;
43252 }
43253 _ACEOF
43254 if ac_fn_c_try_link "$LINENO"; then :
43255   ac_cv_lib_intl_strftime=yes
43256 else
43257   ac_cv_lib_intl_strftime=no
43258 fi
43259 rm -f core conftest.err conftest.$ac_objext \
43260     conftest$ac_exeext conftest.$ac_ext
43261 LIBS=$ac_check_lib_save_LIBS
43262 fi
43263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
43264 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
43265 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
43266   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
43267
43268 LIBS="-lintl $LIBS"
43269 fi
43270
43271 fi
43272 done
43273
43274
43275 ice_have_strftime=no
43276 for ac_func in strftime
43277 do :
43278   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
43279 if test "x$ac_cv_func_strftime" = xyes; then :
43280   cat >>confdefs.h <<_ACEOF
43281 #define HAVE_STRFTIME 1
43282 _ACEOF
43283  ice_have_strftime=yes
43284 fi
43285 done
43286
43287 if test "${ice_have_strftime}" = yes; then
43288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime declaration in time.h sys/time.h" >&5
43289 $as_echo_n "checking for strftime declaration in time.h sys/time.h... " >&6; }
43290 if ${ice_cv_have_strftime_decl+:} false; then :
43291   $as_echo_n "(cached) " >&6
43292 else
43293
43294 ice_cv_have_strftime_decl=no
43295 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43296 ice_re_word='(^|[^a-zA-Z0-9_])'
43297 for header in time.h sys/time.h; do
43298 # Check for ordinary declaration
43299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43300 /* end confdefs.h.  */
43301 #include <$header>
43302
43303 _ACEOF
43304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43305   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then :
43306   ice_cv_have_strftime_decl=yes
43307 fi
43308 rm -f conftest*
43309
43310 if test "$ice_cv_have_strftime_decl" = yes; then
43311         break
43312 fi
43313 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43315 /* end confdefs.h.  */
43316 #include <$header>
43317
43318 _ACEOF
43319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43320   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43321   ice_cv_have_strftime_decl=yes
43322 fi
43323 rm -f conftest*
43324
43325 if test "$ice_cv_have_strftime_decl" = yes; then
43326         break
43327 fi
43328 done
43329
43330 fi
43331
43332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strftime_decl" >&5
43333 $as_echo "$ice_cv_have_strftime_decl" >&6; }
43334 if test "$ice_cv_have_strftime_decl" = yes; then
43335
43336 cat >>confdefs.h <<_ACEOF
43337 #define HAVE_STRFTIME_DECL 1
43338 _ACEOF
43339
43340 fi
43341 fi
43342
43343
43344 ice_have_strncasecmp=no
43345 for ac_func in strncasecmp
43346 do :
43347   ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
43348 if test "x$ac_cv_func_strncasecmp" = xyes; then :
43349   cat >>confdefs.h <<_ACEOF
43350 #define HAVE_STRNCASECMP 1
43351 _ACEOF
43352  ice_have_strncasecmp=yes
43353 fi
43354 done
43355
43356 if test "${ice_have_strncasecmp}" = yes; then
43357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strncasecmp declaration in string.h strings.h" >&5
43358 $as_echo_n "checking for strncasecmp declaration in string.h strings.h... " >&6; }
43359 if ${ice_cv_have_strncasecmp_decl+:} false; then :
43360   $as_echo_n "(cached) " >&6
43361 else
43362
43363 ice_cv_have_strncasecmp_decl=no
43364 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43365 ice_re_word='(^|[^a-zA-Z0-9_])'
43366 for header in string.h strings.h; do
43367 # Check for ordinary declaration
43368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43369 /* end confdefs.h.  */
43370 #include <$header>
43371
43372 _ACEOF
43373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43374   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then :
43375   ice_cv_have_strncasecmp_decl=yes
43376 fi
43377 rm -f conftest*
43378
43379 if test "$ice_cv_have_strncasecmp_decl" = yes; then
43380         break
43381 fi
43382 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43384 /* end confdefs.h.  */
43385 #include <$header>
43386
43387 _ACEOF
43388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43389   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43390   ice_cv_have_strncasecmp_decl=yes
43391 fi
43392 rm -f conftest*
43393
43394 if test "$ice_cv_have_strncasecmp_decl" = yes; then
43395         break
43396 fi
43397 done
43398
43399 fi
43400
43401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strncasecmp_decl" >&5
43402 $as_echo "$ice_cv_have_strncasecmp_decl" >&6; }
43403 if test "$ice_cv_have_strncasecmp_decl" = yes; then
43404
43405 cat >>confdefs.h <<_ACEOF
43406 #define HAVE_STRNCASECMP_DECL 1
43407 _ACEOF
43408
43409 fi
43410 fi
43411
43412
43413 ice_have_syslog=no
43414 for ac_func in syslog
43415 do :
43416   ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
43417 if test "x$ac_cv_func_syslog" = xyes; then :
43418   cat >>confdefs.h <<_ACEOF
43419 #define HAVE_SYSLOG 1
43420 _ACEOF
43421  ice_have_syslog=yes
43422 fi
43423 done
43424
43425 if test "${ice_have_syslog}" = yes; then
43426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog declaration in syslog.h" >&5
43427 $as_echo_n "checking for syslog declaration in syslog.h... " >&6; }
43428 if ${ice_cv_have_syslog_decl+:} false; then :
43429   $as_echo_n "(cached) " >&6
43430 else
43431
43432 ice_cv_have_syslog_decl=no
43433 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43434 ice_re_word='(^|[^a-zA-Z0-9_])'
43435 for header in syslog.h; do
43436 # Check for ordinary declaration
43437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43438 /* end confdefs.h.  */
43439 #include <$header>
43440
43441 _ACEOF
43442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43443   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then :
43444   ice_cv_have_syslog_decl=yes
43445 fi
43446 rm -f conftest*
43447
43448 if test "$ice_cv_have_syslog_decl" = yes; then
43449         break
43450 fi
43451 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43453 /* end confdefs.h.  */
43454 #include <$header>
43455
43456 _ACEOF
43457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43458   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43459   ice_cv_have_syslog_decl=yes
43460 fi
43461 rm -f conftest*
43462
43463 if test "$ice_cv_have_syslog_decl" = yes; then
43464         break
43465 fi
43466 done
43467
43468 fi
43469
43470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_syslog_decl" >&5
43471 $as_echo "$ice_cv_have_syslog_decl" >&6; }
43472 if test "$ice_cv_have_syslog_decl" = yes; then
43473
43474 cat >>confdefs.h <<_ACEOF
43475 #define HAVE_SYSLOG_DECL 1
43476 _ACEOF
43477
43478 fi
43479 fi
43480
43481
43482 ice_have_system=no
43483 for ac_func in system
43484 do :
43485   ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system"
43486 if test "x$ac_cv_func_system" = xyes; then :
43487   cat >>confdefs.h <<_ACEOF
43488 #define HAVE_SYSTEM 1
43489 _ACEOF
43490  ice_have_system=yes
43491 fi
43492 done
43493
43494 if test "${ice_have_system}" = yes; then
43495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system declaration in stdlib.h" >&5
43496 $as_echo_n "checking for system declaration in stdlib.h... " >&6; }
43497 if ${ice_cv_have_system_decl+:} false; then :
43498   $as_echo_n "(cached) " >&6
43499 else
43500
43501 ice_cv_have_system_decl=no
43502 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43503 ice_re_word='(^|[^a-zA-Z0-9_])'
43504 for header in stdlib.h; do
43505 # Check for ordinary declaration
43506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43507 /* end confdefs.h.  */
43508 #include <$header>
43509
43510 _ACEOF
43511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43512   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then :
43513   ice_cv_have_system_decl=yes
43514 fi
43515 rm -f conftest*
43516
43517 if test "$ice_cv_have_system_decl" = yes; then
43518         break
43519 fi
43520 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43522 /* end confdefs.h.  */
43523 #include <$header>
43524
43525 _ACEOF
43526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43527   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43528   ice_cv_have_system_decl=yes
43529 fi
43530 rm -f conftest*
43531
43532 if test "$ice_cv_have_system_decl" = yes; then
43533         break
43534 fi
43535 done
43536
43537 fi
43538
43539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_system_decl" >&5
43540 $as_echo "$ice_cv_have_system_decl" >&6; }
43541 if test "$ice_cv_have_system_decl" = yes; then
43542
43543 cat >>confdefs.h <<_ACEOF
43544 #define HAVE_SYSTEM_DECL 1
43545 _ACEOF
43546
43547 fi
43548 fi
43549
43550
43551 ice_have_time=no
43552 for ac_func in time
43553 do :
43554   ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
43555 if test "x$ac_cv_func_time" = xyes; then :
43556   cat >>confdefs.h <<_ACEOF
43557 #define HAVE_TIME 1
43558 _ACEOF
43559  ice_have_time=yes
43560 fi
43561 done
43562
43563 if test "${ice_have_time}" = yes; then
43564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time declaration in time.h sys/time.h" >&5
43565 $as_echo_n "checking for time declaration in time.h sys/time.h... " >&6; }
43566 if ${ice_cv_have_time_decl+:} false; then :
43567   $as_echo_n "(cached) " >&6
43568 else
43569
43570 ice_cv_have_time_decl=no
43571 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43572 ice_re_word='(^|[^a-zA-Z0-9_])'
43573 for header in time.h sys/time.h; do
43574 # Check for ordinary declaration
43575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43576 /* end confdefs.h.  */
43577 #include <$header>
43578
43579 _ACEOF
43580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43581   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then :
43582   ice_cv_have_time_decl=yes
43583 fi
43584 rm -f conftest*
43585
43586 if test "$ice_cv_have_time_decl" = yes; then
43587         break
43588 fi
43589 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43591 /* end confdefs.h.  */
43592 #include <$header>
43593
43594 _ACEOF
43595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43596   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43597   ice_cv_have_time_decl=yes
43598 fi
43599 rm -f conftest*
43600
43601 if test "$ice_cv_have_time_decl" = yes; then
43602         break
43603 fi
43604 done
43605
43606 fi
43607
43608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_time_decl" >&5
43609 $as_echo "$ice_cv_have_time_decl" >&6; }
43610 if test "$ice_cv_have_time_decl" = yes; then
43611
43612 cat >>confdefs.h <<_ACEOF
43613 #define HAVE_TIME_DECL 1
43614 _ACEOF
43615
43616 fi
43617 fi
43618
43619
43620 ice_have_tolower=no
43621 for ac_func in tolower
43622 do :
43623   ac_fn_c_check_func "$LINENO" "tolower" "ac_cv_func_tolower"
43624 if test "x$ac_cv_func_tolower" = xyes; then :
43625   cat >>confdefs.h <<_ACEOF
43626 #define HAVE_TOLOWER 1
43627 _ACEOF
43628  ice_have_tolower=yes
43629 fi
43630 done
43631
43632 if test "${ice_have_tolower}" = yes; then
43633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tolower declaration in ctype.h" >&5
43634 $as_echo_n "checking for tolower declaration in ctype.h... " >&6; }
43635 if ${ice_cv_have_tolower_decl+:} false; then :
43636   $as_echo_n "(cached) " >&6
43637 else
43638
43639 ice_cv_have_tolower_decl=no
43640 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43641 ice_re_word='(^|[^a-zA-Z0-9_])'
43642 for header in ctype.h; do
43643 # Check for ordinary declaration
43644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43645 /* end confdefs.h.  */
43646 #include <$header>
43647
43648 _ACEOF
43649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43650   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then :
43651   ice_cv_have_tolower_decl=yes
43652 fi
43653 rm -f conftest*
43654
43655 if test "$ice_cv_have_tolower_decl" = yes; then
43656         break
43657 fi
43658 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43660 /* end confdefs.h.  */
43661 #include <$header>
43662
43663 _ACEOF
43664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43665   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43666   ice_cv_have_tolower_decl=yes
43667 fi
43668 rm -f conftest*
43669
43670 if test "$ice_cv_have_tolower_decl" = yes; then
43671         break
43672 fi
43673 done
43674
43675 fi
43676
43677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_tolower_decl" >&5
43678 $as_echo "$ice_cv_have_tolower_decl" >&6; }
43679 if test "$ice_cv_have_tolower_decl" = yes; then
43680
43681 cat >>confdefs.h <<_ACEOF
43682 #define HAVE_TOLOWER_DECL 1
43683 _ACEOF
43684
43685 fi
43686 fi
43687
43688
43689 ice_have_toupper=no
43690 for ac_func in toupper
43691 do :
43692   ac_fn_c_check_func "$LINENO" "toupper" "ac_cv_func_toupper"
43693 if test "x$ac_cv_func_toupper" = xyes; then :
43694   cat >>confdefs.h <<_ACEOF
43695 #define HAVE_TOUPPER 1
43696 _ACEOF
43697  ice_have_toupper=yes
43698 fi
43699 done
43700
43701 if test "${ice_have_toupper}" = yes; then
43702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toupper declaration in ctype.h" >&5
43703 $as_echo_n "checking for toupper declaration in ctype.h... " >&6; }
43704 if ${ice_cv_have_toupper_decl+:} false; then :
43705   $as_echo_n "(cached) " >&6
43706 else
43707
43708 ice_cv_have_toupper_decl=no
43709 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43710 ice_re_word='(^|[^a-zA-Z0-9_])'
43711 for header in ctype.h; do
43712 # Check for ordinary declaration
43713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43714 /* end confdefs.h.  */
43715 #include <$header>
43716
43717 _ACEOF
43718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43719   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then :
43720   ice_cv_have_toupper_decl=yes
43721 fi
43722 rm -f conftest*
43723
43724 if test "$ice_cv_have_toupper_decl" = yes; then
43725         break
43726 fi
43727 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43729 /* end confdefs.h.  */
43730 #include <$header>
43731
43732 _ACEOF
43733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43734   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43735   ice_cv_have_toupper_decl=yes
43736 fi
43737 rm -f conftest*
43738
43739 if test "$ice_cv_have_toupper_decl" = yes; then
43740         break
43741 fi
43742 done
43743
43744 fi
43745
43746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_toupper_decl" >&5
43747 $as_echo "$ice_cv_have_toupper_decl" >&6; }
43748 if test "$ice_cv_have_toupper_decl" = yes; then
43749
43750 cat >>confdefs.h <<_ACEOF
43751 #define HAVE_TOUPPER_DECL 1
43752 _ACEOF
43753
43754 fi
43755 fi
43756
43757
43758 ice_have_ungetc=no
43759 for ac_func in ungetc
43760 do :
43761   ac_fn_c_check_func "$LINENO" "ungetc" "ac_cv_func_ungetc"
43762 if test "x$ac_cv_func_ungetc" = xyes; then :
43763   cat >>confdefs.h <<_ACEOF
43764 #define HAVE_UNGETC 1
43765 _ACEOF
43766  ice_have_ungetc=yes
43767 fi
43768 done
43769
43770 if test "${ice_have_ungetc}" = yes; then
43771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ungetc declaration in stdio.h" >&5
43772 $as_echo_n "checking for ungetc declaration in stdio.h... " >&6; }
43773 if ${ice_cv_have_ungetc_decl+:} false; then :
43774   $as_echo_n "(cached) " >&6
43775 else
43776
43777 ice_cv_have_ungetc_decl=no
43778 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43779 ice_re_word='(^|[^a-zA-Z0-9_])'
43780 for header in stdio.h; do
43781 # Check for ordinary declaration
43782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43783 /* end confdefs.h.  */
43784 #include <$header>
43785
43786 _ACEOF
43787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43788   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then :
43789   ice_cv_have_ungetc_decl=yes
43790 fi
43791 rm -f conftest*
43792
43793 if test "$ice_cv_have_ungetc_decl" = yes; then
43794         break
43795 fi
43796 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43798 /* end confdefs.h.  */
43799 #include <$header>
43800
43801 _ACEOF
43802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43803   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43804   ice_cv_have_ungetc_decl=yes
43805 fi
43806 rm -f conftest*
43807
43808 if test "$ice_cv_have_ungetc_decl" = yes; then
43809         break
43810 fi
43811 done
43812
43813 fi
43814
43815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ungetc_decl" >&5
43816 $as_echo "$ice_cv_have_ungetc_decl" >&6; }
43817 if test "$ice_cv_have_ungetc_decl" = yes; then
43818
43819 cat >>confdefs.h <<_ACEOF
43820 #define HAVE_UNGETC_DECL 1
43821 _ACEOF
43822
43823 fi
43824 fi
43825
43826 for ac_func in unsetenv
43827 do :
43828   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
43829 if test "x$ac_cv_func_unsetenv" = xyes; then :
43830   cat >>confdefs.h <<_ACEOF
43831 #define HAVE_UNSETENV 1
43832 _ACEOF
43833
43834 fi
43835 done
43836
43837
43838 ice_have_vfprintf=no
43839 for ac_func in vfprintf
43840 do :
43841   ac_fn_c_check_func "$LINENO" "vfprintf" "ac_cv_func_vfprintf"
43842 if test "x$ac_cv_func_vfprintf" = xyes; then :
43843   cat >>confdefs.h <<_ACEOF
43844 #define HAVE_VFPRINTF 1
43845 _ACEOF
43846  ice_have_vfprintf=yes
43847 fi
43848 done
43849
43850 if test "${ice_have_vfprintf}" = yes; then
43851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vfprintf declaration in stdio.h stdlib.h" >&5
43852 $as_echo_n "checking for vfprintf declaration in stdio.h stdlib.h... " >&6; }
43853 if ${ice_cv_have_vfprintf_decl+:} false; then :
43854   $as_echo_n "(cached) " >&6
43855 else
43856
43857 ice_cv_have_vfprintf_decl=no
43858 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43859 ice_re_word='(^|[^a-zA-Z0-9_])'
43860 for header in stdio.h stdlib.h; do
43861 # Check for ordinary declaration
43862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43863 /* end confdefs.h.  */
43864 #include <$header>
43865
43866 _ACEOF
43867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43868   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then :
43869   ice_cv_have_vfprintf_decl=yes
43870 fi
43871 rm -f conftest*
43872
43873 if test "$ice_cv_have_vfprintf_decl" = yes; then
43874         break
43875 fi
43876 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43878 /* end confdefs.h.  */
43879 #include <$header>
43880
43881 _ACEOF
43882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43883   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43884   ice_cv_have_vfprintf_decl=yes
43885 fi
43886 rm -f conftest*
43887
43888 if test "$ice_cv_have_vfprintf_decl" = yes; then
43889         break
43890 fi
43891 done
43892
43893 fi
43894
43895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vfprintf_decl" >&5
43896 $as_echo "$ice_cv_have_vfprintf_decl" >&6; }
43897 if test "$ice_cv_have_vfprintf_decl" = yes; then
43898
43899 cat >>confdefs.h <<_ACEOF
43900 #define HAVE_VFPRINTF_DECL 1
43901 _ACEOF
43902
43903 fi
43904 fi
43905
43906
43907 ice_have_vprintf=no
43908 for ac_func in vprintf
43909 do :
43910   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
43911 if test "x$ac_cv_func_vprintf" = xyes; then :
43912   cat >>confdefs.h <<_ACEOF
43913 #define HAVE_VPRINTF 1
43914 _ACEOF
43915  ice_have_vprintf=yes
43916 fi
43917 done
43918
43919 if test "${ice_have_vprintf}" = yes; then
43920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vprintf declaration in stdio.h stdlib.h" >&5
43921 $as_echo_n "checking for vprintf declaration in stdio.h stdlib.h... " >&6; }
43922 if ${ice_cv_have_vprintf_decl+:} false; then :
43923   $as_echo_n "(cached) " >&6
43924 else
43925
43926 ice_cv_have_vprintf_decl=no
43927 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43928 ice_re_word='(^|[^a-zA-Z0-9_])'
43929 for header in stdio.h stdlib.h; do
43930 # Check for ordinary declaration
43931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43932 /* end confdefs.h.  */
43933 #include <$header>
43934
43935 _ACEOF
43936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43937   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then :
43938   ice_cv_have_vprintf_decl=yes
43939 fi
43940 rm -f conftest*
43941
43942 if test "$ice_cv_have_vprintf_decl" = yes; then
43943         break
43944 fi
43945 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43947 /* end confdefs.h.  */
43948 #include <$header>
43949
43950 _ACEOF
43951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43952   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43953   ice_cv_have_vprintf_decl=yes
43954 fi
43955 rm -f conftest*
43956
43957 if test "$ice_cv_have_vprintf_decl" = yes; then
43958         break
43959 fi
43960 done
43961
43962 fi
43963
43964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vprintf_decl" >&5
43965 $as_echo "$ice_cv_have_vprintf_decl" >&6; }
43966 if test "$ice_cv_have_vprintf_decl" = yes; then
43967
43968 cat >>confdefs.h <<_ACEOF
43969 #define HAVE_VPRINTF_DECL 1
43970 _ACEOF
43971
43972 fi
43973 fi
43974
43975 ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
43976 if test "x$ac_cv_func_wait4" = xyes; then :
43977
43978 fi
43979
43980
43981 ice_have_writev=no
43982 for ac_func in writev
43983 do :
43984   ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
43985 if test "x$ac_cv_func_writev" = xyes; then :
43986   cat >>confdefs.h <<_ACEOF
43987 #define HAVE_WRITEV 1
43988 _ACEOF
43989  ice_have_writev=yes
43990 fi
43991 done
43992
43993 if test "${ice_have_writev}" = yes; then
43994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for writev declaration in unistd.h sys/uio.h" >&5
43995 $as_echo_n "checking for writev declaration in unistd.h sys/uio.h... " >&6; }
43996 if ${ice_cv_have_writev_decl+:} false; then :
43997   $as_echo_n "(cached) " >&6
43998 else
43999
44000 ice_cv_have_writev_decl=no
44001 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44002 ice_re_word='(^|[^a-zA-Z0-9_])'
44003 for header in unistd.h sys/uio.h; do
44004 # Check for ordinary declaration
44005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44006 /* end confdefs.h.  */
44007 #include <$header>
44008
44009 _ACEOF
44010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44011   $EGREP "${ice_re_word}writev[         ]*\(" >/dev/null 2>&1; then :
44012   ice_cv_have_writev_decl=yes
44013 fi
44014 rm -f conftest*
44015
44016 if test "$ice_cv_have_writev_decl" = yes; then
44017         break
44018 fi
44019 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44021 /* end confdefs.h.  */
44022 #include <$header>
44023
44024 _ACEOF
44025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44026   $EGREP "${ice_re_word}writev[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
44027   ice_cv_have_writev_decl=yes
44028 fi
44029 rm -f conftest*
44030
44031 if test "$ice_cv_have_writev_decl" = yes; then
44032         break
44033 fi
44034 done
44035
44036 fi
44037
44038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_writev_decl" >&5
44039 $as_echo "$ice_cv_have_writev_decl" >&6; }
44040 if test "$ice_cv_have_writev_decl" = yes; then
44041
44042 cat >>confdefs.h <<_ACEOF
44043 #define HAVE_WRITEV_DECL 1
44044 _ACEOF
44045
44046 fi
44047 fi
44048
44049
44050 ice_have_strcasecmp=no
44051 for ac_func in strcasecmp
44052 do :
44053   ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
44054 if test "x$ac_cv_func_strcasecmp" = xyes; then :
44055   cat >>confdefs.h <<_ACEOF
44056 #define HAVE_STRCASECMP 1
44057 _ACEOF
44058  ice_have_strcasecmp=yes
44059 fi
44060 done
44061
44062 if test "${ice_have_strcasecmp}" = yes; then
44063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp declaration in string.h strings.h" >&5
44064 $as_echo_n "checking for strcasecmp declaration in string.h strings.h... " >&6; }
44065 if ${ice_cv_have_strcasecmp_decl+:} false; then :
44066   $as_echo_n "(cached) " >&6
44067 else
44068
44069 ice_cv_have_strcasecmp_decl=no
44070 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44071 ice_re_word='(^|[^a-zA-Z0-9_])'
44072 for header in string.h strings.h; do
44073 # Check for ordinary declaration
44074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44075 /* end confdefs.h.  */
44076 #include <$header>
44077
44078 _ACEOF
44079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44080   $EGREP "${ice_re_word}strcasecmp[     ]*\(" >/dev/null 2>&1; then :
44081   ice_cv_have_strcasecmp_decl=yes
44082 fi
44083 rm -f conftest*
44084
44085 if test "$ice_cv_have_strcasecmp_decl" = yes; then
44086         break
44087 fi
44088 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44090 /* end confdefs.h.  */
44091 #include <$header>
44092
44093 _ACEOF
44094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44095   $EGREP "${ice_re_word}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
44096   ice_cv_have_strcasecmp_decl=yes
44097 fi
44098 rm -f conftest*
44099
44100 if test "$ice_cv_have_strcasecmp_decl" = yes; then
44101         break
44102 fi
44103 done
44104
44105 fi
44106
44107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strcasecmp_decl" >&5
44108 $as_echo "$ice_cv_have_strcasecmp_decl" >&6; }
44109 if test "$ice_cv_have_strcasecmp_decl" = yes; then
44110
44111 cat >>confdefs.h <<_ACEOF
44112 #define HAVE_STRCASECMP_DECL 1
44113 _ACEOF
44114
44115 fi
44116 fi
44117
44118
44119 #
44120 # Devices
44121 #
44122
44123
44124
44125
44126
44127
44128
44129
44130
44131
44132
44133
44134
44135
44136
44137
44138
44139
44140
44141
44142
44143
44144 # Check whether --with-libcurl was given.
44145 if test "${with_libcurl+set}" = set; then :
44146   withval=$with_libcurl; _libcurl_with=$withval
44147 else
44148   _libcurl_with=yes
44149 fi
44150
44151
44152   if test "$_libcurl_with" != "no" ; then
44153
44154      for ac_prog in gawk mawk nawk awk
44155 do
44156   # Extract the first word of "$ac_prog", so it can be a program name with args.
44157 set dummy $ac_prog; ac_word=$2
44158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44159 $as_echo_n "checking for $ac_word... " >&6; }
44160 if ${ac_cv_prog_AWK+:} false; then :
44161   $as_echo_n "(cached) " >&6
44162 else
44163   if test -n "$AWK"; then
44164   ac_cv_prog_AWK="$AWK" # Let the user override the test.
44165 else
44166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44167 for as_dir in $PATH
44168 do
44169   IFS=$as_save_IFS
44170   test -z "$as_dir" && as_dir=.
44171     for ac_exec_ext in '' $ac_executable_extensions; do
44172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44173     ac_cv_prog_AWK="$ac_prog"
44174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44175     break 2
44176   fi
44177 done
44178   done
44179 IFS=$as_save_IFS
44180
44181 fi
44182 fi
44183 AWK=$ac_cv_prog_AWK
44184 if test -n "$AWK"; then
44185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
44186 $as_echo "$AWK" >&6; }
44187 else
44188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44189 $as_echo "no" >&6; }
44190 fi
44191
44192
44193   test -n "$AWK" && break
44194 done
44195
44196
44197      _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
44198
44199      _libcurl_try_link=yes
44200
44201      if test -d "$_libcurl_with" ; then
44202         LIBCURL_CPPFLAGS="-I$withval/include"
44203         _libcurl_ldflags="-L$withval/lib"
44204         # Extract the first word of "curl-config", so it can be a program name with args.
44205 set dummy curl-config; ac_word=$2
44206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44207 $as_echo_n "checking for $ac_word... " >&6; }
44208 if ${ac_cv_path__libcurl_config+:} false; then :
44209   $as_echo_n "(cached) " >&6
44210 else
44211   case $_libcurl_config in
44212   [\\/]* | ?:[\\/]*)
44213   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
44214   ;;
44215   *)
44216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44217 for as_dir in "$withval/bin"
44218 do
44219   IFS=$as_save_IFS
44220   test -z "$as_dir" && as_dir=.
44221     for ac_exec_ext in '' $ac_executable_extensions; do
44222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44223     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
44224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44225     break 2
44226   fi
44227 done
44228   done
44229 IFS=$as_save_IFS
44230
44231   ;;
44232 esac
44233 fi
44234 _libcurl_config=$ac_cv_path__libcurl_config
44235 if test -n "$_libcurl_config"; then
44236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
44237 $as_echo "$_libcurl_config" >&6; }
44238 else
44239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44240 $as_echo "no" >&6; }
44241 fi
44242
44243
44244      else
44245         # Extract the first word of "curl-config", so it can be a program name with args.
44246 set dummy curl-config; ac_word=$2
44247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44248 $as_echo_n "checking for $ac_word... " >&6; }
44249 if ${ac_cv_path__libcurl_config+:} false; then :
44250   $as_echo_n "(cached) " >&6
44251 else
44252   case $_libcurl_config in
44253   [\\/]* | ?:[\\/]*)
44254   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
44255   ;;
44256   *)
44257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44258 for as_dir in $PATH
44259 do
44260   IFS=$as_save_IFS
44261   test -z "$as_dir" && as_dir=.
44262     for ac_exec_ext in '' $ac_executable_extensions; do
44263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44264     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
44265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44266     break 2
44267   fi
44268 done
44269   done
44270 IFS=$as_save_IFS
44271
44272   ;;
44273 esac
44274 fi
44275 _libcurl_config=$ac_cv_path__libcurl_config
44276 if test -n "$_libcurl_config"; then
44277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
44278 $as_echo "$_libcurl_config" >&6; }
44279 else
44280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44281 $as_echo "no" >&6; }
44282 fi
44283
44284
44285      fi
44286
44287      if test x$_libcurl_config != "x" ; then
44288         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
44289 $as_echo_n "checking for the version of libcurl... " >&6; }
44290 if ${libcurl_cv_lib_curl_version+:} false; then :
44291   $as_echo_n "(cached) " >&6
44292 else
44293   libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
44294 fi
44295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
44296 $as_echo "$libcurl_cv_lib_curl_version" >&6; }
44297
44298         _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
44299         _libcurl_wanted=`echo 7.10.0 | $_libcurl_version_parse`
44300
44301         if test $_libcurl_wanted -gt 0 ; then
44302            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.10.0" >&5
44303 $as_echo_n "checking for libcurl >= version 7.10.0... " >&6; }
44304 if ${libcurl_cv_lib_version_ok+:} false; then :
44305   $as_echo_n "(cached) " >&6
44306 else
44307
44308               if test $_libcurl_version -ge $_libcurl_wanted ; then
44309                  libcurl_cv_lib_version_ok=yes
44310               else
44311                  libcurl_cv_lib_version_ok=no
44312               fi
44313
44314 fi
44315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
44316 $as_echo "$libcurl_cv_lib_version_ok" >&6; }
44317         fi
44318
44319         if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
44320            if test x"$LIBCURL_CPPFLAGS" = "x" ; then
44321               LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
44322            fi
44323            if test x"$LIBCURL" = "x" ; then
44324               LIBCURL=`$_libcurl_config --libs`
44325
44326               # This is so silly, but Apple actually has a bug in their
44327               # curl-config script.  Fixed in Tiger, but there are still
44328               # lots of Panther installs around.
44329               case "${host}" in
44330                  powerpc-apple-darwin7*)
44331                     LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
44332                  ;;
44333               esac
44334            fi
44335
44336            # All curl-config scripts support --feature
44337            _libcurl_features=`$_libcurl_config --feature`
44338
44339            # Is it modern enough to have --protocols? (7.12.4)
44340            if test $_libcurl_version -ge 461828 ; then
44341               _libcurl_protocols=`$_libcurl_config --protocols`
44342            fi
44343         else
44344            _libcurl_try_link=no
44345         fi
44346
44347         unset _libcurl_wanted
44348      fi
44349
44350      if test $_libcurl_try_link = yes ; then
44351
44352         # we didn't find curl-config, so let's see if the user-supplied
44353         # link line (or failing that, "-lcurl") is enough.
44354         LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
44355
44356         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
44357 $as_echo_n "checking whether libcurl is usable... " >&6; }
44358 if ${libcurl_cv_lib_curl_usable+:} false; then :
44359   $as_echo_n "(cached) " >&6
44360 else
44361
44362            _libcurl_save_cppflags=$CPPFLAGS
44363            CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
44364            _libcurl_save_libs=$LIBS
44365            LIBS="$LIBCURL $LIBS"
44366
44367            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44368 /* end confdefs.h.  */
44369 #include <curl/curl.h>
44370 int
44371 main ()
44372 {
44373
44374 /* Try and use a few common options to force a failure if we are
44375    missing symbols or can't link. */
44376 int x;
44377 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
44378 x=CURL_ERROR_SIZE;
44379 x=CURLOPT_WRITEFUNCTION;
44380 x=CURLOPT_FILE;
44381 x=CURLOPT_ERRORBUFFER;
44382 x=CURLOPT_STDERR;
44383 x=CURLOPT_VERBOSE;
44384
44385   ;
44386   return 0;
44387 }
44388 _ACEOF
44389 if ac_fn_c_try_link "$LINENO"; then :
44390   libcurl_cv_lib_curl_usable=yes
44391 else
44392   libcurl_cv_lib_curl_usable=no
44393 fi
44394 rm -f core conftest.err conftest.$ac_objext \
44395     conftest$ac_exeext conftest.$ac_ext
44396
44397            CPPFLAGS=$_libcurl_save_cppflags
44398            LIBS=$_libcurl_save_libs
44399            unset _libcurl_save_cppflags
44400            unset _libcurl_save_libs
44401
44402 fi
44403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
44404 $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
44405
44406         if test $libcurl_cv_lib_curl_usable = yes ; then
44407
44408            # Does curl_free() exist in this version of libcurl?
44409            # If not, fake it with free()
44410
44411            _libcurl_save_cppflags=$CPPFLAGS
44412            CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
44413            _libcurl_save_libs=$LIBS
44414            LIBS="$LIBS $LIBCURL"
44415
44416            ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
44417 if test "x$ac_cv_func_curl_free" = xyes; then :
44418
44419 else
44420
44421 $as_echo "#define curl_free free" >>confdefs.h
44422
44423 fi
44424
44425
44426            CPPFLAGS=$_libcurl_save_cppflags
44427            LIBS=$_libcurl_save_libs
44428            unset _libcurl_save_cppflags
44429            unset _libcurl_save_libs
44430
44431
44432 $as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
44433
44434
44435
44436
44437            for _libcurl_feature in $_libcurl_features ; do
44438               cat >>confdefs.h <<_ACEOF
44439 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
44440 _ACEOF
44441
44442               eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
44443            done
44444
44445            if test "x$_libcurl_protocols" = "x" ; then
44446
44447               # We don't have --protocols, so just assume that all
44448               # protocols are available
44449               _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
44450
44451               if test x$libcurl_feature_SSL = xyes ; then
44452                  _libcurl_protocols="$_libcurl_protocols HTTPS"
44453
44454                  # FTPS wasn't standards-compliant until version
44455                  # 7.11.0
44456                  if test $_libcurl_version -ge 461568; then
44457                     _libcurl_protocols="$_libcurl_protocols FTPS"
44458                  fi
44459               fi
44460            fi
44461
44462            for _libcurl_protocol in $_libcurl_protocols ; do
44463               cat >>confdefs.h <<_ACEOF
44464 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
44465 _ACEOF
44466
44467               eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
44468            done
44469         else
44470            unset LIBCURL
44471            unset LIBCURL_CPPFLAGS
44472         fi
44473      fi
44474
44475       LIBCURL_USE_NSS=no
44476       LIBCURL_USE_GNUTLS=no
44477       LIBCURL_USE_OPENSSL=yes
44478      _libcurl_configures=`$_libcurl_config --configure`
44479      for _libcurl_configure in $_libcurl_configures ; do
44480         if [[ $_libcurl_configure = \'--with-nss* ]]; then
44481             LIBCURL_USE_NSS=yes
44482         fi
44483         if [[ $_libcurl_configure = \'--without-nss* ]]; then
44484             LIBCURL_USE_NSS=no
44485         fi
44486         if [[ $_libcurl_configure = \'--with-gnutls* ]]; then
44487             LIBCURL_USE_GNUTLS=yes
44488         fi
44489         if [[ $_libcurl_configure = \'--without-gnutls* ]]; then
44490             LIBCURL_USE_GNUTLS=no
44491         fi
44492         if [[ $_libcurl_configure = \'--with-ssl* ]]; then
44493             LIBCURL_USE_OPENSSL=yes
44494         fi
44495         if [[ $_libcurl_configure = \'--without-ssl* ]]; then
44496             LIBCURL_USE_OPENSSL=no
44497         fi
44498      done
44499
44500      if test "x$LIBCURL_USE_NSS" = "xyes"; then
44501
44502 $as_echo "#define LIBCURL_USE_NSS 1" >>confdefs.h
44503
44504      fi
44505      if test "x$LIBCURL_USE_GNUTLS" = "xyes"; then
44506
44507 $as_echo "#define LIBCURL_USE_GNUTLS /**/" >>confdefs.h
44508
44509      fi
44510      if test "x$LIBCURL_USE_OPENSSL" = "xyes"; then
44511
44512 $as_echo "#define LIBCURL_USE_OPENSSL 1" >>confdefs.h
44513
44514      fi
44515
44516      unset _libcurl_try_link
44517      unset _libcurl_version_parse
44518      unset _libcurl_config
44519      unset _libcurl_feature
44520      unset _libcurl_features
44521      unset _libcurl_protocol
44522      unset _libcurl_protocols
44523      unset _libcurl_version
44524      unset _libcurl_ldflags
44525      unset _libcurl_configure
44526      unset _libcurl_configures
44527   fi
44528
44529   if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
44530      # This is the IF-NO path
44531      HAVE_CURL=no
44532   else
44533      # This is the IF-YES path
44534      HAVE_CURL=yes
44535   fi
44536
44537   unset _libcurl_with
44538
44539     if test x"$HAVE_CURL" = x"yes"; then
44540         LIBS="$LIBCURL $LIBS"
44541
44542         CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
44543
44544
44545
44546
44547     ac_fn_c_check_type "$LINENO" "curl_off_t" "ac_cv_type_curl_off_t" "
44548 #ifdef HAVE_SYS_TYPES_H
44549 #include <sys/types.h>
44550 #endif
44551 #ifdef STDC_HEADERS
44552 #include <stdlib.h>
44553 #include <stddef.h>
44554 #endif
44555 #include <curl/curl.h>
44556
44557
44558 "
44559 if test "x$ac_cv_type_curl_off_t" = xyes; then :
44560
44561 else
44562
44563
44564 $as_echo "#define curl_off_t off_t" >>confdefs.h
44565
44566
44567 fi
44568
44569
44570         case "$host" in
44571             *sun-solaris2*) # Solaris, all versions.
44572             # we extract the -L flags and translate them to -R flags, as required
44573             # by the runtime linker.
44574             if test -n "$_libcurl_config"; then
44575                 curlflags=`$_libcurl_config --libs 2>/dev/null`
44576                 for flag in curlflags; do
44577                     case $flag in
44578                         -L*) LDFLAGS="$LDFLAGS "`echo "x$flag" | sed -e 's/^x-L/-R/'`;;
44579                     esac
44580                 done
44581             fi
44582             ;;
44583         esac
44584     fi
44585
44586
44587
44588     HAVE_HMAC=yes
44589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
44590 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
44591 if ${ac_cv_lib_crypto_HMAC_CTX_init+:} false; then :
44592   $as_echo_n "(cached) " >&6
44593 else
44594   ac_check_lib_save_LIBS=$LIBS
44595 LIBS="-lcrypto  $LIBS"
44596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44597 /* end confdefs.h.  */
44598
44599 /* Override any GCC internal prototype to avoid an error.
44600    Use char because int might match the return type of a GCC
44601    builtin and then its argument prototype would still apply.  */
44602 #ifdef __cplusplus
44603 extern "C"
44604 #endif
44605 char HMAC_CTX_init ();
44606 int
44607 main ()
44608 {
44609 return HMAC_CTX_init ();
44610   ;
44611   return 0;
44612 }
44613 _ACEOF
44614 if ac_fn_c_try_link "$LINENO"; then :
44615   ac_cv_lib_crypto_HMAC_CTX_init=yes
44616 else
44617   ac_cv_lib_crypto_HMAC_CTX_init=no
44618 fi
44619 rm -f core conftest.err conftest.$ac_objext \
44620     conftest$ac_exeext conftest.$ac_ext
44621 LIBS=$ac_check_lib_save_LIBS
44622 fi
44623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
44624 $as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
44625 if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = xyes; then :
44626   cat >>confdefs.h <<_ACEOF
44627 #define HAVE_LIBCRYPTO 1
44628 _ACEOF
44629
44630   LIBS="-lcrypto $LIBS"
44631
44632 else
44633   HAVE_HMAC=no
44634 fi
44635
44636
44637     found_hmac_h=no
44638     for ac_header in openssl/hmac.h crypto/hmac.h hmac.h
44639 do :
44640   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44641 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
44642 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44643   cat >>confdefs.h <<_ACEOF
44644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44645 _ACEOF
44646  found_hmac_h=yes; break
44647 fi
44648
44649 done
44650
44651     if test x"$found_hmac_h" != x"yes"; then
44652         HAVE_HMAC=no
44653     fi
44654
44655
44656
44657
44658
44659     # Check whether --enable-s3-device was given.
44660 if test "${enable_s3_device+set}" = set; then :
44661   enableval=$enable_s3_device;  WANT_S3_DEVICE=$enableval
44662 else
44663    WANT_S3_DEVICE=maybe
44664 fi
44665
44666
44667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include the Amazon S3 device" >&5
44668 $as_echo_n "checking whether to include the Amazon S3 device... " >&6; }
44669     # if the user didn't specify 'no', then check for support
44670     if test x"$WANT_S3_DEVICE" != x"no"; then
44671         if test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"; then
44672             WANT_S3_DEVICE=yes
44673         else
44674             # no support -- if the user explicitly enabled the device,
44675             # then this is an error
44676             if test x"$WANT_S3_DEVICE" = x"yes"; then
44677                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44678 $as_echo "no" >&6; }
44679                 as_fn_error $? "Cannot build the Amazon S3 device: one or more prerequisites are missing." "$LINENO" 5
44680             else
44681                 WANT_S3_DEVICE=no
44682             fi
44683         fi
44684     fi
44685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_S3_DEVICE" >&5
44686 $as_echo "$WANT_S3_DEVICE" >&6; }
44687
44688      if test x"$WANT_S3_DEVICE" = x"yes"; then
44689   WANT_S3_DEVICE_TRUE=
44690   WANT_S3_DEVICE_FALSE='#'
44691 else
44692   WANT_S3_DEVICE_TRUE='#'
44693   WANT_S3_DEVICE_FALSE=
44694 fi
44695
44696
44697     # Now handle any setup for S3, if we want it.
44698     if test x"$WANT_S3_DEVICE" = x"yes"; then
44699
44700 $as_echo "#define WANT_S3_DEVICE /**/" >>confdefs.h
44701
44702     fi
44703
44704
44705     for ac_header in \
44706         linux/zftape.h \
44707         sys/tape.h \
44708         sys/mtio.h \
44709
44710 do :
44711   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44712 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
44713 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44714   cat >>confdefs.h <<_ACEOF
44715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44716 _ACEOF
44717
44718 fi
44719
44720 done
44721
44722
44723     # check for MTIOCTOP, an indicator of POSIX tape support
44724     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MTIOCTOP" >&5
44725 $as_echo_n "checking for MTIOCTOP... " >&6; }
44726 if ${amanda_cv_HAVE_MTIOCTOP+:} false; then :
44727   $as_echo_n "(cached) " >&6
44728 else
44729
44730         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44731 /* end confdefs.h.  */
44732
44733 #ifdef HAVE_SYS_TAPE_H
44734 # include <sys/tape.h>
44735 #endif
44736 #ifdef HAVE_SYS_MTIO_H
44737 # include <sys/mtio.h>
44738 #endif
44739 #ifndef MTIOCTOP
44740 #error MTIOCTOP not defined
44741 #endif
44742
44743 int
44744 main ()
44745 {
44746  int dummy = 0;
44747   ;
44748   return 0;
44749 }
44750 _ACEOF
44751 if ac_fn_c_try_compile "$LINENO"; then :
44752   amanda_cv_HAVE_MTIOCTOP=yes
44753 else
44754   amanda_cv_HAVE_MTIOCTOP=no
44755 fi
44756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44757
44758         HAVE_MTIOCTOP=$amanda_cv_HAVE_MTIOCTOP
44759
44760 fi
44761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_HAVE_MTIOCTOP" >&5
44762 $as_echo "$amanda_cv_HAVE_MTIOCTOP" >&6; }
44763
44764     # maybe we have no tape device at all (e.g., Mac OS X)?
44765     if test x"$HAVE_MTIOCTOP" = x"yes"; then
44766         want_tape_device=yes
44767
44768 $as_echo "#define WANT_TAPE_DEVICE 1" >>confdefs.h
44769
44770     fi
44771      if test -n "$want_tape_device"; then
44772   WANT_TAPE_DEVICE_TRUE=
44773   WANT_TAPE_DEVICE_FALSE='#'
44774 else
44775   WANT_TAPE_DEVICE_TRUE='#'
44776   WANT_TAPE_DEVICE_FALSE=
44777 fi
44778
44779
44780     #
44781     # Check for various "mt status" related structure elements.
44782     #
44783     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_flags mtget structure element" >&5
44784 $as_echo_n "checking for mt_flags mtget structure element... " >&6; }
44785     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44786 /* end confdefs.h.  */
44787
44788 #include <stdio.h>
44789 #include <sys/types.h>
44790 #include <sys/mtio.h>
44791
44792 int
44793 main ()
44794 {
44795
44796             struct mtget buf;
44797             long ds;
44798
44799             ds = buf.mt_flags;
44800
44801   ;
44802   return 0;
44803 }
44804 _ACEOF
44805 if ac_fn_c_try_compile "$LINENO"; then :
44806
44807             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44808 $as_echo "yes" >&6; }
44809
44810 $as_echo "#define HAVE_MT_FLAGS 1" >>confdefs.h
44811
44812
44813 else
44814
44815             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44816 $as_echo "no" >&6; }
44817
44818 fi
44819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44820
44821     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_fileno mtget structure element" >&5
44822 $as_echo_n "checking for mt_fileno mtget structure element... " >&6; }
44823     mt_fileno_result="found"
44824     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44825 /* end confdefs.h.  */
44826
44827 #include <stdio.h>
44828 #include <sys/types.h>
44829 #include <sys/mtio.h>
44830
44831 int
44832 main ()
44833 {
44834
44835             struct mtget buf;
44836             long ds;
44837
44838             ds = buf.mt_fileno;
44839
44840   ;
44841   return 0;
44842 }
44843 _ACEOF
44844 if ac_fn_c_try_compile "$LINENO"; then :
44845
44846             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44847 $as_echo "yes" >&6; }
44848
44849 $as_echo "#define HAVE_MT_FILENO 1" >>confdefs.h
44850
44851
44852 else
44853
44854             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44855 $as_echo "no" >&6; }
44856
44857 fi
44858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44859
44860     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_blkno mtget structure element" >&5
44861 $as_echo_n "checking for mt_blkno mtget structure element... " >&6; }
44862     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44863 /* end confdefs.h.  */
44864
44865 #include <stdio.h>
44866 #include <sys/types.h>
44867 #include <sys/mtio.h>
44868
44869 int
44870 main ()
44871 {
44872
44873             struct mtget buf;
44874             long ds;
44875
44876             ds = buf.mt_blkno;
44877
44878   ;
44879   return 0;
44880 }
44881 _ACEOF
44882 if ac_fn_c_try_compile "$LINENO"; then :
44883
44884             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44885 $as_echo "yes" >&6; }
44886
44887 $as_echo "#define HAVE_MT_BLKNO 1" >>confdefs.h
44888
44889
44890 else
44891
44892             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44893 $as_echo "no" >&6; }
44894
44895 fi
44896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44897
44898     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_dsreg mtget structure element" >&5
44899 $as_echo_n "checking for mt_dsreg mtget structure element... " >&6; }
44900     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44901 /* end confdefs.h.  */
44902
44903 #include <stdio.h>
44904 #include <sys/types.h>
44905 #include <sys/mtio.h>
44906
44907 int
44908 main ()
44909 {
44910
44911             struct mtget buf;
44912             long ds;
44913
44914             ds = buf.mt_dsreg;
44915
44916   ;
44917   return 0;
44918 }
44919 _ACEOF
44920 if ac_fn_c_try_compile "$LINENO"; then :
44921
44922             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44923 $as_echo "yes" >&6; }
44924
44925 $as_echo "#define HAVE_MT_DSREG 1" >>confdefs.h
44926
44927
44928 else
44929
44930             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44931 $as_echo "no" >&6; }
44932
44933 fi
44934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44935
44936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_erreg mtget structure element" >&5
44937 $as_echo_n "checking for mt_erreg mtget structure element... " >&6; }
44938     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44939 /* end confdefs.h.  */
44940
44941 #include <stdio.h>
44942 #include <sys/types.h>
44943 #include <sys/mtio.h>
44944
44945 int
44946 main ()
44947 {
44948
44949             struct mtget buf;
44950             long ds;
44951
44952             ds = buf.mt_erreg;
44953
44954   ;
44955   return 0;
44956 }
44957 _ACEOF
44958 if ac_fn_c_try_compile "$LINENO"; then :
44959
44960             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44961 $as_echo "yes" >&6; }
44962
44963 $as_echo "#define HAVE_MT_ERREG 1" >>confdefs.h
44964
44965
44966 else
44967
44968             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44969 $as_echo "no" >&6; }
44970
44971 fi
44972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44973
44974     case "$host" in
44975         *linux*)
44976 $as_echo "#define DEFAULT_TAPE_NON_BLOCKING_OPEN 1" >>confdefs.h
44977 ;;
44978     esac
44979
44980
44981         # Check whether --enable-dvdrw-device was given.
44982 if test "${enable_dvdrw_device+set}" = set; then :
44983   enableval=$enable_dvdrw_device;  WANT_DVDRW_DEVICE=$enableval
44984 else
44985    WANT_DVDRW_DEVICE=yes
44986 fi
44987
44988
44989         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include the DVD-RW device" >&5
44990 $as_echo_n "checking whether to include the DVD-RW device... " >&6; }
44991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_DVDRW_DEVICE" >&5
44992 $as_echo "$WANT_DVDRW_DEVICE" >&6; }
44993
44994          if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
44995   WANT_DVDRW_DEVICE_TRUE=
44996   WANT_DVDRW_DEVICE_FALSE='#'
44997 else
44998   WANT_DVDRW_DEVICE_TRUE='#'
44999   WANT_DVDRW_DEVICE_FALSE=
45000 fi
45001
45002
45003         # Now handle any setup for DVDRW, if we want it.
45004         if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
45005
45006 $as_echo "#define WANT_DVDRW_DEVICE /**/" >>confdefs.h
45007
45008         fi
45009
45010
45011
45012
45013     # Check whether --enable-ndmp-device was given.
45014 if test "${enable_ndmp_device+set}" = set; then :
45015   enableval=$enable_ndmp_device;  WANT_NDMP_DEVICE=$enableval
45016 else
45017    WANT_NDMP_DEVICE=$WANT_NDMP
45018 fi
45019
45020
45021     if test x"$WANT_NDMP" != x"true" -a x"$WANT_NDMP_DEVICE" = x"true"; then
45022         as_fn_error $? "NDMP support is required to build the ndmp device (--with-ndmp)" "$LINENO" 5
45023     fi
45024
45025     if test x"$WANT_NDMP_DEVICE" = x"true"; then
45026
45027 $as_echo "#define WANT_NDMP_DEVICE 1" >>confdefs.h
45028
45029     fi
45030
45031      if test x"$WANT_NDMP_DEVICE" = x"true"; then
45032   WANT_NDMP_DEVICE_TRUE=
45033   WANT_NDMP_DEVICE_FALSE='#'
45034 else
45035   WANT_NDMP_DEVICE_TRUE='#'
45036   WANT_NDMP_DEVICE_FALSE=
45037 fi
45038
45039
45040
45041
45042 ac_config_files="$ac_config_files Makefile amandad-src/Makefile amar-src/Makefile amplot/Makefile changer-src/Makefile client-src/Makefile common-src/Makefile config/Makefile device-src/Makefile application-src/Makefile example/Makefile gnulib/Makefile installcheck/Makefile man/Makefile ndmp-src/Makefile oldrecover-src/Makefile packaging/Makefile perl/amglue/Makefile perl/Makefile po/Makefile recover-src/Makefile server-src/Makefile xfer-src/Makefile"
45043
45044
45045 cat >confcache <<\_ACEOF
45046 # This file is a shell script that caches the results of configure
45047 # tests run on this system so they can be shared between configure
45048 # scripts and configure runs, see configure's option --config-cache.
45049 # It is not useful on other systems.  If it contains results you don't
45050 # want to keep, you may remove or edit it.
45051 #
45052 # config.status only pays attention to the cache file if you give it
45053 # the --recheck option to rerun configure.
45054 #
45055 # `ac_cv_env_foo' variables (set or unset) will be overridden when
45056 # loading this file, other *unset* `ac_cv_foo' will be assigned the
45057 # following values.
45058
45059 _ACEOF
45060
45061 # The following way of writing the cache mishandles newlines in values,
45062 # but we know of no workaround that is simple, portable, and efficient.
45063 # So, we kill variables containing newlines.
45064 # Ultrix sh set writes to stderr and can't be redirected directly,
45065 # and sets the high bit in the cache file unless we assign to the vars.
45066 (
45067   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45068     eval ac_val=\$$ac_var
45069     case $ac_val in #(
45070     *${as_nl}*)
45071       case $ac_var in #(
45072       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
45073 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45074       esac
45075       case $ac_var in #(
45076       _ | IFS | as_nl) ;; #(
45077       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
45078       *) { eval $ac_var=; unset $ac_var;} ;;
45079       esac ;;
45080     esac
45081   done
45082
45083   (set) 2>&1 |
45084     case $as_nl`(ac_space=' '; set) 2>&1` in #(
45085     *${as_nl}ac_space=\ *)
45086       # `set' does not quote correctly, so add quotes: double-quote
45087       # substitution turns \\\\ into \\, and sed turns \\ into \.
45088       sed -n \
45089         "s/'/'\\\\''/g;
45090           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45091       ;; #(
45092     *)
45093       # `set' quotes correctly as required by POSIX, so do not add quotes.
45094       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45095       ;;
45096     esac |
45097     sort
45098 ) |
45099   sed '
45100      /^ac_cv_env_/b end
45101      t clear
45102      :clear
45103      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45104      t end
45105      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45106      :end' >>confcache
45107 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45108   if test -w "$cache_file"; then
45109     if test "x$cache_file" != "x/dev/null"; then
45110       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
45111 $as_echo "$as_me: updating cache $cache_file" >&6;}
45112       if test ! -f "$cache_file" || test -h "$cache_file"; then
45113         cat confcache >"$cache_file"
45114       else
45115         case $cache_file in #(
45116         */* | ?:*)
45117           mv -f confcache "$cache_file"$$ &&
45118           mv -f "$cache_file"$$ "$cache_file" ;; #(
45119         *)
45120           mv -f confcache "$cache_file" ;;
45121         esac
45122       fi
45123     fi
45124   else
45125     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
45126 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
45127   fi
45128 fi
45129 rm -f confcache
45130
45131 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45132 # Let make expand exec_prefix.
45133 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45134
45135 DEFS=-DHAVE_CONFIG_H
45136
45137 ac_libobjs=
45138 ac_ltlibobjs=
45139 U=
45140 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45141   # 1. Remove the extension, and $U if already installed.
45142   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45143   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
45144   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
45145   #    will be set to the directory where LIBOBJS objects are built.
45146   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45147   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
45148 done
45149 LIBOBJS=$ac_libobjs
45150
45151 LTLIBOBJS=$ac_ltlibobjs
45152
45153
45154  if test -n "$EXEEXT"; then
45155   am__EXEEXT_TRUE=
45156   am__EXEEXT_FALSE='#'
45157 else
45158   am__EXEEXT_TRUE='#'
45159   am__EXEEXT_FALSE=
45160 fi
45161
45162 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45163   as_fn_error $? "conditional \"AMDEP\" was never defined.
45164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45165 fi
45166 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45167   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
45168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45169 fi
45170 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
45171   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
45172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45173 fi
45174
45175     gl_libobjs=
45176     gl_ltlibobjs=
45177     if test -n "$gl_LIBOBJS"; then
45178       # Remove the extension.
45179       sed_drop_objext='s/\.o$//;s/\.obj$//'
45180       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
45181         gl_libobjs="$gl_libobjs $i.$ac_objext"
45182         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
45183       done
45184     fi
45185     gl_LIBOBJS=$gl_libobjs
45186
45187     gl_LTLIBOBJS=$gl_ltlibobjs
45188
45189
45190
45191     gltests_libobjs=
45192     gltests_ltlibobjs=
45193     if test -n "$gltests_LIBOBJS"; then
45194       # Remove the extension.
45195       sed_drop_objext='s/\.o$//;s/\.obj$//'
45196       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
45197         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
45198         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
45199       done
45200     fi
45201     gltests_LIBOBJS=$gltests_libobjs
45202
45203     gltests_LTLIBOBJS=$gltests_ltlibobjs
45204
45205
45206 if test -z "${WANT_AS_NEEDED_TRUE}" && test -z "${WANT_AS_NEEDED_FALSE}"; then
45207   as_fn_error $? "conditional \"WANT_AS_NEEDED\" was never defined.
45208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45209 fi
45210 if test -z "${CHECK_USERID_TRUE}" && test -z "${CHECK_USERID_FALSE}"; then
45211   as_fn_error $? "conditional \"CHECK_USERID\" was never defined.
45212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45213 fi
45214 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
45215   as_fn_error $? "conditional \"WANT_SETUID_CLIENT\" was never defined.
45216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45217 fi
45218 if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
45219   as_fn_error $? "conditional \"WANT_INSTALLPERMS\" was never defined.
45220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45221 fi
45222 if test -z "${SYNTAX_CHECKS_TRUE}" && test -z "${SYNTAX_CHECKS_FALSE}"; then
45223   as_fn_error $? "conditional \"SYNTAX_CHECKS\" was never defined.
45224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45225 fi
45226 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
45227   as_fn_error $? "conditional \"WANT_CLIENT\" was never defined.
45228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45229 fi
45230 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
45231   as_fn_error $? "conditional \"WANT_RESTORE\" was never defined.
45232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45233 fi
45234 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
45235   as_fn_error $? "conditional \"WANT_SERVER\" was never defined.
45236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45237 fi
45238 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
45239   as_fn_error $? "conditional \"WANT_RECOVER\" was never defined.
45240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45241 fi
45242 if test -z "${WANT_NDMP_TRUE}" && test -z "${WANT_NDMP_FALSE}"; then
45243   as_fn_error $? "conditional \"WANT_NDMP\" was never defined.
45244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45245 fi
45246 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
45247   as_fn_error $? "conditional \"WANT_TAPE\" was never defined.
45248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45249 fi
45250 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
45251   as_fn_error $? "conditional \"WANT_AMPLOT\" was never defined.
45252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45253 fi
45254 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
45255   as_fn_error $? "conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
45256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45257 fi
45258 if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
45259   as_fn_error $? "conditional \"WANT_AMFLOCK_POSIX\" was never defined.
45260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45261 fi
45262 if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
45263   as_fn_error $? "conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
45264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45265 fi
45266 if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
45267   as_fn_error $? "conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
45268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45269 fi
45270 if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
45271   as_fn_error $? "conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
45272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45273 fi
45274 if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
45275   as_fn_error $? "conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
45276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45277 fi
45278 if test -z "${WANT_MANDATORY_THREAD_CHECK_TRUE}" && test -z "${WANT_MANDATORY_THREAD_CHECK_FALSE}"; then
45279   as_fn_error $? "conditional \"WANT_MANDATORY_THREAD_CHECK\" was never defined.
45280 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45281 fi
45282 if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
45283   as_fn_error $? "conditional \"WANT_BSD_SECURITY\" was never defined.
45284 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45285 fi
45286 if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
45287   as_fn_error $? "conditional \"WANT_BSDTCP_SECURITY\" was never defined.
45288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45289 fi
45290 if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
45291   as_fn_error $? "conditional \"WANT_BSDUDP_SECURITY\" was never defined.
45292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45293 fi
45294 if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
45295   as_fn_error $? "conditional \"WANT_RSH_SECURITY\" was never defined.
45296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45297 fi
45298 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
45299   as_fn_error $? "conditional \"WANT_SSH_SECURITY\" was never defined.
45300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45301 fi
45302 if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
45303   as_fn_error $? "conditional \"WANT_KRB5_SECURITY\" was never defined.
45304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45305 fi
45306 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
45307   as_fn_error $? "conditional \"WANT_SAMBA\" was never defined.
45308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45309 fi
45310
45311 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
45312   as_fn_error $? "conditional \"GCC_COMPILER\" was never defined.
45313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45314 fi
45315 if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
45316   as_fn_error $? "conditional \"WANT_S3_DEVICE\" was never defined.
45317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45318 fi
45319 if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
45320   as_fn_error $? "conditional \"WANT_TAPE_DEVICE\" was never defined.
45321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45322 fi
45323 if test -z "${WANT_DVDRW_DEVICE_TRUE}" && test -z "${WANT_DVDRW_DEVICE_FALSE}"; then
45324   as_fn_error $? "conditional \"WANT_DVDRW_DEVICE\" was never defined.
45325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45326 fi
45327 if test -z "${WANT_NDMP_DEVICE_TRUE}" && test -z "${WANT_NDMP_DEVICE_FALSE}"; then
45328   as_fn_error $? "conditional \"WANT_NDMP_DEVICE\" was never defined.
45329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45330 fi
45331
45332 : "${CONFIG_STATUS=./config.status}"
45333 ac_write_fail=0
45334 ac_clean_files_save=$ac_clean_files
45335 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45336 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
45337 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
45338 as_write_fail=0
45339 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
45340 #! $SHELL
45341 # Generated by $as_me.
45342 # Run this file to recreate the current configuration.
45343 # Compiler output produced by configure, useful for debugging
45344 # configure, is in config.log if it exists.
45345
45346 debug=false
45347 ac_cs_recheck=false
45348 ac_cs_silent=false
45349
45350 SHELL=\${CONFIG_SHELL-$SHELL}
45351 export SHELL
45352 _ASEOF
45353 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
45354 ## -------------------- ##
45355 ## M4sh Initialization. ##
45356 ## -------------------- ##
45357
45358 # Be more Bourne compatible
45359 DUALCASE=1; export DUALCASE # for MKS sh
45360 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
45361   emulate sh
45362   NULLCMD=:
45363   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45364   # is contrary to our usage.  Disable this feature.
45365   alias -g '${1+"$@"}'='"$@"'
45366   setopt NO_GLOB_SUBST
45367 else
45368   case `(set -o) 2>/dev/null` in #(
45369   *posix*) :
45370     set -o posix ;; #(
45371   *) :
45372      ;;
45373 esac
45374 fi
45375
45376
45377 as_nl='
45378 '
45379 export as_nl
45380 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45381 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45382 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45383 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45384 # Prefer a ksh shell builtin over an external printf program on Solaris,
45385 # but without wasting forks for bash or zsh.
45386 if test -z "$BASH_VERSION$ZSH_VERSION" \
45387     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45388   as_echo='print -r --'
45389   as_echo_n='print -rn --'
45390 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
45391   as_echo='printf %s\n'
45392   as_echo_n='printf %s'
45393 else
45394   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
45395     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
45396     as_echo_n='/usr/ucb/echo -n'
45397   else
45398     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
45399     as_echo_n_body='eval
45400       arg=$1;
45401       case $arg in #(
45402       *"$as_nl"*)
45403         expr "X$arg" : "X\\(.*\\)$as_nl";
45404         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
45405       esac;
45406       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
45407     '
45408     export as_echo_n_body
45409     as_echo_n='sh -c $as_echo_n_body as_echo'
45410   fi
45411   export as_echo_body
45412   as_echo='sh -c $as_echo_body as_echo'
45413 fi
45414
45415 # The user is always right.
45416 if test "${PATH_SEPARATOR+set}" != set; then
45417   PATH_SEPARATOR=:
45418   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
45419     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
45420       PATH_SEPARATOR=';'
45421   }
45422 fi
45423
45424
45425 # IFS
45426 # We need space, tab and new line, in precisely that order.  Quoting is
45427 # there to prevent editors from complaining about space-tab.
45428 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
45429 # splitting by setting IFS to empty value.)
45430 IFS=" ""        $as_nl"
45431
45432 # Find who we are.  Look in the path if we contain no directory separator.
45433 as_myself=
45434 case $0 in #((
45435   *[\\/]* ) as_myself=$0 ;;
45436   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45437 for as_dir in $PATH
45438 do
45439   IFS=$as_save_IFS
45440   test -z "$as_dir" && as_dir=.
45441     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45442   done
45443 IFS=$as_save_IFS
45444
45445      ;;
45446 esac
45447 # We did not find ourselves, most probably we were run as `sh COMMAND'
45448 # in which case we are not to be found in the path.
45449 if test "x$as_myself" = x; then
45450   as_myself=$0
45451 fi
45452 if test ! -f "$as_myself"; then
45453   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
45454   exit 1
45455 fi
45456
45457 # Unset variables that we do not need and which cause bugs (e.g. in
45458 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
45459 # suppresses any "Segmentation fault" message there.  '((' could
45460 # trigger a bug in pdksh 5.2.14.
45461 for as_var in BASH_ENV ENV MAIL MAILPATH
45462 do eval test x\${$as_var+set} = xset \
45463   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
45464 done
45465 PS1='$ '
45466 PS2='> '
45467 PS4='+ '
45468
45469 # NLS nuisances.
45470 LC_ALL=C
45471 export LC_ALL
45472 LANGUAGE=C
45473 export LANGUAGE
45474
45475 # CDPATH.
45476 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45477
45478
45479 # as_fn_error STATUS ERROR [LINENO LOG_FD]
45480 # ----------------------------------------
45481 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
45482 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
45483 # script with STATUS, using 1 if that was 0.
45484 as_fn_error ()
45485 {
45486   as_status=$1; test $as_status -eq 0 && as_status=1
45487   if test "$4"; then
45488     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
45489     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
45490   fi
45491   $as_echo "$as_me: error: $2" >&2
45492   as_fn_exit $as_status
45493 } # as_fn_error
45494
45495
45496 # as_fn_set_status STATUS
45497 # -----------------------
45498 # Set $? to STATUS, without forking.
45499 as_fn_set_status ()
45500 {
45501   return $1
45502 } # as_fn_set_status
45503
45504 # as_fn_exit STATUS
45505 # -----------------
45506 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
45507 as_fn_exit ()
45508 {
45509   set +e
45510   as_fn_set_status $1
45511   exit $1
45512 } # as_fn_exit
45513
45514 # as_fn_unset VAR
45515 # ---------------
45516 # Portably unset VAR.
45517 as_fn_unset ()
45518 {
45519   { eval $1=; unset $1;}
45520 }
45521 as_unset=as_fn_unset
45522 # as_fn_append VAR VALUE
45523 # ----------------------
45524 # Append the text in VALUE to the end of the definition contained in VAR. Take
45525 # advantage of any shell optimizations that allow amortized linear growth over
45526 # repeated appends, instead of the typical quadratic growth present in naive
45527 # implementations.
45528 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
45529   eval 'as_fn_append ()
45530   {
45531     eval $1+=\$2
45532   }'
45533 else
45534   as_fn_append ()
45535   {
45536     eval $1=\$$1\$2
45537   }
45538 fi # as_fn_append
45539
45540 # as_fn_arith ARG...
45541 # ------------------
45542 # Perform arithmetic evaluation on the ARGs, and store the result in the
45543 # global $as_val. Take advantage of shells that can avoid forks. The arguments
45544 # must be portable across $(()) and expr.
45545 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
45546   eval 'as_fn_arith ()
45547   {
45548     as_val=$(( $* ))
45549   }'
45550 else
45551   as_fn_arith ()
45552   {
45553     as_val=`expr "$@" || test $? -eq 1`
45554   }
45555 fi # as_fn_arith
45556
45557
45558 if expr a : '\(a\)' >/dev/null 2>&1 &&
45559    test "X`expr 00001 : '.*\(...\)'`" = X001; then
45560   as_expr=expr
45561 else
45562   as_expr=false
45563 fi
45564
45565 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45566   as_basename=basename
45567 else
45568   as_basename=false
45569 fi
45570
45571 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45572   as_dirname=dirname
45573 else
45574   as_dirname=false
45575 fi
45576
45577 as_me=`$as_basename -- "$0" ||
45578 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45579          X"$0" : 'X\(//\)$' \| \
45580          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
45581 $as_echo X/"$0" |
45582     sed '/^.*\/\([^/][^/]*\)\/*$/{
45583             s//\1/
45584             q
45585           }
45586           /^X\/\(\/\/\)$/{
45587             s//\1/
45588             q
45589           }
45590           /^X\/\(\/\).*/{
45591             s//\1/
45592             q
45593           }
45594           s/.*/./; q'`
45595
45596 # Avoid depending upon Character Ranges.
45597 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45598 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45599 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45600 as_cr_digits='0123456789'
45601 as_cr_alnum=$as_cr_Letters$as_cr_digits
45602
45603 ECHO_C= ECHO_N= ECHO_T=
45604 case `echo -n x` in #(((((
45605 -n*)
45606   case `echo 'xy\c'` in
45607   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
45608   xy)  ECHO_C='\c';;
45609   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
45610        ECHO_T=' ';;
45611   esac;;
45612 *)
45613   ECHO_N='-n';;
45614 esac
45615
45616 rm -f conf$$ conf$$.exe conf$$.file
45617 if test -d conf$$.dir; then
45618   rm -f conf$$.dir/conf$$.file
45619 else
45620   rm -f conf$$.dir
45621   mkdir conf$$.dir 2>/dev/null
45622 fi
45623 if (echo >conf$$.file) 2>/dev/null; then
45624   if ln -s conf$$.file conf$$ 2>/dev/null; then
45625     as_ln_s='ln -s'
45626     # ... but there are two gotchas:
45627     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
45628     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
45629     # In both cases, we have to default to `cp -p'.
45630     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
45631       as_ln_s='cp -p'
45632   elif ln conf$$.file conf$$ 2>/dev/null; then
45633     as_ln_s=ln
45634   else
45635     as_ln_s='cp -p'
45636   fi
45637 else
45638   as_ln_s='cp -p'
45639 fi
45640 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
45641 rmdir conf$$.dir 2>/dev/null
45642
45643
45644 # as_fn_mkdir_p
45645 # -------------
45646 # Create "$as_dir" as a directory, including parents if necessary.
45647 as_fn_mkdir_p ()
45648 {
45649
45650   case $as_dir in #(
45651   -*) as_dir=./$as_dir;;
45652   esac
45653   test -d "$as_dir" || eval $as_mkdir_p || {
45654     as_dirs=
45655     while :; do
45656       case $as_dir in #(
45657       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
45658       *) as_qdir=$as_dir;;
45659       esac
45660       as_dirs="'$as_qdir' $as_dirs"
45661       as_dir=`$as_dirname -- "$as_dir" ||
45662 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45663          X"$as_dir" : 'X\(//\)[^/]' \| \
45664          X"$as_dir" : 'X\(//\)$' \| \
45665          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45666 $as_echo X"$as_dir" |
45667     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45668             s//\1/
45669             q
45670           }
45671           /^X\(\/\/\)[^/].*/{
45672             s//\1/
45673             q
45674           }
45675           /^X\(\/\/\)$/{
45676             s//\1/
45677             q
45678           }
45679           /^X\(\/\).*/{
45680             s//\1/
45681             q
45682           }
45683           s/.*/./; q'`
45684       test -d "$as_dir" && break
45685     done
45686     test -z "$as_dirs" || eval "mkdir $as_dirs"
45687   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
45688
45689
45690 } # as_fn_mkdir_p
45691 if mkdir -p . 2>/dev/null; then
45692   as_mkdir_p='mkdir -p "$as_dir"'
45693 else
45694   test -d ./-p && rmdir ./-p
45695   as_mkdir_p=false
45696 fi
45697
45698 if test -x / >/dev/null 2>&1; then
45699   as_test_x='test -x'
45700 else
45701   if ls -dL / >/dev/null 2>&1; then
45702     as_ls_L_option=L
45703   else
45704     as_ls_L_option=
45705   fi
45706   as_test_x='
45707     eval sh -c '\''
45708       if test -d "$1"; then
45709         test -d "$1/.";
45710       else
45711         case $1 in #(
45712         -*)set "./$1";;
45713         esac;
45714         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
45715         ???[sx]*):;;*)false;;esac;fi
45716     '\'' sh
45717   '
45718 fi
45719 as_executable_p=$as_test_x
45720
45721 # Sed expression to map a string onto a valid CPP name.
45722 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45723
45724 # Sed expression to map a string onto a valid variable name.
45725 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45726
45727
45728 exec 6>&1
45729 ## ----------------------------------- ##
45730 ## Main body of $CONFIG_STATUS script. ##
45731 ## ----------------------------------- ##
45732 _ASEOF
45733 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
45734
45735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45736 # Save the log message, to keep $0 and so on meaningful, and to
45737 # report actual input values of CONFIG_FILES etc. instead of their
45738 # values after options handling.
45739 ac_log="
45740 This file was extended by amanda $as_me 3.3.2, which was
45741 generated by GNU Autoconf 2.68.  Invocation command line was
45742
45743   CONFIG_FILES    = $CONFIG_FILES
45744   CONFIG_HEADERS  = $CONFIG_HEADERS
45745   CONFIG_LINKS    = $CONFIG_LINKS
45746   CONFIG_COMMANDS = $CONFIG_COMMANDS
45747   $ $0 $@
45748
45749 on `(hostname || uname -n) 2>/dev/null | sed 1q`
45750 "
45751
45752 _ACEOF
45753
45754 case $ac_config_files in *"
45755 "*) set x $ac_config_files; shift; ac_config_files=$*;;
45756 esac
45757
45758 case $ac_config_headers in *"
45759 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
45760 esac
45761
45762
45763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45764 # Files that config.status was made for.
45765 config_files="$ac_config_files"
45766 config_headers="$ac_config_headers"
45767 config_commands="$ac_config_commands"
45768
45769 _ACEOF
45770
45771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45772 ac_cs_usage="\
45773 \`$as_me' instantiates files and other configuration actions
45774 from templates according to the current configuration.  Unless the files
45775 and actions are specified as TAGs, all are instantiated by default.
45776
45777 Usage: $0 [OPTION]... [TAG]...
45778
45779   -h, --help       print this help, then exit
45780   -V, --version    print version number and configuration settings, then exit
45781       --config     print configuration, then exit
45782   -q, --quiet, --silent
45783                    do not print progress messages
45784   -d, --debug      don't remove temporary files
45785       --recheck    update $as_me by reconfiguring in the same conditions
45786       --file=FILE[:TEMPLATE]
45787                    instantiate the configuration file FILE
45788       --header=FILE[:TEMPLATE]
45789                    instantiate the configuration header FILE
45790
45791 Configuration files:
45792 $config_files
45793
45794 Configuration headers:
45795 $config_headers
45796
45797 Configuration commands:
45798 $config_commands
45799
45800 Report bugs to the package provider."
45801
45802 _ACEOF
45803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45804 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
45805 ac_cs_version="\\
45806 amanda config.status 3.3.2
45807 configured by $0, generated by GNU Autoconf 2.68,
45808   with options \\"\$ac_cs_config\\"
45809
45810 Copyright (C) 2010 Free Software Foundation, Inc.
45811 This config.status script is free software; the Free Software Foundation
45812 gives unlimited permission to copy, distribute and modify it."
45813
45814 ac_pwd='$ac_pwd'
45815 srcdir='$srcdir'
45816 INSTALL='$INSTALL'
45817 MKDIR_P='$MKDIR_P'
45818 AWK='$AWK'
45819 test -n "\$AWK" || AWK=awk
45820 _ACEOF
45821
45822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45823 # The default lists apply if the user does not specify any file.
45824 ac_need_defaults=:
45825 while test $# != 0
45826 do
45827   case $1 in
45828   --*=?*)
45829     ac_option=`expr "X$1" : 'X\([^=]*\)='`
45830     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
45831     ac_shift=:
45832     ;;
45833   --*=)
45834     ac_option=`expr "X$1" : 'X\([^=]*\)='`
45835     ac_optarg=
45836     ac_shift=:
45837     ;;
45838   *)
45839     ac_option=$1
45840     ac_optarg=$2
45841     ac_shift=shift
45842     ;;
45843   esac
45844
45845   case $ac_option in
45846   # Handling of the options.
45847   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45848     ac_cs_recheck=: ;;
45849   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
45850     $as_echo "$ac_cs_version"; exit ;;
45851   --config | --confi | --conf | --con | --co | --c )
45852     $as_echo "$ac_cs_config"; exit ;;
45853   --debug | --debu | --deb | --de | --d | -d )
45854     debug=: ;;
45855   --file | --fil | --fi | --f )
45856     $ac_shift
45857     case $ac_optarg in
45858     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
45859     '') as_fn_error $? "missing file argument" ;;
45860     esac
45861     as_fn_append CONFIG_FILES " '$ac_optarg'"
45862     ac_need_defaults=false;;
45863   --header | --heade | --head | --hea )
45864     $ac_shift
45865     case $ac_optarg in
45866     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
45867     esac
45868     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
45869     ac_need_defaults=false;;
45870   --he | --h)
45871     # Conflict between --help and --header
45872     as_fn_error $? "ambiguous option: \`$1'
45873 Try \`$0 --help' for more information.";;
45874   --help | --hel | -h )
45875     $as_echo "$ac_cs_usage"; exit ;;
45876   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45877   | -silent | --silent | --silen | --sile | --sil | --si | --s)
45878     ac_cs_silent=: ;;
45879
45880   # This is an error.
45881   -*) as_fn_error $? "unrecognized option: \`$1'
45882 Try \`$0 --help' for more information." ;;
45883
45884   *) as_fn_append ac_config_targets " $1"
45885      ac_need_defaults=false ;;
45886
45887   esac
45888   shift
45889 done
45890
45891 ac_configure_extra_args=
45892
45893 if $ac_cs_silent; then
45894   exec 6>/dev/null
45895   ac_configure_extra_args="$ac_configure_extra_args --silent"
45896 fi
45897
45898 _ACEOF
45899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45900 if \$ac_cs_recheck; then
45901   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45902   shift
45903   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
45904   CONFIG_SHELL='$SHELL'
45905   export CONFIG_SHELL
45906   exec "\$@"
45907 fi
45908
45909 _ACEOF
45910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45911 exec 5>>config.log
45912 {
45913   echo
45914   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45915 ## Running $as_me. ##
45916 _ASBOX
45917   $as_echo "$ac_log"
45918 } >&5
45919
45920 _ACEOF
45921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45922 #
45923 # INIT-COMMANDS
45924 #
45925 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45926 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
45927     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
45928     # from automake < 1.5.
45929     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
45930     # Capture the value of LINGUAS because we need it to compute CATALOGS.
45931     LINGUAS="${LINGUAS-%UNSET%}"
45932
45933
45934
45935 # The HP-UX ksh and POSIX shell print the target directory to stdout
45936 # if CDPATH is set.
45937 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45938
45939 sed_quote_subst='$sed_quote_subst'
45940 double_quote_subst='$double_quote_subst'
45941 delay_variable_subst='$delay_variable_subst'
45942 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
45943 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
45944 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
45945 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
45946 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
45947 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
45948 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
45949 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
45950 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
45951 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
45952 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
45953 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
45954 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
45955 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
45956 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
45957 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
45958 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
45959 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
45960 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
45961 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
45962 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
45963 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
45964 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
45965 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
45966 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
45967 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
45968 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
45969 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
45970 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
45971 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
45972 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
45973 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
45974 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
45975 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
45976 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
45977 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
45978 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
45979 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
45980 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
45981 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
45982 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
45983 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
45984 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
45985 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
45986 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
45987 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
45988 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
45989 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
45990 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
45991 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
45992 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
45993 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
45994 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
45995 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
45996 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
45997 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
45998 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
45999 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
46000 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
46001 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
46002 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
46003 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
46004 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
46005 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
46006 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
46007 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
46008 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
46009 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
46010 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
46011 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
46012 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
46013 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
46014 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
46015 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
46016 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46017 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
46018 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
46019 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
46020 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
46021 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
46022 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
46023 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46024 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
46025 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46026 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
46027 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46028 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
46029 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
46030 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
46031 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
46032 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
46033 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
46034 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
46035 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
46036 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
46037 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
46038 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
46039 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
46040 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
46041 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
46042 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
46043 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
46044 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
46045 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
46046 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
46047 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
46048 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
46049 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
46050 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
46051 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
46052 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
46053 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
46054 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
46055 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
46056 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
46057 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
46058 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
46059 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46060 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46061 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
46062 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
46063 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
46064 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
46065 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
46066 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
46067 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
46068 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
46069 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
46070 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
46071 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
46072
46073 LTCC='$LTCC'
46074 LTCFLAGS='$LTCFLAGS'
46075 compiler='$compiler_DEFAULT'
46076
46077 # A function that is used when there is no print builtin or printf.
46078 func_fallback_echo ()
46079 {
46080   eval 'cat <<_LTECHO_EOF
46081 \$1
46082 _LTECHO_EOF'
46083 }
46084
46085 # Quote evaled strings.
46086 for var in SHELL \
46087 ECHO \
46088 SED \
46089 GREP \
46090 EGREP \
46091 FGREP \
46092 LD \
46093 NM \
46094 LN_S \
46095 lt_SP2NL \
46096 lt_NL2SP \
46097 reload_flag \
46098 OBJDUMP \
46099 deplibs_check_method \
46100 file_magic_cmd \
46101 file_magic_glob \
46102 want_nocaseglob \
46103 DLLTOOL \
46104 sharedlib_from_linklib_cmd \
46105 AR \
46106 AR_FLAGS \
46107 archiver_list_spec \
46108 STRIP \
46109 RANLIB \
46110 CC \
46111 CFLAGS \
46112 compiler \
46113 lt_cv_sys_global_symbol_pipe \
46114 lt_cv_sys_global_symbol_to_cdecl \
46115 lt_cv_sys_global_symbol_to_c_name_address \
46116 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46117 nm_file_list_spec \
46118 lt_prog_compiler_no_builtin_flag \
46119 lt_prog_compiler_pic \
46120 lt_prog_compiler_wl \
46121 lt_prog_compiler_static \
46122 lt_cv_prog_compiler_c_o \
46123 need_locks \
46124 MANIFEST_TOOL \
46125 DSYMUTIL \
46126 NMEDIT \
46127 LIPO \
46128 OTOOL \
46129 OTOOL64 \
46130 shrext_cmds \
46131 export_dynamic_flag_spec \
46132 whole_archive_flag_spec \
46133 compiler_needs_object \
46134 with_gnu_ld \
46135 allow_undefined_flag \
46136 no_undefined_flag \
46137 hardcode_libdir_flag_spec \
46138 hardcode_libdir_flag_spec_ld \
46139 hardcode_libdir_separator \
46140 exclude_expsyms \
46141 include_expsyms \
46142 file_list_spec \
46143 variables_saved_for_relink \
46144 libname_spec \
46145 library_names_spec \
46146 soname_spec \
46147 install_override_mode \
46148 finish_eval \
46149 old_striplib \
46150 striplib; do
46151     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46152     *[\\\\\\\`\\"\\\$]*)
46153       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
46154       ;;
46155     *)
46156       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46157       ;;
46158     esac
46159 done
46160
46161 # Double-quote double-evaled strings.
46162 for var in reload_cmds \
46163 old_postinstall_cmds \
46164 old_postuninstall_cmds \
46165 old_archive_cmds \
46166 extract_expsyms_cmds \
46167 old_archive_from_new_cmds \
46168 old_archive_from_expsyms_cmds \
46169 archive_cmds \
46170 archive_expsym_cmds \
46171 module_cmds \
46172 module_expsym_cmds \
46173 export_symbols_cmds \
46174 prelink_cmds \
46175 postlink_cmds \
46176 postinstall_cmds \
46177 postuninstall_cmds \
46178 finish_cmds \
46179 sys_lib_search_path_spec \
46180 sys_lib_dlsearch_path_spec; do
46181     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46182     *[\\\\\\\`\\"\\\$]*)
46183       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
46184       ;;
46185     *)
46186       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46187       ;;
46188     esac
46189 done
46190
46191 ac_aux_dir='$ac_aux_dir'
46192 xsi_shell='$xsi_shell'
46193 lt_shell_append='$lt_shell_append'
46194
46195 # See if we are running on zsh, and set the options which allow our
46196 # commands through without removal of \ escapes INIT.
46197 if test -n "\${ZSH_VERSION+set}" ; then
46198    setopt NO_GLOB_SUBST
46199 fi
46200
46201
46202     PACKAGE='$PACKAGE'
46203     VERSION='$VERSION'
46204     TIMESTAMP='$TIMESTAMP'
46205     RM='$RM'
46206     ofile='$ofile'
46207
46208
46209
46210
46211 _ACEOF
46212
46213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46214
46215 # Handling of arguments.
46216 for ac_config_target in $ac_config_targets
46217 do
46218   case $ac_config_target in
46219     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
46220     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
46221     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
46222     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
46223     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46224     "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
46225     "amar-src/Makefile") CONFIG_FILES="$CONFIG_FILES amar-src/Makefile" ;;
46226     "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
46227     "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
46228     "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
46229     "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
46230     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
46231     "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
46232     "application-src/Makefile") CONFIG_FILES="$CONFIG_FILES application-src/Makefile" ;;
46233     "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
46234     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
46235     "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
46236     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
46237     "ndmp-src/Makefile") CONFIG_FILES="$CONFIG_FILES ndmp-src/Makefile" ;;
46238     "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
46239     "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
46240     "perl/amglue/Makefile") CONFIG_FILES="$CONFIG_FILES perl/amglue/Makefile" ;;
46241     "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
46242     "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
46243     "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
46244     "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
46245     "xfer-src/Makefile") CONFIG_FILES="$CONFIG_FILES xfer-src/Makefile" ;;
46246
46247   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
46248   esac
46249 done
46250
46251
46252 # If the user did not use the arguments to specify the items to instantiate,
46253 # then the envvar interface is used.  Set only those that are not.
46254 # We use the long form for the default assignment because of an extremely
46255 # bizarre bug on SunOS 4.1.3.
46256 if $ac_need_defaults; then
46257   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46258   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46259   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46260 fi
46261
46262 # Have a temporary directory for convenience.  Make it in the build tree
46263 # simply because there is no reason against having it here, and in addition,
46264 # creating and moving files from /tmp can sometimes cause problems.
46265 # Hook for its removal unless debugging.
46266 # Note that there is a small window in which the directory will not be cleaned:
46267 # after its creation but before its name has been assigned to `$tmp'.
46268 $debug ||
46269 {
46270   tmp= ac_tmp=
46271   trap 'exit_status=$?
46272   : "${ac_tmp:=$tmp}"
46273   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
46274 ' 0
46275   trap 'as_fn_exit 1' 1 2 13 15
46276 }
46277 # Create a (secure) tmp directory for tmp files.
46278
46279 {
46280   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46281   test -d "$tmp"
46282 }  ||
46283 {
46284   tmp=./conf$$-$RANDOM
46285   (umask 077 && mkdir "$tmp")
46286 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
46287 ac_tmp=$tmp
46288
46289 # Set up the scripts for CONFIG_FILES section.
46290 # No need to generate them if there are no CONFIG_FILES.
46291 # This happens for instance with `./config.status config.h'.
46292 if test -n "$CONFIG_FILES"; then
46293
46294
46295 ac_cr=`echo X | tr X '\015'`
46296 # On cygwin, bash can eat \r inside `` if the user requested igncr.
46297 # But we know of no other shell where ac_cr would be empty at this
46298 # point, so we can use a bashism as a fallback.
46299 if test "x$ac_cr" = x; then
46300   eval ac_cr=\$\'\\r\'
46301 fi
46302 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
46303 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
46304   ac_cs_awk_cr='\\r'
46305 else
46306   ac_cs_awk_cr=$ac_cr
46307 fi
46308
46309 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
46310 _ACEOF
46311
46312
46313 {
46314   echo "cat >conf$$subs.awk <<_ACEOF" &&
46315   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
46316   echo "_ACEOF"
46317 } >conf$$subs.sh ||
46318   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46319 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
46320 ac_delim='%!_!# '
46321 for ac_last_try in false false false false false :; do
46322   . ./conf$$subs.sh ||
46323     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46324
46325   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
46326   if test $ac_delim_n = $ac_delim_num; then
46327     break
46328   elif $ac_last_try; then
46329     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46330   else
46331     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46332   fi
46333 done
46334 rm -f conf$$subs.sh
46335
46336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46337 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
46338 _ACEOF
46339 sed -n '
46340 h
46341 s/^/S["/; s/!.*/"]=/
46342 p
46343 g
46344 s/^[^!]*!//
46345 :repl
46346 t repl
46347 s/'"$ac_delim"'$//
46348 t delim
46349 :nl
46350 h
46351 s/\(.\{148\}\)..*/\1/
46352 t more1
46353 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
46354 p
46355 n
46356 b repl
46357 :more1
46358 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46359 p
46360 g
46361 s/.\{148\}//
46362 t nl
46363 :delim
46364 h
46365 s/\(.\{148\}\)..*/\1/
46366 t more2
46367 s/["\\]/\\&/g; s/^/"/; s/$/"/
46368 p
46369 b
46370 :more2
46371 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46372 p
46373 g
46374 s/.\{148\}//
46375 t delim
46376 ' <conf$$subs.awk | sed '
46377 /^[^""]/{
46378   N
46379   s/\n//
46380 }
46381 ' >>$CONFIG_STATUS || ac_write_fail=1
46382 rm -f conf$$subs.awk
46383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46384 _ACAWK
46385 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
46386   for (key in S) S_is_set[key] = 1
46387   FS = "\a"
46388
46389 }
46390 {
46391   line = $ 0
46392   nfields = split(line, field, "@")
46393   substed = 0
46394   len = length(field[1])
46395   for (i = 2; i < nfields; i++) {
46396     key = field[i]
46397     keylen = length(key)
46398     if (S_is_set[key]) {
46399       value = S[key]
46400       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
46401       len += length(value) + length(field[++i])
46402       substed = 1
46403     } else
46404       len += 1 + keylen
46405   }
46406
46407   print line
46408 }
46409
46410 _ACAWK
46411 _ACEOF
46412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46413 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
46414   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
46415 else
46416   cat
46417 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
46418   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
46419 _ACEOF
46420
46421 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
46422 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
46423 # trailing colons and then remove the whole line if VPATH becomes empty
46424 # (actually we leave an empty line to preserve line numbers).
46425 if test "x$srcdir" = x.; then
46426   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
46427 h
46428 s///
46429 s/^/:/
46430 s/[      ]*$/:/
46431 s/:\$(srcdir):/:/g
46432 s/:\${srcdir}:/:/g
46433 s/:@srcdir@:/:/g
46434 s/^:*//
46435 s/:*$//
46436 x
46437 s/\(=[   ]*\).*/\1/
46438 G
46439 s/\n//
46440 s/^[^=]*=[       ]*$//
46441 }'
46442 fi
46443
46444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46445 fi # test -n "$CONFIG_FILES"
46446
46447 # Set up the scripts for CONFIG_HEADERS section.
46448 # No need to generate them if there are no CONFIG_HEADERS.
46449 # This happens for instance with `./config.status Makefile'.
46450 if test -n "$CONFIG_HEADERS"; then
46451 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
46452 BEGIN {
46453 _ACEOF
46454
46455 # Transform confdefs.h into an awk script `defines.awk', embedded as
46456 # here-document in config.status, that substitutes the proper values into
46457 # config.h.in to produce config.h.
46458
46459 # Create a delimiter string that does not exist in confdefs.h, to ease
46460 # handling of long lines.
46461 ac_delim='%!_!# '
46462 for ac_last_try in false false :; do
46463   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
46464   if test -z "$ac_tt"; then
46465     break
46466   elif $ac_last_try; then
46467     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
46468   else
46469     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46470   fi
46471 done
46472
46473 # For the awk script, D is an array of macro values keyed by name,
46474 # likewise P contains macro parameters if any.  Preserve backslash
46475 # newline sequences.
46476
46477 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46478 sed -n '
46479 s/.\{148\}/&'"$ac_delim"'/g
46480 t rset
46481 :rset
46482 s/^[     ]*#[    ]*define[       ][      ]*/ /
46483 t def
46484 d
46485 :def
46486 s/\\$//
46487 t bsnl
46488 s/["\\]/\\&/g
46489 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
46490 D["\1"]=" \3"/p
46491 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
46492 d
46493 :bsnl
46494 s/["\\]/\\&/g
46495 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
46496 D["\1"]=" \3\\\\\\n"\\/p
46497 t cont
46498 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
46499 t cont
46500 d
46501 :cont
46502 n
46503 s/.\{148\}/&'"$ac_delim"'/g
46504 t clear
46505 :clear
46506 s/\\$//
46507 t bsnlc
46508 s/["\\]/\\&/g; s/^/"/; s/$/"/p
46509 d
46510 :bsnlc
46511 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
46512 b cont
46513 ' <confdefs.h | sed '
46514 s/'"$ac_delim"'/"\\\
46515 "/g' >>$CONFIG_STATUS || ac_write_fail=1
46516
46517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46518   for (key in D) D_is_set[key] = 1
46519   FS = "\a"
46520 }
46521 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
46522   line = \$ 0
46523   split(line, arg, " ")
46524   if (arg[1] == "#") {
46525     defundef = arg[2]
46526     mac1 = arg[3]
46527   } else {
46528     defundef = substr(arg[1], 2)
46529     mac1 = arg[2]
46530   }
46531   split(mac1, mac2, "(") #)
46532   macro = mac2[1]
46533   prefix = substr(line, 1, index(line, defundef) - 1)
46534   if (D_is_set[macro]) {
46535     # Preserve the white space surrounding the "#".
46536     print prefix "define", macro P[macro] D[macro]
46537     next
46538   } else {
46539     # Replace #undef with comments.  This is necessary, for example,
46540     # in the case of _POSIX_SOURCE, which is predefined and required
46541     # on some systems where configure will not decide to define it.
46542     if (defundef == "undef") {
46543       print "/*", prefix defundef, macro, "*/"
46544       next
46545     }
46546   }
46547 }
46548 { print }
46549 _ACAWK
46550 _ACEOF
46551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46552   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
46553 fi # test -n "$CONFIG_HEADERS"
46554
46555
46556 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
46557 shift
46558 for ac_tag
46559 do
46560   case $ac_tag in
46561   :[FHLC]) ac_mode=$ac_tag; continue;;
46562   esac
46563   case $ac_mode$ac_tag in
46564   :[FHL]*:*);;
46565   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
46566   :[FH]-) ac_tag=-:-;;
46567   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
46568   esac
46569   ac_save_IFS=$IFS
46570   IFS=:
46571   set x $ac_tag
46572   IFS=$ac_save_IFS
46573   shift
46574   ac_file=$1
46575   shift
46576
46577   case $ac_mode in
46578   :L) ac_source=$1;;
46579   :[FH])
46580     ac_file_inputs=
46581     for ac_f
46582     do
46583       case $ac_f in
46584       -) ac_f="$ac_tmp/stdin";;
46585       *) # Look for the file first in the build tree, then in the source tree
46586          # (if the path is not absolute).  The absolute path cannot be DOS-style,
46587          # because $ac_f cannot contain `:'.
46588          test -f "$ac_f" ||
46589            case $ac_f in
46590            [\\/$]*) false;;
46591            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
46592            esac ||
46593            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
46594       esac
46595       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
46596       as_fn_append ac_file_inputs " '$ac_f'"
46597     done
46598
46599     # Let's still pretend it is `configure' which instantiates (i.e., don't
46600     # use $as_me), people would be surprised to read:
46601     #    /* config.h.  Generated by config.status.  */
46602     configure_input='Generated from '`
46603           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
46604         `' by configure.'
46605     if test x"$ac_file" != x-; then
46606       configure_input="$ac_file.  $configure_input"
46607       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
46608 $as_echo "$as_me: creating $ac_file" >&6;}
46609     fi
46610     # Neutralize special characters interpreted by sed in replacement strings.
46611     case $configure_input in #(
46612     *\&* | *\|* | *\\* )
46613        ac_sed_conf_input=`$as_echo "$configure_input" |
46614        sed 's/[\\\\&|]/\\\\&/g'`;; #(
46615     *) ac_sed_conf_input=$configure_input;;
46616     esac
46617
46618     case $ac_tag in
46619     *:-:* | *:-) cat >"$ac_tmp/stdin" \
46620       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
46621     esac
46622     ;;
46623   esac
46624
46625   ac_dir=`$as_dirname -- "$ac_file" ||
46626 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46627          X"$ac_file" : 'X\(//\)[^/]' \| \
46628          X"$ac_file" : 'X\(//\)$' \| \
46629          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
46630 $as_echo X"$ac_file" |
46631     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46632             s//\1/
46633             q
46634           }
46635           /^X\(\/\/\)[^/].*/{
46636             s//\1/
46637             q
46638           }
46639           /^X\(\/\/\)$/{
46640             s//\1/
46641             q
46642           }
46643           /^X\(\/\).*/{
46644             s//\1/
46645             q
46646           }
46647           s/.*/./; q'`
46648   as_dir="$ac_dir"; as_fn_mkdir_p
46649   ac_builddir=.
46650
46651 case "$ac_dir" in
46652 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46653 *)
46654   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
46655   # A ".." for each directory in $ac_dir_suffix.
46656   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
46657   case $ac_top_builddir_sub in
46658   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46659   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46660   esac ;;
46661 esac
46662 ac_abs_top_builddir=$ac_pwd
46663 ac_abs_builddir=$ac_pwd$ac_dir_suffix
46664 # for backward compatibility:
46665 ac_top_builddir=$ac_top_build_prefix
46666
46667 case $srcdir in
46668   .)  # We are building in place.
46669     ac_srcdir=.
46670     ac_top_srcdir=$ac_top_builddir_sub
46671     ac_abs_top_srcdir=$ac_pwd ;;
46672   [\\/]* | ?:[\\/]* )  # Absolute name.
46673     ac_srcdir=$srcdir$ac_dir_suffix;
46674     ac_top_srcdir=$srcdir
46675     ac_abs_top_srcdir=$srcdir ;;
46676   *) # Relative name.
46677     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46678     ac_top_srcdir=$ac_top_build_prefix$srcdir
46679     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46680 esac
46681 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46682
46683
46684   case $ac_mode in
46685   :F)
46686   #
46687   # CONFIG_FILE
46688   #
46689
46690   case $INSTALL in
46691   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46692   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
46693   esac
46694   ac_MKDIR_P=$MKDIR_P
46695   case $MKDIR_P in
46696   [\\/$]* | ?:[\\/]* ) ;;
46697   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
46698   esac
46699 _ACEOF
46700
46701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46702 # If the template does not know about datarootdir, expand it.
46703 # FIXME: This hack should be removed a few years after 2.60.
46704 ac_datarootdir_hack=; ac_datarootdir_seen=
46705 ac_sed_dataroot='
46706 /datarootdir/ {
46707   p
46708   q
46709 }
46710 /@datadir@/p
46711 /@docdir@/p
46712 /@infodir@/p
46713 /@localedir@/p
46714 /@mandir@/p'
46715 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
46716 *datarootdir*) ac_datarootdir_seen=yes;;
46717 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
46718   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
46719 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
46720 _ACEOF
46721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46722   ac_datarootdir_hack='
46723   s&@datadir@&$datadir&g
46724   s&@docdir@&$docdir&g
46725   s&@infodir@&$infodir&g
46726   s&@localedir@&$localedir&g
46727   s&@mandir@&$mandir&g
46728   s&\\\${datarootdir}&$datarootdir&g' ;;
46729 esac
46730 _ACEOF
46731
46732 # Neutralize VPATH when `$srcdir' = `.'.
46733 # Shell code in configure.ac might set extrasub.
46734 # FIXME: do we really want to maintain this feature?
46735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46736 ac_sed_extra="$ac_vpsub
46737 $extrasub
46738 _ACEOF
46739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46740 :t
46741 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46742 s|@configure_input@|$ac_sed_conf_input|;t t
46743 s&@top_builddir@&$ac_top_builddir_sub&;t t
46744 s&@top_build_prefix@&$ac_top_build_prefix&;t t
46745 s&@srcdir@&$ac_srcdir&;t t
46746 s&@abs_srcdir@&$ac_abs_srcdir&;t t
46747 s&@top_srcdir@&$ac_top_srcdir&;t t
46748 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
46749 s&@builddir@&$ac_builddir&;t t
46750 s&@abs_builddir@&$ac_abs_builddir&;t t
46751 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
46752 s&@INSTALL@&$ac_INSTALL&;t t
46753 s&@MKDIR_P@&$ac_MKDIR_P&;t t
46754 $ac_datarootdir_hack
46755 "
46756 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
46757   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46758
46759 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
46760   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
46761   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
46762       "$ac_tmp/out"`; test -z "$ac_out"; } &&
46763   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46764 which seems to be undefined.  Please make sure it is defined" >&5
46765 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46766 which seems to be undefined.  Please make sure it is defined" >&2;}
46767
46768   rm -f "$ac_tmp/stdin"
46769   case $ac_file in
46770   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
46771   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
46772   esac \
46773   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46774  ;;
46775   :H)
46776   #
46777   # CONFIG_HEADER
46778   #
46779   if test x"$ac_file" != x-; then
46780     {
46781       $as_echo "/* $configure_input  */" \
46782       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
46783     } >"$ac_tmp/config.h" \
46784       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46785     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
46786       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
46787 $as_echo "$as_me: $ac_file is unchanged" >&6;}
46788     else
46789       rm -f "$ac_file"
46790       mv "$ac_tmp/config.h" "$ac_file" \
46791         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46792     fi
46793   else
46794     $as_echo "/* $configure_input  */" \
46795       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
46796       || as_fn_error $? "could not create -" "$LINENO" 5
46797   fi
46798 # Compute "$ac_file"'s index in $config_headers.
46799 _am_arg="$ac_file"
46800 _am_stamp_count=1
46801 for _am_header in $config_headers :; do
46802   case $_am_header in
46803     $_am_arg | $_am_arg:* )
46804       break ;;
46805     * )
46806       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46807   esac
46808 done
46809 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
46810 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46811          X"$_am_arg" : 'X\(//\)[^/]' \| \
46812          X"$_am_arg" : 'X\(//\)$' \| \
46813          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
46814 $as_echo X"$_am_arg" |
46815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46816             s//\1/
46817             q
46818           }
46819           /^X\(\/\/\)[^/].*/{
46820             s//\1/
46821             q
46822           }
46823           /^X\(\/\/\)$/{
46824             s//\1/
46825             q
46826           }
46827           /^X\(\/\).*/{
46828             s//\1/
46829             q
46830           }
46831           s/.*/./; q'`/stamp-h$_am_stamp_count
46832  ;;
46833
46834   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
46835 $as_echo "$as_me: executing $ac_file commands" >&6;}
46836  ;;
46837   esac
46838
46839
46840   case $ac_file$ac_mode in
46841     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
46842   # Autoconf 2.62 quotes --file arguments for eval, but not when files
46843   # are listed without --file.  Let's play safe and only enable the eval
46844   # if we detect the quoting.
46845   case $CONFIG_FILES in
46846   *\'*) eval set x "$CONFIG_FILES" ;;
46847   *)   set x $CONFIG_FILES ;;
46848   esac
46849   shift
46850   for mf
46851   do
46852     # Strip MF so we end up with the name of the file.
46853     mf=`echo "$mf" | sed -e 's/:.*$//'`
46854     # Check whether this is an Automake generated Makefile or not.
46855     # We used to match only the files named `Makefile.in', but
46856     # some people rename them; so instead we look at the file content.
46857     # Grep'ing the first line is not enough: some people post-process
46858     # each Makefile.in and add a new line on top of each file to say so.
46859     # Grep'ing the whole file is not good either: AIX grep has a line
46860     # limit of 2048, but all sed's we know have understand at least 4000.
46861     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
46862       dirpart=`$as_dirname -- "$mf" ||
46863 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46864          X"$mf" : 'X\(//\)[^/]' \| \
46865          X"$mf" : 'X\(//\)$' \| \
46866          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
46867 $as_echo X"$mf" |
46868     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46869             s//\1/
46870             q
46871           }
46872           /^X\(\/\/\)[^/].*/{
46873             s//\1/
46874             q
46875           }
46876           /^X\(\/\/\)$/{
46877             s//\1/
46878             q
46879           }
46880           /^X\(\/\).*/{
46881             s//\1/
46882             q
46883           }
46884           s/.*/./; q'`
46885     else
46886       continue
46887     fi
46888     # Extract the definition of DEPDIR, am__include, and am__quote
46889     # from the Makefile without running `make'.
46890     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46891     test -z "$DEPDIR" && continue
46892     am__include=`sed -n 's/^am__include = //p' < "$mf"`
46893     test -z "am__include" && continue
46894     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46895     # When using ansi2knr, U may be empty or an underscore; expand it
46896     U=`sed -n 's/^U = //p' < "$mf"`
46897     # Find all dependency output files, they are included files with
46898     # $(DEPDIR) in their names.  We invoke sed twice because it is the
46899     # simplest approach to changing $(DEPDIR) to its actual value in the
46900     # expansion.
46901     for file in `sed -n "
46902       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46903          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46904       # Make sure the directory exists.
46905       test -f "$dirpart/$file" && continue
46906       fdir=`$as_dirname -- "$file" ||
46907 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46908          X"$file" : 'X\(//\)[^/]' \| \
46909          X"$file" : 'X\(//\)$' \| \
46910          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
46911 $as_echo X"$file" |
46912     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46913             s//\1/
46914             q
46915           }
46916           /^X\(\/\/\)[^/].*/{
46917             s//\1/
46918             q
46919           }
46920           /^X\(\/\/\)$/{
46921             s//\1/
46922             q
46923           }
46924           /^X\(\/\).*/{
46925             s//\1/
46926             q
46927           }
46928           s/.*/./; q'`
46929       as_dir=$dirpart/$fdir; as_fn_mkdir_p
46930       # echo "creating $dirpart/$file"
46931       echo '# dummy' > "$dirpart/$file"
46932     done
46933   done
46934 }
46935  ;;
46936     "po-directories":C)
46937     for ac_file in $CONFIG_FILES; do
46938       # Support "outfile[:infile[:infile...]]"
46939       case "$ac_file" in
46940         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46941       esac
46942       # PO directories have a Makefile.in generated from Makefile.in.in.
46943       case "$ac_file" in */Makefile.in)
46944         # Adjust a relative srcdir.
46945         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46946         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46947         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46948         # In autoconf-2.13 it is called $ac_given_srcdir.
46949         # In autoconf-2.50 it is called $srcdir.
46950         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46951         case "$ac_given_srcdir" in
46952           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46953           /*) top_srcdir="$ac_given_srcdir" ;;
46954           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
46955         esac
46956         # Treat a directory as a PO directory if and only if it has a
46957         # POTFILES.in file. This allows packages to have multiple PO
46958         # directories under different names or in different locations.
46959         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46960           rm -f "$ac_dir/POTFILES"
46961           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46962           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46963           POMAKEFILEDEPS="POTFILES.in"
46964           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46965           # on $ac_dir but don't depend on user-specified configuration
46966           # parameters.
46967           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46968             # The LINGUAS file contains the set of available languages.
46969             if test -n "$OBSOLETE_ALL_LINGUAS"; then
46970               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46971             fi
46972             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46973             # Hide the ALL_LINGUAS assigment from automake < 1.5.
46974             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46975             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46976           else
46977             # The set of available languages was given in configure.in.
46978             # Hide the ALL_LINGUAS assigment from automake < 1.5.
46979             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46980           fi
46981           # Compute POFILES
46982           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46983           # Compute UPDATEPOFILES
46984           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46985           # Compute DUMMYPOFILES
46986           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46987           # Compute GMOFILES
46988           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46989           case "$ac_given_srcdir" in
46990             .) srcdirpre= ;;
46991             *) srcdirpre='$(srcdir)/' ;;
46992           esac
46993           POFILES=
46994           UPDATEPOFILES=
46995           DUMMYPOFILES=
46996           GMOFILES=
46997           for lang in $ALL_LINGUAS; do
46998             POFILES="$POFILES $srcdirpre$lang.po"
46999             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
47000             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
47001             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
47002           done
47003           # CATALOGS depends on both $ac_dir and the user's LINGUAS
47004           # environment variable.
47005           INST_LINGUAS=
47006           if test -n "$ALL_LINGUAS"; then
47007             for presentlang in $ALL_LINGUAS; do
47008               useit=no
47009               if test "%UNSET%" != "$LINGUAS"; then
47010                 desiredlanguages="$LINGUAS"
47011               else
47012                 desiredlanguages="$ALL_LINGUAS"
47013               fi
47014               for desiredlang in $desiredlanguages; do
47015                 # Use the presentlang catalog if desiredlang is
47016                 #   a. equal to presentlang, or
47017                 #   b. a variant of presentlang (because in this case,
47018                 #      presentlang can be used as a fallback for messages
47019                 #      which are not translated in the desiredlang catalog).
47020                 case "$desiredlang" in
47021                   "$presentlang"*) useit=yes;;
47022                 esac
47023               done
47024               if test $useit = yes; then
47025                 INST_LINGUAS="$INST_LINGUAS $presentlang"
47026               fi
47027             done
47028           fi
47029           CATALOGS=
47030           if test -n "$INST_LINGUAS"; then
47031             for lang in $INST_LINGUAS; do
47032               CATALOGS="$CATALOGS $lang.gmo"
47033             done
47034           fi
47035           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
47036           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
47037           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
47038             if test -f "$f"; then
47039               case "$f" in
47040                 *.orig | *.bak | *~) ;;
47041                 *) cat "$f" >> "$ac_dir/Makefile" ;;
47042               esac
47043             fi
47044           done
47045         fi
47046         ;;
47047       esac
47048     done ;;
47049     "libtool":C)
47050
47051     # See if we are running on zsh, and set the options which allow our
47052     # commands through without removal of \ escapes.
47053     if test -n "${ZSH_VERSION+set}" ; then
47054       setopt NO_GLOB_SUBST
47055     fi
47056
47057     cfgfile="${ofile}T"
47058     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47059     $RM "$cfgfile"
47060
47061     cat <<_LT_EOF >> "$cfgfile"
47062 #! $SHELL
47063
47064 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
47065 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
47066 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
47067 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
47068 #
47069 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
47070 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
47071 #                 Inc.
47072 #   Written by Gordon Matzigkeit, 1996
47073 #
47074 #   This file is part of GNU Libtool.
47075 #
47076 # GNU Libtool is free software; you can redistribute it and/or
47077 # modify it under the terms of the GNU General Public License as
47078 # published by the Free Software Foundation; either version 2 of
47079 # the License, or (at your option) any later version.
47080 #
47081 # As a special exception to the GNU General Public License,
47082 # if you distribute this file as part of a program or library that
47083 # is built using GNU Libtool, you may include this file under the
47084 # same distribution terms that you use for the rest of that program.
47085 #
47086 # GNU Libtool is distributed in the hope that it will be useful,
47087 # but WITHOUT ANY WARRANTY; without even the implied warranty of
47088 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
47089 # GNU General Public License for more details.
47090 #
47091 # You should have received a copy of the GNU General Public License
47092 # along with GNU Libtool; see the file COPYING.  If not, a copy
47093 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
47094 # obtained by writing to the Free Software Foundation, Inc.,
47095 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
47096
47097
47098 # The names of the tagged configurations supported by this script.
47099 available_tags=""
47100
47101 # ### BEGIN LIBTOOL CONFIG
47102
47103 # Which release of libtool.m4 was used?
47104 macro_version=$macro_version
47105 macro_revision=$macro_revision
47106
47107 # Whether or not to build shared libraries.
47108 build_libtool_libs=$enable_shared
47109
47110 # Whether or not to build static libraries.
47111 build_old_libs=$enable_static
47112
47113 # What type of objects to build.
47114 pic_mode=$pic_mode
47115
47116 # Whether or not to optimize for fast installation.
47117 fast_install=$enable_fast_install
47118
47119 # Shell to use when invoking shell scripts.
47120 SHELL=$lt_SHELL
47121
47122 # An echo program that protects backslashes.
47123 ECHO=$lt_ECHO
47124
47125 # The host system.
47126 host_alias=$host_alias
47127 host=$host
47128 host_os=$host_os
47129
47130 # The build system.
47131 build_alias=$build_alias
47132 build=$build
47133 build_os=$build_os
47134
47135 # A sed program that does not truncate output.
47136 SED=$lt_SED
47137
47138 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
47139 Xsed="\$SED -e 1s/^X//"
47140
47141 # A grep program that handles long lines.
47142 GREP=$lt_GREP
47143
47144 # An ERE matcher.
47145 EGREP=$lt_EGREP
47146
47147 # A literal string matcher.
47148 FGREP=$lt_FGREP
47149
47150 # A BSD- or MS-compatible name lister.
47151 NM=$lt_NM
47152
47153 # Whether we need soft or hard links.
47154 LN_S=$lt_LN_S
47155
47156 # What is the maximum length of a command?
47157 max_cmd_len=$max_cmd_len
47158
47159 # Object file suffix (normally "o").
47160 objext=$ac_objext
47161
47162 # Executable file suffix (normally "").
47163 exeext=$exeext
47164
47165 # whether the shell understands "unset".
47166 lt_unset=$lt_unset
47167
47168 # turn spaces into newlines.
47169 SP2NL=$lt_lt_SP2NL
47170
47171 # turn newlines into spaces.
47172 NL2SP=$lt_lt_NL2SP
47173
47174 # convert \$build file names to \$host format.
47175 to_host_file_cmd=$lt_cv_to_host_file_cmd
47176
47177 # convert \$build files to toolchain format.
47178 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
47179
47180 # An object symbol dumper.
47181 OBJDUMP=$lt_OBJDUMP
47182
47183 # Method to check whether dependent libraries are shared objects.
47184 deplibs_check_method=$lt_deplibs_check_method
47185
47186 # Command to use when deplibs_check_method = "file_magic".
47187 file_magic_cmd=$lt_file_magic_cmd
47188
47189 # How to find potential files when deplibs_check_method = "file_magic".
47190 file_magic_glob=$lt_file_magic_glob
47191
47192 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
47193 want_nocaseglob=$lt_want_nocaseglob
47194
47195 # DLL creation program.
47196 DLLTOOL=$lt_DLLTOOL
47197
47198 # Command to associate shared and link libraries.
47199 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
47200
47201 # The archiver.
47202 AR=$lt_AR
47203
47204 # Flags to create an archive.
47205 AR_FLAGS=$lt_AR_FLAGS
47206
47207 # How to feed a file listing to the archiver.
47208 archiver_list_spec=$lt_archiver_list_spec
47209
47210 # A symbol stripping program.
47211 STRIP=$lt_STRIP
47212
47213 # Commands used to install an old-style archive.
47214 RANLIB=$lt_RANLIB
47215 old_postinstall_cmds=$lt_old_postinstall_cmds
47216 old_postuninstall_cmds=$lt_old_postuninstall_cmds
47217
47218 # Whether to use a lock for old archive extraction.
47219 lock_old_archive_extraction=$lock_old_archive_extraction
47220
47221 # A C compiler.
47222 LTCC=$lt_CC
47223
47224 # LTCC compiler flags.
47225 LTCFLAGS=$lt_CFLAGS
47226
47227 # Take the output of nm and produce a listing of raw symbols and C names.
47228 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47229
47230 # Transform the output of nm in a proper C declaration.
47231 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47232
47233 # Transform the output of nm in a C name address pair.
47234 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47235
47236 # Transform the output of nm in a C name address pair when lib prefix is needed.
47237 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47238
47239 # Specify filename containing input files for \$NM.
47240 nm_file_list_spec=$lt_nm_file_list_spec
47241
47242 # The root where to search for dependent libraries,and in which our libraries should be installed.
47243 lt_sysroot=$lt_sysroot
47244
47245 # The name of the directory that contains temporary libtool files.
47246 objdir=$objdir
47247
47248 # Used to examine libraries when file_magic_cmd begins with "file".
47249 MAGIC_CMD=$MAGIC_CMD
47250
47251 # Must we lock files when doing compilation?
47252 need_locks=$lt_need_locks
47253
47254 # Manifest tool.
47255 MANIFEST_TOOL=$lt_MANIFEST_TOOL
47256
47257 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47258 DSYMUTIL=$lt_DSYMUTIL
47259
47260 # Tool to change global to local symbols on Mac OS X.
47261 NMEDIT=$lt_NMEDIT
47262
47263 # Tool to manipulate fat objects and archives on Mac OS X.
47264 LIPO=$lt_LIPO
47265
47266 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
47267 OTOOL=$lt_OTOOL
47268
47269 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47270 OTOOL64=$lt_OTOOL64
47271
47272 # Old archive suffix (normally "a").
47273 libext=$libext
47274
47275 # Shared library suffix (normally ".so").
47276 shrext_cmds=$lt_shrext_cmds
47277
47278 # The commands to extract the exported symbol list from a shared archive.
47279 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47280
47281 # Variables whose values should be saved in libtool wrapper scripts and
47282 # restored at link time.
47283 variables_saved_for_relink=$lt_variables_saved_for_relink
47284
47285 # Do we need the "lib" prefix for modules?
47286 need_lib_prefix=$need_lib_prefix
47287
47288 # Do we need a version for libraries?
47289 need_version=$need_version
47290
47291 # Library versioning type.
47292 version_type=$version_type
47293
47294 # Shared library runtime path variable.
47295 runpath_var=$runpath_var
47296
47297 # Shared library path variable.
47298 shlibpath_var=$shlibpath_var
47299
47300 # Is shlibpath searched before the hard-coded library search path?
47301 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47302
47303 # Format of library name prefix.
47304 libname_spec=$lt_libname_spec
47305
47306 # List of archive names.  First name is the real one, the rest are links.
47307 # The last name is the one that the linker finds with -lNAME
47308 library_names_spec=$lt_library_names_spec
47309
47310 # The coded name of the library, if different from the real name.
47311 soname_spec=$lt_soname_spec
47312
47313 # Permission mode override for installation of shared libraries.
47314 install_override_mode=$lt_install_override_mode
47315
47316 # Command to use after installation of a shared archive.
47317 postinstall_cmds=$lt_postinstall_cmds
47318
47319 # Command to use after uninstallation of a shared archive.
47320 postuninstall_cmds=$lt_postuninstall_cmds
47321
47322 # Commands used to finish a libtool library installation in a directory.
47323 finish_cmds=$lt_finish_cmds
47324
47325 # As "finish_cmds", except a single script fragment to be evaled but
47326 # not shown.
47327 finish_eval=$lt_finish_eval
47328
47329 # Whether we should hardcode library paths into libraries.
47330 hardcode_into_libs=$hardcode_into_libs
47331
47332 # Compile-time system search path for libraries.
47333 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47334
47335 # Run-time system search path for libraries.
47336 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47337
47338 # Whether dlopen is supported.
47339 dlopen_support=$enable_dlopen
47340
47341 # Whether dlopen of programs is supported.
47342 dlopen_self=$enable_dlopen_self
47343
47344 # Whether dlopen of statically linked programs is supported.
47345 dlopen_self_static=$enable_dlopen_self_static
47346
47347 # Commands to strip libraries.
47348 old_striplib=$lt_old_striplib
47349 striplib=$lt_striplib
47350
47351
47352 # The linker used to build libraries.
47353 LD=$lt_LD
47354
47355 # How to create reloadable object files.
47356 reload_flag=$lt_reload_flag
47357 reload_cmds=$lt_reload_cmds
47358
47359 # Commands used to build an old-style archive.
47360 old_archive_cmds=$lt_old_archive_cmds
47361
47362 # A language specific compiler.
47363 CC=$lt_compiler
47364
47365 # Is the compiler the GNU compiler?
47366 with_gcc=$GCC
47367
47368 # Compiler flag to turn off builtin functions.
47369 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47370
47371 # Additional compiler flags for building library objects.
47372 pic_flag=$lt_lt_prog_compiler_pic
47373
47374 # How to pass a linker flag through the compiler.
47375 wl=$lt_lt_prog_compiler_wl
47376
47377 # Compiler flag to prevent dynamic linking.
47378 link_static_flag=$lt_lt_prog_compiler_static
47379
47380 # Does compiler simultaneously support -c and -o options?
47381 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47382
47383 # Whether or not to add -lc for building shared libraries.
47384 build_libtool_need_lc=$archive_cmds_need_lc
47385
47386 # Whether or not to disallow shared libs when runtime libs are static.
47387 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47388
47389 # Compiler flag to allow reflexive dlopens.
47390 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47391
47392 # Compiler flag to generate shared objects directly from archives.
47393 whole_archive_flag_spec=$lt_whole_archive_flag_spec
47394
47395 # Whether the compiler copes with passing no objects directly.
47396 compiler_needs_object=$lt_compiler_needs_object
47397
47398 # Create an old-style archive from a shared archive.
47399 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47400
47401 # Create a temporary old-style archive to link instead of a shared archive.
47402 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47403
47404 # Commands used to build a shared archive.
47405 archive_cmds=$lt_archive_cmds
47406 archive_expsym_cmds=$lt_archive_expsym_cmds
47407
47408 # Commands used to build a loadable module if different from building
47409 # a shared archive.
47410 module_cmds=$lt_module_cmds
47411 module_expsym_cmds=$lt_module_expsym_cmds
47412
47413 # Whether we are building with GNU ld or not.
47414 with_gnu_ld=$lt_with_gnu_ld
47415
47416 # Flag that allows shared libraries with undefined symbols to be built.
47417 allow_undefined_flag=$lt_allow_undefined_flag
47418
47419 # Flag that enforces no undefined symbols.
47420 no_undefined_flag=$lt_no_undefined_flag
47421
47422 # Flag to hardcode \$libdir into a binary during linking.
47423 # This must work even if \$libdir does not exist
47424 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
47425
47426 # If ld is used when linking, flag to hardcode \$libdir into a binary
47427 # during linking.  This must work even if \$libdir does not exist.
47428 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
47429
47430 # Whether we need a single "-rpath" flag with a separated argument.
47431 hardcode_libdir_separator=$lt_hardcode_libdir_separator
47432
47433 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47434 # DIR into the resulting binary.
47435 hardcode_direct=$hardcode_direct
47436
47437 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47438 # DIR into the resulting binary and the resulting library dependency is
47439 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
47440 # library is relocated.
47441 hardcode_direct_absolute=$hardcode_direct_absolute
47442
47443 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47444 # into the resulting binary.
47445 hardcode_minus_L=$hardcode_minus_L
47446
47447 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47448 # into the resulting binary.
47449 hardcode_shlibpath_var=$hardcode_shlibpath_var
47450
47451 # Set to "yes" if building a shared library automatically hardcodes DIR
47452 # into the library and all subsequent libraries and executables linked
47453 # against it.
47454 hardcode_automatic=$hardcode_automatic
47455
47456 # Set to yes if linker adds runtime paths of dependent libraries
47457 # to runtime path list.
47458 inherit_rpath=$inherit_rpath
47459
47460 # Whether libtool must link a program against all its dependency libraries.
47461 link_all_deplibs=$link_all_deplibs
47462
47463 # Set to "yes" if exported symbols are required.
47464 always_export_symbols=$always_export_symbols
47465
47466 # The commands to list exported symbols.
47467 export_symbols_cmds=$lt_export_symbols_cmds
47468
47469 # Symbols that should not be listed in the preloaded symbols.
47470 exclude_expsyms=$lt_exclude_expsyms
47471
47472 # Symbols that must always be exported.
47473 include_expsyms=$lt_include_expsyms
47474
47475 # Commands necessary for linking programs (against libraries) with templates.
47476 prelink_cmds=$lt_prelink_cmds
47477
47478 # Commands necessary for finishing linking programs.
47479 postlink_cmds=$lt_postlink_cmds
47480
47481 # Specify filename containing input files.
47482 file_list_spec=$lt_file_list_spec
47483
47484 # How to hardcode a shared library path into an executable.
47485 hardcode_action=$hardcode_action
47486
47487 # ### END LIBTOOL CONFIG
47488
47489 _LT_EOF
47490
47491   case $host_os in
47492   aix3*)
47493     cat <<\_LT_EOF >> "$cfgfile"
47494 # AIX sometimes has problems with the GCC collect2 program.  For some
47495 # reason, if we set the COLLECT_NAMES environment variable, the problems
47496 # vanish in a puff of smoke.
47497 if test "X${COLLECT_NAMES+set}" != Xset; then
47498   COLLECT_NAMES=
47499   export COLLECT_NAMES
47500 fi
47501 _LT_EOF
47502     ;;
47503   esac
47504
47505
47506 ltmain="$ac_aux_dir/ltmain.sh"
47507
47508
47509   # We use sed instead of cat because bash on DJGPP gets confused if
47510   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
47511   # text mode, it properly converts lines to CR/LF.  This bash problem
47512   # is reportedly fixed, but why not run on old versions too?
47513   sed '$q' "$ltmain" >> "$cfgfile" \
47514      || (rm -f "$cfgfile"; exit 1)
47515
47516   if test x"$xsi_shell" = xyes; then
47517   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
47518 func_dirname ()\
47519 {\
47520 \    case ${1} in\
47521 \      */*) func_dirname_result="${1%/*}${2}" ;;\
47522 \      *  ) func_dirname_result="${3}" ;;\
47523 \    esac\
47524 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
47525   && mv -f "$cfgfile.tmp" "$cfgfile" \
47526     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47527 test 0 -eq $? || _lt_function_replace_fail=:
47528
47529
47530   sed -e '/^func_basename ()$/,/^} # func_basename /c\
47531 func_basename ()\
47532 {\
47533 \    func_basename_result="${1##*/}"\
47534 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
47535   && mv -f "$cfgfile.tmp" "$cfgfile" \
47536     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47537 test 0 -eq $? || _lt_function_replace_fail=:
47538
47539
47540   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
47541 func_dirname_and_basename ()\
47542 {\
47543 \    case ${1} in\
47544 \      */*) func_dirname_result="${1%/*}${2}" ;;\
47545 \      *  ) func_dirname_result="${3}" ;;\
47546 \    esac\
47547 \    func_basename_result="${1##*/}"\
47548 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
47549   && mv -f "$cfgfile.tmp" "$cfgfile" \
47550     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47551 test 0 -eq $? || _lt_function_replace_fail=:
47552
47553
47554   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
47555 func_stripname ()\
47556 {\
47557 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
47558 \    # positional parameters, so assign one to ordinary parameter first.\
47559 \    func_stripname_result=${3}\
47560 \    func_stripname_result=${func_stripname_result#"${1}"}\
47561 \    func_stripname_result=${func_stripname_result%"${2}"}\
47562 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
47563   && mv -f "$cfgfile.tmp" "$cfgfile" \
47564     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47565 test 0 -eq $? || _lt_function_replace_fail=:
47566
47567
47568   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
47569 func_split_long_opt ()\
47570 {\
47571 \    func_split_long_opt_name=${1%%=*}\
47572 \    func_split_long_opt_arg=${1#*=}\
47573 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
47574   && mv -f "$cfgfile.tmp" "$cfgfile" \
47575     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47576 test 0 -eq $? || _lt_function_replace_fail=:
47577
47578
47579   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
47580 func_split_short_opt ()\
47581 {\
47582 \    func_split_short_opt_arg=${1#??}\
47583 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
47584 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
47585   && mv -f "$cfgfile.tmp" "$cfgfile" \
47586     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47587 test 0 -eq $? || _lt_function_replace_fail=:
47588
47589
47590   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
47591 func_lo2o ()\
47592 {\
47593 \    case ${1} in\
47594 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
47595 \      *)    func_lo2o_result=${1} ;;\
47596 \    esac\
47597 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
47598   && mv -f "$cfgfile.tmp" "$cfgfile" \
47599     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47600 test 0 -eq $? || _lt_function_replace_fail=:
47601
47602
47603   sed -e '/^func_xform ()$/,/^} # func_xform /c\
47604 func_xform ()\
47605 {\
47606     func_xform_result=${1%.*}.lo\
47607 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
47608   && mv -f "$cfgfile.tmp" "$cfgfile" \
47609     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47610 test 0 -eq $? || _lt_function_replace_fail=:
47611
47612
47613   sed -e '/^func_arith ()$/,/^} # func_arith /c\
47614 func_arith ()\
47615 {\
47616     func_arith_result=$(( $* ))\
47617 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
47618   && mv -f "$cfgfile.tmp" "$cfgfile" \
47619     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47620 test 0 -eq $? || _lt_function_replace_fail=:
47621
47622
47623   sed -e '/^func_len ()$/,/^} # func_len /c\
47624 func_len ()\
47625 {\
47626     func_len_result=${#1}\
47627 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
47628   && mv -f "$cfgfile.tmp" "$cfgfile" \
47629     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47630 test 0 -eq $? || _lt_function_replace_fail=:
47631
47632 fi
47633
47634 if test x"$lt_shell_append" = xyes; then
47635   sed -e '/^func_append ()$/,/^} # func_append /c\
47636 func_append ()\
47637 {\
47638     eval "${1}+=\\${2}"\
47639 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
47640   && mv -f "$cfgfile.tmp" "$cfgfile" \
47641     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47642 test 0 -eq $? || _lt_function_replace_fail=:
47643
47644
47645   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
47646 func_append_quoted ()\
47647 {\
47648 \    func_quote_for_eval "${2}"\
47649 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
47650 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
47651   && mv -f "$cfgfile.tmp" "$cfgfile" \
47652     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47653 test 0 -eq $? || _lt_function_replace_fail=:
47654
47655
47656   # Save a `func_append' function call where possible by direct use of '+='
47657   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
47658     && mv -f "$cfgfile.tmp" "$cfgfile" \
47659       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47660   test 0 -eq $? || _lt_function_replace_fail=:
47661 else
47662   # Save a `func_append' function call even when '+=' is not available
47663   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
47664     && mv -f "$cfgfile.tmp" "$cfgfile" \
47665       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47666   test 0 -eq $? || _lt_function_replace_fail=:
47667 fi
47668
47669 if test x"$_lt_function_replace_fail" = x":"; then
47670   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
47671 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
47672 fi
47673
47674
47675    mv -f "$cfgfile" "$ofile" ||
47676     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
47677   chmod +x "$ofile"
47678
47679  ;;
47680
47681   esac
47682 done # for ac_tag
47683
47684
47685 as_fn_exit 0
47686 _ACEOF
47687 ac_clean_files=$ac_clean_files_save
47688
47689 test $ac_write_fail = 0 ||
47690   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
47691
47692
47693 # configure is writing to config.log, and then calls config.status.
47694 # config.status does its own redirection, appending to config.log.
47695 # Unfortunately, on DOS this fails, as config.log is still kept open
47696 # by configure, so config.status won't be able to write to it; its
47697 # output is simply discarded.  So we exec the FD to /dev/null,
47698 # effectively closing config.log, so it can be properly (re)opened and
47699 # appended to by config.status.  When coming back to configure, we
47700 # need to make the FD available again.
47701 if test "$no_create" != yes; then
47702   ac_cs_success=:
47703   ac_config_status_args=
47704   test "$silent" = yes &&
47705     ac_config_status_args="$ac_config_status_args --quiet"
47706   exec 5>/dev/null
47707   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47708   exec 5>>config.log
47709   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47710   # would make configure fail if this is the last instruction.
47711   $ac_cs_success || as_fn_exit 1
47712 fi
47713 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
47714   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
47715 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
47716 fi
47717
47718
47719
47720     echo "Compiler Flags:"
47721     echo "  CFLAGS: ${CFLAGS-(none)}"
47722     echo "  CPPFLAGS: ${CPPFLAGS-(none)}"
47723     echo "  LDFLAGS: ${LDFLAGS-(none)}"
47724     echo "  LIBS: ${LIBS-(none)}"
47725
47726
47727     echo "Amanda Components:$AMANDA_COMPONENTS$missing_components"
47728
47729
47730     echo "Working IPv6:" $WORKING_IPV6
47731
47732
47733     echo "Build documentation:" $ENABLE_MANPAGE_BUILD
47734
47735
47736     echo "Directories:"
47737     echo "  Application: $APPLICATION_DIR"
47738     echo "  Configuration: $CONFIG_DIR"
47739     echo "  GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
47740     echo "  Perl modules (amperldir): $amperldir"
47741     echo "  Template and example data files (amdatadir): $amdatadir"
47742     echo "  Temporary: $AMANDA_TMPDIR"
47743
47744     if test -f config.warnings; then
47745         echo "WARNINGS:"
47746         cat config.warnings | sed -e 's/^/  /g'
47747         rm config.warnings
47748     fi
47749