lintian doesn't like orphan packages with uploaders...
[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.3.
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.3'
571 PACKAGE_STRING='amanda 3.3.3'
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 am__nodep
1395 AMDEPBACKSLASH
1396 AMDEP_FALSE
1397 AMDEP_TRUE
1398 am__quote
1399 am__include
1400 DEPDIR
1401 OBJEXT
1402 EXEEXT
1403 ac_ct_CC
1404 CPPFLAGS
1405 LDFLAGS
1406 CFLAGS
1407 CC
1408 VERSION_COMMENT
1409 VERSION_PATCH
1410 VERSION_MINOR
1411 VERSION_MAJOR
1412 SNAPSHOT_STAMP
1413 am__untar
1414 am__tar
1415 AMTAR
1416 am__leading_dot
1417 SET_MAKE
1418 AWK
1419 mkdir_p
1420 MKDIR_P
1421 INSTALL_STRIP_PROGRAM
1422 STRIP
1423 install_sh
1424 MAKEINFO
1425 AUTOHEADER
1426 AUTOMAKE
1427 AUTOCONF
1428 ACLOCAL
1429 VERSION
1430 CYGPATH_W
1431 am__isrc
1432 INSTALL_DATA
1433 INSTALL_SCRIPT
1434 INSTALL_PROGRAM
1435 GIT
1436 SVN
1437 GREP
1438 PACKAGE
1439 host_os
1440 host_vendor
1441 host_cpu
1442 host
1443 build_os
1444 build_vendor
1445 build_cpu
1446 build
1447 target_alias
1448 host_alias
1449 build_alias
1450 LIBS
1451 ECHO_T
1452 ECHO_N
1453 ECHO_C
1454 DEFS
1455 mandir
1456 localedir
1457 libdir
1458 psdir
1459 pdfdir
1460 dvidir
1461 htmldir
1462 infodir
1463 docdir
1464 oldincludedir
1465 includedir
1466 localstatedir
1467 sharedstatedir
1468 sysconfdir
1469 datadir
1470 datarootdir
1471 libexecdir
1472 sbindir
1473 bindir
1474 program_transform_name
1475 prefix
1476 exec_prefix
1477 PACKAGE_URL
1478 PACKAGE_BUGREPORT
1479 PACKAGE_STRING
1480 PACKAGE_VERSION
1481 PACKAGE_TARNAME
1482 PACKAGE_NAME
1483 PATH_SEPARATOR
1484 SHELL'
1485 ac_subst_files=''
1486 ac_user_opts='
1487 enable_option_checking
1488 enable_dependency_tracking
1489 enable_threads
1490 with_gnu_ld
1491 enable_rpath
1492 with_libpth_prefix
1493 with_included_regex
1494 enable_largefile
1495 with_cflags
1496 with_includes
1497 with_libraries
1498 enable_as_needed
1499 with_user
1500 with_group
1501 with_dumperdir
1502 with_configdir
1503 with_indexdir
1504 with_dbdir
1505 with_logdir
1506 with_suffixes
1507 with_gnutar_listdir
1508 with_gnutar_listed_incremental
1509 with_tmpdir
1510 with_force_uid
1511 with_owner
1512 with_fqdn
1513 with_reuseports
1514 with_low_tcpportrange
1515 with_tcpportrange
1516 with_udpportrange
1517 with_buffered_dump
1518 with_maxtapeblocksize
1519 with_assertions
1520 with_debugging
1521 with_debug_days
1522 with_testing
1523 with_single_userid
1524 enable_installperms
1525 enable_syntax_checks
1526 with_server
1527 with_client
1528 with_restore
1529 with_amrecover
1530 with_client_only
1531 with_server_only
1532 with_ndmp
1533 with_gnuplot
1534 enable_manpage_build
1535 with_xsltproc
1536 with_xsltproc_flags
1537 with_index_server
1538 with_config
1539 with_tape_server
1540 with_tape_device
1541 with_changer_device
1542 with_amandates
1543 with_perlextlibs
1544 with_ipv6
1545 with_amlibdir
1546 with_amlibexecdir
1547 with_amperldir
1548 with_amdatadir
1549 enable_nls
1550 with_libiconv_prefix
1551 with_libintl_prefix
1552 with_bsd_security
1553 with_amandahosts
1554 with_bsdtcp_security
1555 with_bsdudp_security
1556 with_rsh_security
1557 with_ssh_security
1558 with_ssh_options
1559 with_krb5_security
1560 with_dump_honor_nodump
1561 with_gnutar
1562 with_star
1563 with_suntar
1564 with_smbclient
1565 with_samba_user
1566 with_rundump
1567 enable_werror
1568 enable_swig_error
1569 enable_shared
1570 enable_static
1571 with_pic
1572 enable_fast_install
1573 with_sysroot
1574 enable_libtool_lock
1575 enable_static_binary
1576 enable_glibtest
1577 with_readline
1578 with_libcurl
1579 enable_s3_device
1580 enable_dvdrw_device
1581 enable_ndmp_device
1582 '
1583       ac_precious_vars='build_alias
1584 host_alias
1585 target_alias
1586 CC
1587 CFLAGS
1588 LDFLAGS
1589 LIBS
1590 CPPFLAGS
1591 CPP
1592 GNUPLOT
1593 SWIG
1594 PERL
1595 GNUTAR
1596 STAR
1597 SUNTAR
1598 YACC
1599 YFLAGS
1600 MTX
1601 MOUNT
1602 UMOUNT
1603 GLIB_CFLAGS
1604 GLIB_LIBS
1605 GLIB_GENMARSHAL
1606 GOBJECT_QUERY
1607 GLIB_MKENUMS
1608 PKG_CONFIG
1609 PKG_CONFIG_PATH
1610 PKG_CONFIG_LIBDIR'
1611
1612
1613 # Initialize some variables set by options.
1614 ac_init_help=
1615 ac_init_version=false
1616 ac_unrecognized_opts=
1617 ac_unrecognized_sep=
1618 # The variables have the same names as the options, with
1619 # dashes changed to underlines.
1620 cache_file=/dev/null
1621 exec_prefix=NONE
1622 no_create=
1623 no_recursion=
1624 prefix=NONE
1625 program_prefix=NONE
1626 program_suffix=NONE
1627 program_transform_name=s,x,x,
1628 silent=
1629 site=
1630 srcdir=
1631 verbose=
1632 x_includes=NONE
1633 x_libraries=NONE
1634
1635 # Installation directory options.
1636 # These are left unexpanded so users can "make install exec_prefix=/foo"
1637 # and all the variables that are supposed to be based on exec_prefix
1638 # by default will actually change.
1639 # Use braces instead of parens because sh, perl, etc. also accept them.
1640 # (The list follows the same order as the GNU Coding Standards.)
1641 bindir='${exec_prefix}/bin'
1642 sbindir='${exec_prefix}/sbin'
1643 libexecdir='${exec_prefix}/libexec'
1644 datarootdir='${prefix}/share'
1645 datadir='${datarootdir}'
1646 sysconfdir='${prefix}/etc'
1647 sharedstatedir='${prefix}/com'
1648 localstatedir='${prefix}/var'
1649 includedir='${prefix}/include'
1650 oldincludedir='/usr/include'
1651 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1652 infodir='${datarootdir}/info'
1653 htmldir='${docdir}'
1654 dvidir='${docdir}'
1655 pdfdir='${docdir}'
1656 psdir='${docdir}'
1657 libdir='${exec_prefix}/lib'
1658 localedir='${datarootdir}/locale'
1659 mandir='${datarootdir}/man'
1660
1661 ac_prev=
1662 ac_dashdash=
1663 for ac_option
1664 do
1665   # If the previous option needs an argument, assign it.
1666   if test -n "$ac_prev"; then
1667     eval $ac_prev=\$ac_option
1668     ac_prev=
1669     continue
1670   fi
1671
1672   case $ac_option in
1673   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1674   *=)   ac_optarg= ;;
1675   *)    ac_optarg=yes ;;
1676   esac
1677
1678   # Accept the important Cygnus configure options, so we can diagnose typos.
1679
1680   case $ac_dashdash$ac_option in
1681   --)
1682     ac_dashdash=yes ;;
1683
1684   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1685     ac_prev=bindir ;;
1686   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1687     bindir=$ac_optarg ;;
1688
1689   -build | --build | --buil | --bui | --bu)
1690     ac_prev=build_alias ;;
1691   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1692     build_alias=$ac_optarg ;;
1693
1694   -cache-file | --cache-file | --cache-fil | --cache-fi \
1695   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1696     ac_prev=cache_file ;;
1697   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1698   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1699     cache_file=$ac_optarg ;;
1700
1701   --config-cache | -C)
1702     cache_file=config.cache ;;
1703
1704   -datadir | --datadir | --datadi | --datad)
1705     ac_prev=datadir ;;
1706   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1707     datadir=$ac_optarg ;;
1708
1709   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1710   | --dataroo | --dataro | --datar)
1711     ac_prev=datarootdir ;;
1712   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1713   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1714     datarootdir=$ac_optarg ;;
1715
1716   -disable-* | --disable-*)
1717     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1718     # Reject names that are not valid shell variable names.
1719     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1720       as_fn_error $? "invalid feature name: $ac_useropt"
1721     ac_useropt_orig=$ac_useropt
1722     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1723     case $ac_user_opts in
1724       *"
1725 "enable_$ac_useropt"
1726 "*) ;;
1727       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1728          ac_unrecognized_sep=', ';;
1729     esac
1730     eval enable_$ac_useropt=no ;;
1731
1732   -docdir | --docdir | --docdi | --doc | --do)
1733     ac_prev=docdir ;;
1734   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1735     docdir=$ac_optarg ;;
1736
1737   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1738     ac_prev=dvidir ;;
1739   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1740     dvidir=$ac_optarg ;;
1741
1742   -enable-* | --enable-*)
1743     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1744     # Reject names that are not valid shell variable names.
1745     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1746       as_fn_error $? "invalid feature name: $ac_useropt"
1747     ac_useropt_orig=$ac_useropt
1748     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1749     case $ac_user_opts in
1750       *"
1751 "enable_$ac_useropt"
1752 "*) ;;
1753       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1754          ac_unrecognized_sep=', ';;
1755     esac
1756     eval enable_$ac_useropt=\$ac_optarg ;;
1757
1758   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1759   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1760   | --exec | --exe | --ex)
1761     ac_prev=exec_prefix ;;
1762   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1763   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1764   | --exec=* | --exe=* | --ex=*)
1765     exec_prefix=$ac_optarg ;;
1766
1767   -gas | --gas | --ga | --g)
1768     # Obsolete; use --with-gas.
1769     with_gas=yes ;;
1770
1771   -help | --help | --hel | --he | -h)
1772     ac_init_help=long ;;
1773   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1774     ac_init_help=recursive ;;
1775   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1776     ac_init_help=short ;;
1777
1778   -host | --host | --hos | --ho)
1779     ac_prev=host_alias ;;
1780   -host=* | --host=* | --hos=* | --ho=*)
1781     host_alias=$ac_optarg ;;
1782
1783   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1784     ac_prev=htmldir ;;
1785   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1786   | --ht=*)
1787     htmldir=$ac_optarg ;;
1788
1789   -includedir | --includedir | --includedi | --included | --include \
1790   | --includ | --inclu | --incl | --inc)
1791     ac_prev=includedir ;;
1792   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1793   | --includ=* | --inclu=* | --incl=* | --inc=*)
1794     includedir=$ac_optarg ;;
1795
1796   -infodir | --infodir | --infodi | --infod | --info | --inf)
1797     ac_prev=infodir ;;
1798   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1799     infodir=$ac_optarg ;;
1800
1801   -libdir | --libdir | --libdi | --libd)
1802     ac_prev=libdir ;;
1803   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1804     libdir=$ac_optarg ;;
1805
1806   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1807   | --libexe | --libex | --libe)
1808     ac_prev=libexecdir ;;
1809   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1810   | --libexe=* | --libex=* | --libe=*)
1811     libexecdir=$ac_optarg ;;
1812
1813   -localedir | --localedir | --localedi | --localed | --locale)
1814     ac_prev=localedir ;;
1815   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1816     localedir=$ac_optarg ;;
1817
1818   -localstatedir | --localstatedir | --localstatedi | --localstated \
1819   | --localstate | --localstat | --localsta | --localst | --locals)
1820     ac_prev=localstatedir ;;
1821   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1822   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1823     localstatedir=$ac_optarg ;;
1824
1825   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1826     ac_prev=mandir ;;
1827   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1828     mandir=$ac_optarg ;;
1829
1830   -nfp | --nfp | --nf)
1831     # Obsolete; use --without-fp.
1832     with_fp=no ;;
1833
1834   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1835   | --no-cr | --no-c | -n)
1836     no_create=yes ;;
1837
1838   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1839   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1840     no_recursion=yes ;;
1841
1842   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1843   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1844   | --oldin | --oldi | --old | --ol | --o)
1845     ac_prev=oldincludedir ;;
1846   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1847   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1848   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1849     oldincludedir=$ac_optarg ;;
1850
1851   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1852     ac_prev=prefix ;;
1853   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1854     prefix=$ac_optarg ;;
1855
1856   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1857   | --program-pre | --program-pr | --program-p)
1858     ac_prev=program_prefix ;;
1859   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1860   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1861     program_prefix=$ac_optarg ;;
1862
1863   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1864   | --program-suf | --program-su | --program-s)
1865     ac_prev=program_suffix ;;
1866   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1867   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1868     program_suffix=$ac_optarg ;;
1869
1870   -program-transform-name | --program-transform-name \
1871   | --program-transform-nam | --program-transform-na \
1872   | --program-transform-n | --program-transform- \
1873   | --program-transform | --program-transfor \
1874   | --program-transfo | --program-transf \
1875   | --program-trans | --program-tran \
1876   | --progr-tra | --program-tr | --program-t)
1877     ac_prev=program_transform_name ;;
1878   -program-transform-name=* | --program-transform-name=* \
1879   | --program-transform-nam=* | --program-transform-na=* \
1880   | --program-transform-n=* | --program-transform-=* \
1881   | --program-transform=* | --program-transfor=* \
1882   | --program-transfo=* | --program-transf=* \
1883   | --program-trans=* | --program-tran=* \
1884   | --progr-tra=* | --program-tr=* | --program-t=*)
1885     program_transform_name=$ac_optarg ;;
1886
1887   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1888     ac_prev=pdfdir ;;
1889   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1890     pdfdir=$ac_optarg ;;
1891
1892   -psdir | --psdir | --psdi | --psd | --ps)
1893     ac_prev=psdir ;;
1894   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1895     psdir=$ac_optarg ;;
1896
1897   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1898   | -silent | --silent | --silen | --sile | --sil)
1899     silent=yes ;;
1900
1901   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1902     ac_prev=sbindir ;;
1903   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1904   | --sbi=* | --sb=*)
1905     sbindir=$ac_optarg ;;
1906
1907   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1908   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1909   | --sharedst | --shareds | --shared | --share | --shar \
1910   | --sha | --sh)
1911     ac_prev=sharedstatedir ;;
1912   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1913   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1914   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1915   | --sha=* | --sh=*)
1916     sharedstatedir=$ac_optarg ;;
1917
1918   -site | --site | --sit)
1919     ac_prev=site ;;
1920   -site=* | --site=* | --sit=*)
1921     site=$ac_optarg ;;
1922
1923   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1924     ac_prev=srcdir ;;
1925   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1926     srcdir=$ac_optarg ;;
1927
1928   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1929   | --syscon | --sysco | --sysc | --sys | --sy)
1930     ac_prev=sysconfdir ;;
1931   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1932   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1933     sysconfdir=$ac_optarg ;;
1934
1935   -target | --target | --targe | --targ | --tar | --ta | --t)
1936     ac_prev=target_alias ;;
1937   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1938     target_alias=$ac_optarg ;;
1939
1940   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1941     verbose=yes ;;
1942
1943   -version | --version | --versio | --versi | --vers | -V)
1944     ac_init_version=: ;;
1945
1946   -with-* | --with-*)
1947     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1948     # Reject names that are not valid shell variable names.
1949     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1950       as_fn_error $? "invalid package name: $ac_useropt"
1951     ac_useropt_orig=$ac_useropt
1952     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1953     case $ac_user_opts in
1954       *"
1955 "with_$ac_useropt"
1956 "*) ;;
1957       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1958          ac_unrecognized_sep=', ';;
1959     esac
1960     eval with_$ac_useropt=\$ac_optarg ;;
1961
1962   -without-* | --without-*)
1963     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1964     # Reject names that are not valid shell variable names.
1965     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1966       as_fn_error $? "invalid package name: $ac_useropt"
1967     ac_useropt_orig=$ac_useropt
1968     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1969     case $ac_user_opts in
1970       *"
1971 "with_$ac_useropt"
1972 "*) ;;
1973       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1974          ac_unrecognized_sep=', ';;
1975     esac
1976     eval with_$ac_useropt=no ;;
1977
1978   --x)
1979     # Obsolete; use --with-x.
1980     with_x=yes ;;
1981
1982   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1983   | --x-incl | --x-inc | --x-in | --x-i)
1984     ac_prev=x_includes ;;
1985   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1986   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1987     x_includes=$ac_optarg ;;
1988
1989   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1990   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1991     ac_prev=x_libraries ;;
1992   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1993   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1994     x_libraries=$ac_optarg ;;
1995
1996   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1997 Try \`$0 --help' for more information"
1998     ;;
1999
2000   *=*)
2001     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2002     # Reject names that are not valid shell variable names.
2003     case $ac_envvar in #(
2004       '' | [0-9]* | *[!_$as_cr_alnum]* )
2005       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2006     esac
2007     eval $ac_envvar=\$ac_optarg
2008     export $ac_envvar ;;
2009
2010   *)
2011     # FIXME: should be removed in autoconf 3.0.
2012     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2013     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2014       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2015     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2016     ;;
2017
2018   esac
2019 done
2020
2021 if test -n "$ac_prev"; then
2022   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2023   as_fn_error $? "missing argument to $ac_option"
2024 fi
2025
2026 if test -n "$ac_unrecognized_opts"; then
2027   case $enable_option_checking in
2028     no) ;;
2029     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2030     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2031   esac
2032 fi
2033
2034 # Check all directory arguments for consistency.
2035 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
2036                 datadir sysconfdir sharedstatedir localstatedir includedir \
2037                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2038                 libdir localedir mandir
2039 do
2040   eval ac_val=\$$ac_var
2041   # Remove trailing slashes.
2042   case $ac_val in
2043     */ )
2044       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2045       eval $ac_var=\$ac_val;;
2046   esac
2047   # Be sure to have absolute directory names.
2048   case $ac_val in
2049     [\\/$]* | ?:[\\/]* )  continue;;
2050     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2051   esac
2052   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2053 done
2054
2055 # There might be people who depend on the old broken behavior: `$host'
2056 # used to hold the argument of --host etc.
2057 # FIXME: To remove some day.
2058 build=$build_alias
2059 host=$host_alias
2060 target=$target_alias
2061
2062 # FIXME: To remove some day.
2063 if test "x$host_alias" != x; then
2064   if test "x$build_alias" = x; then
2065     cross_compiling=maybe
2066     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
2067     If a cross compiler is detected then cross compile mode will be used" >&2
2068   elif test "x$build_alias" != "x$host_alias"; then
2069     cross_compiling=yes
2070   fi
2071 fi
2072
2073 ac_tool_prefix=
2074 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2075
2076 test "$silent" = yes && exec 6>/dev/null
2077
2078
2079 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2080 ac_ls_di=`ls -di .` &&
2081 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2082   as_fn_error $? "working directory cannot be determined"
2083 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2084   as_fn_error $? "pwd does not report name of working directory"
2085
2086
2087 # Find the source files, if location was not specified.
2088 if test -z "$srcdir"; then
2089   ac_srcdir_defaulted=yes
2090   # Try the directory containing this script, then the parent directory.
2091   ac_confdir=`$as_dirname -- "$as_myself" ||
2092 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2093          X"$as_myself" : 'X\(//\)[^/]' \| \
2094          X"$as_myself" : 'X\(//\)$' \| \
2095          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2096 $as_echo X"$as_myself" |
2097     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2098             s//\1/
2099             q
2100           }
2101           /^X\(\/\/\)[^/].*/{
2102             s//\1/
2103             q
2104           }
2105           /^X\(\/\/\)$/{
2106             s//\1/
2107             q
2108           }
2109           /^X\(\/\).*/{
2110             s//\1/
2111             q
2112           }
2113           s/.*/./; q'`
2114   srcdir=$ac_confdir
2115   if test ! -r "$srcdir/$ac_unique_file"; then
2116     srcdir=..
2117   fi
2118 else
2119   ac_srcdir_defaulted=no
2120 fi
2121 if test ! -r "$srcdir/$ac_unique_file"; then
2122   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2123   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2124 fi
2125 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2126 ac_abs_confdir=`(
2127         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2128         pwd)`
2129 # When building in place, set srcdir=.
2130 if test "$ac_abs_confdir" = "$ac_pwd"; then
2131   srcdir=.
2132 fi
2133 # Remove unnecessary trailing slashes from srcdir.
2134 # Double slashes in file names in object file debugging info
2135 # mess up M-x gdb in Emacs.
2136 case $srcdir in
2137 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2138 esac
2139 for ac_var in $ac_precious_vars; do
2140   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2141   eval ac_env_${ac_var}_value=\$${ac_var}
2142   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2143   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2144 done
2145
2146 #
2147 # Report the --help message.
2148 #
2149 if test "$ac_init_help" = "long"; then
2150   # Omit some internal or obsolete options to make the list less imposing.
2151   # This message is too long to be a string in the A/UX 3.1 sh.
2152   cat <<_ACEOF
2153 \`configure' configures amanda 3.3.3 to adapt to many kinds of systems.
2154
2155 Usage: $0 [OPTION]... [VAR=VALUE]...
2156
2157 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2158 VAR=VALUE.  See below for descriptions of some of the useful variables.
2159
2160 Defaults for the options are specified in brackets.
2161
2162 Configuration:
2163   -h, --help              display this help and exit
2164       --help=short        display options specific to this package
2165       --help=recursive    display the short help of all the included packages
2166   -V, --version           display version information and exit
2167   -q, --quiet, --silent   do not print \`checking ...' messages
2168       --cache-file=FILE   cache test results in FILE [disabled]
2169   -C, --config-cache      alias for \`--cache-file=config.cache'
2170   -n, --no-create         do not create output files
2171       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2172
2173 Installation directories:
2174   --prefix=PREFIX         install architecture-independent files in PREFIX
2175                           [$ac_default_prefix]
2176   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2177                           [PREFIX]
2178
2179 By default, \`make install' will install all the files in
2180 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2181 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2182 for instance \`--prefix=\$HOME'.
2183
2184 For better control, use the options below.
2185
2186 Fine tuning of the installation directories:
2187   --bindir=DIR            user executables [EPREFIX/bin]
2188   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2189   --libexecdir=DIR        program executables [EPREFIX/libexec]
2190   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2191   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2192   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2193   --libdir=DIR            object code libraries [EPREFIX/lib]
2194   --includedir=DIR        C header files [PREFIX/include]
2195   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2196   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2197   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2198   --infodir=DIR           info documentation [DATAROOTDIR/info]
2199   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2200   --mandir=DIR            man documentation [DATAROOTDIR/man]
2201   --docdir=DIR            documentation root [DATAROOTDIR/doc/amanda]
2202   --htmldir=DIR           html documentation [DOCDIR]
2203   --dvidir=DIR            dvi documentation [DOCDIR]
2204   --pdfdir=DIR            pdf documentation [DOCDIR]
2205   --psdir=DIR             ps documentation [DOCDIR]
2206 _ACEOF
2207
2208   cat <<\_ACEOF
2209
2210 Program names:
2211   --program-prefix=PREFIX            prepend PREFIX to installed program names
2212   --program-suffix=SUFFIX            append SUFFIX to installed program names
2213   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2214
2215 System types:
2216   --build=BUILD     configure for building on BUILD [guessed]
2217   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2218 _ACEOF
2219 fi
2220
2221 if test -n "$ac_init_help"; then
2222   case $ac_init_help in
2223      short | recursive ) echo "Configuration of amanda 3.3.3:";;
2224    esac
2225   cat <<\_ACEOF
2226
2227 Optional Features:
2228   --disable-option-checking  ignore unrecognized --enable/--with options
2229   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2230   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2231   --disable-dependency-tracking  speeds up one-time build
2232   --enable-dependency-tracking   do not reject slow dependency extractors
2233   --enable-threads={posix|solaris|pth|win32}
2234                           specify multithreading API
2235   --disable-threads       build without multithread safety
2236   --disable-rpath         do not hardcode runtime library paths
2237   --disable-largefile     omit support for large files
2238   --enable-as-needed      enable use od --as-needed linker flag
2239   --disable-installperms  do not modify ownership and permissions on installed
2240                           files
2241   --enable-syntax-checks  Perform syntax checks when installing - developers
2242                           only
2243   --enable-manpage-build  Build the manpages from their XML source (shipped
2244                           manpages are usually sufficient)
2245   --disable-nls           do not use Native Language Support
2246   --enable-werror         To compile with -Werror compiler flag
2247   --enable-swig-error     To compile swiged C file with -Werror compiler flag
2248   --enable-shared[=PKGS]  build shared libraries [default=yes]
2249   --enable-static[=PKGS]  build static libraries [default=yes]
2250   --enable-fast-install[=PKGS]
2251                           optimize for fast installation [default=yes]
2252   --disable-libtool-lock  avoid locking (might break parallel builds)
2253   --enable-static-binary  To build statically linked binaries
2254   --disable-glibtest      do not try to compile and run a test GLIB program
2255   --disable-s3-device     disable the S3 device
2256   --disable-dvdrw-device  disable the DVD-RW device
2257   --disable-ndmp-device   disable the NDMP device
2258
2259 Optional Packages:
2260   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2261   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2262   --with-gnu-ld           assume the C compiler uses GNU ld default=no
2263   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2264   --without-libpth-prefix     don't search for libpth in includedir and libdir
2265   --without-included-regex
2266                           don't compile regex; this is the default on systems
2267                           with recent-enough versions of the GNU C Library
2268                           (use with caution on other systems).
2269   --with-cflags=FLAGS     deprecated; use ./configure CFLAGS=...
2270   --with-includes=INCLUDE-DIRS
2271                           deprecated; use ./configure CPPFLAGS='-I.. -I..'
2272   --with-libraries=LIBRARY-DIRS
2273                           deprecated; use ./configure LDFLAGS='-L.. -L..' (add
2274                           -R on Solaris, NetBSD)
2275   --with-user=USER        force execution to USER on client systems (REQUIRED)
2276   --with-group=GROUP      group allowed to execute setuid-root programs
2277                           (REQUIRED)
2278   --with-dumperdir=DIR    where we install the dumpers (deprecated)
2279   --with-configdir=DIR    runtime config files in DIR [sysconfdir/amanda]
2280   --with-indexdir         deprecated: use indexdir in amanda.conf
2281   --with-dbdir            deprecated: use infofile in amanda.conf
2282   --with-logdir           deprecated: use logfile in amanda.conf
2283
2284   --with-gnutar-listdir=DIR
2285                           put gnutar directory lists in DIR (default:
2286                           localstatedir/amanda/gnutar-lists)
2287   --with-gnutar-listed-incremental
2288                           deprecated; use --with-gnutar-listdir
2289   --with-tmpdir           directory for temporary and debugging files
2290                           (default: /tmp/amanda)
2291   --without-force-uid     do not check userids when running programs
2292   --with-owner=USER
2293             force ownership of installed files to USER (default same as --with-user)
2294
2295   --with-fqdn             use FQDN's to backup multiple networks
2296   --without-reuseaddr     Don't reuse network connections until full timeout
2297                           period
2298   --with-low-tcpportrange=low,high
2299                           bind reserved TCP server sockets to ports within
2300   --with-tcpportrange=low,high
2301                           bind unreserved TCP server sockets to ports within
2302   --with-udpportrange=low,high
2303                           bind reserved UDP server sockets to ports within
2304   --with-buffered-dump    buffer the dumping sockets on the server for speed
2305 (deprecated)
2306   --with-assertions       compile assertions into code
2307   --with-debugging=DIR
2308             put debug logs in DIR (default same as --with-tmpdir)
2309
2310   --with-debug-days=NN    number of days to keep debugging files (default: 4)
2311   --with-testing[=SUFFIX] use alternate service names with suffix (default
2312                           'test')
2313   --with-single-userid
2314             force amanda to run as a single userid (for testing)
2315
2316   --without-server        do not build server stuff (set --without-restore)
2317   --without-client        do not build client stuff
2318   --without-restore       do not build amrestore nor amidxtaped
2319   --without-amrecover     do not build amrecover
2320   --with-client-only      deprecated: use --without-server
2321   --with-server-only      deprecated: use --without-client
2322   --without-ndmp          do not build ndmp
2323   --with-gnuplot=PATH     use gnuplot executable at PATH in amplot
2324   --with-xsltproc[[[=PATH]]]
2325                           Use the xsltproc binary in in PATH.
2326     --with-xsltproc-flags=FLAGS
2327                           Flags to pass to xsltproc (default --nonet)
2328   --with-index-server=HOST
2329                           default amanda index server (default: `uname -n`)
2330   --with-config=CONFIG    default amanda configuration (default: DailySet1)
2331   --with-tape-server=HOST default tape server for restore (default: same as
2332                           index-server)
2333   --with-tape-device=DEVICE
2334                           default device on restore tape server
2335   --with-changer-device=DEV
2336                           (deprecated)
2337   --with-amandates        default location for 'amandates' (default:
2338                           $localstatedir/amanda/amandates)
2339   --with-perlextlibs=libs extra LIBS for Perl extensions
2340   --with-ipv6             enable IPv6 support (default if IPv6 is found)
2341           --without-ipv6          disable IPv6
2342   --with-amlibdir[[[=PATH]]]
2343                           Where library are installed, default: $libdir/amanda
2344           --without-amlibdir      Library are installed in $libdir
2345   --with-amlibexecdir[[[=PATH]]]
2346                           Where amanda own programs are installed, default:
2347                           $libexecdir/amanda
2348           --without-amlibexecdir  Amanda own programs are installed in $libexecdir
2349   --with-amperldir[[[=PATH]]]
2350                           Where amanda's perl modules are installed; default:
2351                           installsitelib
2352           --without-amperldir     Install amanda's perl modules in $amlibdir/perl
2353   --with-amdatadir[[[=PATH]]]
2354                           Where amanda's templates and examples are installed;
2355                           default: $datadir/amanda
2356   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2357   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2358   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2359   --without-libintl-prefix     don't search for libintl in includedir and libdir
2360   --without-bsd-security  do not include BSD authentication
2361    --without-amandahosts  use ".rhosts" instead of ".amandahosts"
2362   --with-bsdtcp-security  include BSDTCP authentication
2363   --with-bsdudp-security  include BSDUDP authentication
2364   --with-rsh-security     include RSH authentication
2365   --with-ssh-security     include SSH authentication
2366    --with-ssh-options=[OPTIONS]
2367                           Use these ssh options for ssh security; the default
2368                           should work
2369   --with-krb5-security=DIR
2370                           Location of Kerberos V software [/usr/kerberos
2371                           /usr/cygnus /usr /opt/kerberos]
2372   --with-dump-honor-nodump
2373                           if dump supports -h, use it for level0s too
2374   --with-gnutar=PROG      use PROG as GNU 'tar'
2375   --with-star=PROG        use PROG as 'star'
2376   --with-suntar=PROG      use PROG as 'suntar'
2377   --with-smbclient=PROG   use PROG as 'smbclient'
2378   --with-samba-user       deprecated; place username in 'amandapass'
2379   --with-rundump          use rundump, a setuid-root wrapper, to invoke dump
2380   --with-pic              try to use only PIC/non-PIC objects [default=use
2381                           both]
2382   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2383   --with-sysroot=DIR Search for dependent libraries within DIR
2384                         (or the compiler's sysroot if not specified).
2385   --with-readline         require readline support (for amrecover)
2386   --without-readline      don't search for readline
2387   --with-libcurl=PREFIX   look for the curl library in PREFIX/lib and headers
2388                           in PREFIX/include
2389
2390 Some influential environment variables:
2391   CC          C compiler command
2392   CFLAGS      C compiler flags
2393   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2394               nonstandard directory <lib dir>
2395   LIBS        libraries to pass to the linker, e.g. -l<library>
2396   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2397               you have headers in a nonstandard directory <include dir>
2398   CPP         C preprocessor
2399   GNUPLOT     Location of the 'gnuplot' binary
2400   SWIG        Path to the 'swig' binary (developers only)
2401   PERL        Path to the 'perl' binary
2402   GNUTAR      Location of the GNU 'tar' binary
2403   STAR        Location of the 'star' binary
2404   SUNTAR      Location of the 'suntar' binary
2405   YACC        The `Yet Another Compiler Compiler' implementation to use.
2406               Defaults to the first program found out of: `bison -y', `byacc',
2407               `yacc'.
2408   YFLAGS      The list of arguments that will be passed by default to $YACC.
2409               This script will default YFLAGS to the empty string to avoid a
2410               default value of `-d' given by some make applications.
2411   MTX         Path to the 'mtx' binary
2412   MOUNT       Path to the 'mount' binary
2413   UMOUNT      Path to the 'umount' binary
2414   GLIB_CFLAGS CFLAGS to build with glib; disables use of pkg-config; must
2415               specify all GLIB_ vars
2416   GLIB_LIBS   libraries to build with glib; disables use of pkg-config; must
2417               specify all GLIB_vars
2418   GLIB_GENMARSHAL
2419               genmarshal binary to use with glib; disables use of pkg-config;
2420               must specify all GLIB_ vars
2421   GOBJECT_QUERY
2422               gobject_query binary to use with glib; disables use of
2423               pkg-config; must specify all GLIB_ vars
2424   GLIB_MKENUMS
2425               mkenums binary to use with glib; disables use of pkg-config;
2426               must specify all GLIB_ vars
2427   PKG_CONFIG  path to pkg-config utility
2428   PKG_CONFIG_PATH
2429               directories to add to pkg-config's search path
2430   PKG_CONFIG_LIBDIR
2431               path overriding pkg-config's built-in search path
2432
2433 Use these variables to override the choices made by `configure' or to help
2434 it to find libraries and programs with nonstandard names/locations.
2435
2436 Report bugs to the package provider.
2437 _ACEOF
2438 ac_status=$?
2439 fi
2440
2441 if test "$ac_init_help" = "recursive"; then
2442   # If there are subdirs, report their specific --help.
2443   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2444     test -d "$ac_dir" ||
2445       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2446       continue
2447     ac_builddir=.
2448
2449 case "$ac_dir" in
2450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2451 *)
2452   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2453   # A ".." for each directory in $ac_dir_suffix.
2454   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2455   case $ac_top_builddir_sub in
2456   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2457   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2458   esac ;;
2459 esac
2460 ac_abs_top_builddir=$ac_pwd
2461 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2462 # for backward compatibility:
2463 ac_top_builddir=$ac_top_build_prefix
2464
2465 case $srcdir in
2466   .)  # We are building in place.
2467     ac_srcdir=.
2468     ac_top_srcdir=$ac_top_builddir_sub
2469     ac_abs_top_srcdir=$ac_pwd ;;
2470   [\\/]* | ?:[\\/]* )  # Absolute name.
2471     ac_srcdir=$srcdir$ac_dir_suffix;
2472     ac_top_srcdir=$srcdir
2473     ac_abs_top_srcdir=$srcdir ;;
2474   *) # Relative name.
2475     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2476     ac_top_srcdir=$ac_top_build_prefix$srcdir
2477     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2478 esac
2479 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2480
2481     cd "$ac_dir" || { ac_status=$?; continue; }
2482     # Check for guested configure.
2483     if test -f "$ac_srcdir/configure.gnu"; then
2484       echo &&
2485       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2486     elif test -f "$ac_srcdir/configure"; then
2487       echo &&
2488       $SHELL "$ac_srcdir/configure" --help=recursive
2489     else
2490       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2491     fi || ac_status=$?
2492     cd "$ac_pwd" || { ac_status=$?; break; }
2493   done
2494 fi
2495
2496 test -n "$ac_init_help" && exit $ac_status
2497 if $ac_init_version; then
2498   cat <<\_ACEOF
2499 amanda configure 3.3.3
2500 generated by GNU Autoconf 2.68
2501
2502 Copyright (C) 2010 Free Software Foundation, Inc.
2503 This configure script is free software; the Free Software Foundation
2504 gives unlimited permission to copy, distribute and modify it.
2505 _ACEOF
2506   exit
2507 fi
2508
2509 ## ------------------------ ##
2510 ## Autoconf initialization. ##
2511 ## ------------------------ ##
2512
2513 # ac_fn_c_try_compile LINENO
2514 # --------------------------
2515 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2516 ac_fn_c_try_compile ()
2517 {
2518   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519   rm -f conftest.$ac_objext
2520   if { { ac_try="$ac_compile"
2521 case "(($ac_try" in
2522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523   *) ac_try_echo=$ac_try;;
2524 esac
2525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2526 $as_echo "$ac_try_echo"; } >&5
2527   (eval "$ac_compile") 2>conftest.err
2528   ac_status=$?
2529   if test -s conftest.err; then
2530     grep -v '^ *+' conftest.err >conftest.er1
2531     cat conftest.er1 >&5
2532     mv -f conftest.er1 conftest.err
2533   fi
2534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2535   test $ac_status = 0; } && {
2536          test -z "$ac_c_werror_flag" ||
2537          test ! -s conftest.err
2538        } && test -s conftest.$ac_objext; then :
2539   ac_retval=0
2540 else
2541   $as_echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2543
2544         ac_retval=1
2545 fi
2546   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2547   as_fn_set_status $ac_retval
2548
2549 } # ac_fn_c_try_compile
2550
2551 # ac_fn_c_try_cpp LINENO
2552 # ----------------------
2553 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2554 ac_fn_c_try_cpp ()
2555 {
2556   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557   if { { ac_try="$ac_cpp conftest.$ac_ext"
2558 case "(($ac_try" in
2559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560   *) ac_try_echo=$ac_try;;
2561 esac
2562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2563 $as_echo "$ac_try_echo"; } >&5
2564   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2565   ac_status=$?
2566   if test -s conftest.err; then
2567     grep -v '^ *+' conftest.err >conftest.er1
2568     cat conftest.er1 >&5
2569     mv -f conftest.er1 conftest.err
2570   fi
2571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2572   test $ac_status = 0; } > conftest.i && {
2573          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2574          test ! -s conftest.err
2575        }; then :
2576   ac_retval=0
2577 else
2578   $as_echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2580
2581     ac_retval=1
2582 fi
2583   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2584   as_fn_set_status $ac_retval
2585
2586 } # ac_fn_c_try_cpp
2587
2588 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2589 # -------------------------------------------------------
2590 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2591 # the include files in INCLUDES and setting the cache variable VAR
2592 # accordingly.
2593 ac_fn_c_check_header_mongrel ()
2594 {
2595   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2596   if eval \${$3+:} false; then :
2597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2598 $as_echo_n "checking for $2... " >&6; }
2599 if eval \${$3+:} false; then :
2600   $as_echo_n "(cached) " >&6
2601 fi
2602 eval ac_res=\$$3
2603                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2604 $as_echo "$ac_res" >&6; }
2605 else
2606   # Is the header compilable?
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2608 $as_echo_n "checking $2 usability... " >&6; }
2609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h.  */
2611 $4
2612 #include <$2>
2613 _ACEOF
2614 if ac_fn_c_try_compile "$LINENO"; then :
2615   ac_header_compiler=yes
2616 else
2617   ac_header_compiler=no
2618 fi
2619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2621 $as_echo "$ac_header_compiler" >&6; }
2622
2623 # Is the header present?
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2625 $as_echo_n "checking $2 presence... " >&6; }
2626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2627 /* end confdefs.h.  */
2628 #include <$2>
2629 _ACEOF
2630 if ac_fn_c_try_cpp "$LINENO"; then :
2631   ac_header_preproc=yes
2632 else
2633   ac_header_preproc=no
2634 fi
2635 rm -f conftest.err conftest.i conftest.$ac_ext
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2637 $as_echo "$ac_header_preproc" >&6; }
2638
2639 # So?  What about this header?
2640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2641   yes:no: )
2642     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2643 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2644     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2645 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2646     ;;
2647   no:yes:* )
2648     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2649 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2650     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2651 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2652     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2653 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2654     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2655 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2656     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2657 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2658     ;;
2659 esac
2660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2661 $as_echo_n "checking for $2... " >&6; }
2662 if eval \${$3+:} false; then :
2663   $as_echo_n "(cached) " >&6
2664 else
2665   eval "$3=\$ac_header_compiler"
2666 fi
2667 eval ac_res=\$$3
2668                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2669 $as_echo "$ac_res" >&6; }
2670 fi
2671   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2672
2673 } # ac_fn_c_check_header_mongrel
2674
2675 # ac_fn_c_try_run LINENO
2676 # ----------------------
2677 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2678 # that executables *can* be run.
2679 ac_fn_c_try_run ()
2680 {
2681   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2682   if { { ac_try="$ac_link"
2683 case "(($ac_try" in
2684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685   *) ac_try_echo=$ac_try;;
2686 esac
2687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2688 $as_echo "$ac_try_echo"; } >&5
2689   (eval "$ac_link") 2>&5
2690   ac_status=$?
2691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2692   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2693   { { case "(($ac_try" in
2694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695   *) ac_try_echo=$ac_try;;
2696 esac
2697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2698 $as_echo "$ac_try_echo"; } >&5
2699   (eval "$ac_try") 2>&5
2700   ac_status=$?
2701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2702   test $ac_status = 0; }; }; then :
2703   ac_retval=0
2704 else
2705   $as_echo "$as_me: program exited with status $ac_status" >&5
2706        $as_echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2708
2709        ac_retval=$ac_status
2710 fi
2711   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2712   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2713   as_fn_set_status $ac_retval
2714
2715 } # ac_fn_c_try_run
2716
2717 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2718 # -------------------------------------------------------
2719 # Tests whether HEADER exists and can be compiled using the include files in
2720 # INCLUDES, setting the cache variable VAR accordingly.
2721 ac_fn_c_check_header_compile ()
2722 {
2723   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2725 $as_echo_n "checking for $2... " >&6; }
2726 if eval \${$3+:} false; then :
2727   $as_echo_n "(cached) " >&6
2728 else
2729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2730 /* end confdefs.h.  */
2731 $4
2732 #include <$2>
2733 _ACEOF
2734 if ac_fn_c_try_compile "$LINENO"; then :
2735   eval "$3=yes"
2736 else
2737   eval "$3=no"
2738 fi
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 fi
2741 eval ac_res=\$$3
2742                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2743 $as_echo "$ac_res" >&6; }
2744   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2745
2746 } # ac_fn_c_check_header_compile
2747
2748 # ac_fn_c_try_link LINENO
2749 # -----------------------
2750 # Try to link conftest.$ac_ext, and return whether this succeeded.
2751 ac_fn_c_try_link ()
2752 {
2753   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2754   rm -f conftest.$ac_objext conftest$ac_exeext
2755   if { { ac_try="$ac_link"
2756 case "(($ac_try" in
2757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758   *) ac_try_echo=$ac_try;;
2759 esac
2760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2761 $as_echo "$ac_try_echo"; } >&5
2762   (eval "$ac_link") 2>conftest.err
2763   ac_status=$?
2764   if test -s conftest.err; then
2765     grep -v '^ *+' conftest.err >conftest.er1
2766     cat conftest.er1 >&5
2767     mv -f conftest.er1 conftest.err
2768   fi
2769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2770   test $ac_status = 0; } && {
2771          test -z "$ac_c_werror_flag" ||
2772          test ! -s conftest.err
2773        } && test -s conftest$ac_exeext && {
2774          test "$cross_compiling" = yes ||
2775          $as_test_x conftest$ac_exeext
2776        }; then :
2777   ac_retval=0
2778 else
2779   $as_echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2781
2782         ac_retval=1
2783 fi
2784   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2785   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2786   # interfere with the next link command; also delete a directory that is
2787   # left behind by Apple's compiler.  We do this before executing the actions.
2788   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2790   as_fn_set_status $ac_retval
2791
2792 } # ac_fn_c_try_link
2793
2794 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2795 # -------------------------------------------
2796 # Tests whether TYPE exists after having included INCLUDES, setting cache
2797 # variable VAR accordingly.
2798 ac_fn_c_check_type ()
2799 {
2800   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2802 $as_echo_n "checking for $2... " >&6; }
2803 if eval \${$3+:} false; then :
2804   $as_echo_n "(cached) " >&6
2805 else
2806   eval "$3=no"
2807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h.  */
2809 $4
2810 int
2811 main ()
2812 {
2813 if (sizeof ($2))
2814          return 0;
2815   ;
2816   return 0;
2817 }
2818 _ACEOF
2819 if ac_fn_c_try_compile "$LINENO"; then :
2820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2821 /* end confdefs.h.  */
2822 $4
2823 int
2824 main ()
2825 {
2826 if (sizeof (($2)))
2827             return 0;
2828   ;
2829   return 0;
2830 }
2831 _ACEOF
2832 if ac_fn_c_try_compile "$LINENO"; then :
2833
2834 else
2835   eval "$3=yes"
2836 fi
2837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2838 fi
2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 fi
2841 eval ac_res=\$$3
2842                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2843 $as_echo "$ac_res" >&6; }
2844   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2845
2846 } # ac_fn_c_check_type
2847
2848 # ac_fn_c_check_func LINENO FUNC VAR
2849 # ----------------------------------
2850 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2851 ac_fn_c_check_func ()
2852 {
2853   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2855 $as_echo_n "checking for $2... " >&6; }
2856 if eval \${$3+:} false; then :
2857   $as_echo_n "(cached) " >&6
2858 else
2859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860 /* end confdefs.h.  */
2861 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2863 #define $2 innocuous_$2
2864
2865 /* System header to define __stub macros and hopefully few prototypes,
2866     which can conflict with char $2 (); below.
2867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2868     <limits.h> exists even on freestanding compilers.  */
2869
2870 #ifdef __STDC__
2871 # include <limits.h>
2872 #else
2873 # include <assert.h>
2874 #endif
2875
2876 #undef $2
2877
2878 /* Override any GCC internal prototype to avoid an error.
2879    Use char because int might match the return type of a GCC
2880    builtin and then its argument prototype would still apply.  */
2881 #ifdef __cplusplus
2882 extern "C"
2883 #endif
2884 char $2 ();
2885 /* The GNU C library defines this for functions which it implements
2886     to always fail with ENOSYS.  Some functions are actually named
2887     something starting with __ and the normal name is an alias.  */
2888 #if defined __stub_$2 || defined __stub___$2
2889 choke me
2890 #endif
2891
2892 int
2893 main ()
2894 {
2895 return $2 ();
2896   ;
2897   return 0;
2898 }
2899 _ACEOF
2900 if ac_fn_c_try_link "$LINENO"; then :
2901   eval "$3=yes"
2902 else
2903   eval "$3=no"
2904 fi
2905 rm -f core conftest.err conftest.$ac_objext \
2906     conftest$ac_exeext conftest.$ac_ext
2907 fi
2908 eval ac_res=\$$3
2909                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2910 $as_echo "$ac_res" >&6; }
2911   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2912
2913 } # ac_fn_c_check_func
2914
2915 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2916 # --------------------------------------------
2917 # Tries to find the compile-time value of EXPR in a program that includes
2918 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2919 # computed
2920 ac_fn_c_compute_int ()
2921 {
2922   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2923   if test "$cross_compiling" = yes; then
2924     # Depending upon the size, compute the lo and hi bounds.
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h.  */
2927 $4
2928 int
2929 main ()
2930 {
2931 static int test_array [1 - 2 * !(($2) >= 0)];
2932 test_array [0] = 0
2933
2934   ;
2935   return 0;
2936 }
2937 _ACEOF
2938 if ac_fn_c_try_compile "$LINENO"; then :
2939   ac_lo=0 ac_mid=0
2940   while :; do
2941     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h.  */
2943 $4
2944 int
2945 main ()
2946 {
2947 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2948 test_array [0] = 0
2949
2950   ;
2951   return 0;
2952 }
2953 _ACEOF
2954 if ac_fn_c_try_compile "$LINENO"; then :
2955   ac_hi=$ac_mid; break
2956 else
2957   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2958                         if test $ac_lo -le $ac_mid; then
2959                           ac_lo= ac_hi=
2960                           break
2961                         fi
2962                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2963 fi
2964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965   done
2966 else
2967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2968 /* end confdefs.h.  */
2969 $4
2970 int
2971 main ()
2972 {
2973 static int test_array [1 - 2 * !(($2) < 0)];
2974 test_array [0] = 0
2975
2976   ;
2977   return 0;
2978 }
2979 _ACEOF
2980 if ac_fn_c_try_compile "$LINENO"; then :
2981   ac_hi=-1 ac_mid=-1
2982   while :; do
2983     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2984 /* end confdefs.h.  */
2985 $4
2986 int
2987 main ()
2988 {
2989 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2990 test_array [0] = 0
2991
2992   ;
2993   return 0;
2994 }
2995 _ACEOF
2996 if ac_fn_c_try_compile "$LINENO"; then :
2997   ac_lo=$ac_mid; break
2998 else
2999   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3000                         if test $ac_mid -le $ac_hi; then
3001                           ac_lo= ac_hi=
3002                           break
3003                         fi
3004                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3005 fi
3006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007   done
3008 else
3009   ac_lo= ac_hi=
3010 fi
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 fi
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014 # Binary search between lo and hi bounds.
3015 while test "x$ac_lo" != "x$ac_hi"; do
3016   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018 /* end confdefs.h.  */
3019 $4
3020 int
3021 main ()
3022 {
3023 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3024 test_array [0] = 0
3025
3026   ;
3027   return 0;
3028 }
3029 _ACEOF
3030 if ac_fn_c_try_compile "$LINENO"; then :
3031   ac_hi=$ac_mid
3032 else
3033   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3034 fi
3035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036 done
3037 case $ac_lo in #((
3038 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3039 '') ac_retval=1 ;;
3040 esac
3041   else
3042     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3043 /* end confdefs.h.  */
3044 $4
3045 static long int longval () { return $2; }
3046 static unsigned long int ulongval () { return $2; }
3047 #include <stdio.h>
3048 #include <stdlib.h>
3049 int
3050 main ()
3051 {
3052
3053   FILE *f = fopen ("conftest.val", "w");
3054   if (! f)
3055     return 1;
3056   if (($2) < 0)
3057     {
3058       long int i = longval ();
3059       if (i != ($2))
3060         return 1;
3061       fprintf (f, "%ld", i);
3062     }
3063   else
3064     {
3065       unsigned long int i = ulongval ();
3066       if (i != ($2))
3067         return 1;
3068       fprintf (f, "%lu", i);
3069     }
3070   /* Do not output a trailing newline, as this causes \r\n confusion
3071      on some platforms.  */
3072   return ferror (f) || fclose (f) != 0;
3073
3074   ;
3075   return 0;
3076 }
3077 _ACEOF
3078 if ac_fn_c_try_run "$LINENO"; then :
3079   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3080 else
3081   ac_retval=1
3082 fi
3083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3084   conftest.$ac_objext conftest.beam conftest.$ac_ext
3085 rm -f conftest.val
3086
3087   fi
3088   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3089   as_fn_set_status $ac_retval
3090
3091 } # ac_fn_c_compute_int
3092
3093 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3094 # ---------------------------------------------
3095 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3096 # accordingly.
3097 ac_fn_c_check_decl ()
3098 {
3099   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3100   as_decl_name=`echo $2|sed 's/ *(.*//'`
3101   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3103 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3104 if eval \${$3+:} false; then :
3105   $as_echo_n "(cached) " >&6
3106 else
3107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h.  */
3109 $4
3110 int
3111 main ()
3112 {
3113 #ifndef $as_decl_name
3114 #ifdef __cplusplus
3115   (void) $as_decl_use;
3116 #else
3117   (void) $as_decl_name;
3118 #endif
3119 #endif
3120
3121   ;
3122   return 0;
3123 }
3124 _ACEOF
3125 if ac_fn_c_try_compile "$LINENO"; then :
3126   eval "$3=yes"
3127 else
3128   eval "$3=no"
3129 fi
3130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3131 fi
3132 eval ac_res=\$$3
3133                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3134 $as_echo "$ac_res" >&6; }
3135   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3136
3137 } # ac_fn_c_check_decl
3138
3139 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3140 # ----------------------------------------------------
3141 # Tries to find if the field MEMBER exists in type AGGR, after including
3142 # INCLUDES, setting cache variable VAR accordingly.
3143 ac_fn_c_check_member ()
3144 {
3145   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3147 $as_echo_n "checking for $2.$3... " >&6; }
3148 if eval \${$4+:} false; then :
3149   $as_echo_n "(cached) " >&6
3150 else
3151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152 /* end confdefs.h.  */
3153 $5
3154 int
3155 main ()
3156 {
3157 static $2 ac_aggr;
3158 if (ac_aggr.$3)
3159 return 0;
3160   ;
3161   return 0;
3162 }
3163 _ACEOF
3164 if ac_fn_c_try_compile "$LINENO"; then :
3165   eval "$4=yes"
3166 else
3167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168 /* end confdefs.h.  */
3169 $5
3170 int
3171 main ()
3172 {
3173 static $2 ac_aggr;
3174 if (sizeof ac_aggr.$3)
3175 return 0;
3176   ;
3177   return 0;
3178 }
3179 _ACEOF
3180 if ac_fn_c_try_compile "$LINENO"; then :
3181   eval "$4=yes"
3182 else
3183   eval "$4=no"
3184 fi
3185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 fi
3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3188 fi
3189 eval ac_res=\$$4
3190                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3191 $as_echo "$ac_res" >&6; }
3192   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3193
3194 } # ac_fn_c_check_member
3195 cat >config.log <<_ACEOF
3196 This file contains any messages produced by compilers while
3197 running configure, to aid debugging if configure makes a mistake.
3198
3199 It was created by amanda $as_me 3.3.3, which was
3200 generated by GNU Autoconf 2.68.  Invocation command line was
3201
3202   $ $0 $@
3203
3204 _ACEOF
3205 exec 5>>config.log
3206 {
3207 cat <<_ASUNAME
3208 ## --------- ##
3209 ## Platform. ##
3210 ## --------- ##
3211
3212 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3213 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3214 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3215 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3216 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3217
3218 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3219 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3220
3221 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3222 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3223 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3224 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3225 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3226 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3227 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3228
3229 _ASUNAME
3230
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234   IFS=$as_save_IFS
3235   test -z "$as_dir" && as_dir=.
3236     $as_echo "PATH: $as_dir"
3237   done
3238 IFS=$as_save_IFS
3239
3240 } >&5
3241
3242 cat >&5 <<_ACEOF
3243
3244
3245 ## ----------- ##
3246 ## Core tests. ##
3247 ## ----------- ##
3248
3249 _ACEOF
3250
3251
3252 # Keep a trace of the command line.
3253 # Strip out --no-create and --no-recursion so they do not pile up.
3254 # Strip out --silent because we don't want to record it for future runs.
3255 # Also quote any args containing shell meta-characters.
3256 # Make two passes to allow for proper duplicate-argument suppression.
3257 ac_configure_args=
3258 ac_configure_args0=
3259 ac_configure_args1=
3260 ac_must_keep_next=false
3261 for ac_pass in 1 2
3262 do
3263   for ac_arg
3264   do
3265     case $ac_arg in
3266     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3267     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3268     | -silent | --silent | --silen | --sile | --sil)
3269       continue ;;
3270     *\'*)
3271       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3272     esac
3273     case $ac_pass in
3274     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3275     2)
3276       as_fn_append ac_configure_args1 " '$ac_arg'"
3277       if test $ac_must_keep_next = true; then
3278         ac_must_keep_next=false # Got value, back to normal.
3279       else
3280         case $ac_arg in
3281           *=* | --config-cache | -C | -disable-* | --disable-* \
3282           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3283           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3284           | -with-* | --with-* | -without-* | --without-* | --x)
3285             case "$ac_configure_args0 " in
3286               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3287             esac
3288             ;;
3289           -* ) ac_must_keep_next=true ;;
3290         esac
3291       fi
3292       as_fn_append ac_configure_args " '$ac_arg'"
3293       ;;
3294     esac
3295   done
3296 done
3297 { ac_configure_args0=; unset ac_configure_args0;}
3298 { ac_configure_args1=; unset ac_configure_args1;}
3299
3300 # When interrupted or exit'd, cleanup temporary files, and complete
3301 # config.log.  We remove comments because anyway the quotes in there
3302 # would cause problems or look ugly.
3303 # WARNING: Use '\'' to represent an apostrophe within the trap.
3304 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3305 trap 'exit_status=$?
3306   # Save into config.log some information that might help in debugging.
3307   {
3308     echo
3309
3310     $as_echo "## ---------------- ##
3311 ## Cache variables. ##
3312 ## ---------------- ##"
3313     echo
3314     # The following way of writing the cache mishandles newlines in values,
3315 (
3316   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3317     eval ac_val=\$$ac_var
3318     case $ac_val in #(
3319     *${as_nl}*)
3320       case $ac_var in #(
3321       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3322 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3323       esac
3324       case $ac_var in #(
3325       _ | IFS | as_nl) ;; #(
3326       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3327       *) { eval $ac_var=; unset $ac_var;} ;;
3328       esac ;;
3329     esac
3330   done
3331   (set) 2>&1 |
3332     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3333     *${as_nl}ac_space=\ *)
3334       sed -n \
3335         "s/'\''/'\''\\\\'\'''\''/g;
3336           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3337       ;; #(
3338     *)
3339       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3340       ;;
3341     esac |
3342     sort
3343 )
3344     echo
3345
3346     $as_echo "## ----------------- ##
3347 ## Output variables. ##
3348 ## ----------------- ##"
3349     echo
3350     for ac_var in $ac_subst_vars
3351     do
3352       eval ac_val=\$$ac_var
3353       case $ac_val in
3354       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3355       esac
3356       $as_echo "$ac_var='\''$ac_val'\''"
3357     done | sort
3358     echo
3359
3360     if test -n "$ac_subst_files"; then
3361       $as_echo "## ------------------- ##
3362 ## File substitutions. ##
3363 ## ------------------- ##"
3364       echo
3365       for ac_var in $ac_subst_files
3366       do
3367         eval ac_val=\$$ac_var
3368         case $ac_val in
3369         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3370         esac
3371         $as_echo "$ac_var='\''$ac_val'\''"
3372       done | sort
3373       echo
3374     fi
3375
3376     if test -s confdefs.h; then
3377       $as_echo "## ----------- ##
3378 ## confdefs.h. ##
3379 ## ----------- ##"
3380       echo
3381       cat confdefs.h
3382       echo
3383     fi
3384     test "$ac_signal" != 0 &&
3385       $as_echo "$as_me: caught signal $ac_signal"
3386     $as_echo "$as_me: exit $exit_status"
3387   } >&5
3388   rm -f core *.core core.conftest.* &&
3389     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3390     exit $exit_status
3391 ' 0
3392 for ac_signal in 1 2 13 15; do
3393   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3394 done
3395 ac_signal=0
3396
3397 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3398 rm -f -r conftest* confdefs.h
3399
3400 $as_echo "/* confdefs.h */" > confdefs.h
3401
3402 # Predefined preprocessor variables.
3403
3404 cat >>confdefs.h <<_ACEOF
3405 #define PACKAGE_NAME "$PACKAGE_NAME"
3406 _ACEOF
3407
3408 cat >>confdefs.h <<_ACEOF
3409 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3410 _ACEOF
3411
3412 cat >>confdefs.h <<_ACEOF
3413 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3414 _ACEOF
3415
3416 cat >>confdefs.h <<_ACEOF
3417 #define PACKAGE_STRING "$PACKAGE_STRING"
3418 _ACEOF
3419
3420 cat >>confdefs.h <<_ACEOF
3421 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3422 _ACEOF
3423
3424 cat >>confdefs.h <<_ACEOF
3425 #define PACKAGE_URL "$PACKAGE_URL"
3426 _ACEOF
3427
3428
3429 # Let the site file select an alternate cache file if it wants to.
3430 # Prefer an explicitly selected file to automatically selected ones.
3431 ac_site_file1=NONE
3432 ac_site_file2=NONE
3433 if test -n "$CONFIG_SITE"; then
3434   # We do not want a PATH search for config.site.
3435   case $CONFIG_SITE in #((
3436     -*)  ac_site_file1=./$CONFIG_SITE;;
3437     */*) ac_site_file1=$CONFIG_SITE;;
3438     *)   ac_site_file1=./$CONFIG_SITE;;
3439   esac
3440 elif test "x$prefix" != xNONE; then
3441   ac_site_file1=$prefix/share/config.site
3442   ac_site_file2=$prefix/etc/config.site
3443 else
3444   ac_site_file1=$ac_default_prefix/share/config.site
3445   ac_site_file2=$ac_default_prefix/etc/config.site
3446 fi
3447 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3448 do
3449   test "x$ac_site_file" = xNONE && continue
3450   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3451     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3452 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3453     sed 's/^/| /' "$ac_site_file" >&5
3454     . "$ac_site_file" \
3455       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error $? "failed to load site script $ac_site_file
3458 See \`config.log' for more details" "$LINENO" 5; }
3459   fi
3460 done
3461
3462 if test -r "$cache_file"; then
3463   # Some versions of bash will fail to source /dev/null (special files
3464   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3465   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3466     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3467 $as_echo "$as_me: loading cache $cache_file" >&6;}
3468     case $cache_file in
3469       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3470       *)                      . "./$cache_file";;
3471     esac
3472   fi
3473 else
3474   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3475 $as_echo "$as_me: creating cache $cache_file" >&6;}
3476   >$cache_file
3477 fi
3478
3479 gl_header_list="$gl_header_list arpa/inet.h"
3480 gl_func_list="$gl_func_list btowc"
3481 gl_header_list="$gl_header_list errno.h"
3482 gl_header_list="$gl_header_list float.h"
3483 gl_header_list="$gl_header_list sys/param.h"
3484 gl_header_list="$gl_header_list sys/vfs.h"
3485 gl_header_list="$gl_header_list sys/fs_types.h"
3486 gl_func_list="$gl_func_list ftruncate"
3487 gl_header_list="$gl_header_list sys/socket.h"
3488 gl_header_list="$gl_header_list netdb.h"
3489 gl_header_list="$gl_header_list netinet/in.h"
3490 gl_getopt_required=GNU
3491 gl_header_list="$gl_header_list getopt.h"
3492 gl_header_list="$gl_header_list sys/time.h"
3493 gl_func_list="$gl_func_list gettimeofday"
3494 gl_header_list="$gl_header_list langinfo.h"
3495 gl_func_list="$gl_func_list lstat"
3496 gl_func_list="$gl_func_list mbsinit"
3497 gl_func_list="$gl_func_list mbrtowc"
3498 gl_header_list="$gl_header_list sys/mman.h"
3499 gl_func_list="$gl_func_list mprotect"
3500 gl_func_list="$gl_func_list memchr"
3501 gl_func_list="$gl_func_list nl_langinfo"
3502 gl_header_list="$gl_header_list locale.h"
3503 gl_func_list="$gl_func_list isblank"
3504 gl_func_list="$gl_func_list iswctype"
3505 gl_func_list="$gl_func_list wcscoll"
3506 gl_header_list="$gl_header_list stddef.h"
3507 gl_header_list="$gl_header_list stdint.h"
3508 gl_header_list="$gl_header_list wchar.h"
3509 gl_header_list="$gl_header_list stdio.h"
3510 gl_header_list="$gl_header_list stdlib.h"
3511 gl_header_list="$gl_header_list string.h"
3512 gl_header_list="$gl_header_list sys/stat.h"
3513 gl_header_list="$gl_header_list time.h"
3514 gl_header_list="$gl_header_list unistd.h"
3515 gl_func_list="$gl_func_list vasnprintf"
3516 gl_func_list="$gl_func_list wcrtomb"
3517 gl_func_list="$gl_func_list iswcntrl"
3518 gl_func_list="$gl_func_list iswblank"
3519 gl_header_list="$gl_header_list wctype.h"
3520 # Check that the precious variables saved in the cache have kept the same
3521 # value.
3522 ac_cache_corrupted=false
3523 for ac_var in $ac_precious_vars; do
3524   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3525   eval ac_new_set=\$ac_env_${ac_var}_set
3526   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3527   eval ac_new_val=\$ac_env_${ac_var}_value
3528   case $ac_old_set,$ac_new_set in
3529     set,)
3530       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3531 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3532       ac_cache_corrupted=: ;;
3533     ,set)
3534       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3535 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3536       ac_cache_corrupted=: ;;
3537     ,);;
3538     *)
3539       if test "x$ac_old_val" != "x$ac_new_val"; then
3540         # differences in whitespace do not lead to failure.
3541         ac_old_val_w=`echo x $ac_old_val`
3542         ac_new_val_w=`echo x $ac_new_val`
3543         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3544           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3545 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3546           ac_cache_corrupted=:
3547         else
3548           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3549 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3550           eval $ac_var=\$ac_old_val
3551         fi
3552         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3553 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3554         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3555 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3556       fi;;
3557   esac
3558   # Pass precious variables to config.status.
3559   if test "$ac_new_set" = set; then
3560     case $ac_new_val in
3561     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3562     *) ac_arg=$ac_var=$ac_new_val ;;
3563     esac
3564     case " $ac_configure_args " in
3565       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3566       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3567     esac
3568   fi
3569 done
3570 if $ac_cache_corrupted; then
3571   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3573   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3574 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3575   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3576 fi
3577 ## -------------------- ##
3578 ## Main body of script. ##
3579 ## -------------------- ##
3580
3581 ac_ext=c
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586
3587
3588
3589 ac_aux_dir=
3590 for ac_dir in config "$srcdir"/config; do
3591   if test -f "$ac_dir/install-sh"; then
3592     ac_aux_dir=$ac_dir
3593     ac_install_sh="$ac_aux_dir/install-sh -c"
3594     break
3595   elif test -f "$ac_dir/install.sh"; then
3596     ac_aux_dir=$ac_dir
3597     ac_install_sh="$ac_aux_dir/install.sh -c"
3598     break
3599   elif test -f "$ac_dir/shtool"; then
3600     ac_aux_dir=$ac_dir
3601     ac_install_sh="$ac_aux_dir/shtool install -c"
3602     break
3603   fi
3604 done
3605 if test -z "$ac_aux_dir"; then
3606   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3607 fi
3608
3609 # These three variables are undocumented and unsupported,
3610 # and are intended to be withdrawn in a future Autoconf release.
3611 # They can cause serious problems if a builder's source tree is in a directory
3612 # whose full name contains unusual characters.
3613 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3614 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3615 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3616
3617
3618
3619 # Make sure we can run config.sub.
3620 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3621   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3622
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3624 $as_echo_n "checking build system type... " >&6; }
3625 if ${ac_cv_build+:} false; then :
3626   $as_echo_n "(cached) " >&6
3627 else
3628   ac_build_alias=$build_alias
3629 test "x$ac_build_alias" = x &&
3630   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3631 test "x$ac_build_alias" = x &&
3632   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3633 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3634   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3635
3636 fi
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3638 $as_echo "$ac_cv_build" >&6; }
3639 case $ac_cv_build in
3640 *-*-*) ;;
3641 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3642 esac
3643 build=$ac_cv_build
3644 ac_save_IFS=$IFS; IFS='-'
3645 set x $ac_cv_build
3646 shift
3647 build_cpu=$1
3648 build_vendor=$2
3649 shift; shift
3650 # Remember, the first character of IFS is used to create $*,
3651 # except with old shells:
3652 build_os=$*
3653 IFS=$ac_save_IFS
3654 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3655
3656
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3658 $as_echo_n "checking host system type... " >&6; }
3659 if ${ac_cv_host+:} false; then :
3660   $as_echo_n "(cached) " >&6
3661 else
3662   if test "x$host_alias" = x; then
3663   ac_cv_host=$ac_cv_build
3664 else
3665   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3666     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3667 fi
3668
3669 fi
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3671 $as_echo "$ac_cv_host" >&6; }
3672 case $ac_cv_host in
3673 *-*-*) ;;
3674 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3675 esac
3676 host=$ac_cv_host
3677 ac_save_IFS=$IFS; IFS='-'
3678 set x $ac_cv_host
3679 shift
3680 host_cpu=$1
3681 host_vendor=$2
3682 shift; shift
3683 # Remember, the first character of IFS is used to create $*,
3684 # except with old shells:
3685 host_os=$*
3686 IFS=$ac_save_IFS
3687 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3688
3689
3690
3691 PACKAGE=amanda
3692
3693
3694
3695     SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/sfw/bin:/usr/bsd:/etc:/usr/etc"
3696     # expand prefix or exec_prefix in LOCPATH
3697     LOCPATH=`(
3698         test "x$prefix" = xNONE && prefix=$ac_default_prefix
3699         test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3700         eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
3701     )`
3702     SYSLOCPATH="$SYSPATH:$LOCPATH"
3703     LOCSYSPATH="$LOCPATH:$SYSPATH"
3704
3705
3706
3707     # Extract the first word of "grep", so it can be a program name with args.
3708 set dummy grep; ac_word=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if ${ac_cv_path_GREP+:} false; then :
3712   $as_echo_n "(cached) " >&6
3713 else
3714   case $GREP in
3715   [\\/]* | ?:[\\/]*)
3716   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3717   ;;
3718   *)
3719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $LOCSYSPATH
3721 do
3722   IFS=$as_save_IFS
3723   test -z "$as_dir" && as_dir=.
3724     for ac_exec_ext in '' $ac_executable_extensions; do
3725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3726     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728     break 2
3729   fi
3730 done
3731   done
3732 IFS=$as_save_IFS
3733
3734   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
3735   ;;
3736 esac
3737 fi
3738 GREP=$ac_cv_path_GREP
3739 if test -n "$GREP"; then
3740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3741 $as_echo "$GREP" >&6; }
3742 else
3743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 $as_echo "no" >&6; }
3745 fi
3746
3747
3748
3749 cat >>confdefs.h <<_ACEOF
3750 #define GREP "$GREP"
3751 _ACEOF
3752
3753
3754
3755
3756
3757
3758
3759     # Extract the first word of "svn", so it can be a program name with args.
3760 set dummy svn; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if ${ac_cv_path_SVN+:} false; then :
3764   $as_echo_n "(cached) " >&6
3765 else
3766   case $SVN in
3767   [\\/]* | ?:[\\/]*)
3768   ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
3769   ;;
3770   *)
3771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $LOCSYSPATH
3773 do
3774   IFS=$as_save_IFS
3775   test -z "$as_dir" && as_dir=.
3776     for ac_exec_ext in '' $ac_executable_extensions; do
3777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3778     ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
3779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3780     break 2
3781   fi
3782 done
3783   done
3784 IFS=$as_save_IFS
3785
3786   ;;
3787 esac
3788 fi
3789 SVN=$ac_cv_path_SVN
3790 if test -n "$SVN"; then
3791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN" >&5
3792 $as_echo "$SVN" >&6; }
3793 else
3794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 $as_echo "no" >&6; }
3796 fi
3797
3798
3799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking Subversion revision information" >&5
3800 $as_echo_n "checking Subversion revision information... " >&6; }
3801     if test -d $srcdir/.svn -a -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
3802         SVN_REV=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
3803         SVN_URL=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3804         SVN_PATH=`$GREP URL: conftemp.svn|cut -d "/" -f 7-`
3805         SVN_TYPE=`echo ${SVN_PATH} |cut -d "/" -f 1`
3806         SVN_BRANCH=`echo "${SVN_PATH}"| cut -d "/" -f 2`
3807         url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3808         ( echo '#define BUILT_REV "'$SVN_REV'"'
3809           echo '#define BUILT_BRANCH "'$SVN_BRANCH'"'
3810         ) > common-src/svn-info.h
3811
3812         { $as_echo "$as_me:${as_lineno-$LINENO}: result: updated" >&5
3813 $as_echo "updated" >&6; }
3814     else
3815         # Makefiles will be upset if the file doesn't exist, so double-check
3816         if test -f common-src/svn-info.h; then
3817             : # all good
3818             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not changed" >&5
3819 $as_echo "not changed" >&6; }
3820         else
3821             echo '/* no information available */' > common-src/svn-info.h
3822             { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
3823 $as_echo "not available" >&6; }
3824         fi
3825     fi
3826
3827     rm -f conftemp.svn
3828
3829
3830
3831
3832
3833     # Extract the first word of "git", so it can be a program name with args.
3834 set dummy git; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if ${ac_cv_path_GIT+:} false; then :
3838   $as_echo_n "(cached) " >&6
3839 else
3840   case $GIT in
3841   [\\/]* | ?:[\\/]*)
3842   ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
3843   ;;
3844   *)
3845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $LOCSYSPATH
3847 do
3848   IFS=$as_save_IFS
3849   test -z "$as_dir" && as_dir=.
3850     for ac_exec_ext in '' $ac_executable_extensions; do
3851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3852     ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
3853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854     break 2
3855   fi
3856 done
3857   done
3858 IFS=$as_save_IFS
3859
3860   ;;
3861 esac
3862 fi
3863 GIT=$ac_cv_path_GIT
3864 if test -n "$GIT"; then
3865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
3866 $as_echo "$GIT" >&6; }
3867 else
3868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3870 fi
3871
3872
3873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking git revision information" >&5
3874 $as_echo_n "checking git revision information... " >&6; }
3875     if test -d $srcdir/.git -a -n "$GIT"; then
3876         GIT_SHA1=`(cd $srcdir > /dev/null ; $GIT rev-parse HEAD | cut -c -8 )`
3877         if test -n "$GIT_SHA1"; then
3878             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT_SHA1" >&5
3879 $as_echo "$GIT_SHA1" >&6; }
3880         else
3881             { $as_echo "$as_me:${as_lineno-$LINENO}: result: 'git rev-parse HEAD' failed" >&5
3882 $as_echo "'git rev-parse HEAD' failed" >&6; }
3883         fi
3884     else
3885         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5
3886 $as_echo "not available" >&6; }
3887     fi
3888
3889     rm -f conftemp.git
3890
3891
3892     { $as_echo "$as_me:${as_lineno-$LINENO}: \"version: $VERSION\"" >&5
3893 $as_echo "$as_me: \"version: $VERSION\"" >&6;}
3894
3895 am__api_version='1.11'
3896
3897 # Find a good install program.  We prefer a C program (faster),
3898 # so one script is as good as another.  But avoid the broken or
3899 # incompatible versions:
3900 # SysV /etc/install, /usr/sbin/install
3901 # SunOS /usr/etc/install
3902 # IRIX /sbin/install
3903 # AIX /bin/install
3904 # AmigaOS /C/install, which installs bootblocks on floppy discs
3905 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3906 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3907 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3908 # OS/2's system install, which has a completely different semantic
3909 # ./install, which can be erroneously created by make from ./install.sh.
3910 # Reject install programs that cannot install multiple files.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3912 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3913 if test -z "$INSTALL"; then
3914 if ${ac_cv_path_install+:} false; then :
3915   $as_echo_n "(cached) " >&6
3916 else
3917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3919 do
3920   IFS=$as_save_IFS
3921   test -z "$as_dir" && as_dir=.
3922     # Account for people who put trailing slashes in PATH elements.
3923 case $as_dir/ in #((
3924   ./ | .// | /[cC]/* | \
3925   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3926   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3927   /usr/ucb/* ) ;;
3928   *)
3929     # OSF1 and SCO ODT 3.0 have their own names for install.
3930     # Don't use installbsd from OSF since it installs stuff as root
3931     # by default.
3932     for ac_prog in ginstall scoinst install; do
3933       for ac_exec_ext in '' $ac_executable_extensions; do
3934         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3935           if test $ac_prog = install &&
3936             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3937             # AIX install.  It has an incompatible calling convention.
3938             :
3939           elif test $ac_prog = install &&
3940             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3941             # program-specific install script used by HP pwplus--don't use.
3942             :
3943           else
3944             rm -rf conftest.one conftest.two conftest.dir
3945             echo one > conftest.one
3946             echo two > conftest.two
3947             mkdir conftest.dir
3948             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3949               test -s conftest.one && test -s conftest.two &&
3950               test -s conftest.dir/conftest.one &&
3951               test -s conftest.dir/conftest.two
3952             then
3953               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3954               break 3
3955             fi
3956           fi
3957         fi
3958       done
3959     done
3960     ;;
3961 esac
3962
3963   done
3964 IFS=$as_save_IFS
3965
3966 rm -rf conftest.one conftest.two conftest.dir
3967
3968 fi
3969   if test "${ac_cv_path_install+set}" = set; then
3970     INSTALL=$ac_cv_path_install
3971   else
3972     # As a last resort, use the slow shell script.  Don't cache a
3973     # value for INSTALL within a source directory, because that will
3974     # break other packages using the cache if that directory is
3975     # removed, or if the value is a relative name.
3976     INSTALL=$ac_install_sh
3977   fi
3978 fi
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3980 $as_echo "$INSTALL" >&6; }
3981
3982 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3983 # It thinks the first close brace ends the variable substitution.
3984 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3985
3986 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3987
3988 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3989
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3991 $as_echo_n "checking whether build environment is sane... " >&6; }
3992 # Just in case
3993 sleep 1
3994 echo timestamp > conftest.file
3995 # Reject unsafe characters in $srcdir or the absolute working directory
3996 # name.  Accept space and tab only in the latter.
3997 am_lf='
3998 '
3999 case `pwd` in
4000   *[\\\"\#\$\&\'\`$am_lf]*)
4001     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4002 esac
4003 case $srcdir in
4004   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4005     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4006 esac
4007
4008 # Do `set' in a subshell so we don't clobber the current shell's
4009 # arguments.  Must try -L first in case configure is actually a
4010 # symlink; some systems play weird games with the mod time of symlinks
4011 # (eg FreeBSD returns the mod time of the symlink's containing
4012 # directory).
4013 if (
4014    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4015    if test "$*" = "X"; then
4016       # -L didn't work.
4017       set X `ls -t "$srcdir/configure" conftest.file`
4018    fi
4019    rm -f conftest.file
4020    if test "$*" != "X $srcdir/configure conftest.file" \
4021       && test "$*" != "X conftest.file $srcdir/configure"; then
4022
4023       # If neither matched, then we have a broken ls.  This can happen
4024       # if, for instance, CONFIG_SHELL is bash and it inherits a
4025       # broken ls alias from the environment.  This has actually
4026       # happened.  Such a system could not be considered "sane".
4027       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4028 alias in your environment" "$LINENO" 5
4029    fi
4030
4031    test "$2" = conftest.file
4032    )
4033 then
4034    # Ok.
4035    :
4036 else
4037    as_fn_error $? "newly created file is older than distributed files!
4038 Check your system clock" "$LINENO" 5
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4041 $as_echo "yes" >&6; }
4042 test "$program_prefix" != NONE &&
4043   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4044 # Use a double $ so make ignores it.
4045 test "$program_suffix" != NONE &&
4046   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4047 # Double any \ or $.
4048 # By default was `s,x,x', remove it if useless.
4049 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4050 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4051
4052 # expand $ac_aux_dir to an absolute path
4053 am_aux_dir=`cd $ac_aux_dir && pwd`
4054
4055 if test x"${MISSING+set}" != xset; then
4056   case $am_aux_dir in
4057   *\ * | *\     *)
4058     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4059   *)
4060     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4061   esac
4062 fi
4063 # Use eval to expand $SHELL
4064 if eval "$MISSING --run true"; then
4065   am_missing_run="$MISSING --run "
4066 else
4067   am_missing_run=
4068   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4069 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4070 fi
4071
4072 if test x"${install_sh}" != xset; then
4073   case $am_aux_dir in
4074   *\ * | *\     *)
4075     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4076   *)
4077     install_sh="\${SHELL} $am_aux_dir/install-sh"
4078   esac
4079 fi
4080
4081 # Installed binaries are usually stripped using `strip' when the user
4082 # run `make install-strip'.  However `strip' might not be the right
4083 # tool to use in cross-compilation environments, therefore Automake
4084 # will honor the `STRIP' environment variable to overrule this program.
4085 if test "$cross_compiling" != no; then
4086   if test -n "$ac_tool_prefix"; then
4087   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4088 set dummy ${ac_tool_prefix}strip; ac_word=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if ${ac_cv_prog_STRIP+:} false; then :
4092   $as_echo_n "(cached) " >&6
4093 else
4094   if test -n "$STRIP"; then
4095   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4096 else
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4099 do
4100   IFS=$as_save_IFS
4101   test -z "$as_dir" && as_dir=.
4102     for ac_exec_ext in '' $ac_executable_extensions; do
4103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4104     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106     break 2
4107   fi
4108 done
4109   done
4110 IFS=$as_save_IFS
4111
4112 fi
4113 fi
4114 STRIP=$ac_cv_prog_STRIP
4115 if test -n "$STRIP"; then
4116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4117 $as_echo "$STRIP" >&6; }
4118 else
4119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4121 fi
4122
4123
4124 fi
4125 if test -z "$ac_cv_prog_STRIP"; then
4126   ac_ct_STRIP=$STRIP
4127   # Extract the first word of "strip", so it can be a program name with args.
4128 set dummy strip; ac_word=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4132   $as_echo_n "(cached) " >&6
4133 else
4134   if test -n "$ac_ct_STRIP"; then
4135   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140   IFS=$as_save_IFS
4141   test -z "$as_dir" && as_dir=.
4142     for ac_exec_ext in '' $ac_executable_extensions; do
4143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4144     ac_cv_prog_ac_ct_STRIP="strip"
4145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146     break 2
4147   fi
4148 done
4149   done
4150 IFS=$as_save_IFS
4151
4152 fi
4153 fi
4154 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4155 if test -n "$ac_ct_STRIP"; then
4156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4157 $as_echo "$ac_ct_STRIP" >&6; }
4158 else
4159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4161 fi
4162
4163   if test "x$ac_ct_STRIP" = x; then
4164     STRIP=":"
4165   else
4166     case $cross_compiling:$ac_tool_warned in
4167 yes:)
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4170 ac_tool_warned=yes ;;
4171 esac
4172     STRIP=$ac_ct_STRIP
4173   fi
4174 else
4175   STRIP="$ac_cv_prog_STRIP"
4176 fi
4177
4178 fi
4179 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4180
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4182 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4183 if test -z "$MKDIR_P"; then
4184   if ${ac_cv_path_mkdir+:} false; then :
4185   $as_echo_n "(cached) " >&6
4186 else
4187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4189 do
4190   IFS=$as_save_IFS
4191   test -z "$as_dir" && as_dir=.
4192     for ac_prog in mkdir gmkdir; do
4193          for ac_exec_ext in '' $ac_executable_extensions; do
4194            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4195            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4196              'mkdir (GNU coreutils) '* | \
4197              'mkdir (coreutils) '* | \
4198              'mkdir (fileutils) '4.1*)
4199                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4200                break 3;;
4201            esac
4202          done
4203        done
4204   done
4205 IFS=$as_save_IFS
4206
4207 fi
4208
4209   test -d ./--version && rmdir ./--version
4210   if test "${ac_cv_path_mkdir+set}" = set; then
4211     MKDIR_P="$ac_cv_path_mkdir -p"
4212   else
4213     # As a last resort, use the slow shell script.  Don't cache a
4214     # value for MKDIR_P within a source directory, because that will
4215     # break other packages using the cache if that directory is
4216     # removed, or if the value is a relative name.
4217     MKDIR_P="$ac_install_sh -d"
4218   fi
4219 fi
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4221 $as_echo "$MKDIR_P" >&6; }
4222
4223
4224 mkdir_p="$MKDIR_P"
4225 case $mkdir_p in
4226   [\\/$]* | ?:[\\/]*) ;;
4227   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4228 esac
4229
4230 for ac_prog in gawk mawk nawk awk
4231 do
4232   # Extract the first word of "$ac_prog", so it can be a program name with args.
4233 set dummy $ac_prog; ac_word=$2
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235 $as_echo_n "checking for $ac_word... " >&6; }
4236 if ${ac_cv_prog_AWK+:} false; then :
4237   $as_echo_n "(cached) " >&6
4238 else
4239   if test -n "$AWK"; then
4240   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4241 else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4244 do
4245   IFS=$as_save_IFS
4246   test -z "$as_dir" && as_dir=.
4247     for ac_exec_ext in '' $ac_executable_extensions; do
4248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249     ac_cv_prog_AWK="$ac_prog"
4250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251     break 2
4252   fi
4253 done
4254   done
4255 IFS=$as_save_IFS
4256
4257 fi
4258 fi
4259 AWK=$ac_cv_prog_AWK
4260 if test -n "$AWK"; then
4261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4262 $as_echo "$AWK" >&6; }
4263 else
4264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 $as_echo "no" >&6; }
4266 fi
4267
4268
4269   test -n "$AWK" && break
4270 done
4271
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4273 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4274 set x ${MAKE-make}
4275 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4276 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4277   $as_echo_n "(cached) " >&6
4278 else
4279   cat >conftest.make <<\_ACEOF
4280 SHELL = /bin/sh
4281 all:
4282         @echo '@@@%%%=$(MAKE)=@@@%%%'
4283 _ACEOF
4284 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4285 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4286   *@@@%%%=?*=@@@%%%*)
4287     eval ac_cv_prog_make_${ac_make}_set=yes;;
4288   *)
4289     eval ac_cv_prog_make_${ac_make}_set=no;;
4290 esac
4291 rm -f conftest.make
4292 fi
4293 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4295 $as_echo "yes" >&6; }
4296   SET_MAKE=
4297 else
4298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 $as_echo "no" >&6; }
4300   SET_MAKE="MAKE=${MAKE-make}"
4301 fi
4302
4303 rm -rf .tst 2>/dev/null
4304 mkdir .tst 2>/dev/null
4305 if test -d .tst; then
4306   am__leading_dot=.
4307 else
4308   am__leading_dot=_
4309 fi
4310 rmdir .tst 2>/dev/null
4311
4312 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4313   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4314   # is not polluted with repeated "-I."
4315   am__isrc=' -I$(srcdir)'
4316   # test to see if srcdir already configured
4317   if test -f $srcdir/config.status; then
4318     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4319   fi
4320 fi
4321
4322 # test whether we have cygpath
4323 if test -z "$CYGPATH_W"; then
4324   if (cygpath --version) >/dev/null 2>/dev/null; then
4325     CYGPATH_W='cygpath -w'
4326   else
4327     CYGPATH_W=echo
4328   fi
4329 fi
4330
4331
4332 # Define the identity of the package.
4333  PACKAGE='amanda'
4334  VERSION='3.3.3'
4335
4336
4337 cat >>confdefs.h <<_ACEOF
4338 #define PACKAGE "$PACKAGE"
4339 _ACEOF
4340
4341
4342 cat >>confdefs.h <<_ACEOF
4343 #define VERSION "$VERSION"
4344 _ACEOF
4345
4346 # Some tools Automake needs.
4347
4348 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4349
4350
4351 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4352
4353
4354 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4355
4356
4357 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4358
4359
4360 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4361
4362 # We need awk for the "check" target.  The system "awk" is bad on
4363 # some platforms.
4364 # Always define AMTAR for backward compatibility.  Yes, it's still used
4365 # in the wild :-(  We should find a proper way to deprecate it ...
4366 AMTAR='$${TAR-tar}'
4367
4368
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4370 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
4371 # Loop over all known methods to create a tar archive until one works.
4372 _am_tools='gnutar plaintar pax cpio none'
4373 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4374 # Do not fold the above two line into one, because Tru64 sh and
4375 # Solaris sh will not grok spaces in the rhs of `-'.
4376 for _am_tool in $_am_tools
4377 do
4378   case $_am_tool in
4379   gnutar)
4380     for _am_tar in tar gnutar gtar;
4381     do
4382       { echo "$as_me:$LINENO: $_am_tar --version" >&5
4383    ($_am_tar --version) >&5 2>&5
4384    ac_status=$?
4385    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386    (exit $ac_status); } && break
4387     done
4388     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4389     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4390     am__untar="$_am_tar -xf -"
4391     ;;
4392   plaintar)
4393     # Must skip GNU tar: if it does not support --format= it doesn't create
4394     # ustar tarball either.
4395     (tar --version) >/dev/null 2>&1 && continue
4396     am__tar='tar chf - "$$tardir"'
4397     am__tar_='tar chf - "$tardir"'
4398     am__untar='tar xf -'
4399     ;;
4400   pax)
4401     am__tar='pax -L -x ustar -w "$$tardir"'
4402     am__tar_='pax -L -x ustar -w "$tardir"'
4403     am__untar='pax -r'
4404     ;;
4405   cpio)
4406     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4407     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4408     am__untar='cpio -i -H ustar -d'
4409     ;;
4410   none)
4411     am__tar=false
4412     am__tar_=false
4413     am__untar=false
4414     ;;
4415   esac
4416
4417   # If the value was cached, stop now.  We just wanted to have am__tar
4418   # and am__untar set.
4419   test -n "${am_cv_prog_tar_ustar}" && break
4420
4421   # tar/untar a dummy directory, and stop if the command works
4422   rm -rf conftest.dir
4423   mkdir conftest.dir
4424   echo GrepMe > conftest.dir/file
4425   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4426    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4427    ac_status=$?
4428    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429    (exit $ac_status); }
4430   rm -rf conftest.dir
4431   if test -s conftest.tar; then
4432     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4433    ($am__untar <conftest.tar) >&5 2>&5
4434    ac_status=$?
4435    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436    (exit $ac_status); }
4437     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4438   fi
4439 done
4440 rm -rf conftest.dir
4441
4442 if ${am_cv_prog_tar_ustar+:} false; then :
4443   $as_echo_n "(cached) " >&6
4444 else
4445   am_cv_prog_tar_ustar=$_am_tool
4446 fi
4447
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4449 $as_echo "$am_cv_prog_tar_ustar" >&6; }
4450
4451
4452
4453
4454
4455 ac_config_headers="$ac_config_headers config/config.h"
4456
4457
4458
4459
4460 #
4461 # Take care of some early Amanda-specific setup
4462 #
4463
4464     # initialize warnings file
4465     rm -f config.warnings
4466
4467
4468     if test -f "$srcdir/SNAPSHOT"; then
4469       cat < "$srcdir/SNAPSHOT"
4470
4471       snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
4472
4473       test -z "$snapdate" || VERSION="$VERSION-$snapdate"
4474       SNAPSHOT_STAMP=SNAPSHOT
4475     else
4476       SNAPSHOT_STAMP=
4477     fi
4478
4479
4480
4481
4482     VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
4483     VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
4484     if test -z "$VERSION_MINOR"; then
4485         VERSION_MINOR=0
4486         VERSION_PATCH=0
4487         VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\(.*\)'`\"
4488     else
4489         VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
4490         if test -z "$VERSION_PATCH"; then
4491             VERSION_PATCH=0
4492             VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\(.*\)'`\"
4493         else
4494             VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
4495         fi
4496     fi
4497
4498
4499
4500
4501
4502
4503
4504
4505 cat >>confdefs.h <<_ACEOF
4506 #define VERSION_MAJOR $VERSION_MAJOR
4507 _ACEOF
4508
4509
4510 cat >>confdefs.h <<_ACEOF
4511 #define VERSION_MINOR $VERSION_MINOR
4512 _ACEOF
4513
4514
4515 cat >>confdefs.h <<_ACEOF
4516 #define VERSION_PATCH $VERSION_PATCH
4517 _ACEOF
4518
4519
4520 cat >>confdefs.h <<_ACEOF
4521 #define VERSION_COMMENT $VERSION_COMMENT
4522 _ACEOF
4523
4524
4525
4526     if test -f config.local; then
4527         echo "running local script ./config.local"
4528         . ./config.local
4529     fi
4530
4531
4532 #
4533 # Set up compiler location, basic flags, and include locations
4534 # and library locations before we start checking the system
4535 # configuration in more detail...
4536 #
4537 ac_ext=c
4538 ac_cpp='$CPP $CPPFLAGS'
4539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4542 if test -n "$ac_tool_prefix"; then
4543   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4544 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if ${ac_cv_prog_CC+:} false; then :
4548   $as_echo_n "(cached) " >&6
4549 else
4550   if test -n "$CC"; then
4551   ac_cv_prog_CC="$CC" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4555 do
4556   IFS=$as_save_IFS
4557   test -z "$as_dir" && as_dir=.
4558     for ac_exec_ext in '' $ac_executable_extensions; do
4559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562     break 2
4563   fi
4564 done
4565   done
4566 IFS=$as_save_IFS
4567
4568 fi
4569 fi
4570 CC=$ac_cv_prog_CC
4571 if test -n "$CC"; then
4572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4573 $as_echo "$CC" >&6; }
4574 else
4575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4577 fi
4578
4579
4580 fi
4581 if test -z "$ac_cv_prog_CC"; then
4582   ac_ct_CC=$CC
4583   # Extract the first word of "gcc", so it can be a program name with args.
4584 set dummy gcc; ac_word=$2
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586 $as_echo_n "checking for $ac_word... " >&6; }
4587 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4588   $as_echo_n "(cached) " >&6
4589 else
4590   if test -n "$ac_ct_CC"; then
4591   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4592 else
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596   IFS=$as_save_IFS
4597   test -z "$as_dir" && as_dir=.
4598     for ac_exec_ext in '' $ac_executable_extensions; do
4599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4600     ac_cv_prog_ac_ct_CC="gcc"
4601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4602     break 2
4603   fi
4604 done
4605   done
4606 IFS=$as_save_IFS
4607
4608 fi
4609 fi
4610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4611 if test -n "$ac_ct_CC"; then
4612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4613 $as_echo "$ac_ct_CC" >&6; }
4614 else
4615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616 $as_echo "no" >&6; }
4617 fi
4618
4619   if test "x$ac_ct_CC" = x; then
4620     CC=""
4621   else
4622     case $cross_compiling:$ac_tool_warned in
4623 yes:)
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4626 ac_tool_warned=yes ;;
4627 esac
4628     CC=$ac_ct_CC
4629   fi
4630 else
4631   CC="$ac_cv_prog_CC"
4632 fi
4633
4634 if test -z "$CC"; then
4635           if test -n "$ac_tool_prefix"; then
4636     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4637 set dummy ${ac_tool_prefix}cc; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_prog_CC+:} false; then :
4641   $as_echo_n "(cached) " >&6
4642 else
4643   if test -n "$CC"; then
4644   ac_cv_prog_CC="$CC" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649   IFS=$as_save_IFS
4650   test -z "$as_dir" && as_dir=.
4651     for ac_exec_ext in '' $ac_executable_extensions; do
4652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4653     ac_cv_prog_CC="${ac_tool_prefix}cc"
4654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655     break 2
4656   fi
4657 done
4658   done
4659 IFS=$as_save_IFS
4660
4661 fi
4662 fi
4663 CC=$ac_cv_prog_CC
4664 if test -n "$CC"; then
4665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4666 $as_echo "$CC" >&6; }
4667 else
4668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4670 fi
4671
4672
4673   fi
4674 fi
4675 if test -z "$CC"; then
4676   # Extract the first word of "cc", so it can be a program name with args.
4677 set dummy cc; ac_word=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if ${ac_cv_prog_CC+:} false; then :
4681   $as_echo_n "(cached) " >&6
4682 else
4683   if test -n "$CC"; then
4684   ac_cv_prog_CC="$CC" # Let the user override the test.
4685 else
4686   ac_prog_rejected=no
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4689 do
4690   IFS=$as_save_IFS
4691   test -z "$as_dir" && as_dir=.
4692     for ac_exec_ext in '' $ac_executable_extensions; do
4693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4694     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4695        ac_prog_rejected=yes
4696        continue
4697      fi
4698     ac_cv_prog_CC="cc"
4699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700     break 2
4701   fi
4702 done
4703   done
4704 IFS=$as_save_IFS
4705
4706 if test $ac_prog_rejected = yes; then
4707   # We found a bogon in the path, so make sure we never use it.
4708   set dummy $ac_cv_prog_CC
4709   shift
4710   if test $# != 0; then
4711     # We chose a different compiler from the bogus one.
4712     # However, it has the same basename, so the bogon will be chosen
4713     # first if we set CC to just the basename; use the full file name.
4714     shift
4715     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4716   fi
4717 fi
4718 fi
4719 fi
4720 CC=$ac_cv_prog_CC
4721 if test -n "$CC"; then
4722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4723 $as_echo "$CC" >&6; }
4724 else
4725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 $as_echo "no" >&6; }
4727 fi
4728
4729
4730 fi
4731 if test -z "$CC"; then
4732   if test -n "$ac_tool_prefix"; then
4733   for ac_prog in cl.exe
4734   do
4735     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if ${ac_cv_prog_CC+:} false; then :
4740   $as_echo_n "(cached) " >&6
4741 else
4742   if test -n "$CC"; then
4743   ac_cv_prog_CC="$CC" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748   IFS=$as_save_IFS
4749   test -z "$as_dir" && as_dir=.
4750     for ac_exec_ext in '' $ac_executable_extensions; do
4751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754     break 2
4755   fi
4756 done
4757   done
4758 IFS=$as_save_IFS
4759
4760 fi
4761 fi
4762 CC=$ac_cv_prog_CC
4763 if test -n "$CC"; then
4764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4765 $as_echo "$CC" >&6; }
4766 else
4767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4769 fi
4770
4771
4772     test -n "$CC" && break
4773   done
4774 fi
4775 if test -z "$CC"; then
4776   ac_ct_CC=$CC
4777   for ac_prog in cl.exe
4778 do
4779   # Extract the first word of "$ac_prog", so it can be a program name with args.
4780 set dummy $ac_prog; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4784   $as_echo_n "(cached) " >&6
4785 else
4786   if test -n "$ac_ct_CC"; then
4787   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4788 else
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792   IFS=$as_save_IFS
4793   test -z "$as_dir" && as_dir=.
4794     for ac_exec_ext in '' $ac_executable_extensions; do
4795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796     ac_cv_prog_ac_ct_CC="$ac_prog"
4797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798     break 2
4799   fi
4800 done
4801   done
4802 IFS=$as_save_IFS
4803
4804 fi
4805 fi
4806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4807 if test -n "$ac_ct_CC"; then
4808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4809 $as_echo "$ac_ct_CC" >&6; }
4810 else
4811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4813 fi
4814
4815
4816   test -n "$ac_ct_CC" && break
4817 done
4818
4819   if test "x$ac_ct_CC" = x; then
4820     CC=""
4821   else
4822     case $cross_compiling:$ac_tool_warned in
4823 yes:)
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826 ac_tool_warned=yes ;;
4827 esac
4828     CC=$ac_ct_CC
4829   fi
4830 fi
4831
4832 fi
4833
4834
4835 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4837 as_fn_error $? "no acceptable C compiler found in \$PATH
4838 See \`config.log' for more details" "$LINENO" 5; }
4839
4840 # Provide some information about the compiler.
4841 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4842 set X $ac_compile
4843 ac_compiler=$2
4844 for ac_option in --version -v -V -qversion; do
4845   { { ac_try="$ac_compiler $ac_option >&5"
4846 case "(($ac_try" in
4847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848   *) ac_try_echo=$ac_try;;
4849 esac
4850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4851 $as_echo "$ac_try_echo"; } >&5
4852   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4853   ac_status=$?
4854   if test -s conftest.err; then
4855     sed '10a\
4856 ... rest of stderr output deleted ...
4857          10q' conftest.err >conftest.er1
4858     cat conftest.er1 >&5
4859   fi
4860   rm -f conftest.er1 conftest.err
4861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4862   test $ac_status = 0; }
4863 done
4864
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h.  */
4867
4868 int
4869 main ()
4870 {
4871
4872   ;
4873   return 0;
4874 }
4875 _ACEOF
4876 ac_clean_files_save=$ac_clean_files
4877 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4878 # Try to create an executable without -o first, disregard a.out.
4879 # It will help us diagnose broken compilers, and finding out an intuition
4880 # of exeext.
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4882 $as_echo_n "checking whether the C compiler works... " >&6; }
4883 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4884
4885 # The possible output files:
4886 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4887
4888 ac_rmfiles=
4889 for ac_file in $ac_files
4890 do
4891   case $ac_file in
4892     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4893     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4894   esac
4895 done
4896 rm -f $ac_rmfiles
4897
4898 if { { ac_try="$ac_link_default"
4899 case "(($ac_try" in
4900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901   *) ac_try_echo=$ac_try;;
4902 esac
4903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4904 $as_echo "$ac_try_echo"; } >&5
4905   (eval "$ac_link_default") 2>&5
4906   ac_status=$?
4907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4908   test $ac_status = 0; }; then :
4909   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4910 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4911 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4912 # so that the user can short-circuit this test for compilers unknown to
4913 # Autoconf.
4914 for ac_file in $ac_files ''
4915 do
4916   test -f "$ac_file" || continue
4917   case $ac_file in
4918     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4919         ;;
4920     [ab].out )
4921         # We found the default executable, but exeext='' is most
4922         # certainly right.
4923         break;;
4924     *.* )
4925         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4926         then :; else
4927            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4928         fi
4929         # We set ac_cv_exeext here because the later test for it is not
4930         # safe: cross compilers may not add the suffix if given an `-o'
4931         # argument, so we may need to know it at that point already.
4932         # Even if this section looks crufty: it has the advantage of
4933         # actually working.
4934         break;;
4935     * )
4936         break;;
4937   esac
4938 done
4939 test "$ac_cv_exeext" = no && ac_cv_exeext=
4940
4941 else
4942   ac_file=''
4943 fi
4944 if test -z "$ac_file"; then :
4945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 $as_echo "no" >&6; }
4947 $as_echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4949
4950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4952 as_fn_error 77 "C compiler cannot create executables
4953 See \`config.log' for more details" "$LINENO" 5; }
4954 else
4955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4956 $as_echo "yes" >&6; }
4957 fi
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4959 $as_echo_n "checking for C compiler default output file name... " >&6; }
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4961 $as_echo "$ac_file" >&6; }
4962 ac_exeext=$ac_cv_exeext
4963
4964 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4965 ac_clean_files=$ac_clean_files_save
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4967 $as_echo_n "checking for suffix of executables... " >&6; }
4968 if { { ac_try="$ac_link"
4969 case "(($ac_try" in
4970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971   *) ac_try_echo=$ac_try;;
4972 esac
4973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4974 $as_echo "$ac_try_echo"; } >&5
4975   (eval "$ac_link") 2>&5
4976   ac_status=$?
4977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4978   test $ac_status = 0; }; then :
4979   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4980 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4981 # work properly (i.e., refer to `conftest.exe'), while it won't with
4982 # `rm'.
4983 for ac_file in conftest.exe conftest conftest.*; do
4984   test -f "$ac_file" || continue
4985   case $ac_file in
4986     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4987     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4988           break;;
4989     * ) break;;
4990   esac
4991 done
4992 else
4993   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4995 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4996 See \`config.log' for more details" "$LINENO" 5; }
4997 fi
4998 rm -f conftest conftest$ac_cv_exeext
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5000 $as_echo "$ac_cv_exeext" >&6; }
5001
5002 rm -f conftest.$ac_ext
5003 EXEEXT=$ac_cv_exeext
5004 ac_exeext=$EXEEXT
5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h.  */
5007 #include <stdio.h>
5008 int
5009 main ()
5010 {
5011 FILE *f = fopen ("conftest.out", "w");
5012  return ferror (f) || fclose (f) != 0;
5013
5014   ;
5015   return 0;
5016 }
5017 _ACEOF
5018 ac_clean_files="$ac_clean_files conftest.out"
5019 # Check that the compiler produces executables we can run.  If not, either
5020 # the compiler is broken, or we cross compile.
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5022 $as_echo_n "checking whether we are cross compiling... " >&6; }
5023 if test "$cross_compiling" != yes; then
5024   { { ac_try="$ac_link"
5025 case "(($ac_try" in
5026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027   *) ac_try_echo=$ac_try;;
5028 esac
5029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5030 $as_echo "$ac_try_echo"; } >&5
5031   (eval "$ac_link") 2>&5
5032   ac_status=$?
5033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5034   test $ac_status = 0; }
5035   if { ac_try='./conftest$ac_cv_exeext'
5036   { { case "(($ac_try" in
5037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038   *) ac_try_echo=$ac_try;;
5039 esac
5040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5041 $as_echo "$ac_try_echo"; } >&5
5042   (eval "$ac_try") 2>&5
5043   ac_status=$?
5044   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5045   test $ac_status = 0; }; }; then
5046     cross_compiling=no
5047   else
5048     if test "$cross_compiling" = maybe; then
5049         cross_compiling=yes
5050     else
5051         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5053 as_fn_error $? "cannot run C compiled programs.
5054 If you meant to cross compile, use \`--host'.
5055 See \`config.log' for more details" "$LINENO" 5; }
5056     fi
5057   fi
5058 fi
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5060 $as_echo "$cross_compiling" >&6; }
5061
5062 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5063 ac_clean_files=$ac_clean_files_save
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5065 $as_echo_n "checking for suffix of object files... " >&6; }
5066 if ${ac_cv_objext+:} false; then :
5067   $as_echo_n "(cached) " >&6
5068 else
5069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h.  */
5071
5072 int
5073 main ()
5074 {
5075
5076   ;
5077   return 0;
5078 }
5079 _ACEOF
5080 rm -f conftest.o conftest.obj
5081 if { { ac_try="$ac_compile"
5082 case "(($ac_try" in
5083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084   *) ac_try_echo=$ac_try;;
5085 esac
5086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5087 $as_echo "$ac_try_echo"; } >&5
5088   (eval "$ac_compile") 2>&5
5089   ac_status=$?
5090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5091   test $ac_status = 0; }; then :
5092   for ac_file in conftest.o conftest.obj conftest.*; do
5093   test -f "$ac_file" || continue;
5094   case $ac_file in
5095     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5096     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5097        break;;
5098   esac
5099 done
5100 else
5101   $as_echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5103
5104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5106 as_fn_error $? "cannot compute suffix of object files: cannot compile
5107 See \`config.log' for more details" "$LINENO" 5; }
5108 fi
5109 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5110 fi
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5112 $as_echo "$ac_cv_objext" >&6; }
5113 OBJEXT=$ac_cv_objext
5114 ac_objext=$OBJEXT
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5116 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5117 if ${ac_cv_c_compiler_gnu+:} false; then :
5118   $as_echo_n "(cached) " >&6
5119 else
5120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h.  */
5122
5123 int
5124 main ()
5125 {
5126 #ifndef __GNUC__
5127        choke me
5128 #endif
5129
5130   ;
5131   return 0;
5132 }
5133 _ACEOF
5134 if ac_fn_c_try_compile "$LINENO"; then :
5135   ac_compiler_gnu=yes
5136 else
5137   ac_compiler_gnu=no
5138 fi
5139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5141
5142 fi
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5144 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5145 if test $ac_compiler_gnu = yes; then
5146   GCC=yes
5147 else
5148   GCC=
5149 fi
5150 ac_test_CFLAGS=${CFLAGS+set}
5151 ac_save_CFLAGS=$CFLAGS
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5153 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5154 if ${ac_cv_prog_cc_g+:} false; then :
5155   $as_echo_n "(cached) " >&6
5156 else
5157   ac_save_c_werror_flag=$ac_c_werror_flag
5158    ac_c_werror_flag=yes
5159    ac_cv_prog_cc_g=no
5160    CFLAGS="-g"
5161    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h.  */
5163
5164 int
5165 main ()
5166 {
5167
5168   ;
5169   return 0;
5170 }
5171 _ACEOF
5172 if ac_fn_c_try_compile "$LINENO"; then :
5173   ac_cv_prog_cc_g=yes
5174 else
5175   CFLAGS=""
5176       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h.  */
5178
5179 int
5180 main ()
5181 {
5182
5183   ;
5184   return 0;
5185 }
5186 _ACEOF
5187 if ac_fn_c_try_compile "$LINENO"; then :
5188
5189 else
5190   ac_c_werror_flag=$ac_save_c_werror_flag
5191          CFLAGS="-g"
5192          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h.  */
5194
5195 int
5196 main ()
5197 {
5198
5199   ;
5200   return 0;
5201 }
5202 _ACEOF
5203 if ac_fn_c_try_compile "$LINENO"; then :
5204   ac_cv_prog_cc_g=yes
5205 fi
5206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207 fi
5208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209 fi
5210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211    ac_c_werror_flag=$ac_save_c_werror_flag
5212 fi
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5214 $as_echo "$ac_cv_prog_cc_g" >&6; }
5215 if test "$ac_test_CFLAGS" = set; then
5216   CFLAGS=$ac_save_CFLAGS
5217 elif test $ac_cv_prog_cc_g = yes; then
5218   if test "$GCC" = yes; then
5219     CFLAGS="-g -O2"
5220   else
5221     CFLAGS="-g"
5222   fi
5223 else
5224   if test "$GCC" = yes; then
5225     CFLAGS="-O2"
5226   else
5227     CFLAGS=
5228   fi
5229 fi
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5231 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5232 if ${ac_cv_prog_cc_c89+:} false; then :
5233   $as_echo_n "(cached) " >&6
5234 else
5235   ac_cv_prog_cc_c89=no
5236 ac_save_CC=$CC
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h.  */
5239 #include <stdarg.h>
5240 #include <stdio.h>
5241 #include <sys/types.h>
5242 #include <sys/stat.h>
5243 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5244 struct buf { int x; };
5245 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5246 static char *e (p, i)
5247      char **p;
5248      int i;
5249 {
5250   return p[i];
5251 }
5252 static char *f (char * (*g) (char **, int), char **p, ...)
5253 {
5254   char *s;
5255   va_list v;
5256   va_start (v,p);
5257   s = g (p, va_arg (v,int));
5258   va_end (v);
5259   return s;
5260 }
5261
5262 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5263    function prototypes and stuff, but not '\xHH' hex character constants.
5264    These don't provoke an error unfortunately, instead are silently treated
5265    as 'x'.  The following induces an error, until -std is added to get
5266    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5267    array size at least.  It's necessary to write '\x00'==0 to get something
5268    that's true only with -std.  */
5269 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5270
5271 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5272    inside strings and character constants.  */
5273 #define FOO(x) 'x'
5274 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5275
5276 int test (int i, double x);
5277 struct s1 {int (*f) (int a);};
5278 struct s2 {int (*f) (double a);};
5279 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5280 int argc;
5281 char **argv;
5282 int
5283 main ()
5284 {
5285 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5286   ;
5287   return 0;
5288 }
5289 _ACEOF
5290 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5291         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5292 do
5293   CC="$ac_save_CC $ac_arg"
5294   if ac_fn_c_try_compile "$LINENO"; then :
5295   ac_cv_prog_cc_c89=$ac_arg
5296 fi
5297 rm -f core conftest.err conftest.$ac_objext
5298   test "x$ac_cv_prog_cc_c89" != "xno" && break
5299 done
5300 rm -f conftest.$ac_ext
5301 CC=$ac_save_CC
5302
5303 fi
5304 # AC_CACHE_VAL
5305 case "x$ac_cv_prog_cc_c89" in
5306   x)
5307     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5308 $as_echo "none needed" >&6; } ;;
5309   xno)
5310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5311 $as_echo "unsupported" >&6; } ;;
5312   *)
5313     CC="$CC $ac_cv_prog_cc_c89"
5314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5315 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5316 esac
5317 if test "x$ac_cv_prog_cc_c89" != xno; then :
5318
5319 fi
5320
5321 ac_ext=c
5322 ac_cpp='$CPP $CPPFLAGS'
5323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5326 DEPDIR="${am__leading_dot}deps"
5327
5328 ac_config_commands="$ac_config_commands depfiles"
5329
5330
5331 am_make=${MAKE-make}
5332 cat > confinc << 'END'
5333 am__doit:
5334         @echo this is the am__doit target
5335 .PHONY: am__doit
5336 END
5337 # If we don't find an include directive, just comment out the code.
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5339 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5340 am__include="#"
5341 am__quote=
5342 _am_result=none
5343 # First try GNU make style include.
5344 echo "include confinc" > confmf
5345 # Ignore all kinds of additional output from `make'.
5346 case `$am_make -s -f confmf 2> /dev/null` in #(
5347 *the\ am__doit\ target*)
5348   am__include=include
5349   am__quote=
5350   _am_result=GNU
5351   ;;
5352 esac
5353 # Now try BSD make style include.
5354 if test "$am__include" = "#"; then
5355    echo '.include "confinc"' > confmf
5356    case `$am_make -s -f confmf 2> /dev/null` in #(
5357    *the\ am__doit\ target*)
5358      am__include=.include
5359      am__quote="\""
5360      _am_result=BSD
5361      ;;
5362    esac
5363 fi
5364
5365
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5367 $as_echo "$_am_result" >&6; }
5368 rm -f confinc confmf
5369
5370 # Check whether --enable-dependency-tracking was given.
5371 if test "${enable_dependency_tracking+set}" = set; then :
5372   enableval=$enable_dependency_tracking;
5373 fi
5374
5375 if test "x$enable_dependency_tracking" != xno; then
5376   am_depcomp="$ac_aux_dir/depcomp"
5377   AMDEPBACKSLASH='\'
5378   am__nodep='_no'
5379 fi
5380  if test "x$enable_dependency_tracking" != xno; then
5381   AMDEP_TRUE=
5382   AMDEP_FALSE='#'
5383 else
5384   AMDEP_TRUE='#'
5385   AMDEP_FALSE=
5386 fi
5387
5388
5389
5390 depcc="$CC"   am_compiler_list=
5391
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5393 $as_echo_n "checking dependency style of $depcc... " >&6; }
5394 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5395   $as_echo_n "(cached) " >&6
5396 else
5397   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5398   # We make a subdir and do the tests there.  Otherwise we can end up
5399   # making bogus files that we don't know about and never remove.  For
5400   # instance it was reported that on HP-UX the gcc test will end up
5401   # making a dummy file named `D' -- because `-MD' means `put the output
5402   # in D'.
5403   rm -rf conftest.dir
5404   mkdir conftest.dir
5405   # Copy depcomp to subdir because otherwise we won't find it if we're
5406   # using a relative directory.
5407   cp "$am_depcomp" conftest.dir
5408   cd conftest.dir
5409   # We will build objects and dependencies in a subdirectory because
5410   # it helps to detect inapplicable dependency modes.  For instance
5411   # both Tru64's cc and ICC support -MD to output dependencies as a
5412   # side effect of compilation, but ICC will put the dependencies in
5413   # the current directory while Tru64 will put them in the object
5414   # directory.
5415   mkdir sub
5416
5417   am_cv_CC_dependencies_compiler_type=none
5418   if test "$am_compiler_list" = ""; then
5419      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5420   fi
5421   am__universal=false
5422   case " $depcc " in #(
5423      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5424      esac
5425
5426   for depmode in $am_compiler_list; do
5427     # Setup a source with many dependencies, because some compilers
5428     # like to wrap large dependency lists on column 80 (with \), and
5429     # we should not choose a depcomp mode which is confused by this.
5430     #
5431     # We need to recreate these files for each test, as the compiler may
5432     # overwrite some of them when testing with obscure command lines.
5433     # This happens at least with the AIX C compiler.
5434     : > sub/conftest.c
5435     for i in 1 2 3 4 5 6; do
5436       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5437       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5438       # Solaris 8's {/usr,}/bin/sh.
5439       touch sub/conftst$i.h
5440     done
5441     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5442
5443     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5444     # mode.  It turns out that the SunPro C++ compiler does not properly
5445     # handle `-M -o', and we need to detect this.  Also, some Intel
5446     # versions had trouble with output in subdirs
5447     am__obj=sub/conftest.${OBJEXT-o}
5448     am__minus_obj="-o $am__obj"
5449     case $depmode in
5450     gcc)
5451       # This depmode causes a compiler race in universal mode.
5452       test "$am__universal" = false || continue
5453       ;;
5454     nosideeffect)
5455       # after this tag, mechanisms are not by side-effect, so they'll
5456       # only be used when explicitly requested
5457       if test "x$enable_dependency_tracking" = xyes; then
5458         continue
5459       else
5460         break
5461       fi
5462       ;;
5463     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5464       # This compiler won't grok `-c -o', but also, the minuso test has
5465       # not run yet.  These depmodes are late enough in the game, and
5466       # so weak that their functioning should not be impacted.
5467       am__obj=conftest.${OBJEXT-o}
5468       am__minus_obj=
5469       ;;
5470     none) break ;;
5471     esac
5472     if depmode=$depmode \
5473        source=sub/conftest.c object=$am__obj \
5474        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5475        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5476          >/dev/null 2>conftest.err &&
5477        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5478        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5479        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5480        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5481       # icc doesn't choke on unknown options, it will just issue warnings
5482       # or remarks (even with -Werror).  So we grep stderr for any message
5483       # that says an option was ignored or not supported.
5484       # When given -MP, icc 7.0 and 7.1 complain thusly:
5485       #   icc: Command line warning: ignoring option '-M'; no argument required
5486       # The diagnosis changed in icc 8.0:
5487       #   icc: Command line remark: option '-MP' not supported
5488       if (grep 'ignoring option' conftest.err ||
5489           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5490         am_cv_CC_dependencies_compiler_type=$depmode
5491         break
5492       fi
5493     fi
5494   done
5495
5496   cd ..
5497   rm -rf conftest.dir
5498 else
5499   am_cv_CC_dependencies_compiler_type=none
5500 fi
5501
5502 fi
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5504 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5505 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5506
5507  if
5508   test "x$enable_dependency_tracking" != xno \
5509   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5510   am__fastdepCC_TRUE=
5511   am__fastdepCC_FALSE='#'
5512 else
5513   am__fastdepCC_TRUE='#'
5514   am__fastdepCC_FALSE=
5515 fi
5516
5517
5518 if test -n "$ac_tool_prefix"; then
5519   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5520 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_prog_RANLIB+:} false; then :
5524   $as_echo_n "(cached) " >&6
5525 else
5526   if test -n "$RANLIB"; then
5527   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532   IFS=$as_save_IFS
5533   test -z "$as_dir" && as_dir=.
5534     for ac_exec_ext in '' $ac_executable_extensions; do
5535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538     break 2
5539   fi
5540 done
5541   done
5542 IFS=$as_save_IFS
5543
5544 fi
5545 fi
5546 RANLIB=$ac_cv_prog_RANLIB
5547 if test -n "$RANLIB"; then
5548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5549 $as_echo "$RANLIB" >&6; }
5550 else
5551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5553 fi
5554
5555
5556 fi
5557 if test -z "$ac_cv_prog_RANLIB"; then
5558   ac_ct_RANLIB=$RANLIB
5559   # Extract the first word of "ranlib", so it can be a program name with args.
5560 set dummy ranlib; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5564   $as_echo_n "(cached) " >&6
5565 else
5566   if test -n "$ac_ct_RANLIB"; then
5567   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5571 do
5572   IFS=$as_save_IFS
5573   test -z "$as_dir" && as_dir=.
5574     for ac_exec_ext in '' $ac_executable_extensions; do
5575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576     ac_cv_prog_ac_ct_RANLIB="ranlib"
5577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578     break 2
5579   fi
5580 done
5581   done
5582 IFS=$as_save_IFS
5583
5584 fi
5585 fi
5586 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5587 if test -n "$ac_ct_RANLIB"; then
5588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5589 $as_echo "$ac_ct_RANLIB" >&6; }
5590 else
5591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592 $as_echo "no" >&6; }
5593 fi
5594
5595   if test "x$ac_ct_RANLIB" = x; then
5596     RANLIB=":"
5597   else
5598     case $cross_compiling:$ac_tool_warned in
5599 yes:)
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5602 ac_tool_warned=yes ;;
5603 esac
5604     RANLIB=$ac_ct_RANLIB
5605   fi
5606 else
5607   RANLIB="$ac_cv_prog_RANLIB"
5608 fi
5609
5610 if test "x$CC" != xcc; then
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5612 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5613 else
5614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5615 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5616 fi
5617 set dummy $CC; ac_cc=`$as_echo "$2" |
5618                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5619 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5620   $as_echo_n "(cached) " >&6
5621 else
5622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h.  */
5624
5625 int
5626 main ()
5627 {
5628
5629   ;
5630   return 0;
5631 }
5632 _ACEOF
5633 # Make sure it works both with $CC and with simple cc.
5634 # We do the test twice because some compilers refuse to overwrite an
5635 # existing .o file with -o, though they will create one.
5636 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5637 rm -f conftest2.*
5638 if { { case "(($ac_try" in
5639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5640   *) ac_try_echo=$ac_try;;
5641 esac
5642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5643 $as_echo "$ac_try_echo"; } >&5
5644   (eval "$ac_try") 2>&5
5645   ac_status=$?
5646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5647   test $ac_status = 0; } &&
5648    test -f conftest2.$ac_objext && { { case "(($ac_try" in
5649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650   *) ac_try_echo=$ac_try;;
5651 esac
5652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5653 $as_echo "$ac_try_echo"; } >&5
5654   (eval "$ac_try") 2>&5
5655   ac_status=$?
5656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5657   test $ac_status = 0; };
5658 then
5659   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5660   if test "x$CC" != xcc; then
5661     # Test first that cc exists at all.
5662     if { ac_try='cc -c conftest.$ac_ext >&5'
5663   { { case "(($ac_try" in
5664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665   *) ac_try_echo=$ac_try;;
5666 esac
5667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5668 $as_echo "$ac_try_echo"; } >&5
5669   (eval "$ac_try") 2>&5
5670   ac_status=$?
5671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5672   test $ac_status = 0; }; }; then
5673       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5674       rm -f conftest2.*
5675       if { { case "(($ac_try" in
5676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677   *) ac_try_echo=$ac_try;;
5678 esac
5679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5680 $as_echo "$ac_try_echo"; } >&5
5681   (eval "$ac_try") 2>&5
5682   ac_status=$?
5683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5684   test $ac_status = 0; } &&
5685          test -f conftest2.$ac_objext && { { case "(($ac_try" in
5686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687   *) ac_try_echo=$ac_try;;
5688 esac
5689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5690 $as_echo "$ac_try_echo"; } >&5
5691   (eval "$ac_try") 2>&5
5692   ac_status=$?
5693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5694   test $ac_status = 0; };
5695       then
5696         # cc works too.
5697         :
5698       else
5699         # cc exists but doesn't like -o.
5700         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5701       fi
5702     fi
5703   fi
5704 else
5705   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5706 fi
5707 rm -f core conftest*
5708
5709 fi
5710 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5712 $as_echo "yes" >&6; }
5713 else
5714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715 $as_echo "no" >&6; }
5716
5717 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5718
5719 fi
5720
5721 # FIXME: we rely on the cache variable name because
5722 # there is no other way.
5723 set dummy $CC
5724 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5725 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5726 if test "$am_t" != yes; then
5727    # Losing compiler, so override with the script.
5728    # FIXME: It is wrong to rewrite CC.
5729    # But if we don't then we get into trouble of one sort or another.
5730    # A longer-term fix would be to have automake use am__CC in this case,
5731    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5732    CC="$am_aux_dir/compile $CC"
5733 fi
5734
5735
5736
5737 ac_ext=c
5738 ac_cpp='$CPP $CPPFLAGS'
5739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5743 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5744 # On Suns, sometimes $CPP names a directory.
5745 if test -n "$CPP" && test -d "$CPP"; then
5746   CPP=
5747 fi
5748 if test -z "$CPP"; then
5749   if ${ac_cv_prog_CPP+:} false; then :
5750   $as_echo_n "(cached) " >&6
5751 else
5752       # Double quotes because CPP needs to be expanded
5753     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5754     do
5755       ac_preproc_ok=false
5756 for ac_c_preproc_warn_flag in '' yes
5757 do
5758   # Use a header file that comes with gcc, so configuring glibc
5759   # with a fresh cross-compiler works.
5760   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5761   # <limits.h> exists even on freestanding compilers.
5762   # On the NeXT, cc -E runs the code through the compiler's parser,
5763   # not just through cpp. "Syntax error" is here to catch this case.
5764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h.  */
5766 #ifdef __STDC__
5767 # include <limits.h>
5768 #else
5769 # include <assert.h>
5770 #endif
5771                      Syntax error
5772 _ACEOF
5773 if ac_fn_c_try_cpp "$LINENO"; then :
5774
5775 else
5776   # Broken: fails on valid input.
5777 continue
5778 fi
5779 rm -f conftest.err conftest.i conftest.$ac_ext
5780
5781   # OK, works on sane cases.  Now check whether nonexistent headers
5782   # can be detected and how.
5783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h.  */
5785 #include <ac_nonexistent.h>
5786 _ACEOF
5787 if ac_fn_c_try_cpp "$LINENO"; then :
5788   # Broken: success on invalid input.
5789 continue
5790 else
5791   # Passes both tests.
5792 ac_preproc_ok=:
5793 break
5794 fi
5795 rm -f conftest.err conftest.i conftest.$ac_ext
5796
5797 done
5798 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5799 rm -f conftest.i conftest.err conftest.$ac_ext
5800 if $ac_preproc_ok; then :
5801   break
5802 fi
5803
5804     done
5805     ac_cv_prog_CPP=$CPP
5806
5807 fi
5808   CPP=$ac_cv_prog_CPP
5809 else
5810   ac_cv_prog_CPP=$CPP
5811 fi
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5813 $as_echo "$CPP" >&6; }
5814 ac_preproc_ok=false
5815 for ac_c_preproc_warn_flag in '' yes
5816 do
5817   # Use a header file that comes with gcc, so configuring glibc
5818   # with a fresh cross-compiler works.
5819   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5820   # <limits.h> exists even on freestanding compilers.
5821   # On the NeXT, cc -E runs the code through the compiler's parser,
5822   # not just through cpp. "Syntax error" is here to catch this case.
5823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h.  */
5825 #ifdef __STDC__
5826 # include <limits.h>
5827 #else
5828 # include <assert.h>
5829 #endif
5830                      Syntax error
5831 _ACEOF
5832 if ac_fn_c_try_cpp "$LINENO"; then :
5833
5834 else
5835   # Broken: fails on valid input.
5836 continue
5837 fi
5838 rm -f conftest.err conftest.i conftest.$ac_ext
5839
5840   # OK, works on sane cases.  Now check whether nonexistent headers
5841   # can be detected and how.
5842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h.  */
5844 #include <ac_nonexistent.h>
5845 _ACEOF
5846 if ac_fn_c_try_cpp "$LINENO"; then :
5847   # Broken: success on invalid input.
5848 continue
5849 else
5850   # Passes both tests.
5851 ac_preproc_ok=:
5852 break
5853 fi
5854 rm -f conftest.err conftest.i conftest.$ac_ext
5855
5856 done
5857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5858 rm -f conftest.i conftest.err conftest.$ac_ext
5859 if $ac_preproc_ok; then :
5860
5861 else
5862   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5864 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5865 See \`config.log' for more details" "$LINENO" 5; }
5866 fi
5867
5868 ac_ext=c
5869 ac_cpp='$CPP $CPPFLAGS'
5870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5873
5874
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5876 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5877 if ${ac_cv_path_GREP+:} false; then :
5878   $as_echo_n "(cached) " >&6
5879 else
5880   if test -z "$GREP"; then
5881   ac_path_GREP_found=false
5882   # Loop through the user's path and test for each of PROGNAME-LIST
5883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5885 do
5886   IFS=$as_save_IFS
5887   test -z "$as_dir" && as_dir=.
5888     for ac_prog in grep ggrep; do
5889     for ac_exec_ext in '' $ac_executable_extensions; do
5890       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5891       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5892 # Check for GNU ac_path_GREP and select it if it is found.
5893   # Check for GNU $ac_path_GREP
5894 case `"$ac_path_GREP" --version 2>&1` in
5895 *GNU*)
5896   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5897 *)
5898   ac_count=0
5899   $as_echo_n 0123456789 >"conftest.in"
5900   while :
5901   do
5902     cat "conftest.in" "conftest.in" >"conftest.tmp"
5903     mv "conftest.tmp" "conftest.in"
5904     cp "conftest.in" "conftest.nl"
5905     $as_echo 'GREP' >> "conftest.nl"
5906     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5907     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5908     as_fn_arith $ac_count + 1 && ac_count=$as_val
5909     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5910       # Best one so far, save it but keep looking for a better one
5911       ac_cv_path_GREP="$ac_path_GREP"
5912       ac_path_GREP_max=$ac_count
5913     fi
5914     # 10*(2^10) chars as input seems more than enough
5915     test $ac_count -gt 10 && break
5916   done
5917   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5918 esac
5919
5920       $ac_path_GREP_found && break 3
5921     done
5922   done
5923   done
5924 IFS=$as_save_IFS
5925   if test -z "$ac_cv_path_GREP"; then
5926     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5927   fi
5928 else
5929   ac_cv_path_GREP=$GREP
5930 fi
5931
5932 fi
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5934 $as_echo "$ac_cv_path_GREP" >&6; }
5935  GREP="$ac_cv_path_GREP"
5936
5937
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5939 $as_echo_n "checking for egrep... " >&6; }
5940 if ${ac_cv_path_EGREP+:} false; then :
5941   $as_echo_n "(cached) " >&6
5942 else
5943   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5944    then ac_cv_path_EGREP="$GREP -E"
5945    else
5946      if test -z "$EGREP"; then
5947   ac_path_EGREP_found=false
5948   # Loop through the user's path and test for each of PROGNAME-LIST
5949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5951 do
5952   IFS=$as_save_IFS
5953   test -z "$as_dir" && as_dir=.
5954     for ac_prog in egrep; do
5955     for ac_exec_ext in '' $ac_executable_extensions; do
5956       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5957       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5958 # Check for GNU ac_path_EGREP and select it if it is found.
5959   # Check for GNU $ac_path_EGREP
5960 case `"$ac_path_EGREP" --version 2>&1` in
5961 *GNU*)
5962   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5963 *)
5964   ac_count=0
5965   $as_echo_n 0123456789 >"conftest.in"
5966   while :
5967   do
5968     cat "conftest.in" "conftest.in" >"conftest.tmp"
5969     mv "conftest.tmp" "conftest.in"
5970     cp "conftest.in" "conftest.nl"
5971     $as_echo 'EGREP' >> "conftest.nl"
5972     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5973     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5974     as_fn_arith $ac_count + 1 && ac_count=$as_val
5975     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5976       # Best one so far, save it but keep looking for a better one
5977       ac_cv_path_EGREP="$ac_path_EGREP"
5978       ac_path_EGREP_max=$ac_count
5979     fi
5980     # 10*(2^10) chars as input seems more than enough
5981     test $ac_count -gt 10 && break
5982   done
5983   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5984 esac
5985
5986       $ac_path_EGREP_found && break 3
5987     done
5988   done
5989   done
5990 IFS=$as_save_IFS
5991   if test -z "$ac_cv_path_EGREP"; then
5992     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5993   fi
5994 else
5995   ac_cv_path_EGREP=$EGREP
5996 fi
5997
5998    fi
5999 fi
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6001 $as_echo "$ac_cv_path_EGREP" >&6; }
6002  EGREP="$ac_cv_path_EGREP"
6003
6004
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6006 $as_echo_n "checking for ANSI C header files... " >&6; }
6007 if ${ac_cv_header_stdc+:} false; then :
6008   $as_echo_n "(cached) " >&6
6009 else
6010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h.  */
6012 #include <stdlib.h>
6013 #include <stdarg.h>
6014 #include <string.h>
6015 #include <float.h>
6016
6017 int
6018 main ()
6019 {
6020
6021   ;
6022   return 0;
6023 }
6024 _ACEOF
6025 if ac_fn_c_try_compile "$LINENO"; then :
6026   ac_cv_header_stdc=yes
6027 else
6028   ac_cv_header_stdc=no
6029 fi
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031
6032 if test $ac_cv_header_stdc = yes; then
6033   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h.  */
6036 #include <string.h>
6037
6038 _ACEOF
6039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6040   $EGREP "memchr" >/dev/null 2>&1; then :
6041
6042 else
6043   ac_cv_header_stdc=no
6044 fi
6045 rm -f conftest*
6046
6047 fi
6048
6049 if test $ac_cv_header_stdc = yes; then
6050   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h.  */
6053 #include <stdlib.h>
6054
6055 _ACEOF
6056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6057   $EGREP "free" >/dev/null 2>&1; then :
6058
6059 else
6060   ac_cv_header_stdc=no
6061 fi
6062 rm -f conftest*
6063
6064 fi
6065
6066 if test $ac_cv_header_stdc = yes; then
6067   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6068   if test "$cross_compiling" = yes; then :
6069   :
6070 else
6071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h.  */
6073 #include <ctype.h>
6074 #include <stdlib.h>
6075 #if ((' ' & 0x0FF) == 0x020)
6076 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6077 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6078 #else
6079 # define ISLOWER(c) \
6080                    (('a' <= (c) && (c) <= 'i') \
6081                      || ('j' <= (c) && (c) <= 'r') \
6082                      || ('s' <= (c) && (c) <= 'z'))
6083 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6084 #endif
6085
6086 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6087 int
6088 main ()
6089 {
6090   int i;
6091   for (i = 0; i < 256; i++)
6092     if (XOR (islower (i), ISLOWER (i))
6093         || toupper (i) != TOUPPER (i))
6094       return 2;
6095   return 0;
6096 }
6097 _ACEOF
6098 if ac_fn_c_try_run "$LINENO"; then :
6099
6100 else
6101   ac_cv_header_stdc=no
6102 fi
6103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6104   conftest.$ac_objext conftest.beam conftest.$ac_ext
6105 fi
6106
6107 fi
6108 fi
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6110 $as_echo "$ac_cv_header_stdc" >&6; }
6111 if test $ac_cv_header_stdc = yes; then
6112
6113 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6114
6115 fi
6116
6117 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6118 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6119                   inttypes.h stdint.h unistd.h
6120 do :
6121   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6122 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6123 "
6124 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6125   cat >>confdefs.h <<_ACEOF
6126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6127 _ACEOF
6128
6129 fi
6130
6131 done
6132
6133
6134
6135
6136
6137   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6138 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6139   MINIX=yes
6140 else
6141   MINIX=
6142 fi
6143
6144
6145   if test "$MINIX" = yes; then
6146
6147 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6148
6149
6150 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6151
6152
6153 $as_echo "#define _MINIX 1" >>confdefs.h
6154
6155   fi
6156
6157         case "$host_os" in
6158     hpux*)
6159
6160 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6161
6162       ;;
6163   esac
6164
6165
6166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6167 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6168 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6169   $as_echo_n "(cached) " >&6
6170 else
6171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h.  */
6173
6174 #         define __EXTENSIONS__ 1
6175           $ac_includes_default
6176 int
6177 main ()
6178 {
6179
6180   ;
6181   return 0;
6182 }
6183 _ACEOF
6184 if ac_fn_c_try_compile "$LINENO"; then :
6185   ac_cv_safe_to_define___extensions__=yes
6186 else
6187   ac_cv_safe_to_define___extensions__=no
6188 fi
6189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6190 fi
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6192 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6193   test $ac_cv_safe_to_define___extensions__ = yes &&
6194     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6195
6196   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6197
6198   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6199
6200   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6201
6202   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6203
6204
6205
6206
6207
6208
6209
6210
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6212 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6213 if ${ac_cv_sys_largefile_source+:} false; then :
6214   $as_echo_n "(cached) " >&6
6215 else
6216   while :; do
6217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h.  */
6219 #include <sys/types.h> /* for off_t */
6220      #include <stdio.h>
6221 int
6222 main ()
6223 {
6224 int (*fp) (FILE *, off_t, int) = fseeko;
6225      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6226   ;
6227   return 0;
6228 }
6229 _ACEOF
6230 if ac_fn_c_try_link "$LINENO"; then :
6231   ac_cv_sys_largefile_source=no; break
6232 fi
6233 rm -f core conftest.err conftest.$ac_objext \
6234     conftest$ac_exeext conftest.$ac_ext
6235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h.  */
6237 #define _LARGEFILE_SOURCE 1
6238 #include <sys/types.h> /* for off_t */
6239      #include <stdio.h>
6240 int
6241 main ()
6242 {
6243 int (*fp) (FILE *, off_t, int) = fseeko;
6244      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6245   ;
6246   return 0;
6247 }
6248 _ACEOF
6249 if ac_fn_c_try_link "$LINENO"; then :
6250   ac_cv_sys_largefile_source=1; break
6251 fi
6252 rm -f core conftest.err conftest.$ac_objext \
6253     conftest$ac_exeext conftest.$ac_ext
6254   ac_cv_sys_largefile_source=unknown
6255   break
6256 done
6257 fi
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
6259 $as_echo "$ac_cv_sys_largefile_source" >&6; }
6260 case $ac_cv_sys_largefile_source in #(
6261   no | unknown) ;;
6262   *)
6263 cat >>confdefs.h <<_ACEOF
6264 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6265 _ACEOF
6266 ;;
6267 esac
6268 rm -rf conftest*
6269
6270 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6271 # in glibc 2.1.3, but that breaks too many other things.
6272 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6273 if test $ac_cv_sys_largefile_source != unknown; then
6274
6275 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
6276
6277 fi
6278
6279
6280
6281
6282
6283
6284   # Check whether --enable-threads was given.
6285 if test "${enable_threads+set}" = set; then :
6286   enableval=$enable_threads; gl_use_threads=$enableval
6287 else
6288   if test -n "$gl_use_threads_default"; then
6289        gl_use_threads="$gl_use_threads_default"
6290      else
6291        case "$host_os" in
6292                                                                osf*) gl_use_threads=no ;;
6293          cygwin*)
6294                case `uname -r` in
6295                  1.[0-5].*) gl_use_threads=no ;;
6296                  *)         gl_use_threads=yes ;;
6297                esac
6298                ;;
6299          *)    gl_use_threads=yes ;;
6300        esac
6301      fi
6302
6303 fi
6304
6305   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6306     # For using <pthread.h>:
6307     case "$host_os" in
6308       osf*)
6309         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6310         # groks <pthread.h>. cc also understands the flag -pthread, but
6311         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6312         # 2. putting a flag into CPPFLAGS that has an effect on the linker
6313         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6314         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6315         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6316         ;;
6317     esac
6318     # Some systems optimize for single-threaded programs by default, and
6319     # need special flags to disable these optimizations. For example, the
6320     # definition of 'errno' in <errno.h>.
6321     case "$host_os" in
6322       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6323       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6324     esac
6325   fi
6326
6327
6328
6329
6330   # Code from module alignof:
6331   # Code from module alloca-opt:
6332   # Code from module arg-nonnull:
6333   # Code from module arpa_inet:
6334   # Code from module base64:
6335   # Code from module btowc:
6336   # Code from module c++defs:
6337   # Code from module c-ctype:
6338   # Code from module configmake:
6339   # Code from module environ:
6340   # Code from module errno:
6341   # Code from module extensions:
6342
6343   # Code from module float:
6344   # Code from module fseeko:
6345
6346   # Code from module fsusage:
6347   # Code from module ftello:
6348
6349   # Code from module ftruncate:
6350   # Code from module full-read:
6351   # Code from module full-write:
6352   # Code from module getaddrinfo:
6353   # Code from module getopt-gnu:
6354   # Code from module getopt-posix:
6355   # Code from module gettext-h:
6356   # Code from module gettimeofday:
6357   # Code from module havelib:
6358   # Code from module hostent:
6359   # Code from module include_next:
6360   # Code from module inet_ntop:
6361   # Code from module inet_pton:
6362   # Code from module langinfo:
6363   # Code from module localcharset:
6364   # Code from module lock:
6365   # Code from module lseek:
6366   # Code from module lstat:
6367   # Code from module malloc-gnu:
6368   # Code from module malloc-posix:
6369   # Code from module mbrtowc:
6370   # Code from module mbsinit:
6371   # Code from module memchr:
6372   # Code from module mkdtemp:
6373   # Code from module multiarch:
6374   # Code from module netdb:
6375   # Code from module netinet_in:
6376   # Code from module nl_langinfo:
6377   # Code from module physmem:
6378   # Code from module regex:
6379   # Code from module safe-read:
6380   # Code from module safe-write:
6381   # Code from module servent:
6382   # Code from module size_max:
6383   # Code from module snprintf:
6384   # Code from module socklen:
6385   # Code from module ssize_t:
6386   # Code from module stat:
6387   # Code from module stdbool:
6388   # Code from module stddef:
6389   # Code from module stdint:
6390   # Code from module stdio:
6391   # Code from module stdlib:
6392   # Code from module streq:
6393   # Code from module string:
6394   # Code from module sys_socket:
6395   # Code from module sys_stat:
6396   # Code from module sys_time:
6397   # Code from module tempname:
6398   # Code from module threadlib:
6399
6400
6401
6402   # Code from module time:
6403   # Code from module unistd:
6404   # Code from module vasnprintf:
6405   # Code from module verify:
6406   # Code from module warn-on-use:
6407   # Code from module wchar:
6408   # Code from module wcrtomb:
6409   # Code from module wctype:
6410   # Code from module write:
6411   # Code from module xsize:
6412
6413
6414
6415
6416
6417           LIBC_FATAL_STDERR_=1
6418   export LIBC_FATAL_STDERR_
6419
6420 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6421 if test "x$ac_cv_type_size_t" = xyes; then :
6422
6423 else
6424
6425 cat >>confdefs.h <<_ACEOF
6426 #define size_t unsigned int
6427 _ACEOF
6428
6429 fi
6430
6431 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6432 # for constant arguments.  Useless!
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6434 $as_echo_n "checking for working alloca.h... " >&6; }
6435 if ${ac_cv_working_alloca_h+:} false; then :
6436   $as_echo_n "(cached) " >&6
6437 else
6438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h.  */
6440 #include <alloca.h>
6441 int
6442 main ()
6443 {
6444 char *p = (char *) alloca (2 * sizeof (int));
6445                           if (p) return 0;
6446   ;
6447   return 0;
6448 }
6449 _ACEOF
6450 if ac_fn_c_try_link "$LINENO"; then :
6451   ac_cv_working_alloca_h=yes
6452 else
6453   ac_cv_working_alloca_h=no
6454 fi
6455 rm -f core conftest.err conftest.$ac_objext \
6456     conftest$ac_exeext conftest.$ac_ext
6457 fi
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6459 $as_echo "$ac_cv_working_alloca_h" >&6; }
6460 if test $ac_cv_working_alloca_h = yes; then
6461
6462 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6463
6464 fi
6465
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6467 $as_echo_n "checking for alloca... " >&6; }
6468 if ${ac_cv_func_alloca_works+:} false; then :
6469   $as_echo_n "(cached) " >&6
6470 else
6471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h.  */
6473 #ifdef __GNUC__
6474 # define alloca __builtin_alloca
6475 #else
6476 # ifdef _MSC_VER
6477 #  include <malloc.h>
6478 #  define alloca _alloca
6479 # else
6480 #  ifdef HAVE_ALLOCA_H
6481 #   include <alloca.h>
6482 #  else
6483 #   ifdef _AIX
6484  #pragma alloca
6485 #   else
6486 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6487 void *alloca (size_t);
6488 #    endif
6489 #   endif
6490 #  endif
6491 # endif
6492 #endif
6493
6494 int
6495 main ()
6496 {
6497 char *p = (char *) alloca (1);
6498                                     if (p) return 0;
6499   ;
6500   return 0;
6501 }
6502 _ACEOF
6503 if ac_fn_c_try_link "$LINENO"; then :
6504   ac_cv_func_alloca_works=yes
6505 else
6506   ac_cv_func_alloca_works=no
6507 fi
6508 rm -f core conftest.err conftest.$ac_objext \
6509     conftest$ac_exeext conftest.$ac_ext
6510 fi
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6512 $as_echo "$ac_cv_func_alloca_works" >&6; }
6513
6514 if test $ac_cv_func_alloca_works = yes; then
6515
6516 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6517
6518 else
6519   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6520 # that cause trouble.  Some versions do not even contain alloca or
6521 # contain a buggy version.  If you still want to use their alloca,
6522 # use ar to extract alloca.o from them instead of compiling alloca.c.
6523
6524
6525
6526
6527
6528 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6529
6530 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6531
6532
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6534 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6535 if ${ac_cv_os_cray+:} false; then :
6536   $as_echo_n "(cached) " >&6
6537 else
6538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h.  */
6540 #if defined CRAY && ! defined CRAY2
6541 webecray
6542 #else
6543 wenotbecray
6544 #endif
6545
6546 _ACEOF
6547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6548   $EGREP "webecray" >/dev/null 2>&1; then :
6549   ac_cv_os_cray=yes
6550 else
6551   ac_cv_os_cray=no
6552 fi
6553 rm -f conftest*
6554
6555 fi
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6557 $as_echo "$ac_cv_os_cray" >&6; }
6558 if test $ac_cv_os_cray = yes; then
6559   for ac_func in _getb67 GETB67 getb67; do
6560     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6561 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6562 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6563
6564 cat >>confdefs.h <<_ACEOF
6565 #define CRAY_STACKSEG_END $ac_func
6566 _ACEOF
6567
6568     break
6569 fi
6570
6571   done
6572 fi
6573
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6575 $as_echo_n "checking stack direction for C alloca... " >&6; }
6576 if ${ac_cv_c_stack_direction+:} false; then :
6577   $as_echo_n "(cached) " >&6
6578 else
6579   if test "$cross_compiling" = yes; then :
6580   ac_cv_c_stack_direction=0
6581 else
6582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h.  */
6584 $ac_includes_default
6585 int
6586 find_stack_direction ()
6587 {
6588   static char *addr = 0;
6589   auto char dummy;
6590   if (addr == 0)
6591     {
6592       addr = &dummy;
6593       return find_stack_direction ();
6594     }
6595   else
6596     return (&dummy > addr) ? 1 : -1;
6597 }
6598
6599 int
6600 main ()
6601 {
6602   return find_stack_direction () < 0;
6603 }
6604 _ACEOF
6605 if ac_fn_c_try_run "$LINENO"; then :
6606   ac_cv_c_stack_direction=1
6607 else
6608   ac_cv_c_stack_direction=-1
6609 fi
6610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6611   conftest.$ac_objext conftest.beam conftest.$ac_ext
6612 fi
6613
6614 fi
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6616 $as_echo "$ac_cv_c_stack_direction" >&6; }
6617 cat >>confdefs.h <<_ACEOF
6618 #define STACK_DIRECTION $ac_cv_c_stack_direction
6619 _ACEOF
6620
6621
6622 fi
6623
6624
6625   GNULIB_INET_NTOP=0;
6626   GNULIB_INET_PTON=0;
6627     HAVE_DECL_INET_NTOP=1;
6628   HAVE_DECL_INET_PTON=1;
6629
6630
6631
6632
6633
6634   for ac_header in $gl_header_list
6635 do :
6636   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6637 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6638 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6639   cat >>confdefs.h <<_ACEOF
6640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6641 _ACEOF
6642
6643 fi
6644
6645 done
6646
6647
6648
6649
6650
6651
6652
6653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6654 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6655 if ${gl_cv_have_include_next+:} false; then :
6656   $as_echo_n "(cached) " >&6
6657 else
6658   rm -rf conftestd1a conftestd1b conftestd2
6659      mkdir conftestd1a conftestd1b conftestd2
6660                                                   cat <<EOF > conftestd1a/conftest.h
6661 #define DEFINED_IN_CONFTESTD1
6662 #include_next <conftest.h>
6663 #ifdef DEFINED_IN_CONFTESTD2
6664 int foo;
6665 #else
6666 #error "include_next doesn't work"
6667 #endif
6668 EOF
6669      cat <<EOF > conftestd1b/conftest.h
6670 #define DEFINED_IN_CONFTESTD1
6671 #include <stdio.h>
6672 #include_next <conftest.h>
6673 #ifdef DEFINED_IN_CONFTESTD2
6674 int foo;
6675 #else
6676 #error "include_next doesn't work"
6677 #endif
6678 EOF
6679      cat <<EOF > conftestd2/conftest.h
6680 #ifndef DEFINED_IN_CONFTESTD1
6681 #error "include_next test doesn't work"
6682 #endif
6683 #define DEFINED_IN_CONFTESTD2
6684 EOF
6685      gl_save_CPPFLAGS="$CPPFLAGS"
6686      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6687      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h.  */
6689 #include <conftest.h>
6690 _ACEOF
6691 if ac_fn_c_try_compile "$LINENO"; then :
6692   gl_cv_have_include_next=yes
6693 else
6694   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6695         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h.  */
6697 #include <conftest.h>
6698 _ACEOF
6699 if ac_fn_c_try_compile "$LINENO"; then :
6700   gl_cv_have_include_next=buggy
6701 else
6702   gl_cv_have_include_next=no
6703 fi
6704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705
6706 fi
6707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708      CPPFLAGS="$gl_save_CPPFLAGS"
6709      rm -rf conftestd1a conftestd1b conftestd2
6710
6711 fi
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6713 $as_echo "$gl_cv_have_include_next" >&6; }
6714   PRAGMA_SYSTEM_HEADER=
6715   if test $gl_cv_have_include_next = yes; then
6716     INCLUDE_NEXT=include_next
6717     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6718     if test -n "$GCC"; then
6719       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6720     fi
6721   else
6722     if test $gl_cv_have_include_next = buggy; then
6723       INCLUDE_NEXT=include
6724       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6725     else
6726       INCLUDE_NEXT=include
6727       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6728     fi
6729   fi
6730
6731
6732
6733
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6735 $as_echo_n "checking for inline... " >&6; }
6736 if ${ac_cv_c_inline+:} false; then :
6737   $as_echo_n "(cached) " >&6
6738 else
6739   ac_cv_c_inline=no
6740 for ac_kw in inline __inline__ __inline; do
6741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h.  */
6743 #ifndef __cplusplus
6744 typedef int foo_t;
6745 static $ac_kw foo_t static_foo () {return 0; }
6746 $ac_kw foo_t foo () {return 0; }
6747 #endif
6748
6749 _ACEOF
6750 if ac_fn_c_try_compile "$LINENO"; then :
6751   ac_cv_c_inline=$ac_kw
6752 fi
6753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6754   test "$ac_cv_c_inline" != no && break
6755 done
6756
6757 fi
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6759 $as_echo "$ac_cv_c_inline" >&6; }
6760
6761 case $ac_cv_c_inline in
6762   inline | yes) ;;
6763   *)
6764     case $ac_cv_c_inline in
6765       no) ac_val=;;
6766       *) ac_val=$ac_cv_c_inline;;
6767     esac
6768     cat >>confdefs.h <<_ACEOF
6769 #ifndef __cplusplus
6770 #define inline $ac_val
6771 #endif
6772 _ACEOF
6773     ;;
6774 esac
6775
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6777 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6778 if ${ac_cv_c_restrict+:} false; then :
6779   $as_echo_n "(cached) " >&6
6780 else
6781   ac_cv_c_restrict=no
6782    # The order here caters to the fact that C++ does not require restrict.
6783    for ac_kw in __restrict __restrict__ _Restrict restrict; do
6784      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h.  */
6786 typedef int * int_ptr;
6787         int foo (int_ptr $ac_kw ip) {
6788         return ip[0];
6789        }
6790 int
6791 main ()
6792 {
6793 int s[1];
6794         int * $ac_kw t = s;
6795         t[0] = 0;
6796         return foo(t)
6797   ;
6798   return 0;
6799 }
6800 _ACEOF
6801 if ac_fn_c_try_compile "$LINENO"; then :
6802   ac_cv_c_restrict=$ac_kw
6803 fi
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805      test "$ac_cv_c_restrict" != no && break
6806    done
6807
6808 fi
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6810 $as_echo "$ac_cv_c_restrict" >&6; }
6811
6812  case $ac_cv_c_restrict in
6813    restrict) ;;
6814    no) $as_echo "#define restrict /**/" >>confdefs.h
6815  ;;
6816    *)  cat >>confdefs.h <<_ACEOF
6817 #define restrict $ac_cv_c_restrict
6818 _ACEOF
6819  ;;
6820  esac
6821
6822
6823   GNULIB_BTOWC=0;
6824   GNULIB_WCTOB=0;
6825   GNULIB_MBSINIT=0;
6826   GNULIB_MBRTOWC=0;
6827   GNULIB_MBRLEN=0;
6828   GNULIB_MBSRTOWCS=0;
6829   GNULIB_MBSNRTOWCS=0;
6830   GNULIB_WCRTOMB=0;
6831   GNULIB_WCSRTOMBS=0;
6832   GNULIB_WCSNRTOMBS=0;
6833   GNULIB_WCWIDTH=0;
6834     HAVE_BTOWC=1;
6835   HAVE_MBSINIT=1;
6836   HAVE_MBRTOWC=1;
6837   HAVE_MBRLEN=1;
6838   HAVE_MBSRTOWCS=1;
6839   HAVE_MBSNRTOWCS=1;
6840   HAVE_WCRTOMB=1;
6841   HAVE_WCSRTOMBS=1;
6842   HAVE_WCSNRTOMBS=1;
6843   HAVE_DECL_WCTOB=1;
6844   HAVE_DECL_WCWIDTH=1;
6845   REPLACE_MBSTATE_T=0;
6846   REPLACE_BTOWC=0;
6847   REPLACE_WCTOB=0;
6848   REPLACE_MBSINIT=0;
6849   REPLACE_MBRTOWC=0;
6850   REPLACE_MBRLEN=0;
6851   REPLACE_MBSRTOWCS=0;
6852   REPLACE_MBSNRTOWCS=0;
6853   REPLACE_WCRTOMB=0;
6854   REPLACE_WCSRTOMBS=0;
6855   REPLACE_WCSNRTOMBS=0;
6856   REPLACE_WCWIDTH=0;
6857
6858
6859             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
6860 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
6861 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
6862   $as_echo_n "(cached) " >&6
6863 else
6864   gl_cv_header_wchar_h_correct_inline=yes
6865      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h.  */
6867
6868        #define wcstod renamed_wcstod
6869 #include <wchar.h>
6870 extern int zero (void);
6871 int main () { return zero(); }
6872
6873 _ACEOF
6874      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6875   (eval $ac_compile) 2>&5
6876   ac_status=$?
6877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6878   test $ac_status = 0; }; then
6879        mv conftest.$ac_objext conftest1.$ac_objext
6880        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h.  */
6882
6883          #define wcstod renamed_wcstod
6884 #include <wchar.h>
6885 int zero (void) { return 0; }
6886
6887 _ACEOF
6888        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6889   (eval $ac_compile) 2>&5
6890   ac_status=$?
6891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6892   test $ac_status = 0; }; then
6893          mv conftest.$ac_objext conftest2.$ac_objext
6894          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
6895            :
6896          else
6897            gl_cv_header_wchar_h_correct_inline=no
6898          fi
6899        fi
6900      fi
6901      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
6902
6903 fi
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
6905 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
6906   if test $gl_cv_header_wchar_h_correct_inline = no; then
6907     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
6908 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
6909 C99 mode. You have four options:
6910   - Add the flag -fgnu89-inline to CC and reconfigure, or
6911   - Fix your include files, using parts of
6912     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
6913   - Use a gcc version older than 4.3, or
6914   - Don't use the flags -std=c99 or -std=gnu99.
6915 Configuration aborted." "$LINENO" 5
6916   fi
6917
6918
6919
6920
6921
6922   for ac_func in $gl_func_list
6923 do :
6924   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6925 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6926 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6927   cat >>confdefs.h <<_ACEOF
6928 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6929 _ACEOF
6930
6931 fi
6932 done
6933
6934
6935
6936
6937
6938
6939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6940 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6941 if ${am_cv_langinfo_codeset+:} false; then :
6942   $as_echo_n "(cached) " >&6
6943 else
6944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h.  */
6946 #include <langinfo.h>
6947 int
6948 main ()
6949 {
6950 char* cs = nl_langinfo(CODESET);
6951   ;
6952   return 0;
6953 }
6954 _ACEOF
6955 if ac_fn_c_try_link "$LINENO"; then :
6956   am_cv_langinfo_codeset=yes
6957 else
6958   am_cv_langinfo_codeset=no
6959 fi
6960 rm -f core conftest.err conftest.$ac_objext \
6961     conftest$ac_exeext conftest.$ac_ext
6962
6963 fi
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6965 $as_echo "$am_cv_langinfo_codeset" >&6; }
6966   if test $am_cv_langinfo_codeset = yes; then
6967
6968 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6969
6970   fi
6971
6972
6973
6974
6975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
6976 $as_echo_n "checking for a traditional french locale... " >&6; }
6977 if ${gt_cv_locale_fr+:} false; then :
6978   $as_echo_n "(cached) " >&6
6979 else
6980
6981     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h.  */
6983
6984 #include <locale.h>
6985 #include <time.h>
6986 #if HAVE_LANGINFO_CODESET
6987 # include <langinfo.h>
6988 #endif
6989 #include <stdlib.h>
6990 #include <string.h>
6991 struct tm t;
6992 char buf[16];
6993 int main () {
6994   /* Check whether the given locale name is recognized by the system.  */
6995   if (setlocale (LC_ALL, "") == NULL) return 1;
6996   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
6997      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
6998      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
6999      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7000      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7001      some unit tests fail.  */
7002 #if HAVE_LANGINFO_CODESET
7003   {
7004     const char *cs = nl_langinfo (CODESET);
7005     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
7006       return 1;
7007   }
7008 #endif
7009 #ifdef __CYGWIN__
7010   /* On Cygwin, avoid locale names without encoding suffix, because the
7011      locale_charset() function relies on the encoding suffix.  Note that
7012      LC_ALL is set on the command line.  */
7013   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7014 #endif
7015   /* Check whether in the abbreviation of the second month, the second
7016      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7017      one byte long. This excludes the UTF-8 encoding.  */
7018   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7019   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7020   /* Check whether the decimal separator is a comma.
7021      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7022      are nl_langinfo(RADIXCHAR) are both ".".  */
7023   if (localeconv () ->decimal_point[0] != ',') return 1;
7024   return 0;
7025 }
7026
7027 _ACEOF
7028     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7029   (eval $ac_link) 2>&5
7030   ac_status=$?
7031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7032   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7033       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7034       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
7035       # configure script would override the LC_ALL setting. Likewise for
7036       # LC_CTYPE, which is also set at the beginning of the configure script.
7037       # Test for the usual locale name.
7038       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7039         gt_cv_locale_fr=fr_FR
7040       else
7041         # Test for the locale name with explicit encoding suffix.
7042         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7043           gt_cv_locale_fr=fr_FR.ISO-8859-1
7044         else
7045           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7046           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7047             gt_cv_locale_fr=fr_FR.ISO8859-1
7048           else
7049             # Test for the HP-UX locale name.
7050             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7051               gt_cv_locale_fr=fr_FR.iso88591
7052             else
7053               # Test for the Solaris 7 locale name.
7054               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7055                 gt_cv_locale_fr=fr
7056               else
7057                 # None found.
7058                 gt_cv_locale_fr=none
7059               fi
7060             fi
7061           fi
7062         fi
7063       fi
7064     fi
7065     rm -fr conftest*
7066
7067 fi
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
7069 $as_echo "$gt_cv_locale_fr" >&6; }
7070   LOCALE_FR=$gt_cv_locale_fr
7071
7072
7073
7074   GNULIB_CHOWN=0;
7075   GNULIB_CLOSE=0;
7076   GNULIB_DUP2=0;
7077   GNULIB_DUP3=0;
7078   GNULIB_ENVIRON=0;
7079   GNULIB_EUIDACCESS=0;
7080   GNULIB_FACCESSAT=0;
7081   GNULIB_FCHDIR=0;
7082   GNULIB_FCHOWNAT=0;
7083   GNULIB_FSYNC=0;
7084   GNULIB_FTRUNCATE=0;
7085   GNULIB_GETCWD=0;
7086   GNULIB_GETDOMAINNAME=0;
7087   GNULIB_GETDTABLESIZE=0;
7088   GNULIB_GETGROUPS=0;
7089   GNULIB_GETHOSTNAME=0;
7090   GNULIB_GETLOGIN=0;
7091   GNULIB_GETLOGIN_R=0;
7092   GNULIB_GETPAGESIZE=0;
7093   GNULIB_GETUSERSHELL=0;
7094   GNULIB_LCHOWN=0;
7095   GNULIB_LINK=0;
7096   GNULIB_LINKAT=0;
7097   GNULIB_LSEEK=0;
7098   GNULIB_PIPE2=0;
7099   GNULIB_PREAD=0;
7100   GNULIB_PWRITE=0;
7101   GNULIB_READLINK=0;
7102   GNULIB_READLINKAT=0;
7103   GNULIB_RMDIR=0;
7104   GNULIB_SLEEP=0;
7105   GNULIB_SYMLINK=0;
7106   GNULIB_SYMLINKAT=0;
7107   GNULIB_TTYNAME_R=0;
7108   GNULIB_UNISTD_H_GETOPT=0;
7109   GNULIB_UNISTD_H_SIGPIPE=0;
7110   GNULIB_UNLINK=0;
7111   GNULIB_UNLINKAT=0;
7112   GNULIB_USLEEP=0;
7113   GNULIB_WRITE=0;
7114     HAVE_CHOWN=1;
7115   HAVE_DUP2=1;
7116   HAVE_DUP3=1;
7117   HAVE_EUIDACCESS=1;
7118   HAVE_FACCESSAT=1;
7119   HAVE_FCHDIR=1;
7120   HAVE_FCHOWNAT=1;
7121   HAVE_FSYNC=1;
7122   HAVE_FTRUNCATE=1;
7123   HAVE_GETDOMAINNAME=1;
7124   HAVE_GETDTABLESIZE=1;
7125   HAVE_GETGROUPS=1;
7126   HAVE_GETHOSTNAME=1;
7127   HAVE_GETLOGIN=1;
7128   HAVE_GETPAGESIZE=1;
7129   HAVE_LCHOWN=1;
7130   HAVE_LINK=1;
7131   HAVE_LINKAT=1;
7132   HAVE_PIPE2=1;
7133   HAVE_PREAD=1;
7134   HAVE_PWRITE=1;
7135   HAVE_READLINK=1;
7136   HAVE_READLINKAT=1;
7137   HAVE_SLEEP=1;
7138   HAVE_SYMLINK=1;
7139   HAVE_SYMLINKAT=1;
7140   HAVE_TTYNAME_R=1;
7141   HAVE_UNLINKAT=1;
7142   HAVE_USLEEP=1;
7143   HAVE_DECL_ENVIRON=1;
7144   HAVE_DECL_GETLOGIN_R=1;
7145   HAVE_DECL_GETPAGESIZE=1;
7146   HAVE_DECL_GETUSERSHELL=1;
7147   HAVE_OS_H=0;
7148   HAVE_SYS_PARAM_H=0;
7149   REPLACE_CHOWN=0;
7150   REPLACE_CLOSE=0;
7151   REPLACE_DUP=0;
7152   REPLACE_DUP2=0;
7153   REPLACE_FCHOWNAT=0;
7154   REPLACE_GETCWD=0;
7155   REPLACE_GETGROUPS=0;
7156   REPLACE_GETPAGESIZE=0;
7157   REPLACE_LCHOWN=0;
7158   REPLACE_LINK=0;
7159   REPLACE_LINKAT=0;
7160   REPLACE_LSEEK=0;
7161   REPLACE_PREAD=0;
7162   REPLACE_PWRITE=0;
7163   REPLACE_READLINK=0;
7164   REPLACE_RMDIR=0;
7165   REPLACE_SLEEP=0;
7166   REPLACE_SYMLINK=0;
7167   REPLACE_TTYNAME_R=0;
7168   REPLACE_UNLINK=0;
7169   REPLACE_UNLINKAT=0;
7170   REPLACE_USLEEP=0;
7171   REPLACE_WRITE=0;
7172   UNISTD_H_HAVE_WINSOCK2_H=0;
7173   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
7174
7175
7176
7177
7178
7179
7180
7181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
7182 $as_echo_n "checking if environ is properly declared... " >&6; }
7183   if ${gt_cv_var_environ_declaration+:} false; then :
7184   $as_echo_n "(cached) " >&6
7185 else
7186
7187     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h.  */
7189 #include <unistd.h>
7190            extern struct { int foo; } environ;
7191 int
7192 main ()
7193 {
7194 environ.foo = 1;
7195   ;
7196   return 0;
7197 }
7198 _ACEOF
7199 if ac_fn_c_try_compile "$LINENO"; then :
7200   gt_cv_var_environ_declaration=no
7201 else
7202   gt_cv_var_environ_declaration=yes
7203 fi
7204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205 fi
7206
7207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
7208 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7209   if test $gt_cv_var_environ_declaration = yes; then
7210
7211 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
7212
7213   fi
7214
7215
7216   if test $gt_cv_var_environ_declaration != yes; then
7217     HAVE_DECL_ENVIRON=0
7218   fi
7219
7220
7221
7222
7223
7224
7225
7226
7227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7228 $as_echo_n "checking for complete errno.h... " >&6; }
7229 if ${gl_cv_header_errno_h_complete+:} false; then :
7230   $as_echo_n "(cached) " >&6
7231 else
7232
7233     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h.  */
7235
7236 #include <errno.h>
7237 #if !defined ENOMSG
7238 booboo
7239 #endif
7240 #if !defined EIDRM
7241 booboo
7242 #endif
7243 #if !defined ENOLINK
7244 booboo
7245 #endif
7246 #if !defined EPROTO
7247 booboo
7248 #endif
7249 #if !defined EMULTIHOP
7250 booboo
7251 #endif
7252 #if !defined EBADMSG
7253 booboo
7254 #endif
7255 #if !defined EOVERFLOW
7256 booboo
7257 #endif
7258 #if !defined ENOTSUP
7259 booboo
7260 #endif
7261 #if !defined ESTALE
7262 booboo
7263 #endif
7264 #if !defined ECANCELED
7265 booboo
7266 #endif
7267
7268 _ACEOF
7269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7270   $EGREP "booboo" >/dev/null 2>&1; then :
7271   gl_cv_header_errno_h_complete=no
7272 else
7273   gl_cv_header_errno_h_complete=yes
7274 fi
7275 rm -f conftest*
7276
7277
7278 fi
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7280 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7281   if test $gl_cv_header_errno_h_complete = yes; then
7282     ERRNO_H=''
7283   else
7284
7285
7286
7287
7288   :
7289
7290
7291
7292
7293
7294
7295
7296      if test $gl_cv_have_include_next = yes; then
7297        gl_cv_next_errno_h='<'errno.h'>'
7298      else
7299        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7300 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7301 if ${gl_cv_next_errno_h+:} false; then :
7302   $as_echo_n "(cached) " >&6
7303 else
7304
7305           if test $ac_cv_header_errno_h = yes; then
7306             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h.  */
7308 #include <errno.h>
7309
7310 _ACEOF
7311                                                                                                 case "$host_os" in
7312               aix*) gl_absname_cpp="$ac_cpp -C" ;;
7313               *)    gl_absname_cpp="$ac_cpp" ;;
7314             esac
7315                                                 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7316                sed -n '\#/errno.h#{
7317                  s#.*"\(.*/errno.h\)".*#\1#
7318                  s#^/[^/]#//&#
7319                  p
7320                  q
7321                }'`'"'
7322           else
7323             gl_cv_next_errno_h='<'errno.h'>'
7324           fi
7325
7326 fi
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7328 $as_echo "$gl_cv_next_errno_h" >&6; }
7329      fi
7330      NEXT_ERRNO_H=$gl_cv_next_errno_h
7331
7332      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7333        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7334        gl_next_as_first_directive='<'errno.h'>'
7335      else
7336        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7337        gl_next_as_first_directive=$gl_cv_next_errno_h
7338      fi
7339      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7340
7341
7342
7343     ERRNO_H='errno.h'
7344   fi
7345
7346
7347   if test -n "$ERRNO_H"; then
7348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7349 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7350 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
7351   $as_echo_n "(cached) " >&6
7352 else
7353
7354       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h.  */
7356
7357 #include <errno.h>
7358 #ifdef EMULTIHOP
7359 yes
7360 #endif
7361
7362 _ACEOF
7363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7364   $EGREP "yes" >/dev/null 2>&1; then :
7365   gl_cv_header_errno_h_EMULTIHOP=yes
7366 else
7367   gl_cv_header_errno_h_EMULTIHOP=no
7368 fi
7369 rm -f conftest*
7370
7371       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7372         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h.  */
7374
7375 #define _XOPEN_SOURCE_EXTENDED 1
7376 #include <errno.h>
7377 #ifdef EMULTIHOP
7378 yes
7379 #endif
7380
7381 _ACEOF
7382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7383   $EGREP "yes" >/dev/null 2>&1; then :
7384   gl_cv_header_errno_h_EMULTIHOP=hidden
7385 fi
7386 rm -f conftest*
7387
7388         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7389                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
7390 #define _XOPEN_SOURCE_EXTENDED 1
7391 #include <errno.h>
7392 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7393 #include <stdio.h>
7394 #include <stdlib.h>
7395 "; then :
7396
7397 fi
7398
7399         fi
7400       fi
7401
7402 fi
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7404 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7405     case $gl_cv_header_errno_h_EMULTIHOP in
7406       yes | no)
7407         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7408         ;;
7409       *)
7410         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7411         ;;
7412     esac
7413
7414
7415   fi
7416
7417
7418   if test -n "$ERRNO_H"; then
7419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7420 $as_echo_n "checking for ENOLINK value... " >&6; }
7421 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
7422   $as_echo_n "(cached) " >&6
7423 else
7424
7425       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h.  */
7427
7428 #include <errno.h>
7429 #ifdef ENOLINK
7430 yes
7431 #endif
7432
7433 _ACEOF
7434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7435   $EGREP "yes" >/dev/null 2>&1; then :
7436   gl_cv_header_errno_h_ENOLINK=yes
7437 else
7438   gl_cv_header_errno_h_ENOLINK=no
7439 fi
7440 rm -f conftest*
7441
7442       if test $gl_cv_header_errno_h_ENOLINK = no; then
7443         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h.  */
7445
7446 #define _XOPEN_SOURCE_EXTENDED 1
7447 #include <errno.h>
7448 #ifdef ENOLINK
7449 yes
7450 #endif
7451
7452 _ACEOF
7453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7454   $EGREP "yes" >/dev/null 2>&1; then :
7455   gl_cv_header_errno_h_ENOLINK=hidden
7456 fi
7457 rm -f conftest*
7458
7459         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7460                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
7461 #define _XOPEN_SOURCE_EXTENDED 1
7462 #include <errno.h>
7463 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7464 #include <stdio.h>
7465 #include <stdlib.h>
7466 "; then :
7467
7468 fi
7469
7470         fi
7471       fi
7472
7473 fi
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7475 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7476     case $gl_cv_header_errno_h_ENOLINK in
7477       yes | no)
7478         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7479         ;;
7480       *)
7481         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7482         ;;
7483     esac
7484
7485
7486   fi
7487
7488
7489   if test -n "$ERRNO_H"; then
7490     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7491 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7492 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
7493   $as_echo_n "(cached) " >&6
7494 else
7495
7496       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h.  */
7498
7499 #include <errno.h>
7500 #ifdef EOVERFLOW
7501 yes
7502 #endif
7503
7504 _ACEOF
7505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7506   $EGREP "yes" >/dev/null 2>&1; then :
7507   gl_cv_header_errno_h_EOVERFLOW=yes
7508 else
7509   gl_cv_header_errno_h_EOVERFLOW=no
7510 fi
7511 rm -f conftest*
7512
7513       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7514         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h.  */
7516
7517 #define _XOPEN_SOURCE_EXTENDED 1
7518 #include <errno.h>
7519 #ifdef EOVERFLOW
7520 yes
7521 #endif
7522
7523 _ACEOF
7524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7525   $EGREP "yes" >/dev/null 2>&1; then :
7526   gl_cv_header_errno_h_EOVERFLOW=hidden
7527 fi
7528 rm -f conftest*
7529
7530         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7531                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
7532 #define _XOPEN_SOURCE_EXTENDED 1
7533 #include <errno.h>
7534 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7535 #include <stdio.h>
7536 #include <stdlib.h>
7537 "; then :
7538
7539 fi
7540
7541         fi
7542       fi
7543
7544 fi
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7546 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7547     case $gl_cv_header_errno_h_EOVERFLOW in
7548       yes | no)
7549         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7550         ;;
7551       *)
7552         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7553         ;;
7554     esac
7555
7556
7557   fi
7558
7559
7560
7561
7562
7563
7564
7565
7566   GNULIB_DPRINTF=0;
7567   GNULIB_FCLOSE=0;
7568   GNULIB_FFLUSH=0;
7569   GNULIB_FOPEN=0;
7570   GNULIB_FPRINTF=0;
7571   GNULIB_FPRINTF_POSIX=0;
7572   GNULIB_FPURGE=0;
7573   GNULIB_FPUTC=0;
7574   GNULIB_FPUTS=0;
7575   GNULIB_FREOPEN=0;
7576   GNULIB_FSEEK=0;
7577   GNULIB_FSEEKO=0;
7578   GNULIB_FTELL=0;
7579   GNULIB_FTELLO=0;
7580   GNULIB_FWRITE=0;
7581   GNULIB_GETDELIM=0;
7582   GNULIB_GETLINE=0;
7583   GNULIB_OBSTACK_PRINTF=0;
7584   GNULIB_OBSTACK_PRINTF_POSIX=0;
7585   GNULIB_PERROR=0;
7586   GNULIB_POPEN=0;
7587   GNULIB_PRINTF=0;
7588   GNULIB_PRINTF_POSIX=0;
7589   GNULIB_PUTC=0;
7590   GNULIB_PUTCHAR=0;
7591   GNULIB_PUTS=0;
7592   GNULIB_REMOVE=0;
7593   GNULIB_RENAME=0;
7594   GNULIB_RENAMEAT=0;
7595   GNULIB_SNPRINTF=0;
7596   GNULIB_SPRINTF_POSIX=0;
7597   GNULIB_STDIO_H_SIGPIPE=0;
7598   GNULIB_TMPFILE=0;
7599   GNULIB_VASPRINTF=0;
7600   GNULIB_VDPRINTF=0;
7601   GNULIB_VFPRINTF=0;
7602   GNULIB_VFPRINTF_POSIX=0;
7603   GNULIB_VPRINTF=0;
7604   GNULIB_VPRINTF_POSIX=0;
7605   GNULIB_VSNPRINTF=0;
7606   GNULIB_VSPRINTF_POSIX=0;
7607     HAVE_DECL_FPURGE=1;
7608   HAVE_DECL_GETDELIM=1;
7609   HAVE_DECL_GETLINE=1;
7610   HAVE_DECL_OBSTACK_PRINTF=1;
7611   HAVE_DECL_SNPRINTF=1;
7612   HAVE_DECL_VSNPRINTF=1;
7613   HAVE_DPRINTF=1;
7614   HAVE_FSEEKO=1;
7615   HAVE_FTELLO=1;
7616   HAVE_RENAMEAT=1;
7617   HAVE_VASPRINTF=1;
7618   HAVE_VDPRINTF=1;
7619   REPLACE_DPRINTF=0;
7620   REPLACE_FCLOSE=0;
7621   REPLACE_FFLUSH=0;
7622   REPLACE_FOPEN=0;
7623   REPLACE_FPRINTF=0;
7624   REPLACE_FPURGE=0;
7625   REPLACE_FREOPEN=0;
7626   REPLACE_FSEEK=0;
7627   REPLACE_FSEEKO=0;
7628   REPLACE_FTELL=0;
7629   REPLACE_FTELLO=0;
7630   REPLACE_GETDELIM=0;
7631   REPLACE_GETLINE=0;
7632   REPLACE_OBSTACK_PRINTF=0;
7633   REPLACE_PERROR=0;
7634   REPLACE_POPEN=0;
7635   REPLACE_PRINTF=0;
7636   REPLACE_REMOVE=0;
7637   REPLACE_RENAME=0;
7638   REPLACE_RENAMEAT=0;
7639   REPLACE_SNPRINTF=0;
7640   REPLACE_SPRINTF=0;
7641   REPLACE_STDIO_WRITE_FUNCS=0;
7642   REPLACE_TMPFILE=0;
7643   REPLACE_VASPRINTF=0;
7644   REPLACE_VDPRINTF=0;
7645   REPLACE_VFPRINTF=0;
7646   REPLACE_VPRINTF=0;
7647   REPLACE_VSNPRINTF=0;
7648   REPLACE_VSPRINTF=0;
7649
7650
7651
7652
7653
7654
7655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
7656 $as_echo_n "checking for fseeko... " >&6; }
7657 if ${gl_cv_func_fseeko+:} false; then :
7658   $as_echo_n "(cached) " >&6
7659 else
7660
7661       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h.  */
7663 #include <stdio.h>
7664
7665 int
7666 main ()
7667 {
7668 fseeko (stdin, 0, 0);
7669   ;
7670   return 0;
7671 }
7672 _ACEOF
7673 if ac_fn_c_try_link "$LINENO"; then :
7674   gl_cv_func_fseeko=yes
7675 else
7676   gl_cv_func_fseeko=no
7677 fi
7678 rm -f core conftest.err conftest.$ac_objext \
7679     conftest$ac_exeext conftest.$ac_ext
7680
7681 fi
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
7683 $as_echo "$gl_cv_func_fseeko" >&6; }
7684
7685
7686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
7687 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
7688 if ${gl_cv_var_stdin_large_offset+:} false; then :
7689   $as_echo_n "(cached) " >&6
7690 else
7691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h.  */
7693 #include <stdio.h>
7694 int
7695 main ()
7696 {
7697 #if defined __SL64 && defined __SCLE /* cygwin */
7698   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
7699      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
7700      it is easier to do a version check than building a runtime test.  */
7701 # include <cygwin/version.h>
7702 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
7703   choke me
7704 # endif
7705 #endif
7706   ;
7707   return 0;
7708 }
7709 _ACEOF
7710 if ac_fn_c_try_link "$LINENO"; then :
7711   gl_cv_var_stdin_large_offset=yes
7712 else
7713   gl_cv_var_stdin_large_offset=no
7714 fi
7715 rm -f core conftest.err conftest.$ac_objext \
7716     conftest$ac_exeext conftest.$ac_ext
7717 fi
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
7719 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742   GNULIB_SOCKET=0;
7743   GNULIB_CONNECT=0;
7744   GNULIB_ACCEPT=0;
7745   GNULIB_BIND=0;
7746   GNULIB_GETPEERNAME=0;
7747   GNULIB_GETSOCKNAME=0;
7748   GNULIB_GETSOCKOPT=0;
7749   GNULIB_LISTEN=0;
7750   GNULIB_RECV=0;
7751   GNULIB_SEND=0;
7752   GNULIB_RECVFROM=0;
7753   GNULIB_SENDTO=0;
7754   GNULIB_SETSOCKOPT=0;
7755   GNULIB_SHUTDOWN=0;
7756   GNULIB_ACCEPT4=0;
7757   HAVE_STRUCT_SOCKADDR_STORAGE=1;
7758   HAVE_SA_FAMILY_T=1;
7759   HAVE_ACCEPT4=1;
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
7771 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
7772 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
7773   $as_echo_n "(cached) " >&6
7774 else
7775
7776       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h.  */
7778 #include <sys/socket.h>
7779 int
7780 main ()
7781 {
7782
7783   ;
7784   return 0;
7785 }
7786 _ACEOF
7787 if ac_fn_c_try_compile "$LINENO"; then :
7788   gl_cv_header_sys_socket_h_selfcontained=yes
7789 else
7790   gl_cv_header_sys_socket_h_selfcontained=no
7791 fi
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793
7794 fi
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
7796 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
7797   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
7798             for ac_func in shutdown
7799 do :
7800   ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
7801 if test "x$ac_cv_func_shutdown" = xyes; then :
7802   cat >>confdefs.h <<_ACEOF
7803 #define HAVE_SHUTDOWN 1
7804 _ACEOF
7805
7806 fi
7807 done
7808
7809     if test $ac_cv_func_shutdown = yes; then
7810       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
7811 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
7812 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
7813   $as_echo_n "(cached) " >&6
7814 else
7815
7816           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h.  */
7818 #include <sys/socket.h>
7819 int
7820 main ()
7821 {
7822 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
7823   ;
7824   return 0;
7825 }
7826 _ACEOF
7827 if ac_fn_c_try_compile "$LINENO"; then :
7828   gl_cv_header_sys_socket_h_shut=yes
7829 else
7830   gl_cv_header_sys_socket_h_shut=no
7831 fi
7832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7833
7834 fi
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
7836 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
7837       if test $gl_cv_header_sys_socket_h_shut = no; then
7838         SYS_SOCKET_H='sys/socket.h'
7839       fi
7840     fi
7841   fi
7842   # We need to check for ws2tcpip.h now.
7843
7844
7845
7846
7847
7848   :
7849
7850
7851
7852
7853
7854
7855
7856      if test $gl_cv_have_include_next = yes; then
7857        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
7858      else
7859        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
7860 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
7861 if ${gl_cv_next_sys_socket_h+:} false; then :
7862   $as_echo_n "(cached) " >&6
7863 else
7864
7865           if test $ac_cv_header_sys_socket_h = yes; then
7866             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h.  */
7868 #include <sys/socket.h>
7869
7870 _ACEOF
7871                                                                                                 case "$host_os" in
7872               aix*) gl_absname_cpp="$ac_cpp -C" ;;
7873               *)    gl_absname_cpp="$ac_cpp" ;;
7874             esac
7875                                                 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7876                sed -n '\#/sys/socket.h#{
7877                  s#.*"\(.*/sys/socket.h\)".*#\1#
7878                  s#^/[^/]#//&#
7879                  p
7880                  q
7881                }'`'"'
7882           else
7883             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
7884           fi
7885
7886 fi
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
7888 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
7889      fi
7890      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
7891
7892      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7893        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7894        gl_next_as_first_directive='<'sys/socket.h'>'
7895      else
7896        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7897        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
7898      fi
7899      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
7900
7901
7902
7903   if test $ac_cv_header_sys_socket_h = yes; then
7904     HAVE_SYS_SOCKET_H=1
7905     HAVE_WS2TCPIP_H=0
7906   else
7907     HAVE_SYS_SOCKET_H=0
7908                     for ac_header in ws2tcpip.h
7909 do :
7910   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
7911 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
7912   cat >>confdefs.h <<_ACEOF
7913 #define HAVE_WS2TCPIP_H 1
7914 _ACEOF
7915
7916 fi
7917
7918 done
7919
7920     if test $ac_cv_header_ws2tcpip_h = yes; then
7921       HAVE_WS2TCPIP_H=1
7922     else
7923       HAVE_WS2TCPIP_H=0
7924     fi
7925   fi
7926
7927
7928
7929   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
7930   /* sys/types.h is not needed according to POSIX, but the
7931      sys/socket.h in i386-unknown-freebsd4.10 and
7932      powerpc-apple-darwin5.5 required it. */
7933 #include <sys/types.h>
7934 #ifdef HAVE_SYS_SOCKET_H
7935 #include <sys/socket.h>
7936 #endif
7937 #ifdef HAVE_WS2TCPIP_H
7938 #include <ws2tcpip.h>
7939 #endif
7940
7941 "
7942 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
7943
7944 cat >>confdefs.h <<_ACEOF
7945 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
7946 _ACEOF
7947
7948
7949 fi
7950 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
7951   /* sys/types.h is not needed according to POSIX, but the
7952      sys/socket.h in i386-unknown-freebsd4.10 and
7953      powerpc-apple-darwin5.5 required it. */
7954 #include <sys/types.h>
7955 #ifdef HAVE_SYS_SOCKET_H
7956 #include <sys/socket.h>
7957 #endif
7958 #ifdef HAVE_WS2TCPIP_H
7959 #include <ws2tcpip.h>
7960 #endif
7961
7962 "
7963 if test "x$ac_cv_type_sa_family_t" = xyes; then :
7964
7965 cat >>confdefs.h <<_ACEOF
7966 #define HAVE_SA_FAMILY_T 1
7967 _ACEOF
7968
7969
7970 fi
7971
7972   if test $ac_cv_type_struct_sockaddr_storage = no; then
7973     HAVE_STRUCT_SOCKADDR_STORAGE=0
7974   fi
7975   if test $ac_cv_type_sa_family_t = no; then
7976     HAVE_SA_FAMILY_T=0
7977   fi
7978
7979
7980
7981
7982   :
7983
7984
7985
7986
7987
7988   if test $ac_cv_header_sys_socket_h != yes; then
7989                     for ac_header in winsock2.h
7990 do :
7991   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
7992 if test "x$ac_cv_header_winsock2_h" = xyes; then :
7993   cat >>confdefs.h <<_ACEOF
7994 #define HAVE_WINSOCK2_H 1
7995 _ACEOF
7996
7997 fi
7998
7999 done
8000
8001   fi
8002   if test "$ac_cv_header_winsock2_h" = yes; then
8003     HAVE_WINSOCK2_H=1
8004     UNISTD_H_HAVE_WINSOCK2_H=1
8005     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
8006   else
8007     HAVE_WINSOCK2_H=0
8008   fi
8009
8010
8011
8012
8013     for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
8014     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8016 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8017 if eval \${$as_gl_Symbol+:} false; then :
8018   $as_echo_n "(cached) " >&6
8019 else
8020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021 /* end confdefs.h.  */
8022
8023 /* Some systems require prerequisite headers.  */
8024 #include <sys/types.h>
8025 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
8026 # include <sys/time.h>
8027 #endif
8028 #include <sys/select.h>
8029
8030 int
8031 main ()
8032 {
8033 #undef $gl_func
8034   (void) $gl_func;
8035   ;
8036   return 0;
8037 }
8038 _ACEOF
8039 if ac_fn_c_try_compile "$LINENO"; then :
8040   eval "$as_gl_Symbol=yes"
8041 else
8042   eval "$as_gl_Symbol=no"
8043 fi
8044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045 fi
8046 eval ac_res=\$$as_gl_Symbol
8047                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8048 $as_echo "$ac_res" >&6; }
8049      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
8050   cat >>confdefs.h <<_ACEOF
8051 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8052 _ACEOF
8053
8054                      eval ac_cv_have_decl_$gl_func=yes
8055 fi
8056       done
8057
8058
8059
8060   GNULIB_GETADDRINFO=0;
8061     HAVE_STRUCT_ADDRINFO=1;
8062   HAVE_DECL_FREEADDRINFO=1;
8063   HAVE_DECL_GAI_STRERROR=1;
8064   HAVE_DECL_GETADDRINFO=1;
8065   HAVE_DECL_GETNAMEINFO=1;
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
8091
8092
8093      if test $gl_cv_have_include_next = yes; then
8094        gl_cv_next_netdb_h='<'netdb.h'>'
8095      else
8096        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
8097 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
8098 if ${gl_cv_next_netdb_h+:} false; then :
8099   $as_echo_n "(cached) " >&6
8100 else
8101
8102           if test $ac_cv_header_netdb_h = yes; then
8103             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h.  */
8105 #include <netdb.h>
8106
8107 _ACEOF
8108                                                                                                 case "$host_os" in
8109               aix*) gl_absname_cpp="$ac_cpp -C" ;;
8110               *)    gl_absname_cpp="$ac_cpp" ;;
8111             esac
8112                                                 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8113                sed -n '\#/netdb.h#{
8114                  s#.*"\(.*/netdb.h\)".*#\1#
8115                  s#^/[^/]#//&#
8116                  p
8117                  q
8118                }'`'"'
8119           else
8120             gl_cv_next_netdb_h='<'netdb.h'>'
8121           fi
8122
8123 fi
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
8125 $as_echo "$gl_cv_next_netdb_h" >&6; }
8126      fi
8127      NEXT_NETDB_H=$gl_cv_next_netdb_h
8128
8129      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8130        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8131        gl_next_as_first_directive='<'netdb.h'>'
8132      else
8133        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8134        gl_next_as_first_directive=$gl_cv_next_netdb_h
8135      fi
8136      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
8137
8138
8139
8140   if test $ac_cv_header_netdb_h = yes; then
8141     HAVE_NETDB_H=1
8142   else
8143     HAVE_NETDB_H=0
8144   fi
8145
8146
8147
8148     for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
8149     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8151 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8152 if eval \${$as_gl_Symbol+:} false; then :
8153   $as_echo_n "(cached) " >&6
8154 else
8155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h.  */
8157 #include <netdb.h>
8158 int
8159 main ()
8160 {
8161 #undef $gl_func
8162   (void) $gl_func;
8163   ;
8164   return 0;
8165 }
8166 _ACEOF
8167 if ac_fn_c_try_compile "$LINENO"; then :
8168   eval "$as_gl_Symbol=yes"
8169 else
8170   eval "$as_gl_Symbol=no"
8171 fi
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173 fi
8174 eval ac_res=\$$as_gl_Symbol
8175                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8176 $as_echo "$ac_res" >&6; }
8177      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
8178   cat >>confdefs.h <<_ACEOF
8179 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8180 _ACEOF
8181
8182                      eval ac_cv_have_decl_$gl_func=yes
8183 fi
8184       done
8185
8186
8187
8188                   HOSTENT_LIB=
8189   gl_saved_libs="$LIBS"
8190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8191 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8192 if ${ac_cv_search_gethostbyname+:} false; then :
8193   $as_echo_n "(cached) " >&6
8194 else
8195   ac_func_search_save_LIBS=$LIBS
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h.  */
8198
8199 /* Override any GCC internal prototype to avoid an error.
8200    Use char because int might match the return type of a GCC
8201    builtin and then its argument prototype would still apply.  */
8202 #ifdef __cplusplus
8203 extern "C"
8204 #endif
8205 char gethostbyname ();
8206 int
8207 main ()
8208 {
8209 return gethostbyname ();
8210   ;
8211   return 0;
8212 }
8213 _ACEOF
8214 for ac_lib in '' nsl network net; do
8215   if test -z "$ac_lib"; then
8216     ac_res="none required"
8217   else
8218     ac_res=-l$ac_lib
8219     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8220   fi
8221   if ac_fn_c_try_link "$LINENO"; then :
8222   ac_cv_search_gethostbyname=$ac_res
8223 fi
8224 rm -f core conftest.err conftest.$ac_objext \
8225     conftest$ac_exeext
8226   if ${ac_cv_search_gethostbyname+:} false; then :
8227   break
8228 fi
8229 done
8230 if ${ac_cv_search_gethostbyname+:} false; then :
8231
8232 else
8233   ac_cv_search_gethostbyname=no
8234 fi
8235 rm conftest.$ac_ext
8236 LIBS=$ac_func_search_save_LIBS
8237 fi
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8239 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8240 ac_res=$ac_cv_search_gethostbyname
8241 if test "$ac_res" != no; then :
8242   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8243   if test "$ac_cv_search_gethostbyname" != "none required"; then
8244        HOSTENT_LIB="$ac_cv_search_gethostbyname"
8245      fi
8246 fi
8247
8248   LIBS="$gl_saved_libs"
8249   if test -z "$HOSTENT_LIB"; then
8250     for ac_func in gethostbyname
8251 do :
8252   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8253 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8254   cat >>confdefs.h <<_ACEOF
8255 #define HAVE_GETHOSTBYNAME 1
8256 _ACEOF
8257
8258 else
8259
8260       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
8261 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
8262 if ${gl_cv_w32_gethostbyname+:} false; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265   gl_cv_w32_gethostbyname=no
8266          gl_save_LIBS="$LIBS"
8267          LIBS="$LIBS -lws2_32"
8268          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h.  */
8270
8271 #ifdef HAVE_WINSOCK2_H
8272 #include <winsock2.h>
8273 #endif
8274 #include <stddef.h>
8275
8276 int
8277 main ()
8278 {
8279 gethostbyname(NULL);
8280   ;
8281   return 0;
8282 }
8283 _ACEOF
8284 if ac_fn_c_try_link "$LINENO"; then :
8285   gl_cv_w32_gethostbyname=yes
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext \
8288     conftest$ac_exeext conftest.$ac_ext
8289          LIBS="$gl_save_LIBS"
8290
8291 fi
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
8293 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
8294       if test "$gl_cv_w32_gethostbyname" = "yes"; then
8295         HOSTENT_LIB="-lws2_32"
8296       fi
8297
8298 fi
8299 done
8300
8301   fi
8302
8303
8304
8305                       SERVENT_LIB=
8306   gl_saved_libs="$LIBS"
8307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
8308 $as_echo_n "checking for library containing getservbyname... " >&6; }
8309 if ${ac_cv_search_getservbyname+:} false; then :
8310   $as_echo_n "(cached) " >&6
8311 else
8312   ac_func_search_save_LIBS=$LIBS
8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314 /* end confdefs.h.  */
8315
8316 /* Override any GCC internal prototype to avoid an error.
8317    Use char because int might match the return type of a GCC
8318    builtin and then its argument prototype would still apply.  */
8319 #ifdef __cplusplus
8320 extern "C"
8321 #endif
8322 char getservbyname ();
8323 int
8324 main ()
8325 {
8326 return getservbyname ();
8327   ;
8328   return 0;
8329 }
8330 _ACEOF
8331 for ac_lib in '' socket network net; do
8332   if test -z "$ac_lib"; then
8333     ac_res="none required"
8334   else
8335     ac_res=-l$ac_lib
8336     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8337   fi
8338   if ac_fn_c_try_link "$LINENO"; then :
8339   ac_cv_search_getservbyname=$ac_res
8340 fi
8341 rm -f core conftest.err conftest.$ac_objext \
8342     conftest$ac_exeext
8343   if ${ac_cv_search_getservbyname+:} false; then :
8344   break
8345 fi
8346 done
8347 if ${ac_cv_search_getservbyname+:} false; then :
8348
8349 else
8350   ac_cv_search_getservbyname=no
8351 fi
8352 rm conftest.$ac_ext
8353 LIBS=$ac_func_search_save_LIBS
8354 fi
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
8356 $as_echo "$ac_cv_search_getservbyname" >&6; }
8357 ac_res=$ac_cv_search_getservbyname
8358 if test "$ac_res" != no; then :
8359   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8360   if test "$ac_cv_search_getservbyname" != "none required"; then
8361        SERVENT_LIB="$ac_cv_search_getservbyname"
8362      fi
8363 fi
8364
8365   LIBS="$gl_saved_libs"
8366   if test -z "$SERVENT_LIB"; then
8367     for ac_func in getservbyname
8368 do :
8369   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
8370 if test "x$ac_cv_func_getservbyname" = xyes; then :
8371   cat >>confdefs.h <<_ACEOF
8372 #define HAVE_GETSERVBYNAME 1
8373 _ACEOF
8374
8375 else
8376
8377       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
8378 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
8379 if ${gl_cv_w32_getservbyname+:} false; then :
8380   $as_echo_n "(cached) " >&6
8381 else
8382   gl_cv_w32_getservbyname=no
8383          gl_save_LIBS="$LIBS"
8384          LIBS="$LIBS -lws2_32"
8385          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h.  */
8387
8388 #ifdef HAVE_WINSOCK2_H
8389 #include <winsock2.h>
8390 #endif
8391 #include <stddef.h>
8392
8393 int
8394 main ()
8395 {
8396 getservbyname(NULL,NULL);
8397   ;
8398   return 0;
8399 }
8400 _ACEOF
8401 if ac_fn_c_try_link "$LINENO"; then :
8402   gl_cv_w32_getservbyname=yes
8403 fi
8404 rm -f core conftest.err conftest.$ac_objext \
8405     conftest$ac_exeext conftest.$ac_ext
8406          LIBS="$gl_save_LIBS"
8407
8408 fi
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
8410 $as_echo "$gl_cv_w32_getservbyname" >&6; }
8411       if test "$gl_cv_w32_getservbyname" = "yes"; then
8412         SERVENT_LIB="-lws2_32"
8413       fi
8414
8415 fi
8416 done
8417
8418   fi
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429   :
8430
8431
8432
8433
8434
8435
8436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
8437 $as_echo_n "checking for IPv4 sockets... " >&6; }
8438   if ${gl_cv_socket_ipv4+:} false; then :
8439   $as_echo_n "(cached) " >&6
8440 else
8441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h.  */
8443 #include <sys/types.h>
8444 #ifdef HAVE_SYS_SOCKET_H
8445 #include <sys/socket.h>
8446 #endif
8447 #ifdef HAVE_NETINET_IN_H
8448 #include <netinet/in.h>
8449 #endif
8450 #ifdef HAVE_WINSOCK2_H
8451 #include <winsock2.h>
8452 #endif
8453 int
8454 main ()
8455 {
8456 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
8457  if (&x && &y && &z) return 0;
8458   ;
8459   return 0;
8460 }
8461 _ACEOF
8462 if ac_fn_c_try_compile "$LINENO"; then :
8463   gl_cv_socket_ipv4=yes
8464 else
8465   gl_cv_socket_ipv4=no
8466 fi
8467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468 fi
8469
8470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
8471 $as_echo "$gl_cv_socket_ipv4" >&6; }
8472   if test $gl_cv_socket_ipv4 = yes; then
8473
8474 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
8475
8476   fi
8477
8478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
8479 $as_echo_n "checking for IPv6 sockets... " >&6; }
8480   if ${gl_cv_socket_ipv6+:} false; then :
8481   $as_echo_n "(cached) " >&6
8482 else
8483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h.  */
8485 #include <sys/types.h>
8486 #ifdef HAVE_SYS_SOCKET_H
8487 #include <sys/socket.h>
8488 #endif
8489 #ifdef HAVE_NETINET_IN_H
8490 #include <netinet/in.h>
8491 #endif
8492 #ifdef HAVE_WINSOCK2_H
8493 #include <winsock2.h>
8494 #endif
8495 #ifdef HAVE_WS2TCPIP_H
8496 #include <ws2tcpip.h>
8497 #endif
8498 int
8499 main ()
8500 {
8501 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
8502  if (&x && &y && &z) return 0;
8503   ;
8504   return 0;
8505 }
8506 _ACEOF
8507 if ac_fn_c_try_compile "$LINENO"; then :
8508   gl_cv_socket_ipv6=yes
8509 else
8510   gl_cv_socket_ipv6=no
8511 fi
8512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8513 fi
8514
8515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
8516 $as_echo "$gl_cv_socket_ipv6" >&6; }
8517   if test $gl_cv_socket_ipv6 = yes; then
8518
8519 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
8520
8521   fi
8522
8523
8524
8525
8526
8527     :
8528
8529
8530       gl_save_LIBS=$LIBS
8531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
8532 $as_echo_n "checking for library containing inet_ntop... " >&6; }
8533 if ${ac_cv_search_inet_ntop+:} false; then :
8534   $as_echo_n "(cached) " >&6
8535 else
8536   ac_func_search_save_LIBS=$LIBS
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h.  */
8539
8540 /* Override any GCC internal prototype to avoid an error.
8541    Use char because int might match the return type of a GCC
8542    builtin and then its argument prototype would still apply.  */
8543 #ifdef __cplusplus
8544 extern "C"
8545 #endif
8546 char inet_ntop ();
8547 int
8548 main ()
8549 {
8550 return inet_ntop ();
8551   ;
8552   return 0;
8553 }
8554 _ACEOF
8555 for ac_lib in '' nsl; do
8556   if test -z "$ac_lib"; then
8557     ac_res="none required"
8558   else
8559     ac_res=-l$ac_lib
8560     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8561   fi
8562   if ac_fn_c_try_link "$LINENO"; then :
8563   ac_cv_search_inet_ntop=$ac_res
8564 fi
8565 rm -f core conftest.err conftest.$ac_objext \
8566     conftest$ac_exeext
8567   if ${ac_cv_search_inet_ntop+:} false; then :
8568   break
8569 fi
8570 done
8571 if ${ac_cv_search_inet_ntop+:} false; then :
8572
8573 else
8574   ac_cv_search_inet_ntop=no
8575 fi
8576 rm conftest.$ac_ext
8577 LIBS=$ac_func_search_save_LIBS
8578 fi
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
8580 $as_echo "$ac_cv_search_inet_ntop" >&6; }
8581 ac_res=$ac_cv_search_inet_ntop
8582 if test "$ac_res" != no; then :
8583   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8584
8585 else
8586
8587
8588
8589
8590
8591
8592
8593
8594   for ac_func in inet_ntop
8595 do :
8596   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
8597 if test "x$ac_cv_func_inet_ntop" = xyes; then :
8598   cat >>confdefs.h <<_ACEOF
8599 #define HAVE_INET_NTOP 1
8600 _ACEOF
8601
8602 else
8603
8604     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
8605
8606 fi
8607 done
8608
8609
8610 fi
8611
8612   LIBS=$gl_save_LIBS
8613   INET_NTOP_LIB=
8614   if test "$ac_cv_search_inet_ntop" != "no" &&
8615      test "$ac_cv_search_inet_ntop" != "none required"; then
8616     INET_NTOP_LIB="$ac_cv_search_inet_ntop"
8617   fi
8618
8619
8620
8621   ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
8622 "
8623 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
8624   ac_have_decl=1
8625 else
8626   ac_have_decl=0
8627 fi
8628
8629 cat >>confdefs.h <<_ACEOF
8630 #define HAVE_DECL_INET_NTOP $ac_have_decl
8631 _ACEOF
8632
8633   if test $ac_cv_have_decl_inet_ntop = no; then
8634     HAVE_DECL_INET_NTOP=0
8635   fi
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653   :
8654
8655
8656
8657
8658
8659
8660
8661      if test $gl_cv_have_include_next = yes; then
8662        gl_cv_next_getopt_h='<'getopt.h'>'
8663      else
8664        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
8665 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
8666 if ${gl_cv_next_getopt_h+:} false; then :
8667   $as_echo_n "(cached) " >&6
8668 else
8669
8670           if test $ac_cv_header_getopt_h = yes; then
8671             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h.  */
8673 #include <getopt.h>
8674
8675 _ACEOF
8676                                                                                                 case "$host_os" in
8677               aix*) gl_absname_cpp="$ac_cpp -C" ;;
8678               *)    gl_absname_cpp="$ac_cpp" ;;
8679             esac
8680                                                 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8681                sed -n '\#/getopt.h#{
8682                  s#.*"\(.*/getopt.h\)".*#\1#
8683                  s#^/[^/]#//&#
8684                  p
8685                  q
8686                }'`'"'
8687           else
8688             gl_cv_next_getopt_h='<'getopt.h'>'
8689           fi
8690
8691 fi
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
8693 $as_echo "$gl_cv_next_getopt_h" >&6; }
8694      fi
8695      NEXT_GETOPT_H=$gl_cv_next_getopt_h
8696
8697      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8698        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8699        gl_next_as_first_directive='<'getopt.h'>'
8700      else
8701        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8702        gl_next_as_first_directive=$gl_cv_next_getopt_h
8703      fi
8704      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
8705
8706
8707
8708
8709   :
8710
8711
8712
8713
8714
8715   if test $ac_cv_header_getopt_h = yes; then
8716     HAVE_GETOPT_H=1
8717   else
8718     HAVE_GETOPT_H=0
8719   fi
8720
8721
8722   gl_replace_getopt=
8723
8724     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
8725     for ac_header in getopt.h
8726 do :
8727   ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
8728 if test "x$ac_cv_header_getopt_h" = xyes; then :
8729   cat >>confdefs.h <<_ACEOF
8730 #define HAVE_GETOPT_H 1
8731 _ACEOF
8732
8733 else
8734   gl_replace_getopt=yes
8735 fi
8736
8737 done
8738
8739   fi
8740
8741     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
8742     for ac_func in getopt_long_only
8743 do :
8744   ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
8745 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
8746   cat >>confdefs.h <<_ACEOF
8747 #define HAVE_GETOPT_LONG_ONLY 1
8748 _ACEOF
8749
8750 else
8751   gl_replace_getopt=yes
8752 fi
8753 done
8754
8755   fi
8756
8757               if test -z "$gl_replace_getopt"; then
8758     ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
8759 "
8760 if test "x$ac_cv_have_decl_optreset" = xyes; then :
8761   ac_have_decl=1
8762 else
8763   ac_have_decl=0
8764 fi
8765
8766 cat >>confdefs.h <<_ACEOF
8767 #define HAVE_DECL_OPTRESET $ac_have_decl
8768 _ACEOF
8769 if test $ac_have_decl = 1; then :
8770
8771 else
8772   ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
8773 "
8774 if test "x$ac_cv_have_decl_getopt_clip" = xyes; then :
8775   ac_have_decl=1
8776 else
8777   ac_have_decl=0
8778 fi
8779
8780 cat >>confdefs.h <<_ACEOF
8781 #define HAVE_DECL_GETOPT_CLIP $ac_have_decl
8782 _ACEOF
8783
8784
8785 fi
8786
8787   fi
8788
8789                     if test -z "$gl_replace_getopt"; then
8790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
8791 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
8792 if ${gl_cv_func_getopt_posix+:} false; then :
8793   $as_echo_n "(cached) " >&6
8794 else
8795
8796                 if test "$cross_compiling" = yes; then :
8797   case "$host_os" in
8798              mingw*)         gl_cv_func_getopt_posix="guessing no";;
8799              darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
8800              *)              gl_cv_func_getopt_posix="guessing yes";;
8801            esac
8802
8803 else
8804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h.  */
8806
8807 #include <unistd.h>
8808 #include <stdlib.h>
8809 #include <string.h>
8810
8811 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
8812 # define OPTIND_MIN 0
8813 #else
8814 # define OPTIND_MIN 1
8815 #endif
8816
8817 int
8818 main ()
8819 {
8820   {
8821     int argc = 0;
8822     char *argv[10];
8823     int c;
8824
8825     argv[argc++] = "program";
8826     argv[argc++] = "-a";
8827     argv[argc++] = "foo";
8828     argv[argc++] = "bar";
8829     argv[argc] = NULL;
8830     optind = OPTIND_MIN;
8831     opterr = 0;
8832
8833     c = getopt (argc, argv, "ab");
8834     if (!(c == 'a'))
8835       return 1;
8836     c = getopt (argc, argv, "ab");
8837     if (!(c == -1))
8838       return 2;
8839     if (!(optind == 2))
8840       return 3;
8841   }
8842   /* Some internal state exists at this point.  */
8843   {
8844     int argc = 0;
8845     char *argv[10];
8846     int c;
8847
8848     argv[argc++] = "program";
8849     argv[argc++] = "donald";
8850     argv[argc++] = "-p";
8851     argv[argc++] = "billy";
8852     argv[argc++] = "duck";
8853     argv[argc++] = "-a";
8854     argv[argc++] = "bar";
8855     argv[argc] = NULL;
8856     optind = OPTIND_MIN;
8857     opterr = 0;
8858
8859     c = getopt (argc, argv, "+abp:q:");
8860     if (!(c == -1))
8861       return 4;
8862     if (!(strcmp (argv[0], "program") == 0))
8863       return 5;
8864     if (!(strcmp (argv[1], "donald") == 0))
8865       return 6;
8866     if (!(strcmp (argv[2], "-p") == 0))
8867       return 7;
8868     if (!(strcmp (argv[3], "billy") == 0))
8869       return 8;
8870     if (!(strcmp (argv[4], "duck") == 0))
8871       return 9;
8872     if (!(strcmp (argv[5], "-a") == 0))
8873       return 10;
8874     if (!(strcmp (argv[6], "bar") == 0))
8875       return 11;
8876     if (!(optind == 1))
8877       return 12;
8878   }
8879   /* Detect MacOS 10.5, AIX 7.1 bug.  */
8880   {
8881     char *argv[3] = { "program", "-ab", NULL };
8882     optind = OPTIND_MIN;
8883     opterr = 0;
8884     if (getopt (2, argv, "ab:") != 'a')
8885       return 13;
8886     if (getopt (2, argv, "ab:") != '?')
8887       return 14;
8888     if (optopt != 'b')
8889       return 15;
8890     if (optind != 2)
8891       return 16;
8892   }
8893
8894   return 0;
8895 }
8896
8897 _ACEOF
8898 if ac_fn_c_try_run "$LINENO"; then :
8899   gl_cv_func_getopt_posix=yes
8900 else
8901   gl_cv_func_getopt_posix=no
8902 fi
8903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8904   conftest.$ac_objext conftest.beam conftest.$ac_ext
8905 fi
8906
8907
8908 fi
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
8910 $as_echo "$gl_cv_func_getopt_posix" >&6; }
8911     case "$gl_cv_func_getopt_posix" in
8912       *no) gl_replace_getopt=yes ;;
8913     esac
8914   fi
8915
8916   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
8917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
8918 $as_echo_n "checking for working GNU getopt function... " >&6; }
8919 if ${gl_cv_func_getopt_gnu+:} false; then :
8920   $as_echo_n "(cached) " >&6
8921 else
8922   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
8923        # optstring is necessary for programs like m4 that have POSIX-mandated
8924        # semantics for supporting options interspersed with files.
8925        # Also, since getopt_long is a GNU extension, we require optind=0.
8926        # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
8927        # so take care to revert to the correct (non-)export state.
8928        gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
8929        case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
8930          xx) gl_had_POSIXLY_CORRECT=exported ;;
8931          x)  gl_had_POSIXLY_CORRECT=yes      ;;
8932          *)  gl_had_POSIXLY_CORRECT=         ;;
8933        esac
8934        POSIXLY_CORRECT=1
8935        export POSIXLY_CORRECT
8936        if test "$cross_compiling" = yes; then :
8937            case $host_os:$ac_cv_have_decl_optreset in
8938            *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
8939            *:yes)               gl_cv_func_getopt_gnu=no;;
8940            *)                   gl_cv_func_getopt_gnu=yes;;
8941          esac
8942
8943 else
8944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h.  */
8946 #include <getopt.h>
8947                            #include <stddef.h>
8948                            #include <string.h>
8949
8950 int
8951 main ()
8952 {
8953
8954              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
8955                 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
8956                 OSF/1 5.1, Solaris 10.  */
8957              {
8958                char *myargv[3];
8959                myargv[0] = "conftest";
8960                myargv[1] = "-+";
8961                myargv[2] = 0;
8962                opterr = 0;
8963                if (getopt (2, myargv, "+a") != '?')
8964                  return 1;
8965              }
8966              /* This code succeeds on glibc 2.8, mingw,
8967                 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
8968                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
8969              {
8970                char *argv[] = { "program", "-p", "foo", "bar", NULL };
8971
8972                optind = 1;
8973                if (getopt (4, argv, "p::") != 'p')
8974                  return 2;
8975                if (optarg != NULL)
8976                  return 3;
8977                if (getopt (4, argv, "p::") != -1)
8978                  return 4;
8979                if (optind != 2)
8980                  return 5;
8981              }
8982              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
8983              {
8984                char *argv[] = { "program", "foo", "-p", NULL };
8985                optind = 0;
8986                if (getopt (3, argv, "-p") != 1)
8987                  return 6;
8988                if (getopt (3, argv, "-p") != 'p')
8989                  return 7;
8990              }
8991              /* This code fails on glibc 2.11.  */
8992              {
8993                char *argv[] = { "program", "-b", "-a", NULL };
8994                optind = opterr = 0;
8995                if (getopt (3, argv, "+:a:b") != 'b')
8996                  return 8;
8997                if (getopt (3, argv, "+:a:b") != ':')
8998                  return 9;
8999              }
9000              return 0;
9001
9002   ;
9003   return 0;
9004 }
9005 _ACEOF
9006 if ac_fn_c_try_run "$LINENO"; then :
9007   gl_cv_func_getopt_gnu=yes
9008 else
9009   gl_cv_func_getopt_gnu=no
9010 fi
9011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9012   conftest.$ac_objext conftest.beam conftest.$ac_ext
9013 fi
9014
9015        case $gl_had_POSIXLY_CORRECT in
9016          exported) ;;
9017          yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
9018          *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
9019        esac
9020
9021 fi
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
9023 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
9024     if test "$gl_cv_func_getopt_gnu" = "no"; then
9025       gl_replace_getopt=yes
9026     fi
9027   fi
9028
9029
9030       ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
9031 if test "x$ac_cv_have_decl_getenv" = xyes; then :
9032   ac_have_decl=1
9033 else
9034   ac_have_decl=0
9035 fi
9036
9037 cat >>confdefs.h <<_ACEOF
9038 #define HAVE_DECL_GETENV $ac_have_decl
9039 _ACEOF
9040
9041
9042
9043
9044
9045
9046
9047   if test -n "$gl_replace_getopt"; then :
9048
9049
9050
9051   GETOPT_H=getopt.h
9052
9053 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
9054
9055
9056
9057     GNULIB_UNISTD_H_GETOPT=1
9058
9059
9060
9061
9062
9063
9064
9065
9066   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
9077
9078
9079
9080   :
9081
9082
9083
9084
9085
9086
9087
9088
9089 fi
9090
9091
9092
9093   GNULIB_GETTIMEOFDAY=0;
9094     HAVE_GETTIMEOFDAY=1;
9095   HAVE_STRUCT_TIMEVAL=1;
9096   HAVE_SYS_TIME_H=1;
9097   REPLACE_GETTIMEOFDAY=0;
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108   :
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118   :
9119
9120
9121
9122
9123
9124
9125
9126      if test $gl_cv_have_include_next = yes; then
9127        gl_cv_next_sys_time_h='<'sys/time.h'>'
9128      else
9129        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9130 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9131 if ${gl_cv_next_sys_time_h+:} false; then :
9132   $as_echo_n "(cached) " >&6
9133 else
9134
9135           if test $ac_cv_header_sys_time_h = yes; then
9136             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h.  */
9138 #include <sys/time.h>
9139
9140 _ACEOF
9141                                                                                                 case "$host_os" in
9142               aix*) gl_absname_cpp="$ac_cpp -C" ;;
9143               *)    gl_absname_cpp="$ac_cpp" ;;
9144             esac
9145                                                 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9146                sed -n '\#/sys/time.h#{
9147                  s#.*"\(.*/sys/time.h\)".*#\1#
9148                  s#^/[^/]#//&#
9149                  p
9150                  q
9151                }'`'"'
9152           else
9153             gl_cv_next_sys_time_h='<'sys/time.h'>'
9154           fi
9155
9156 fi
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9158 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9159      fi
9160      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
9161
9162      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9163        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9164        gl_next_as_first_directive='<'sys/time.h'>'
9165      else
9166        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9167        gl_next_as_first_directive=$gl_cv_next_sys_time_h
9168      fi
9169      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
9170
9171
9172
9173
9174   if test $ac_cv_header_sys_time_h != yes; then
9175     HAVE_SYS_TIME_H=0
9176   fi
9177
9178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9179 $as_echo_n "checking for struct timeval... " >&6; }
9180 if ${gl_cv_sys_struct_timeval+:} false; then :
9181   $as_echo_n "(cached) " >&6
9182 else
9183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h.  */
9185 #if HAVE_SYS_TIME_H
9186              #include <sys/time.h>
9187             #endif
9188             #include <time.h>
9189
9190 int
9191 main ()
9192 {
9193 static struct timeval x; x.tv_sec = x.tv_usec;
9194   ;
9195   return 0;
9196 }
9197 _ACEOF
9198 if ac_fn_c_try_compile "$LINENO"; then :
9199   gl_cv_sys_struct_timeval=yes
9200 else
9201   gl_cv_sys_struct_timeval=no
9202 fi
9203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9204 fi
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
9206 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
9207   if test $gl_cv_sys_struct_timeval != yes; then
9208     HAVE_STRUCT_TIMEVAL=0
9209   fi
9210
9211
9212     for gl_func in gettimeofday; do
9213     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9215 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9216 if eval \${$as_gl_Symbol+:} false; then :
9217   $as_echo_n "(cached) " >&6
9218 else
9219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h.  */
9221
9222 #if HAVE_SYS_TIME_H
9223 # include <sys/time.h>
9224 #endif
9225 #include <time.h>
9226
9227 int
9228 main ()
9229 {
9230 #undef $gl_func
9231   (void) $gl_func;
9232   ;
9233   return 0;
9234 }
9235 _ACEOF
9236 if ac_fn_c_try_compile "$LINENO"; then :
9237   eval "$as_gl_Symbol=yes"
9238 else
9239   eval "$as_gl_Symbol=no"
9240 fi
9241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9242 fi
9243 eval ac_res=\$$as_gl_Symbol
9244                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9245 $as_echo "$ac_res" >&6; }
9246      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
9247   cat >>confdefs.h <<_ACEOF
9248 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9249 _ACEOF
9250
9251                      eval ac_cv_have_decl_$gl_func=yes
9252 fi
9253       done
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265   GNULIB_NL_LANGINFO=0;
9266     HAVE_NL_LANGINFO=1;
9267   REPLACE_NL_LANGINFO=0;
9268
9269
9270
9271
9272
9273
9274
9275
9276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9277 $as_echo_n "checking for working fcntl.h... " >&6; }
9278 if ${gl_cv_header_working_fcntl_h+:} false; then :
9279   $as_echo_n "(cached) " >&6
9280 else
9281   if test "$cross_compiling" = yes; then :
9282   gl_cv_header_working_fcntl_h=cross-compiling
9283 else
9284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285 /* end confdefs.h.  */
9286 #include <sys/types.h>
9287            #include <sys/stat.h>
9288            #include <unistd.h>
9289            #include <fcntl.h>
9290            #ifndef O_NOATIME
9291             #define O_NOATIME 0
9292            #endif
9293            #ifndef O_NOFOLLOW
9294             #define O_NOFOLLOW 0
9295            #endif
9296            static int const constants[] =
9297             {
9298               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9299               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9300             };
9301
9302 int
9303 main ()
9304 {
9305
9306             int status = !constants;
9307             {
9308               static char const sym[] = "conftest.sym";
9309               if (symlink (".", sym) != 0
9310                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
9311                 status |= 32;
9312               unlink (sym);
9313             }
9314             {
9315               static char const file[] = "confdefs.h";
9316               int fd = open (file, O_RDONLY | O_NOATIME);
9317               char c;
9318               struct stat st0, st1;
9319               if (fd < 0
9320                   || fstat (fd, &st0) != 0
9321                   || sleep (1) != 0
9322                   || read (fd, &c, 1) != 1
9323                   || close (fd) != 0
9324                   || stat (file, &st1) != 0
9325                   || st0.st_atime != st1.st_atime)
9326                 status |= 64;
9327             }
9328             return status;
9329   ;
9330   return 0;
9331 }
9332 _ACEOF
9333 if ac_fn_c_try_run "$LINENO"; then :
9334   gl_cv_header_working_fcntl_h=yes
9335 else
9336   case $? in #(
9337         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9338         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9339         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9340          *) gl_cv_header_working_fcntl_h='no';;
9341         esac
9342 fi
9343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9344   conftest.$ac_objext conftest.beam conftest.$ac_ext
9345 fi
9346
9347 fi
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9349 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9350
9351   case $gl_cv_header_working_fcntl_h in #(
9352   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9353   *) ac_val=1;;
9354   esac
9355
9356 cat >>confdefs.h <<_ACEOF
9357 #define HAVE_WORKING_O_NOATIME $ac_val
9358 _ACEOF
9359
9360
9361   case $gl_cv_header_working_fcntl_h in #(
9362   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9363   *) ac_val=1;;
9364   esac
9365
9366 cat >>confdefs.h <<_ACEOF
9367 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9368 _ACEOF
9369
9370
9371
9372       ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9373 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
9374   ac_have_decl=1
9375 else
9376   ac_have_decl=0
9377 fi
9378
9379 cat >>confdefs.h <<_ACEOF
9380 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9381 _ACEOF
9382
9383
9384
9385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
9386 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
9387 if ${ac_cv_gnu_library_2_1+:} false; then :
9388   $as_echo_n "(cached) " >&6
9389 else
9390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391 /* end confdefs.h.  */
9392
9393 #include <features.h>
9394 #ifdef __GNU_LIBRARY__
9395  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9396   Lucky GNU user
9397  #endif
9398 #endif
9399
9400 _ACEOF
9401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9402   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
9403   ac_cv_gnu_library_2_1=yes
9404 else
9405   ac_cv_gnu_library_2_1=no
9406 fi
9407 rm -f conftest*
9408
9409
9410
9411 fi
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9413 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9414
9415     GLIBC21="$ac_cv_gnu_library_2_1"
9416
9417
9418
9419       if test "X$prefix" = "XNONE"; then
9420     acl_final_prefix="$ac_default_prefix"
9421   else
9422     acl_final_prefix="$prefix"
9423   fi
9424   if test "X$exec_prefix" = "XNONE"; then
9425     acl_final_exec_prefix='${prefix}'
9426   else
9427     acl_final_exec_prefix="$exec_prefix"
9428   fi
9429   acl_save_prefix="$prefix"
9430   prefix="$acl_final_prefix"
9431   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9432   prefix="$acl_save_prefix"
9433
9434
9435 # Check whether --with-gnu-ld was given.
9436 if test "${with_gnu_ld+set}" = set; then :
9437   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9438 else
9439   with_gnu_ld=no
9440 fi
9441
9442 # Prepare PATH_SEPARATOR.
9443 # The user is always right.
9444 if test "${PATH_SEPARATOR+set}" != set; then
9445   echo "#! /bin/sh" >conf$$.sh
9446   echo  "exit 0"   >>conf$$.sh
9447   chmod +x conf$$.sh
9448   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9449     PATH_SEPARATOR=';'
9450   else
9451     PATH_SEPARATOR=:
9452   fi
9453   rm -f conf$$.sh
9454 fi
9455 ac_prog=ld
9456 if test "$GCC" = yes; then
9457   # Check if gcc -print-prog-name=ld gives a path.
9458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9459 $as_echo_n "checking for ld used by GCC... " >&6; }
9460   case $host in
9461   *-*-mingw*)
9462     # gcc leaves a trailing carriage return which upsets mingw
9463     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9464   *)
9465     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9466   esac
9467   case $ac_prog in
9468     # Accept absolute paths.
9469     [\\/]* | [A-Za-z]:[\\/]*)
9470       re_direlt='/[^/][^/]*/\.\./'
9471       # Canonicalize the path of ld
9472       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9473       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9474         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9475       done
9476       test -z "$LD" && LD="$ac_prog"
9477       ;;
9478   "")
9479     # If it fails, then pretend we aren't using GCC.
9480     ac_prog=ld
9481     ;;
9482   *)
9483     # If it is relative, then search for the first ld in PATH.
9484     with_gnu_ld=unknown
9485     ;;
9486   esac
9487 elif test "$with_gnu_ld" = yes; then
9488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9489 $as_echo_n "checking for GNU ld... " >&6; }
9490 else
9491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9492 $as_echo_n "checking for non-GNU ld... " >&6; }
9493 fi
9494 if ${acl_cv_path_LD+:} false; then :
9495   $as_echo_n "(cached) " >&6
9496 else
9497   if test -z "$LD"; then
9498   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9499   for ac_dir in $PATH; do
9500     test -z "$ac_dir" && ac_dir=.
9501     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9502       acl_cv_path_LD="$ac_dir/$ac_prog"
9503       # Check to see if the program is GNU ld.  I'd rather use --version,
9504       # but apparently some GNU ld's only accept -v.
9505       # Break only if it was the GNU/non-GNU ld that we prefer.
9506       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9507       *GNU* | *'with BFD'*)
9508         test "$with_gnu_ld" != no && break ;;
9509       *)
9510         test "$with_gnu_ld" != yes && break ;;
9511       esac
9512     fi
9513   done
9514   IFS="$ac_save_ifs"
9515 else
9516   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9517 fi
9518 fi
9519
9520 LD="$acl_cv_path_LD"
9521 if test -n "$LD"; then
9522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9523 $as_echo "$LD" >&6; }
9524 else
9525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9526 $as_echo "no" >&6; }
9527 fi
9528 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9530 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9531 if ${acl_cv_prog_gnu_ld+:} false; then :
9532   $as_echo_n "(cached) " >&6
9533 else
9534   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9535 case `$LD -v 2>&1 </dev/null` in
9536 *GNU* | *'with BFD'*)
9537   acl_cv_prog_gnu_ld=yes ;;
9538 *)
9539   acl_cv_prog_gnu_ld=no ;;
9540 esac
9541 fi
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9543 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9544 with_gnu_ld=$acl_cv_prog_gnu_ld
9545
9546
9547
9548
9549                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9550 $as_echo_n "checking for shared library run path origin... " >&6; }
9551 if ${acl_cv_rpath+:} false; then :
9552   $as_echo_n "(cached) " >&6
9553 else
9554
9555     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9556     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9557     . ./conftest.sh
9558     rm -f ./conftest.sh
9559     acl_cv_rpath=done
9560
9561 fi
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9563 $as_echo "$acl_cv_rpath" >&6; }
9564   wl="$acl_cv_wl"
9565   libext="$acl_cv_libext"
9566   shlibext="$acl_cv_shlibext"
9567   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9568   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9569   hardcode_direct="$acl_cv_hardcode_direct"
9570   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9571     # Check whether --enable-rpath was given.
9572 if test "${enable_rpath+set}" = set; then :
9573   enableval=$enable_rpath; :
9574 else
9575   enable_rpath=yes
9576 fi
9577
9578
9579
9580                   acl_libdirstem=lib
9581   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9582   if test -n "$searchpath"; then
9583     acl_save_IFS="${IFS=        }"; IFS=":"
9584     for searchdir in $searchpath; do
9585       if test -d "$searchdir"; then
9586         case "$searchdir" in
9587           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
9588           *) searchdir=`cd "$searchdir" && pwd`
9589              case "$searchdir" in
9590                */lib64 ) acl_libdirstem=lib64 ;;
9591              esac ;;
9592         esac
9593       fi
9594     done
9595     IFS="$acl_save_IFS"
9596   fi
9597
9598
9599
9600   gl_threads_api=none
9601   LIBTHREAD=
9602   LTLIBTHREAD=
9603   LIBMULTITHREAD=
9604   LTLIBMULTITHREAD=
9605   if test "$gl_use_threads" != no; then
9606         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
9607 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
9608 if ${gl_cv_have_weak+:} false; then :
9609   $as_echo_n "(cached) " >&6
9610 else
9611   gl_cv_have_weak=no
9612               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h.  */
9614 extern void xyzzy ();
9615 #pragma weak xyzzy
9616 int
9617 main ()
9618 {
9619 xyzzy();
9620   ;
9621   return 0;
9622 }
9623 _ACEOF
9624 if ac_fn_c_try_link "$LINENO"; then :
9625   gl_cv_have_weak=maybe
9626 fi
9627 rm -f core conftest.err conftest.$ac_objext \
9628     conftest$ac_exeext conftest.$ac_ext
9629        if test $gl_cv_have_weak = maybe; then
9630                            if test "$cross_compiling" = yes; then :
9631                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h.  */
9633 #ifdef __ELF__
9634                Extensible Linking Format
9635                #endif
9636
9637 _ACEOF
9638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9639   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
9640   gl_cv_have_weak="guessing yes"
9641 else
9642   gl_cv_have_weak="guessing no"
9643 fi
9644 rm -f conftest*
9645
9646
9647 else
9648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h.  */
9650
9651 #include <stdio.h>
9652 #pragma weak fputs
9653 int main ()
9654 {
9655   return (fputs == NULL);
9656 }
9657 _ACEOF
9658 if ac_fn_c_try_run "$LINENO"; then :
9659   gl_cv_have_weak=yes
9660 else
9661   gl_cv_have_weak=no
9662 fi
9663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9664   conftest.$ac_objext conftest.beam conftest.$ac_ext
9665 fi
9666
9667        fi
9668
9669 fi
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
9671 $as_echo "$gl_cv_have_weak" >&6; }
9672     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
9673       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
9674       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
9675       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9676 if test "x$ac_cv_header_pthread_h" = xyes; then :
9677   gl_have_pthread_h=yes
9678 else
9679   gl_have_pthread_h=no
9680 fi
9681
9682
9683       if test "$gl_have_pthread_h" = yes; then
9684         # Other possible tests:
9685         #   -lpthreads (FSU threads, PCthreads)
9686         #   -lgthreads
9687         gl_have_pthread=
9688         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
9689         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
9690         # the second one only in libpthread, and lock.c needs it.
9691         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h.  */
9693 #include <pthread.h>
9694 int
9695 main ()
9696 {
9697 pthread_mutex_lock((pthread_mutex_t*)0);
9698                pthread_mutexattr_init((pthread_mutexattr_t*)0);
9699   ;
9700   return 0;
9701 }
9702 _ACEOF
9703 if ac_fn_c_try_link "$LINENO"; then :
9704   gl_have_pthread=yes
9705 fi
9706 rm -f core conftest.err conftest.$ac_objext \
9707     conftest$ac_exeext conftest.$ac_ext
9708         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
9709         # since it is defined as a macro on OSF/1.)
9710         if test -n "$gl_have_pthread"; then
9711           # The program links fine without libpthread. But it may actually
9712           # need to link with libpthread in order to create multiple threads.
9713           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9714 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9715 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
9716   $as_echo_n "(cached) " >&6
9717 else
9718   ac_check_lib_save_LIBS=$LIBS
9719 LIBS="-lpthread  $LIBS"
9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h.  */
9722
9723 /* Override any GCC internal prototype to avoid an error.
9724    Use char because int might match the return type of a GCC
9725    builtin and then its argument prototype would still apply.  */
9726 #ifdef __cplusplus
9727 extern "C"
9728 #endif
9729 char pthread_kill ();
9730 int
9731 main ()
9732 {
9733 return pthread_kill ();
9734   ;
9735   return 0;
9736 }
9737 _ACEOF
9738 if ac_fn_c_try_link "$LINENO"; then :
9739   ac_cv_lib_pthread_pthread_kill=yes
9740 else
9741   ac_cv_lib_pthread_pthread_kill=no
9742 fi
9743 rm -f core conftest.err conftest.$ac_objext \
9744     conftest$ac_exeext conftest.$ac_ext
9745 LIBS=$ac_check_lib_save_LIBS
9746 fi
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9748 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9749 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
9750   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9751              # On Solaris and HP-UX, most pthread functions exist also in libc.
9752              # Therefore pthread_in_use() needs to actually try to create a
9753              # thread: pthread_create from libc will fail, whereas
9754              # pthread_create will actually create a thread.
9755              case "$host_os" in
9756                solaris* | hpux*)
9757
9758 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
9759
9760              esac
9761
9762 fi
9763
9764         else
9765           # Some library is needed. Try libpthread and libc_r.
9766           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
9767 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
9768 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
9769   $as_echo_n "(cached) " >&6
9770 else
9771   ac_check_lib_save_LIBS=$LIBS
9772 LIBS="-lpthread  $LIBS"
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h.  */
9775
9776 /* Override any GCC internal prototype to avoid an error.
9777    Use char because int might match the return type of a GCC
9778    builtin and then its argument prototype would still apply.  */
9779 #ifdef __cplusplus
9780 extern "C"
9781 #endif
9782 char pthread_kill ();
9783 int
9784 main ()
9785 {
9786 return pthread_kill ();
9787   ;
9788   return 0;
9789 }
9790 _ACEOF
9791 if ac_fn_c_try_link "$LINENO"; then :
9792   ac_cv_lib_pthread_pthread_kill=yes
9793 else
9794   ac_cv_lib_pthread_pthread_kill=no
9795 fi
9796 rm -f core conftest.err conftest.$ac_objext \
9797     conftest$ac_exeext conftest.$ac_ext
9798 LIBS=$ac_check_lib_save_LIBS
9799 fi
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
9801 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
9802 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
9803   gl_have_pthread=yes
9804              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
9805              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
9806 fi
9807
9808           if test -z "$gl_have_pthread"; then
9809             # For FreeBSD 4.
9810             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
9811 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
9812 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
9813   $as_echo_n "(cached) " >&6
9814 else
9815   ac_check_lib_save_LIBS=$LIBS
9816 LIBS="-lc_r  $LIBS"
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h.  */
9819
9820 /* Override any GCC internal prototype to avoid an error.
9821    Use char because int might match the return type of a GCC
9822    builtin and then its argument prototype would still apply.  */
9823 #ifdef __cplusplus
9824 extern "C"
9825 #endif
9826 char pthread_kill ();
9827 int
9828 main ()
9829 {
9830 return pthread_kill ();
9831   ;
9832   return 0;
9833 }
9834 _ACEOF
9835 if ac_fn_c_try_link "$LINENO"; then :
9836   ac_cv_lib_c_r_pthread_kill=yes
9837 else
9838   ac_cv_lib_c_r_pthread_kill=no
9839 fi
9840 rm -f core conftest.err conftest.$ac_objext \
9841     conftest$ac_exeext conftest.$ac_ext
9842 LIBS=$ac_check_lib_save_LIBS
9843 fi
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
9845 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
9846 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
9847   gl_have_pthread=yes
9848                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
9849                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
9850 fi
9851
9852           fi
9853         fi
9854         if test -n "$gl_have_pthread"; then
9855           gl_threads_api=posix
9856
9857 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
9858
9859           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
9860             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9861
9862 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
9863
9864               LIBTHREAD=
9865               LTLIBTHREAD=
9866             fi
9867           fi
9868         fi
9869       fi
9870     fi
9871     if test -z "$gl_have_pthread"; then
9872       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
9873         gl_have_solaristhread=
9874         gl_save_LIBS="$LIBS"
9875         LIBS="$LIBS -lthread"
9876         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877 /* end confdefs.h.  */
9878
9879 #include <thread.h>
9880 #include <synch.h>
9881
9882 int
9883 main ()
9884 {
9885 thr_self();
9886   ;
9887   return 0;
9888 }
9889 _ACEOF
9890 if ac_fn_c_try_link "$LINENO"; then :
9891   gl_have_solaristhread=yes
9892 fi
9893 rm -f core conftest.err conftest.$ac_objext \
9894     conftest$ac_exeext conftest.$ac_ext
9895         LIBS="$gl_save_LIBS"
9896         if test -n "$gl_have_solaristhread"; then
9897           gl_threads_api=solaris
9898           LIBTHREAD=-lthread
9899           LTLIBTHREAD=-lthread
9900           LIBMULTITHREAD="$LIBTHREAD"
9901           LTLIBMULTITHREAD="$LTLIBTHREAD"
9902
9903 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
9904
9905           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
9906
9907 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
9908
9909             LIBTHREAD=
9910             LTLIBTHREAD=
9911           fi
9912         fi
9913       fi
9914     fi
9915     if test "$gl_use_threads" = pth; then
9916       gl_save_CPPFLAGS="$CPPFLAGS"
9917
9918
9919
9920
9921
9922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
9923 $as_echo_n "checking how to link with libpth... " >&6; }
9924 if ${ac_cv_libpth_libs+:} false; then :
9925   $as_echo_n "(cached) " >&6
9926 else
9927
9928
9929
9930
9931     use_additional=yes
9932
9933   acl_save_prefix="$prefix"
9934   prefix="$acl_final_prefix"
9935   acl_save_exec_prefix="$exec_prefix"
9936   exec_prefix="$acl_final_exec_prefix"
9937
9938     eval additional_includedir=\"$includedir\"
9939     eval additional_libdir=\"$libdir\"
9940
9941   exec_prefix="$acl_save_exec_prefix"
9942   prefix="$acl_save_prefix"
9943
9944
9945 # Check whether --with-libpth-prefix was given.
9946 if test "${with_libpth_prefix+set}" = set; then :
9947   withval=$with_libpth_prefix;
9948     if test "X$withval" = "Xno"; then
9949       use_additional=no
9950     else
9951       if test "X$withval" = "X"; then
9952
9953   acl_save_prefix="$prefix"
9954   prefix="$acl_final_prefix"
9955   acl_save_exec_prefix="$exec_prefix"
9956   exec_prefix="$acl_final_exec_prefix"
9957
9958           eval additional_includedir=\"$includedir\"
9959           eval additional_libdir=\"$libdir\"
9960
9961   exec_prefix="$acl_save_exec_prefix"
9962   prefix="$acl_save_prefix"
9963
9964       else
9965         additional_includedir="$withval/include"
9966         additional_libdir="$withval/$acl_libdirstem"
9967       fi
9968     fi
9969
9970 fi
9971
9972       LIBPTH=
9973   LTLIBPTH=
9974   INCPTH=
9975   rpathdirs=
9976   ltrpathdirs=
9977   names_already_handled=
9978   names_next_round='pth '
9979   while test -n "$names_next_round"; do
9980     names_this_round="$names_next_round"
9981     names_next_round=
9982     for name in $names_this_round; do
9983       already_handled=
9984       for n in $names_already_handled; do
9985         if test "$n" = "$name"; then
9986           already_handled=yes
9987           break
9988         fi
9989       done
9990       if test -z "$already_handled"; then
9991         names_already_handled="$names_already_handled $name"
9992                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9993         eval value=\"\$HAVE_LIB$uppername\"
9994         if test -n "$value"; then
9995           if test "$value" = yes; then
9996             eval value=\"\$LIB$uppername\"
9997             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
9998             eval value=\"\$LTLIB$uppername\"
9999             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
10000           else
10001                                     :
10002           fi
10003         else
10004                               found_dir=
10005           found_la=
10006           found_so=
10007           found_a=
10008           if test $use_additional = yes; then
10009             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10010               found_dir="$additional_libdir"
10011               found_so="$additional_libdir/lib$name.$shlibext"
10012               if test -f "$additional_libdir/lib$name.la"; then
10013                 found_la="$additional_libdir/lib$name.la"
10014               fi
10015             else
10016               if test -f "$additional_libdir/lib$name.$libext"; then
10017                 found_dir="$additional_libdir"
10018                 found_a="$additional_libdir/lib$name.$libext"
10019                 if test -f "$additional_libdir/lib$name.la"; then
10020                   found_la="$additional_libdir/lib$name.la"
10021                 fi
10022               fi
10023             fi
10024           fi
10025           if test "X$found_dir" = "X"; then
10026             for x in $LDFLAGS $LTLIBPTH; do
10027
10028   acl_save_prefix="$prefix"
10029   prefix="$acl_final_prefix"
10030   acl_save_exec_prefix="$exec_prefix"
10031   exec_prefix="$acl_final_exec_prefix"
10032   eval x=\"$x\"
10033   exec_prefix="$acl_save_exec_prefix"
10034   prefix="$acl_save_prefix"
10035
10036               case "$x" in
10037                 -L*)
10038                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10039                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10040                     found_dir="$dir"
10041                     found_so="$dir/lib$name.$shlibext"
10042                     if test -f "$dir/lib$name.la"; then
10043                       found_la="$dir/lib$name.la"
10044                     fi
10045                   else
10046                     if test -f "$dir/lib$name.$libext"; then
10047                       found_dir="$dir"
10048                       found_a="$dir/lib$name.$libext"
10049                       if test -f "$dir/lib$name.la"; then
10050                         found_la="$dir/lib$name.la"
10051                       fi
10052                     fi
10053                   fi
10054                   ;;
10055               esac
10056               if test "X$found_dir" != "X"; then
10057                 break
10058               fi
10059             done
10060           fi
10061           if test "X$found_dir" != "X"; then
10062                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
10063             if test "X$found_so" != "X"; then
10064                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
10065                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10066               else
10067                                                                                 haveit=
10068                 for x in $ltrpathdirs; do
10069                   if test "X$x" = "X$found_dir"; then
10070                     haveit=yes
10071                     break
10072                   fi
10073                 done
10074                 if test -z "$haveit"; then
10075                   ltrpathdirs="$ltrpathdirs $found_dir"
10076                 fi
10077                                 if test "$hardcode_direct" = yes; then
10078                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10079                 else
10080                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10081                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10082                                                             haveit=
10083                     for x in $rpathdirs; do
10084                       if test "X$x" = "X$found_dir"; then
10085                         haveit=yes
10086                         break
10087                       fi
10088                     done
10089                     if test -z "$haveit"; then
10090                       rpathdirs="$rpathdirs $found_dir"
10091                     fi
10092                   else
10093                                                                                 haveit=
10094                     for x in $LDFLAGS $LIBPTH; do
10095
10096   acl_save_prefix="$prefix"
10097   prefix="$acl_final_prefix"
10098   acl_save_exec_prefix="$exec_prefix"
10099   exec_prefix="$acl_final_exec_prefix"
10100   eval x=\"$x\"
10101   exec_prefix="$acl_save_exec_prefix"
10102   prefix="$acl_save_prefix"
10103
10104                       if test "X$x" = "X-L$found_dir"; then
10105                         haveit=yes
10106                         break
10107                       fi
10108                     done
10109                     if test -z "$haveit"; then
10110                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
10111                     fi
10112                     if test "$hardcode_minus_L" != no; then
10113                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
10114                     else
10115                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
10116                     fi
10117                   fi
10118                 fi
10119               fi
10120             else
10121               if test "X$found_a" != "X"; then
10122                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
10123               else
10124                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
10125               fi
10126             fi
10127                         additional_includedir=
10128             case "$found_dir" in
10129               */$acl_libdirstem | */$acl_libdirstem/)
10130                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10131                 additional_includedir="$basedir/include"
10132                 ;;
10133             esac
10134             if test "X$additional_includedir" != "X"; then
10135                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10136                 haveit=
10137                 if test "X$additional_includedir" = "X/usr/local/include"; then
10138                   if test -n "$GCC"; then
10139                     case $host_os in
10140                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10141                     esac
10142                   fi
10143                 fi
10144                 if test -z "$haveit"; then
10145                   for x in $CPPFLAGS $INCPTH; do
10146
10147   acl_save_prefix="$prefix"
10148   prefix="$acl_final_prefix"
10149   acl_save_exec_prefix="$exec_prefix"
10150   exec_prefix="$acl_final_exec_prefix"
10151   eval x=\"$x\"
10152   exec_prefix="$acl_save_exec_prefix"
10153   prefix="$acl_save_prefix"
10154
10155                     if test "X$x" = "X-I$additional_includedir"; then
10156                       haveit=yes
10157                       break
10158                     fi
10159                   done
10160                   if test -z "$haveit"; then
10161                     if test -d "$additional_includedir"; then
10162                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
10163                     fi
10164                   fi
10165                 fi
10166               fi
10167             fi
10168                         if test -n "$found_la"; then
10169                                                         save_libdir="$libdir"
10170               case "$found_la" in
10171                 */* | *\\*) . "$found_la" ;;
10172                 *) . "./$found_la" ;;
10173               esac
10174               libdir="$save_libdir"
10175                             for dep in $dependency_libs; do
10176                 case "$dep" in
10177                   -L*)
10178                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10179                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
10180                       haveit=
10181                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
10182                         if test -n "$GCC"; then
10183                           case $host_os in
10184                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10185                           esac
10186                         fi
10187                       fi
10188                       if test -z "$haveit"; then
10189                         haveit=
10190                         for x in $LDFLAGS $LIBPTH; do
10191
10192   acl_save_prefix="$prefix"
10193   prefix="$acl_final_prefix"
10194   acl_save_exec_prefix="$exec_prefix"
10195   exec_prefix="$acl_final_exec_prefix"
10196   eval x=\"$x\"
10197   exec_prefix="$acl_save_exec_prefix"
10198   prefix="$acl_save_prefix"
10199
10200                           if test "X$x" = "X-L$additional_libdir"; then
10201                             haveit=yes
10202                             break
10203                           fi
10204                         done
10205                         if test -z "$haveit"; then
10206                           if test -d "$additional_libdir"; then
10207                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
10208                           fi
10209                         fi
10210                         haveit=
10211                         for x in $LDFLAGS $LTLIBPTH; do
10212
10213   acl_save_prefix="$prefix"
10214   prefix="$acl_final_prefix"
10215   acl_save_exec_prefix="$exec_prefix"
10216   exec_prefix="$acl_final_exec_prefix"
10217   eval x=\"$x\"
10218   exec_prefix="$acl_save_exec_prefix"
10219   prefix="$acl_save_prefix"
10220
10221                           if test "X$x" = "X-L$additional_libdir"; then
10222                             haveit=yes
10223                             break
10224                           fi
10225                         done
10226                         if test -z "$haveit"; then
10227                           if test -d "$additional_libdir"; then
10228                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
10229                           fi
10230                         fi
10231                       fi
10232                     fi
10233                     ;;
10234                   -R*)
10235                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10236                     if test "$enable_rpath" != no; then
10237                                                                   haveit=
10238                       for x in $rpathdirs; do
10239                         if test "X$x" = "X$dir"; then
10240                           haveit=yes
10241                           break
10242                         fi
10243                       done
10244                       if test -z "$haveit"; then
10245                         rpathdirs="$rpathdirs $dir"
10246                       fi
10247                                                                   haveit=
10248                       for x in $ltrpathdirs; do
10249                         if test "X$x" = "X$dir"; then
10250                           haveit=yes
10251                           break
10252                         fi
10253                       done
10254                       if test -z "$haveit"; then
10255                         ltrpathdirs="$ltrpathdirs $dir"
10256                       fi
10257                     fi
10258                     ;;
10259                   -l*)
10260                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10261                     ;;
10262                   *.la)
10263                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10264                     ;;
10265                   *)
10266                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
10267                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
10268                     ;;
10269                 esac
10270               done
10271             fi
10272           else
10273                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
10274             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
10275           fi
10276         fi
10277       fi
10278     done
10279   done
10280   if test "X$rpathdirs" != "X"; then
10281     if test -n "$hardcode_libdir_separator"; then
10282                         alldirs=
10283       for found_dir in $rpathdirs; do
10284         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10285       done
10286             acl_save_libdir="$libdir"
10287       libdir="$alldirs"
10288       eval flag=\"$hardcode_libdir_flag_spec\"
10289       libdir="$acl_save_libdir"
10290       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
10291     else
10292             for found_dir in $rpathdirs; do
10293         acl_save_libdir="$libdir"
10294         libdir="$found_dir"
10295         eval flag=\"$hardcode_libdir_flag_spec\"
10296         libdir="$acl_save_libdir"
10297         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
10298       done
10299     fi
10300   fi
10301   if test "X$ltrpathdirs" != "X"; then
10302             for found_dir in $ltrpathdirs; do
10303       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
10304     done
10305   fi
10306
10307     ac_cv_libpth_libs="$LIBPTH"
10308     ac_cv_libpth_ltlibs="$LTLIBPTH"
10309     ac_cv_libpth_cppflags="$INCPTH"
10310
10311 fi
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
10313 $as_echo "$ac_cv_libpth_libs" >&6; }
10314   LIBPTH="$ac_cv_libpth_libs"
10315   LTLIBPTH="$ac_cv_libpth_ltlibs"
10316   INCPTH="$ac_cv_libpth_cppflags"
10317
10318   for element in $INCPTH; do
10319     haveit=
10320     for x in $CPPFLAGS; do
10321
10322   acl_save_prefix="$prefix"
10323   prefix="$acl_final_prefix"
10324   acl_save_exec_prefix="$exec_prefix"
10325   exec_prefix="$acl_final_exec_prefix"
10326   eval x=\"$x\"
10327   exec_prefix="$acl_save_exec_prefix"
10328   prefix="$acl_save_prefix"
10329
10330       if test "X$x" = "X$element"; then
10331         haveit=yes
10332         break
10333       fi
10334     done
10335     if test -z "$haveit"; then
10336       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10337     fi
10338   done
10339
10340
10341
10342       HAVE_LIBPTH=yes
10343
10344
10345
10346       gl_have_pth=
10347       gl_save_LIBS="$LIBS"
10348       LIBS="$LIBS -lpth"
10349       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h.  */
10351 #include <pth.h>
10352 int
10353 main ()
10354 {
10355 pth_self();
10356   ;
10357   return 0;
10358 }
10359 _ACEOF
10360 if ac_fn_c_try_link "$LINENO"; then :
10361   gl_have_pth=yes
10362 fi
10363 rm -f core conftest.err conftest.$ac_objext \
10364     conftest$ac_exeext conftest.$ac_ext
10365       LIBS="$gl_save_LIBS"
10366       if test -n "$gl_have_pth"; then
10367         gl_threads_api=pth
10368         LIBTHREAD="$LIBPTH"
10369         LTLIBTHREAD="$LTLIBPTH"
10370         LIBMULTITHREAD="$LIBTHREAD"
10371         LTLIBMULTITHREAD="$LTLIBTHREAD"
10372
10373 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
10374
10375         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
10376           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
10377
10378 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
10379
10380             LIBTHREAD=
10381             LTLIBTHREAD=
10382           fi
10383         fi
10384       else
10385         CPPFLAGS="$gl_save_CPPFLAGS"
10386       fi
10387     fi
10388     if test -z "$gl_have_pthread"; then
10389       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
10390         if { case "$host_os" in
10391                mingw*) true;;
10392                *) false;;
10393              esac
10394            }; then
10395           gl_threads_api=win32
10396
10397 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
10398
10399         fi
10400       fi
10401     fi
10402   fi
10403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
10404 $as_echo_n "checking for multithread API to use... " >&6; }
10405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
10406 $as_echo "$gl_threads_api" >&6; }
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417      GNULIB_FCHMODAT=0;
10418   GNULIB_FSTATAT=0;
10419   GNULIB_FUTIMENS=0;
10420   GNULIB_LCHMOD=0;
10421   GNULIB_LSTAT=0;
10422   GNULIB_MKDIRAT=0;
10423   GNULIB_MKFIFO=0;
10424   GNULIB_MKFIFOAT=0;
10425   GNULIB_MKNOD=0;
10426   GNULIB_MKNODAT=0;
10427   GNULIB_STAT=0;
10428   GNULIB_UTIMENSAT=0;
10429     HAVE_FCHMODAT=1;
10430   HAVE_FSTATAT=1;
10431   HAVE_FUTIMENS=1;
10432   HAVE_LCHMOD=1;
10433   HAVE_LSTAT=1;
10434   HAVE_MKDIRAT=1;
10435   HAVE_MKFIFO=1;
10436   HAVE_MKFIFOAT=1;
10437   HAVE_MKNOD=1;
10438   HAVE_MKNODAT=1;
10439   HAVE_UTIMENSAT=1;
10440   REPLACE_FSTAT=0;
10441   REPLACE_FSTATAT=0;
10442   REPLACE_FUTIMENS=0;
10443   REPLACE_LSTAT=0;
10444   REPLACE_MKDIR=0;
10445   REPLACE_MKFIFO=0;
10446   REPLACE_MKNOD=0;
10447   REPLACE_STAT=0;
10448   REPLACE_UTIMENSAT=0;
10449
10450
10451
10452
10453
10454
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10456 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10457 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
10458   $as_echo_n "(cached) " >&6
10459 else
10460   rm -f conftest.sym conftest.file
10461 echo >conftest.file
10462 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10463   if test "$cross_compiling" = yes; then :
10464   ac_cv_func_lstat_dereferences_slashed_symlink=no
10465 else
10466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h.  */
10468 $ac_includes_default
10469 int
10470 main ()
10471 {
10472 struct stat sbuf;
10473      /* Linux will dereference the symlink and fail, as required by POSIX.
10474         That is better in the sense that it means we will not
10475         have to compile and use the lstat wrapper.  */
10476      return lstat ("conftest.sym/", &sbuf) == 0;
10477   ;
10478   return 0;
10479 }
10480 _ACEOF
10481 if ac_fn_c_try_run "$LINENO"; then :
10482   ac_cv_func_lstat_dereferences_slashed_symlink=yes
10483 else
10484   ac_cv_func_lstat_dereferences_slashed_symlink=no
10485 fi
10486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10487   conftest.$ac_objext conftest.beam conftest.$ac_ext
10488 fi
10489
10490 else
10491   # If the `ln -s' command failed, then we probably don't even
10492   # have an lstat function.
10493   ac_cv_func_lstat_dereferences_slashed_symlink=no
10494 fi
10495 rm -f conftest.sym conftest.file
10496
10497 fi
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10499 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10500
10501 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10502
10503 cat >>confdefs.h <<_ACEOF
10504 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10505 _ACEOF
10506
10507
10508 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10509
10510
10511
10512
10513
10514
10515
10516
10517   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
10518
10519 fi
10520
10521
10522   GNULIB__EXIT=0;
10523   GNULIB_ATOLL=0;
10524   GNULIB_CALLOC_POSIX=0;
10525   GNULIB_CANONICALIZE_FILE_NAME=0;
10526   GNULIB_GETLOADAVG=0;
10527   GNULIB_GETSUBOPT=0;
10528   GNULIB_GRANTPT=0;
10529   GNULIB_MALLOC_POSIX=0;
10530   GNULIB_MKDTEMP=0;
10531   GNULIB_MKOSTEMP=0;
10532   GNULIB_MKOSTEMPS=0;
10533   GNULIB_MKSTEMP=0;
10534   GNULIB_MKSTEMPS=0;
10535   GNULIB_PTSNAME=0;
10536   GNULIB_PUTENV=0;
10537   GNULIB_RANDOM_R=0;
10538   GNULIB_REALLOC_POSIX=0;
10539   GNULIB_REALPATH=0;
10540   GNULIB_RPMATCH=0;
10541   GNULIB_SETENV=0;
10542   GNULIB_STRTOD=0;
10543   GNULIB_STRTOLL=0;
10544   GNULIB_STRTOULL=0;
10545   GNULIB_UNLOCKPT=0;
10546   GNULIB_UNSETENV=0;
10547     HAVE__EXIT=1;
10548   HAVE_ATOLL=1;
10549   HAVE_CANONICALIZE_FILE_NAME=1;
10550   HAVE_DECL_GETLOADAVG=1;
10551   HAVE_GETSUBOPT=1;
10552   HAVE_GRANTPT=1;
10553   HAVE_MKDTEMP=1;
10554   HAVE_MKOSTEMP=1;
10555   HAVE_MKOSTEMPS=1;
10556   HAVE_MKSTEMP=1;
10557   HAVE_MKSTEMPS=1;
10558   HAVE_PTSNAME=1;
10559   HAVE_RANDOM_R=1;
10560   HAVE_REALPATH=1;
10561   HAVE_RPMATCH=1;
10562   HAVE_SETENV=1;
10563   HAVE_STRTOD=1;
10564   HAVE_STRTOLL=1;
10565   HAVE_STRTOULL=1;
10566   HAVE_STRUCT_RANDOM_DATA=1;
10567   HAVE_SYS_LOADAVG_H=0;
10568   HAVE_UNLOCKPT=1;
10569   HAVE_UNSETENV=1;
10570   REPLACE_CALLOC=0;
10571   REPLACE_CANONICALIZE_FILE_NAME=0;
10572   REPLACE_MALLOC=0;
10573   REPLACE_MKSTEMP=0;
10574   REPLACE_PUTENV=0;
10575   REPLACE_REALLOC=0;
10576   REPLACE_REALPATH=0;
10577   REPLACE_SETENV=0;
10578   REPLACE_STRTOD=0;
10579   REPLACE_UNSETENV=0;
10580
10581
10582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
10583 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
10584 if ${gl_cv_func_malloc_posix+:} false; then :
10585   $as_echo_n "(cached) " >&6
10586 else
10587
10588                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h.  */
10590
10591 int
10592 main ()
10593 {
10594 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
10595              choke me
10596              #endif
10597
10598   ;
10599   return 0;
10600 }
10601 _ACEOF
10602 if ac_fn_c_try_compile "$LINENO"; then :
10603   gl_cv_func_malloc_posix=yes
10604 else
10605   gl_cv_func_malloc_posix=no
10606 fi
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10608
10609 fi
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
10611 $as_echo "$gl_cv_func_malloc_posix" >&6; }
10612
10613
10614
10615    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
10616 $as_echo_n "checking for mbstate_t... " >&6; }
10617 if ${ac_cv_type_mbstate_t+:} false; then :
10618   $as_echo_n "(cached) " >&6
10619 else
10620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h.  */
10622 $ac_includes_default
10623 #           include <wchar.h>
10624 int
10625 main ()
10626 {
10627 mbstate_t x; return sizeof x;
10628   ;
10629   return 0;
10630 }
10631 _ACEOF
10632 if ac_fn_c_try_compile "$LINENO"; then :
10633   ac_cv_type_mbstate_t=yes
10634 else
10635   ac_cv_type_mbstate_t=no
10636 fi
10637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10638 fi
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
10640 $as_echo "$ac_cv_type_mbstate_t" >&6; }
10641    if test $ac_cv_type_mbstate_t = yes; then
10642
10643 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
10644
10645    else
10646
10647 $as_echo "#define mbstate_t int" >>confdefs.h
10648
10649    fi
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10665 $as_echo_n "checking for a traditional japanese locale... " >&6; }
10666 if ${gt_cv_locale_ja+:} false; then :
10667   $as_echo_n "(cached) " >&6
10668 else
10669
10670     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h.  */
10672
10673 #include <locale.h>
10674 #include <time.h>
10675 #if HAVE_LANGINFO_CODESET
10676 # include <langinfo.h>
10677 #endif
10678 #include <stdlib.h>
10679 #include <string.h>
10680 struct tm t;
10681 char buf[16];
10682 int main ()
10683 {
10684   const char *p;
10685   /* Check whether the given locale name is recognized by the system.  */
10686   if (setlocale (LC_ALL, "") == NULL) return 1;
10687   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10688      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10689      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10690      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10691      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10692      some unit tests fail.  */
10693 #if HAVE_LANGINFO_CODESET
10694   {
10695     const char *cs = nl_langinfo (CODESET);
10696     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10697       return 1;
10698   }
10699 #endif
10700 #ifdef __CYGWIN__
10701   /* On Cygwin, avoid locale names without encoding suffix, because the
10702      locale_charset() function relies on the encoding suffix.  Note that
10703      LC_ALL is set on the command line.  */
10704   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10705 #endif
10706   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
10707      on Cygwin 1.5.x.  */
10708   if (MB_CUR_MAX == 1)
10709     return 1;
10710   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10711      This excludes the UTF-8 encoding.  */
10712   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10713   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10714   for (p = buf; *p != '\0'; p++)
10715     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10716       return 1;
10717   return 0;
10718 }
10719
10720 _ACEOF
10721     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10722   (eval $ac_link) 2>&5
10723   ac_status=$?
10724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10725   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10726       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10727       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10728       # configure script would override the LC_ALL setting. Likewise for
10729       # LC_CTYPE, which is also set at the beginning of the configure script.
10730       # Test for the AIX locale name.
10731       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10732         gt_cv_locale_ja=ja_JP
10733       else
10734         # Test for the locale name with explicit encoding suffix.
10735         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10736           gt_cv_locale_ja=ja_JP.EUC-JP
10737         else
10738           # Test for the HP-UX, OSF/1, NetBSD locale name.
10739           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10740             gt_cv_locale_ja=ja_JP.eucJP
10741           else
10742             # Test for the IRIX, FreeBSD locale name.
10743             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10744               gt_cv_locale_ja=ja_JP.EUC
10745             else
10746               # Test for the Solaris 7 locale name.
10747               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10748                 gt_cv_locale_ja=ja
10749               else
10750                 # Special test for NetBSD 1.6.
10751                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10752                   gt_cv_locale_ja=ja_JP.eucJP
10753                 else
10754                   # None found.
10755                   gt_cv_locale_ja=none
10756                 fi
10757               fi
10758             fi
10759           fi
10760         fi
10761       fi
10762     fi
10763     rm -fr conftest*
10764
10765 fi
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10767 $as_echo "$gt_cv_locale_ja" >&6; }
10768   LOCALE_JA=$gt_cv_locale_ja
10769
10770
10771
10772
10773
10774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10775 $as_echo_n "checking for a transitional chinese locale... " >&6; }
10776 if ${gt_cv_locale_zh_CN+:} false; then :
10777   $as_echo_n "(cached) " >&6
10778 else
10779
10780     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781 /* end confdefs.h.  */
10782
10783 #include <locale.h>
10784 #include <stdlib.h>
10785 #include <time.h>
10786 #if HAVE_LANGINFO_CODESET
10787 # include <langinfo.h>
10788 #endif
10789 #include <stdlib.h>
10790 #include <string.h>
10791 struct tm t;
10792 char buf[16];
10793 int main ()
10794 {
10795   const char *p;
10796   /* Check whether the given locale name is recognized by the system.  */
10797   if (setlocale (LC_ALL, "") == NULL) return 1;
10798   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10799      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10800      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10801      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10802      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10803      some unit tests fail.  */
10804 #if HAVE_LANGINFO_CODESET
10805   {
10806     const char *cs = nl_langinfo (CODESET);
10807     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10808       return 1;
10809   }
10810 #endif
10811 #ifdef __CYGWIN__
10812   /* On Cygwin, avoid locale names without encoding suffix, because the
10813      locale_charset() function relies on the encoding suffix.  Note that
10814      LC_ALL is set on the command line.  */
10815   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10816 #endif
10817   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10818      This excludes the UTF-8 encoding.  */
10819   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10820   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10821   for (p = buf; *p != '\0'; p++)
10822     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10823       return 1;
10824   /* Check whether a typical GB18030 multibyte sequence is recognized as a
10825      single wide character.  This excludes the GB2312 and GBK encodings.  */
10826   if (mblen ("\203\062\332\066", 5) != 4)
10827     return 1;
10828   return 0;
10829 }
10830
10831 _ACEOF
10832     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10833   (eval $ac_link) 2>&5
10834   ac_status=$?
10835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10836   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10837       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10838       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10839       # configure script would override the LC_ALL setting. Likewise for
10840       # LC_CTYPE, which is also set at the beginning of the configure script.
10841       # Test for the locale name without encoding suffix.
10842       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10843         gt_cv_locale_zh_CN=zh_CN
10844       else
10845         # Test for the locale name with explicit encoding suffix.
10846         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10847           gt_cv_locale_zh_CN=zh_CN.GB18030
10848         else
10849           # None found.
10850           gt_cv_locale_zh_CN=none
10851         fi
10852       fi
10853     else
10854       # If there was a link error, due to mblen(), the system is so old that
10855       # it certainly doesn't have a chinese locale.
10856       gt_cv_locale_zh_CN=none
10857     fi
10858     rm -fr conftest*
10859
10860 fi
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10862 $as_echo "$gt_cv_locale_zh_CN" >&6; }
10863   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10864
10865
10866
10867
10868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10869 $as_echo_n "checking for a french Unicode locale... " >&6; }
10870 if ${gt_cv_locale_fr_utf8+:} false; then :
10871   $as_echo_n "(cached) " >&6
10872 else
10873
10874     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h.  */
10876
10877 #include <locale.h>
10878 #include <time.h>
10879 #if HAVE_LANGINFO_CODESET
10880 # include <langinfo.h>
10881 #endif
10882 #include <stdlib.h>
10883 #include <string.h>
10884 struct tm t;
10885 char buf[16];
10886 int main () {
10887   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
10888      imitates locale dependent behaviour by looking at the environment
10889      variables, and all locales use the UTF-8 encoding.  */
10890 #if !(defined __BEOS__ || defined __HAIKU__)
10891   /* Check whether the given locale name is recognized by the system.  */
10892   if (setlocale (LC_ALL, "") == NULL) return 1;
10893   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10894      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10895      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10896      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10897      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10898      some unit tests fail.  */
10899 # if HAVE_LANGINFO_CODESET
10900   {
10901     const char *cs = nl_langinfo (CODESET);
10902     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10903       return 1;
10904   }
10905 # endif
10906 # ifdef __CYGWIN__
10907   /* On Cygwin, avoid locale names without encoding suffix, because the
10908      locale_charset() function relies on the encoding suffix.  Note that
10909      LC_ALL is set on the command line.  */
10910   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10911 # endif
10912   /* Check whether in the abbreviation of the second month, the second
10913      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10914      two bytes long, with UTF-8 encoding.  */
10915   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10916   if (strftime (buf, sizeof (buf), "%b", &t) < 4
10917       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10918     return 1;
10919 #endif
10920   /* Check whether the decimal separator is a comma.
10921      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10922      are nl_langinfo(RADIXCHAR) are both ".".  */
10923   if (localeconv () ->decimal_point[0] != ',') return 1;
10924   return 0;
10925 }
10926
10927 _ACEOF
10928     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10929   (eval $ac_link) 2>&5
10930   ac_status=$?
10931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10932   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10933       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10934       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10935       # configure script would override the LC_ALL setting. Likewise for
10936       # LC_CTYPE, which is also set at the beginning of the configure script.
10937       # Test for the usual locale name.
10938       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10939         gt_cv_locale_fr_utf8=fr_FR
10940       else
10941         # Test for the locale name with explicit encoding suffix.
10942         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10943           gt_cv_locale_fr_utf8=fr_FR.UTF-8
10944         else
10945           # Test for the Solaris 7 locale name.
10946           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10947             gt_cv_locale_fr_utf8=fr.UTF-8
10948           else
10949             # None found.
10950             gt_cv_locale_fr_utf8=none
10951           fi
10952         fi
10953       fi
10954     fi
10955     rm -fr conftest*
10956
10957 fi
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10959 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10960   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974   GNULIB_MEMCHR=0;
10975   GNULIB_MEMMEM=0;
10976   GNULIB_MEMPCPY=0;
10977   GNULIB_MEMRCHR=0;
10978   GNULIB_RAWMEMCHR=0;
10979   GNULIB_STPCPY=0;
10980   GNULIB_STPNCPY=0;
10981   GNULIB_STRCHRNUL=0;
10982   GNULIB_STRDUP=0;
10983   GNULIB_STRNCAT=0;
10984   GNULIB_STRNDUP=0;
10985   GNULIB_STRNLEN=0;
10986   GNULIB_STRPBRK=0;
10987   GNULIB_STRSEP=0;
10988   GNULIB_STRSTR=0;
10989   GNULIB_STRCASESTR=0;
10990   GNULIB_STRTOK_R=0;
10991   GNULIB_MBSLEN=0;
10992   GNULIB_MBSNLEN=0;
10993   GNULIB_MBSCHR=0;
10994   GNULIB_MBSRCHR=0;
10995   GNULIB_MBSSTR=0;
10996   GNULIB_MBSCASECMP=0;
10997   GNULIB_MBSNCASECMP=0;
10998   GNULIB_MBSPCASECMP=0;
10999   GNULIB_MBSCASESTR=0;
11000   GNULIB_MBSCSPN=0;
11001   GNULIB_MBSPBRK=0;
11002   GNULIB_MBSSPN=0;
11003   GNULIB_MBSSEP=0;
11004   GNULIB_MBSTOK_R=0;
11005   GNULIB_STRERROR=0;
11006   GNULIB_STRSIGNAL=0;
11007   GNULIB_STRVERSCMP=0;
11008   HAVE_MBSLEN=0;
11009     HAVE_MEMCHR=1;
11010   HAVE_DECL_MEMMEM=1;
11011   HAVE_MEMPCPY=1;
11012   HAVE_DECL_MEMRCHR=1;
11013   HAVE_RAWMEMCHR=1;
11014   HAVE_STPCPY=1;
11015   HAVE_STPNCPY=1;
11016   HAVE_STRCHRNUL=1;
11017   HAVE_DECL_STRDUP=1;
11018   HAVE_DECL_STRNDUP=1;
11019   HAVE_DECL_STRNLEN=1;
11020   HAVE_STRPBRK=1;
11021   HAVE_STRSEP=1;
11022   HAVE_STRCASESTR=1;
11023   HAVE_DECL_STRTOK_R=1;
11024   HAVE_DECL_STRSIGNAL=1;
11025   HAVE_STRVERSCMP=1;
11026   REPLACE_MEMCHR=0;
11027   REPLACE_MEMMEM=0;
11028   REPLACE_STPNCPY=0;
11029   REPLACE_STRDUP=0;
11030   REPLACE_STRSTR=0;
11031   REPLACE_STRCASESTR=0;
11032   REPLACE_STRERROR=0;
11033   REPLACE_STRNCAT=0;
11034   REPLACE_STRNDUP=0;
11035   REPLACE_STRNLEN=0;
11036   REPLACE_STRSIGNAL=0;
11037   REPLACE_STRTOK_R=0;
11038   UNDEFINE_STRTOK_R=0;
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
11053   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
11054   # irrelevant for anonymous mappings.
11055   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11056 if test "x$ac_cv_func_mmap" = xyes; then :
11057   gl_have_mmap=yes
11058 else
11059   gl_have_mmap=no
11060 fi
11061
11062
11063   # Try to allow MAP_ANONYMOUS.
11064   gl_have_mmap_anonymous=no
11065   if test $gl_have_mmap = yes; then
11066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
11067 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
11068     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11069 /* end confdefs.h.  */
11070
11071 #include <sys/mman.h>
11072 #ifdef MAP_ANONYMOUS
11073     I cant identify this map.
11074 #endif
11075
11076 _ACEOF
11077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11078   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
11079   gl_have_mmap_anonymous=yes
11080 fi
11081 rm -f conftest*
11082
11083     if test $gl_have_mmap_anonymous != yes; then
11084       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h.  */
11086
11087 #include <sys/mman.h>
11088 #ifdef MAP_ANON
11089     I cant identify this map.
11090 #endif
11091
11092 _ACEOF
11093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11094   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
11095
11096 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
11097
11098          gl_have_mmap_anonymous=yes
11099 fi
11100 rm -f conftest*
11101
11102     fi
11103     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
11104 $as_echo "$gl_have_mmap_anonymous" >&6; }
11105     if test $gl_have_mmap_anonymous = yes; then
11106
11107 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
11108
11109     fi
11110   fi
11111
11112
11113   :
11114
11115
11116
11117
11118
11119
11120   :
11121
11122
11123
11124
11125
11126
11127
11128
11129   :
11130
11131
11132
11133
11134
11135   if test $ac_cv_func_memchr = yes; then
11136     # Detect platform-specific bugs in some versions of glibc:
11137     # memchr should not dereference anything with length 0
11138     #   http://bugzilla.redhat.com/499689
11139     # memchr should not dereference overestimated length after a match
11140     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
11141     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
11142     # Assume that memchr works on platforms that lack mprotect.
11143     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
11144 $as_echo_n "checking whether memchr works... " >&6; }
11145 if ${gl_cv_func_memchr_works+:} false; then :
11146   $as_echo_n "(cached) " >&6
11147 else
11148   if test "$cross_compiling" = yes; then :
11149          gl_cv_func_memchr_works="guessing no"
11150 else
11151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11152 /* end confdefs.h.  */
11153
11154 #include <string.h>
11155 #if HAVE_SYS_MMAN_H
11156 # include <fcntl.h>
11157 # include <unistd.h>
11158 # include <sys/types.h>
11159 # include <sys/mman.h>
11160 # ifndef MAP_FILE
11161 #  define MAP_FILE 0
11162 # endif
11163 #endif
11164
11165 int
11166 main ()
11167 {
11168
11169   char *fence = NULL;
11170 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
11171 # if HAVE_MAP_ANONYMOUS
11172   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
11173   const int fd = -1;
11174 # else /* !HAVE_MAP_ANONYMOUS */
11175   const int flags = MAP_FILE | MAP_PRIVATE;
11176   int fd = open ("/dev/zero", O_RDONLY, 0666);
11177   if (fd >= 0)
11178 # endif
11179     {
11180       int pagesize = getpagesize ();
11181       char *two_pages =
11182         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
11183                        flags, fd, 0);
11184       if (two_pages != (char *)(-1)
11185           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
11186         fence = two_pages + pagesize;
11187     }
11188 #endif
11189   if (fence)
11190     {
11191       if (memchr (fence, 0, 0))
11192         return 1;
11193       strcpy (fence - 9, "12345678");
11194       if (memchr (fence - 9, 0, 79) != fence - 1)
11195         return 2;
11196     }
11197   return 0;
11198
11199   ;
11200   return 0;
11201 }
11202 _ACEOF
11203 if ac_fn_c_try_run "$LINENO"; then :
11204   gl_cv_func_memchr_works=yes
11205 else
11206   gl_cv_func_memchr_works=no
11207 fi
11208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11209   conftest.$ac_objext conftest.beam conftest.$ac_ext
11210 fi
11211
11212 fi
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
11214 $as_echo "$gl_cv_func_memchr_works" >&6; }
11215     if test "$gl_cv_func_memchr_works" != yes; then
11216       REPLACE_MEMCHR=1
11217     fi
11218   else
11219     HAVE_MEMCHR=0
11220   fi
11221   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
11222
11223
11224
11225
11226
11227
11228
11229
11230   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
11231
11232
11233   for ac_header in bp-sym.h
11234 do :
11235   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
11236 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
11237   cat >>confdefs.h <<_ACEOF
11238 #define HAVE_BP_SYM_H 1
11239 _ACEOF
11240
11241 fi
11242
11243 done
11244
11245
11246   fi
11247
11248
11249     gl_cv_c_multiarch=no
11250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11251 /* end confdefs.h.  */
11252 #ifndef __APPLE_CC__
11253          not a universal capable compiler
11254         #endif
11255         typedef int dummy;
11256
11257 _ACEOF
11258 if ac_fn_c_try_compile "$LINENO"; then :
11259
11260                arch=
11261      prev=
11262      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
11263        if test -n "$prev"; then
11264          case $word in
11265            i?86 | x86_64 | ppc | ppc64)
11266              if test -z "$arch" || test "$arch" = "$word"; then
11267                arch="$word"
11268              else
11269                gl_cv_c_multiarch=yes
11270              fi
11271              ;;
11272          esac
11273          prev=
11274        else
11275          if test "x$word" = "x-arch"; then
11276            prev=arch
11277          fi
11278        fi
11279      done
11280
11281 fi
11282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11283   if test $gl_cv_c_multiarch = yes; then
11284
11285 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11286
11287     APPLE_UNIVERSAL_BUILD=1
11288   else
11289     APPLE_UNIVERSAL_BUILD=0
11290   fi
11291
11292
11293
11294
11295
11296
11297
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external symbol _system_configuration" >&5
11299 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
11300 if ${gl_cv_var__system_configuration+:} false; then :
11301   $as_echo_n "(cached) " >&6
11302 else
11303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h.  */
11305 #include <sys/systemcfg.h>
11306
11307 int
11308 main ()
11309 {
11310 double x = _system_configuration.physmem;
11311                         if (x > 0.0) return 0;
11312   ;
11313   return 0;
11314 }
11315 _ACEOF
11316 if ac_fn_c_try_link "$LINENO"; then :
11317   gl_cv_var__system_configuration=yes
11318 else
11319   gl_cv_var__system_configuration=no
11320 fi
11321 rm -f core conftest.err conftest.$ac_objext \
11322     conftest$ac_exeext conftest.$ac_ext
11323 fi
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var__system_configuration" >&5
11325 $as_echo "$gl_cv_var__system_configuration" >&6; }
11326
11327     if test $gl_cv_var__system_configuration = yes; then
11328
11329 $as_echo "#define HAVE__SYSTEM_CONFIGURATION 1" >>confdefs.h
11330
11331     fi
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
11356 $as_echo_n "checking for ssize_t... " >&6; }
11357 if ${gt_cv_ssize_t+:} false; then :
11358   $as_echo_n "(cached) " >&6
11359 else
11360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h.  */
11362 #include <sys/types.h>
11363 int
11364 main ()
11365 {
11366 int x = sizeof (ssize_t *) + sizeof (ssize_t);
11367             return !x;
11368   ;
11369   return 0;
11370 }
11371 _ACEOF
11372 if ac_fn_c_try_compile "$LINENO"; then :
11373   gt_cv_ssize_t=yes
11374 else
11375   gt_cv_ssize_t=no
11376 fi
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 fi
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
11380 $as_echo "$gt_cv_ssize_t" >&6; }
11381   if test $gt_cv_ssize_t = no; then
11382
11383 $as_echo "#define ssize_t int" >>confdefs.h
11384
11385   fi
11386
11387
11388       ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11389 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
11390   ac_have_decl=1
11391 else
11392   ac_have_decl=0
11393 fi
11394
11395 cat >>confdefs.h <<_ACEOF
11396 #define HAVE_DECL_SNPRINTF $ac_have_decl
11397 _ACEOF
11398
11399
11400
11401     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system is Windows or MSDOS" >&5
11402 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
11403 if ${ac_cv_win_or_dos+:} false; then :
11404   $as_echo_n "(cached) " >&6
11405 else
11406
11407         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h.  */
11409
11410 int
11411 main ()
11412 {
11413
11414 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
11415 neither MSDOS nor Windows
11416 #endif
11417   ;
11418   return 0;
11419 }
11420 _ACEOF
11421 if ac_fn_c_try_compile "$LINENO"; then :
11422   ac_cv_win_or_dos=yes
11423 else
11424   ac_cv_win_or_dos=no
11425 fi
11426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11427
11428 fi
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win_or_dos" >&5
11430 $as_echo "$ac_cv_win_or_dos" >&6; }
11431
11432     if test x"$ac_cv_win_or_dos" = xyes; then
11433       ac_fs_accepts_drive_letter_prefix=1
11434       ac_fs_backslash_is_file_name_separator=1
11435       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether drive letter can start relative path" >&5
11436 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
11437 if ${ac_cv_drive_letter_can_be_relative+:} false; then :
11438   $as_echo_n "(cached) " >&6
11439 else
11440
11441           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11442 /* end confdefs.h.  */
11443
11444 int
11445 main ()
11446 {
11447
11448 #if defined __CYGWIN__
11449 drive letters are always absolute
11450 #endif
11451   ;
11452   return 0;
11453 }
11454 _ACEOF
11455 if ac_fn_c_try_compile "$LINENO"; then :
11456   ac_cv_drive_letter_can_be_relative=yes
11457 else
11458   ac_cv_drive_letter_can_be_relative=no
11459 fi
11460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11461
11462 fi
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_drive_letter_can_be_relative" >&5
11464 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
11465       if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
11466         ac_fs_drive_letter_can_be_relative=1
11467       else
11468         ac_fs_drive_letter_can_be_relative=0
11469       fi
11470     else
11471       ac_fs_accepts_drive_letter_prefix=0
11472       ac_fs_backslash_is_file_name_separator=0
11473       ac_fs_drive_letter_can_be_relative=0
11474     fi
11475
11476
11477 cat >>confdefs.h <<_ACEOF
11478 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
11479 _ACEOF
11480
11481
11482
11483
11484
11485 cat >>confdefs.h <<_ACEOF
11486 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
11487 _ACEOF
11488
11489
11490
11491 cat >>confdefs.h <<_ACEOF
11492 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
11493 _ACEOF
11494
11495
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11497 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11498 if ${ac_cv_header_stdbool_h+:} false; then :
11499   $as_echo_n "(cached) " >&6
11500 else
11501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h.  */
11503
11504              #include <stdbool.h>
11505              #ifndef bool
11506               "error: bool is not defined"
11507              #endif
11508              #ifndef false
11509               "error: false is not defined"
11510              #endif
11511              #if false
11512               "error: false is not 0"
11513              #endif
11514              #ifndef true
11515               "error: true is not defined"
11516              #endif
11517              #if true != 1
11518               "error: true is not 1"
11519              #endif
11520              #ifndef __bool_true_false_are_defined
11521               "error: __bool_true_false_are_defined is not defined"
11522              #endif
11523
11524              struct s { _Bool s: 1; _Bool t; } s;
11525
11526              char a[true == 1 ? 1 : -1];
11527              char b[false == 0 ? 1 : -1];
11528              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11529              char d[(bool) 0.5 == true ? 1 : -1];
11530              /* See body of main program for 'e'.  */
11531              char f[(_Bool) 0.0 == false ? 1 : -1];
11532              char g[true];
11533              char h[sizeof (_Bool)];
11534              char i[sizeof s.t];
11535              enum { j = false, k = true, l = false * true, m = true * 256 };
11536              /* The following fails for
11537                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11538              _Bool n[m];
11539              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11540              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11541              /* Catch a bug in an HP-UX C compiler.  See
11542                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11543                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11544               */
11545              _Bool q = true;
11546              _Bool *pq = &q;
11547
11548 int
11549 main ()
11550 {
11551
11552              bool e = &s;
11553              *pq |= q;
11554              *pq |= ! q;
11555              /* Refer to every declared value, to avoid compiler optimizations.  */
11556              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11557                      + !m + !n + !o + !p + !q + !pq);
11558
11559   ;
11560   return 0;
11561 }
11562 _ACEOF
11563 if ac_fn_c_try_compile "$LINENO"; then :
11564   ac_cv_header_stdbool_h=yes
11565 else
11566   ac_cv_header_stdbool_h=no
11567 fi
11568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569 fi
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11571 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11572    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11573 if test "x$ac_cv_type__Bool" = xyes; then :
11574
11575 cat >>confdefs.h <<_ACEOF
11576 #define HAVE__BOOL 1
11577 _ACEOF
11578
11579
11580 fi
11581
11582    if test $ac_cv_header_stdbool_h = yes; then
11583
11584 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
11585
11586    fi
11587
11588     REPLACE_NULL=0;
11589   HAVE_WCHAR_T=1;
11590   STDDEF_H='';
11591
11592
11593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11594 $as_echo_n "checking for wchar_t... " >&6; }
11595 if ${gt_cv_c_wchar_t+:} false; then :
11596   $as_echo_n "(cached) " >&6
11597 else
11598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599 /* end confdefs.h.  */
11600 #include <stddef.h>
11601        wchar_t foo = (wchar_t)'\0';
11602 int
11603 main ()
11604 {
11605
11606   ;
11607   return 0;
11608 }
11609 _ACEOF
11610 if ac_fn_c_try_compile "$LINENO"; then :
11611   gt_cv_c_wchar_t=yes
11612 else
11613   gt_cv_c_wchar_t=no
11614 fi
11615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11616 fi
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11618 $as_echo "$gt_cv_c_wchar_t" >&6; }
11619   if test $gt_cv_c_wchar_t = yes; then
11620
11621 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11622
11623   fi
11624
11625
11626
11627
11628
11629
11630
11631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
11632 $as_echo_n "checking for long long int... " >&6; }
11633 if ${ac_cv_type_long_long_int+:} false; then :
11634   $as_echo_n "(cached) " >&6
11635 else
11636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h.  */
11638
11639   /* For now, do not test the preprocessor; as of 2007 there are too many
11640          implementations with broken preprocessors.  Perhaps this can
11641          be revisited in 2012.  In the meantime, code should not expect
11642          #if to work with literals wider than 32 bits.  */
11643       /* Test literals.  */
11644       long long int ll = 9223372036854775807ll;
11645       long long int nll = -9223372036854775807LL;
11646       unsigned long long int ull = 18446744073709551615ULL;
11647       /* Test constant expressions.   */
11648       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11649                      ? 1 : -1)];
11650       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11651                      ? 1 : -1)];
11652       int i = 63;
11653 int
11654 main ()
11655 {
11656 /* Test availability of runtime routines for shift and division.  */
11657       long long int llmax = 9223372036854775807ll;
11658       unsigned long long int ullmax = 18446744073709551615ull;
11659       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11660               | (llmax / ll) | (llmax % ll)
11661               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11662               | (ullmax / ull) | (ullmax % ull));
11663   ;
11664   return 0;
11665 }
11666
11667 _ACEOF
11668 if ac_fn_c_try_link "$LINENO"; then :
11669                           if test "$cross_compiling" = yes; then :
11670   ac_cv_type_long_long_int=yes
11671 else
11672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11673 /* end confdefs.h.  */
11674 #include <limits.h>
11675                #ifndef LLONG_MAX
11676                # define HALF \
11677                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
11678                # define LLONG_MAX (HALF - 1 + HALF)
11679                #endif
11680 int
11681 main ()
11682 {
11683 long long int n = 1;
11684                int i;
11685                for (i = 0; ; i++)
11686                  {
11687                    long long int m = n << i;
11688                    if (m >> i != n)
11689                      return 1;
11690                    if (LLONG_MAX / 2 < m)
11691                      break;
11692                  }
11693                return 0;
11694   ;
11695   return 0;
11696 }
11697 _ACEOF
11698 if ac_fn_c_try_run "$LINENO"; then :
11699   ac_cv_type_long_long_int=yes
11700 else
11701   ac_cv_type_long_long_int=no
11702 fi
11703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11704   conftest.$ac_objext conftest.beam conftest.$ac_ext
11705 fi
11706
11707 else
11708   ac_cv_type_long_long_int=no
11709 fi
11710 rm -f core conftest.err conftest.$ac_objext \
11711     conftest$ac_exeext conftest.$ac_ext
11712 fi
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
11714 $as_echo "$ac_cv_type_long_long_int" >&6; }
11715   if test $ac_cv_type_long_long_int = yes; then
11716
11717 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11718
11719   fi
11720
11721
11722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
11723 $as_echo_n "checking for unsigned long long int... " >&6; }
11724 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
11725   $as_echo_n "(cached) " >&6
11726 else
11727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h.  */
11729
11730   /* For now, do not test the preprocessor; as of 2007 there are too many
11731          implementations with broken preprocessors.  Perhaps this can
11732          be revisited in 2012.  In the meantime, code should not expect
11733          #if to work with literals wider than 32 bits.  */
11734       /* Test literals.  */
11735       long long int ll = 9223372036854775807ll;
11736       long long int nll = -9223372036854775807LL;
11737       unsigned long long int ull = 18446744073709551615ULL;
11738       /* Test constant expressions.   */
11739       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11740                      ? 1 : -1)];
11741       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11742                      ? 1 : -1)];
11743       int i = 63;
11744 int
11745 main ()
11746 {
11747 /* Test availability of runtime routines for shift and division.  */
11748       long long int llmax = 9223372036854775807ll;
11749       unsigned long long int ullmax = 18446744073709551615ull;
11750       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11751               | (llmax / ll) | (llmax % ll)
11752               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11753               | (ullmax / ull) | (ullmax % ull));
11754   ;
11755   return 0;
11756 }
11757
11758 _ACEOF
11759 if ac_fn_c_try_link "$LINENO"; then :
11760   ac_cv_type_unsigned_long_long_int=yes
11761 else
11762   ac_cv_type_unsigned_long_long_int=no
11763 fi
11764 rm -f core conftest.err conftest.$ac_objext \
11765     conftest$ac_exeext conftest.$ac_ext
11766 fi
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
11768 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
11769   if test $ac_cv_type_unsigned_long_long_int = yes; then
11770
11771 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
11772
11773   fi
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
11787 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
11788 if ${gl_cv_prog_as_underscore+:} false; then :
11789   $as_echo_n "(cached) " >&6
11790 else
11791   cat > conftest.c <<EOF
11792 #ifdef __cplusplus
11793 extern "C" int foo (void);
11794 #endif
11795 int foo(void) { return 0; }
11796 EOF
11797      # Look for the assembly language name in the .s file.
11798      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
11799   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11800   (eval $ac_try) 2>&5
11801   ac_status=$?
11802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11803   test $ac_status = 0; }; } >/dev/null 2>&1
11804      if grep _foo conftest.s >/dev/null ; then
11805        gl_cv_prog_as_underscore=yes
11806      else
11807        gl_cv_prog_as_underscore=no
11808      fi
11809      rm -f conftest*
11810
11811 fi
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
11813 $as_echo "$gl_cv_prog_as_underscore" >&6; }
11814   if test $gl_cv_prog_as_underscore = yes; then
11815     USER_LABEL_PREFIX=_
11816   else
11817     USER_LABEL_PREFIX=
11818   fi
11819
11820 cat >>confdefs.h <<_ACEOF
11821 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
11822 _ACEOF
11823
11824   ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
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
11855
11856
11857      if test $gl_cv_have_include_next = yes; then
11858        gl_cv_next_string_h='<'string.h'>'
11859      else
11860        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11861 $as_echo_n "checking absolute name of <string.h>... " >&6; }
11862 if ${gl_cv_next_string_h+:} false; then :
11863   $as_echo_n "(cached) " >&6
11864 else
11865
11866           if test $ac_cv_header_string_h = yes; then
11867             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h.  */
11869 #include <string.h>
11870
11871 _ACEOF
11872                                                                                                 case "$host_os" in
11873               aix*) gl_absname_cpp="$ac_cpp -C" ;;
11874               *)    gl_absname_cpp="$ac_cpp" ;;
11875             esac
11876                                                 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11877                sed -n '\#/string.h#{
11878                  s#.*"\(.*/string.h\)".*#\1#
11879                  s#^/[^/]#//&#
11880                  p
11881                  q
11882                }'`'"'
11883           else
11884             gl_cv_next_string_h='<'string.h'>'
11885           fi
11886
11887 fi
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11889 $as_echo "$gl_cv_next_string_h" >&6; }
11890      fi
11891      NEXT_STRING_H=$gl_cv_next_string_h
11892
11893      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11894        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11895        gl_next_as_first_directive='<'string.h'>'
11896      else
11897        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11898        gl_next_as_first_directive=$gl_cv_next_string_h
11899      fi
11900      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11901
11902
11903
11904
11905
11906     for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal      strverscmp; do
11907     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11909 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11910 if eval \${$as_gl_Symbol+:} false; then :
11911   $as_echo_n "(cached) " >&6
11912 else
11913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h.  */
11915 #include <string.h>
11916
11917 int
11918 main ()
11919 {
11920 #undef $gl_func
11921   (void) $gl_func;
11922   ;
11923   return 0;
11924 }
11925 _ACEOF
11926 if ac_fn_c_try_compile "$LINENO"; then :
11927   eval "$as_gl_Symbol=yes"
11928 else
11929   eval "$as_gl_Symbol=no"
11930 fi
11931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11932 fi
11933 eval ac_res=\$$as_gl_Symbol
11934                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11935 $as_echo "$ac_res" >&6; }
11936      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
11937   cat >>confdefs.h <<_ACEOF
11938 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11939 _ACEOF
11940
11941                      eval ac_cv_have_decl_$gl_func=yes
11942 fi
11943       done
11944
11945
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11947 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11948 if ${ac_cv_header_stat_broken+:} false; then :
11949   $as_echo_n "(cached) " >&6
11950 else
11951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h.  */
11953 #include <sys/types.h>
11954 #include <sys/stat.h>
11955
11956 #if defined S_ISBLK && defined S_IFDIR
11957 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11958 #endif
11959
11960 #if defined S_ISBLK && defined S_IFCHR
11961 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11962 #endif
11963
11964 #if defined S_ISLNK && defined S_IFREG
11965 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11966 #endif
11967
11968 #if defined S_ISSOCK && defined S_IFREG
11969 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11970 #endif
11971
11972 _ACEOF
11973 if ac_fn_c_try_compile "$LINENO"; then :
11974   ac_cv_header_stat_broken=no
11975 else
11976   ac_cv_header_stat_broken=yes
11977 fi
11978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11979 fi
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11981 $as_echo "$ac_cv_header_stat_broken" >&6; }
11982 if test $ac_cv_header_stat_broken = yes; then
11983
11984 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11985
11986 fi
11987
11988
11989
11990
11991
11992
11993 # Check whether --enable-largefile was given.
11994 if test "${enable_largefile+set}" = set; then :
11995   enableval=$enable_largefile;
11996 fi
11997
11998 if test "$enable_largefile" != no; then
11999
12000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12001 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12002 if ${ac_cv_sys_largefile_CC+:} false; then :
12003   $as_echo_n "(cached) " >&6
12004 else
12005   ac_cv_sys_largefile_CC=no
12006      if test "$GCC" != yes; then
12007        ac_save_CC=$CC
12008        while :; do
12009          # IRIX 6.2 and later do not support large files by default,
12010          # so use the C compiler's -n32 option if that helps.
12011          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h.  */
12013 #include <sys/types.h>
12014  /* Check that off_t can represent 2**63 - 1 correctly.
12015     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12016     since some C++ compilers masquerading as C compilers
12017     incorrectly reject 9223372036854775807.  */
12018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12019   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12020                        && LARGE_OFF_T % 2147483647 == 1)
12021                       ? 1 : -1];
12022 int
12023 main ()
12024 {
12025
12026   ;
12027   return 0;
12028 }
12029 _ACEOF
12030          if ac_fn_c_try_compile "$LINENO"; then :
12031   break
12032 fi
12033 rm -f core conftest.err conftest.$ac_objext
12034          CC="$CC -n32"
12035          if ac_fn_c_try_compile "$LINENO"; then :
12036   ac_cv_sys_largefile_CC=' -n32'; break
12037 fi
12038 rm -f core conftest.err conftest.$ac_objext
12039          break
12040        done
12041        CC=$ac_save_CC
12042        rm -f conftest.$ac_ext
12043     fi
12044 fi
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12046 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12047   if test "$ac_cv_sys_largefile_CC" != no; then
12048     CC=$CC$ac_cv_sys_largefile_CC
12049   fi
12050
12051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12052 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12053 if ${ac_cv_sys_file_offset_bits+:} false; then :
12054   $as_echo_n "(cached) " >&6
12055 else
12056   while :; do
12057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h.  */
12059 #include <sys/types.h>
12060  /* Check that off_t can represent 2**63 - 1 correctly.
12061     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12062     since some C++ compilers masquerading as C compilers
12063     incorrectly reject 9223372036854775807.  */
12064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12065   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12066                        && LARGE_OFF_T % 2147483647 == 1)
12067                       ? 1 : -1];
12068 int
12069 main ()
12070 {
12071
12072   ;
12073   return 0;
12074 }
12075 _ACEOF
12076 if ac_fn_c_try_compile "$LINENO"; then :
12077   ac_cv_sys_file_offset_bits=no; break
12078 fi
12079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h.  */
12082 #define _FILE_OFFSET_BITS 64
12083 #include <sys/types.h>
12084  /* Check that off_t can represent 2**63 - 1 correctly.
12085     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12086     since some C++ compilers masquerading as C compilers
12087     incorrectly reject 9223372036854775807.  */
12088 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12089   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12090                        && LARGE_OFF_T % 2147483647 == 1)
12091                       ? 1 : -1];
12092 int
12093 main ()
12094 {
12095
12096   ;
12097   return 0;
12098 }
12099 _ACEOF
12100 if ac_fn_c_try_compile "$LINENO"; then :
12101   ac_cv_sys_file_offset_bits=64; break
12102 fi
12103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12104   ac_cv_sys_file_offset_bits=unknown
12105   break
12106 done
12107 fi
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12109 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12110 case $ac_cv_sys_file_offset_bits in #(
12111   no | unknown) ;;
12112   *)
12113 cat >>confdefs.h <<_ACEOF
12114 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12115 _ACEOF
12116 ;;
12117 esac
12118 rm -rf conftest*
12119   if test $ac_cv_sys_file_offset_bits = unknown; then
12120     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12121 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12122 if ${ac_cv_sys_large_files+:} false; then :
12123   $as_echo_n "(cached) " >&6
12124 else
12125   while :; do
12126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h.  */
12128 #include <sys/types.h>
12129  /* Check that off_t can represent 2**63 - 1 correctly.
12130     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12131     since some C++ compilers masquerading as C compilers
12132     incorrectly reject 9223372036854775807.  */
12133 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12134   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12135                        && LARGE_OFF_T % 2147483647 == 1)
12136                       ? 1 : -1];
12137 int
12138 main ()
12139 {
12140
12141   ;
12142   return 0;
12143 }
12144 _ACEOF
12145 if ac_fn_c_try_compile "$LINENO"; then :
12146   ac_cv_sys_large_files=no; break
12147 fi
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h.  */
12151 #define _LARGE_FILES 1
12152 #include <sys/types.h>
12153  /* Check that off_t can represent 2**63 - 1 correctly.
12154     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12155     since some C++ compilers masquerading as C compilers
12156     incorrectly reject 9223372036854775807.  */
12157 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12158   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12159                        && LARGE_OFF_T % 2147483647 == 1)
12160                       ? 1 : -1];
12161 int
12162 main ()
12163 {
12164
12165   ;
12166   return 0;
12167 }
12168 _ACEOF
12169 if ac_fn_c_try_compile "$LINENO"; then :
12170   ac_cv_sys_large_files=1; break
12171 fi
12172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12173   ac_cv_sys_large_files=unknown
12174   break
12175 done
12176 fi
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12178 $as_echo "$ac_cv_sys_large_files" >&6; }
12179 case $ac_cv_sys_large_files in #(
12180   no | unknown) ;;
12181   *)
12182 cat >>confdefs.h <<_ACEOF
12183 #define _LARGE_FILES $ac_cv_sys_large_files
12184 _ACEOF
12185 ;;
12186 esac
12187 rm -rf conftest*
12188   fi
12189 fi
12190
12191
12192   GNULIB_MKTIME=0;
12193   GNULIB_NANOSLEEP=0;
12194   GNULIB_STRPTIME=0;
12195   GNULIB_TIMEGM=0;
12196   GNULIB_TIME_R=0;
12197     HAVE_LOCALTIME_R=1;
12198   HAVE_NANOSLEEP=1;
12199   HAVE_STRPTIME=1;
12200   HAVE_TIMEGM=1;
12201         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
12202   REPLACE_MKTIME=GNULIB_PORTCHECK;
12203   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
12204   REPLACE_TIMEGM=GNULIB_PORTCHECK;
12205
12206
12207
12208
12209
12210
12211
12212
12213   :
12214
12215
12216
12217
12218
12219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
12220 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
12221 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
12222   $as_echo_n "(cached) " >&6
12223 else
12224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h.  */
12226 #include <time.h>
12227
12228 int
12229 main ()
12230 {
12231 static struct timespec x; x.tv_sec = x.tv_nsec;
12232   ;
12233   return 0;
12234 }
12235 _ACEOF
12236 if ac_fn_c_try_compile "$LINENO"; then :
12237   gl_cv_sys_struct_timespec_in_time_h=yes
12238 else
12239   gl_cv_sys_struct_timespec_in_time_h=no
12240 fi
12241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12242 fi
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
12244 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
12245
12246   TIME_H_DEFINES_STRUCT_TIMESPEC=0
12247   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
12248   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
12249   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
12250     TIME_H_DEFINES_STRUCT_TIMESPEC=1
12251   else
12252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
12253 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
12254 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
12255   $as_echo_n "(cached) " >&6
12256 else
12257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h.  */
12259 #include <sys/time.h>
12260
12261 int
12262 main ()
12263 {
12264 static struct timespec x; x.tv_sec = x.tv_nsec;
12265   ;
12266   return 0;
12267 }
12268 _ACEOF
12269 if ac_fn_c_try_compile "$LINENO"; then :
12270   gl_cv_sys_struct_timespec_in_sys_time_h=yes
12271 else
12272   gl_cv_sys_struct_timespec_in_sys_time_h=no
12273 fi
12274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12275 fi
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
12277 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
12278     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
12279       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
12280     else
12281       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
12282 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
12283 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
12284   $as_echo_n "(cached) " >&6
12285 else
12286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h.  */
12288 #include <pthread.h>
12289
12290 int
12291 main ()
12292 {
12293 static struct timespec x; x.tv_sec = x.tv_nsec;
12294   ;
12295   return 0;
12296 }
12297 _ACEOF
12298 if ac_fn_c_try_compile "$LINENO"; then :
12299   gl_cv_sys_struct_timespec_in_pthread_h=yes
12300 else
12301   gl_cv_sys_struct_timespec_in_pthread_h=no
12302 fi
12303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12304 fi
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12306 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12307       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12308         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
12309       fi
12310     fi
12311   fi
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323   :
12324
12325
12326
12327
12328
12329
12330
12331      if test $gl_cv_have_include_next = yes; then
12332        gl_cv_next_time_h='<'time.h'>'
12333      else
12334        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12335 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12336 if ${gl_cv_next_time_h+:} false; then :
12337   $as_echo_n "(cached) " >&6
12338 else
12339
12340           if test $ac_cv_header_time_h = yes; then
12341             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h.  */
12343 #include <time.h>
12344
12345 _ACEOF
12346                                                                                                 case "$host_os" in
12347               aix*) gl_absname_cpp="$ac_cpp -C" ;;
12348               *)    gl_absname_cpp="$ac_cpp" ;;
12349             esac
12350                                                 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12351                sed -n '\#/time.h#{
12352                  s#.*"\(.*/time.h\)".*#\1#
12353                  s#^/[^/]#//&#
12354                  p
12355                  q
12356                }'`'"'
12357           else
12358             gl_cv_next_time_h='<'time.h'>'
12359           fi
12360
12361 fi
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12363 $as_echo "$gl_cv_next_time_h" >&6; }
12364      fi
12365      NEXT_TIME_H=$gl_cv_next_time_h
12366
12367      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12368        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12369        gl_next_as_first_directive='<'time.h'>'
12370      else
12371        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12372        gl_next_as_first_directive=$gl_cv_next_time_h
12373      fi
12374      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12392 $as_echo_n "checking for wint_t... " >&6; }
12393 if ${gt_cv_c_wint_t+:} false; then :
12394   $as_echo_n "(cached) " >&6
12395 else
12396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h.  */
12398 #include <wchar.h>
12399        wint_t foo = (wchar_t)'\0';
12400 int
12401 main ()
12402 {
12403
12404   ;
12405   return 0;
12406 }
12407 _ACEOF
12408 if ac_fn_c_try_compile "$LINENO"; then :
12409   gt_cv_c_wint_t=yes
12410 else
12411   gt_cv_c_wint_t=no
12412 fi
12413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12414 fi
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12416 $as_echo "$gt_cv_c_wint_t" >&6; }
12417   if test $gt_cv_c_wint_t = yes; then
12418
12419 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12420
12421   fi
12422
12423
12424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12425 $as_echo_n "checking for inttypes.h... " >&6; }
12426 if ${gl_cv_header_inttypes_h+:} false; then :
12427   $as_echo_n "(cached) " >&6
12428 else
12429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h.  */
12431 #include <sys/types.h>
12432 #include <inttypes.h>
12433 int
12434 main ()
12435 {
12436 uintmax_t i = (uintmax_t) -1;
12437   ;
12438   return 0;
12439 }
12440 _ACEOF
12441 if ac_fn_c_try_compile "$LINENO"; then :
12442   gl_cv_header_inttypes_h=yes
12443 else
12444   gl_cv_header_inttypes_h=no
12445 fi
12446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447 fi
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
12449 $as_echo "$gl_cv_header_inttypes_h" >&6; }
12450   if test $gl_cv_header_inttypes_h = yes; then
12451
12452 cat >>confdefs.h <<_ACEOF
12453 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
12454 _ACEOF
12455
12456   fi
12457
12458
12459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
12460 $as_echo_n "checking for stdint.h... " >&6; }
12461 if ${gl_cv_header_stdint_h+:} false; then :
12462   $as_echo_n "(cached) " >&6
12463 else
12464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465 /* end confdefs.h.  */
12466 #include <sys/types.h>
12467 #include <stdint.h>
12468 int
12469 main ()
12470 {
12471 uintmax_t i = (uintmax_t) -1;
12472   ;
12473   return 0;
12474 }
12475 _ACEOF
12476 if ac_fn_c_try_compile "$LINENO"; then :
12477   gl_cv_header_stdint_h=yes
12478 else
12479   gl_cv_header_stdint_h=no
12480 fi
12481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12482 fi
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
12484 $as_echo "$gl_cv_header_stdint_h" >&6; }
12485   if test $gl_cv_header_stdint_h = yes; then
12486
12487 cat >>confdefs.h <<_ACEOF
12488 #define HAVE_STDINT_H_WITH_UINTMAX 1
12489 _ACEOF
12490
12491   fi
12492
12493
12494
12495
12496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
12497 $as_echo_n "checking for intmax_t... " >&6; }
12498 if ${gt_cv_c_intmax_t+:} false; then :
12499   $as_echo_n "(cached) " >&6
12500 else
12501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h.  */
12503
12504 #include <stddef.h>
12505 #include <stdlib.h>
12506 #if HAVE_STDINT_H_WITH_UINTMAX
12507 #include <stdint.h>
12508 #endif
12509 #if HAVE_INTTYPES_H_WITH_UINTMAX
12510 #include <inttypes.h>
12511 #endif
12512
12513 int
12514 main ()
12515 {
12516 intmax_t x = -1; return !x;
12517   ;
12518   return 0;
12519 }
12520 _ACEOF
12521 if ac_fn_c_try_compile "$LINENO"; then :
12522   gt_cv_c_intmax_t=yes
12523 else
12524   gt_cv_c_intmax_t=no
12525 fi
12526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12527 fi
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
12529 $as_echo "$gt_cv_c_intmax_t" >&6; }
12530   if test $gt_cv_c_intmax_t = yes; then
12531
12532 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
12533
12534   else
12535
12536     test $ac_cv_type_long_long_int = yes \
12537       && ac_type='long long' \
12538       || ac_type='long'
12539
12540 cat >>confdefs.h <<_ACEOF
12541 #define intmax_t $ac_type
12542 _ACEOF
12543
12544   fi
12545
12546
12547
12548      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
12549 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
12550 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
12551   $as_echo_n "(cached) " >&6
12552 else
12553
12554       if test "$cross_compiling" = yes; then :
12555
12556          case "$host_os" in
12557                                  # Guess yes on glibc systems.
12558            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
12559                                  # Guess yes on FreeBSD >= 5.
12560            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
12561            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
12562                                  # Guess yes on MacOS X >= 10.3.
12563            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
12564            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
12565                                  # Guess yes on OpenBSD >= 3.9.
12566            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
12567                                  gl_cv_func_snprintf_retval_c99="guessing no";;
12568            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
12569                                  # Guess yes on Solaris >= 2.6.
12570            solaris2.[0-5]*)      gl_cv_func_snprintf_retval_c99="guessing no";;
12571            solaris*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
12572                                  # Guess yes on AIX >= 4.
12573            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
12574            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
12575                                  # Guess yes on NetBSD >= 3.
12576            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
12577                                  gl_cv_func_snprintf_retval_c99="guessing no";;
12578            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
12579                                  # Guess yes on BeOS.
12580            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
12581                                  # If we don't know, assume the worst.
12582            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
12583          esac
12584
12585 else
12586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587 /* end confdefs.h.  */
12588
12589 #include <stdio.h>
12590 #include <string.h>
12591 static char buf[100];
12592 int main ()
12593 {
12594   strcpy (buf, "ABCDEF");
12595   if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
12596     return 1;
12597   return 0;
12598 }
12599 _ACEOF
12600 if ac_fn_c_try_run "$LINENO"; then :
12601   gl_cv_func_snprintf_retval_c99=yes
12602 else
12603   gl_cv_func_snprintf_retval_c99=no
12604 fi
12605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12606   conftest.$ac_objext conftest.beam conftest.$ac_ext
12607 fi
12608
12609
12610 fi
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
12612 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
12613
12614
12615
12616
12617
12618
12619
12620   for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
12621 do :
12622   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12623 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12624 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12625   cat >>confdefs.h <<_ACEOF
12626 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12627 _ACEOF
12628
12629 fi
12630 done
12631
12632       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
12633 "
12634 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
12635   ac_have_decl=1
12636 else
12637   ac_have_decl=0
12638 fi
12639
12640 cat >>confdefs.h <<_ACEOF
12641 #define HAVE_DECL__SNPRINTF $ac_have_decl
12642 _ACEOF
12643
12644
12645   case "$gl_cv_func_snprintf_retval_c99" in
12646     *yes)
12647
12648 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
12649
12650       ;;
12651   esac
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669       ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "$ac_includes_default"
12670 if test "x$ac_cv_have_decl_iswblank" = xyes; then :
12671   ac_have_decl=1
12672 else
12673   ac_have_decl=0
12674 fi
12675
12676 cat >>confdefs.h <<_ACEOF
12677 #define HAVE_DECL_ISWBLANK $ac_have_decl
12678 _ACEOF
12679
12680
12681
12682
12683
12684
12685
12686
12687    if true; then
12688   GL_COND_LIBTOOL_TRUE=
12689   GL_COND_LIBTOOL_FALSE='#'
12690 else
12691   GL_COND_LIBTOOL_TRUE='#'
12692   GL_COND_LIBTOOL_FALSE=
12693 fi
12694
12695   gl_cond_libtool=true
12696   gl_m4_base='config/gnulib'
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706   gl_source_base='gnulib'
12707   # Code from module alignof:
12708   # Code from module alloca-opt:
12709
12710
12711
12712
12713
12714   if test $ac_cv_func_alloca_works = no; then
12715     :
12716   fi
12717
12718   # Define an additional variable used in the Makefile substitution.
12719   if test $ac_cv_working_alloca_h = yes; then
12720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12721 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12722 if ${gl_cv_rpl_alloca+:} false; then :
12723   $as_echo_n "(cached) " >&6
12724 else
12725
12726       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h.  */
12728
12729 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12730         Need own alloca
12731 #endif
12732
12733 _ACEOF
12734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12735   $EGREP "Need own alloca" >/dev/null 2>&1; then :
12736   gl_cv_rpl_alloca=yes
12737 else
12738   gl_cv_rpl_alloca=no
12739 fi
12740 rm -f conftest*
12741
12742
12743 fi
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12745 $as_echo "$gl_cv_rpl_alloca" >&6; }
12746     if test $gl_cv_rpl_alloca = yes; then
12747
12748 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12749
12750       ALLOCA_H=alloca.h
12751     else
12752                   ALLOCA_H=
12753     fi
12754   else
12755     ALLOCA_H=alloca.h
12756   fi
12757
12758
12759   # Code from module arg-nonnull:
12760   # Code from module arpa_inet:
12761
12762
12763
12764
12765   :
12766
12767
12768
12769
12770
12771   if test $ac_cv_header_arpa_inet_h = yes; then
12772     HAVE_ARPA_INET_H=1
12773   else
12774     HAVE_ARPA_INET_H=0
12775   fi
12776
12777
12778
12779
12780
12781   :
12782
12783
12784
12785
12786
12787
12788
12789      if test $gl_cv_have_include_next = yes; then
12790        gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
12791      else
12792        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
12793 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
12794 if ${gl_cv_next_arpa_inet_h+:} false; then :
12795   $as_echo_n "(cached) " >&6
12796 else
12797
12798           if test $ac_cv_header_arpa_inet_h = yes; then
12799             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h.  */
12801 #include <arpa/inet.h>
12802
12803 _ACEOF
12804                                                                                                 case "$host_os" in
12805               aix*) gl_absname_cpp="$ac_cpp -C" ;;
12806               *)    gl_absname_cpp="$ac_cpp" ;;
12807             esac
12808                                                 gl_cv_next_arpa_inet_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12809                sed -n '\#/arpa/inet.h#{
12810                  s#.*"\(.*/arpa/inet.h\)".*#\1#
12811                  s#^/[^/]#//&#
12812                  p
12813                  q
12814                }'`'"'
12815           else
12816             gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
12817           fi
12818
12819 fi
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
12821 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
12822      fi
12823      NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
12824
12825      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12826        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12827        gl_next_as_first_directive='<'arpa/inet.h'>'
12828      else
12829        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12830        gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
12831      fi
12832      NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
12833
12834
12835
12836
12837
12838     for gl_func in inet_ntop inet_pton; do
12839     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12841 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12842 if eval \${$as_gl_Symbol+:} false; then :
12843   $as_echo_n "(cached) " >&6
12844 else
12845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h.  */
12847
12848 /* On some systems, this header is not self-consistent.  */
12849 #ifndef __GLIBC__
12850 # include <sys/socket.h>
12851 #endif
12852 #include <arpa/inet.h>
12853
12854 int
12855 main ()
12856 {
12857 #undef $gl_func
12858   (void) $gl_func;
12859   ;
12860   return 0;
12861 }
12862 _ACEOF
12863 if ac_fn_c_try_compile "$LINENO"; then :
12864   eval "$as_gl_Symbol=yes"
12865 else
12866   eval "$as_gl_Symbol=no"
12867 fi
12868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12869 fi
12870 eval ac_res=\$$as_gl_Symbol
12871                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12872 $as_echo "$ac_res" >&6; }
12873      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
12874   cat >>confdefs.h <<_ACEOF
12875 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12876 _ACEOF
12877
12878                      eval ac_cv_have_decl_$gl_func=yes
12879 fi
12880       done
12881
12882
12883
12884   # Code from module base64:
12885
12886
12887
12888
12889
12890
12891   # Code from module btowc:
12892
12893
12894
12895
12896
12897
12898   :
12899
12900
12901
12902
12903
12904   if test $ac_cv_func_btowc = no; then
12905     HAVE_BTOWC=0
12906   else
12907
12908
12909
12910
12911         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
12912 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
12913 if ${gl_cv_func_btowc_nul+:} false; then :
12914   $as_echo_n "(cached) " >&6
12915 else
12916
12917         if test "$cross_compiling" = yes; then :
12918
12919            case "$host_os" in
12920                       # Guess no on Cygwin.
12921              cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
12922                       # Guess yes otherwise.
12923              *)       gl_cv_func_btowc_nul="guessing yes" ;;
12924            esac
12925
12926 else
12927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12928 /* end confdefs.h.  */
12929
12930 #include <stdio.h>
12931 #include <string.h>
12932 #include <wchar.h>
12933 int main ()
12934 {
12935   if (btowc ('\0') != 0)
12936     return 1;
12937   return 0;
12938 }
12939 _ACEOF
12940 if ac_fn_c_try_run "$LINENO"; then :
12941   gl_cv_func_btowc_nul=yes
12942 else
12943   gl_cv_func_btowc_nul=no
12944 fi
12945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12946   conftest.$ac_objext conftest.beam conftest.$ac_ext
12947 fi
12948
12949
12950 fi
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
12952 $as_echo "$gl_cv_func_btowc_nul" >&6; }
12953
12954         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
12955 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
12956 if ${gl_cv_func_btowc_eof+:} false; then :
12957   $as_echo_n "(cached) " >&6
12958 else
12959
12960                         case "$host_os" in
12961                  # Guess no on IRIX.
12962           irix*) gl_cv_func_btowc_eof="guessing no" ;;
12963                  # Guess yes otherwise.
12964           *)     gl_cv_func_btowc_eof="guessing yes" ;;
12965         esac
12966         if test $LOCALE_FR != none; then
12967           if test "$cross_compiling" = yes; then :
12968   :
12969 else
12970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h.  */
12972
12973 #include <locale.h>
12974 #include <stdio.h>
12975 #include <string.h>
12976 #include <wchar.h>
12977 int main ()
12978 {
12979   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
12980     {
12981       if (btowc (EOF) != WEOF)
12982         return 1;
12983     }
12984   return 0;
12985 }
12986 _ACEOF
12987 if ac_fn_c_try_run "$LINENO"; then :
12988   gl_cv_func_btowc_eof=yes
12989 else
12990   gl_cv_func_btowc_eof=no
12991 fi
12992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12993   conftest.$ac_objext conftest.beam conftest.$ac_ext
12994 fi
12995
12996         fi
12997
12998 fi
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
13000 $as_echo "$gl_cv_func_btowc_eof" >&6; }
13001
13002     case "$gl_cv_func_btowc_nul" in
13003       *yes) ;;
13004       *) REPLACE_BTOWC=1 ;;
13005     esac
13006     case "$gl_cv_func_btowc_eof" in
13007       *yes) ;;
13008       *) REPLACE_BTOWC=1 ;;
13009     esac
13010   fi
13011   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
13012
13013     :
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023   gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
13024
13025
13026   :
13027
13028   fi
13029
13030
13031
13032
13033   GNULIB_BTOWC=1
13034
13035
13036
13037 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
13038
13039
13040
13041   # Code from module c++defs:
13042   # Code from module c-ctype:
13043   # Code from module configmake:
13044   # Code from module environ:
13045
13046
13047
13048
13049   GNULIB_ENVIRON=1
13050
13051
13052
13053 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
13054
13055
13056
13057   # Code from module errno:
13058
13059   # Code from module extensions:
13060   # Code from module float:
13061
13062
13063
13064   FLOAT_H=
13065   case "$host_os" in
13066     beos* | openbsd*)
13067       FLOAT_H=float.h
13068
13069
13070
13071
13072   :
13073
13074
13075
13076
13077
13078
13079
13080      if test $gl_cv_have_include_next = yes; then
13081        gl_cv_next_float_h='<'float.h'>'
13082      else
13083        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
13084 $as_echo_n "checking absolute name of <float.h>... " >&6; }
13085 if ${gl_cv_next_float_h+:} false; then :
13086   $as_echo_n "(cached) " >&6
13087 else
13088
13089           if test $ac_cv_header_float_h = yes; then
13090             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h.  */
13092 #include <float.h>
13093
13094 _ACEOF
13095                                                                                                 case "$host_os" in
13096               aix*) gl_absname_cpp="$ac_cpp -C" ;;
13097               *)    gl_absname_cpp="$ac_cpp" ;;
13098             esac
13099                                                 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13100                sed -n '\#/float.h#{
13101                  s#.*"\(.*/float.h\)".*#\1#
13102                  s#^/[^/]#//&#
13103                  p
13104                  q
13105                }'`'"'
13106           else
13107             gl_cv_next_float_h='<'float.h'>'
13108           fi
13109
13110 fi
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
13112 $as_echo "$gl_cv_next_float_h" >&6; }
13113      fi
13114      NEXT_FLOAT_H=$gl_cv_next_float_h
13115
13116      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13117        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13118        gl_next_as_first_directive='<'float.h'>'
13119      else
13120        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13121        gl_next_as_first_directive=$gl_cv_next_float_h
13122      fi
13123      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
13124
13125
13126
13127       ;;
13128   esac
13129
13130
13131   # Code from module fseeko:
13132
13133
13134
13135
13136
13137   if test $gl_cv_func_fseeko = no; then
13138     HAVE_FSEEKO=0
13139
13140
13141
13142   if test $gl_cv_func_fseeko = yes; then
13143     REPLACE_FSEEKO=1
13144   fi
13145
13146
13147
13148
13149
13150
13151
13152
13153   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
13154
13155
13156
13157   else
13158     if test $gl_cv_var_stdin_large_offset = no; then
13159
13160
13161
13162   if test $gl_cv_func_fseeko = yes; then
13163     REPLACE_FSEEKO=1
13164   fi
13165
13166
13167
13168
13169
13170
13171
13172
13173   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
13174
13175
13176
13177     fi
13178   fi
13179
13180
13181
13182
13183   GNULIB_FSEEKO=1
13184
13185
13186
13187 $as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
13188
13189
13190
13191   # Code from module fsusage:
13192
13193
13194   :
13195
13196
13197
13198
13199
13200
13201   :
13202
13203
13204
13205
13206
13207
13208
13209
13210   for ac_header in sys/mount.h
13211 do :
13212   ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default
13213      #if HAVE_SYS_PARAM_H
13214        #include <sys/param.h>
13215       #endif
13216 "
13217 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
13218   cat >>confdefs.h <<_ACEOF
13219 #define HAVE_SYS_MOUNT_H 1
13220 _ACEOF
13221
13222 fi
13223
13224 done
13225
13226
13227
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get file system space usage" >&5
13229 $as_echo "$as_me: checking how to get file system space usage" >&6;}
13230 ac_fsusage_space=no
13231
13232 # Perform only the link test since it seems there are no variants of the
13233 # statvfs function.  This check is more than just AC_CHECK_FUNCS([statvfs])
13234 # because that got a false positive on SCO OSR5.  Adding the declaration
13235 # of a `struct statvfs' causes this test to fail (as it should) on such
13236 # systems.  That system is reported to work fine with STAT_STATFS4 which
13237 # is what it gets when this test fails.
13238 if test $ac_fsusage_space = no; then
13239   # glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
13240   # OpenBSD >= 4.4, AIX, HP-UX, IRIX, Solaris, Cygwin, Interix, BeOS.
13241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statvfs function (SVR4)" >&5
13242 $as_echo_n "checking for statvfs function (SVR4)... " >&6; }
13243 if ${fu_cv_sys_stat_statvfs+:} false; then :
13244   $as_echo_n "(cached) " >&6
13245 else
13246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h.  */
13248 #include <sys/types.h>
13249 #if defined __GLIBC__ && defined __linux__
13250 Do not use statvfs on systems with GNU libc on Linux, because that function
13251 stats all preceding entries in /proc/mounts, and that makes df hang if even
13252 one of the corresponding file systems is hard-mounted, but not available.
13253 statvfs in GNU libc on Hurd, BeOS, Haiku operates differently: it only makes
13254 a system call.
13255 #endif
13256
13257 #ifdef __osf__
13258 "Do not use Tru64's statvfs implementation"
13259 #endif
13260
13261 #include <sys/statvfs.h>
13262 int
13263 main ()
13264 {
13265 struct statvfs fsd; statvfs (0, &fsd);
13266   ;
13267   return 0;
13268 }
13269 _ACEOF
13270 if ac_fn_c_try_link "$LINENO"; then :
13271   fu_cv_sys_stat_statvfs=yes
13272 else
13273   fu_cv_sys_stat_statvfs=no
13274 fi
13275 rm -f core conftest.err conftest.$ac_objext \
13276     conftest$ac_exeext conftest.$ac_ext
13277 fi
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs" >&5
13279 $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
13280   if test $fu_cv_sys_stat_statvfs = yes; then
13281     ac_fsusage_space=yes
13282
13283 $as_echo "#define STAT_STATVFS 1" >>confdefs.h
13284
13285   fi
13286 fi
13287
13288 if test $ac_fsusage_space = no; then
13289   # DEC Alpha running OSF/1
13290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3-argument statfs function (DEC OSF/1)" >&5
13291 $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
13292   if ${fu_cv_sys_stat_statfs3_osf1+:} false; then :
13293   $as_echo_n "(cached) " >&6
13294 else
13295   if test "$cross_compiling" = yes; then :
13296   fu_cv_sys_stat_statfs3_osf1=no
13297 else
13298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h.  */
13300
13301 #include <sys/param.h>
13302 #include <sys/types.h>
13303 #include <sys/mount.h>
13304   int
13305   main ()
13306   {
13307     struct statfs fsd;
13308     fsd.f_fsize = 0;
13309     return statfs (".", &fsd, sizeof (struct statfs)) != 0;
13310   }
13311 _ACEOF
13312 if ac_fn_c_try_run "$LINENO"; then :
13313   fu_cv_sys_stat_statfs3_osf1=yes
13314 else
13315   fu_cv_sys_stat_statfs3_osf1=no
13316 fi
13317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13318   conftest.$ac_objext conftest.beam conftest.$ac_ext
13319 fi
13320
13321 fi
13322
13323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs3_osf1" >&5
13324 $as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
13325   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13326     ac_fsusage_space=yes
13327
13328 $as_echo "#define STAT_STATFS3_OSF1 1" >>confdefs.h
13329
13330   fi
13331 fi
13332
13333 if test $ac_fsusage_space = no; then
13334   # glibc/Linux, MacOS X < 10.4, FreeBSD < 5.0, NetBSD < 3.0, OpenBSD < 4.4.
13335   # (glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
13336   # OpenBSD >= 4.4, AIX, HP-UX, OSF/1, Cygwin already handled above.)
13337   # (On IRIX you need to include <sys/statfs.h>, not only <sys/mount.h> and
13338   # <sys/vfs.h>.)
13339   # (On Solaris, statfs has 4 arguments.)
13340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)" >&5
13341 $as_echo_n "checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)... " >&6; }
13342   if ${fu_cv_sys_stat_statfs2_bsize+:} false; then :
13343   $as_echo_n "(cached) " >&6
13344 else
13345   if test "$cross_compiling" = yes; then :
13346   fu_cv_sys_stat_statfs2_bsize=no
13347 else
13348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349 /* end confdefs.h.  */
13350
13351 #ifdef HAVE_SYS_PARAM_H
13352 #include <sys/param.h>
13353 #endif
13354 #ifdef HAVE_SYS_MOUNT_H
13355 #include <sys/mount.h>
13356 #endif
13357 #ifdef HAVE_SYS_VFS_H
13358 #include <sys/vfs.h>
13359 #endif
13360   int
13361   main ()
13362   {
13363   struct statfs fsd;
13364   fsd.f_bsize = 0;
13365   return statfs (".", &fsd) != 0;
13366   }
13367 _ACEOF
13368 if ac_fn_c_try_run "$LINENO"; then :
13369   fu_cv_sys_stat_statfs2_bsize=yes
13370 else
13371   fu_cv_sys_stat_statfs2_bsize=no
13372 fi
13373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13374   conftest.$ac_objext conftest.beam conftest.$ac_ext
13375 fi
13376
13377 fi
13378
13379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_bsize" >&5
13380 $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
13381   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13382     ac_fsusage_space=yes
13383
13384 $as_echo "#define STAT_STATFS2_BSIZE 1" >>confdefs.h
13385
13386   fi
13387 fi
13388
13389 if test $ac_fsusage_space = no; then
13390   # SVR3
13391   # (Solaris already handled above.)
13392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13393 $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
13394   if ${fu_cv_sys_stat_statfs4+:} false; then :
13395   $as_echo_n "(cached) " >&6
13396 else
13397   if test "$cross_compiling" = yes; then :
13398   fu_cv_sys_stat_statfs4=no
13399 else
13400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401 /* end confdefs.h.  */
13402
13403 #include <sys/types.h>
13404 #include <sys/statfs.h>
13405   int
13406   main ()
13407   {
13408   struct statfs fsd;
13409   return statfs (".", &fsd, sizeof fsd, 0) != 0;
13410   }
13411 _ACEOF
13412 if ac_fn_c_try_run "$LINENO"; then :
13413   fu_cv_sys_stat_statfs4=yes
13414 else
13415   fu_cv_sys_stat_statfs4=no
13416 fi
13417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13418   conftest.$ac_objext conftest.beam conftest.$ac_ext
13419 fi
13420
13421 fi
13422
13423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs4" >&5
13424 $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
13425   if test $fu_cv_sys_stat_statfs4 = yes; then
13426     ac_fsusage_space=yes
13427
13428 $as_echo "#define STAT_STATFS4 1" >>confdefs.h
13429
13430   fi
13431 fi
13432
13433 if test $ac_fsusage_space = no; then
13434   # 4.4BSD and older NetBSD
13435   # (OSF/1 already handled above.)
13436   # (On AIX, you need to include <sys/statfs.h>, not only <sys/mount.h>.)
13437   # (On Solaris, statfs has 4 arguments and 'struct statfs' is not declared in
13438   # <sys/mount.h>.)
13439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)" >&5
13440 $as_echo_n "checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)... " >&6; }
13441   if ${fu_cv_sys_stat_statfs2_fsize+:} false; then :
13442   $as_echo_n "(cached) " >&6
13443 else
13444   if test "$cross_compiling" = yes; then :
13445   fu_cv_sys_stat_statfs2_fsize=no
13446 else
13447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h.  */
13449
13450 #include <sys/types.h>
13451 #ifdef HAVE_SYS_PARAM_H
13452 #include <sys/param.h>
13453 #endif
13454 #ifdef HAVE_SYS_MOUNT_H
13455 #include <sys/mount.h>
13456 #endif
13457   int
13458   main ()
13459   {
13460   struct statfs fsd;
13461   fsd.f_fsize = 0;
13462   return statfs (".", &fsd) != 0;
13463   }
13464 _ACEOF
13465 if ac_fn_c_try_run "$LINENO"; then :
13466   fu_cv_sys_stat_statfs2_fsize=yes
13467 else
13468   fu_cv_sys_stat_statfs2_fsize=no
13469 fi
13470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13471   conftest.$ac_objext conftest.beam conftest.$ac_ext
13472 fi
13473
13474 fi
13475
13476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_fsize" >&5
13477 $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
13478   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13479     ac_fsusage_space=yes
13480
13481 $as_echo "#define STAT_STATFS2_FSIZE 1" >>confdefs.h
13482
13483   fi
13484 fi
13485
13486 if test $ac_fsusage_space = no; then
13487   # Ultrix
13488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13489 $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
13490   if ${fu_cv_sys_stat_fs_data+:} false; then :
13491   $as_echo_n "(cached) " >&6
13492 else
13493   if test "$cross_compiling" = yes; then :
13494   fu_cv_sys_stat_fs_data=no
13495 else
13496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h.  */
13498
13499 #include <sys/types.h>
13500 #ifdef HAVE_SYS_PARAM_H
13501 #include <sys/param.h>
13502 #endif
13503 #ifdef HAVE_SYS_MOUNT_H
13504 #include <sys/mount.h>
13505 #endif
13506 #ifdef HAVE_SYS_FS_TYPES_H
13507 #include <sys/fs_types.h>
13508 #endif
13509   int
13510   main ()
13511   {
13512   struct fs_data fsd;
13513   /* Ultrix's statfs returns 1 for success,
13514      0 for not mounted, -1 for failure.  */
13515   return statfs (".", &fsd) != 1;
13516   }
13517 _ACEOF
13518 if ac_fn_c_try_run "$LINENO"; then :
13519   fu_cv_sys_stat_fs_data=yes
13520 else
13521   fu_cv_sys_stat_fs_data=no
13522 fi
13523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13524   conftest.$ac_objext conftest.beam conftest.$ac_ext
13525 fi
13526
13527 fi
13528
13529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_fs_data" >&5
13530 $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
13531   if test $fu_cv_sys_stat_fs_data = yes; then
13532     ac_fsusage_space=yes
13533
13534 $as_echo "#define STAT_STATFS2_FS_DATA 1" >>confdefs.h
13535
13536   fi
13537 fi
13538
13539 if test $ac_fsusage_space = no; then
13540   # SVR2
13541   # (AIX, HP-UX, OSF/1 already handled above.)
13542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h.  */
13544 #include <sys/filsys.h>
13545
13546 _ACEOF
13547 if ac_fn_c_try_cpp "$LINENO"; then :
13548
13549 $as_echo "#define STAT_READ_FILSYS 1" >>confdefs.h
13550
13551      ac_fsusage_space=yes
13552 fi
13553 rm -f conftest.err conftest.i conftest.$ac_ext
13554 fi
13555
13556 if test $ac_fsusage_space = yes; then :
13557   gl_cv_fs_space=yes
13558 else
13559   gl_cv_fs_space=no
13560 fi
13561
13562
13563   if test $gl_cv_fs_space = yes; then
13564
13565
13566
13567
13568
13569
13570
13571
13572   gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
13573
13574
13575   for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
13576 do :
13577   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13578 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13579 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13580   cat >>confdefs.h <<_ACEOF
13581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13582 _ACEOF
13583
13584 fi
13585
13586 done
13587
13588
13589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statfs that truncates block counts" >&5
13590 $as_echo_n "checking for statfs that truncates block counts... " >&6; }
13591   if ${fu_cv_sys_truncating_statfs+:} false; then :
13592   $as_echo_n "(cached) " >&6
13593 else
13594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h.  */
13596
13597 #if !defined(sun) && !defined(__sun)
13598 choke -- this is a workaround for a Sun-specific problem
13599 #endif
13600 #include <sys/types.h>
13601 #include <sys/vfs.h>
13602 int
13603 main ()
13604 {
13605 struct statfs t; long c = *(t.f_spare);
13606         if (c) return 0;
13607   ;
13608   return 0;
13609 }
13610 _ACEOF
13611 if ac_fn_c_try_compile "$LINENO"; then :
13612   fu_cv_sys_truncating_statfs=yes
13613 else
13614   fu_cv_sys_truncating_statfs=no
13615 fi
13616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13617 fi
13618
13619   if test $fu_cv_sys_truncating_statfs = yes; then
13620
13621 $as_echo "#define STATFS_TRUNCATES_BLOCK_COUNTS 1" >>confdefs.h
13622
13623   fi
13624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_truncating_statfs" >&5
13625 $as_echo "$fu_cv_sys_truncating_statfs" >&6; }
13626
13627
13628   fi
13629
13630   # Code from module ftello:
13631
13632
13633
13634
13635
13636
13637
13638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
13639 $as_echo_n "checking for ftello... " >&6; }
13640 if ${gl_cv_func_ftello+:} false; then :
13641   $as_echo_n "(cached) " >&6
13642 else
13643
13644       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h.  */
13646 #include <stdio.h>
13647 int
13648 main ()
13649 {
13650 ftello (stdin);
13651   ;
13652   return 0;
13653 }
13654 _ACEOF
13655 if ac_fn_c_try_link "$LINENO"; then :
13656   gl_cv_func_ftello=yes
13657 else
13658   gl_cv_func_ftello=no
13659 fi
13660 rm -f core conftest.err conftest.$ac_objext \
13661     conftest$ac_exeext conftest.$ac_ext
13662
13663 fi
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
13665 $as_echo "$gl_cv_func_ftello" >&6; }
13666   if test $gl_cv_func_ftello = no; then
13667     HAVE_FTELLO=0
13668   else
13669     if test $gl_cv_var_stdin_large_offset = no; then
13670       REPLACE_FTELLO=1
13671     else
13672
13673       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
13674 $as_echo_n "checking whether ftello works... " >&6; }
13675 if ${gl_cv_func_ftello_works+:} false; then :
13676   $as_echo_n "(cached) " >&6
13677 else
13678
13679                               case "$host_os" in
13680                       # Guess no on Solaris.
13681             solaris*) gl_cv_func_ftello_works="guessing no" ;;
13682                       # Guess yes otherwise.
13683             *)        gl_cv_func_ftello_works="guessing yes" ;;
13684           esac
13685           if test "$cross_compiling" = yes; then :
13686   :
13687 else
13688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h.  */
13690
13691 #include <stdio.h>
13692 #include <stdlib.h>
13693 #include <string.h>
13694 #define TESTFILE "conftest.tmp"
13695 int
13696 main (void)
13697 {
13698   FILE *fp;
13699
13700   /* Create a file with some contents.  */
13701   fp = fopen (TESTFILE, "w");
13702   if (fp == NULL)
13703     return 70;
13704   if (fwrite ("foogarsh", 1, 8, fp) < 8)
13705     return 71;
13706   if (fclose (fp))
13707     return 72;
13708
13709   /* The file's contents is now "foogarsh".  */
13710
13711   /* Try writing after reading to EOF.  */
13712   fp = fopen (TESTFILE, "r+");
13713   if (fp == NULL)
13714     return 73;
13715   if (fseek (fp, -1, SEEK_END))
13716     return 74;
13717   if (!(getc (fp) == 'h'))
13718     return 1;
13719   if (!(getc (fp) == EOF))
13720     return 2;
13721   if (!(ftell (fp) == 8))
13722     return 3;
13723   if (!(ftell (fp) == 8))
13724     return 4;
13725   if (!(putc ('!', fp) == '!'))
13726     return 5;
13727   if (!(ftell (fp) == 9))
13728     return 6;
13729   if (!(fclose (fp) == 0))
13730     return 7;
13731   fp = fopen (TESTFILE, "r");
13732   if (fp == NULL)
13733     return 75;
13734   {
13735     char buf[10];
13736     if (!(fread (buf, 1, 10, fp) == 9))
13737       return 10;
13738     if (!(memcmp (buf, "foogarsh!", 9) == 0))
13739       return 11;
13740   }
13741   if (!(fclose (fp) == 0))
13742     return 12;
13743
13744   /* The file's contents is now "foogarsh!".  */
13745
13746   return 0;
13747 }
13748 _ACEOF
13749 if ac_fn_c_try_run "$LINENO"; then :
13750   gl_cv_func_ftello_works=yes
13751 else
13752   gl_cv_func_ftello_works=no
13753 fi
13754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13755   conftest.$ac_objext conftest.beam conftest.$ac_ext
13756 fi
13757
13758
13759 fi
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
13761 $as_echo "$gl_cv_func_ftello_works" >&6; }
13762       case "$gl_cv_func_ftello_works" in
13763         *yes) ;;
13764         *)
13765           REPLACE_FTELLO=1
13766
13767 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
13768
13769           ;;
13770       esac
13771     fi
13772   fi
13773   if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783   gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
13784
13785
13786   fi
13787
13788
13789
13790
13791   GNULIB_FTELLO=1
13792
13793
13794
13795 $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
13796
13797
13798
13799   # Code from module ftruncate:
13800
13801
13802
13803
13804   :
13805
13806
13807
13808
13809
13810   if test $ac_cv_func_ftruncate = no; then
13811     HAVE_FTRUNCATE=0
13812
13813
13814
13815
13816
13817
13818
13819
13820   gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
13821
13822
13823   for ac_func in chsize
13824 do :
13825   ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize"
13826 if test "x$ac_cv_func_chsize" = xyes; then :
13827   cat >>confdefs.h <<_ACEOF
13828 #define HAVE_CHSIZE 1
13829 _ACEOF
13830
13831 fi
13832 done
13833
13834
13835     case "$host_os" in
13836       mingw*)
13837         # Yes, we know mingw lacks ftruncate.
13838         ;;
13839       *)
13840         # If someone lacks ftruncate, make configure fail, and request
13841         # a bug report to inform us about it.
13842         if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
13843           { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13845 as_fn_error $? "Your system lacks the ftruncate function.
13846               Please report this, along with the output of \"uname -a\", to the
13847               bug-coreutils@gnu.org mailing list.  To continue past this point,
13848               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
13849               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
13850 See \`config.log' for more details" "$LINENO" 5; }
13851         fi
13852     esac
13853   fi
13854
13855
13856
13857
13858   GNULIB_FTRUNCATE=1
13859
13860
13861
13862 $as_echo "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h
13863
13864
13865
13866   # Code from module full-read:
13867   # Code from module full-write:
13868   # Code from module getaddrinfo:
13869
13870       { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
13871 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
13872   GETADDRINFO_LIB=
13873   gai_saved_LIBS="$LIBS"
13874
13875               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13876 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13877 if ${ac_cv_search_getaddrinfo+:} false; then :
13878   $as_echo_n "(cached) " >&6
13879 else
13880   ac_func_search_save_LIBS=$LIBS
13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h.  */
13883
13884 /* Override any GCC internal prototype to avoid an error.
13885    Use char because int might match the return type of a GCC
13886    builtin and then its argument prototype would still apply.  */
13887 #ifdef __cplusplus
13888 extern "C"
13889 #endif
13890 char getaddrinfo ();
13891 int
13892 main ()
13893 {
13894 return getaddrinfo ();
13895   ;
13896   return 0;
13897 }
13898 _ACEOF
13899 for ac_lib in '' socket network net; do
13900   if test -z "$ac_lib"; then
13901     ac_res="none required"
13902   else
13903     ac_res=-l$ac_lib
13904     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13905   fi
13906   if ac_fn_c_try_link "$LINENO"; then :
13907   ac_cv_search_getaddrinfo=$ac_res
13908 fi
13909 rm -f core conftest.err conftest.$ac_objext \
13910     conftest$ac_exeext
13911   if ${ac_cv_search_getaddrinfo+:} false; then :
13912   break
13913 fi
13914 done
13915 if ${ac_cv_search_getaddrinfo+:} false; then :
13916
13917 else
13918   ac_cv_search_getaddrinfo=no
13919 fi
13920 rm conftest.$ac_ext
13921 LIBS=$ac_func_search_save_LIBS
13922 fi
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13924 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13925 ac_res=$ac_cv_search_getaddrinfo
13926 if test "$ac_res" != no; then :
13927   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13928   if test "$ac_cv_search_getaddrinfo" != "none required"; then
13929        GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
13930      fi
13931 fi
13932
13933   LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
13934
13935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13936 $as_echo_n "checking for getaddrinfo... " >&6; }
13937 if ${gl_cv_func_getaddrinfo+:} false; then :
13938   $as_echo_n "(cached) " >&6
13939 else
13940
13941     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h.  */
13943
13944 #include <sys/types.h>
13945 #ifdef HAVE_SYS_SOCKET_H
13946 #include <sys/socket.h>
13947 #endif
13948 #ifdef HAVE_NETDB_H
13949 #include <netdb.h>
13950 #endif
13951 #include <stddef.h>
13952
13953 int
13954 main ()
13955 {
13956 getaddrinfo("", "", NULL, NULL);
13957   ;
13958   return 0;
13959 }
13960 _ACEOF
13961 if ac_fn_c_try_link "$LINENO"; then :
13962   gl_cv_func_getaddrinfo=yes
13963 else
13964   gl_cv_func_getaddrinfo=no
13965 fi
13966 rm -f core conftest.err conftest.$ac_objext \
13967     conftest$ac_exeext conftest.$ac_ext
13968 fi
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo" >&5
13970 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
13971   if test $gl_cv_func_getaddrinfo = no; then
13972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
13973 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
13974 if ${gl_cv_w32_getaddrinfo+:} false; then :
13975   $as_echo_n "(cached) " >&6
13976 else
13977
13978       gl_cv_w32_getaddrinfo=no
13979       am_save_LIBS="$LIBS"
13980       LIBS="$LIBS -lws2_32"
13981       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h.  */
13983
13984 #ifdef HAVE_WS2TCPIP_H
13985 #include <ws2tcpip.h>
13986 #endif
13987 #include <stddef.h>
13988
13989 int
13990 main ()
13991 {
13992 getaddrinfo(NULL, NULL, NULL, NULL);
13993   ;
13994   return 0;
13995 }
13996 _ACEOF
13997 if ac_fn_c_try_link "$LINENO"; then :
13998   gl_cv_w32_getaddrinfo=yes
13999 fi
14000 rm -f core conftest.err conftest.$ac_objext \
14001     conftest$ac_exeext conftest.$ac_ext
14002       LIBS="$am_save_LIBS"
14003
14004 fi
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getaddrinfo" >&5
14006 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
14007     if test "$gl_cv_w32_getaddrinfo" = "yes"; then
14008       GETADDRINFO_LIB="-lws2_32"
14009       LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
14010     else
14011
14012
14013
14014
14015
14016
14017
14018
14019   gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
14020
14021     fi
14022   fi
14023
14024   # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
14025   # inline function declared in ws2tcpip.h, so we need to get that
14026   # header included somehow.
14027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
14028 $as_echo_n "checking for gai_strerror (possibly via ws2tcpip.h)... " >&6; }
14029 if ${gl_cv_func_gai_strerror+:} false; then :
14030   $as_echo_n "(cached) " >&6
14031 else
14032
14033       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h.  */
14035
14036 #include <sys/types.h>
14037 #ifdef HAVE_SYS_SOCKET_H
14038 #include <sys/socket.h>
14039 #endif
14040 #ifdef HAVE_NETDB_H
14041 #include <netdb.h>
14042 #endif
14043 #ifdef HAVE_WS2TCPIP_H
14044 #include <ws2tcpip.h>
14045 #endif
14046 #include <stddef.h>
14047
14048 int
14049 main ()
14050 {
14051 gai_strerror (NULL);
14052   ;
14053   return 0;
14054 }
14055 _ACEOF
14056 if ac_fn_c_try_link "$LINENO"; then :
14057   gl_cv_func_gai_strerror=yes
14058 else
14059   gl_cv_func_gai_strerror=no
14060 fi
14061 rm -f core conftest.err conftest.$ac_objext \
14062     conftest$ac_exeext conftest.$ac_ext
14063 fi
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gai_strerror" >&5
14065 $as_echo "$gl_cv_func_gai_strerror" >&6; }
14066   if test $gl_cv_func_gai_strerror = no; then
14067
14068
14069
14070
14071
14072
14073
14074
14075   gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
14076
14077   fi
14078
14079   LIBS="$gai_saved_LIBS"
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089       ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
14090 "
14091 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14092
14093 cat >>confdefs.h <<_ACEOF
14094 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14095 _ACEOF
14096
14097
14098 fi
14099
14100
14101
14102   :
14103
14104
14105
14106
14107
14108
14109   ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" "
14110   /* sys/types.h is not needed according to POSIX, but the
14111      sys/socket.h in i386-unknown-freebsd4.10 and
14112      powerpc-apple-darwin5.5 required it. */
14113 #include <sys/types.h>
14114 #ifdef HAVE_SYS_SOCKET_H
14115 #include <sys/socket.h>
14116 #endif
14117 #ifdef HAVE_NETDB_H
14118 #include <netdb.h>
14119 #endif
14120 #ifdef HAVE_WS2TCPIP_H
14121 #include <ws2tcpip.h>
14122 #endif
14123
14124 "
14125 if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then :
14126   ac_have_decl=1
14127 else
14128   ac_have_decl=0
14129 fi
14130
14131 cat >>confdefs.h <<_ACEOF
14132 #define HAVE_DECL_GETADDRINFO $ac_have_decl
14133 _ACEOF
14134 ac_fn_c_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" "
14135   /* sys/types.h is not needed according to POSIX, but the
14136      sys/socket.h in i386-unknown-freebsd4.10 and
14137      powerpc-apple-darwin5.5 required it. */
14138 #include <sys/types.h>
14139 #ifdef HAVE_SYS_SOCKET_H
14140 #include <sys/socket.h>
14141 #endif
14142 #ifdef HAVE_NETDB_H
14143 #include <netdb.h>
14144 #endif
14145 #ifdef HAVE_WS2TCPIP_H
14146 #include <ws2tcpip.h>
14147 #endif
14148
14149 "
14150 if test "x$ac_cv_have_decl_freeaddrinfo" = xyes; then :
14151   ac_have_decl=1
14152 else
14153   ac_have_decl=0
14154 fi
14155
14156 cat >>confdefs.h <<_ACEOF
14157 #define HAVE_DECL_FREEADDRINFO $ac_have_decl
14158 _ACEOF
14159 ac_fn_c_check_decl "$LINENO" "gai_strerror" "ac_cv_have_decl_gai_strerror" "
14160   /* sys/types.h is not needed according to POSIX, but the
14161      sys/socket.h in i386-unknown-freebsd4.10 and
14162      powerpc-apple-darwin5.5 required it. */
14163 #include <sys/types.h>
14164 #ifdef HAVE_SYS_SOCKET_H
14165 #include <sys/socket.h>
14166 #endif
14167 #ifdef HAVE_NETDB_H
14168 #include <netdb.h>
14169 #endif
14170 #ifdef HAVE_WS2TCPIP_H
14171 #include <ws2tcpip.h>
14172 #endif
14173
14174 "
14175 if test "x$ac_cv_have_decl_gai_strerror" = xyes; then :
14176   ac_have_decl=1
14177 else
14178   ac_have_decl=0
14179 fi
14180
14181 cat >>confdefs.h <<_ACEOF
14182 #define HAVE_DECL_GAI_STRERROR $ac_have_decl
14183 _ACEOF
14184 ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" "
14185   /* sys/types.h is not needed according to POSIX, but the
14186      sys/socket.h in i386-unknown-freebsd4.10 and
14187      powerpc-apple-darwin5.5 required it. */
14188 #include <sys/types.h>
14189 #ifdef HAVE_SYS_SOCKET_H
14190 #include <sys/socket.h>
14191 #endif
14192 #ifdef HAVE_NETDB_H
14193 #include <netdb.h>
14194 #endif
14195 #ifdef HAVE_WS2TCPIP_H
14196 #include <ws2tcpip.h>
14197 #endif
14198
14199 "
14200 if test "x$ac_cv_have_decl_getnameinfo" = xyes; then :
14201   ac_have_decl=1
14202 else
14203   ac_have_decl=0
14204 fi
14205
14206 cat >>confdefs.h <<_ACEOF
14207 #define HAVE_DECL_GETNAMEINFO $ac_have_decl
14208 _ACEOF
14209
14210   if test $ac_cv_have_decl_getaddrinfo = no; then
14211     HAVE_DECL_GETADDRINFO=0
14212   fi
14213   if test $ac_cv_have_decl_freeaddrinfo = no; then
14214     HAVE_DECL_FREEADDRINFO=0
14215   fi
14216   if test $ac_cv_have_decl_gai_strerror = no; then
14217     HAVE_DECL_GAI_STRERROR=0
14218   fi
14219   if test $ac_cv_have_decl_getnameinfo = no; then
14220     HAVE_DECL_GETNAMEINFO=0
14221   fi
14222
14223   ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
14224 #include <sys/types.h>
14225 #ifdef HAVE_SYS_SOCKET_H
14226 #include <sys/socket.h>
14227 #endif
14228 #ifdef HAVE_NETDB_H
14229 #include <netdb.h>
14230 #endif
14231 #ifdef HAVE_WS2TCPIP_H
14232 #include <ws2tcpip.h>
14233 #endif
14234
14235 "
14236 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14237
14238 cat >>confdefs.h <<_ACEOF
14239 #define HAVE_STRUCT_ADDRINFO 1
14240 _ACEOF
14241
14242
14243 fi
14244
14245   if test $ac_cv_type_struct_addrinfo = no; then
14246     HAVE_STRUCT_ADDRINFO=0
14247   fi
14248
14249     case " $GETADDRINFO_LIB " in
14250     *" $HOSTENT_LIB "*) ;;
14251     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
14252   esac
14253
14254     case " $GETADDRINFO_LIB " in
14255     *" $SERVENT_LIB "*) ;;
14256     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
14257   esac
14258
14259     case " $GETADDRINFO_LIB " in
14260     *" $INET_NTOP_LIB "*) ;;
14261     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;;
14262   esac
14263
14264
14265
14266
14267
14268
14269
14270   GNULIB_GETADDRINFO=1
14271
14272
14273   # Code from module getopt-gnu:
14274
14275
14276
14277
14278
14279
14280
14281 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
14282
14283
14284   # Code from module getopt-posix:
14285
14286
14287
14288
14289
14290   if test -n "$gl_replace_getopt"; then :
14291
14292
14293
14294   GETOPT_H=getopt.h
14295
14296 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14297
14298
14299
14300     GNULIB_UNISTD_H_GETOPT=1
14301
14302
14303
14304
14305
14306
14307
14308
14309   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14320
14321
14322
14323   :
14324
14325
14326
14327
14328
14329
14330
14331
14332 fi
14333
14334
14335   # Code from module gettext-h:
14336
14337
14338   # Code from module gettimeofday:
14339
14340
14341
14342
14343
14344   :
14345
14346
14347
14348
14349
14350
14351   gl_gettimeofday_timezone=void
14352   if test $ac_cv_func_gettimeofday != yes; then
14353     HAVE_GETTIMEOFDAY=0
14354
14355
14356
14357
14358
14359
14360
14361
14362   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14363
14364
14365   for ac_header in sys/timeb.h
14366 do :
14367   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14368 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14369   cat >>confdefs.h <<_ACEOF
14370 #define HAVE_SYS_TIMEB_H 1
14371 _ACEOF
14372
14373 fi
14374
14375 done
14376
14377   for ac_func in _ftime
14378 do :
14379   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14380 if test "x$ac_cv_func__ftime" = xyes; then :
14381   cat >>confdefs.h <<_ACEOF
14382 #define HAVE__FTIME 1
14383 _ACEOF
14384
14385 fi
14386 done
14387
14388
14389   else
14390
14391
14392
14393  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
14394 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
14395 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
14396   $as_echo_n "(cached) " >&6
14397 else
14398   if test "$cross_compiling" = yes; then :
14399        gl_cv_func_gettimeofday_clobber=yes
14400 else
14401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402 /* end confdefs.h.  */
14403 #include <string.h>
14404           #include <sys/time.h>
14405           #include <time.h>
14406           #include <stdlib.h>
14407
14408 int
14409 main ()
14410 {
14411
14412           time_t t = 0;
14413           struct tm *lt;
14414           struct tm saved_lt;
14415           struct timeval tv;
14416           lt = localtime (&t);
14417           saved_lt = *lt;
14418           gettimeofday (&tv, NULL);
14419           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
14420
14421   ;
14422   return 0;
14423 }
14424 _ACEOF
14425 if ac_fn_c_try_run "$LINENO"; then :
14426   gl_cv_func_gettimeofday_clobber=no
14427 else
14428   gl_cv_func_gettimeofday_clobber=yes
14429 fi
14430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14431   conftest.$ac_objext conftest.beam conftest.$ac_ext
14432 fi
14433
14434 fi
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
14436 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
14437
14438  if test $gl_cv_func_gettimeofday_clobber = yes; then
14439    REPLACE_GETTIMEOFDAY=1
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14450
14451
14452   for ac_header in sys/timeb.h
14453 do :
14454   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14455 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14456   cat >>confdefs.h <<_ACEOF
14457 #define HAVE_SYS_TIMEB_H 1
14458 _ACEOF
14459
14460 fi
14461
14462 done
14463
14464   for ac_func in _ftime
14465 do :
14466   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14467 if test "x$ac_cv_func__ftime" = xyes; then :
14468   cat >>confdefs.h <<_ACEOF
14469 #define HAVE__FTIME 1
14470 _ACEOF
14471
14472 fi
14473 done
14474
14475
14476
14477 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
14478
14479
14480 $as_echo "#define localtime rpl_localtime" >>confdefs.h
14481
14482
14483
14484 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
14485
14486  fi
14487
14488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
14489 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
14490 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
14491   $as_echo_n "(cached) " >&6
14492 else
14493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14494 /* end confdefs.h.  */
14495 #include <sys/time.h>
14496               struct timeval c;
14497               int gettimeofday (struct timeval *restrict, void *restrict);
14498
14499 int
14500 main ()
14501 {
14502 /* glibc uses struct timezone * rather than the POSIX void *
14503                  if _GNU_SOURCE is defined.  However, since the only portable
14504                  use of gettimeofday uses NULL as the second parameter, and
14505                  since the glibc definition is actually more typesafe, it is
14506                  not worth wrapping this to get a compliant signature.  */
14507               int (*f) (struct timeval *restrict, void *restrict)
14508                 = gettimeofday;
14509               int x = f (&c, 0);
14510               return !(x | c.tv_sec | c.tv_usec);
14511
14512   ;
14513   return 0;
14514 }
14515 _ACEOF
14516 if ac_fn_c_try_compile "$LINENO"; then :
14517   gl_cv_func_gettimeofday_posix_signature=yes
14518 else
14519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520 /* end confdefs.h.  */
14521 #include <sys/time.h>
14522 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
14523
14524 int
14525 main ()
14526 {
14527
14528   ;
14529   return 0;
14530 }
14531 _ACEOF
14532 if ac_fn_c_try_compile "$LINENO"; then :
14533   gl_cv_func_gettimeofday_posix_signature=almost
14534 else
14535   gl_cv_func_gettimeofday_posix_signature=no
14536 fi
14537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14538 fi
14539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14540 fi
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
14542 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
14543     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
14544       gl_gettimeofday_timezone='struct timezone'
14545     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
14546       REPLACE_GETTIMEOFDAY=1
14547
14548
14549
14550
14551
14552
14553
14554
14555   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14556
14557
14558   for ac_header in sys/timeb.h
14559 do :
14560   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14561 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14562   cat >>confdefs.h <<_ACEOF
14563 #define HAVE_SYS_TIMEB_H 1
14564 _ACEOF
14565
14566 fi
14567
14568 done
14569
14570   for ac_func in _ftime
14571 do :
14572   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14573 if test "x$ac_cv_func__ftime" = xyes; then :
14574   cat >>confdefs.h <<_ACEOF
14575 #define HAVE__FTIME 1
14576 _ACEOF
14577
14578 fi
14579 done
14580
14581
14582     fi
14583   fi
14584
14585 cat >>confdefs.h <<_ACEOF
14586 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
14587 _ACEOF
14588
14589
14590
14591
14592
14593   GNULIB_GETTIMEOFDAY=1
14594
14595
14596
14597 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
14598
14599
14600
14601   # Code from module havelib:
14602   # Code from module hostent:
14603
14604                   HOSTENT_LIB=
14605   gl_saved_libs="$LIBS"
14606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14607 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14608 if ${ac_cv_search_gethostbyname+:} false; then :
14609   $as_echo_n "(cached) " >&6
14610 else
14611   ac_func_search_save_LIBS=$LIBS
14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613 /* end confdefs.h.  */
14614
14615 /* Override any GCC internal prototype to avoid an error.
14616    Use char because int might match the return type of a GCC
14617    builtin and then its argument prototype would still apply.  */
14618 #ifdef __cplusplus
14619 extern "C"
14620 #endif
14621 char gethostbyname ();
14622 int
14623 main ()
14624 {
14625 return gethostbyname ();
14626   ;
14627   return 0;
14628 }
14629 _ACEOF
14630 for ac_lib in '' nsl network net; do
14631   if test -z "$ac_lib"; then
14632     ac_res="none required"
14633   else
14634     ac_res=-l$ac_lib
14635     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14636   fi
14637   if ac_fn_c_try_link "$LINENO"; then :
14638   ac_cv_search_gethostbyname=$ac_res
14639 fi
14640 rm -f core conftest.err conftest.$ac_objext \
14641     conftest$ac_exeext
14642   if ${ac_cv_search_gethostbyname+:} false; then :
14643   break
14644 fi
14645 done
14646 if ${ac_cv_search_gethostbyname+:} false; then :
14647
14648 else
14649   ac_cv_search_gethostbyname=no
14650 fi
14651 rm conftest.$ac_ext
14652 LIBS=$ac_func_search_save_LIBS
14653 fi
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14655 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14656 ac_res=$ac_cv_search_gethostbyname
14657 if test "$ac_res" != no; then :
14658   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14659   if test "$ac_cv_search_gethostbyname" != "none required"; then
14660        HOSTENT_LIB="$ac_cv_search_gethostbyname"
14661      fi
14662 fi
14663
14664   LIBS="$gl_saved_libs"
14665   if test -z "$HOSTENT_LIB"; then
14666     for ac_func in gethostbyname
14667 do :
14668   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14669 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14670   cat >>confdefs.h <<_ACEOF
14671 #define HAVE_GETHOSTBYNAME 1
14672 _ACEOF
14673
14674 else
14675
14676       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
14677 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
14678 if ${gl_cv_w32_gethostbyname+:} false; then :
14679   $as_echo_n "(cached) " >&6
14680 else
14681   gl_cv_w32_gethostbyname=no
14682          gl_save_LIBS="$LIBS"
14683          LIBS="$LIBS -lws2_32"
14684          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14685 /* end confdefs.h.  */
14686
14687 #ifdef HAVE_WINSOCK2_H
14688 #include <winsock2.h>
14689 #endif
14690 #include <stddef.h>
14691
14692 int
14693 main ()
14694 {
14695 gethostbyname(NULL);
14696   ;
14697   return 0;
14698 }
14699 _ACEOF
14700 if ac_fn_c_try_link "$LINENO"; then :
14701   gl_cv_w32_gethostbyname=yes
14702 fi
14703 rm -f core conftest.err conftest.$ac_objext \
14704     conftest$ac_exeext conftest.$ac_ext
14705          LIBS="$gl_save_LIBS"
14706
14707 fi
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
14709 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
14710       if test "$gl_cv_w32_gethostbyname" = "yes"; then
14711         HOSTENT_LIB="-lws2_32"
14712       fi
14713
14714 fi
14715 done
14716
14717   fi
14718
14719
14720   # Code from module include_next:
14721   # Code from module inet_ntop:
14722
14723
14724
14725
14726     :
14727
14728
14729       gl_save_LIBS=$LIBS
14730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
14731 $as_echo_n "checking for library containing inet_ntop... " >&6; }
14732 if ${ac_cv_search_inet_ntop+:} false; then :
14733   $as_echo_n "(cached) " >&6
14734 else
14735   ac_func_search_save_LIBS=$LIBS
14736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14737 /* end confdefs.h.  */
14738
14739 /* Override any GCC internal prototype to avoid an error.
14740    Use char because int might match the return type of a GCC
14741    builtin and then its argument prototype would still apply.  */
14742 #ifdef __cplusplus
14743 extern "C"
14744 #endif
14745 char inet_ntop ();
14746 int
14747 main ()
14748 {
14749 return inet_ntop ();
14750   ;
14751   return 0;
14752 }
14753 _ACEOF
14754 for ac_lib in '' nsl; do
14755   if test -z "$ac_lib"; then
14756     ac_res="none required"
14757   else
14758     ac_res=-l$ac_lib
14759     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14760   fi
14761   if ac_fn_c_try_link "$LINENO"; then :
14762   ac_cv_search_inet_ntop=$ac_res
14763 fi
14764 rm -f core conftest.err conftest.$ac_objext \
14765     conftest$ac_exeext
14766   if ${ac_cv_search_inet_ntop+:} false; then :
14767   break
14768 fi
14769 done
14770 if ${ac_cv_search_inet_ntop+:} false; then :
14771
14772 else
14773   ac_cv_search_inet_ntop=no
14774 fi
14775 rm conftest.$ac_ext
14776 LIBS=$ac_func_search_save_LIBS
14777 fi
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
14779 $as_echo "$ac_cv_search_inet_ntop" >&6; }
14780 ac_res=$ac_cv_search_inet_ntop
14781 if test "$ac_res" != no; then :
14782   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14783
14784 else
14785
14786
14787
14788
14789
14790
14791
14792
14793   for ac_func in inet_ntop
14794 do :
14795   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
14796 if test "x$ac_cv_func_inet_ntop" = xyes; then :
14797   cat >>confdefs.h <<_ACEOF
14798 #define HAVE_INET_NTOP 1
14799 _ACEOF
14800
14801 else
14802
14803     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14804
14805 fi
14806 done
14807
14808
14809 fi
14810
14811   LIBS=$gl_save_LIBS
14812   INET_NTOP_LIB=
14813   if test "$ac_cv_search_inet_ntop" != "no" &&
14814      test "$ac_cv_search_inet_ntop" != "none required"; then
14815     INET_NTOP_LIB="$ac_cv_search_inet_ntop"
14816   fi
14817
14818
14819
14820   ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
14821 "
14822 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
14823   ac_have_decl=1
14824 else
14825   ac_have_decl=0
14826 fi
14827
14828 cat >>confdefs.h <<_ACEOF
14829 #define HAVE_DECL_INET_NTOP $ac_have_decl
14830 _ACEOF
14831
14832   if test $ac_cv_have_decl_inet_ntop = no; then
14833     HAVE_DECL_INET_NTOP=0
14834   fi
14835
14836
14837
14838
14839
14840
14841
14842   GNULIB_INET_NTOP=1
14843
14844
14845   # Code from module inet_pton:
14846
14847
14848
14849
14850     :
14851
14852
14853       gl_save_LIBS=$LIBS
14854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
14855 $as_echo_n "checking for library containing inet_pton... " >&6; }
14856 if ${ac_cv_search_inet_pton+:} false; then :
14857   $as_echo_n "(cached) " >&6
14858 else
14859   ac_func_search_save_LIBS=$LIBS
14860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14861 /* end confdefs.h.  */
14862
14863 /* Override any GCC internal prototype to avoid an error.
14864    Use char because int might match the return type of a GCC
14865    builtin and then its argument prototype would still apply.  */
14866 #ifdef __cplusplus
14867 extern "C"
14868 #endif
14869 char inet_pton ();
14870 int
14871 main ()
14872 {
14873 return inet_pton ();
14874   ;
14875   return 0;
14876 }
14877 _ACEOF
14878 for ac_lib in '' nsl; do
14879   if test -z "$ac_lib"; then
14880     ac_res="none required"
14881   else
14882     ac_res=-l$ac_lib
14883     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14884   fi
14885   if ac_fn_c_try_link "$LINENO"; then :
14886   ac_cv_search_inet_pton=$ac_res
14887 fi
14888 rm -f core conftest.err conftest.$ac_objext \
14889     conftest$ac_exeext
14890   if ${ac_cv_search_inet_pton+:} false; then :
14891   break
14892 fi
14893 done
14894 if ${ac_cv_search_inet_pton+:} false; then :
14895
14896 else
14897   ac_cv_search_inet_pton=no
14898 fi
14899 rm conftest.$ac_ext
14900 LIBS=$ac_func_search_save_LIBS
14901 fi
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
14903 $as_echo "$ac_cv_search_inet_pton" >&6; }
14904 ac_res=$ac_cv_search_inet_pton
14905 if test "$ac_res" != no; then :
14906   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14907
14908 else
14909
14910
14911
14912
14913
14914
14915
14916
14917   for ac_func in inet_pton
14918 do :
14919   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
14920 if test "x$ac_cv_func_inet_pton" = xyes; then :
14921   cat >>confdefs.h <<_ACEOF
14922 #define HAVE_INET_PTON 1
14923 _ACEOF
14924
14925 else
14926
14927     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
14928
14929 fi
14930 done
14931
14932
14933 fi
14934
14935   LIBS=$gl_save_LIBS
14936   INET_PTON_LIB=
14937   if test "$ac_cv_search_inet_pton" != "no" &&
14938      test "$ac_cv_search_inet_pton" != "none required"; then
14939     INET_PTON_LIB="$ac_cv_search_inet_pton"
14940   fi
14941
14942
14943
14944   ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
14945 "
14946 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
14947   ac_have_decl=1
14948 else
14949   ac_have_decl=0
14950 fi
14951
14952 cat >>confdefs.h <<_ACEOF
14953 #define HAVE_DECL_INET_PTON $ac_have_decl
14954 _ACEOF
14955
14956   if test $ac_cv_have_decl_inet_pton = no; then
14957     HAVE_DECL_INET_PTON=0
14958   fi
14959
14960
14961
14962
14963
14964
14965
14966   GNULIB_INET_PTON=1
14967
14968
14969   # Code from module langinfo:
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979   :
14980
14981
14982
14983
14984
14985
14986
14987      if test $gl_cv_have_include_next = yes; then
14988        gl_cv_next_langinfo_h='<'langinfo.h'>'
14989      else
14990        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
14991 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
14992 if ${gl_cv_next_langinfo_h+:} false; then :
14993   $as_echo_n "(cached) " >&6
14994 else
14995
14996           if test $ac_cv_header_langinfo_h = yes; then
14997             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h.  */
14999 #include <langinfo.h>
15000
15001 _ACEOF
15002                                                                                                 case "$host_os" in
15003               aix*) gl_absname_cpp="$ac_cpp -C" ;;
15004               *)    gl_absname_cpp="$ac_cpp" ;;
15005             esac
15006                                                 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15007                sed -n '\#/langinfo.h#{
15008                  s#.*"\(.*/langinfo.h\)".*#\1#
15009                  s#^/[^/]#//&#
15010                  p
15011                  q
15012                }'`'"'
15013           else
15014             gl_cv_next_langinfo_h='<'langinfo.h'>'
15015           fi
15016
15017 fi
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
15019 $as_echo "$gl_cv_next_langinfo_h" >&6; }
15020      fi
15021      NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
15022
15023      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15024        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15025        gl_next_as_first_directive='<'langinfo.h'>'
15026      else
15027        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15028        gl_next_as_first_directive=$gl_cv_next_langinfo_h
15029      fi
15030      NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
15031
15032
15033
15034
15035     HAVE_LANGINFO_CODESET=0
15036   HAVE_LANGINFO_ERA=0
15037
15038   :
15039
15040
15041
15042
15043
15044   if test $ac_cv_header_langinfo_h = yes; then
15045     HAVE_LANGINFO_H=1
15046             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
15047 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
15048 if ${gl_cv_header_langinfo_codeset+:} false; then :
15049   $as_echo_n "(cached) " >&6
15050 else
15051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15052 /* end confdefs.h.  */
15053 #include <langinfo.h>
15054 int a = CODESET;
15055
15056 int
15057 main ()
15058 {
15059
15060   ;
15061   return 0;
15062 }
15063 _ACEOF
15064 if ac_fn_c_try_compile "$LINENO"; then :
15065   gl_cv_header_langinfo_codeset=yes
15066 else
15067   gl_cv_header_langinfo_codeset=no
15068 fi
15069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15070
15071 fi
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
15073 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
15074     if test $gl_cv_header_langinfo_codeset = yes; then
15075       HAVE_LANGINFO_CODESET=1
15076     fi
15077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
15078 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
15079 if ${gl_cv_header_langinfo_era+:} false; then :
15080   $as_echo_n "(cached) " >&6
15081 else
15082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083 /* end confdefs.h.  */
15084 #include <langinfo.h>
15085 int a = ERA;
15086
15087 int
15088 main ()
15089 {
15090
15091   ;
15092   return 0;
15093 }
15094 _ACEOF
15095 if ac_fn_c_try_compile "$LINENO"; then :
15096   gl_cv_header_langinfo_era=yes
15097 else
15098   gl_cv_header_langinfo_era=no
15099 fi
15100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15101
15102 fi
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
15104 $as_echo "$gl_cv_header_langinfo_era" >&6; }
15105     if test $gl_cv_header_langinfo_era = yes; then
15106       HAVE_LANGINFO_ERA=1
15107     fi
15108   else
15109     HAVE_LANGINFO_H=0
15110   fi
15111
15112
15113
15114
15115
15116     for gl_func in nl_langinfo; do
15117     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15119 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15120 if eval \${$as_gl_Symbol+:} false; then :
15121   $as_echo_n "(cached) " >&6
15122 else
15123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124 /* end confdefs.h.  */
15125 #include <langinfo.h>
15126
15127 int
15128 main ()
15129 {
15130 #undef $gl_func
15131   (void) $gl_func;
15132   ;
15133   return 0;
15134 }
15135 _ACEOF
15136 if ac_fn_c_try_compile "$LINENO"; then :
15137   eval "$as_gl_Symbol=yes"
15138 else
15139   eval "$as_gl_Symbol=no"
15140 fi
15141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15142 fi
15143 eval ac_res=\$$as_gl_Symbol
15144                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15145 $as_echo "$ac_res" >&6; }
15146      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15147   cat >>confdefs.h <<_ACEOF
15148 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15149 _ACEOF
15150
15151                      eval ac_cv_have_decl_$gl_func=yes
15152 fi
15153       done
15154
15155
15156   # Code from module localcharset:
15157
15158
15159
15160
15161   :
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
15172
15173   # Code from module lock:
15174
15175
15176   if test "$gl_threads_api" = posix; then
15177     # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
15178     # pthread_rwlock_* functions.
15179     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
15180 "
15181 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
15182
15183 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
15184
15185 fi
15186
15187     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
15188     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h.  */
15190
15191       #include <pthread.h>
15192 int
15193 main ()
15194 {
15195
15196 #if __FreeBSD__ == 4
15197 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
15198 #else
15199 int x = (int)PTHREAD_MUTEX_RECURSIVE;
15200 return !x;
15201 #endif
15202
15203   ;
15204   return 0;
15205 }
15206 _ACEOF
15207 if ac_fn_c_try_compile "$LINENO"; then :
15208
15209 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
15210
15211 fi
15212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15213   fi
15214
15215
15216
15217
15218   # Code from module lseek:
15219
15220
15221
15222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
15223 $as_echo_n "checking whether lseek detects pipes... " >&6; }
15224 if ${gl_cv_func_lseek_pipe+:} false; then :
15225   $as_echo_n "(cached) " >&6
15226 else
15227   if test $cross_compiling = no; then
15228        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h.  */
15230
15231 #include <sys/types.h> /* for off_t */
15232 #include <stdio.h> /* for SEEK_CUR */
15233 #include <unistd.h>
15234 int
15235 main ()
15236 {
15237
15238   /* Exit with success only if stdin is seekable.  */
15239   return lseek (0, (off_t)0, SEEK_CUR) < 0;
15240
15241   ;
15242   return 0;
15243 }
15244 _ACEOF
15245 if ac_fn_c_try_link "$LINENO"; then :
15246   if test -s conftest$ac_exeext \
15247              && ./conftest$ac_exeext < conftest.$ac_ext \
15248              && test 1 = "`echo hi \
15249                | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
15250             gl_cv_func_lseek_pipe=yes
15251           else
15252             gl_cv_func_lseek_pipe=no
15253           fi
15254 else
15255   gl_cv_func_lseek_pipe=no
15256 fi
15257 rm -f core conftest.err conftest.$ac_objext \
15258     conftest$ac_exeext conftest.$ac_ext
15259      else
15260        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261 /* end confdefs.h.  */
15262
15263 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
15264 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes.  */
15265   Choke me.
15266 #endif
15267 _ACEOF
15268 if ac_fn_c_try_compile "$LINENO"; then :
15269   gl_cv_func_lseek_pipe=yes
15270 else
15271   gl_cv_func_lseek_pipe=no
15272 fi
15273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15274      fi
15275 fi
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
15277 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
15278   if test $gl_cv_func_lseek_pipe = no; then
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
15289
15290
15291   REPLACE_LSEEK=1
15292
15293 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
15294
15295
15296   fi
15297
15298
15299
15300
15301   GNULIB_LSEEK=1
15302
15303
15304
15305 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
15306
15307
15308
15309   # Code from module lstat:
15310
15311
15312
15313   :
15314
15315
15316
15317
15318
15319   if test $ac_cv_func_lstat = yes; then
15320
15321     if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15322             REPLACE_LSTAT=1
15323     fi
15324     # Prerequisites of lib/lstat.c.
15325
15326   else
15327     HAVE_LSTAT=0
15328   fi
15329
15330
15331
15332
15333   GNULIB_LSTAT=1
15334
15335
15336
15337 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
15338
15339
15340
15341   # Code from module malloc-gnu:
15342
15343
15344     for ac_header in stdlib.h
15345 do :
15346   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15347 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15348   cat >>confdefs.h <<_ACEOF
15349 #define HAVE_STDLIB_H 1
15350 _ACEOF
15351
15352 fi
15353
15354 done
15355
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15357 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15358 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15359   $as_echo_n "(cached) " >&6
15360 else
15361   if test "$cross_compiling" = yes; then :
15362   ac_cv_func_malloc_0_nonnull=no
15363 else
15364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15365 /* end confdefs.h.  */
15366 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15367 # include <stdlib.h>
15368 #else
15369 char *malloc ();
15370 #endif
15371
15372 int
15373 main ()
15374 {
15375 return ! malloc (0);
15376   ;
15377   return 0;
15378 }
15379 _ACEOF
15380 if ac_fn_c_try_run "$LINENO"; then :
15381   ac_cv_func_malloc_0_nonnull=yes
15382 else
15383   ac_cv_func_malloc_0_nonnull=no
15384 fi
15385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15386   conftest.$ac_objext conftest.beam conftest.$ac_ext
15387 fi
15388
15389 fi
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15391 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15392 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15393
15394 $as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
15395
15396 else
15397   $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15409
15410   REPLACE_MALLOC=1
15411
15412
15413 fi
15414
15415
15416
15417
15418 cat >>confdefs.h <<_ACEOF
15419 #define GNULIB_MALLOC_GNU 1
15420 _ACEOF
15421
15422
15423   # Code from module malloc-posix:
15424
15425
15426
15427   if test $gl_cv_func_malloc_posix = yes; then
15428
15429 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
15430
15431   else
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
15442
15443   REPLACE_MALLOC=1
15444
15445   fi
15446
15447
15448
15449
15450   GNULIB_MALLOC_POSIX=1
15451
15452
15453
15454 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
15455
15456
15457
15458   # Code from module mbrtowc:
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468   :
15469
15470
15471
15472
15473
15474
15475   :
15476
15477
15478
15479
15480
15481   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15482
15483
15484
15485      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15486 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15487 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
15488   $as_echo_n "(cached) " >&6
15489 else
15490
15491                   case "$host_os" in
15492                      # Guess no on AIX and OSF/1.
15493         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15494                      # Guess yes otherwise.
15495         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15496       esac
15497       if test $LOCALE_JA != none; then
15498         if test "$cross_compiling" = yes; then :
15499   :
15500 else
15501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h.  */
15503
15504 #include <locale.h>
15505 #include <string.h>
15506 #include <wchar.h>
15507 int main ()
15508 {
15509   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15510     {
15511       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15512       mbstate_t state;
15513       wchar_t wc;
15514
15515       memset (&state, '\0', sizeof (mbstate_t));
15516       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15517         if (mbsinit (&state))
15518           return 1;
15519     }
15520   return 0;
15521 }
15522 _ACEOF
15523 if ac_fn_c_try_run "$LINENO"; then :
15524   gl_cv_func_mbrtowc_incomplete_state=yes
15525 else
15526   gl_cv_func_mbrtowc_incomplete_state=no
15527 fi
15528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15529   conftest.$ac_objext conftest.beam conftest.$ac_ext
15530 fi
15531
15532       fi
15533
15534 fi
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15536 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15537
15538
15539
15540
15541      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15542 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15543 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
15544   $as_echo_n "(cached) " >&6
15545 else
15546
15547                   case "$host_os" in
15548                     # Guess no on Solaris 8.
15549         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15550                     # Guess yes otherwise.
15551         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15552       esac
15553       if test $LOCALE_ZH_CN != none; then
15554         if test "$cross_compiling" = yes; then :
15555   :
15556 else
15557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15558 /* end confdefs.h.  */
15559
15560 #include <locale.h>
15561 #include <stdlib.h>
15562 #include <string.h>
15563 #include <wchar.h>
15564 int main ()
15565 {
15566   /* This fails on Solaris 8:
15567      mbrtowc returns 2, and sets wc to 0x00F0.
15568      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
15569   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15570     {
15571       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15572       mbstate_t state;
15573       wchar_t wc;
15574
15575       memset (&state, '\0', sizeof (mbstate_t));
15576       if (mbrtowc (&wc, input + 3, 6, &state) != 4
15577           && mbtowc (&wc, input + 3, 6) == 4)
15578         return 1;
15579     }
15580   return 0;
15581 }
15582 _ACEOF
15583 if ac_fn_c_try_run "$LINENO"; then :
15584   gl_cv_func_mbrtowc_sanitycheck=yes
15585 else
15586   gl_cv_func_mbrtowc_sanitycheck=no
15587 fi
15588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15589   conftest.$ac_objext conftest.beam conftest.$ac_ext
15590 fi
15591
15592       fi
15593
15594 fi
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15596 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15597
15598     REPLACE_MBSTATE_T=0
15599     case "$gl_cv_func_mbrtowc_incomplete_state" in
15600       *yes) ;;
15601       *) REPLACE_MBSTATE_T=1 ;;
15602     esac
15603     case "$gl_cv_func_mbrtowc_sanitycheck" in
15604       *yes) ;;
15605       *) REPLACE_MBSTATE_T=1 ;;
15606     esac
15607   else
15608     REPLACE_MBSTATE_T=1
15609   fi
15610   if test $REPLACE_MBSTATE_T = 1; then
15611
15612     :
15613
15614   fi
15615
15616
15617
15618   :
15619
15620
15621
15622
15623
15624   if test $ac_cv_func_mbrtowc = no; then
15625     HAVE_MBRTOWC=0
15626   else
15627     if test $REPLACE_MBSTATE_T = 1; then
15628       REPLACE_MBRTOWC=1
15629     else
15630
15631
15632
15633      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
15634 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
15635 if ${gl_cv_func_mbrtowc_null_arg+:} false; then :
15636   $as_echo_n "(cached) " >&6
15637 else
15638
15639                   case "$host_os" in
15640               # Guess no on OSF/1.
15641         osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
15642               # Guess yes otherwise.
15643         *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
15644       esac
15645       if test $LOCALE_FR_UTF8 != none; then
15646         if test "$cross_compiling" = yes; then :
15647   :
15648 else
15649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650 /* end confdefs.h.  */
15651
15652 #include <locale.h>
15653 #include <string.h>
15654 #include <wchar.h>
15655 int main ()
15656 {
15657   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15658     {
15659       mbstate_t state;
15660       wchar_t wc;
15661       int ret;
15662
15663       memset (&state, '\0', sizeof (mbstate_t));
15664       wc = (wchar_t) 0xBADFACE;
15665       mbrtowc (&wc, NULL, 5, &state);
15666       /* Check that wc was not modified.  */
15667       if (wc != (wchar_t) 0xBADFACE)
15668         return 1;
15669     }
15670   return 0;
15671 }
15672 _ACEOF
15673 if ac_fn_c_try_run "$LINENO"; then :
15674   gl_cv_func_mbrtowc_null_arg=yes
15675 else
15676   gl_cv_func_mbrtowc_null_arg=no
15677 fi
15678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15679   conftest.$ac_objext conftest.beam conftest.$ac_ext
15680 fi
15681
15682       fi
15683
15684 fi
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg" >&5
15686 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
15687
15688
15689
15690
15691
15692      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
15693 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
15694 if ${gl_cv_func_mbrtowc_retval+:} false; then :
15695   $as_echo_n "(cached) " >&6
15696 else
15697
15698                   case "$host_os" in
15699                           # Guess no on HP-UX and Solaris.
15700         hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
15701                           # Guess yes otherwise.
15702         *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
15703       esac
15704       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
15705         if test "$cross_compiling" = yes; then :
15706   :
15707 else
15708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709 /* end confdefs.h.  */
15710
15711 #include <locale.h>
15712 #include <string.h>
15713 #include <wchar.h>
15714 int main ()
15715 {
15716   /* This fails on Solaris.  */
15717   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15718     {
15719       char input[] = "B\303\274\303\237er"; /* "Büßer" */
15720       mbstate_t state;
15721       wchar_t wc;
15722
15723       memset (&state, '\0', sizeof (mbstate_t));
15724       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15725         {
15726           input[1] = '\0';
15727           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
15728             return 1;
15729         }
15730     }
15731   /* This fails on HP-UX 11.11.  */
15732   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15733     {
15734       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15735       mbstate_t state;
15736       wchar_t wc;
15737
15738       memset (&state, '\0', sizeof (mbstate_t));
15739       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15740         {
15741           input[1] = '\0';
15742           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15743             return 1;
15744         }
15745     }
15746   return 0;
15747 }
15748 _ACEOF
15749 if ac_fn_c_try_run "$LINENO"; then :
15750   gl_cv_func_mbrtowc_retval=yes
15751 else
15752   gl_cv_func_mbrtowc_retval=no
15753 fi
15754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15755   conftest.$ac_objext conftest.beam conftest.$ac_ext
15756 fi
15757
15758       fi
15759
15760 fi
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15762 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15763
15764
15765
15766
15767      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15768 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15769 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
15770   $as_echo_n "(cached) " >&6
15771 else
15772
15773                   case "$host_os" in
15774                        # Guess no on Solaris 8 and 9.
15775         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15776                        # Guess yes otherwise.
15777         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15778       esac
15779       if test $LOCALE_ZH_CN != none; then
15780         if test "$cross_compiling" = yes; then :
15781   :
15782 else
15783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784 /* end confdefs.h.  */
15785
15786 #include <locale.h>
15787 #include <string.h>
15788 #include <wchar.h>
15789 int main ()
15790 {
15791   /* This fails on Solaris 8 and 9.  */
15792   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15793     {
15794       mbstate_t state;
15795       wchar_t wc;
15796
15797       memset (&state, '\0', sizeof (mbstate_t));
15798       if (mbrtowc (&wc, "", 1, &state) != 0)
15799         return 1;
15800     }
15801   return 0;
15802 }
15803 _ACEOF
15804 if ac_fn_c_try_run "$LINENO"; then :
15805   gl_cv_func_mbrtowc_nul_retval=yes
15806 else
15807   gl_cv_func_mbrtowc_nul_retval=no
15808 fi
15809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15810   conftest.$ac_objext conftest.beam conftest.$ac_ext
15811 fi
15812
15813       fi
15814
15815 fi
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15817 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15818
15819       case "$gl_cv_func_mbrtowc_null_arg" in
15820         *yes) ;;
15821         *)
15822 $as_echo "#define MBRTOWC_NULL_ARG_BUG 1" >>confdefs.h
15823
15824            REPLACE_MBRTOWC=1
15825            ;;
15826       esac
15827       case "$gl_cv_func_mbrtowc_retval" in
15828         *yes) ;;
15829         *)
15830 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15831
15832            REPLACE_MBRTOWC=1
15833            ;;
15834       esac
15835       case "$gl_cv_func_mbrtowc_nul_retval" in
15836         *yes) ;;
15837         *)
15838 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15839
15840            REPLACE_MBRTOWC=1
15841            ;;
15842       esac
15843     fi
15844   fi
15845   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15846
15847     :
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15858
15859
15860   :
15861
15862   fi
15863
15864
15865
15866
15867   GNULIB_MBRTOWC=1
15868
15869
15870
15871 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15872
15873
15874
15875   # Code from module mbsinit:
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885   :
15886
15887
15888
15889
15890
15891
15892   :
15893
15894
15895
15896
15897
15898   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15899
15900
15901
15902      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15903 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15904 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
15905   $as_echo_n "(cached) " >&6
15906 else
15907
15908                   case "$host_os" in
15909                      # Guess no on AIX and OSF/1.
15910         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15911                      # Guess yes otherwise.
15912         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15913       esac
15914       if test $LOCALE_JA != none; then
15915         if test "$cross_compiling" = yes; then :
15916   :
15917 else
15918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15919 /* end confdefs.h.  */
15920
15921 #include <locale.h>
15922 #include <string.h>
15923 #include <wchar.h>
15924 int main ()
15925 {
15926   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15927     {
15928       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15929       mbstate_t state;
15930       wchar_t wc;
15931
15932       memset (&state, '\0', sizeof (mbstate_t));
15933       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15934         if (mbsinit (&state))
15935           return 1;
15936     }
15937   return 0;
15938 }
15939 _ACEOF
15940 if ac_fn_c_try_run "$LINENO"; then :
15941   gl_cv_func_mbrtowc_incomplete_state=yes
15942 else
15943   gl_cv_func_mbrtowc_incomplete_state=no
15944 fi
15945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15946   conftest.$ac_objext conftest.beam conftest.$ac_ext
15947 fi
15948
15949       fi
15950
15951 fi
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15953 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15954
15955
15956
15957
15958      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15959 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15960 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
15961   $as_echo_n "(cached) " >&6
15962 else
15963
15964                   case "$host_os" in
15965                     # Guess no on Solaris 8.
15966         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15967                     # Guess yes otherwise.
15968         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15969       esac
15970       if test $LOCALE_ZH_CN != none; then
15971         if test "$cross_compiling" = yes; then :
15972   :
15973 else
15974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h.  */
15976
15977 #include <locale.h>
15978 #include <stdlib.h>
15979 #include <string.h>
15980 #include <wchar.h>
15981 int main ()
15982 {
15983   /* This fails on Solaris 8:
15984      mbrtowc returns 2, and sets wc to 0x00F0.
15985      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
15986   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15987     {
15988       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15989       mbstate_t state;
15990       wchar_t wc;
15991
15992       memset (&state, '\0', sizeof (mbstate_t));
15993       if (mbrtowc (&wc, input + 3, 6, &state) != 4
15994           && mbtowc (&wc, input + 3, 6) == 4)
15995         return 1;
15996     }
15997   return 0;
15998 }
15999 _ACEOF
16000 if ac_fn_c_try_run "$LINENO"; then :
16001   gl_cv_func_mbrtowc_sanitycheck=yes
16002 else
16003   gl_cv_func_mbrtowc_sanitycheck=no
16004 fi
16005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16006   conftest.$ac_objext conftest.beam conftest.$ac_ext
16007 fi
16008
16009       fi
16010
16011 fi
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
16013 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
16014
16015     REPLACE_MBSTATE_T=0
16016     case "$gl_cv_func_mbrtowc_incomplete_state" in
16017       *yes) ;;
16018       *) REPLACE_MBSTATE_T=1 ;;
16019     esac
16020     case "$gl_cv_func_mbrtowc_sanitycheck" in
16021       *yes) ;;
16022       *) REPLACE_MBSTATE_T=1 ;;
16023     esac
16024   else
16025     REPLACE_MBSTATE_T=1
16026   fi
16027   if test $REPLACE_MBSTATE_T = 1; then
16028
16029     :
16030
16031   fi
16032
16033
16034
16035   :
16036
16037
16038
16039
16040
16041   if test $ac_cv_func_mbsinit = no; then
16042     HAVE_MBSINIT=0
16043   else
16044     if test $REPLACE_MBSTATE_T = 1; then
16045       REPLACE_MBSINIT=1
16046     fi
16047   fi
16048   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
16049
16050     :
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
16061
16062
16063   :
16064
16065   fi
16066
16067
16068
16069
16070   GNULIB_MBSINIT=1
16071
16072
16073
16074 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
16075
16076
16077
16078   # Code from module memchr:
16079
16080
16081
16082
16083   GNULIB_MEMCHR=1
16084
16085
16086
16087 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
16088
16089
16090
16091   # Code from module mkdtemp:
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102   for ac_func in mkdtemp
16103 do :
16104   ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
16105 if test "x$ac_cv_func_mkdtemp" = xyes; then :
16106   cat >>confdefs.h <<_ACEOF
16107 #define HAVE_MKDTEMP 1
16108 _ACEOF
16109
16110 else
16111
16112     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16113
16114 fi
16115 done
16116
16117
16118   if test $ac_cv_func_mkdtemp = no; then
16119     HAVE_MKDTEMP=0
16120     :
16121
16122   fi
16123
16124
16125
16126
16127   GNULIB_MKDTEMP=1
16128
16129
16130
16131 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
16132
16133
16134
16135   # Code from module multiarch:
16136
16137   # Code from module netdb:
16138
16139
16140
16141   :
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151   :
16152
16153
16154
16155
16156
16157
16158
16159      if test $gl_cv_have_include_next = yes; then
16160        gl_cv_next_netdb_h='<'netdb.h'>'
16161      else
16162        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
16163 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
16164 if ${gl_cv_next_netdb_h+:} false; then :
16165   $as_echo_n "(cached) " >&6
16166 else
16167
16168           if test $ac_cv_header_netdb_h = yes; then
16169             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16170 /* end confdefs.h.  */
16171 #include <netdb.h>
16172
16173 _ACEOF
16174                                                                                                 case "$host_os" in
16175               aix*) gl_absname_cpp="$ac_cpp -C" ;;
16176               *)    gl_absname_cpp="$ac_cpp" ;;
16177             esac
16178                                                 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16179                sed -n '\#/netdb.h#{
16180                  s#.*"\(.*/netdb.h\)".*#\1#
16181                  s#^/[^/]#//&#
16182                  p
16183                  q
16184                }'`'"'
16185           else
16186             gl_cv_next_netdb_h='<'netdb.h'>'
16187           fi
16188
16189 fi
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
16191 $as_echo "$gl_cv_next_netdb_h" >&6; }
16192      fi
16193      NEXT_NETDB_H=$gl_cv_next_netdb_h
16194
16195      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16196        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16197        gl_next_as_first_directive='<'netdb.h'>'
16198      else
16199        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16200        gl_next_as_first_directive=$gl_cv_next_netdb_h
16201      fi
16202      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
16203
16204
16205
16206   if test $ac_cv_header_netdb_h = yes; then
16207     HAVE_NETDB_H=1
16208   else
16209     HAVE_NETDB_H=0
16210   fi
16211
16212
16213
16214     for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
16215     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16216     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16217 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16218 if eval \${$as_gl_Symbol+:} false; then :
16219   $as_echo_n "(cached) " >&6
16220 else
16221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16222 /* end confdefs.h.  */
16223 #include <netdb.h>
16224 int
16225 main ()
16226 {
16227 #undef $gl_func
16228   (void) $gl_func;
16229   ;
16230   return 0;
16231 }
16232 _ACEOF
16233 if ac_fn_c_try_compile "$LINENO"; then :
16234   eval "$as_gl_Symbol=yes"
16235 else
16236   eval "$as_gl_Symbol=no"
16237 fi
16238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16239 fi
16240 eval ac_res=\$$as_gl_Symbol
16241                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16242 $as_echo "$ac_res" >&6; }
16243      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
16244   cat >>confdefs.h <<_ACEOF
16245 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16246 _ACEOF
16247
16248                      eval ac_cv_have_decl_$gl_func=yes
16249 fi
16250       done
16251
16252
16253   # Code from module netinet_in:
16254
16255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
16256 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
16257 if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
16258   $as_echo_n "(cached) " >&6
16259 else
16260
16261       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16262 /* end confdefs.h.  */
16263 #include <netinet/in.h>
16264 int
16265 main ()
16266 {
16267
16268   ;
16269   return 0;
16270 }
16271 _ACEOF
16272 if ac_fn_c_try_compile "$LINENO"; then :
16273   gl_cv_header_netinet_in_h_selfcontained=yes
16274 else
16275   gl_cv_header_netinet_in_h_selfcontained=no
16276 fi
16277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16278
16279 fi
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
16281 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
16282   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
16283     NETINET_IN_H=''
16284   else
16285     NETINET_IN_H='netinet/in.h'
16286     for ac_header in netinet/in.h
16287 do :
16288   ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16289 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
16290   cat >>confdefs.h <<_ACEOF
16291 #define HAVE_NETINET_IN_H 1
16292 _ACEOF
16293
16294 fi
16295
16296 done
16297
16298
16299
16300
16301
16302   :
16303
16304
16305
16306
16307
16308
16309
16310      if test $gl_cv_have_include_next = yes; then
16311        gl_cv_next_netinet_in_h='<'netinet/in.h'>'
16312      else
16313        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
16314 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
16315 if ${gl_cv_next_netinet_in_h+:} false; then :
16316   $as_echo_n "(cached) " >&6
16317 else
16318
16319           if test $ac_cv_header_netinet_in_h = yes; then
16320             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321 /* end confdefs.h.  */
16322 #include <netinet/in.h>
16323
16324 _ACEOF
16325                                                                                                 case "$host_os" in
16326               aix*) gl_absname_cpp="$ac_cpp -C" ;;
16327               *)    gl_absname_cpp="$ac_cpp" ;;
16328             esac
16329                                                 gl_cv_next_netinet_in_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16330                sed -n '\#/netinet/in.h#{
16331                  s#.*"\(.*/netinet/in.h\)".*#\1#
16332                  s#^/[^/]#//&#
16333                  p
16334                  q
16335                }'`'"'
16336           else
16337             gl_cv_next_netinet_in_h='<'netinet/in.h'>'
16338           fi
16339
16340 fi
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
16342 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
16343      fi
16344      NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
16345
16346      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16347        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16348        gl_next_as_first_directive='<'netinet/in.h'>'
16349      else
16350        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16351        gl_next_as_first_directive=$gl_cv_next_netinet_in_h
16352      fi
16353      NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
16354
16355
16356
16357     if test $ac_cv_header_netinet_in_h = yes; then
16358       HAVE_NETINET_IN_H=1
16359     else
16360       HAVE_NETINET_IN_H=0
16361     fi
16362
16363   fi
16364
16365
16366
16367   # Code from module nl_langinfo:
16368
16369
16370
16371
16372   :
16373
16374
16375
16376
16377
16378   if test $ac_cv_func_nl_langinfo = yes; then
16379     if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
16380       :
16381     else
16382       REPLACE_NL_LANGINFO=1
16383
16384 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394   gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
16395
16396     fi
16397   else
16398     HAVE_NL_LANGINFO=0
16399
16400
16401
16402
16403
16404
16405
16406
16407   gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
16408
16409   fi
16410
16411
16412
16413
16414   GNULIB_NL_LANGINFO=1
16415
16416
16417
16418 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
16419
16420
16421
16422   # Code from module physmem:
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432   gl_LIBOBJS="$gl_LIBOBJS physmem.$ac_objext"
16433
16434
16435   # Prerequisites of lib/physmem.c.
16436   for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
16437     machine/hal_sysinfo.h sys/table.h sys/param.h sys/systemcfg.h
16438 do :
16439   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16440 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16441 "
16442 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16443   cat >>confdefs.h <<_ACEOF
16444 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16445 _ACEOF
16446
16447 fi
16448
16449 done
16450
16451     for ac_header in sys/sysctl.h
16452 do :
16453   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
16454      #if HAVE_SYS_PARAM_H
16455      # include <sys/param.h>
16456      #endif
16457
16458 "
16459 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
16460   cat >>confdefs.h <<_ACEOF
16461 #define HAVE_SYS_SYSCTL_H 1
16462 _ACEOF
16463
16464 fi
16465
16466 done
16467
16468
16469   for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
16470 do :
16471   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16472 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16473 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16474   cat >>confdefs.h <<_ACEOF
16475 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16476 _ACEOF
16477
16478 fi
16479 done
16480
16481
16482
16483   # Code from module regex:
16484
16485
16486   :
16487
16488
16489
16490
16491
16492
16493
16494 # Check whether --with-included-regex was given.
16495 if test "${with_included_regex+set}" = set; then :
16496   withval=$with_included_regex;
16497 fi
16498
16499
16500   case $with_included_regex in #(
16501   yes|no) ac_use_included_regex=$with_included_regex
16502         ;;
16503   '')
16504     # If the system regex support is good enough that it passes the
16505     # following run test, then default to *not* using the included regex.c.
16506     # If cross compiling, assume the test would fail and use the included
16507     # regex.c.
16508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
16509 $as_echo_n "checking for working re_compile_pattern... " >&6; }
16510 if ${gl_cv_func_re_compile_pattern_working+:} false; then :
16511   $as_echo_n "(cached) " >&6
16512 else
16513   if test "$cross_compiling" = yes; then :
16514          gl_cv_func_re_compile_pattern_working=no
16515 else
16516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16517 /* end confdefs.h.  */
16518 $ac_includes_default
16519            #if HAVE_LOCALE_H
16520             #include <locale.h>
16521            #endif
16522            #include <limits.h>
16523            #include <regex.h>
16524
16525 int
16526 main ()
16527 {
16528 static struct re_pattern_buffer regex;
16529             unsigned char folded_chars[UCHAR_MAX + 1];
16530             int i;
16531             const char *s;
16532             struct re_registers regs;
16533
16534             #if HAVE_LOCALE_H
16535               /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
16536                  This test needs valgrind to catch the bug on Debian
16537                  GNU/Linux 3.1 x86, but it might catch the bug better
16538                  on other platforms and it shouldn't hurt to try the
16539                  test here.  */
16540               if (setlocale (LC_ALL, "en_US.UTF-8"))
16541                 {
16542                   static char const pat[] = "insert into";
16543                   static char const data[] =
16544                     "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
16545                   re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
16546                                  | RE_ICASE);
16547                   memset (&regex, 0, sizeof regex);
16548                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
16549                   if (s)
16550                     return 1;
16551                   if (re_search (&regex, data, sizeof data - 1,
16552                                  0, sizeof data - 1, &regs)
16553                       != -1)
16554                     return 1;
16555                   if (! setlocale (LC_ALL, "C"))
16556                     return 1;
16557                 }
16558             #endif
16559
16560             /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
16561             re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
16562             memset (&regex, 0, sizeof regex);
16563             s = re_compile_pattern ("a[^x]b", 6, &regex);
16564             if (s)
16565               return 1;
16566
16567             /* This should fail, but succeeds for glibc-2.5.  */
16568             if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
16569               return 1;
16570
16571             /* This regular expression is from Spencer ere test number 75
16572                in grep-2.3.  */
16573             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
16574             memset (&regex, 0, sizeof regex);
16575             for (i = 0; i <= UCHAR_MAX; i++)
16576               folded_chars[i] = i;
16577             regex.translate = folded_chars;
16578             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
16579             /* This should fail with _Invalid character class name_ error.  */
16580             if (!s)
16581               return 1;
16582
16583             /* Ensure that [b-a] is diagnosed as invalid, when
16584                using RE_NO_EMPTY_RANGES. */
16585             re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
16586             memset (&regex, 0, sizeof regex);
16587             s = re_compile_pattern ("a[b-a]", 6, &regex);
16588             if (s == 0)
16589               return 1;
16590
16591             /* This should succeed, but does not for glibc-2.1.3.  */
16592             memset (&regex, 0, sizeof regex);
16593             s = re_compile_pattern ("{1", 2, &regex);
16594
16595             if (s)
16596               return 1;
16597
16598             /* The following example is derived from a problem report
16599                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
16600             memset (&regex, 0, sizeof regex);
16601             s = re_compile_pattern ("[an\371]*n", 7, &regex);
16602             if (s)
16603               return 1;
16604
16605             /* This should match, but does not for glibc-2.2.1.  */
16606             if (re_match (&regex, "an", 2, 0, &regs) != 2)
16607               return 1;
16608
16609             memset (&regex, 0, sizeof regex);
16610             s = re_compile_pattern ("x", 1, &regex);
16611             if (s)
16612               return 1;
16613
16614             /* glibc-2.2.93 does not work with a negative RANGE argument.  */
16615             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
16616               return 1;
16617
16618             /* The version of regex.c in older versions of gnulib
16619                ignored RE_ICASE.  Detect that problem too.  */
16620             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
16621             memset (&regex, 0, sizeof regex);
16622             s = re_compile_pattern ("x", 1, &regex);
16623             if (s)
16624               return 1;
16625
16626             if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
16627               return 1;
16628
16629             /* Catch a bug reported by Vin Shelton in
16630                http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
16631                */
16632             re_set_syntax (RE_SYNTAX_POSIX_BASIC
16633                            & ~RE_CONTEXT_INVALID_DUP
16634                            & ~RE_NO_EMPTY_RANGES);
16635             memset (&regex, 0, sizeof regex);
16636             s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
16637             if (s)
16638               return 1;
16639
16640             /* REG_STARTEND was added to glibc on 2004-01-15.
16641                Reject older versions.  */
16642             if (! REG_STARTEND)
16643               return 1;
16644
16645             /* Reject hosts whose regoff_t values are too narrow.
16646                These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
16647                and 32-bit int.  */
16648             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
16649                 || sizeof (regoff_t) < sizeof (ssize_t))
16650               return 1;
16651
16652             return 0;
16653   ;
16654   return 0;
16655 }
16656 _ACEOF
16657 if ac_fn_c_try_run "$LINENO"; then :
16658   gl_cv_func_re_compile_pattern_working=yes
16659 else
16660   gl_cv_func_re_compile_pattern_working=no
16661 fi
16662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16663   conftest.$ac_objext conftest.beam conftest.$ac_ext
16664 fi
16665
16666 fi
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
16668 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
16669     case $gl_cv_func_re_compile_pattern_working in #(
16670     yes) ac_use_included_regex=no;; #(
16671     no) ac_use_included_regex=yes;;
16672     esac
16673     ;;
16674   *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
16675     ;;
16676   esac
16677
16678   if test $ac_use_included_regex = yes; then
16679
16680 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
16681
16682
16683 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
16684
16685
16686 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
16687
16688
16689 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
16690
16691
16692 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
16693
16694
16695 $as_echo "#define re_search rpl_re_search" >>confdefs.h
16696
16697
16698 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
16699
16700
16701 $as_echo "#define re_match rpl_re_match" >>confdefs.h
16702
16703
16704 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
16705
16706
16707 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
16708
16709
16710 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
16711
16712
16713 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
16714
16715
16716 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
16717
16718
16719 $as_echo "#define regexec rpl_regexec" >>confdefs.h
16720
16721
16722 $as_echo "#define regerror rpl_regerror" >>confdefs.h
16723
16724
16725 $as_echo "#define regfree rpl_regfree" >>confdefs.h
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735   gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
16736
16737
16738
16739
16740
16741
16742   for ac_header in libintl.h
16743 do :
16744   ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16745 if test "x$ac_cv_header_libintl_h" = xyes; then :
16746   cat >>confdefs.h <<_ACEOF
16747 #define HAVE_LIBINTL_H 1
16748 _ACEOF
16749
16750 fi
16751
16752 done
16753
16754
16755   :
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767   ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
16768 "
16769 if test "x$ac_cv_have_decl_isblank" = xyes; then :
16770   ac_have_decl=1
16771 else
16772   ac_have_decl=0
16773 fi
16774
16775 cat >>confdefs.h <<_ACEOF
16776 #define HAVE_DECL_ISBLANK $ac_have_decl
16777 _ACEOF
16778
16779
16780   fi
16781
16782   # Code from module safe-read:
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792   gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
16793
16794
16795
16796
16797
16798
16799   # Code from module safe-write:
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809   gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
16810
16811
16812
16813
16814
16815
16816
16817
16818   # Code from module servent:
16819
16820                       SERVENT_LIB=
16821   gl_saved_libs="$LIBS"
16822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
16823 $as_echo_n "checking for library containing getservbyname... " >&6; }
16824 if ${ac_cv_search_getservbyname+:} false; then :
16825   $as_echo_n "(cached) " >&6
16826 else
16827   ac_func_search_save_LIBS=$LIBS
16828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829 /* end confdefs.h.  */
16830
16831 /* Override any GCC internal prototype to avoid an error.
16832    Use char because int might match the return type of a GCC
16833    builtin and then its argument prototype would still apply.  */
16834 #ifdef __cplusplus
16835 extern "C"
16836 #endif
16837 char getservbyname ();
16838 int
16839 main ()
16840 {
16841 return getservbyname ();
16842   ;
16843   return 0;
16844 }
16845 _ACEOF
16846 for ac_lib in '' socket network net; do
16847   if test -z "$ac_lib"; then
16848     ac_res="none required"
16849   else
16850     ac_res=-l$ac_lib
16851     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16852   fi
16853   if ac_fn_c_try_link "$LINENO"; then :
16854   ac_cv_search_getservbyname=$ac_res
16855 fi
16856 rm -f core conftest.err conftest.$ac_objext \
16857     conftest$ac_exeext
16858   if ${ac_cv_search_getservbyname+:} false; then :
16859   break
16860 fi
16861 done
16862 if ${ac_cv_search_getservbyname+:} false; then :
16863
16864 else
16865   ac_cv_search_getservbyname=no
16866 fi
16867 rm conftest.$ac_ext
16868 LIBS=$ac_func_search_save_LIBS
16869 fi
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
16871 $as_echo "$ac_cv_search_getservbyname" >&6; }
16872 ac_res=$ac_cv_search_getservbyname
16873 if test "$ac_res" != no; then :
16874   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16875   if test "$ac_cv_search_getservbyname" != "none required"; then
16876        SERVENT_LIB="$ac_cv_search_getservbyname"
16877      fi
16878 fi
16879
16880   LIBS="$gl_saved_libs"
16881   if test -z "$SERVENT_LIB"; then
16882     for ac_func in getservbyname
16883 do :
16884   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
16885 if test "x$ac_cv_func_getservbyname" = xyes; then :
16886   cat >>confdefs.h <<_ACEOF
16887 #define HAVE_GETSERVBYNAME 1
16888 _ACEOF
16889
16890 else
16891
16892       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
16893 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
16894 if ${gl_cv_w32_getservbyname+:} false; then :
16895   $as_echo_n "(cached) " >&6
16896 else
16897   gl_cv_w32_getservbyname=no
16898          gl_save_LIBS="$LIBS"
16899          LIBS="$LIBS -lws2_32"
16900          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901 /* end confdefs.h.  */
16902
16903 #ifdef HAVE_WINSOCK2_H
16904 #include <winsock2.h>
16905 #endif
16906 #include <stddef.h>
16907
16908 int
16909 main ()
16910 {
16911 getservbyname(NULL,NULL);
16912   ;
16913   return 0;
16914 }
16915 _ACEOF
16916 if ac_fn_c_try_link "$LINENO"; then :
16917   gl_cv_w32_getservbyname=yes
16918 fi
16919 rm -f core conftest.err conftest.$ac_objext \
16920     conftest$ac_exeext conftest.$ac_ext
16921          LIBS="$gl_save_LIBS"
16922
16923 fi
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
16925 $as_echo "$gl_cv_w32_getservbyname" >&6; }
16926       if test "$gl_cv_w32_getservbyname" = "yes"; then
16927         SERVENT_LIB="-lws2_32"
16928       fi
16929
16930 fi
16931 done
16932
16933   fi
16934
16935
16936   # Code from module size_max:
16937
16938   for ac_header in stdint.h
16939 do :
16940   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
16941 if test "x$ac_cv_header_stdint_h" = xyes; then :
16942   cat >>confdefs.h <<_ACEOF
16943 #define HAVE_STDINT_H 1
16944 _ACEOF
16945
16946 fi
16947
16948 done
16949
16950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
16951 $as_echo_n "checking for SIZE_MAX... " >&6; }
16952   result=
16953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h.  */
16955
16956 #include <limits.h>
16957 #if HAVE_STDINT_H
16958 #include <stdint.h>
16959 #endif
16960 #ifdef SIZE_MAX
16961 Found it
16962 #endif
16963
16964 _ACEOF
16965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16966   $EGREP "Found it" >/dev/null 2>&1; then :
16967   result=yes
16968 fi
16969 rm -f conftest*
16970
16971   if test -z "$result"; then
16972                 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
16973 #include <limits.h>"; then :
16974
16975 else
16976   size_t_bits_minus_1=
16977 fi
16978
16979
16980     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
16981
16982 else
16983   fits_in_uint=
16984 fi
16985
16986
16987     if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
16988       if test $fits_in_uint = 1; then
16989                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16990 /* end confdefs.h.  */
16991 #include <stddef.h>
16992           extern size_t foo;
16993           extern unsigned long foo;
16994
16995 int
16996 main ()
16997 {
16998
16999   ;
17000   return 0;
17001 }
17002 _ACEOF
17003 if ac_fn_c_try_compile "$LINENO"; then :
17004   fits_in_uint=0
17005 fi
17006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17007       fi
17008                         if test $fits_in_uint = 1; then
17009         result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
17010       else
17011         result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
17012       fi
17013     else
17014             result='((size_t)~(size_t)0)'
17015     fi
17016   fi
17017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
17018 $as_echo "$result" >&6; }
17019   if test "$result" != yes; then
17020
17021 cat >>confdefs.h <<_ACEOF
17022 #define SIZE_MAX $result
17023 _ACEOF
17024
17025   fi
17026
17027   # Code from module snprintf:
17028
17029
17030   gl_cv_func_snprintf_usable=no
17031   for ac_func in snprintf
17032 do :
17033   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17034 if test "x$ac_cv_func_snprintf" = xyes; then :
17035   cat >>confdefs.h <<_ACEOF
17036 #define HAVE_SNPRINTF 1
17037 _ACEOF
17038
17039 fi
17040 done
17041
17042   if test $ac_cv_func_snprintf = yes; then
17043
17044
17045   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
17046 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
17047 if ${gl_cv_func_snprintf_size1+:} false; then :
17048   $as_echo_n "(cached) " >&6
17049 else
17050
17051       if test "$cross_compiling" = yes; then :
17052   gl_cv_func_snprintf_size1="guessing yes"
17053 else
17054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055 /* end confdefs.h.  */
17056
17057 #include <stdio.h>
17058 int main()
17059 {
17060   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
17061   snprintf (buf, 1, "%d", 12345);
17062   return buf[1] != 'E';
17063 }
17064 _ACEOF
17065 if ac_fn_c_try_run "$LINENO"; then :
17066   gl_cv_func_snprintf_size1=yes
17067 else
17068   gl_cv_func_snprintf_size1=no
17069 fi
17070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17071   conftest.$ac_objext conftest.beam conftest.$ac_ext
17072 fi
17073
17074
17075 fi
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
17077 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
17078
17079     case "$gl_cv_func_snprintf_size1" in
17080       *yes)
17081         gl_cv_func_snprintf_usable=yes
17082         ;;
17083     esac
17084   fi
17085   if test $gl_cv_func_snprintf_usable = no; then
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
17097
17098   if test $ac_cv_func_snprintf = yes; then
17099     REPLACE_SNPRINTF=1
17100   fi
17101   :
17102
17103   fi
17104
17105   :
17106
17107
17108
17109
17110
17111   if test $ac_cv_have_decl_snprintf = no; then
17112     HAVE_DECL_SNPRINTF=0
17113   fi
17114
17115
17116
17117
17118   GNULIB_SNPRINTF=1
17119
17120
17121
17122 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
17123
17124
17125
17126   # Code from module socklen:
17127      ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
17128       #if HAVE_SYS_SOCKET_H
17129       # include <sys/socket.h>
17130       #elif HAVE_WS2TCPIP_H
17131       # include <ws2tcpip.h>
17132       #endif
17133 "
17134 if test "x$ac_cv_type_socklen_t" = xyes; then :
17135
17136 else
17137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
17138 $as_echo_n "checking for socklen_t equivalent... " >&6; }
17139       if ${gl_cv_socklen_t_equiv+:} false; then :
17140   $as_echo_n "(cached) " >&6
17141 else
17142   # Systems have either "struct sockaddr *" or
17143          # "void *" as the second argument to getpeername
17144          gl_cv_socklen_t_equiv=
17145          for arg2 in "struct sockaddr" void; do
17146            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
17147              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148 /* end confdefs.h.  */
17149 #include <sys/types.h>
17150                    #include <sys/socket.h>
17151
17152                    int getpeername (int, $arg2 *, $t *);
17153 int
17154 main ()
17155 {
17156 $t len;
17157                   getpeername (0, 0, &len);
17158   ;
17159   return 0;
17160 }
17161 _ACEOF
17162 if ac_fn_c_try_compile "$LINENO"; then :
17163   gl_cv_socklen_t_equiv="$t"
17164 fi
17165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17166              test "$gl_cv_socklen_t_equiv" != "" && break
17167            done
17168            test "$gl_cv_socklen_t_equiv" != "" && break
17169          done
17170
17171 fi
17172
17173       if test "$gl_cv_socklen_t_equiv" = ""; then
17174         as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
17175       fi
17176       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
17177 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
17178
17179 cat >>confdefs.h <<_ACEOF
17180 #define socklen_t $gl_cv_socklen_t_equiv
17181 _ACEOF
17182
17183 fi
17184
17185   # Code from module ssize_t:
17186
17187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17188 $as_echo_n "checking for ssize_t... " >&6; }
17189 if ${gt_cv_ssize_t+:} false; then :
17190   $as_echo_n "(cached) " >&6
17191 else
17192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193 /* end confdefs.h.  */
17194 #include <sys/types.h>
17195 int
17196 main ()
17197 {
17198 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17199             return !x;
17200   ;
17201   return 0;
17202 }
17203 _ACEOF
17204 if ac_fn_c_try_compile "$LINENO"; then :
17205   gt_cv_ssize_t=yes
17206 else
17207   gt_cv_ssize_t=no
17208 fi
17209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17210 fi
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17212 $as_echo "$gt_cv_ssize_t" >&6; }
17213   if test $gt_cv_ssize_t = no; then
17214
17215 $as_echo "#define ssize_t int" >>confdefs.h
17216
17217   fi
17218
17219   # Code from module stat:
17220
17221
17222
17223
17224   :
17225
17226
17227
17228
17229
17230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
17231 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
17232 if ${gl_cv_func_stat_dir_slash+:} false; then :
17233   $as_echo_n "(cached) " >&6
17234 else
17235   if test "$cross_compiling" = yes; then :
17236   case $host_os in
17237             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
17238             *) gl_cv_func_stat_dir_slash="guessing yes";;
17239           esac
17240 else
17241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h.  */
17243 #include <sys/stat.h>
17244
17245 int
17246 main ()
17247 {
17248 struct stat st; return stat (".", &st) != stat ("./", &st);
17249   ;
17250   return 0;
17251 }
17252 _ACEOF
17253 if ac_fn_c_try_run "$LINENO"; then :
17254   gl_cv_func_stat_dir_slash=yes
17255 else
17256   gl_cv_func_stat_dir_slash=no
17257 fi
17258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17259   conftest.$ac_objext conftest.beam conftest.$ac_ext
17260 fi
17261
17262 fi
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
17264 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
17265       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
17266 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
17267 if ${gl_cv_func_stat_file_slash+:} false; then :
17268   $as_echo_n "(cached) " >&6
17269 else
17270   touch conftest.tmp
17271        # Assume that if we have lstat, we can also check symlinks.
17272        if test $ac_cv_func_lstat = yes; then
17273          ln -s conftest.tmp conftest.lnk
17274        fi
17275        if test "$cross_compiling" = yes; then :
17276   gl_cv_func_stat_file_slash="guessing no"
17277 else
17278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279 /* end confdefs.h.  */
17280 #include <sys/stat.h>
17281
17282 int
17283 main ()
17284 {
17285 struct stat st;
17286       if (!stat ("conftest.tmp/", &st)) return 1;
17287 #if HAVE_LSTAT
17288       if (!stat ("conftest.lnk/", &st)) return 2;
17289 #endif
17290
17291   ;
17292   return 0;
17293 }
17294 _ACEOF
17295 if ac_fn_c_try_run "$LINENO"; then :
17296   gl_cv_func_stat_file_slash=yes
17297 else
17298   gl_cv_func_stat_file_slash=no
17299 fi
17300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17301   conftest.$ac_objext conftest.beam conftest.$ac_ext
17302 fi
17303
17304        rm -f conftest.tmp conftest.lnk
17305 fi
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
17307 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
17308   case $gl_cv_func_stat_dir_slash in
17309     *no) REPLACE_STAT=1
17310
17311 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
17312 ;;
17313   esac
17314   case $gl_cv_func_stat_file_slash in
17315     *no) REPLACE_STAT=1
17316
17317 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
17318 ;;
17319   esac
17320   if test $REPLACE_STAT = 1; then
17321
17322
17323
17324
17325
17326
17327
17328
17329   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
17330
17331
17332   fi
17333
17334
17335
17336
17337   GNULIB_STAT=1
17338
17339
17340
17341 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
17342
17343
17344
17345   # Code from module stdbool:
17346
17347
17348
17349   # Define two additional variables used in the Makefile substitution.
17350
17351   if test "$ac_cv_header_stdbool_h" = yes; then
17352     STDBOOL_H=''
17353   else
17354     STDBOOL_H='stdbool.h'
17355   fi
17356
17357
17358   if test "$ac_cv_type__Bool" = yes; then
17359     HAVE__BOOL=1
17360   else
17361     HAVE__BOOL=0
17362   fi
17363
17364
17365   # Code from module stddef:
17366
17367
17368
17369   if test $gt_cv_c_wchar_t = no; then
17370     HAVE_WCHAR_T=0
17371     STDDEF_H=stddef.h
17372   fi
17373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17374 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17375 if ${gl_cv_decl_null_works+:} false; then :
17376   $as_echo_n "(cached) " >&6
17377 else
17378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17379 /* end confdefs.h.  */
17380 #include <stddef.h>
17381       int test[2 * (sizeof NULL == sizeof (void *)) -1];
17382
17383 int
17384 main ()
17385 {
17386
17387   ;
17388   return 0;
17389 }
17390 _ACEOF
17391 if ac_fn_c_try_compile "$LINENO"; then :
17392   gl_cv_decl_null_works=yes
17393 else
17394   gl_cv_decl_null_works=no
17395 fi
17396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17397 fi
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17399 $as_echo "$gl_cv_decl_null_works" >&6; }
17400   if test $gl_cv_decl_null_works = no; then
17401     REPLACE_NULL=1
17402     STDDEF_H=stddef.h
17403   fi
17404   if test -n "$STDDEF_H"; then
17405
17406
17407
17408
17409   :
17410
17411
17412
17413
17414
17415
17416
17417      if test $gl_cv_have_include_next = yes; then
17418        gl_cv_next_stddef_h='<'stddef.h'>'
17419      else
17420        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17421 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17422 if ${gl_cv_next_stddef_h+:} false; then :
17423   $as_echo_n "(cached) " >&6
17424 else
17425
17426           if test $ac_cv_header_stddef_h = yes; then
17427             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17428 /* end confdefs.h.  */
17429 #include <stddef.h>
17430
17431 _ACEOF
17432                                                                                                 case "$host_os" in
17433               aix*) gl_absname_cpp="$ac_cpp -C" ;;
17434               *)    gl_absname_cpp="$ac_cpp" ;;
17435             esac
17436                                                 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17437                sed -n '\#/stddef.h#{
17438                  s#.*"\(.*/stddef.h\)".*#\1#
17439                  s#^/[^/]#//&#
17440                  p
17441                  q
17442                }'`'"'
17443           else
17444             gl_cv_next_stddef_h='<'stddef.h'>'
17445           fi
17446
17447 fi
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17449 $as_echo "$gl_cv_next_stddef_h" >&6; }
17450      fi
17451      NEXT_STDDEF_H=$gl_cv_next_stddef_h
17452
17453      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17454        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17455        gl_next_as_first_directive='<'stddef.h'>'
17456      else
17457        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17458        gl_next_as_first_directive=$gl_cv_next_stddef_h
17459      fi
17460      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17461
17462
17463
17464   fi
17465
17466   # Code from module stdint:
17467
17468
17469
17470   if test $ac_cv_type_long_long_int = yes; then
17471     HAVE_LONG_LONG_INT=1
17472   else
17473     HAVE_LONG_LONG_INT=0
17474   fi
17475
17476
17477   if test $ac_cv_type_unsigned_long_long_int = yes; then
17478     HAVE_UNSIGNED_LONG_LONG_INT=1
17479   else
17480     HAVE_UNSIGNED_LONG_LONG_INT=0
17481   fi
17482
17483
17484       if test $ac_cv_header_inttypes_h = yes; then
17485     HAVE_INTTYPES_H=1
17486   else
17487     HAVE_INTTYPES_H=0
17488   fi
17489
17490
17491       if test $ac_cv_header_sys_types_h = yes; then
17492     HAVE_SYS_TYPES_H=1
17493   else
17494     HAVE_SYS_TYPES_H=0
17495   fi
17496
17497
17498
17499
17500
17501
17502   :
17503
17504
17505
17506
17507
17508
17509
17510      if test $gl_cv_have_include_next = yes; then
17511        gl_cv_next_stdint_h='<'stdint.h'>'
17512      else
17513        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17514 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17515 if ${gl_cv_next_stdint_h+:} false; then :
17516   $as_echo_n "(cached) " >&6
17517 else
17518
17519           if test $ac_cv_header_stdint_h = yes; then
17520             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h.  */
17522 #include <stdint.h>
17523
17524 _ACEOF
17525                                                                                                 case "$host_os" in
17526               aix*) gl_absname_cpp="$ac_cpp -C" ;;
17527               *)    gl_absname_cpp="$ac_cpp" ;;
17528             esac
17529                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17530                sed -n '\#/stdint.h#{
17531                  s#.*"\(.*/stdint.h\)".*#\1#
17532                  s#^/[^/]#//&#
17533                  p
17534                  q
17535                }'`'"'
17536           else
17537             gl_cv_next_stdint_h='<'stdint.h'>'
17538           fi
17539
17540 fi
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17542 $as_echo "$gl_cv_next_stdint_h" >&6; }
17543      fi
17544      NEXT_STDINT_H=$gl_cv_next_stdint_h
17545
17546      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17547        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17548        gl_next_as_first_directive='<'stdint.h'>'
17549      else
17550        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17551        gl_next_as_first_directive=$gl_cv_next_stdint_h
17552      fi
17553      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17554
17555
17556
17557   if test $ac_cv_header_stdint_h = yes; then
17558     HAVE_STDINT_H=1
17559   else
17560     HAVE_STDINT_H=0
17561   fi
17562
17563
17564     if test $ac_cv_header_stdint_h = yes; then
17565     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17566 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17567 if ${gl_cv_header_working_stdint_h+:} false; then :
17568   $as_echo_n "(cached) " >&6
17569 else
17570   gl_cv_header_working_stdint_h=no
17571        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572 /* end confdefs.h.  */
17573
17574
17575 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17576 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17577 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17578 #include <stdint.h>
17579 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
17580 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17581 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17582 #endif
17583
17584
17585   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17586      included before <wchar.h>.  */
17587   #include <stddef.h>
17588   #include <signal.h>
17589   #if HAVE_WCHAR_H
17590   # include <stdio.h>
17591   # include <time.h>
17592   # include <wchar.h>
17593   #endif
17594
17595
17596 #ifdef INT8_MAX
17597 int8_t a1 = INT8_MAX;
17598 int8_t a1min = INT8_MIN;
17599 #endif
17600 #ifdef INT16_MAX
17601 int16_t a2 = INT16_MAX;
17602 int16_t a2min = INT16_MIN;
17603 #endif
17604 #ifdef INT32_MAX
17605 int32_t a3 = INT32_MAX;
17606 int32_t a3min = INT32_MIN;
17607 #endif
17608 #ifdef INT64_MAX
17609 int64_t a4 = INT64_MAX;
17610 int64_t a4min = INT64_MIN;
17611 #endif
17612 #ifdef UINT8_MAX
17613 uint8_t b1 = UINT8_MAX;
17614 #else
17615 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17616 #endif
17617 #ifdef UINT16_MAX
17618 uint16_t b2 = UINT16_MAX;
17619 #endif
17620 #ifdef UINT32_MAX
17621 uint32_t b3 = UINT32_MAX;
17622 #endif
17623 #ifdef UINT64_MAX
17624 uint64_t b4 = UINT64_MAX;
17625 #endif
17626 int_least8_t c1 = INT8_C (0x7f);
17627 int_least8_t c1max = INT_LEAST8_MAX;
17628 int_least8_t c1min = INT_LEAST8_MIN;
17629 int_least16_t c2 = INT16_C (0x7fff);
17630 int_least16_t c2max = INT_LEAST16_MAX;
17631 int_least16_t c2min = INT_LEAST16_MIN;
17632 int_least32_t c3 = INT32_C (0x7fffffff);
17633 int_least32_t c3max = INT_LEAST32_MAX;
17634 int_least32_t c3min = INT_LEAST32_MIN;
17635 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17636 int_least64_t c4max = INT_LEAST64_MAX;
17637 int_least64_t c4min = INT_LEAST64_MIN;
17638 uint_least8_t d1 = UINT8_C (0xff);
17639 uint_least8_t d1max = UINT_LEAST8_MAX;
17640 uint_least16_t d2 = UINT16_C (0xffff);
17641 uint_least16_t d2max = UINT_LEAST16_MAX;
17642 uint_least32_t d3 = UINT32_C (0xffffffff);
17643 uint_least32_t d3max = UINT_LEAST32_MAX;
17644 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17645 uint_least64_t d4max = UINT_LEAST64_MAX;
17646 int_fast8_t e1 = INT_FAST8_MAX;
17647 int_fast8_t e1min = INT_FAST8_MIN;
17648 int_fast16_t e2 = INT_FAST16_MAX;
17649 int_fast16_t e2min = INT_FAST16_MIN;
17650 int_fast32_t e3 = INT_FAST32_MAX;
17651 int_fast32_t e3min = INT_FAST32_MIN;
17652 int_fast64_t e4 = INT_FAST64_MAX;
17653 int_fast64_t e4min = INT_FAST64_MIN;
17654 uint_fast8_t f1 = UINT_FAST8_MAX;
17655 uint_fast16_t f2 = UINT_FAST16_MAX;
17656 uint_fast32_t f3 = UINT_FAST32_MAX;
17657 uint_fast64_t f4 = UINT_FAST64_MAX;
17658 #ifdef INTPTR_MAX
17659 intptr_t g = INTPTR_MAX;
17660 intptr_t gmin = INTPTR_MIN;
17661 #endif
17662 #ifdef UINTPTR_MAX
17663 uintptr_t h = UINTPTR_MAX;
17664 #endif
17665 intmax_t i = INTMAX_MAX;
17666 uintmax_t j = UINTMAX_MAX;
17667
17668 #include <limits.h> /* for CHAR_BIT */
17669 #define TYPE_MINIMUM(t) \
17670   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
17671 #define TYPE_MAXIMUM(t) \
17672   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
17673 struct s {
17674   int check_PTRDIFF:
17675       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17676       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17677       ? 1 : -1;
17678   /* Detect bug in FreeBSD 6.0 / ia64.  */
17679   int check_SIG_ATOMIC:
17680       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17681       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17682       ? 1 : -1;
17683   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17684   int check_WCHAR:
17685       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17686       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17687       ? 1 : -1;
17688   /* Detect bug in mingw.  */
17689   int check_WINT:
17690       WINT_MIN == TYPE_MINIMUM (wint_t)
17691       && WINT_MAX == TYPE_MAXIMUM (wint_t)
17692       ? 1 : -1;
17693
17694   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
17695   int check_UINT8_C:
17696         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17697   int check_UINT16_C:
17698         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17699
17700   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
17701 #ifdef UINT8_MAX
17702   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17703 #endif
17704 #ifdef UINT16_MAX
17705   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17706 #endif
17707 #ifdef UINT32_MAX
17708   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17709 #endif
17710 #ifdef UINT64_MAX
17711   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17712 #endif
17713   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17714   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17715   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17716   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17717   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17718   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17719   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17720   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17721   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17722   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17723   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17724 };
17725
17726 int
17727 main ()
17728 {
17729
17730   ;
17731   return 0;
17732 }
17733 _ACEOF
17734 if ac_fn_c_try_compile "$LINENO"; then :
17735                                                     if test "$cross_compiling" = yes; then :
17736                  gl_cv_header_working_stdint_h=yes
17737
17738 else
17739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17740 /* end confdefs.h.  */
17741
17742
17743 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17744 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17745 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17746 #include <stdint.h>
17747
17748
17749   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17750      included before <wchar.h>.  */
17751   #include <stddef.h>
17752   #include <signal.h>
17753   #if HAVE_WCHAR_H
17754   # include <stdio.h>
17755   # include <time.h>
17756   # include <wchar.h>
17757   #endif
17758
17759
17760 #include <stdio.h>
17761 #include <string.h>
17762 #define MVAL(macro) MVAL1(macro)
17763 #define MVAL1(expression) #expression
17764 static const char *macro_values[] =
17765   {
17766 #ifdef INT8_MAX
17767     MVAL (INT8_MAX),
17768 #endif
17769 #ifdef INT16_MAX
17770     MVAL (INT16_MAX),
17771 #endif
17772 #ifdef INT32_MAX
17773     MVAL (INT32_MAX),
17774 #endif
17775 #ifdef INT64_MAX
17776     MVAL (INT64_MAX),
17777 #endif
17778 #ifdef UINT8_MAX
17779     MVAL (UINT8_MAX),
17780 #endif
17781 #ifdef UINT16_MAX
17782     MVAL (UINT16_MAX),
17783 #endif
17784 #ifdef UINT32_MAX
17785     MVAL (UINT32_MAX),
17786 #endif
17787 #ifdef UINT64_MAX
17788     MVAL (UINT64_MAX),
17789 #endif
17790     NULL
17791   };
17792
17793 int
17794 main ()
17795 {
17796
17797   const char **mv;
17798   for (mv = macro_values; *mv != NULL; mv++)
17799     {
17800       const char *value = *mv;
17801       /* Test whether it looks like a cast expression.  */
17802       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17803           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17804           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17805           || strncmp (value, "((int)"/*)*/, 6) == 0
17806           || strncmp (value, "((signed short)"/*)*/, 15) == 0
17807           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17808         return 1;
17809     }
17810   return 0;
17811
17812   ;
17813   return 0;
17814 }
17815 _ACEOF
17816 if ac_fn_c_try_run "$LINENO"; then :
17817   gl_cv_header_working_stdint_h=yes
17818 fi
17819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17820   conftest.$ac_objext conftest.beam conftest.$ac_ext
17821 fi
17822
17823
17824 fi
17825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17826
17827 fi
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17829 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17830   fi
17831   if test "$gl_cv_header_working_stdint_h" = yes; then
17832     STDINT_H=
17833   else
17834             for ac_header in sys/inttypes.h sys/bitypes.h
17835 do :
17836   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17837 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17838 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17839   cat >>confdefs.h <<_ACEOF
17840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17841 _ACEOF
17842
17843 fi
17844
17845 done
17846
17847     if test $ac_cv_header_sys_inttypes_h = yes; then
17848       HAVE_SYS_INTTYPES_H=1
17849     else
17850       HAVE_SYS_INTTYPES_H=0
17851     fi
17852
17853     if test $ac_cv_header_sys_bitypes_h = yes; then
17854       HAVE_SYS_BITYPES_H=1
17855     else
17856       HAVE_SYS_BITYPES_H=0
17857     fi
17858
17859
17860
17861   :
17862
17863
17864
17865
17866
17867
17868
17869
17870   if test $APPLE_UNIVERSAL_BUILD = 0; then
17871
17872
17873   for gltype in ptrdiff_t size_t ; do
17874     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17875 $as_echo_n "checking for bit size of $gltype... " >&6; }
17876 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
17877   $as_echo_n "(cached) " >&6
17878 else
17879   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
17880   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17881      included before <wchar.h>.  */
17882   #include <stddef.h>
17883   #include <signal.h>
17884   #if HAVE_WCHAR_H
17885   # include <stdio.h>
17886   # include <time.h>
17887   # include <wchar.h>
17888   #endif
17889
17890 #include <limits.h>"; then :
17891
17892 else
17893   result=unknown
17894 fi
17895
17896        eval gl_cv_bitsizeof_${gltype}=\$result
17897
17898 fi
17899 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17900                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17901 $as_echo "$ac_res" >&6; }
17902     eval result=\$gl_cv_bitsizeof_${gltype}
17903     if test $result = unknown; then
17904                                                 result=0
17905     fi
17906     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17907     cat >>confdefs.h <<_ACEOF
17908 #define BITSIZEOF_${GLTYPE} $result
17909 _ACEOF
17910
17911     eval BITSIZEOF_${GLTYPE}=\$result
17912   done
17913
17914
17915   fi
17916
17917
17918   for gltype in sig_atomic_t wchar_t wint_t ; do
17919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17920 $as_echo_n "checking for bit size of $gltype... " >&6; }
17921 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
17922   $as_echo_n "(cached) " >&6
17923 else
17924   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
17925   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17926      included before <wchar.h>.  */
17927   #include <stddef.h>
17928   #include <signal.h>
17929   #if HAVE_WCHAR_H
17930   # include <stdio.h>
17931   # include <time.h>
17932   # include <wchar.h>
17933   #endif
17934
17935 #include <limits.h>"; then :
17936
17937 else
17938   result=unknown
17939 fi
17940
17941        eval gl_cv_bitsizeof_${gltype}=\$result
17942
17943 fi
17944 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17945                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17946 $as_echo "$ac_res" >&6; }
17947     eval result=\$gl_cv_bitsizeof_${gltype}
17948     if test $result = unknown; then
17949                                                 result=0
17950     fi
17951     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17952     cat >>confdefs.h <<_ACEOF
17953 #define BITSIZEOF_${GLTYPE} $result
17954 _ACEOF
17955
17956     eval BITSIZEOF_${GLTYPE}=\$result
17957   done
17958
17959
17960
17961
17962   for gltype in sig_atomic_t wchar_t wint_t ; do
17963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17964 $as_echo_n "checking whether $gltype is signed... " >&6; }
17965 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
17966   $as_echo_n "(cached) " >&6
17967 else
17968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17969 /* end confdefs.h.  */
17970
17971   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17972      included before <wchar.h>.  */
17973   #include <stddef.h>
17974   #include <signal.h>
17975   #if HAVE_WCHAR_H
17976   # include <stdio.h>
17977   # include <time.h>
17978   # include <wchar.h>
17979   #endif
17980
17981             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17982 int
17983 main ()
17984 {
17985
17986   ;
17987   return 0;
17988 }
17989 _ACEOF
17990 if ac_fn_c_try_compile "$LINENO"; then :
17991   result=yes
17992 else
17993   result=no
17994 fi
17995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17996        eval gl_cv_type_${gltype}_signed=\$result
17997
17998 fi
17999 eval ac_res=\$gl_cv_type_${gltype}_signed
18000                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18001 $as_echo "$ac_res" >&6; }
18002     eval result=\$gl_cv_type_${gltype}_signed
18003     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18004     if test "$result" = yes; then
18005       cat >>confdefs.h <<_ACEOF
18006 #define HAVE_SIGNED_${GLTYPE} 1
18007 _ACEOF
18008
18009       eval HAVE_SIGNED_${GLTYPE}=1
18010     else
18011       eval HAVE_SIGNED_${GLTYPE}=0
18012     fi
18013   done
18014
18015
18016   gl_cv_type_ptrdiff_t_signed=yes
18017   gl_cv_type_size_t_signed=no
18018   if test $APPLE_UNIVERSAL_BUILD = 0; then
18019
18020
18021   for gltype in ptrdiff_t size_t ; do
18022     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18023 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18024 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18025   $as_echo_n "(cached) " >&6
18026 else
18027   eval gl_cv_type_${gltype}_suffix=no
18028        eval result=\$gl_cv_type_${gltype}_signed
18029        if test "$result" = yes; then
18030          glsufu=
18031        else
18032          glsufu=u
18033        fi
18034        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18035          case $glsuf in
18036            '')  gltype1='int';;
18037            l)   gltype1='long int';;
18038            ll)  gltype1='long long int';;
18039            i64) gltype1='__int64';;
18040            u)   gltype1='unsigned int';;
18041            ul)  gltype1='unsigned long int';;
18042            ull) gltype1='unsigned long long int';;
18043            ui64)gltype1='unsigned __int64';;
18044          esac
18045          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18046 /* end confdefs.h.  */
18047
18048   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18049      included before <wchar.h>.  */
18050   #include <stddef.h>
18051   #include <signal.h>
18052   #if HAVE_WCHAR_H
18053   # include <stdio.h>
18054   # include <time.h>
18055   # include <wchar.h>
18056   #endif
18057
18058               extern $gltype foo;
18059               extern $gltype1 foo;
18060 int
18061 main ()
18062 {
18063
18064   ;
18065   return 0;
18066 }
18067 _ACEOF
18068 if ac_fn_c_try_compile "$LINENO"; then :
18069   eval gl_cv_type_${gltype}_suffix=\$glsuf
18070 fi
18071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18072          eval result=\$gl_cv_type_${gltype}_suffix
18073          test "$result" != no && break
18074        done
18075 fi
18076 eval ac_res=\$gl_cv_type_${gltype}_suffix
18077                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18078 $as_echo "$ac_res" >&6; }
18079     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18080     eval result=\$gl_cv_type_${gltype}_suffix
18081     test "$result" = no && result=
18082     eval ${GLTYPE}_SUFFIX=\$result
18083     cat >>confdefs.h <<_ACEOF
18084 #define ${GLTYPE}_SUFFIX $result
18085 _ACEOF
18086
18087   done
18088
18089
18090   fi
18091
18092
18093   for gltype in sig_atomic_t wchar_t wint_t ; do
18094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18095 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18096 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18097   $as_echo_n "(cached) " >&6
18098 else
18099   eval gl_cv_type_${gltype}_suffix=no
18100        eval result=\$gl_cv_type_${gltype}_signed
18101        if test "$result" = yes; then
18102          glsufu=
18103        else
18104          glsufu=u
18105        fi
18106        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18107          case $glsuf in
18108            '')  gltype1='int';;
18109            l)   gltype1='long int';;
18110            ll)  gltype1='long long int';;
18111            i64) gltype1='__int64';;
18112            u)   gltype1='unsigned int';;
18113            ul)  gltype1='unsigned long int';;
18114            ull) gltype1='unsigned long long int';;
18115            ui64)gltype1='unsigned __int64';;
18116          esac
18117          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18118 /* end confdefs.h.  */
18119
18120   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18121      included before <wchar.h>.  */
18122   #include <stddef.h>
18123   #include <signal.h>
18124   #if HAVE_WCHAR_H
18125   # include <stdio.h>
18126   # include <time.h>
18127   # include <wchar.h>
18128   #endif
18129
18130               extern $gltype foo;
18131               extern $gltype1 foo;
18132 int
18133 main ()
18134 {
18135
18136   ;
18137   return 0;
18138 }
18139 _ACEOF
18140 if ac_fn_c_try_compile "$LINENO"; then :
18141   eval gl_cv_type_${gltype}_suffix=\$glsuf
18142 fi
18143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18144          eval result=\$gl_cv_type_${gltype}_suffix
18145          test "$result" != no && break
18146        done
18147 fi
18148 eval ac_res=\$gl_cv_type_${gltype}_suffix
18149                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18150 $as_echo "$ac_res" >&6; }
18151     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18152     eval result=\$gl_cv_type_${gltype}_suffix
18153     test "$result" = no && result=
18154     eval ${GLTYPE}_SUFFIX=\$result
18155     cat >>confdefs.h <<_ACEOF
18156 #define ${GLTYPE}_SUFFIX $result
18157 _ACEOF
18158
18159   done
18160
18161
18162
18163     STDINT_H=stdint.h
18164   fi
18165
18166
18167   # Code from module stdio:
18168
18169
18170
18171
18172
18173
18174
18175
18176   :
18177
18178
18179
18180
18181
18182
18183
18184      if test $gl_cv_have_include_next = yes; then
18185        gl_cv_next_stdio_h='<'stdio.h'>'
18186      else
18187        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
18188 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
18189 if ${gl_cv_next_stdio_h+:} false; then :
18190   $as_echo_n "(cached) " >&6
18191 else
18192
18193           if test $ac_cv_header_stdio_h = yes; then
18194             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18195 /* end confdefs.h.  */
18196 #include <stdio.h>
18197
18198 _ACEOF
18199                                                                                                 case "$host_os" in
18200               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18201               *)    gl_absname_cpp="$ac_cpp" ;;
18202             esac
18203                                                 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18204                sed -n '\#/stdio.h#{
18205                  s#.*"\(.*/stdio.h\)".*#\1#
18206                  s#^/[^/]#//&#
18207                  p
18208                  q
18209                }'`'"'
18210           else
18211             gl_cv_next_stdio_h='<'stdio.h'>'
18212           fi
18213
18214 fi
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
18216 $as_echo "$gl_cv_next_stdio_h" >&6; }
18217      fi
18218      NEXT_STDIO_H=$gl_cv_next_stdio_h
18219
18220      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18221        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18222        gl_next_as_first_directive='<'stdio.h'>'
18223      else
18224        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18225        gl_next_as_first_directive=$gl_cv_next_stdio_h
18226      fi
18227      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
18228
18229
18230
18231       GNULIB_FPRINTF=1
18232   GNULIB_PRINTF=1
18233   GNULIB_VFPRINTF=1
18234   GNULIB_VPRINTF=1
18235   GNULIB_FPUTC=1
18236   GNULIB_PUTC=1
18237   GNULIB_PUTCHAR=1
18238   GNULIB_FPUTS=1
18239   GNULIB_PUTS=1
18240   GNULIB_FWRITE=1
18241
18242
18243
18244     for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat     snprintf tmpfile vdprintf vsnprintf; do
18245     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18247 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18248 if eval \${$as_gl_Symbol+:} false; then :
18249   $as_echo_n "(cached) " >&6
18250 else
18251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18252 /* end confdefs.h.  */
18253 #include <stdio.h>
18254
18255 int
18256 main ()
18257 {
18258 #undef $gl_func
18259   (void) $gl_func;
18260   ;
18261   return 0;
18262 }
18263 _ACEOF
18264 if ac_fn_c_try_compile "$LINENO"; then :
18265   eval "$as_gl_Symbol=yes"
18266 else
18267   eval "$as_gl_Symbol=no"
18268 fi
18269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18270 fi
18271 eval ac_res=\$$as_gl_Symbol
18272                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18273 $as_echo "$ac_res" >&6; }
18274      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18275   cat >>confdefs.h <<_ACEOF
18276 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18277 _ACEOF
18278
18279                      eval ac_cv_have_decl_$gl_func=yes
18280 fi
18281       done
18282
18283
18284   # Code from module stdlib:
18285
18286
18287
18288
18289
18290
18291   :
18292
18293
18294
18295
18296
18297
18298
18299      if test $gl_cv_have_include_next = yes; then
18300        gl_cv_next_stdlib_h='<'stdlib.h'>'
18301      else
18302        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18303 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
18304 if ${gl_cv_next_stdlib_h+:} false; then :
18305   $as_echo_n "(cached) " >&6
18306 else
18307
18308           if test $ac_cv_header_stdlib_h = yes; then
18309             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310 /* end confdefs.h.  */
18311 #include <stdlib.h>
18312
18313 _ACEOF
18314                                                                                                 case "$host_os" in
18315               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18316               *)    gl_absname_cpp="$ac_cpp" ;;
18317             esac
18318                                                 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18319                sed -n '\#/stdlib.h#{
18320                  s#.*"\(.*/stdlib.h\)".*#\1#
18321                  s#^/[^/]#//&#
18322                  p
18323                  q
18324                }'`'"'
18325           else
18326             gl_cv_next_stdlib_h='<'stdlib.h'>'
18327           fi
18328
18329 fi
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18331 $as_echo "$gl_cv_next_stdlib_h" >&6; }
18332      fi
18333      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
18334
18335      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18336        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18337        gl_next_as_first_directive='<'stdlib.h'>'
18338      else
18339        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18340        gl_next_as_first_directive=$gl_cv_next_stdlib_h
18341      fi
18342      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
18343
18344
18345
18346   for ac_header in random.h
18347 do :
18348   ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
18349 "
18350 if test "x$ac_cv_header_random_h" = xyes; then :
18351   cat >>confdefs.h <<_ACEOF
18352 #define HAVE_RANDOM_H 1
18353 _ACEOF
18354
18355 fi
18356
18357 done
18358
18359   if test $ac_cv_header_random_h = yes; then
18360     HAVE_RANDOM_H=1
18361   else
18362     HAVE_RANDOM_H=0
18363   fi
18364
18365   ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
18366       #if HAVE_RANDOM_H
18367       # include <random.h>
18368       #endif
18369
18370 "
18371 if test "x$ac_cv_type_struct_random_data" = xyes; then :
18372
18373 cat >>confdefs.h <<_ACEOF
18374 #define HAVE_STRUCT_RANDOM_DATA 1
18375 _ACEOF
18376
18377
18378 else
18379   HAVE_STRUCT_RANDOM_DATA=0
18380 fi
18381
18382
18383
18384     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
18385     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18387 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18388 if eval \${$as_gl_Symbol+:} false; then :
18389   $as_echo_n "(cached) " >&6
18390 else
18391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18392 /* end confdefs.h.  */
18393 #include <stdlib.h>
18394 #if HAVE_SYS_LOADAVG_H
18395 # include <sys/loadavg.h>
18396 #endif
18397 #if HAVE_RANDOM_H
18398 # include <random.h>
18399 #endif
18400
18401 int
18402 main ()
18403 {
18404 #undef $gl_func
18405   (void) $gl_func;
18406   ;
18407   return 0;
18408 }
18409 _ACEOF
18410 if ac_fn_c_try_compile "$LINENO"; then :
18411   eval "$as_gl_Symbol=yes"
18412 else
18413   eval "$as_gl_Symbol=no"
18414 fi
18415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18416 fi
18417 eval ac_res=\$$as_gl_Symbol
18418                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18419 $as_echo "$ac_res" >&6; }
18420      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18421   cat >>confdefs.h <<_ACEOF
18422 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18423 _ACEOF
18424
18425                      eval ac_cv_have_decl_$gl_func=yes
18426 fi
18427       done
18428
18429
18430   # Code from module streq:
18431   # Code from module string:
18432
18433
18434
18435   # Code from module sys_socket:
18436
18437
18438
18439
18440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
18441 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
18442 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
18443   $as_echo_n "(cached) " >&6
18444 else
18445
18446       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h.  */
18448 #include <sys/socket.h>
18449 int
18450 main ()
18451 {
18452
18453   ;
18454   return 0;
18455 }
18456 _ACEOF
18457 if ac_fn_c_try_compile "$LINENO"; then :
18458   gl_cv_header_sys_socket_h_selfcontained=yes
18459 else
18460   gl_cv_header_sys_socket_h_selfcontained=no
18461 fi
18462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18463
18464 fi
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
18466 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
18467   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
18468             for ac_func in shutdown
18469 do :
18470   ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
18471 if test "x$ac_cv_func_shutdown" = xyes; then :
18472   cat >>confdefs.h <<_ACEOF
18473 #define HAVE_SHUTDOWN 1
18474 _ACEOF
18475
18476 fi
18477 done
18478
18479     if test $ac_cv_func_shutdown = yes; then
18480       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
18481 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
18482 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
18483   $as_echo_n "(cached) " >&6
18484 else
18485
18486           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18487 /* end confdefs.h.  */
18488 #include <sys/socket.h>
18489 int
18490 main ()
18491 {
18492 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
18493   ;
18494   return 0;
18495 }
18496 _ACEOF
18497 if ac_fn_c_try_compile "$LINENO"; then :
18498   gl_cv_header_sys_socket_h_shut=yes
18499 else
18500   gl_cv_header_sys_socket_h_shut=no
18501 fi
18502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18503
18504 fi
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
18506 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
18507       if test $gl_cv_header_sys_socket_h_shut = no; then
18508         SYS_SOCKET_H='sys/socket.h'
18509       fi
18510     fi
18511   fi
18512   # We need to check for ws2tcpip.h now.
18513
18514
18515
18516
18517
18518   :
18519
18520
18521
18522
18523
18524
18525
18526      if test $gl_cv_have_include_next = yes; then
18527        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
18528      else
18529        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
18530 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
18531 if ${gl_cv_next_sys_socket_h+:} false; then :
18532   $as_echo_n "(cached) " >&6
18533 else
18534
18535           if test $ac_cv_header_sys_socket_h = yes; then
18536             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18537 /* end confdefs.h.  */
18538 #include <sys/socket.h>
18539
18540 _ACEOF
18541                                                                                                 case "$host_os" in
18542               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18543               *)    gl_absname_cpp="$ac_cpp" ;;
18544             esac
18545                                                 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18546                sed -n '\#/sys/socket.h#{
18547                  s#.*"\(.*/sys/socket.h\)".*#\1#
18548                  s#^/[^/]#//&#
18549                  p
18550                  q
18551                }'`'"'
18552           else
18553             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
18554           fi
18555
18556 fi
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
18558 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
18559      fi
18560      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
18561
18562      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18563        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18564        gl_next_as_first_directive='<'sys/socket.h'>'
18565      else
18566        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18567        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
18568      fi
18569      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
18570
18571
18572
18573   if test $ac_cv_header_sys_socket_h = yes; then
18574     HAVE_SYS_SOCKET_H=1
18575     HAVE_WS2TCPIP_H=0
18576   else
18577     HAVE_SYS_SOCKET_H=0
18578                     for ac_header in ws2tcpip.h
18579 do :
18580   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18581 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
18582   cat >>confdefs.h <<_ACEOF
18583 #define HAVE_WS2TCPIP_H 1
18584 _ACEOF
18585
18586 fi
18587
18588 done
18589
18590     if test $ac_cv_header_ws2tcpip_h = yes; then
18591       HAVE_WS2TCPIP_H=1
18592     else
18593       HAVE_WS2TCPIP_H=0
18594     fi
18595   fi
18596
18597
18598
18599   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
18600   /* sys/types.h is not needed according to POSIX, but the
18601      sys/socket.h in i386-unknown-freebsd4.10 and
18602      powerpc-apple-darwin5.5 required it. */
18603 #include <sys/types.h>
18604 #ifdef HAVE_SYS_SOCKET_H
18605 #include <sys/socket.h>
18606 #endif
18607 #ifdef HAVE_WS2TCPIP_H
18608 #include <ws2tcpip.h>
18609 #endif
18610
18611 "
18612 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
18613
18614 cat >>confdefs.h <<_ACEOF
18615 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
18616 _ACEOF
18617
18618
18619 fi
18620 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
18621   /* sys/types.h is not needed according to POSIX, but the
18622      sys/socket.h in i386-unknown-freebsd4.10 and
18623      powerpc-apple-darwin5.5 required it. */
18624 #include <sys/types.h>
18625 #ifdef HAVE_SYS_SOCKET_H
18626 #include <sys/socket.h>
18627 #endif
18628 #ifdef HAVE_WS2TCPIP_H
18629 #include <ws2tcpip.h>
18630 #endif
18631
18632 "
18633 if test "x$ac_cv_type_sa_family_t" = xyes; then :
18634
18635 cat >>confdefs.h <<_ACEOF
18636 #define HAVE_SA_FAMILY_T 1
18637 _ACEOF
18638
18639
18640 fi
18641
18642   if test $ac_cv_type_struct_sockaddr_storage = no; then
18643     HAVE_STRUCT_SOCKADDR_STORAGE=0
18644   fi
18645   if test $ac_cv_type_sa_family_t = no; then
18646     HAVE_SA_FAMILY_T=0
18647   fi
18648
18649
18650
18651
18652   :
18653
18654
18655
18656
18657
18658   if test $ac_cv_header_sys_socket_h != yes; then
18659                     for ac_header in winsock2.h
18660 do :
18661   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18662 if test "x$ac_cv_header_winsock2_h" = xyes; then :
18663   cat >>confdefs.h <<_ACEOF
18664 #define HAVE_WINSOCK2_H 1
18665 _ACEOF
18666
18667 fi
18668
18669 done
18670
18671   fi
18672   if test "$ac_cv_header_winsock2_h" = yes; then
18673     HAVE_WINSOCK2_H=1
18674     UNISTD_H_HAVE_WINSOCK2_H=1
18675     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18676   else
18677     HAVE_WINSOCK2_H=0
18678   fi
18679
18680
18681
18682
18683     for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
18684     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18686 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18687 if eval \${$as_gl_Symbol+:} false; then :
18688   $as_echo_n "(cached) " >&6
18689 else
18690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18691 /* end confdefs.h.  */
18692
18693 /* Some systems require prerequisite headers.  */
18694 #include <sys/types.h>
18695 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
18696 # include <sys/time.h>
18697 #endif
18698 #include <sys/select.h>
18699
18700 int
18701 main ()
18702 {
18703 #undef $gl_func
18704   (void) $gl_func;
18705   ;
18706   return 0;
18707 }
18708 _ACEOF
18709 if ac_fn_c_try_compile "$LINENO"; then :
18710   eval "$as_gl_Symbol=yes"
18711 else
18712   eval "$as_gl_Symbol=no"
18713 fi
18714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18715 fi
18716 eval ac_res=\$$as_gl_Symbol
18717                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18718 $as_echo "$ac_res" >&6; }
18719      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18720   cat >>confdefs.h <<_ACEOF
18721 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18722 _ACEOF
18723
18724                      eval ac_cv_have_decl_$gl_func=yes
18725 fi
18726       done
18727
18728
18729
18730   # Code from module sys_stat:
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742   :
18743
18744
18745
18746
18747
18748
18749
18750      if test $gl_cv_have_include_next = yes; then
18751        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18752      else
18753        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18754 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18755 if ${gl_cv_next_sys_stat_h+:} false; then :
18756   $as_echo_n "(cached) " >&6
18757 else
18758
18759           if test $ac_cv_header_sys_stat_h = yes; then
18760             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18761 /* end confdefs.h.  */
18762 #include <sys/stat.h>
18763
18764 _ACEOF
18765                                                                                                 case "$host_os" in
18766               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18767               *)    gl_absname_cpp="$ac_cpp" ;;
18768             esac
18769                                                 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18770                sed -n '\#/sys/stat.h#{
18771                  s#.*"\(.*/sys/stat.h\)".*#\1#
18772                  s#^/[^/]#//&#
18773                  p
18774                  q
18775                }'`'"'
18776           else
18777             gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18778           fi
18779
18780 fi
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18782 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18783      fi
18784      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18785
18786      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18787        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18788        gl_next_as_first_directive='<'sys/stat.h'>'
18789      else
18790        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18791        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18792      fi
18793      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18794
18795
18796
18797
18798       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18799      #include <sys/stat.h>
18800 "
18801 if test "x$ac_cv_type_nlink_t" = xyes; then :
18802
18803 else
18804
18805 $as_echo "#define nlink_t int" >>confdefs.h
18806
18807 fi
18808
18809
18810
18811     for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
18812     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18813     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18814 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18815 if eval \${$as_gl_Symbol+:} false; then :
18816   $as_echo_n "(cached) " >&6
18817 else
18818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18819 /* end confdefs.h.  */
18820 #include <sys/stat.h>
18821
18822 int
18823 main ()
18824 {
18825 #undef $gl_func
18826   (void) $gl_func;
18827   ;
18828   return 0;
18829 }
18830 _ACEOF
18831 if ac_fn_c_try_compile "$LINENO"; then :
18832   eval "$as_gl_Symbol=yes"
18833 else
18834   eval "$as_gl_Symbol=no"
18835 fi
18836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18837 fi
18838 eval ac_res=\$$as_gl_Symbol
18839                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18840 $as_echo "$ac_res" >&6; }
18841      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18842   cat >>confdefs.h <<_ACEOF
18843 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18844 _ACEOF
18845
18846                      eval ac_cv_have_decl_$gl_func=yes
18847 fi
18848       done
18849
18850
18851
18852   # Code from module sys_time:
18853
18854
18855
18856
18857   # Code from module tempname:
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
18870
18871
18872   :
18873
18874
18875   # Code from module threadlib:
18876
18877
18878
18879
18880   # Code from module time:
18881
18882
18883
18884   # Code from module unistd:
18885
18886
18887
18888
18889
18890
18891
18892
18893   :
18894
18895
18896
18897
18898
18899
18900
18901      if test $gl_cv_have_include_next = yes; then
18902        gl_cv_next_unistd_h='<'unistd.h'>'
18903      else
18904        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18905 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18906 if ${gl_cv_next_unistd_h+:} false; then :
18907   $as_echo_n "(cached) " >&6
18908 else
18909
18910           if test $ac_cv_header_unistd_h = yes; then
18911             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18912 /* end confdefs.h.  */
18913 #include <unistd.h>
18914
18915 _ACEOF
18916                                                                                                 case "$host_os" in
18917               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18918               *)    gl_absname_cpp="$ac_cpp" ;;
18919             esac
18920                                                 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18921                sed -n '\#/unistd.h#{
18922                  s#.*"\(.*/unistd.h\)".*#\1#
18923                  s#^/[^/]#//&#
18924                  p
18925                  q
18926                }'`'"'
18927           else
18928             gl_cv_next_unistd_h='<'unistd.h'>'
18929           fi
18930
18931 fi
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18933 $as_echo "$gl_cv_next_unistd_h" >&6; }
18934      fi
18935      NEXT_UNISTD_H=$gl_cv_next_unistd_h
18936
18937      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18938        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18939        gl_next_as_first_directive='<'unistd.h'>'
18940      else
18941        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18942        gl_next_as_first_directive=$gl_cv_next_unistd_h
18943      fi
18944      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18945
18946
18947
18948
18949
18950   :
18951
18952
18953
18954
18955
18956   if test $ac_cv_header_unistd_h = yes; then
18957     HAVE_UNISTD_H=1
18958   else
18959     HAVE_UNISTD_H=0
18960   fi
18961
18962
18963
18964     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
18965     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18967 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18968 if eval \${$as_gl_Symbol+:} false; then :
18969   $as_echo_n "(cached) " >&6
18970 else
18971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18972 /* end confdefs.h.  */
18973 #include <unistd.h>
18974 /* Some systems declare various items in the wrong headers.  */
18975 #ifndef __GLIBC__
18976 # include <fcntl.h>
18977 # include <stdio.h>
18978 # include <stdlib.h>
18979 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18980 #  include <io.h>
18981 # endif
18982 #endif
18983
18984 int
18985 main ()
18986 {
18987 #undef $gl_func
18988   (void) $gl_func;
18989   ;
18990   return 0;
18991 }
18992 _ACEOF
18993 if ac_fn_c_try_compile "$LINENO"; then :
18994   eval "$as_gl_Symbol=yes"
18995 else
18996   eval "$as_gl_Symbol=no"
18997 fi
18998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18999 fi
19000 eval ac_res=\$$as_gl_Symbol
19001                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19002 $as_echo "$ac_res" >&6; }
19003      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19004   cat >>confdefs.h <<_ACEOF
19005 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19006 _ACEOF
19007
19008                      eval ac_cv_have_decl_$gl_func=yes
19009 fi
19010       done
19011
19012
19013   # Code from module vasnprintf:
19014
19015
19016   :
19017
19018
19019
19020
19021
19022   if test $ac_cv_func_vasnprintf = no; then
19023
19024
19025   :
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
19070
19071   if test $ac_cv_func_vasnprintf = yes; then
19072
19073 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
19074
19075   fi
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19087 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19088
19089 else
19090
19091 $as_echo "#define ptrdiff_t long" >>confdefs.h
19092
19093
19094 fi
19095
19096
19097
19098
19099
19100
19101
19102   fi
19103
19104   # Code from module verify:
19105   # Code from module warn-on-use:
19106   # Code from module wchar:
19107
19108
19109
19110
19111   :
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121   :
19122
19123
19124
19125
19126
19127
19128
19129      if test $gl_cv_have_include_next = yes; then
19130        gl_cv_next_wchar_h='<'wchar.h'>'
19131      else
19132        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
19133 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
19134 if ${gl_cv_next_wchar_h+:} false; then :
19135   $as_echo_n "(cached) " >&6
19136 else
19137
19138           if test $ac_cv_header_wchar_h = yes; then
19139             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19140 /* end confdefs.h.  */
19141 #include <wchar.h>
19142
19143 _ACEOF
19144                                                                                                 case "$host_os" in
19145               aix*) gl_absname_cpp="$ac_cpp -C" ;;
19146               *)    gl_absname_cpp="$ac_cpp" ;;
19147             esac
19148                                                 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19149                sed -n '\#/wchar.h#{
19150                  s#.*"\(.*/wchar.h\)".*#\1#
19151                  s#^/[^/]#//&#
19152                  p
19153                  q
19154                }'`'"'
19155           else
19156             gl_cv_next_wchar_h='<'wchar.h'>'
19157           fi
19158
19159 fi
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
19161 $as_echo "$gl_cv_next_wchar_h" >&6; }
19162      fi
19163      NEXT_WCHAR_H=$gl_cv_next_wchar_h
19164
19165      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19166        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19167        gl_next_as_first_directive='<'wchar.h'>'
19168      else
19169        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19170        gl_next_as_first_directive=$gl_cv_next_wchar_h
19171      fi
19172      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
19173
19174
19175
19176   if test $ac_cv_header_wchar_h = yes; then
19177     HAVE_WCHAR_H=1
19178   else
19179     HAVE_WCHAR_H=0
19180   fi
19181
19182
19183
19184   if test $gt_cv_c_wint_t = yes; then
19185     HAVE_WINT_T=1
19186   else
19187     HAVE_WINT_T=0
19188   fi
19189
19190
19191
19192     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
19193     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19194     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19195 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19196 if eval \${$as_gl_Symbol+:} false; then :
19197   $as_echo_n "(cached) " >&6
19198 else
19199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200 /* end confdefs.h.  */
19201
19202 /* Some systems require additional headers.  */
19203 #ifndef __GLIBC__
19204 # include <stddef.h>
19205 # include <stdio.h>
19206 # include <time.h>
19207 #endif
19208 #include <wchar.h>
19209
19210 int
19211 main ()
19212 {
19213 #undef $gl_func
19214   (void) $gl_func;
19215   ;
19216   return 0;
19217 }
19218 _ACEOF
19219 if ac_fn_c_try_compile "$LINENO"; then :
19220   eval "$as_gl_Symbol=yes"
19221 else
19222   eval "$as_gl_Symbol=no"
19223 fi
19224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19225 fi
19226 eval ac_res=\$$as_gl_Symbol
19227                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19228 $as_echo "$ac_res" >&6; }
19229      if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19230   cat >>confdefs.h <<_ACEOF
19231 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19232 _ACEOF
19233
19234                      eval ac_cv_have_decl_$gl_func=yes
19235 fi
19236       done
19237
19238
19239   # Code from module wcrtomb:
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249   :
19250
19251
19252
19253
19254
19255
19256   :
19257
19258
19259
19260
19261
19262   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
19263
19264
19265
19266      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
19267 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
19268 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
19269   $as_echo_n "(cached) " >&6
19270 else
19271
19272                   case "$host_os" in
19273                      # Guess no on AIX and OSF/1.
19274         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
19275                      # Guess yes otherwise.
19276         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
19277       esac
19278       if test $LOCALE_JA != none; then
19279         if test "$cross_compiling" = yes; then :
19280   :
19281 else
19282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19283 /* end confdefs.h.  */
19284
19285 #include <locale.h>
19286 #include <string.h>
19287 #include <wchar.h>
19288 int main ()
19289 {
19290   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19291     {
19292       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
19293       mbstate_t state;
19294       wchar_t wc;
19295
19296       memset (&state, '\0', sizeof (mbstate_t));
19297       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
19298         if (mbsinit (&state))
19299           return 1;
19300     }
19301   return 0;
19302 }
19303 _ACEOF
19304 if ac_fn_c_try_run "$LINENO"; then :
19305   gl_cv_func_mbrtowc_incomplete_state=yes
19306 else
19307   gl_cv_func_mbrtowc_incomplete_state=no
19308 fi
19309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19310   conftest.$ac_objext conftest.beam conftest.$ac_ext
19311 fi
19312
19313       fi
19314
19315 fi
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
19317 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
19318
19319
19320
19321
19322      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
19323 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
19324 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
19325   $as_echo_n "(cached) " >&6
19326 else
19327
19328                   case "$host_os" in
19329                     # Guess no on Solaris 8.
19330         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
19331                     # Guess yes otherwise.
19332         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
19333       esac
19334       if test $LOCALE_ZH_CN != none; then
19335         if test "$cross_compiling" = yes; then :
19336   :
19337 else
19338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19339 /* end confdefs.h.  */
19340
19341 #include <locale.h>
19342 #include <stdlib.h>
19343 #include <string.h>
19344 #include <wchar.h>
19345 int main ()
19346 {
19347   /* This fails on Solaris 8:
19348      mbrtowc returns 2, and sets wc to 0x00F0.
19349      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
19350   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19351     {
19352       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
19353       mbstate_t state;
19354       wchar_t wc;
19355
19356       memset (&state, '\0', sizeof (mbstate_t));
19357       if (mbrtowc (&wc, input + 3, 6, &state) != 4
19358           && mbtowc (&wc, input + 3, 6) == 4)
19359         return 1;
19360     }
19361   return 0;
19362 }
19363 _ACEOF
19364 if ac_fn_c_try_run "$LINENO"; then :
19365   gl_cv_func_mbrtowc_sanitycheck=yes
19366 else
19367   gl_cv_func_mbrtowc_sanitycheck=no
19368 fi
19369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19370   conftest.$ac_objext conftest.beam conftest.$ac_ext
19371 fi
19372
19373       fi
19374
19375 fi
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
19377 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
19378
19379     REPLACE_MBSTATE_T=0
19380     case "$gl_cv_func_mbrtowc_incomplete_state" in
19381       *yes) ;;
19382       *) REPLACE_MBSTATE_T=1 ;;
19383     esac
19384     case "$gl_cv_func_mbrtowc_sanitycheck" in
19385       *yes) ;;
19386       *) REPLACE_MBSTATE_T=1 ;;
19387     esac
19388   else
19389     REPLACE_MBSTATE_T=1
19390   fi
19391   if test $REPLACE_MBSTATE_T = 1; then
19392
19393     :
19394
19395   fi
19396
19397
19398
19399   :
19400
19401
19402
19403
19404
19405   if test $ac_cv_func_wcrtomb = no; then
19406     HAVE_WCRTOMB=0
19407   else
19408     if test $REPLACE_MBSTATE_T = 1; then
19409       REPLACE_WCRTOMB=1
19410     else
19411
19412
19413
19414
19415
19416              { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
19417 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
19418 if ${gl_cv_func_wcrtomb_retval+:} false; then :
19419   $as_echo_n "(cached) " >&6
19420 else
19421
19422                               case "$host_os" in
19423                                      # Guess no on AIX 4, OSF/1 and Solaris.
19424             aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
19425                                      # Guess yes otherwise.
19426             *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
19427           esac
19428           if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
19429             if test "$cross_compiling" = yes; then :
19430   :
19431 else
19432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19433 /* end confdefs.h.  */
19434
19435 #include <locale.h>
19436 #include <stdio.h>
19437 #include <string.h>
19438 #include <wchar.h>
19439 int main ()
19440 {
19441   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
19442     {
19443       if (wcrtomb (NULL, 0, NULL) != 1)
19444         return 1;
19445     }
19446   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
19447     {
19448       if (wcrtomb (NULL, 0, NULL) != 1)
19449         return 1;
19450     }
19451   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
19452     {
19453       if (wcrtomb (NULL, 0, NULL) != 1)
19454         return 1;
19455     }
19456   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
19457     {
19458       if (wcrtomb (NULL, 0, NULL) != 1)
19459         return 1;
19460     }
19461   return 0;
19462 }
19463 _ACEOF
19464 if ac_fn_c_try_run "$LINENO"; then :
19465   gl_cv_func_wcrtomb_retval=yes
19466 else
19467   gl_cv_func_wcrtomb_retval=no
19468 fi
19469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19470   conftest.$ac_objext conftest.beam conftest.$ac_ext
19471 fi
19472
19473           fi
19474
19475 fi
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
19477 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
19478       case "$gl_cv_func_wcrtomb_retval" in
19479         *yes) ;;
19480         *) REPLACE_WCRTOMB=1 ;;
19481       esac
19482     fi
19483   fi
19484   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
19485
19486     :
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496   gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
19497
19498
19499   :
19500
19501   fi
19502
19503
19504
19505
19506   GNULIB_WCRTOMB=1
19507
19508
19509
19510 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
19511
19512
19513
19514   # Code from module wctype:
19515
19516
19517
19518
19519   :
19520
19521
19522
19523
19524
19525   if test $ac_cv_func_iswcntrl = yes; then
19526     HAVE_ISWCNTRL=1
19527   else
19528     HAVE_ISWCNTRL=0
19529   fi
19530
19531
19532   :
19533
19534
19535
19536
19537
19538
19539   :
19540
19541
19542
19543
19544
19545   if test $ac_cv_func_iswblank = yes; then
19546     HAVE_ISWBLANK=1
19547     REPLACE_ISWBLANK=0
19548   else
19549     HAVE_ISWBLANK=0
19550     if test $ac_cv_have_decl_iswblank = yes; then
19551       REPLACE_ISWBLANK=1
19552     else
19553       REPLACE_ISWBLANK=0
19554     fi
19555   fi
19556
19557
19558
19559
19560   :
19561
19562
19563
19564
19565
19566
19567
19568
19569   if test $gt_cv_c_wint_t = yes; then
19570     HAVE_WINT_T=1
19571   else
19572     HAVE_WINT_T=0
19573   fi
19574
19575
19576   if test $ac_cv_header_wctype_h = yes; then
19577     if test $ac_cv_func_iswcntrl = yes; then
19578                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
19579 $as_echo_n "checking whether iswcntrl works... " >&6; }
19580 if ${gl_cv_func_iswcntrl_works+:} false; then :
19581   $as_echo_n "(cached) " >&6
19582 else
19583
19584           if test "$cross_compiling" = yes; then :
19585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19586 /* end confdefs.h.  */
19587 #include <stdlib.h>
19588                           #if __GNU_LIBRARY__ == 1
19589                           Linux libc5 i18n is broken.
19590                           #endif
19591 int
19592 main ()
19593 {
19594
19595   ;
19596   return 0;
19597 }
19598 _ACEOF
19599 if ac_fn_c_try_compile "$LINENO"; then :
19600   gl_cv_func_iswcntrl_works=yes
19601 else
19602   gl_cv_func_iswcntrl_works=no
19603 fi
19604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19605
19606 else
19607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19608 /* end confdefs.h.  */
19609
19610                             #include <stddef.h>
19611                             #include <stdio.h>
19612                             #include <time.h>
19613                             #include <wchar.h>
19614                             #include <wctype.h>
19615                             int main () { return iswprint ('x') == 0; }
19616 _ACEOF
19617 if ac_fn_c_try_run "$LINENO"; then :
19618   gl_cv_func_iswcntrl_works=yes
19619 else
19620   gl_cv_func_iswcntrl_works=no
19621 fi
19622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19623   conftest.$ac_objext conftest.beam conftest.$ac_ext
19624 fi
19625
19626
19627 fi
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
19629 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
19630     fi
19631
19632
19633
19634
19635   :
19636
19637
19638
19639
19640
19641
19642
19643      if test $gl_cv_have_include_next = yes; then
19644        gl_cv_next_wctype_h='<'wctype.h'>'
19645      else
19646        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
19647 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
19648 if ${gl_cv_next_wctype_h+:} false; then :
19649   $as_echo_n "(cached) " >&6
19650 else
19651
19652           if test $ac_cv_header_wctype_h = yes; then
19653             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19654 /* end confdefs.h.  */
19655 #include <wctype.h>
19656
19657 _ACEOF
19658                                                                                                 case "$host_os" in
19659               aix*) gl_absname_cpp="$ac_cpp -C" ;;
19660               *)    gl_absname_cpp="$ac_cpp" ;;
19661             esac
19662                                                 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19663                sed -n '\#/wctype.h#{
19664                  s#.*"\(.*/wctype.h\)".*#\1#
19665                  s#^/[^/]#//&#
19666                  p
19667                  q
19668                }'`'"'
19669           else
19670             gl_cv_next_wctype_h='<'wctype.h'>'
19671           fi
19672
19673 fi
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
19675 $as_echo "$gl_cv_next_wctype_h" >&6; }
19676      fi
19677      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
19678
19679      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19680        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19681        gl_next_as_first_directive='<'wctype.h'>'
19682      else
19683        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19684        gl_next_as_first_directive=$gl_cv_next_wctype_h
19685      fi
19686      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
19687
19688
19689
19690     HAVE_WCTYPE_H=1
19691   else
19692     HAVE_WCTYPE_H=0
19693   fi
19694
19695
19696   if test "$gl_cv_func_iswcntrl_works" = no; then
19697     REPLACE_ISWCNTRL=1
19698   else
19699     REPLACE_ISWCNTRL=0
19700   fi
19701
19702
19703   # Code from module write:
19704
19705
19706
19707
19708
19709
19710
19711   GNULIB_WRITE=1
19712
19713
19714
19715 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
19716
19717
19718
19719   # Code from module xsize:
19720
19721
19722
19723   for ac_header in stdint.h
19724 do :
19725   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19726 if test "x$ac_cv_header_stdint_h" = xyes; then :
19727   cat >>confdefs.h <<_ACEOF
19728 #define HAVE_STDINT_H 1
19729 _ACEOF
19730
19731 fi
19732
19733 done
19734
19735
19736   # End of code from modules
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746   gltests_libdeps=
19747   gltests_ltlibdeps=
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757   gl_source_base='tests'
19758   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
19759
19760   gl_module_indicator_condition=$gltests_WITNESS
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774     # support deprecated ./configure flags to set various compiler flags
19775
19776
19777 # Check whether --with-cflags was given.
19778 if test "${with_cflags+set}" = set; then :
19779   withval=$with_cflags;
19780             case "$withval" in
19781             "" | y | ye | yes | n | no)
19782                 as_fn_error $? "*** You must supply an argument to the --with-cflags option." "$LINENO" 5
19783                 ;;
19784             esac
19785
19786             CFLAGS="$withval"
19787
19788 fi
19789
19790
19791
19792 # Check whether --with-includes was given.
19793 if test "${with_includes+set}" = set; then :
19794   withval=$with_includes;
19795             case "$withval" in
19796             "" | y | ye | yes | n | no)
19797                 as_fn_error $? "*** You must supply an argument to the --with-includes option." "$LINENO" 5
19798               ;;
19799             esac
19800
19801             for dir in $withval; do
19802                 if test -d "$dir"; then
19803                     CPPFLAGS="$CPPFLAGS -I$dir"
19804                 else
19805
19806     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Include directory $dir does not exist." >&5
19807 $as_echo "$as_me: WARNING: Include directory $dir does not exist." >&2;}
19808
19809
19810     cat <<AAW_EOF >>config.warnings
19811 Include directory $dir does not exist.
19812 AAW_EOF
19813
19814
19815                 fi
19816             done
19817
19818 fi
19819
19820
19821
19822 # Check whether --with-libraries was given.
19823 if test "${with_libraries+set}" = set; then :
19824   withval=$with_libraries;
19825             case "$withval" in
19826             "" | y | ye | yes | n | no)
19827                 as_fn_error $? "*** You must supply an argument to the --with-libraries option." "$LINENO" 5
19828               ;;
19829             esac
19830
19831             for dir in $withval; do
19832                 if test -d "$dir"; then
19833                     case "$host" in
19834                       *-solaris2*,*-netbsd*)
19835                             LDFLAGS="$LDFLAGS -R$dir"
19836                             ;;
19837                     esac
19838                     LDFLAGS="$LDFLAGS -L$dir"
19839                 else
19840
19841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Library directory $dir does not exist." >&5
19842 $as_echo "$as_me: WARNING: Library directory $dir does not exist." >&2;}
19843
19844
19845     cat <<AAW_EOF >>config.warnings
19846 Library directory $dir does not exist.
19847 AAW_EOF
19848
19849
19850                 fi
19851             done
19852
19853 fi
19854
19855
19856     # Disable strict-aliasing optimizations
19857
19858     # test for -W'feature', then add the 'no-' version.
19859
19860
19861
19862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -fstrict-aliasing" >&5
19863 $as_echo_n "checking for gcc flag -fstrict-aliasing... " >&6; }
19864     if test "x$GCC" = "xyes"; then
19865                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19866            $CC -v --help 2>&1) |
19867          $EGREP -- '[^[:alnum:]]-fstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
19868                 if test $? -eq 0; then
19869             found_warning=yes
19870             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19871 $as_echo "yes" >&6; }
19872         else
19873             found_warning=no
19874             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19875 $as_echo "no" >&6; }
19876         fi
19877     else
19878         found_warning=no
19879         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19880 $as_echo "no (not using gcc)" >&6; }
19881     fi
19882
19883     if test x"$found_warning" = x"yes"; then
19884         CFLAGS="$CFLAGS -fno-strict-aliasing"
19885
19886         CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
19887
19888
19889     else
19890         :
19891     fi
19892
19893
19894
19895     # Warn for just about everything
19896
19897
19898
19899
19900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wall" >&5
19901 $as_echo_n "checking for gcc flag -Wall... " >&6; }
19902     if test "x$GCC" = "xyes"; then
19903                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19904            $CC -v --help 2>&1) |
19905          $EGREP -- '[^[:alnum:]]-Wall[^[:alnum:]-]' 2>&1 > /dev/null
19906                 if test $? -eq 0; then
19907             found_warning=yes
19908             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19909 $as_echo "yes" >&6; }
19910         else
19911             found_warning=no
19912             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19913 $as_echo "no" >&6; }
19914         fi
19915     else
19916         found_warning=no
19917         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19918 $as_echo "no (not using gcc)" >&6; }
19919     fi
19920
19921     if test x"$found_warning" = x"yes"; then
19922         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wall"
19923
19924
19925     else
19926         :
19927     fi
19928
19929
19930
19931     # And add any extra warnings too
19932
19933
19934
19935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wextra" >&5
19936 $as_echo_n "checking for gcc flag -Wextra... " >&6; }
19937     if test "x$GCC" = "xyes"; then
19938                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19939            $CC -v --help 2>&1) |
19940          $EGREP -- '[^[:alnum:]]-Wextra[^[:alnum:]-]' 2>&1 > /dev/null
19941                 if test $? -eq 0; then
19942             found_warning=yes
19943             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19944 $as_echo "yes" >&6; }
19945         else
19946             found_warning=no
19947             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19948 $as_echo "no" >&6; }
19949         fi
19950     else
19951         found_warning=no
19952         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19953 $as_echo "no (not using gcc)" >&6; }
19954     fi
19955
19956     if test x"$found_warning" = x"yes"; then
19957         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wextra"
19958
19959
19960     else
19961
19962
19963
19964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -W" >&5
19965 $as_echo_n "checking for gcc flag -W... " >&6; }
19966     if test "x$GCC" = "xyes"; then
19967                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
19968            $CC -v --help 2>&1) |
19969          $EGREP -- '^[:alnum:]-W^[:alnum:]-' 2>&1 > /dev/null
19970                 if test $? -eq 0; then
19971             found_warning=yes
19972             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19973 $as_echo "yes" >&6; }
19974         else
19975             found_warning=no
19976             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19977 $as_echo "no" >&6; }
19978         fi
19979     else
19980         found_warning=no
19981         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
19982 $as_echo "no (not using gcc)" >&6; }
19983     fi
19984
19985     if test x"$found_warning" = x"yes"; then
19986         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -W"
19987
19988
19989     else
19990         :
19991     fi
19992
19993
19994     fi
19995
19996
19997
19998 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
19999
20000
20001     # Check whether --enable-as-needed was given.
20002 if test "${enable_as_needed+set}" = set; then :
20003   enableval=$enable_as_needed;  WANT_AS_NEEDED=$enableval
20004 else
20005    WANT_AS_NEEDED=no
20006 fi
20007
20008
20009      if test x"$WANT_AS_NEEDED" = x"yes"; then
20010   WANT_AS_NEEDED_TRUE=
20011   WANT_AS_NEEDED_FALSE='#'
20012 else
20013   WANT_AS_NEEDED_TRUE='#'
20014   WANT_AS_NEEDED_FALSE=
20015 fi
20016
20017
20018     if test x"$WANT_AS_NEEDED" = x"yes"; then
20019         AS_NEEDED_FLAGS="-Wl,--as-needed"
20020     else
20021         AS_NEEDED_FLAGS=""
20022     fi
20023
20024
20025
20026
20027 #
20028 # Configuration flags (--with-xxx and --enable-xxx)
20029 #
20030
20031
20032
20033 # Check whether --with-user was given.
20034 if test "${with_user+set}" = set; then :
20035   withval=$with_user;
20036             case "$withval" in
20037                 "" | y | ye | yes | n | no)
20038                     as_fn_error $? "*** You must supply an argument to the --with-user option." "$LINENO" 5
20039                   ;;
20040                 *)
20041                     CLIENT_LOGIN="$withval"
20042                   ;;
20043             esac
20044
20045 else
20046
20047
20048     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no user specified (--with-user) -- using 'amanda'" >&5
20049 $as_echo "$as_me: WARNING: no user specified (--with-user) -- using 'amanda'" >&2;}
20050
20051
20052     cat <<AAW_EOF >>config.warnings
20053 no user specified (--with-user) -- using 'amanda'
20054 AAW_EOF
20055
20056
20057             CLIENT_LOGIN=amanda
20058
20059
20060 fi
20061
20062
20063
20064 cat >>confdefs.h <<_ACEOF
20065 #define CLIENT_LOGIN "$CLIENT_LOGIN"
20066 _ACEOF
20067
20068
20069
20070
20071
20072 # Check whether --with-group was given.
20073 if test "${with_group+set}" = set; then :
20074   withval=$with_group;
20075             case "$withval" in
20076                 "" | y | ye | yes | n | no)
20077                     as_fn_error $? "*** You must supply an argument to the --with-group option." "$LINENO" 5
20078                   ;;
20079                 *) SETUID_GROUP="$withval"
20080                   ;;
20081             esac
20082
20083 else
20084
20085
20086     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no group specified (--with-group) -- using 'backup'" >&5
20087 $as_echo "$as_me: WARNING: no group specified (--with-group) -- using 'backup'" >&2;}
20088
20089
20090     cat <<AAW_EOF >>config.warnings
20091 no group specified (--with-group) -- using 'backup'
20092 AAW_EOF
20093
20094
20095             SETUID_GROUP=backup
20096
20097
20098 fi
20099
20100
20101
20102
20103
20104 # Check whether --with-dumperdir was given.
20105 if test "${with_dumperdir+set}" = set; then :
20106   withval=$with_dumperdir;
20107
20108     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-dumperdir is no longer used." >&5
20109 $as_echo "$as_me: WARNING: --with-dumperdir is no longer used." >&2;}
20110
20111
20112     cat <<AAW_EOF >>config.warnings
20113 --with-dumperdir is no longer used.
20114 AAW_EOF
20115
20116
20117
20118
20119 fi
20120
20121
20122
20123
20124 # Check whether --with-configdir was given.
20125 if test "${with_configdir+set}" = set; then :
20126   withval=$with_configdir;
20127             case "$withval" in
20128             "" | y | ye | yes | n | no)
20129                 as_fn_error $? "*** You must supply an argument to the --with-configdir option." "$LINENO" 5
20130               ;;
20131             *) CONFIG_DIR="$withval"
20132               ;;
20133             esac
20134
20135 else
20136
20137             : ${CONFIG_DIR='${sysconfdir}/amanda'} # (variable will be evaluated below)
20138
20139
20140 fi
20141
20142
20143   prefix_NONE=
20144   exec_prefix_NONE=
20145   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20146   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20147   eval ac_define_dir="\"$CONFIG_DIR\""
20148   eval ac_define_dir="\"$ac_define_dir\""
20149   CONFIG_DIR="$ac_define_dir"
20150
20151
20152 cat >>confdefs.h <<_ACEOF
20153 #define CONFIG_DIR "$ac_define_dir"
20154 _ACEOF
20155
20156   test "$prefix_NONE" && prefix=NONE
20157   test "$exec_prefix_NONE" && exec_prefix=NONE
20158
20159
20160
20161
20162 # Check whether --with-indexdir was given.
20163 if test "${with_indexdir+set}" = set; then :
20164   withval=$with_indexdir;    as_fn_error $? "*** --with-indexdir is deprecated; use indexdir in amanda.conf instead." "$LINENO" 5
20165
20166 fi
20167
20168
20169
20170
20171 # Check whether --with-dbdir was given.
20172 if test "${with_dbdir+set}" = set; then :
20173   withval=$with_dbdir;    as_fn_error $? "*** --with-dbdir is deprecated; use infofile in amanda.conf instead." "$LINENO" 5
20174
20175 fi
20176
20177
20178
20179
20180 # Check whether --with-logdir was given.
20181 if test "${with_logdir+set}" = set; then :
20182   withval=$with_logdir;    as_fn_error $? "*** --with-logdir is deprecated; use logfile in amanda.conf instead." "$LINENO" 5
20183
20184 fi
20185
20186
20187
20188
20189 # Check whether --with-suffixes was given.
20190 if test "${with_suffixes+set}" = set; then :
20191   withval=$with_suffixes;
20192
20193     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** --with-suffixes is deprecated" >&5
20194 $as_echo "$as_me: WARNING: ** --with-suffixes is deprecated" >&2;}
20195
20196
20197     cat <<AAW_EOF >>config.warnings
20198 ** --with-suffixes is deprecated
20199 AAW_EOF
20200
20201
20202
20203 fi
20204
20205
20206
20207
20208 # Check whether --with-gnutar-listdir was given.
20209 if test "${with_gnutar_listdir+set}" = set; then :
20210   withval=$with_gnutar_listdir;
20211             case "$withval" in
20212                 n | no) GNUTAR_LISTDIR= ;;
20213                 y | ye | yes) GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists' ;;
20214                 *) GNUTAR_LISTDIR="$withval" ;;
20215             esac
20216
20217 else
20218
20219             GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists'
20220
20221
20222 fi
20223
20224
20225     # substitute $prefix, etc. if necessary
20226
20227   prefix_NONE=
20228   exec_prefix_NONE=
20229   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20230   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20231   eval ac_define_dir="\"$GNUTAR_LISTDIR\""
20232   eval ac_define_dir="\"$ac_define_dir\""
20233   GNUTAR_LISTED_INCREMENTAL_DIR="$ac_define_dir"
20234
20235
20236 cat >>confdefs.h <<_ACEOF
20237 #define GNUTAR_LISTED_INCREMENTAL_DIR "$ac_define_dir"
20238 _ACEOF
20239
20240   test "$prefix_NONE" && prefix=NONE
20241   test "$exec_prefix_NONE" && exec_prefix=NONE
20242
20243
20244     # handle deprecated option
20245
20246 # Check whether --with-gnutar-listed-incremental was given.
20247 if test "${with_gnutar_listed_incremental+set}" = set; then :
20248   withval=$with_gnutar_listed_incremental;
20249             as_fn_error $? "*** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" "$LINENO" 5
20250
20251
20252 fi
20253
20254
20255
20256
20257 # Check whether --with-tmpdir was given.
20258 if test "${with_tmpdir+set}" = set; then :
20259   withval=$with_tmpdir;
20260             tmpdir="$withval"
20261
20262 else
20263
20264             tmpdir=yes
20265
20266
20267 fi
20268
20269
20270     case "$tmpdir" in
20271         n | no) as_fn_error $? "*** --without-tmpdir is not allowed." "$LINENO" 5;;
20272         y |  ye | yes) AMANDA_TMPDIR="/tmp/amanda";;
20273         *) AMANDA_TMPDIR="$tmpdir";;
20274     esac
20275
20276
20277   prefix_NONE=
20278   exec_prefix_NONE=
20279   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20280   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20281   eval ac_define_dir="\"$AMANDA_TMPDIR\""
20282   eval ac_define_dir="\"$ac_define_dir\""
20283   AMANDA_TMPDIR="$ac_define_dir"
20284
20285
20286 cat >>confdefs.h <<_ACEOF
20287 #define AMANDA_TMPDIR "$ac_define_dir"
20288 _ACEOF
20289
20290   test "$prefix_NONE" && prefix=NONE
20291   test "$exec_prefix_NONE" && exec_prefix=NONE
20292
20293
20294
20295
20296 # Check whether --with-force-uid was given.
20297 if test "${with_force_uid+set}" = set; then :
20298   withval=$with_force_uid; CHECK_USERID="$withval"
20299 else
20300   : ${CHECK_USERID=yes}
20301
20302 fi
20303
20304     case "$CHECK_USERID" in
20305         y | ye | yes)
20306             CHECK_USERID=1
20307
20308 $as_echo "#define CHECK_USERID 1" >>confdefs.h
20309
20310           ;;
20311         n | no) :
20312             CHECK_USERID=
20313           ;;
20314         *)
20315             as_fn_error $? "*** You must not supply an argument to --with-force-uid option." "$LINENO" 5
20316     esac
20317
20318      if test x"$CHECK_USERID" = x"1"; then
20319   CHECK_USERID_TRUE=
20320   CHECK_USERID_FALSE='#'
20321 else
20322   CHECK_USERID_TRUE='#'
20323   CHECK_USERID_FALSE=
20324 fi
20325
20326
20327
20328
20329
20330 # Check whether --with-owner was given.
20331 if test "${with_owner+set}" = set; then :
20332   withval=$with_owner;
20333             case "$withval" in
20334             "" | y | ye | yes | n | no)
20335                 as_fn_error $? "*** You must supply an argument to the --with-owner option." "$LINENO" 5
20336               ;;
20337             *) BINARY_OWNER="$withval"
20338               ;;
20339             esac
20340
20341 else
20342
20343             BINARY_OWNER="$CLIENT_LOGIN"
20344
20345
20346 fi
20347
20348
20349 cat >>confdefs.h <<_ACEOF
20350 #define BINARY_OWNER "$BINARY_OWNER"
20351 _ACEOF
20352
20353
20354
20355
20356
20357 # Check whether --with-fqdn was given.
20358 if test "${with_fqdn+set}" = set; then :
20359   withval=$with_fqdn;  USE_FQDN=$withval
20360 else
20361    USE_FQDN=no
20362 fi
20363
20364
20365     case "$USE_FQDN" in
20366     n | no) : ;;
20367     y |  ye | yes)
20368
20369 $as_echo "#define USE_FQDN 1" >>confdefs.h
20370
20371       ;;
20372     *) as_fn_error $? "You must not supply an argument to --with-fqdn option." "$LINENO" 5
20373       ;;
20374     esac
20375
20376
20377
20378 # Check whether --with-reuseports was given.
20379 if test "${with_reuseports+set}" = set; then :
20380   withval=$with_reuseports;  case "$withval" in
20381             y | ye | yes) USE_REUSEADDR=no;;
20382             n | no) USE_REUSEADDR=yes;;
20383             *) as_fn_error $? "You must not supply an argument to --without-reuseports" "$LINENO" 5;;
20384           esac
20385
20386 else
20387    USE_REUSEADDR=yes;
20388 fi
20389
20390     if test x"$USE_REUSEADDR" = x"yes"; then
20391
20392 $as_echo "#define USE_REUSEADDR 1" >>confdefs.h
20393
20394     fi
20395
20396
20397
20398 # Check whether --with-low-tcpportrange was given.
20399 if test "${with_low_tcpportrange+set}" = set; then :
20400   withval=$with_low_tcpportrange;  LOW_TCPPORTRANGE="$withval"
20401 else
20402    LOW_TCPPORTRANGE=unlimited
20403 fi
20404
20405
20406     if test x"$LOW_TCPPORTRANGE" != x"unlimited"; then
20407         if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20408             as_fn_error $? "--with-low-tcpportrange requires two comma-separated positive numbers" "$LINENO" 5
20409         fi
20410         min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
20411         max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
20412         if test $min_low_tcp_port -gt $max_low_tcp_port; then
20413             as_fn_error $? "the second TCP port number must be greater than the first in --with-low-tcpportrange" "$LINENO" 5
20414         fi
20415         if test $min_low_tcp_port -lt 512; then
20416
20417     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
20418 $as_echo "$as_me: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
20419
20420
20421     cat <<AAW_EOF >>config.warnings
20422 the low TCP port range should be 512 or greater in --with-low-tcpportrange
20423 AAW_EOF
20424
20425
20426         fi
20427         if test $max_low_tcp_port -ge 1024; then
20428
20429     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
20430 $as_echo "$as_me: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
20431
20432
20433     cat <<AAW_EOF >>config.warnings
20434 the low TCP port range should be less than 1024 in --with-low-tcpportrange
20435 AAW_EOF
20436
20437
20438         fi
20439
20440 cat >>confdefs.h <<_ACEOF
20441 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
20442 _ACEOF
20443
20444     fi
20445
20446
20447 # Check whether --with-tcpportrange was given.
20448 if test "${with_tcpportrange+set}" = set; then :
20449   withval=$with_tcpportrange;  TCPPORTRANGE="$withval"
20450 else
20451    TCPPORTRANGE="unlimited"
20452 fi
20453
20454
20455     if test x"$TCPPORTRANGE" != x"unlimited"; then
20456         if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20457             as_fn_error $? "--with-tcpportrange requires two comma-separated positive numbers" "$LINENO" 5
20458         fi
20459         min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
20460         max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
20461         if test $min_tcp_port -gt $max_tcp_port; then
20462             as_fn_error $? "the second TCP port number must be greater than the first in --with-tcpportrange" "$LINENO" 5
20463         fi
20464         if test $min_tcp_port -lt 1024; then
20465
20466     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
20467 $as_echo "$as_me: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
20468
20469
20470     cat <<AAW_EOF >>config.warnings
20471 the TCP port range should be 1024 or greater in --with-tcpportrange
20472 AAW_EOF
20473
20474
20475         fi
20476         if test $max_tcp_port -ge 65536; then
20477
20478     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&5
20479 $as_echo "$as_me: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
20480
20481
20482     cat <<AAW_EOF >>config.warnings
20483 the TCP port range should be less than 65536 in --with-tcpportrange
20484 AAW_EOF
20485
20486
20487         fi
20488
20489 cat >>confdefs.h <<_ACEOF
20490 #define TCPPORTRANGE $TCPPORTRANGE
20491 _ACEOF
20492
20493     fi
20494
20495
20496 # Check whether --with-udpportrange was given.
20497 if test "${with_udpportrange+set}" = set; then :
20498   withval=$with_udpportrange;  UDPPORTRANGE="$withval"
20499 else
20500    UDPPORTRANGE="unlimited"
20501 fi
20502
20503     if test x"$UDPPORTRANGE" != x"unlimited"; then
20504         if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
20505             as_fn_error $? "--with-udpportrange requires two comma-separated positive numbers" "$LINENO" 5
20506         fi
20507         min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
20508         max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
20509         if test $min_udp_port -gt $max_udp_port; then
20510             as_fn_error $? "the second UDP port number must be greater than the first in --with-udpportrange" "$LINENO" 5
20511         fi
20512         if test $max_udp_port -ge 1024; then
20513
20514     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&5
20515 $as_echo "$as_me: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&2;}
20516
20517
20518     cat <<AAW_EOF >>config.warnings
20519 the UDP port range should be less than 1025 in --with-udpportrange
20520 AAW_EOF
20521
20522
20523         fi
20524         if test $min_udp_port -le 0; then
20525
20526     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&5
20527 $as_echo "$as_me: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
20528
20529
20530     cat <<AAW_EOF >>config.warnings
20531 the UDP port range should be greater than 0 in --with-udpportrange
20532 AAW_EOF
20533
20534
20535         fi
20536
20537 cat >>confdefs.h <<_ACEOF
20538 #define UDPPORTRANGE $UDPPORTRANGE
20539 _ACEOF
20540
20541     fi
20542
20543
20544
20545
20546
20547
20548 # Check whether --with-buffered-dump was given.
20549 if test "${with_buffered_dump+set}" = set; then :
20550   withval=$with_buffered_dump;  DUMPER_SOCKET_BUFFERING=$withval
20551 else
20552    DUMPER_SOCKET_BUFFERING=no
20553 fi
20554
20555     case "$DUMPER_SOCKET_BUFFERING" in
20556     n | no) ;;
20557     y | ye | yes)
20558
20559 $as_echo "#define DUMPER_SOCKET_BUFFERING 1" >>confdefs.h
20560
20561       ;;
20562     *) as_fn_error $? "You must not supply an argument to --with-buffered-dump." "$LINENO" 5 ;;
20563     esac
20564
20565
20566
20567 # Check whether --with-maxtapeblocksize was given.
20568 if test "${with_maxtapeblocksize+set}" = set; then :
20569   withval=$with_maxtapeblocksize;
20570     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-maxtapeblocksize is no longer needed" >&5
20571 $as_echo "$as_me: WARNING: --with-maxtapeblocksize is no longer needed" >&2;}
20572
20573
20574     cat <<AAW_EOF >>config.warnings
20575 --with-maxtapeblocksize is no longer needed
20576 AAW_EOF
20577
20578
20579
20580 fi
20581
20582
20583
20584     ASSERTIONS=
20585
20586 # Check whether --with-assertions was given.
20587 if test "${with_assertions+set}" = set; then :
20588   withval=$with_assertions;
20589             case "$withval" in
20590                 n | no) : ;;
20591                 y |  ye | yes)
20592                     ASSERTIONS=1
20593
20594 $as_echo "#define ASSERTIONS 1" >>confdefs.h
20595
20596                   ;;
20597                 *) as_fn_error $? "*** You must not supply an argument to --with-assertions option." "$LINENO" 5
20598                   ;;
20599             esac
20600
20601
20602 fi
20603
20604
20605
20606
20607
20608
20609 # Check whether --with-debugging was given.
20610 if test "${with_debugging+set}" = set; then :
20611   withval=$with_debugging;  debugging="$withval"
20612 else
20613    debugging="yes"
20614
20615 fi
20616
20617
20618     case "$debugging" in
20619         n | no) as_fn_error $? "Amanda no longer supports building with debugging disabled" "$LINENO" 5;;
20620         y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
20621         *) AMANDA_DBGDIR="$debugging";;
20622     esac
20623
20624     # evaluate any extra variables in the directory
20625
20626   prefix_NONE=
20627   exec_prefix_NONE=
20628   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20629   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20630   eval ac_define_dir="\"$AMANDA_DBGDIR\""
20631   eval ac_define_dir="\"$ac_define_dir\""
20632   AMANDA_DBGDIR="$ac_define_dir"
20633
20634
20635 cat >>confdefs.h <<_ACEOF
20636 #define AMANDA_DBGDIR "$ac_define_dir"
20637 _ACEOF
20638
20639   test "$prefix_NONE" && prefix=NONE
20640   test "$exec_prefix_NONE" && exec_prefix=NONE
20641
20642
20643
20644
20645 # Check whether --with-debug_days was given.
20646 if test "${with_debug_days+set}" = set; then :
20647   withval=$with_debug_days;
20648             debug_days="$withval"
20649
20650 else
20651
20652             debug_days="yes"
20653
20654
20655 fi
20656
20657     case "$debug_days" in
20658         n | no)
20659             AMANDA_DEBUG_DAYS=0 ;;
20660         y |  ye | yes)
20661             AMANDA_DEBUG_DAYS=4 ;;
20662         [0-9] | [0-9][0-9] | [0-9][0-9][0-9])
20663             AMANDA_DEBUG_DAYS="$debug_days" ;;
20664         *) as_fn_error $? "*** --with-debug-days value not numeric or out of range." "$LINENO" 5
20665           ;;
20666     esac
20667
20668 cat >>confdefs.h <<_ACEOF
20669 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
20670 _ACEOF
20671
20672
20673
20674
20675
20676 # Check whether --with-testing was given.
20677 if test "${with_testing+set}" = set; then :
20678   withval=$with_testing;
20679             TESTING="$withval"
20680
20681 else
20682
20683             TESTING="no"
20684
20685
20686 fi
20687
20688     case "$TESTING" in
20689         n | no) SERVICE_SUFFIX="";;
20690         y |  ye | yes) SERVICE_SUFFIX="-test";;
20691         *) SERVICE_SUFFIX="-$TESTING";;
20692     esac
20693
20694     AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
20695     KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
20696
20697
20698
20699 cat >>confdefs.h <<_ACEOF
20700 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
20701 _ACEOF
20702
20703
20704 cat >>confdefs.h <<_ACEOF
20705 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
20706 _ACEOF
20707
20708
20709 cat >>confdefs.h <<_ACEOF
20710 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
20711 _ACEOF
20712
20713
20714
20715     SINGLE_USERID=${SINGLE_USERID:-no}
20716     WANT_SETUID_CLIENT=${WANT_SETUID_CLIENT:-true}
20717
20718
20719 # Check whether --with-single-userid was given.
20720 if test "${with_single_userid+set}" = set; then :
20721   withval=$with_single_userid;    SINGLE_USERID=$withval
20722 fi
20723
20724
20725     case "$host" in
20726         *-pc-cygwin)
20727             WANT_SETUID_CLIENT=false
20728             SINGLE_USERID=yes
20729             ;;
20730     esac
20731
20732     if test x"$WANT_SETUID_CLIENT" = x"true"; then
20733
20734 $as_echo "#define WANT_SETUID_CLIENT 1" >>confdefs.h
20735
20736     fi
20737      if test x"$WANT_SETUID_CLIENT" = x"true"; then
20738   WANT_SETUID_CLIENT_TRUE=
20739   WANT_SETUID_CLIENT_FALSE='#'
20740 else
20741   WANT_SETUID_CLIENT_TRUE='#'
20742   WANT_SETUID_CLIENT_FALSE=
20743 fi
20744
20745
20746     if test x"$SINGLE_USERID" = x"yes"; then
20747
20748 $as_echo "#define SINGLE_USERID 1" >>confdefs.h
20749
20750     fi
20751
20752
20753     WANT_INSTALLPERMS=yes
20754     # Check whether --enable-installperms was given.
20755 if test "${enable_installperms+set}" = set; then :
20756   enableval=$enable_installperms;  WANT_INSTALLPERMS="$enableval"
20757 else
20758    WANT_INSTALLPERMS="yes"
20759
20760 fi
20761
20762      if test x"$WANT_INSTALLPERMS" = x"yes"; then
20763   WANT_INSTALLPERMS_TRUE=
20764   WANT_INSTALLPERMS_FALSE='#'
20765 else
20766   WANT_INSTALLPERMS_TRUE='#'
20767   WANT_INSTALLPERMS_FALSE=
20768 fi
20769
20770
20771
20772     # Check whether --enable-syntax-checks was given.
20773 if test "${enable_syntax_checks+set}" = set; then :
20774   enableval=$enable_syntax_checks;
20775             case "$enableval" in
20776                 no) SYNTAX_CHECKS=false;;
20777                 *)
20778                     SYNTAX_CHECKS=true
20779
20780     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&5
20781 $as_echo "$as_me: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&2;}
20782
20783
20784     cat <<AAW_EOF >>config.warnings
20785 --enable-syntax-checks can cause build failures and should only be used by developers
20786 AAW_EOF
20787
20788
20789                     ;;
20790             esac
20791
20792 else
20793
20794             SYNTAX_CHECKS=false
20795
20796 fi
20797
20798
20799      if $SYNTAX_CHECKS; then
20800   SYNTAX_CHECKS_TRUE=
20801   SYNTAX_CHECKS_FALSE='#'
20802 else
20803   SYNTAX_CHECKS_TRUE='#'
20804   SYNTAX_CHECKS_FALSE=
20805 fi
20806
20807
20808
20809
20810 #
20811 # Set up for Amanda components and modules
20812 #
20813
20814     WANT_SERVER=true
20815
20816 # Check whether --with-server was given.
20817 if test "${with_server+set}" = set; then :
20818   withval=$with_server;
20819             case "$withval" in
20820             y | ye | yes) WANT_SERVER=true;;
20821             n | no) WANT_SERVER=false;;
20822             *) as_fn_error $? "You must not supply an argument to the --without-server option." "$LINENO" 5 ;;
20823             esac
20824
20825 fi
20826
20827
20828
20829     WANT_CLIENT=true
20830
20831 # Check whether --with-client was given.
20832 if test "${with_client+set}" = set; then :
20833   withval=$with_client;
20834             case "$withval" in
20835             y | ye | yes) WANT_CLIENT=true;;
20836             n | no) WANT_CLIENT=false;;
20837             *) as_fn_error $? "You must not supply an argument to the --without-client option." "$LINENO" 5 ;;
20838             esac
20839
20840 fi
20841
20842
20843
20844
20845     WANT_RESTORE=${WANT_SERVER-true}
20846
20847 # Check whether --with-restore was given.
20848 if test "${with_restore+set}" = set; then :
20849   withval=$with_restore;
20850             case "$withval" in
20851             y | ye | yes) WANT_RESTORE=true;;
20852             n | no) WANT_RESTORE=false;;
20853             *) as_fn_error $? "You must not supply an argument to --with-restore option." "$LINENO" 5 ;;
20854             esac
20855
20856 fi
20857
20858
20859
20860
20861     WANT_RECOVER=${WANT_CLIENT-true}
20862
20863 # Check whether --with-amrecover was given.
20864 if test "${with_amrecover+set}" = set; then :
20865   withval=$with_amrecover;
20866             case "$withval" in
20867             y | ye | yes) WANT_RECOVER=true;;
20868             n | no) WANT_RECOVER=false;;
20869             *) as_fn_error $? "You must not supply an argument to --with-amrecover option." "$LINENO" 5 ;;
20870             esac
20871
20872 fi
20873
20874
20875
20876
20877 # Check whether --with-client-only was given.
20878 if test "${with_client_only+set}" = set; then :
20879   withval=$with_client_only;    as_fn_error $? "--with-client-only is deprecated, use --without-server instead." "$LINENO" 5
20880
20881 fi
20882
20883
20884
20885
20886 # Check whether --with-server-only was given.
20887 if test "${with_server_only+set}" = set; then :
20888   withval=$with_server_only;    as_fn_error $? "--with-server-only is deprecated, use --without-client instead." "$LINENO" 5
20889
20890 fi
20891
20892
20893
20894     WANT_NDMP=${WANT_NDMP-true}
20895
20896 # Check whether --with-ndmp was given.
20897 if test "${with_ndmp+set}" = set; then :
20898   withval=$with_ndmp;
20899             case "$withval" in
20900             y | ye | yes) WANT_NDMP=true;;
20901             n | no) WANT_NDMP=false;;
20902             *) as_fn_error $? "You must not supply an argument to --with-ndmp option." "$LINENO" 5 ;;
20903             esac
20904
20905 fi
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915     # detect invalid combinations of components
20916     if ! ${WANT_SERVER-true} && ${WANT_RESTORE-true}; then
20917         as_fn_error $? "--without-server requires --without-restore" "$LINENO" 5
20918     fi
20919     if ! ${WANT_CLIENT-true} && ${WANT_RECOVER-true}; then
20920         as_fn_error $? "--without-client requires --without-amrecover" "$LINENO" 5
20921     fi
20922
20923      if $WANT_CLIENT; then
20924   WANT_CLIENT_TRUE=
20925   WANT_CLIENT_FALSE='#'
20926 else
20927   WANT_CLIENT_TRUE='#'
20928   WANT_CLIENT_FALSE=
20929 fi
20930
20931      if $WANT_RESTORE; then
20932   WANT_RESTORE_TRUE=
20933   WANT_RESTORE_FALSE='#'
20934 else
20935   WANT_RESTORE_TRUE='#'
20936   WANT_RESTORE_FALSE=
20937 fi
20938
20939      if $WANT_SERVER; then
20940   WANT_SERVER_TRUE=
20941   WANT_SERVER_FALSE='#'
20942 else
20943   WANT_SERVER_TRUE='#'
20944   WANT_SERVER_FALSE=
20945 fi
20946
20947      if $WANT_RECOVER; then
20948   WANT_RECOVER_TRUE=
20949   WANT_RECOVER_FALSE='#'
20950 else
20951   WANT_RECOVER_TRUE='#'
20952   WANT_RECOVER_FALSE=
20953 fi
20954
20955      if $WANT_NDMP; then
20956   WANT_NDMP_TRUE=
20957   WANT_NDMP_FALSE='#'
20958 else
20959   WANT_NDMP_TRUE='#'
20960   WANT_NDMP_FALSE=
20961 fi
20962
20963
20964      if $WANT_SERVER || $WANT_RESTORE; then
20965   WANT_TAPE_TRUE=
20966   WANT_TAPE_FALSE='#'
20967 else
20968   WANT_TAPE_TRUE='#'
20969   WANT_TAPE_FALSE=
20970 fi
20971
20972
20973     # AMANDA_COMPONENTS goes to Amanda::Constants; missing_components is just for the
20974     # summary, below
20975     AMANDA_COMPONENTS=''
20976     missing_components=''
20977
20978     if $WANT_SERVER; then
20979         AMANDA_COMPONENTS="$AMANDA_COMPONENTS server";
20980     else
20981         missing_components="$missing_components (no server)";
20982     fi
20983     if $WANT_RESTORE; then
20984         AMANDA_COMPONENTS="$AMANDA_COMPONENTS restore";
20985     else
20986         missing_components="$missing_components (no restore)";
20987     fi
20988     if $WANT_CLIENT; then
20989         AMANDA_COMPONENTS="$AMANDA_COMPONENTS client";
20990     else
20991         missing_components="$missing_components (no client)";
20992     fi
20993     if $WANT_RECOVER; then
20994         AMANDA_COMPONENTS="$AMANDA_COMPONENTS amrecover";
20995     else
20996         missing_components="$missing_components (no amrecover)";
20997     fi
20998     if $WANT_NDMP; then
20999         AMANDA_COMPONENTS="$AMANDA_COMPONENTS ndmp";
21000     else
21001         missing_components="$missing_components (no ndmp)";
21002     fi
21003
21004
21005
21006
21007
21008
21009
21010 # Check whether --with-gnuplot was given.
21011 if test "${with_gnuplot+set}" = set; then :
21012   withval=$with_gnuplot;
21013             case "$withval" in
21014                 y | ye | yes) : ;;
21015                 n | no) GNUPLOT=no ;;
21016                 *) GNUPLOT="$withval" ;;
21017             esac
21018
21019 fi
21020
21021     if test "x$GNUPLOT" = "xno"; then
21022         GNUPLOT=
21023     else
21024         # Extract the first word of "gnuplot", so it can be a program name with args.
21025 set dummy gnuplot; ac_word=$2
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21027 $as_echo_n "checking for $ac_word... " >&6; }
21028 if ${ac_cv_path_GNUPLOT+:} false; then :
21029   $as_echo_n "(cached) " >&6
21030 else
21031   case $GNUPLOT in
21032   [\\/]* | ?:[\\/]*)
21033   ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
21034   ;;
21035   *)
21036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21037 for as_dir in $LOCSYSPATH
21038 do
21039   IFS=$as_save_IFS
21040   test -z "$as_dir" && as_dir=.
21041     for ac_exec_ext in '' $ac_executable_extensions; do
21042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21043     ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
21044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21045     break 2
21046   fi
21047 done
21048   done
21049 IFS=$as_save_IFS
21050
21051   ;;
21052 esac
21053 fi
21054 GNUPLOT=$ac_cv_path_GNUPLOT
21055 if test -n "$GNUPLOT"; then
21056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT" >&5
21057 $as_echo "$GNUPLOT" >&6; }
21058 else
21059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21060 $as_echo "no" >&6; }
21061 fi
21062
21063
21064     fi
21065
21066
21067
21068
21069
21070
21071     # Extract the first word of "pcat", so it can be a program name with args.
21072 set dummy pcat; ac_word=$2
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21074 $as_echo_n "checking for $ac_word... " >&6; }
21075 if ${ac_cv_path_PCAT+:} false; then :
21076   $as_echo_n "(cached) " >&6
21077 else
21078   case $PCAT in
21079   [\\/]* | ?:[\\/]*)
21080   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
21081   ;;
21082   *)
21083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21084 for as_dir in $LOCSYSPATH
21085 do
21086   IFS=$as_save_IFS
21087   test -z "$as_dir" && as_dir=.
21088     for ac_exec_ext in '' $ac_executable_extensions; do
21089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21090     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
21091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21092     break 2
21093   fi
21094 done
21095   done
21096 IFS=$as_save_IFS
21097
21098   ;;
21099 esac
21100 fi
21101 PCAT=$ac_cv_path_PCAT
21102 if test -n "$PCAT"; then
21103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAT" >&5
21104 $as_echo "$PCAT" >&6; }
21105 else
21106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21107 $as_echo "no" >&6; }
21108 fi
21109
21110
21111
21112
21113
21114     # Extract the first word of "compress", so it can be a program name with args.
21115 set dummy compress; ac_word=$2
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21117 $as_echo_n "checking for $ac_word... " >&6; }
21118 if ${ac_cv_path_COMPRESS+:} false; then :
21119   $as_echo_n "(cached) " >&6
21120 else
21121   case $COMPRESS in
21122   [\\/]* | ?:[\\/]*)
21123   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
21124   ;;
21125   *)
21126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21127 for as_dir in $LOCSYSPATH
21128 do
21129   IFS=$as_save_IFS
21130   test -z "$as_dir" && as_dir=.
21131     for ac_exec_ext in '' $ac_executable_extensions; do
21132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21133     ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
21134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21135     break 2
21136   fi
21137 done
21138   done
21139 IFS=$as_save_IFS
21140
21141   ;;
21142 esac
21143 fi
21144 COMPRESS=$ac_cv_path_COMPRESS
21145 if test -n "$COMPRESS"; then
21146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPRESS" >&5
21147 $as_echo "$COMPRESS" >&6; }
21148 else
21149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21150 $as_echo "no" >&6; }
21151 fi
21152
21153
21154
21155
21156
21157     # Extract the first word of "gzip", so it can be a program name with args.
21158 set dummy gzip; ac_word=$2
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21160 $as_echo_n "checking for $ac_word... " >&6; }
21161 if ${ac_cv_path_GZIP+:} false; then :
21162   $as_echo_n "(cached) " >&6
21163 else
21164   case $GZIP in
21165   [\\/]* | ?:[\\/]*)
21166   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
21167   ;;
21168   *)
21169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21170 for as_dir in $LOCSYSPATH
21171 do
21172   IFS=$as_save_IFS
21173   test -z "$as_dir" && as_dir=.
21174     for ac_exec_ext in '' $ac_executable_extensions; do
21175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21176     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
21177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21178     break 2
21179   fi
21180 done
21181   done
21182 IFS=$as_save_IFS
21183
21184   ;;
21185 esac
21186 fi
21187 GZIP=$ac_cv_path_GZIP
21188 if test -n "$GZIP"; then
21189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
21190 $as_echo "$GZIP" >&6; }
21191 else
21192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21193 $as_echo "no" >&6; }
21194 fi
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205     if test "x$GNUPLOT" != "x"; then
21206         WANT_AMPLOT=true
21207
21208         # variable substitutions for amcat.awk
21209         if test "$PCAT"; then
21210             AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
21211         else
21212             AMPLOT_CAT_PACK=
21213         fi
21214         if test "$COMPRESS"; then
21215             AMPLOT_COMPRESS=$COMPRESS
21216             AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
21217         else
21218             AMPLOT_CAT_COMPRESS=
21219         fi
21220         if test "$GZIP"; then
21221             AMPLOT_COMPRESS=$GZIP
21222             AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
21223         else
21224             AMPLOT_CAT_GZIP=
21225         fi
21226
21227
21228
21229
21230
21231     else
21232         WANT_AMPLOT=false
21233
21234     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not building 'amplot', because gnuplot was not found" >&5
21235 $as_echo "$as_me: WARNING: Not building 'amplot', because gnuplot was not found" >&2;}
21236
21237
21238     cat <<AAW_EOF >>config.warnings
21239 Not building 'amplot', because gnuplot was not found
21240 AAW_EOF
21241
21242
21243     fi
21244
21245      if test x"$WANT_AMPLOT" = x"true"; then
21246   WANT_AMPLOT_TRUE=
21247   WANT_AMPLOT_FALSE='#'
21248 else
21249   WANT_AMPLOT_TRUE='#'
21250   WANT_AMPLOT_FALSE=
21251 fi
21252
21253
21254
21255     # Check whether --enable-manpage-build was given.
21256 if test "${enable_manpage_build+set}" = set; then :
21257   enableval=$enable_manpage_build;  ENABLE_MANPAGE_BUILD=$enableval
21258 else
21259    ENABLE_MANPAGE_BUILD=no
21260 fi
21261
21262
21263     # and ensure that everything docbook-related is OK if we'll be using it
21264     if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
21265         DOC_BUILD_DATE=`date '+%d-%m-%Y'`
21266
21267
21268 XSLTPROC_FLAGS="--nonet"
21269
21270
21271 # The (lack of) whitespace and overquoting here are all necessary for
21272 # proper formatting.
21273
21274 # Check whether --with-xsltproc was given.
21275 if test "${with_xsltproc+set}" = set; then :
21276   withval=$with_xsltproc;  ac_with_xsltproc=$withval;
21277 else
21278    ac_with_xsltproc=maybe;
21279 fi
21280
21281
21282
21283 # Check whether --with-xsltproc-flags was given.
21284 if test "${with_xsltproc_flags+set}" = set; then :
21285   withval=$with_xsltproc_flags;  if test "x$withval" == "xno"; then
21286         XSLTPROC_FLAGS=''
21287     else
21288         if test "x$withval" != "xyes"; then
21289             XSLTPROC_FLAGS="$withval"
21290         fi
21291     fi
21292
21293 fi
21294
21295
21296 # search for xsltproc if it wasn't specified
21297 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
21298     for ac_prog in xsltproc
21299 do
21300   # Extract the first word of "$ac_prog", so it can be a program name with args.
21301 set dummy $ac_prog; ac_word=$2
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21303 $as_echo_n "checking for $ac_word... " >&6; }
21304 if ${ac_cv_path_XSLTPROC+:} false; then :
21305   $as_echo_n "(cached) " >&6
21306 else
21307   case $XSLTPROC in
21308   [\\/]* | ?:[\\/]*)
21309   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
21310   ;;
21311   *)
21312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21313 for as_dir in $LOCSYSPATH
21314 do
21315   IFS=$as_save_IFS
21316   test -z "$as_dir" && as_dir=.
21317     for ac_exec_ext in '' $ac_executable_extensions; do
21318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21319     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
21320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21321     break 2
21322   fi
21323 done
21324   done
21325 IFS=$as_save_IFS
21326
21327   ;;
21328 esac
21329 fi
21330 XSLTPROC=$ac_cv_path_XSLTPROC
21331 if test -n "$XSLTPROC"; then
21332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
21333 $as_echo "$XSLTPROC" >&6; }
21334 else
21335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21336 $as_echo "no" >&6; }
21337 fi
21338
21339
21340   test -n "$XSLTPROC" && break
21341 done
21342
21343 else
21344     if test "$ac_with_xsltproc" != "no"; then
21345         if test -x "$ac_with_xsltproc"; then
21346             XSLTPROC="$ac_with_xsltproc";
21347         else
21348
21349     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&5
21350 $as_echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&2;}
21351
21352
21353     cat <<AAW_EOF >>config.warnings
21354 Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative.
21355 AAW_EOF
21356
21357
21358             for ac_prog in xsltproc
21359 do
21360   # Extract the first word of "$ac_prog", so it can be a program name with args.
21361 set dummy $ac_prog; ac_word=$2
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21363 $as_echo_n "checking for $ac_word... " >&6; }
21364 if ${ac_cv_path_XSLTPROC+:} false; then :
21365   $as_echo_n "(cached) " >&6
21366 else
21367   case $XSLTPROC in
21368   [\\/]* | ?:[\\/]*)
21369   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
21370   ;;
21371   *)
21372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21373 for as_dir in $LOCSYSPATH
21374 do
21375   IFS=$as_save_IFS
21376   test -z "$as_dir" && as_dir=.
21377     for ac_exec_ext in '' $ac_executable_extensions; do
21378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21379     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
21380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21381     break 2
21382   fi
21383 done
21384   done
21385 IFS=$as_save_IFS
21386
21387   ;;
21388 esac
21389 fi
21390 XSLTPROC=$ac_cv_path_XSLTPROC
21391 if test -n "$XSLTPROC"; then
21392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
21393 $as_echo "$XSLTPROC" >&6; }
21394 else
21395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21396 $as_echo "no" >&6; }
21397 fi
21398
21399
21400   test -n "$XSLTPROC" && break
21401 done
21402
21403         fi
21404     fi
21405 fi
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook XSLT version 1.72.0" >&5
21417 $as_echo_n "checking for Docbook XSLT version 1.72.0... " >&6; }
21418 if ${ac_cv_docbook_xslt_1_72_0+:} false; then :
21419   $as_echo_n "(cached) " >&6
21420 else
21421
21422         ac_cv_docbook_xslt_1_72_0=no
21423         if test -n "$XSLTPROC"; then
21424             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
21425             $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&5
21426
21427             if test "$?" = 0; then
21428                 ac_cv_docbook_xslt_1_72_0=yes
21429             fi
21430         fi
21431
21432 fi
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_xslt_1_72_0" >&5
21434 $as_echo "$ac_cv_docbook_xslt_1_72_0" >&6; }
21435
21436     HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
21437     HAVE_DOCBOOK_XSLT="$HAVE_DOCBOOK_XSLT_1_72_0"
21438
21439
21440
21441
21442
21443
21444
21445
21446     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current Docbook XSLT version" >&5
21447 $as_echo_n "checking for current Docbook XSLT version... " >&6; }
21448 if ${ac_cv_docbook_xslt_current_version+:} false; then :
21449   $as_echo_n "(cached) " >&6
21450 else
21451
21452         ac_cv_docbook_xslt_current_version=no
21453
21454         if test -n "$XSLTPROC"; then
21455             cat >conftest.xsl <<EOF
21456                 <xsl:stylesheet
21457                     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
21458                     xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
21459                     version="1.0">
21460                     <xsl:output method="text"/>
21461                     <xsl:template match="fm:project/fm:Version">
21462                         <xsl:value-of select="." />
21463                     </xsl:template>
21464                     <!-- do nothing with any other text -->
21465                     <xsl:template match="text()"/>
21466                 </xsl:stylesheet>
21467 EOF
21468             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/VERSION' with input:" >&5
21469             echo "====" >&5
21470             cat conftest.xsl >&5
21471             echo "====" >&5
21472
21473             ac_cv_docbook_xslt_current_version=`$XSLTPROC $XSLTPROC_FLAGS conftest.xsl http://docbook.sourceforge.net/release/xsl/current/VERSION 2>&5`
21474
21475             if test "$?" != 0; then
21476                 ac_cv_docbook_xslt_current_version='no'
21477             fi
21478
21479             rm conftest.xsl
21480         fi
21481
21482 fi
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_xslt_current_version" >&5
21484 $as_echo "$ac_cv_docbook_xslt_current_version" >&6; }
21485
21486     DOCBOOK_XSLT_CURRENT_VERSION="$ac_cv_docbook_xslt_current_version"
21487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Docbook XSLT version is 1.72.0 or newer" >&5
21488 $as_echo_n "checking whether Docbook XSLT version is 1.72.0 or newer... " >&6; }
21489
21490     if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
21491         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21492 $as_echo "no" >&6; }
21493     else
21494
21495   # Used to indicate true or false condition
21496   ax_compare_version=false
21497
21498   # Convert the two version strings to be compared into a format that
21499   # allows a simple string comparison.  The end result is that a version
21500   # string of the form 1.12.5-r617 will be converted to the form
21501   # 0001001200050617.  In other words, each number is zero padded to four
21502   # digits, and non digits are removed.
21503
21504   ax_compare_version_A=`echo "$DOCBOOK_XSLT_CURRENT_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21505                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21506                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21507                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21508                      -e 's/[^0-9]//g'`
21509
21510
21511   ax_compare_version_B=`echo "1.72.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
21512                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
21513                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
21514                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
21515                      -e 's/[^0-9]//g'`
21516
21517
21518     ax_compare_version=`echo "x$ax_compare_version_A
21519 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"`
21520
21521
21522
21523     if test "$ax_compare_version" = "true" ; then
21524
21525             # version is less than required, so mark it as "no"
21526             DOCBOOK_XSLT_CURRENT_VERSION=no
21527
21528       fi
21529
21530
21531         if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
21532             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21533 $as_echo "no" >&6; }
21534         else
21535             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&5
21536 $as_echo "yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&6; }
21537         fi
21538     fi
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook DTD version 4.1.2" >&5
21550 $as_echo_n "checking for Docbook DTD version 4.1.2... " >&6; }
21551 if ${ac_cv_docbook_dtd_4_1_2+:} false; then :
21552   $as_echo_n "(cached) " >&6
21553 else
21554
21555         ac_cv_docbook_dtd_4_1_2=no
21556         if test -n "$XSLTPROC"; then
21557             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
21558             cat <<EOF >conftest.xml
21559 <?xml version="1.0" encoding='ISO-8859-1'?>
21560 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
21561 <book id="empty">
21562 </book>
21563 EOF
21564             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21565             echo "conftest.xml:" >&5
21566             echo "====" >&5
21567             cat conftest.xml >&5
21568             echo "====" >&5
21569
21570             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21571             if test "$?" = 0 -o "$?" = 5; then
21572                 # failing to load the DTD is just a warning, so check for it in the output.
21573                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21574                     : # no good..
21575                 else
21576                     ac_cv_docbook_dtd_4_1_2=yes
21577                 fi
21578             fi
21579             cat conftest.out >&5
21580
21581             rm -f conftest.xml conftest.out
21582         fi
21583
21584 fi
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_dtd_4_1_2" >&5
21586 $as_echo "$ac_cv_docbook_dtd_4_1_2" >&6; }
21587
21588     HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
21589     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_1_2"
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Docbook DTD version 4.2" >&5
21605 $as_echo_n "checking for Docbook DTD version 4.2... " >&6; }
21606 if ${ac_cv_docbook_dtd_4_2+:} false; then :
21607   $as_echo_n "(cached) " >&6
21608 else
21609
21610         ac_cv_docbook_dtd_4_2=no
21611         if test -n "$XSLTPROC"; then
21612             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
21613             cat <<EOF >conftest.xml
21614 <?xml version="1.0" encoding='ISO-8859-1'?>
21615 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
21616 <book id="empty">
21617 </book>
21618 EOF
21619             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
21620             echo "conftest.xml:" >&5
21621             echo "====" >&5
21622             cat conftest.xml >&5
21623             echo "====" >&5
21624
21625             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
21626             if test "$?" = 0 -o "$?" = 5; then
21627                 # failing to load the DTD is just a warning, so check for it in the output.
21628                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
21629                     : # no good..
21630                 else
21631                     ac_cv_docbook_dtd_4_2=yes
21632                 fi
21633             fi
21634             cat conftest.out >&5
21635
21636             rm -f conftest.xml conftest.out
21637         fi
21638
21639 fi
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_docbook_dtd_4_2" >&5
21641 $as_echo "$ac_cv_docbook_dtd_4_2" >&6; }
21642
21643     HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
21644     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_2"
21645
21646
21647
21648
21649
21650
21651         if test -z "$XSLTPROC"; then
21652             as_fn_error $? "Cannot build manpages: 'xsltproc' was not found." "$LINENO" 5
21653         fi
21654
21655         # if the 'current' Docbook revision is good enough, use that; otherwise,
21656         # if 1.72.0 is available, use that.
21657         XSLREL=current
21658         if test "x$DOCBOOK_XSLT_CURRENT_VERSION" = "xno"; then
21659             if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
21660                 as_fn_error $? "Cannot build manpages: docbook version 1.72.0 or higher required." "$LINENO" 5
21661             else
21662                 XSLREL=1.72.0
21663             fi
21664         fi
21665
21666         # disable validation if the correct DTDs are not available
21667         if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
21668
21669     { $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
21670 $as_echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
21671
21672
21673     cat <<AAW_EOF >>config.warnings
21674 Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation
21675 AAW_EOF
21676
21677
21678             XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
21679         fi
21680     fi
21681
21682      if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
21683   ENABLE_MANPAGE_BUILD_TRUE=
21684   ENABLE_MANPAGE_BUILD_FALSE='#'
21685 else
21686   ENABLE_MANPAGE_BUILD_TRUE='#'
21687   ENABLE_MANPAGE_BUILD_FALSE=
21688 fi
21689
21690
21691
21692
21693
21694     #allow configure CONFIG_CLOBBER_MY_CONFIG= to be used by make.
21695     CONFIG_CLOBBER_MY_CONFIG=$CLOBBER_MY_CONFIG
21696
21697
21698
21699 # Check whether --with-index-server was given.
21700 if test "${with_index_server+set}" = set; then :
21701   withval=$with_index_server;
21702             case "$withval" in
21703             "" | y | ye | yes | n | no)
21704                 as_fn_error $? "*** You must supply an argument to the --with-index-server option." "$LINENO" 5
21705               ;;
21706             *) DEFAULT_SERVER="$withval"
21707               ;;
21708             esac
21709
21710 else
21711   : ${DEFAULT_SERVER=`uname -n`}
21712
21713 fi
21714
21715
21716 cat >>confdefs.h <<_ACEOF
21717 #define DEFAULT_SERVER "$DEFAULT_SERVER"
21718 _ACEOF
21719
21720
21721
21722
21723 # Check whether --with-config was given.
21724 if test "${with_config+set}" = set; then :
21725   withval=$with_config;
21726             case "$withval" in
21727             "" | y | ye | yes | n | no)
21728                 as_fn_error $? "*** You must supply an argument to the --with-config option." "$LINENO" 5
21729               ;;
21730             *) DEFAULT_CONFIG="$withval"
21731               ;;
21732             esac
21733
21734 else
21735   : ${DEFAULT_CONFIG=DailySet1}
21736
21737 fi
21738
21739
21740 cat >>confdefs.h <<_ACEOF
21741 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
21742 _ACEOF
21743
21744
21745
21746
21747 # Check whether --with-tape-server was given.
21748 if test "${with_tape_server+set}" = set; then :
21749   withval=$with_tape_server;
21750             case "$withval" in
21751             "" | y | ye | yes | n | no)
21752                 as_fn_error $? "*** You must supply an argument to the --with-tape-server option." "$LINENO" 5
21753               ;;
21754             *) DEFAULT_TAPE_SERVER="$withval"
21755               ;;
21756             esac
21757
21758 else
21759   : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
21760
21761 fi
21762
21763
21764 cat >>confdefs.h <<_ACEOF
21765 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
21766 _ACEOF
21767
21768
21769
21770
21771 # Check whether --with-tape-device was given.
21772 if test "${with_tape_device+set}" = set; then :
21773   withval=$with_tape_device;
21774             case "$withval" in
21775             "" | y | ye | yes | n | no)
21776                 as_fn_error $? "*** You must supply an argument to the --with-tape-device option." "$LINENO" 5
21777               ;;
21778             *) DEFAULT_TAPE_DEVICE="$withval"
21779               ;;
21780             esac
21781
21782
21783 fi
21784
21785
21786
21787 cat >>confdefs.h <<_ACEOF
21788 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
21789 _ACEOF
21790
21791
21792
21793     if test "${DEFAULT_TAPE_DEVICE+set}" = "set"; then
21794         EXAMPLE_TAPEDEV="$DEFAULT_TAPE_DEVICE"
21795     else
21796         EXAMPLE_TAPEDEV="tape:/dev/YOUR-TAPE-DEVICE-HERE"
21797     fi
21798
21799
21800
21801 # Check whether --with-changer-device was given.
21802 if test "${with_changer_device+set}" = set; then :
21803   withval=$with_changer_device;
21804
21805     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-changer-device is no longer used." >&5
21806 $as_echo "$as_me: WARNING: --with-changer-device is no longer used." >&2;}
21807
21808
21809     cat <<AAW_EOF >>config.warnings
21810 --with-changer-device is no longer used.
21811 AAW_EOF
21812
21813
21814
21815
21816 fi
21817
21818
21819
21820 # Check whether --with-amandates was given.
21821 if test "${with_amandates+set}" = set; then :
21822   withval=$with_amandates;
21823             case "$withval" in
21824                 n | no) as_fn_error $? "*** --without-amandates is not allowed." "$LINENO" 5;;
21825                 y |  ye | yes) amandates='$localstatedir/amanda/amandates' ;;
21826                 *) amandates="$withval";;
21827             esac
21828
21829 else
21830   amandates='$localstatedir/amanda/amandates'
21831
21832 fi
21833
21834
21835
21836   prefix_NONE=
21837   exec_prefix_NONE=
21838   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21839   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21840   eval ac_define_dir="\"$amandates\""
21841   eval ac_define_dir="\"$ac_define_dir\""
21842   DEFAULT_AMANDATES_FILE="$ac_define_dir"
21843
21844
21845 cat >>confdefs.h <<_ACEOF
21846 #define DEFAULT_AMANDATES_FILE "$ac_define_dir"
21847 _ACEOF
21848
21849   test "$prefix_NONE" && prefix=NONE
21850   test "$exec_prefix_NONE" && exec_prefix=NONE
21851
21852
21853     DEFAULT_FSF_AFTER_FILEMARK="FALSE"
21854     case "$host" in
21855         *-solaris*) DEFAULT_FSF_AFTER_FILEMARK="TRUE"
21856                     ;;
21857     esac
21858
21859 cat >>confdefs.h <<_ACEOF
21860 #define DEFAULT_FSF_AFTER_FILEMARK $DEFAULT_FSF_AFTER_FILEMARK
21861 _ACEOF
21862
21863
21864
21865
21866     # Extract the first word of "getconf", so it can be a program name with args.
21867 set dummy getconf; ac_word=$2
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21869 $as_echo_n "checking for $ac_word... " >&6; }
21870 if ${ac_cv_path_GETCONF+:} false; then :
21871   $as_echo_n "(cached) " >&6
21872 else
21873   case $GETCONF in
21874   [\\/]* | ?:[\\/]*)
21875   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
21876   ;;
21877   *)
21878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21879 for as_dir in $SYSPATH
21880 do
21881   IFS=$as_save_IFS
21882   test -z "$as_dir" && as_dir=.
21883     for ac_exec_ext in '' $ac_executable_extensions; do
21884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21885     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
21886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21887     break 2
21888   fi
21889 done
21890   done
21891 IFS=$as_save_IFS
21892
21893   ;;
21894 esac
21895 fi
21896 GETCONF=$ac_cv_path_GETCONF
21897 if test -n "$GETCONF"; then
21898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
21899 $as_echo "$GETCONF" >&6; }
21900 else
21901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21902 $as_echo "no" >&6; }
21903 fi
21904
21905
21906
21907
21908
21909
21910
21911     # we use 'getconf', if it exists, to get the relevant
21912     # compiler flags.
21913     GETCONF_LFS="LFS"
21914     case "$host" in
21915         *-hp-*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21916         *-ibm-aix*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
21917     esac
21918
21919     # Checks for compilers, typedefs, structures, and compiler characteristics.
21920     # Check for large file compilation environment.
21921     NEED_RESETOFS=yes
21922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation CFLAGS" >&5
21923 $as_echo_n "checking for large file compilation CFLAGS... " >&6; }
21924 if ${amanda_cv_LFS_CFLAGS+:} false; then :
21925   $as_echo_n "(cached) " >&6
21926 else
21927
21928         amanda_cv_LFS_CFLAGS=
21929         if test "$GETCONF"; then
21930             if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
21931                 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
21932                 NEED_RESETOFS=no
21933             fi
21934         fi
21935
21936
21937 fi
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_CFLAGS" >&5
21939 $as_echo "$amanda_cv_LFS_CFLAGS" >&6; }
21940     CFLAGS="$CFLAGS $amanda_cv_LFS_CFLAGS"
21941
21942
21943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation LDFLAGS" >&5
21944 $as_echo_n "checking for large file compilation LDFLAGS... " >&6; }
21945 if ${amanda_cv_LFS_LDFLAGS+:} false; then :
21946   $as_echo_n "(cached) " >&6
21947 else
21948
21949         amanda_cv_LFS_LDFLAGS=
21950         if test "$GETCONF"; then
21951             if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
21952                 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
21953                 NEED_RESETOFS=no
21954             fi
21955         fi
21956
21957
21958 fi
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_LDFLAGS" >&5
21960 $as_echo "$amanda_cv_LFS_LDFLAGS" >&6; }
21961     LDFLAGS="$LDFLAGS $amanda_cv_LFS_LDFLAGS"
21962
21963
21964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file compilation LIBS" >&5
21965 $as_echo_n "checking for large file compilation LIBS... " >&6; }
21966 if ${amanda_cv_LFS_LIBS+:} false; then :
21967   $as_echo_n "(cached) " >&6
21968 else
21969
21970         amanda_cv_LFS_LIBS=
21971         if test "$GETCONF"; then
21972             if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
21973                 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
21974                 NEED_RESETOFS=no
21975             fi
21976         fi
21977
21978
21979 fi
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_LFS_LIBS" >&5
21981 $as_echo "$amanda_cv_LFS_LIBS" >&6; }
21982     LIBS="$amanda_cv_LFS_LIBS $LIBS"
21983
21984
21985     if test x"$NEED_RESETOFS" = x"yes"; then
21986
21987 $as_echo "#define NEED_RESETOFS 1" >>confdefs.h
21988
21989     fi
21990
21991
21992     for ac_header in fstab.h \
21993         mntent.h \
21994         mnttab.h \
21995         sys/vfstab.h \
21996
21997 do :
21998   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21999 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22000 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22001   cat >>confdefs.h <<_ACEOF
22002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22003 _ACEOF
22004
22005 fi
22006
22007 done
22008
22009
22010     for ac_func in endmntent
22011 do :
22012   ac_fn_c_check_func "$LINENO" "endmntent" "ac_cv_func_endmntent"
22013 if test "x$ac_cv_func_endmntent" = xyes; then :
22014   cat >>confdefs.h <<_ACEOF
22015 #define HAVE_ENDMNTENT 1
22016 _ACEOF
22017
22018 fi
22019 done
22020
22021     for ac_func in setmntent
22022 do :
22023   ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
22024 if test "x$ac_cv_func_setmntent" = xyes; then :
22025   cat >>confdefs.h <<_ACEOF
22026 #define HAVE_SETMNTENT 1
22027 _ACEOF
22028
22029 fi
22030 done
22031
22032
22033
22034     for ac_header in fcntl.h \
22035         sys/fcntl.h \
22036         sys/types.h \
22037         sys/file.h \
22038         unistd.h \
22039
22040 do :
22041   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22042 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22043 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22044   cat >>confdefs.h <<_ACEOF
22045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22046 _ACEOF
22047
22048 fi
22049
22050 done
22051
22052
22053     # find a working file-locking mechanism.
22054     # Note: these all use AC_TRY_LINK to make sure that we can compile
22055     # and link each variant.  They do not try to test the variants --
22056     # that is left to runtime.
22057     LOCKING="no"
22058
22059     # check POSIX locking
22060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX locking (with fcntl(2)) is available" >&5
22061 $as_echo_n "checking whether POSIX locking (with fcntl(2)) is available... " >&6; }
22062 if ${amanda_cv_posix_filelocking+:} false; then :
22063   $as_echo_n "(cached) " >&6
22064 else
22065
22066             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22067 /* end confdefs.h.  */
22068
22069 #if HAVE_SYS_TYPES_H
22070 # include <sys/types.h>
22071 #endif
22072 #if HAVE_UNISTD_H
22073 # include <unistd.h>
22074 #endif
22075 #if HAVE_FCNTL_H
22076 # include <fcntl.h>
22077 #endif
22078
22079 int
22080 main ()
22081 {
22082
22083             struct flock lock;
22084
22085             lock.l_type = F_RDLCK;
22086             lock.l_start = 0;
22087             lock.l_whence = SEEK_CUR;
22088             lock.l_len = 0;
22089             return fcntl(1, F_SETLK, &lock);
22090
22091   ;
22092   return 0;
22093 }
22094 _ACEOF
22095 if ac_fn_c_try_link "$LINENO"; then :
22096
22097         amanda_cv_posix_filelocking="yes"
22098
22099 else
22100
22101         amanda_cv_posix_filelocking="no"
22102
22103 fi
22104 rm -f core conftest.err conftest.$ac_objext \
22105     conftest$ac_exeext conftest.$ac_ext
22106
22107 fi
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_posix_filelocking" >&5
22109 $as_echo "$amanda_cv_posix_filelocking" >&6; }
22110     if test "x$amanda_cv_posix_filelocking" = xyes; then
22111
22112 $as_echo "#define WANT_AMFLOCK_POSIX 1" >>confdefs.h
22113
22114         WANT_AMFLOCK_POSIX="yes"
22115         LOCKING="POSIX_FCNTL"
22116     fi
22117      if test x"$WANT_AMFLOCK_POSIX" = x"yes"; then
22118   WANT_AMFLOCK_POSIX_TRUE=
22119   WANT_AMFLOCK_POSIX_FALSE='#'
22120 else
22121   WANT_AMFLOCK_POSIX_TRUE='#'
22122   WANT_AMFLOCK_POSIX_FALSE=
22123 fi
22124
22125
22126     # check flock-based (BSD) locking
22127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flock locking is available" >&5
22128 $as_echo_n "checking whether flock locking is available... " >&6; }
22129 if ${amanda_cv_flock_filelocking+:} false; then :
22130   $as_echo_n "(cached) " >&6
22131 else
22132
22133             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22134 /* end confdefs.h.  */
22135
22136 #if HAVE_SYS_FILE_H
22137 # include <sys/file.h>
22138 #endif
22139
22140 int
22141 main ()
22142 {
22143
22144             return flock(1, LOCK_SH);
22145
22146   ;
22147   return 0;
22148 }
22149 _ACEOF
22150 if ac_fn_c_try_link "$LINENO"; then :
22151
22152         amanda_cv_flock_filelocking="yes"
22153
22154 else
22155
22156         amanda_cv_flock_filelocking="no"
22157
22158 fi
22159 rm -f core conftest.err conftest.$ac_objext \
22160     conftest$ac_exeext conftest.$ac_ext
22161
22162 fi
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_flock_filelocking" >&5
22164 $as_echo "$amanda_cv_flock_filelocking" >&6; }
22165     if test "x$amanda_cv_flock_filelocking" = xyes; then
22166
22167 $as_echo "#define WANT_AMFLOCK_FLOCK 1" >>confdefs.h
22168
22169         WANT_AMFLOCK_FLOCK="yes"
22170         LOCKING="FLOCK"
22171     fi
22172      if test x"$WANT_AMFLOCK_FLOCK" = x"yes"; then
22173   WANT_AMFLOCK_FLOCK_TRUE=
22174   WANT_AMFLOCK_FLOCK_FALSE='#'
22175 else
22176   WANT_AMFLOCK_FLOCK_TRUE='#'
22177   WANT_AMFLOCK_FLOCK_FALSE=
22178 fi
22179
22180
22181     # check lockf-based (SVR2, SVR3, SVR4) locking
22182     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lockf(3) locking is available" >&5
22183 $as_echo_n "checking whether lockf(3) locking is available... " >&6; }
22184 if ${amanda_cv_lockf_filelocking+:} false; then :
22185   $as_echo_n "(cached) " >&6
22186 else
22187
22188             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22189 /* end confdefs.h.  */
22190
22191 #if HAVE_UNISTD_H
22192 # include <unistd.h>
22193 #endif
22194
22195 int
22196 main ()
22197 {
22198
22199             return lockf(1, F_LOCK, 0);
22200
22201   ;
22202   return 0;
22203 }
22204 _ACEOF
22205 if ac_fn_c_try_link "$LINENO"; then :
22206
22207         amanda_cv_lockf_filelocking="yes"
22208
22209 else
22210
22211         amanda_cv_lockf_filelocking="no"
22212
22213 fi
22214 rm -f core conftest.err conftest.$ac_objext \
22215     conftest$ac_exeext conftest.$ac_ext
22216
22217 fi
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_lockf_filelocking" >&5
22219 $as_echo "$amanda_cv_lockf_filelocking" >&6; }
22220     if test "x$amanda_cv_lockf_filelocking" = xyes; then
22221
22222 $as_echo "#define WANT_AMFLOCK_LOCKF 1" >>confdefs.h
22223
22224         WANT_AMFLOCK_LOCKF="yes"
22225         LOCKING="LOCKF"
22226     fi
22227      if test x"$WANT_AMFLOCK_LOCKF" = x"yes"; then
22228   WANT_AMFLOCK_LOCKF_TRUE=
22229   WANT_AMFLOCK_LOCKF_FALSE='#'
22230 else
22231   WANT_AMFLOCK_LOCKF_TRUE='#'
22232   WANT_AMFLOCK_LOCKF_FALSE=
22233 fi
22234
22235
22236     # check our homebrew hardlink-based locking (requires hardlinks)
22237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link(2) is available for locking" >&5
22238 $as_echo_n "checking whether link(2) is available for locking... " >&6; }
22239 if ${amanda_cv_lnlock_filelocking+:} false; then :
22240   $as_echo_n "(cached) " >&6
22241 else
22242
22243             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22244 /* end confdefs.h.  */
22245
22246 #if HAVE_UNISTD_H
22247 # include <unistd.h>
22248 #endif
22249
22250 int
22251 main ()
22252 {
22253
22254             return link("/tmp/foo", "/tmp/bar");
22255
22256   ;
22257   return 0;
22258 }
22259 _ACEOF
22260 if ac_fn_c_try_link "$LINENO"; then :
22261
22262         amanda_cv_lnlock_filelocking="yes"
22263
22264 else
22265
22266         amanda_cv_lnlock_filelocking="no"
22267
22268 fi
22269 rm -f core conftest.err conftest.$ac_objext \
22270     conftest$ac_exeext conftest.$ac_ext
22271
22272 fi
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_lnlock_filelocking" >&5
22274 $as_echo "$amanda_cv_lnlock_filelocking" >&6; }
22275     if test "x$amanda_cv_lnlock_filelocking" = xyes; then
22276
22277 $as_echo "#define WANT_AMFLOCK_LNLOCK 1" >>confdefs.h
22278
22279         WANT_AMFLOCK_LNLOCK="yes"
22280         LOCKING="LNLOCK"
22281     fi
22282      if test x"$WANT_AMFLOCK_LNLOCK" = x"yes"; then
22283   WANT_AMFLOCK_LNLOCK_TRUE=
22284   WANT_AMFLOCK_LNLOCK_FALSE='#'
22285 else
22286   WANT_AMFLOCK_LNLOCK_TRUE='#'
22287   WANT_AMFLOCK_LNLOCK_FALSE=
22288 fi
22289
22290
22291     if test x"$LOCKING" = "no"; then
22292         # this shouldn't happen, and is *bad* if it does
22293         as_fn_error $? "*** No working file locking capability found!" "$LINENO" 5
22294     fi
22295
22296
22297
22298
22299
22300     for ac_prog in swig
22301 do
22302   # Extract the first word of "$ac_prog", so it can be a program name with args.
22303 set dummy $ac_prog; ac_word=$2
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22305 $as_echo_n "checking for $ac_word... " >&6; }
22306 if ${ac_cv_path_SWIG+:} false; then :
22307   $as_echo_n "(cached) " >&6
22308 else
22309   case $SWIG in
22310   [\\/]* | ?:[\\/]*)
22311   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22312   ;;
22313   *)
22314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22315 for as_dir in $LOCSYSPATH
22316 do
22317   IFS=$as_save_IFS
22318   test -z "$as_dir" && as_dir=.
22319     for ac_exec_ext in '' $ac_executable_extensions; do
22320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22321     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22323     break 2
22324   fi
22325 done
22326   done
22327 IFS=$as_save_IFS
22328
22329   ;;
22330 esac
22331 fi
22332 SWIG=$ac_cv_path_SWIG
22333 if test -n "$SWIG"; then
22334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
22335 $as_echo "$SWIG" >&6; }
22336 else
22337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22338 $as_echo "no" >&6; }
22339 fi
22340
22341
22342   test -n "$SWIG" && break
22343 done
22344
22345
22346     # 1.3.32 introduces a change in the way empty strings are handled (old versions
22347     # returned undef in Perl, while new versions return an empty Perl string)
22348     # 1.3.39 is required for the %begin block
22349
22350         # Extract the first word of "swig", so it can be a program name with args.
22351 set dummy swig; ac_word=$2
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22353 $as_echo_n "checking for $ac_word... " >&6; }
22354 if ${ac_cv_path_SWIG+:} false; then :
22355   $as_echo_n "(cached) " >&6
22356 else
22357   case $SWIG in
22358   [\\/]* | ?:[\\/]*)
22359   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22360   ;;
22361   *)
22362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22363 for as_dir in $PATH
22364 do
22365   IFS=$as_save_IFS
22366   test -z "$as_dir" && as_dir=.
22367     for ac_exec_ext in '' $ac_executable_extensions; do
22368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22369     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22371     break 2
22372   fi
22373 done
22374   done
22375 IFS=$as_save_IFS
22376
22377   ;;
22378 esac
22379 fi
22380 SWIG=$ac_cv_path_SWIG
22381 if test -n "$SWIG"; then
22382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
22383 $as_echo "$SWIG" >&6; }
22384 else
22385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22386 $as_echo "no" >&6; }
22387 fi
22388
22389
22390         if test -z "$SWIG" ; then
22391                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
22392         elif test -n "1.3.39" ; then
22393                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
22394 $as_echo_n "checking for SWIG version... " >&6; }
22395                 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'`
22396                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
22397 $as_echo "$swig_version" >&6; }
22398                 if test -n "$swig_version" ; then
22399
22400   # Used to indicate true or false condition
22401   ax_compare_version=false
22402
22403   # Convert the two version strings to be compared into a format that
22404   # allows a simple string comparison.  The end result is that a version
22405   # string of the form 1.12.5-r617 will be converted to the form
22406   # 0001001200050617.  In other words, each number is zero padded to four
22407   # digits, and non digits are removed.
22408
22409   ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22410                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22411                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22412                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22413                      -e 's/[^0-9]//g'`
22414
22415
22416   ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
22417                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
22418                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
22419                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
22420                      -e 's/[^0-9]//g'`
22421
22422
22423     ax_compare_version=`echo "x$ax_compare_version_A
22424 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"`
22425
22426
22427
22428     if test "$ax_compare_version" = "true" ; then
22429
22430                                                     SWIG_LIB=`$SWIG -swiglib`
22431
22432     else
22433                                                     SWIG='echo "Error: SWIG version >= 1.3.39 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
22434
22435   fi
22436
22437                 else
22438                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
22439                 fi
22440         fi
22441
22442
22443
22444
22445
22446     for ac_prog in perl5 perl
22447 do
22448   # Extract the first word of "$ac_prog", so it can be a program name with args.
22449 set dummy $ac_prog; ac_word=$2
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22451 $as_echo_n "checking for $ac_word... " >&6; }
22452 if ${ac_cv_path_PERL+:} false; then :
22453   $as_echo_n "(cached) " >&6
22454 else
22455   case $PERL in
22456   [\\/]* | ?:[\\/]*)
22457   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22458   ;;
22459   *)
22460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22461 for as_dir in $LOCSYSPATH
22462 do
22463   IFS=$as_save_IFS
22464   test -z "$as_dir" && as_dir=.
22465     for ac_exec_ext in '' $ac_executable_extensions; do
22466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22467     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22469     break 2
22470   fi
22471 done
22472   done
22473 IFS=$as_save_IFS
22474
22475   ;;
22476 esac
22477 fi
22478 PERL=$ac_cv_path_PERL
22479 if test -n "$PERL"; then
22480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22481 $as_echo "$PERL" >&6; }
22482 else
22483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22484 $as_echo "no" >&6; }
22485 fi
22486
22487
22488   test -n "$PERL" && break
22489 done
22490
22491
22492     # Make sure we have perl
22493 if test -z "$PERL"; then
22494 # Extract the first word of "perl", so it can be a program name with args.
22495 set dummy perl; ac_word=$2
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22497 $as_echo_n "checking for $ac_word... " >&6; }
22498 if ${ac_cv_prog_PERL+:} false; then :
22499   $as_echo_n "(cached) " >&6
22500 else
22501   if test -n "$PERL"; then
22502   ac_cv_prog_PERL="$PERL" # Let the user override the test.
22503 else
22504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22505 for as_dir in $PATH
22506 do
22507   IFS=$as_save_IFS
22508   test -z "$as_dir" && as_dir=.
22509     for ac_exec_ext in '' $ac_executable_extensions; do
22510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22511     ac_cv_prog_PERL="perl"
22512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22513     break 2
22514   fi
22515 done
22516   done
22517 IFS=$as_save_IFS
22518
22519 fi
22520 fi
22521 PERL=$ac_cv_prog_PERL
22522 if test -n "$PERL"; then
22523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22524 $as_echo "$PERL" >&6; }
22525 else
22526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22527 $as_echo "no" >&6; }
22528 fi
22529
22530
22531 fi
22532
22533 # Check if version of Perl is sufficient
22534 ac_perl_version="5.6.0"
22535
22536 if test "x$PERL" != "x"; then
22537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
22538 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
22539   # NB: It would be nice to log the error if there is one, but we cannot rely
22540   # on autoconf internals
22541   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
22542   if test $? -ne 0; then
22543     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22544 $as_echo "no" >&6; };
22545
22546         as_fn_error $? "Amanda requires at least perl 5.6.0" "$LINENO" 5
22547
22548   else
22549     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
22550 $as_echo "ok" >&6; };
22551
22552   fi
22553 else
22554   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
22555 $as_echo "$as_me: WARNING: could not find perl" >&2;}
22556 fi
22557
22558
22559
22560
22561
22562
22563     WANT_CYGWIN_COPY_PERL_DLL=false
22564     WANT_MANDATORY_THREAD_CHECK=false
22565
22566     # test for ExtUtils::Embed
22567     ac_perl_list_modules="ExtUtils::Embed 0.0"
22568 # Make sure we have perl
22569 if test -z "$PERL"; then
22570 # Extract the first word of "perl", so it can be a program name with args.
22571 set dummy perl; ac_word=$2
22572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22573 $as_echo_n "checking for $ac_word... " >&6; }
22574 if ${ac_cv_prog_PERL+:} false; then :
22575   $as_echo_n "(cached) " >&6
22576 else
22577   if test -n "$PERL"; then
22578   ac_cv_prog_PERL="$PERL" # Let the user override the test.
22579 else
22580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22581 for as_dir in $PATH
22582 do
22583   IFS=$as_save_IFS
22584   test -z "$as_dir" && as_dir=.
22585     for ac_exec_ext in '' $ac_executable_extensions; do
22586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22587     ac_cv_prog_PERL="perl"
22588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22589     break 2
22590   fi
22591 done
22592   done
22593 IFS=$as_save_IFS
22594
22595 fi
22596 fi
22597 PERL=$ac_cv_prog_PERL
22598 if test -n "$PERL"; then
22599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
22600 $as_echo "$PERL" >&6; }
22601 else
22602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22603 $as_echo "no" >&6; }
22604 fi
22605
22606
22607 fi
22608
22609 # Check the number of arguments
22610 args_num=`echo $ac_perl_list_modules | wc -w`
22611 let "ckeck_args = $args_num % 2"
22612 if test "$check_args" = "1" ; then
22613   as_fn_error $? "syntax error" "$LINENO" 5
22614 else
22615   eval
22616 fi
22617
22618 if test "x$PERL" != x; then
22619   ac_failed=0
22620   while test ${#ac_perl_list_modules} -gt 2 ; do
22621         module_name=`echo $ac_perl_list_modules | cut -d " " -f 1`
22622         module_version=`echo $ac_perl_list_modules | cut -d " " -f 2`
22623         ac_perl_list_modules=`echo $ac_perl_list_modules | cut -d " " -f 3-`
22624         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $module_name version $module_version" >&5
22625 $as_echo_n "checking for perl module $module_name version $module_version... " >&6; }
22626
22627         $PERL "-M$module_name" -e exit > /dev/null 2>&1
22628         if test $? -ne 0; then
22629           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22630 $as_echo "no" >&6; };
22631           ac_failed=1
22632           ac_perl_list_modules=""
22633         else
22634           version=`$PERL "-M$module_name" -e 'print $'"$module_name::VERSION" 2>&1`
22635           $PERL -e 'exit(shift cmp shift)' "$version" "$module_version"
22636           if test $? -eq 0 -o $? -eq 1 ; then
22637             { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
22638 $as_echo "ok" >&6; };
22639           else
22640             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22641 $as_echo "no" >&6; }
22642             ac_failed=1
22643             ac_perl_list_modules=""
22644           fi
22645         fi;
22646   done
22647
22648   if test "$ac_failed" = 0; then
22649     :
22650
22651   else
22652     :
22653
22654         as_fn_error $? "*** Amanda requires the perl package ExtUtils::Embed to build its perl modules" "$LINENO" 5
22655
22656   fi
22657 else
22658   as_fn_error $? "could not find perl" "$LINENO" 5
22659 fi
22660
22661     # get the include path for building perl extensions
22662     PERL_INC=`$PERL -MExtUtils::Embed -e perl_inc`
22663
22664
22665     if test x"$enable_shared" = x"no"; then
22666         as_fn_error $? "*** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" "$LINENO" 5
22667     fi
22668
22669     case "$host" in
22670         *freebsd[123456].*) # up to and including FreeBSD 6.*
22671             # Before 7.0, FreeBSD systems don't include a DT_NEEDS segment in
22672             # libgthread to automatically pull in the desired threading library.
22673             # Instead, they assume that any application linking against
22674             # libgthread will pull in the threading library.  This is fine for
22675             # Amanda C applications, but for Perl applications this assumption
22676             # means that the perl binary would pull in the threading library.
22677             # But perl is compiled without threading by default.
22678             #
22679             # Specifically, this occurs on any FreeBSD using gcc-3.*: the linking
22680             # decision is made in gcc's spec files, which were changed in
22681             # gcc-4.0.  For a more in-depth discussion, see
22682             #  http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_FreeBSD
22683             #
22684             # The easiest solution for the "default" case is to link all perl
22685             # extension libraries against the threading library, so it is loaded
22686             # when perl loads the extension library.  The default threading
22687             # library in FreeBSD is libpthread.  The below default will work on
22688             # such a FreeBSD system, but ports maintainers and those with
22689             # different configurations may need to override this value with
22690             # --with-perlextlibs.
22691             #
22692             # We can't use -pthread because gcc on FreeBSD ignores -pthread in
22693             # combination with -shared.  See
22694             #   http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026229.html
22695
22696             PERLEXTLIBS="-lpthread"
22697             WANT_MANDATORY_THREAD_CHECK=true
22698             ;;
22699
22700         *freebsd*) # all FreeBSD not matched above
22701             # for all FreeBSD (including 1.0-6.0, above), we want to run the
22702             # thread-check rule in perl/Makefile.am to double-check that a Perl
22703             # script can call a C extension that uses threads.
22704             WANT_MANDATORY_THREAD_CHECK=true
22705             ;;
22706
22707         *-pc-cygwin)
22708             # When need -lperl and the '-L' where it is located,
22709             # we don't want the DynaLoader.a
22710             PERLEXTLIBS=`perl -MExtUtils::Embed -e ldopts | sed -e 's/^.*-L/-L/'`
22711             # we want cygwin to copy ddl to modules directory.
22712             WANT_CYGWIN_COPY_PERL_DLL="true";
22713             ;;
22714     esac
22715      if $WANT_CYGWIN_COPY_PERL_DLL; then
22716   WANT_CYGWIN_COPY_PERL_DLL_TRUE=
22717   WANT_CYGWIN_COPY_PERL_DLL_FALSE='#'
22718 else
22719   WANT_CYGWIN_COPY_PERL_DLL_TRUE='#'
22720   WANT_CYGWIN_COPY_PERL_DLL_FALSE=
22721 fi
22722
22723      if $WANT_MANDATORY_THREAD_CHECK; then
22724   WANT_MANDATORY_THREAD_CHECK_TRUE=
22725   WANT_MANDATORY_THREAD_CHECK_FALSE='#'
22726 else
22727   WANT_MANDATORY_THREAD_CHECK_TRUE='#'
22728   WANT_MANDATORY_THREAD_CHECK_FALSE=
22729 fi
22730
22731
22732
22733 # Check whether --with-perlextlibs was given.
22734 if test "${with_perlextlibs+set}" = set; then :
22735   withval=$with_perlextlibs;
22736             case "$withval" in
22737                 y|ye|yes) as_fn_error $? "*** You must specify a value for --with-perlextlibs" "$LINENO" 5;;
22738                 n|no) PERLEXTLIBS='';;
22739                 *) PERLEXTLIBS="$withval" ;;
22740             esac
22741
22742 fi
22743
22744
22745
22746
22747
22748     # Extract the first word of "cat", so it can be a program name with args.
22749 set dummy cat; ac_word=$2
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22751 $as_echo_n "checking for $ac_word... " >&6; }
22752 if ${ac_cv_path_CAT+:} false; then :
22753   $as_echo_n "(cached) " >&6
22754 else
22755   case $CAT in
22756   [\\/]* | ?:[\\/]*)
22757   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
22758   ;;
22759   *)
22760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22761 for as_dir in $LOCSYSPATH
22762 do
22763   IFS=$as_save_IFS
22764   test -z "$as_dir" && as_dir=.
22765     for ac_exec_ext in '' $ac_executable_extensions; do
22766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22767     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
22768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22769     break 2
22770   fi
22771 done
22772   done
22773 IFS=$as_save_IFS
22774
22775   test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="cat"
22776   ;;
22777 esac
22778 fi
22779 CAT=$ac_cv_path_CAT
22780 if test -n "$CAT"; then
22781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
22782 $as_echo "$CAT" >&6; }
22783 else
22784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22785 $as_echo "no" >&6; }
22786 fi
22787
22788
22789
22790
22791
22792
22793
22794
22795     HAVE_GZIP=
22796     if test "$GZIP"; then
22797
22798 $as_echo "#define HAVE_GZIP 1" >>confdefs.h
22799
22800         HAVE_GZIP=1
22801         COMPRESS_PATH="$GZIP"
22802         COMPRESS_SUFFIX=".gz"
22803         COMPRESS_FAST_OPT="--fast"
22804         COMPRESS_BEST_OPT="--best"
22805         UNCOMPRESS_PATH="$GZIP"
22806         UNCOMPRESS_OPT="-dc"
22807     else
22808         if test "$COMPRESS"; then
22809             COMPRESS_PATH="$COMPRESS"
22810             COMPRESS_SUFFIX=".Z"
22811             COMPRESS_FAST_OPT="-f"
22812             COMPRESS_BEST_OPT="-f"
22813             UNCOMPRESS_PATH="$COMPRESS"
22814             UNCOMPRESS_OPT="-dc"
22815         else
22816             # If we have to use cat, we don't define COMPRESS_FAST_OPT,
22817             # COMPRESS_BEST_OPT, or UNCOMPRESS_OPT as "" since cat will look
22818             # look for a file by the name of "".
22819             # XXX is the above true? --dustin
22820
22821
22822     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find either gzip or compress.  Using cat." >&5
22823 $as_echo "$as_me: WARNING: Cannot find either gzip or compress.  Using cat." >&2;}
22824
22825
22826     cat <<AAW_EOF >>config.warnings
22827 Cannot find either gzip or compress.  Using cat.
22828 AAW_EOF
22829
22830
22831             COMPRESS_PATH="$CAT"
22832             COMPRESS_SUFFIX=""
22833             COMPRESS_FAST_OPT=""
22834             COMPRESS_BEST_OPT=""
22835             UNCOMPRESS_PATH="$CAT"
22836             UNCOMPRESS_OPT=""
22837         fi
22838     fi
22839
22840
22841 cat >>confdefs.h <<_ACEOF
22842 #define COMPRESS_PATH "$COMPRESS_PATH"
22843 _ACEOF
22844
22845
22846 cat >>confdefs.h <<_ACEOF
22847 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
22848 _ACEOF
22849
22850
22851 cat >>confdefs.h <<_ACEOF
22852 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
22853 _ACEOF
22854
22855
22856 cat >>confdefs.h <<_ACEOF
22857 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
22858 _ACEOF
22859
22860
22861 cat >>confdefs.h <<_ACEOF
22862 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
22863 _ACEOF
22864
22865
22866 cat >>confdefs.h <<_ACEOF
22867 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
22868 _ACEOF
22869
22870
22871
22872
22873
22874
22875
22876
22877
22878
22879     # Empty GZIP so that make dist works.
22880     GZIP=
22881
22882
22883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_storage struct exists" >&5
22884 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
22885 if ${ac_cv_has_sockaddr_storage+:} false; then :
22886   $as_echo_n "(cached) " >&6
22887 else
22888
22889         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22890 /* end confdefs.h.  */
22891
22892 #       include <sys/types.h>
22893 #       include <sys/socket.h>
22894 int
22895 main ()
22896 {
22897 u_int i = sizeof (struct sockaddr_storage)
22898   ;
22899   return 0;
22900 }
22901 _ACEOF
22902 if ac_fn_c_try_compile "$LINENO"; then :
22903   ac_cv_has_sockaddr_storage=yes
22904 else
22905   ac_cv_has_sockaddr_storage=no
22906 fi
22907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22908
22909 fi
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_sockaddr_storage" >&5
22911 $as_echo "$ac_cv_has_sockaddr_storage" >&6; }
22912
22913     if test $ac_cv_has_sockaddr_storage = yes ; then
22914
22915 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
22916
22917     fi
22918
22919
22920
22921
22922     WORKING_IPV6=no
22923
22924 # Check whether --with-ipv6 was given.
22925 if test "${with_ipv6+set}" = set; then :
22926   withval=$with_ipv6;
22927             case "$withval" in
22928             y | ye | yes) amanda_with_ipv6=yes;;
22929             n | no) amanda_with_ipv6=no;;
22930             *)
22931                 as_fn_error $? "*** You must not supply an argument to --with-ipv6 option." "$LINENO" 5
22932               ;;
22933             esac
22934
22935 else
22936
22937             amanda_with_ipv6=maybe
22938
22939
22940 fi
22941
22942
22943     if test x"$amanda_with_ipv6" = x"yes" ||
22944        test x"$amanda_with_ipv6" = x"maybe" ; then
22945         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working IPv6" >&5
22946 $as_echo_n "checking for working IPv6... " >&6; }
22947 if ${amanda_cv_working_ipv6+:} false; then :
22948   $as_echo_n "(cached) " >&6
22949 else
22950
22951             case "$host" in
22952                 *-pc-cygwin) amanda_cv_working_ipv6=no;;
22953                 *)
22954                     if test "$cross_compiling" = yes; then :
22955    amanda_cv_working_ipv6=yes
22956
22957 else
22958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22959 /* end confdefs.h.  */
22960
22961 #include <sys/types.h>
22962 #ifdef HAVE_SYS_SOCKET_H
22963 #include <sys/socket.h>
22964 #endif
22965 #ifdef HAVE_NETINET_IN_H
22966 #include <netinet/in.h>
22967 #endif
22968 #ifdef HAVE_WINSOCK2_H
22969 #include <winsock2.h>
22970 #endif
22971 #include <sys/socket.h>
22972 #include <errno.h>
22973
22974 main()
22975 {
22976    int aa;
22977    aa = socket(AF_INET6, SOCK_STREAM, 0);
22978    if (aa > 0) return 0;
22979    return aa;
22980 }
22981 _ACEOF
22982 if ac_fn_c_try_run "$LINENO"; then :
22983    amanda_cv_working_ipv6=yes
22984 else
22985    amanda_cv_working_ipv6=no
22986 fi
22987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22988   conftest.$ac_objext conftest.beam conftest.$ac_ext
22989 fi
22990
22991             esac
22992
22993 fi
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_working_ipv6" >&5
22995 $as_echo "$amanda_cv_working_ipv6" >&6; }
22996
22997         if test "$amanda_cv_working_ipv6" = yes; then
22998             WORKING_IPV6=yes
22999
23000 $as_echo "#define WORKING_IPV6 1" >>confdefs.h
23001
23002         else
23003             # error out only if the user specifically requested support
23004             if test x"$amanda_with_ipv6" = x"yes"; then
23005                 as_fn_error $? "IPv6 support was requested, but opening an IPv6 socket failed" "$LINENO" 5
23006             fi
23007         fi
23008     fi
23009
23010
23011     ac_header_dirent=no
23012 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23013   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
23015 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
23016 if eval \${$as_ac_Header+:} false; then :
23017   $as_echo_n "(cached) " >&6
23018 else
23019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23020 /* end confdefs.h.  */
23021 #include <sys/types.h>
23022 #include <$ac_hdr>
23023
23024 int
23025 main ()
23026 {
23027 if ((DIR *) 0)
23028 return 0;
23029   ;
23030   return 0;
23031 }
23032 _ACEOF
23033 if ac_fn_c_try_compile "$LINENO"; then :
23034   eval "$as_ac_Header=yes"
23035 else
23036   eval "$as_ac_Header=no"
23037 fi
23038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23039 fi
23040 eval ac_res=\$$as_ac_Header
23041                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23042 $as_echo "$ac_res" >&6; }
23043 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23044   cat >>confdefs.h <<_ACEOF
23045 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23046 _ACEOF
23047
23048 ac_header_dirent=$ac_hdr; break
23049 fi
23050
23051 done
23052 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23053 if test $ac_header_dirent = dirent.h; then
23054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23055 $as_echo_n "checking for library containing opendir... " >&6; }
23056 if ${ac_cv_search_opendir+:} false; then :
23057   $as_echo_n "(cached) " >&6
23058 else
23059   ac_func_search_save_LIBS=$LIBS
23060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23061 /* end confdefs.h.  */
23062
23063 /* Override any GCC internal prototype to avoid an error.
23064    Use char because int might match the return type of a GCC
23065    builtin and then its argument prototype would still apply.  */
23066 #ifdef __cplusplus
23067 extern "C"
23068 #endif
23069 char opendir ();
23070 int
23071 main ()
23072 {
23073 return opendir ();
23074   ;
23075   return 0;
23076 }
23077 _ACEOF
23078 for ac_lib in '' dir; do
23079   if test -z "$ac_lib"; then
23080     ac_res="none required"
23081   else
23082     ac_res=-l$ac_lib
23083     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23084   fi
23085   if ac_fn_c_try_link "$LINENO"; then :
23086   ac_cv_search_opendir=$ac_res
23087 fi
23088 rm -f core conftest.err conftest.$ac_objext \
23089     conftest$ac_exeext
23090   if ${ac_cv_search_opendir+:} false; then :
23091   break
23092 fi
23093 done
23094 if ${ac_cv_search_opendir+:} false; then :
23095
23096 else
23097   ac_cv_search_opendir=no
23098 fi
23099 rm conftest.$ac_ext
23100 LIBS=$ac_func_search_save_LIBS
23101 fi
23102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23103 $as_echo "$ac_cv_search_opendir" >&6; }
23104 ac_res=$ac_cv_search_opendir
23105 if test "$ac_res" != no; then :
23106   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23107
23108 fi
23109
23110 else
23111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23112 $as_echo_n "checking for library containing opendir... " >&6; }
23113 if ${ac_cv_search_opendir+:} false; then :
23114   $as_echo_n "(cached) " >&6
23115 else
23116   ac_func_search_save_LIBS=$LIBS
23117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23118 /* end confdefs.h.  */
23119
23120 /* Override any GCC internal prototype to avoid an error.
23121    Use char because int might match the return type of a GCC
23122    builtin and then its argument prototype would still apply.  */
23123 #ifdef __cplusplus
23124 extern "C"
23125 #endif
23126 char opendir ();
23127 int
23128 main ()
23129 {
23130 return opendir ();
23131   ;
23132   return 0;
23133 }
23134 _ACEOF
23135 for ac_lib in '' x; do
23136   if test -z "$ac_lib"; then
23137     ac_res="none required"
23138   else
23139     ac_res=-l$ac_lib
23140     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23141   fi
23142   if ac_fn_c_try_link "$LINENO"; then :
23143   ac_cv_search_opendir=$ac_res
23144 fi
23145 rm -f core conftest.err conftest.$ac_objext \
23146     conftest$ac_exeext
23147   if ${ac_cv_search_opendir+:} false; then :
23148   break
23149 fi
23150 done
23151 if ${ac_cv_search_opendir+:} false; then :
23152
23153 else
23154   ac_cv_search_opendir=no
23155 fi
23156 rm conftest.$ac_ext
23157 LIBS=$ac_func_search_save_LIBS
23158 fi
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23160 $as_echo "$ac_cv_search_opendir" >&6; }
23161 ac_res=$ac_cv_search_opendir
23162 if test "$ac_res" != no; then :
23163   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23164
23165 fi
23166
23167 fi
23168
23169
23170     # include the dirent headers as described in the autoconf documentation.
23171     ac_fn_c_check_decl "$LINENO" "readdir" "ac_cv_have_decl_readdir" "
23172 #if HAVE_DIRENT_H
23173 # include <dirent.h>
23174 # define NAMLEN(dirent) strlen((dirent)->d_name)
23175 #else
23176 # define dirent direct
23177 # define NAMLEN(dirent) (dirent)->d_namlen
23178 # if HAVE_SYS_NDIR_H
23179 #  include <sys/ndir.h>
23180 # endif
23181 # if HAVE_SYS_DIR_H
23182 #  include <sys/dir.h>
23183 # endif
23184 # if HAVE_NDIR_H
23185 #  include <ndir.h>
23186 # endif
23187 #endif
23188
23189 "
23190 if test "x$ac_cv_have_decl_readdir" = xyes; then :
23191   ac_have_decl=1
23192 else
23193   ac_have_decl=0
23194 fi
23195
23196 cat >>confdefs.h <<_ACEOF
23197 #define HAVE_DECL_READDIR $ac_have_decl
23198 _ACEOF
23199 ac_fn_c_check_decl "$LINENO" "readdir_r" "ac_cv_have_decl_readdir_r" "
23200 #if HAVE_DIRENT_H
23201 # include <dirent.h>
23202 # define NAMLEN(dirent) strlen((dirent)->d_name)
23203 #else
23204 # define dirent direct
23205 # define NAMLEN(dirent) (dirent)->d_namlen
23206 # if HAVE_SYS_NDIR_H
23207 #  include <sys/ndir.h>
23208 # endif
23209 # if HAVE_SYS_DIR_H
23210 #  include <sys/dir.h>
23211 # endif
23212 # if HAVE_NDIR_H
23213 #  include <ndir.h>
23214 # endif
23215 #endif
23216
23217 "
23218 if test "x$ac_cv_have_decl_readdir_r" = xyes; then :
23219   ac_have_decl=1
23220 else
23221   ac_have_decl=0
23222 fi
23223
23224 cat >>confdefs.h <<_ACEOF
23225 #define HAVE_DECL_READDIR_R $ac_have_decl
23226 _ACEOF
23227 ac_fn_c_check_decl "$LINENO" "readdir64" "ac_cv_have_decl_readdir64" "
23228 #if HAVE_DIRENT_H
23229 # include <dirent.h>
23230 # define NAMLEN(dirent) strlen((dirent)->d_name)
23231 #else
23232 # define dirent direct
23233 # define NAMLEN(dirent) (dirent)->d_namlen
23234 # if HAVE_SYS_NDIR_H
23235 #  include <sys/ndir.h>
23236 # endif
23237 # if HAVE_SYS_DIR_H
23238 #  include <sys/dir.h>
23239 # endif
23240 # if HAVE_NDIR_H
23241 #  include <ndir.h>
23242 # endif
23243 #endif
23244
23245 "
23246 if test "x$ac_cv_have_decl_readdir64" = xyes; then :
23247   ac_have_decl=1
23248 else
23249   ac_have_decl=0
23250 fi
23251
23252 cat >>confdefs.h <<_ACEOF
23253 #define HAVE_DECL_READDIR64 $ac_have_decl
23254 _ACEOF
23255 ac_fn_c_check_decl "$LINENO" "readdir64_r" "ac_cv_have_decl_readdir64_r" "
23256 #if HAVE_DIRENT_H
23257 # include <dirent.h>
23258 # define NAMLEN(dirent) strlen((dirent)->d_name)
23259 #else
23260 # define dirent direct
23261 # define NAMLEN(dirent) (dirent)->d_namlen
23262 # if HAVE_SYS_NDIR_H
23263 #  include <sys/ndir.h>
23264 # endif
23265 # if HAVE_SYS_DIR_H
23266 #  include <sys/dir.h>
23267 # endif
23268 # if HAVE_NDIR_H
23269 #  include <ndir.h>
23270 # endif
23271 #endif
23272
23273 "
23274 if test "x$ac_cv_have_decl_readdir64_r" = xyes; then :
23275   ac_have_decl=1
23276 else
23277   ac_have_decl=0
23278 fi
23279
23280 cat >>confdefs.h <<_ACEOF
23281 #define HAVE_DECL_READDIR64_R $ac_have_decl
23282 _ACEOF
23283
23284
23285
23286     # disk device prefixes
23287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking disk device prefixes" >&5
23288 $as_echo_n "checking disk device prefixes... " >&6; }
23289
23290     # Use df to find the mount point for the root filesystem.  Use
23291     # the positional parameters to find the particular line from df
23292     # that contains the root paritition.  We put it in a subshell so
23293     # that the original positional parameters are not messed with.
23294     dfline=`(
23295         df / | while read line; do
23296             set -- $line
23297                     while test $# -gt 0; do
23298                 if test "x$1" = "x/"; then
23299                     echo $line
23300                     break 2
23301                 fi
23302                 shift
23303             done
23304         done
23305     ) | sed 's/(//' | sed 's/)//' `
23306
23307     # Search for the mount point by using expr to find the parameter
23308     # with dev in it.
23309     mount=`(
23310         set -- $dfline
23311                 while test $# -gt 0; do
23312             if expr "$1" : '.*dev' >/dev/null 2>&1; then
23313                 echo $1
23314                 break
23315             fi
23316             shift
23317         done
23318     )`
23319
23320     # get any system-specific configuration information
23321     case "$host" in
23322         *-hp-*)
23323             CLIENT_SCRIPTS_OPT=amhpfixdevs
23324             case $mount in
23325                 /dev/vg*)
23326
23327     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&5
23328 $as_echo "$as_me: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&2;}
23329
23330
23331     cat <<AAW_EOF >>config.warnings
23332 Run amhpfixdevs on HP-UX systems using /dev/vg??.
23333 AAW_EOF
23334
23335
23336                     ;;
23337             esac
23338             ;;
23339         *-sni-sysv4)
23340             DEV_PREFIX=/dev/dsk/
23341             RDEV_PREFIX=/dev/rdsk/
23342             CLIENT_SCRIPTS_OPT=amsinixfixdevs
23343             if ! test -d /dev/dsk; then
23344
23345     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&5
23346 $as_echo "$as_me: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&2;}
23347
23348
23349     cat <<AAW_EOF >>config.warnings
23350 Run amsinixfixdevs on Sinix systems using VxFS.
23351 AAW_EOF
23352
23353
23354             fi
23355             ;;
23356         *-sco3.2v4*)
23357             DEV_PREFIX=/dev/
23358             RDEV_PREFIX=/dev/
23359             ;;
23360         *)
23361             CLIENT_SCRIPTS_OPT=
23362             ;;
23363     esac
23364
23365     if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
23366         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
23367 $as_echo "(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6; }
23368     else
23369         if test -d /dev/dsk; then
23370             DEV_PREFIX=/dev/dsk/
23371             if test -d /dev/rdsk; then
23372                 RDEV_PREFIX=/dev/rdsk/
23373             else
23374                 RDEV_PREFIX=/dev/dsk/
23375             fi
23376         elif test -d /dev; then
23377             DEV_PREFIX=/dev/
23378
23379             # Some systems, notably Linux, do not have raw disk devices
23380             # names.  Check this by trying to see if a raw disk device name
23381             # exists using the normal raw device path prepended to the
23382             # mount point of the root filesystem.
23383             if test "$mount"; then
23384                 dev_name="/dev/r`basename $mount`"
23385                 if test -b $dev_name -o -c $dev_name; then
23386                     RDEV_PREFIX=/dev/r
23387                 else
23388                     RDEV_PREFIX=/dev/
23389                 fi
23390             else
23391                 RDEV_PREFIX=/dev/r
23392             fi
23393         else
23394             # just fake it..
23395             DEV_PREFIX=/
23396             RDEV_PREFIX=/
23397         fi
23398         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
23399 $as_echo "$DEV_PREFIX - $RDEV_PREFIX" >&6; }
23400     fi
23401
23402
23403 cat >>confdefs.h <<_ACEOF
23404 #define DEV_PREFIX "${DEV_PREFIX}"
23405 _ACEOF
23406
23407
23408 cat >>confdefs.h <<_ACEOF
23409 #define RDEV_PREFIX "${RDEV_PREFIX}"
23410 _ACEOF
23411
23412
23413
23414
23415     case "$host" in
23416         *-dec-osf*)
23417                     ;;
23418         *-dg-*)
23419                     ;;
23420         *-netbsd*)
23421                     ;;
23422         *-freebsd*)
23423                     ;;
23424         *-openbsd*)
23425                     ;;
23426         *-hp-*)
23427                     case "$CC" in
23428                         *gcc*)
23429                             CPPFLAGS="$CPPFLAGS -D__STDC_EXT__"
23430
23431                             ;;
23432                         *cc*)
23433                             CFLAGS="$CFLAGS -Ae"
23434
23435                             ;;
23436                     esac
23437                     ;;
23438         *-ibm-aix*)
23439                     ;;
23440         m88k-motorola-sysv4)
23441                     ;;
23442         *-nextstep3)
23443                     ;;
23444         *-pc-bsdi*)
23445                     ;;
23446         *-pc-linux-*)
23447                     ;;
23448         *-redhat-linux-*)
23449                     ;;
23450         *-suse-linux-*)
23451                     ;;
23452         x86_64-*-linux-*)
23453                     ;;
23454         alpha*-*-linux-*)
23455                     ;;
23456         sparc*-*-linux-*)
23457                     ;;
23458         powerpc-*-linux-*)
23459                     ;;
23460         *-sgi-irix3*)
23461                     # The old cc won't work!
23462                     if test "x$GCC" != "xyes"; then
23463                         as_fn_error $? "The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" "$LINENO" 5
23464                     fi
23465                     ;;
23466         *-sgi-irix4*)
23467                     ;;
23468         *-sgi-irix5*)
23469                     ;;
23470         *-sgi-irix6*)
23471                     ;;
23472         *-solaris2*)
23473                     ;;
23474         *-sun-sunos4.1*)
23475                     ;;
23476         *-ultrix*)
23477                     ;;
23478         *-sysv4.2uw2*)
23479                     ;;
23480         *-sco3.2v5*)
23481                     ;;
23482         i386-pc-isc4*)
23483                     ;;
23484         *-sni-sysv4)
23485                     ;;
23486         *-pc-cygwin)
23487
23488 $as_echo "#define IGNORE_TAR_ERRORS 1" >>confdefs.h
23489
23490                     # Cygwin needs PATH to find cygwin1.dll
23491
23492 $as_echo "#define NEED_PATH_ENV 1" >>confdefs.h
23493
23494
23495 $as_echo "#define IGNORE_FSTAB 1" >>confdefs.h
23496
23497                     LDFLAGS="$LDFLAGS -Wl,-enable-runtime-pseudo-reloc -no-undefined"
23498
23499                     ;;
23500         *-apple-darwin7*) # MacOS X 10.3.* (Panther)
23501                     ;;
23502         *-apple-darwin8*) # MacOS X 10.4.* (Tiger)
23503                     ;;
23504         *-apple-darwin9*) # MacOS X 10.5.* (Leopard)
23505                     ;;
23506         *-apple-darwin10*) # MacOS X 10.6.* (Snow Leopard)
23507                     ;;
23508       *)
23509
23510
23511     cat <<AAW_EOF >>config.warnings
23512 *****
23513 This machine, target type $host, is not known to be fully supported
23514 by this configure script.  If the installation of Amanda on this system
23515 succeeds or needed any patches, please email amanda-hackers@amanda.org
23516 with the patches or an indication of the sucess or failure of the
23517 Amanda installation on your system.
23518 *****
23519 AAW_EOF
23520
23521                     ;;
23522     esac
23523
23524
23525
23526
23527
23528   prefix_NONE=
23529   exec_prefix_NONE=
23530   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23531   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23532   eval ac_define_dir="\"$bindir\""
23533   eval ac_define_dir="\"$ac_define_dir\""
23534   bindir="$ac_define_dir"
23535
23536
23537 cat >>confdefs.h <<_ACEOF
23538 #define bindir "$ac_define_dir"
23539 _ACEOF
23540
23541   test "$prefix_NONE" && prefix=NONE
23542   test "$exec_prefix_NONE" && exec_prefix=NONE
23543
23544
23545
23546   prefix_NONE=
23547   exec_prefix_NONE=
23548   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23549   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23550   eval ac_define_dir="\"$sbindir\""
23551   eval ac_define_dir="\"$ac_define_dir\""
23552   sbindir="$ac_define_dir"
23553
23554
23555 cat >>confdefs.h <<_ACEOF
23556 #define sbindir "$ac_define_dir"
23557 _ACEOF
23558
23559   test "$prefix_NONE" && prefix=NONE
23560   test "$exec_prefix_NONE" && exec_prefix=NONE
23561
23562
23563
23564   prefix_NONE=
23565   exec_prefix_NONE=
23566   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23567   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23568   eval ac_define_dir="\"$libexecdir\""
23569   eval ac_define_dir="\"$ac_define_dir\""
23570   libexecdir="$ac_define_dir"
23571
23572
23573 cat >>confdefs.h <<_ACEOF
23574 #define libexecdir "$ac_define_dir"
23575 _ACEOF
23576
23577   test "$prefix_NONE" && prefix=NONE
23578   test "$exec_prefix_NONE" && exec_prefix=NONE
23579
23580
23581
23582   prefix_NONE=
23583   exec_prefix_NONE=
23584   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23585   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23586   eval ac_define_dir="\"$mandir\""
23587   eval ac_define_dir="\"$ac_define_dir\""
23588   mandir="$ac_define_dir"
23589
23590
23591 cat >>confdefs.h <<_ACEOF
23592 #define mandir "$ac_define_dir"
23593 _ACEOF
23594
23595   test "$prefix_NONE" && prefix=NONE
23596   test "$exec_prefix_NONE" && exec_prefix=NONE
23597
23598
23599
23600     # amanda-specific directories
23601     AMLIBDIR=$libdir/amanda
23602
23603 # Check whether --with-amlibdir was given.
23604 if test "${with_amlibdir+set}" = set; then :
23605   withval=$with_amlibdir;
23606             case "$withval" in
23607                 n | no) AMLIBDIR=$libdir ;;
23608                 y | ye | yes) AMLIBDIR=$libdir/amanda ;;
23609                 *) AMLIBDIR=$withval ;;
23610             esac
23611
23612
23613 fi
23614
23615
23616   prefix_NONE=
23617   exec_prefix_NONE=
23618   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23619   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23620   eval ac_define_dir="\"$AMLIBDIR\""
23621   eval ac_define_dir="\"$ac_define_dir\""
23622   amlibdir="$ac_define_dir"
23623
23624
23625 cat >>confdefs.h <<_ACEOF
23626 #define amlibdir "$ac_define_dir"
23627 _ACEOF
23628
23629   test "$prefix_NONE" && prefix=NONE
23630   test "$exec_prefix_NONE" && exec_prefix=NONE
23631
23632
23633     AMLIBEXECDIR=$libexecdir/amanda
23634
23635 # Check whether --with-amlibexecdir was given.
23636 if test "${with_amlibexecdir+set}" = set; then :
23637   withval=$with_amlibexecdir;
23638             case "$withval" in
23639                 n | no) AMLIBEXECDIR=$libexecdir ;;
23640                 y | ye | yes) AMLIBEXECDIR=$libexecdir/amanda ;;
23641                 *) AMLIBEXECDIR=$withval ;;
23642             esac
23643
23644
23645 fi
23646
23647
23648   prefix_NONE=
23649   exec_prefix_NONE=
23650   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23651   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23652   eval ac_define_dir="\"$AMLIBEXECDIR\""
23653   eval ac_define_dir="\"$ac_define_dir\""
23654   amlibexecdir="$ac_define_dir"
23655
23656
23657 cat >>confdefs.h <<_ACEOF
23658 #define amlibexecdir "$ac_define_dir"
23659 _ACEOF
23660
23661   test "$prefix_NONE" && prefix=NONE
23662   test "$exec_prefix_NONE" && exec_prefix=NONE
23663
23664
23665     amincludedir="${includedir}/amanda"
23666
23667   prefix_NONE=
23668   exec_prefix_NONE=
23669   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23670   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23671   eval ac_define_dir="\"$amincludedir\""
23672   eval ac_define_dir="\"$ac_define_dir\""
23673   amincludedir="$ac_define_dir"
23674
23675
23676 cat >>confdefs.h <<_ACEOF
23677 #define amincludedir "$ac_define_dir"
23678 _ACEOF
23679
23680   test "$prefix_NONE" && prefix=NONE
23681   test "$exec_prefix_NONE" && exec_prefix=NONE
23682
23683
23684
23685 # Check whether --with-amperldir was given.
23686 if test "${with_amperldir+set}" = set; then :
23687   withval=$with_amperldir;
23688             case "$withval" in
23689                 y | ye | yes) AMPERLLIB=DEFAULT ;;
23690                 n | no) AMPERLLIB=$amlibdir/perl ;;
23691                 *) AMPERLLIB=$withval ;;
23692             esac
23693
23694 else
23695
23696             AMPERLLIB=DEFAULT
23697
23698
23699 fi
23700
23701     # apply the default if no value was given.
23702     if test x"$AMPERLLIB" = x"DEFAULT"; then
23703         eval `$PERL -V:installsitelib`
23704         AMPERLLIB=$installsitelib
23705     fi
23706
23707   prefix_NONE=
23708   exec_prefix_NONE=
23709   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23710   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23711   eval ac_define_dir="\"$AMPERLLIB\""
23712   eval ac_define_dir="\"$ac_define_dir\""
23713   amperldir="$ac_define_dir"
23714
23715
23716 cat >>confdefs.h <<_ACEOF
23717 #define amperldir "$ac_define_dir"
23718 _ACEOF
23719
23720   test "$prefix_NONE" && prefix=NONE
23721   test "$exec_prefix_NONE" && exec_prefix=NONE
23722
23723
23724     APPLICATION_DIR='${amlibexecdir}/application'
23725
23726   prefix_NONE=
23727   exec_prefix_NONE=
23728   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23729   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23730   eval ac_define_dir="\"$APPLICATION_DIR\""
23731   eval ac_define_dir="\"$ac_define_dir\""
23732   APPLICATION_DIR="$ac_define_dir"
23733
23734
23735 cat >>confdefs.h <<_ACEOF
23736 #define APPLICATION_DIR "$ac_define_dir"
23737 _ACEOF
23738
23739   test "$prefix_NONE" && prefix=NONE
23740   test "$exec_prefix_NONE" && exec_prefix=NONE
23741
23742
23743
23744 # Check whether --with-amdatadir was given.
23745 if test "${with_amdatadir+set}" = set; then :
23746   withval=$with_amdatadir;
23747             AMDATADIR=$withval
23748
23749 else
23750
23751             AMDATADIR=$datadir/amanda
23752
23753
23754 fi
23755
23756
23757   prefix_NONE=
23758   exec_prefix_NONE=
23759   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23760   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23761   eval ac_define_dir="\"$AMDATADIR\""
23762   eval ac_define_dir="\"$ac_define_dir\""
23763   amdatadir="$ac_define_dir"
23764
23765
23766 cat >>confdefs.h <<_ACEOF
23767 #define amdatadir "$ac_define_dir"
23768 _ACEOF
23769
23770   test "$prefix_NONE" && prefix=NONE
23771   test "$exec_prefix_NONE" && exec_prefix=NONE
23772
23773
23774
23775 #
23776 # Internationalization
23777 #
23778
23779     # FreeBSD needs to link libxpg4
23780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale in -lxpg4" >&5
23781 $as_echo_n "checking for setlocale in -lxpg4... " >&6; }
23782 if ${ac_cv_lib_xpg4_setlocale+:} false; then :
23783   $as_echo_n "(cached) " >&6
23784 else
23785   ac_check_lib_save_LIBS=$LIBS
23786 LIBS="-lxpg4  $LIBS"
23787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23788 /* end confdefs.h.  */
23789
23790 /* Override any GCC internal prototype to avoid an error.
23791    Use char because int might match the return type of a GCC
23792    builtin and then its argument prototype would still apply.  */
23793 #ifdef __cplusplus
23794 extern "C"
23795 #endif
23796 char setlocale ();
23797 int
23798 main ()
23799 {
23800 return setlocale ();
23801   ;
23802   return 0;
23803 }
23804 _ACEOF
23805 if ac_fn_c_try_link "$LINENO"; then :
23806   ac_cv_lib_xpg4_setlocale=yes
23807 else
23808   ac_cv_lib_xpg4_setlocale=no
23809 fi
23810 rm -f core conftest.err conftest.$ac_objext \
23811     conftest$ac_exeext conftest.$ac_ext
23812 LIBS=$ac_check_lib_save_LIBS
23813 fi
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4_setlocale" >&5
23815 $as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
23816 if test "x$ac_cv_lib_xpg4_setlocale" = xyes; then :
23817   cat >>confdefs.h <<_ACEOF
23818 #define HAVE_LIBXPG4 1
23819 _ACEOF
23820
23821   LIBS="-lxpg4 $LIBS"
23822
23823 fi
23824
23825
23826     # ------------------------------------------------------------------
23827     # All list of languages for which a translation exist. Each
23828     #  language is separated by a space.
23829     # ------------------------------------------------------------------
23830     ALL_LINGUAS=""
23831
23832
23833     # Extract the first word of "msgfmt", so it can be a program name with args.
23834 set dummy msgfmt; ac_word=$2
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23836 $as_echo_n "checking for $ac_word... " >&6; }
23837 if ${ac_cv_path_MSGFMT+:} false; then :
23838   $as_echo_n "(cached) " >&6
23839 else
23840   case $MSGFMT in
23841   [\\/]* | ?:[\\/]*)
23842   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23843   ;;
23844   *)
23845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23846 for as_dir in $LOCSYSPATH
23847 do
23848   IFS=$as_save_IFS
23849   test -z "$as_dir" && as_dir=.
23850     for ac_exec_ext in '' $ac_executable_extensions; do
23851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23852     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
23853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23854     break 2
23855   fi
23856 done
23857   done
23858 IFS=$as_save_IFS
23859
23860   ;;
23861 esac
23862 fi
23863 MSGFMT=$ac_cv_path_MSGFMT
23864 if test -n "$MSGFMT"; then
23865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
23866 $as_echo "$MSGFMT" >&6; }
23867 else
23868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23869 $as_echo "no" >&6; }
23870 fi
23871
23872
23873     # Extract the first word of "gettext", so it can be a program name with args.
23874 set dummy gettext; ac_word=$2
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23876 $as_echo_n "checking for $ac_word... " >&6; }
23877 if ${ac_cv_path_GETTEXT+:} false; then :
23878   $as_echo_n "(cached) " >&6
23879 else
23880   case $GETTEXT in
23881   [\\/]* | ?:[\\/]*)
23882   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
23883   ;;
23884   *)
23885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23886 for as_dir in $LOCSYSPATH
23887 do
23888   IFS=$as_save_IFS
23889   test -z "$as_dir" && as_dir=.
23890     for ac_exec_ext in '' $ac_executable_extensions; do
23891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23892     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
23893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23894     break 2
23895   fi
23896 done
23897   done
23898 IFS=$as_save_IFS
23899
23900   ;;
23901 esac
23902 fi
23903 GETTEXT=$ac_cv_path_GETTEXT
23904 if test -n "$GETTEXT"; then
23905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETTEXT" >&5
23906 $as_echo "$GETTEXT" >&6; }
23907 else
23908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23909 $as_echo "no" >&6; }
23910 fi
23911
23912
23913
23914
23915
23916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
23917 $as_echo_n "checking whether NLS is requested... " >&6; }
23918     # Check whether --enable-nls was given.
23919 if test "${enable_nls+set}" = set; then :
23920   enableval=$enable_nls; USE_NLS=$enableval
23921 else
23922   USE_NLS=yes
23923 fi
23924
23925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
23926 $as_echo "$USE_NLS" >&6; }
23927
23928
23929
23930
23931
23932
23933 # Prepare PATH_SEPARATOR.
23934 # The user is always right.
23935 if test "${PATH_SEPARATOR+set}" != set; then
23936   echo "#! /bin/sh" >conf$$.sh
23937   echo  "exit 0"   >>conf$$.sh
23938   chmod +x conf$$.sh
23939   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23940     PATH_SEPARATOR=';'
23941   else
23942     PATH_SEPARATOR=:
23943   fi
23944   rm -f conf$$.sh
23945 fi
23946
23947 # Find out how to test for executable files. Don't use a zero-byte file,
23948 # as systems may use methods other than mode bits to determine executability.
23949 cat >conf$$.file <<_ASEOF
23950 #! /bin/sh
23951 exit 0
23952 _ASEOF
23953 chmod +x conf$$.file
23954 if test -x conf$$.file >/dev/null 2>&1; then
23955   ac_executable_p="test -x"
23956 else
23957   ac_executable_p="test -f"
23958 fi
23959 rm -f conf$$.file
23960
23961 # Extract the first word of "msgfmt", so it can be a program name with args.
23962 set dummy msgfmt; ac_word=$2
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23964 $as_echo_n "checking for $ac_word... " >&6; }
23965 if ${ac_cv_path_MSGFMT+:} false; then :
23966   $as_echo_n "(cached) " >&6
23967 else
23968   case "$MSGFMT" in
23969   [\\/]* | ?:[\\/]*)
23970     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
23971     ;;
23972   *)
23973     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
23974     for ac_dir in $PATH; do
23975       IFS="$ac_save_IFS"
23976       test -z "$ac_dir" && ac_dir=.
23977       for ac_exec_ext in '' $ac_executable_extensions; do
23978         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
23979           echo "$as_me: trying $ac_dir/$ac_word..." >&5
23980           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
23981      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
23982             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
23983             break 2
23984           fi
23985         fi
23986       done
23987     done
23988     IFS="$ac_save_IFS"
23989   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
23990     ;;
23991 esac
23992 fi
23993 MSGFMT="$ac_cv_path_MSGFMT"
23994 if test "$MSGFMT" != ":"; then
23995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
23996 $as_echo "$MSGFMT" >&6; }
23997 else
23998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23999 $as_echo "no" >&6; }
24000 fi
24001
24002   # Extract the first word of "gmsgfmt", so it can be a program name with args.
24003 set dummy gmsgfmt; ac_word=$2
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24005 $as_echo_n "checking for $ac_word... " >&6; }
24006 if ${ac_cv_path_GMSGFMT+:} false; then :
24007   $as_echo_n "(cached) " >&6
24008 else
24009   case $GMSGFMT in
24010   [\\/]* | ?:[\\/]*)
24011   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
24012   ;;
24013   *)
24014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24015 for as_dir in $PATH
24016 do
24017   IFS=$as_save_IFS
24018   test -z "$as_dir" && as_dir=.
24019     for ac_exec_ext in '' $ac_executable_extensions; do
24020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24021     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
24022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24023     break 2
24024   fi
24025 done
24026   done
24027 IFS=$as_save_IFS
24028
24029   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
24030   ;;
24031 esac
24032 fi
24033 GMSGFMT=$ac_cv_path_GMSGFMT
24034 if test -n "$GMSGFMT"; then
24035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
24036 $as_echo "$GMSGFMT" >&6; }
24037 else
24038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24039 $as_echo "no" >&6; }
24040 fi
24041
24042
24043
24044     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
24045     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
24046     *) MSGFMT_015=$MSGFMT ;;
24047   esac
24048
24049   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
24050     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
24051     *) GMSGFMT_015=$GMSGFMT ;;
24052   esac
24053
24054
24055
24056 # Prepare PATH_SEPARATOR.
24057 # The user is always right.
24058 if test "${PATH_SEPARATOR+set}" != set; then
24059   echo "#! /bin/sh" >conf$$.sh
24060   echo  "exit 0"   >>conf$$.sh
24061   chmod +x conf$$.sh
24062   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24063     PATH_SEPARATOR=';'
24064   else
24065     PATH_SEPARATOR=:
24066   fi
24067   rm -f conf$$.sh
24068 fi
24069
24070 # Find out how to test for executable files. Don't use a zero-byte file,
24071 # as systems may use methods other than mode bits to determine executability.
24072 cat >conf$$.file <<_ASEOF
24073 #! /bin/sh
24074 exit 0
24075 _ASEOF
24076 chmod +x conf$$.file
24077 if test -x conf$$.file >/dev/null 2>&1; then
24078   ac_executable_p="test -x"
24079 else
24080   ac_executable_p="test -f"
24081 fi
24082 rm -f conf$$.file
24083
24084 # Extract the first word of "xgettext", so it can be a program name with args.
24085 set dummy xgettext; ac_word=$2
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24087 $as_echo_n "checking for $ac_word... " >&6; }
24088 if ${ac_cv_path_XGETTEXT+:} false; then :
24089   $as_echo_n "(cached) " >&6
24090 else
24091   case "$XGETTEXT" in
24092   [\\/]* | ?:[\\/]*)
24093     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
24094     ;;
24095   *)
24096     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
24097     for ac_dir in $PATH; do
24098       IFS="$ac_save_IFS"
24099       test -z "$ac_dir" && ac_dir=.
24100       for ac_exec_ext in '' $ac_executable_extensions; do
24101         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
24102           echo "$as_me: trying $ac_dir/$ac_word..." >&5
24103           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
24104      (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
24105             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
24106             break 2
24107           fi
24108         fi
24109       done
24110     done
24111     IFS="$ac_save_IFS"
24112   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
24113     ;;
24114 esac
24115 fi
24116 XGETTEXT="$ac_cv_path_XGETTEXT"
24117 if test "$XGETTEXT" != ":"; then
24118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
24119 $as_echo "$XGETTEXT" >&6; }
24120 else
24121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24122 $as_echo "no" >&6; }
24123 fi
24124
24125     rm -f messages.po
24126
24127     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
24128     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
24129     *) XGETTEXT_015=$XGETTEXT ;;
24130   esac
24131
24132
24133
24134 # Prepare PATH_SEPARATOR.
24135 # The user is always right.
24136 if test "${PATH_SEPARATOR+set}" != set; then
24137   echo "#! /bin/sh" >conf$$.sh
24138   echo  "exit 0"   >>conf$$.sh
24139   chmod +x conf$$.sh
24140   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24141     PATH_SEPARATOR=';'
24142   else
24143     PATH_SEPARATOR=:
24144   fi
24145   rm -f conf$$.sh
24146 fi
24147
24148 # Find out how to test for executable files. Don't use a zero-byte file,
24149 # as systems may use methods other than mode bits to determine executability.
24150 cat >conf$$.file <<_ASEOF
24151 #! /bin/sh
24152 exit 0
24153 _ASEOF
24154 chmod +x conf$$.file
24155 if test -x conf$$.file >/dev/null 2>&1; then
24156   ac_executable_p="test -x"
24157 else
24158   ac_executable_p="test -f"
24159 fi
24160 rm -f conf$$.file
24161
24162 # Extract the first word of "msgmerge", so it can be a program name with args.
24163 set dummy msgmerge; ac_word=$2
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24165 $as_echo_n "checking for $ac_word... " >&6; }
24166 if ${ac_cv_path_MSGMERGE+:} false; then :
24167   $as_echo_n "(cached) " >&6
24168 else
24169   case "$MSGMERGE" in
24170   [\\/]* | ?:[\\/]*)
24171     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
24172     ;;
24173   *)
24174     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
24175     for ac_dir in $PATH; do
24176       IFS="$ac_save_IFS"
24177       test -z "$ac_dir" && ac_dir=.
24178       for ac_exec_ext in '' $ac_executable_extensions; do
24179         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
24180           echo "$as_me: trying $ac_dir/$ac_word..." >&5
24181           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
24182             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
24183             break 2
24184           fi
24185         fi
24186       done
24187     done
24188     IFS="$ac_save_IFS"
24189   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
24190     ;;
24191 esac
24192 fi
24193 MSGMERGE="$ac_cv_path_MSGMERGE"
24194 if test "$MSGMERGE" != ":"; then
24195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
24196 $as_echo "$MSGMERGE" >&6; }
24197 else
24198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24199 $as_echo "no" >&6; }
24200 fi
24201
24202
24203         test -n "$localedir" || localedir='${datadir}/locale'
24204
24205
24206   ac_config_commands="$ac_config_commands po-directories"
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216     use_additional=yes
24217
24218   acl_save_prefix="$prefix"
24219   prefix="$acl_final_prefix"
24220   acl_save_exec_prefix="$exec_prefix"
24221   exec_prefix="$acl_final_exec_prefix"
24222
24223     eval additional_includedir=\"$includedir\"
24224     eval additional_libdir=\"$libdir\"
24225
24226   exec_prefix="$acl_save_exec_prefix"
24227   prefix="$acl_save_prefix"
24228
24229
24230 # Check whether --with-libiconv-prefix was given.
24231 if test "${with_libiconv_prefix+set}" = set; then :
24232   withval=$with_libiconv_prefix;
24233     if test "X$withval" = "Xno"; then
24234       use_additional=no
24235     else
24236       if test "X$withval" = "X"; then
24237
24238   acl_save_prefix="$prefix"
24239   prefix="$acl_final_prefix"
24240   acl_save_exec_prefix="$exec_prefix"
24241   exec_prefix="$acl_final_exec_prefix"
24242
24243           eval additional_includedir=\"$includedir\"
24244           eval additional_libdir=\"$libdir\"
24245
24246   exec_prefix="$acl_save_exec_prefix"
24247   prefix="$acl_save_prefix"
24248
24249       else
24250         additional_includedir="$withval/include"
24251         additional_libdir="$withval/$acl_libdirstem"
24252       fi
24253     fi
24254
24255 fi
24256
24257       LIBICONV=
24258   LTLIBICONV=
24259   INCICONV=
24260   rpathdirs=
24261   ltrpathdirs=
24262   names_already_handled=
24263   names_next_round='iconv '
24264   while test -n "$names_next_round"; do
24265     names_this_round="$names_next_round"
24266     names_next_round=
24267     for name in $names_this_round; do
24268       already_handled=
24269       for n in $names_already_handled; do
24270         if test "$n" = "$name"; then
24271           already_handled=yes
24272           break
24273         fi
24274       done
24275       if test -z "$already_handled"; then
24276         names_already_handled="$names_already_handled $name"
24277                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24278         eval value=\"\$HAVE_LIB$uppername\"
24279         if test -n "$value"; then
24280           if test "$value" = yes; then
24281             eval value=\"\$LIB$uppername\"
24282             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
24283             eval value=\"\$LTLIB$uppername\"
24284             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
24285           else
24286                                     :
24287           fi
24288         else
24289                               found_dir=
24290           found_la=
24291           found_so=
24292           found_a=
24293           if test $use_additional = yes; then
24294             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
24295               found_dir="$additional_libdir"
24296               found_so="$additional_libdir/lib$name.$shlibext"
24297               if test -f "$additional_libdir/lib$name.la"; then
24298                 found_la="$additional_libdir/lib$name.la"
24299               fi
24300             else
24301               if test -f "$additional_libdir/lib$name.$libext"; then
24302                 found_dir="$additional_libdir"
24303                 found_a="$additional_libdir/lib$name.$libext"
24304                 if test -f "$additional_libdir/lib$name.la"; then
24305                   found_la="$additional_libdir/lib$name.la"
24306                 fi
24307               fi
24308             fi
24309           fi
24310           if test "X$found_dir" = "X"; then
24311             for x in $LDFLAGS $LTLIBICONV; do
24312
24313   acl_save_prefix="$prefix"
24314   prefix="$acl_final_prefix"
24315   acl_save_exec_prefix="$exec_prefix"
24316   exec_prefix="$acl_final_exec_prefix"
24317   eval x=\"$x\"
24318   exec_prefix="$acl_save_exec_prefix"
24319   prefix="$acl_save_prefix"
24320
24321               case "$x" in
24322                 -L*)
24323                   dir=`echo "X$x" | sed -e 's/^X-L//'`
24324                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24325                     found_dir="$dir"
24326                     found_so="$dir/lib$name.$shlibext"
24327                     if test -f "$dir/lib$name.la"; then
24328                       found_la="$dir/lib$name.la"
24329                     fi
24330                   else
24331                     if test -f "$dir/lib$name.$libext"; then
24332                       found_dir="$dir"
24333                       found_a="$dir/lib$name.$libext"
24334                       if test -f "$dir/lib$name.la"; then
24335                         found_la="$dir/lib$name.la"
24336                       fi
24337                     fi
24338                   fi
24339                   ;;
24340               esac
24341               if test "X$found_dir" != "X"; then
24342                 break
24343               fi
24344             done
24345           fi
24346           if test "X$found_dir" != "X"; then
24347                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
24348             if test "X$found_so" != "X"; then
24349                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
24350                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24351               else
24352                                                                                 haveit=
24353                 for x in $ltrpathdirs; do
24354                   if test "X$x" = "X$found_dir"; then
24355                     haveit=yes
24356                     break
24357                   fi
24358                 done
24359                 if test -z "$haveit"; then
24360                   ltrpathdirs="$ltrpathdirs $found_dir"
24361                 fi
24362                                 if test "$hardcode_direct" = yes; then
24363                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24364                 else
24365                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24366                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24367                                                             haveit=
24368                     for x in $rpathdirs; do
24369                       if test "X$x" = "X$found_dir"; then
24370                         haveit=yes
24371                         break
24372                       fi
24373                     done
24374                     if test -z "$haveit"; then
24375                       rpathdirs="$rpathdirs $found_dir"
24376                     fi
24377                   else
24378                                                                                 haveit=
24379                     for x in $LDFLAGS $LIBICONV; do
24380
24381   acl_save_prefix="$prefix"
24382   prefix="$acl_final_prefix"
24383   acl_save_exec_prefix="$exec_prefix"
24384   exec_prefix="$acl_final_exec_prefix"
24385   eval x=\"$x\"
24386   exec_prefix="$acl_save_exec_prefix"
24387   prefix="$acl_save_prefix"
24388
24389                       if test "X$x" = "X-L$found_dir"; then
24390                         haveit=yes
24391                         break
24392                       fi
24393                     done
24394                     if test -z "$haveit"; then
24395                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
24396                     fi
24397                     if test "$hardcode_minus_L" != no; then
24398                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24399                     else
24400                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24401                     fi
24402                   fi
24403                 fi
24404               fi
24405             else
24406               if test "X$found_a" != "X"; then
24407                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
24408               else
24409                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
24410               fi
24411             fi
24412                         additional_includedir=
24413             case "$found_dir" in
24414               */$acl_libdirstem | */$acl_libdirstem/)
24415                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
24416                 additional_includedir="$basedir/include"
24417                 ;;
24418             esac
24419             if test "X$additional_includedir" != "X"; then
24420                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
24421                 haveit=
24422                 if test "X$additional_includedir" = "X/usr/local/include"; then
24423                   if test -n "$GCC"; then
24424                     case $host_os in
24425                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24426                     esac
24427                   fi
24428                 fi
24429                 if test -z "$haveit"; then
24430                   for x in $CPPFLAGS $INCICONV; do
24431
24432   acl_save_prefix="$prefix"
24433   prefix="$acl_final_prefix"
24434   acl_save_exec_prefix="$exec_prefix"
24435   exec_prefix="$acl_final_exec_prefix"
24436   eval x=\"$x\"
24437   exec_prefix="$acl_save_exec_prefix"
24438   prefix="$acl_save_prefix"
24439
24440                     if test "X$x" = "X-I$additional_includedir"; then
24441                       haveit=yes
24442                       break
24443                     fi
24444                   done
24445                   if test -z "$haveit"; then
24446                     if test -d "$additional_includedir"; then
24447                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
24448                     fi
24449                   fi
24450                 fi
24451               fi
24452             fi
24453                         if test -n "$found_la"; then
24454                                                         save_libdir="$libdir"
24455               case "$found_la" in
24456                 */* | *\\*) . "$found_la" ;;
24457                 *) . "./$found_la" ;;
24458               esac
24459               libdir="$save_libdir"
24460                             for dep in $dependency_libs; do
24461                 case "$dep" in
24462                   -L*)
24463                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24464                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
24465                       haveit=
24466                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
24467                         if test -n "$GCC"; then
24468                           case $host_os in
24469                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24470                           esac
24471                         fi
24472                       fi
24473                       if test -z "$haveit"; then
24474                         haveit=
24475                         for x in $LDFLAGS $LIBICONV; do
24476
24477   acl_save_prefix="$prefix"
24478   prefix="$acl_final_prefix"
24479   acl_save_exec_prefix="$exec_prefix"
24480   exec_prefix="$acl_final_exec_prefix"
24481   eval x=\"$x\"
24482   exec_prefix="$acl_save_exec_prefix"
24483   prefix="$acl_save_prefix"
24484
24485                           if test "X$x" = "X-L$additional_libdir"; then
24486                             haveit=yes
24487                             break
24488                           fi
24489                         done
24490                         if test -z "$haveit"; then
24491                           if test -d "$additional_libdir"; then
24492                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
24493                           fi
24494                         fi
24495                         haveit=
24496                         for x in $LDFLAGS $LTLIBICONV; do
24497
24498   acl_save_prefix="$prefix"
24499   prefix="$acl_final_prefix"
24500   acl_save_exec_prefix="$exec_prefix"
24501   exec_prefix="$acl_final_exec_prefix"
24502   eval x=\"$x\"
24503   exec_prefix="$acl_save_exec_prefix"
24504   prefix="$acl_save_prefix"
24505
24506                           if test "X$x" = "X-L$additional_libdir"; then
24507                             haveit=yes
24508                             break
24509                           fi
24510                         done
24511                         if test -z "$haveit"; then
24512                           if test -d "$additional_libdir"; then
24513                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
24514                           fi
24515                         fi
24516                       fi
24517                     fi
24518                     ;;
24519                   -R*)
24520                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
24521                     if test "$enable_rpath" != no; then
24522                                                                   haveit=
24523                       for x in $rpathdirs; do
24524                         if test "X$x" = "X$dir"; then
24525                           haveit=yes
24526                           break
24527                         fi
24528                       done
24529                       if test -z "$haveit"; then
24530                         rpathdirs="$rpathdirs $dir"
24531                       fi
24532                                                                   haveit=
24533                       for x in $ltrpathdirs; do
24534                         if test "X$x" = "X$dir"; then
24535                           haveit=yes
24536                           break
24537                         fi
24538                       done
24539                       if test -z "$haveit"; then
24540                         ltrpathdirs="$ltrpathdirs $dir"
24541                       fi
24542                     fi
24543                     ;;
24544                   -l*)
24545                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24546                     ;;
24547                   *.la)
24548                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24549                     ;;
24550                   *)
24551                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
24552                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
24553                     ;;
24554                 esac
24555               done
24556             fi
24557           else
24558                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24559             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
24560           fi
24561         fi
24562       fi
24563     done
24564   done
24565   if test "X$rpathdirs" != "X"; then
24566     if test -n "$hardcode_libdir_separator"; then
24567                         alldirs=
24568       for found_dir in $rpathdirs; do
24569         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24570       done
24571             acl_save_libdir="$libdir"
24572       libdir="$alldirs"
24573       eval flag=\"$hardcode_libdir_flag_spec\"
24574       libdir="$acl_save_libdir"
24575       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24576     else
24577             for found_dir in $rpathdirs; do
24578         acl_save_libdir="$libdir"
24579         libdir="$found_dir"
24580         eval flag=\"$hardcode_libdir_flag_spec\"
24581         libdir="$acl_save_libdir"
24582         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24583       done
24584     fi
24585   fi
24586   if test "X$ltrpathdirs" != "X"; then
24587             for found_dir in $ltrpathdirs; do
24588       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
24589     done
24590   fi
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
24610 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
24611 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
24612   $as_echo_n "(cached) " >&6
24613 else
24614   gt_save_LIBS="$LIBS"
24615      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24616      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24617 /* end confdefs.h.  */
24618 #include <CoreFoundation/CFPreferences.h>
24619 int
24620 main ()
24621 {
24622 CFPreferencesCopyAppValue(NULL, NULL)
24623   ;
24624   return 0;
24625 }
24626 _ACEOF
24627 if ac_fn_c_try_link "$LINENO"; then :
24628   gt_cv_func_CFPreferencesCopyAppValue=yes
24629 else
24630   gt_cv_func_CFPreferencesCopyAppValue=no
24631 fi
24632 rm -f core conftest.err conftest.$ac_objext \
24633     conftest$ac_exeext conftest.$ac_ext
24634      LIBS="$gt_save_LIBS"
24635 fi
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
24637 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
24638   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
24639
24640 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
24641
24642   fi
24643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
24644 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
24645 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
24646   $as_echo_n "(cached) " >&6
24647 else
24648   gt_save_LIBS="$LIBS"
24649      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
24650      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24651 /* end confdefs.h.  */
24652 #include <CoreFoundation/CFLocale.h>
24653 int
24654 main ()
24655 {
24656 CFLocaleCopyCurrent();
24657   ;
24658   return 0;
24659 }
24660 _ACEOF
24661 if ac_fn_c_try_link "$LINENO"; then :
24662   gt_cv_func_CFLocaleCopyCurrent=yes
24663 else
24664   gt_cv_func_CFLocaleCopyCurrent=no
24665 fi
24666 rm -f core conftest.err conftest.$ac_objext \
24667     conftest$ac_exeext conftest.$ac_ext
24668      LIBS="$gt_save_LIBS"
24669 fi
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
24671 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
24672   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24673
24674 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
24675
24676   fi
24677   INTL_MACOSX_LIBS=
24678   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
24679     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
24680   fi
24681
24682
24683
24684
24685
24686
24687   LIBINTL=
24688   LTLIBINTL=
24689   POSUB=
24690
24691     if test "$USE_NLS" = "yes"; then
24692     gt_use_preinstalled_gnugettext=no
24693
24694
24695
24696
24697
24698
24699         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
24700 $as_echo_n "checking for GNU gettext in libc... " >&6; }
24701 if ${gt_cv_func_gnugettext1_libc+:} false; then :
24702   $as_echo_n "(cached) " >&6
24703 else
24704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24705 /* end confdefs.h.  */
24706 #include <libintl.h>
24707 extern int _nl_msg_cat_cntr;
24708 extern int *_nl_domain_bindings;
24709 int
24710 main ()
24711 {
24712 bindtextdomain ("", "");
24713 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
24714   ;
24715   return 0;
24716 }
24717 _ACEOF
24718 if ac_fn_c_try_link "$LINENO"; then :
24719   gt_cv_func_gnugettext1_libc=yes
24720 else
24721   gt_cv_func_gnugettext1_libc=no
24722 fi
24723 rm -f core conftest.err conftest.$ac_objext \
24724     conftest$ac_exeext conftest.$ac_ext
24725 fi
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
24727 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
24728
24729         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
24730
24731
24732
24733
24734
24735           am_save_CPPFLAGS="$CPPFLAGS"
24736
24737   for element in $INCICONV; do
24738     haveit=
24739     for x in $CPPFLAGS; do
24740
24741   acl_save_prefix="$prefix"
24742   prefix="$acl_final_prefix"
24743   acl_save_exec_prefix="$exec_prefix"
24744   exec_prefix="$acl_final_exec_prefix"
24745   eval x=\"$x\"
24746   exec_prefix="$acl_save_exec_prefix"
24747   prefix="$acl_save_prefix"
24748
24749       if test "X$x" = "X$element"; then
24750         haveit=yes
24751         break
24752       fi
24753     done
24754     if test -z "$haveit"; then
24755       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24756     fi
24757   done
24758
24759
24760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
24761 $as_echo_n "checking for iconv... " >&6; }
24762 if ${am_cv_func_iconv+:} false; then :
24763   $as_echo_n "(cached) " >&6
24764 else
24765
24766     am_cv_func_iconv="no, consider installing GNU libiconv"
24767     am_cv_lib_iconv=no
24768     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24769 /* end confdefs.h.  */
24770 #include <stdlib.h>
24771 #include <iconv.h>
24772 int
24773 main ()
24774 {
24775 iconv_t cd = iconv_open("","");
24776        iconv(cd,NULL,NULL,NULL,NULL);
24777        iconv_close(cd);
24778   ;
24779   return 0;
24780 }
24781 _ACEOF
24782 if ac_fn_c_try_link "$LINENO"; then :
24783   am_cv_func_iconv=yes
24784 fi
24785 rm -f core conftest.err conftest.$ac_objext \
24786     conftest$ac_exeext conftest.$ac_ext
24787     if test "$am_cv_func_iconv" != yes; then
24788       am_save_LIBS="$LIBS"
24789       LIBS="$LIBS $LIBICONV"
24790       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24791 /* end confdefs.h.  */
24792 #include <stdlib.h>
24793 #include <iconv.h>
24794 int
24795 main ()
24796 {
24797 iconv_t cd = iconv_open("","");
24798          iconv(cd,NULL,NULL,NULL,NULL);
24799          iconv_close(cd);
24800   ;
24801   return 0;
24802 }
24803 _ACEOF
24804 if ac_fn_c_try_link "$LINENO"; then :
24805   am_cv_lib_iconv=yes
24806         am_cv_func_iconv=yes
24807 fi
24808 rm -f core conftest.err conftest.$ac_objext \
24809     conftest$ac_exeext conftest.$ac_ext
24810       LIBS="$am_save_LIBS"
24811     fi
24812
24813 fi
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
24815 $as_echo "$am_cv_func_iconv" >&6; }
24816   if test "$am_cv_func_iconv" = yes; then
24817
24818 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
24819
24820   fi
24821   if test "$am_cv_lib_iconv" = yes; then
24822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
24823 $as_echo_n "checking how to link with libiconv... " >&6; }
24824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
24825 $as_echo "$LIBICONV" >&6; }
24826   else
24827             CPPFLAGS="$am_save_CPPFLAGS"
24828     LIBICONV=
24829     LTLIBICONV=
24830   fi
24831
24832
24833
24834
24835
24836
24837
24838     use_additional=yes
24839
24840   acl_save_prefix="$prefix"
24841   prefix="$acl_final_prefix"
24842   acl_save_exec_prefix="$exec_prefix"
24843   exec_prefix="$acl_final_exec_prefix"
24844
24845     eval additional_includedir=\"$includedir\"
24846     eval additional_libdir=\"$libdir\"
24847
24848   exec_prefix="$acl_save_exec_prefix"
24849   prefix="$acl_save_prefix"
24850
24851
24852 # Check whether --with-libintl-prefix was given.
24853 if test "${with_libintl_prefix+set}" = set; then :
24854   withval=$with_libintl_prefix;
24855     if test "X$withval" = "Xno"; then
24856       use_additional=no
24857     else
24858       if test "X$withval" = "X"; then
24859
24860   acl_save_prefix="$prefix"
24861   prefix="$acl_final_prefix"
24862   acl_save_exec_prefix="$exec_prefix"
24863   exec_prefix="$acl_final_exec_prefix"
24864
24865           eval additional_includedir=\"$includedir\"
24866           eval additional_libdir=\"$libdir\"
24867
24868   exec_prefix="$acl_save_exec_prefix"
24869   prefix="$acl_save_prefix"
24870
24871       else
24872         additional_includedir="$withval/include"
24873         additional_libdir="$withval/$acl_libdirstem"
24874       fi
24875     fi
24876
24877 fi
24878
24879       LIBINTL=
24880   LTLIBINTL=
24881   INCINTL=
24882   rpathdirs=
24883   ltrpathdirs=
24884   names_already_handled=
24885   names_next_round='intl '
24886   while test -n "$names_next_round"; do
24887     names_this_round="$names_next_round"
24888     names_next_round=
24889     for name in $names_this_round; do
24890       already_handled=
24891       for n in $names_already_handled; do
24892         if test "$n" = "$name"; then
24893           already_handled=yes
24894           break
24895         fi
24896       done
24897       if test -z "$already_handled"; then
24898         names_already_handled="$names_already_handled $name"
24899                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24900         eval value=\"\$HAVE_LIB$uppername\"
24901         if test -n "$value"; then
24902           if test "$value" = yes; then
24903             eval value=\"\$LIB$uppername\"
24904             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
24905             eval value=\"\$LTLIB$uppername\"
24906             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
24907           else
24908                                     :
24909           fi
24910         else
24911                               found_dir=
24912           found_la=
24913           found_so=
24914           found_a=
24915           if test $use_additional = yes; then
24916             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
24917               found_dir="$additional_libdir"
24918               found_so="$additional_libdir/lib$name.$shlibext"
24919               if test -f "$additional_libdir/lib$name.la"; then
24920                 found_la="$additional_libdir/lib$name.la"
24921               fi
24922             else
24923               if test -f "$additional_libdir/lib$name.$libext"; then
24924                 found_dir="$additional_libdir"
24925                 found_a="$additional_libdir/lib$name.$libext"
24926                 if test -f "$additional_libdir/lib$name.la"; then
24927                   found_la="$additional_libdir/lib$name.la"
24928                 fi
24929               fi
24930             fi
24931           fi
24932           if test "X$found_dir" = "X"; then
24933             for x in $LDFLAGS $LTLIBINTL; do
24934
24935   acl_save_prefix="$prefix"
24936   prefix="$acl_final_prefix"
24937   acl_save_exec_prefix="$exec_prefix"
24938   exec_prefix="$acl_final_exec_prefix"
24939   eval x=\"$x\"
24940   exec_prefix="$acl_save_exec_prefix"
24941   prefix="$acl_save_prefix"
24942
24943               case "$x" in
24944                 -L*)
24945                   dir=`echo "X$x" | sed -e 's/^X-L//'`
24946                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
24947                     found_dir="$dir"
24948                     found_so="$dir/lib$name.$shlibext"
24949                     if test -f "$dir/lib$name.la"; then
24950                       found_la="$dir/lib$name.la"
24951                     fi
24952                   else
24953                     if test -f "$dir/lib$name.$libext"; then
24954                       found_dir="$dir"
24955                       found_a="$dir/lib$name.$libext"
24956                       if test -f "$dir/lib$name.la"; then
24957                         found_la="$dir/lib$name.la"
24958                       fi
24959                     fi
24960                   fi
24961                   ;;
24962               esac
24963               if test "X$found_dir" != "X"; then
24964                 break
24965               fi
24966             done
24967           fi
24968           if test "X$found_dir" != "X"; then
24969                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
24970             if test "X$found_so" != "X"; then
24971                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
24972                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24973               else
24974                                                                                 haveit=
24975                 for x in $ltrpathdirs; do
24976                   if test "X$x" = "X$found_dir"; then
24977                     haveit=yes
24978                     break
24979                   fi
24980                 done
24981                 if test -z "$haveit"; then
24982                   ltrpathdirs="$ltrpathdirs $found_dir"
24983                 fi
24984                                 if test "$hardcode_direct" = yes; then
24985                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24986                 else
24987                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24988                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
24989                                                             haveit=
24990                     for x in $rpathdirs; do
24991                       if test "X$x" = "X$found_dir"; then
24992                         haveit=yes
24993                         break
24994                       fi
24995                     done
24996                     if test -z "$haveit"; then
24997                       rpathdirs="$rpathdirs $found_dir"
24998                     fi
24999                   else
25000                                                                                 haveit=
25001                     for x in $LDFLAGS $LIBINTL; do
25002
25003   acl_save_prefix="$prefix"
25004   prefix="$acl_final_prefix"
25005   acl_save_exec_prefix="$exec_prefix"
25006   exec_prefix="$acl_final_exec_prefix"
25007   eval x=\"$x\"
25008   exec_prefix="$acl_save_exec_prefix"
25009   prefix="$acl_save_prefix"
25010
25011                       if test "X$x" = "X-L$found_dir"; then
25012                         haveit=yes
25013                         break
25014                       fi
25015                     done
25016                     if test -z "$haveit"; then
25017                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
25018                     fi
25019                     if test "$hardcode_minus_L" != no; then
25020                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
25021                     else
25022                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
25023                     fi
25024                   fi
25025                 fi
25026               fi
25027             else
25028               if test "X$found_a" != "X"; then
25029                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
25030               else
25031                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
25032               fi
25033             fi
25034                         additional_includedir=
25035             case "$found_dir" in
25036               */$acl_libdirstem | */$acl_libdirstem/)
25037                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
25038                 additional_includedir="$basedir/include"
25039                 ;;
25040             esac
25041             if test "X$additional_includedir" != "X"; then
25042                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
25043                 haveit=
25044                 if test "X$additional_includedir" = "X/usr/local/include"; then
25045                   if test -n "$GCC"; then
25046                     case $host_os in
25047                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25048                     esac
25049                   fi
25050                 fi
25051                 if test -z "$haveit"; then
25052                   for x in $CPPFLAGS $INCINTL; do
25053
25054   acl_save_prefix="$prefix"
25055   prefix="$acl_final_prefix"
25056   acl_save_exec_prefix="$exec_prefix"
25057   exec_prefix="$acl_final_exec_prefix"
25058   eval x=\"$x\"
25059   exec_prefix="$acl_save_exec_prefix"
25060   prefix="$acl_save_prefix"
25061
25062                     if test "X$x" = "X-I$additional_includedir"; then
25063                       haveit=yes
25064                       break
25065                     fi
25066                   done
25067                   if test -z "$haveit"; then
25068                     if test -d "$additional_includedir"; then
25069                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
25070                     fi
25071                   fi
25072                 fi
25073               fi
25074             fi
25075                         if test -n "$found_la"; then
25076                                                         save_libdir="$libdir"
25077               case "$found_la" in
25078                 */* | *\\*) . "$found_la" ;;
25079                 *) . "./$found_la" ;;
25080               esac
25081               libdir="$save_libdir"
25082                             for dep in $dependency_libs; do
25083                 case "$dep" in
25084                   -L*)
25085                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25086                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
25087                       haveit=
25088                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
25089                         if test -n "$GCC"; then
25090                           case $host_os in
25091                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25092                           esac
25093                         fi
25094                       fi
25095                       if test -z "$haveit"; then
25096                         haveit=
25097                         for x in $LDFLAGS $LIBINTL; do
25098
25099   acl_save_prefix="$prefix"
25100   prefix="$acl_final_prefix"
25101   acl_save_exec_prefix="$exec_prefix"
25102   exec_prefix="$acl_final_exec_prefix"
25103   eval x=\"$x\"
25104   exec_prefix="$acl_save_exec_prefix"
25105   prefix="$acl_save_prefix"
25106
25107                           if test "X$x" = "X-L$additional_libdir"; then
25108                             haveit=yes
25109                             break
25110                           fi
25111                         done
25112                         if test -z "$haveit"; then
25113                           if test -d "$additional_libdir"; then
25114                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
25115                           fi
25116                         fi
25117                         haveit=
25118                         for x in $LDFLAGS $LTLIBINTL; do
25119
25120   acl_save_prefix="$prefix"
25121   prefix="$acl_final_prefix"
25122   acl_save_exec_prefix="$exec_prefix"
25123   exec_prefix="$acl_final_exec_prefix"
25124   eval x=\"$x\"
25125   exec_prefix="$acl_save_exec_prefix"
25126   prefix="$acl_save_prefix"
25127
25128                           if test "X$x" = "X-L$additional_libdir"; then
25129                             haveit=yes
25130                             break
25131                           fi
25132                         done
25133                         if test -z "$haveit"; then
25134                           if test -d "$additional_libdir"; then
25135                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
25136                           fi
25137                         fi
25138                       fi
25139                     fi
25140                     ;;
25141                   -R*)
25142                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
25143                     if test "$enable_rpath" != no; then
25144                                                                   haveit=
25145                       for x in $rpathdirs; do
25146                         if test "X$x" = "X$dir"; then
25147                           haveit=yes
25148                           break
25149                         fi
25150                       done
25151                       if test -z "$haveit"; then
25152                         rpathdirs="$rpathdirs $dir"
25153                       fi
25154                                                                   haveit=
25155                       for x in $ltrpathdirs; do
25156                         if test "X$x" = "X$dir"; then
25157                           haveit=yes
25158                           break
25159                         fi
25160                       done
25161                       if test -z "$haveit"; then
25162                         ltrpathdirs="$ltrpathdirs $dir"
25163                       fi
25164                     fi
25165                     ;;
25166                   -l*)
25167                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25168                     ;;
25169                   *.la)
25170                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25171                     ;;
25172                   *)
25173                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
25174                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
25175                     ;;
25176                 esac
25177               done
25178             fi
25179           else
25180                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
25181             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
25182           fi
25183         fi
25184       fi
25185     done
25186   done
25187   if test "X$rpathdirs" != "X"; then
25188     if test -n "$hardcode_libdir_separator"; then
25189                         alldirs=
25190       for found_dir in $rpathdirs; do
25191         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
25192       done
25193             acl_save_libdir="$libdir"
25194       libdir="$alldirs"
25195       eval flag=\"$hardcode_libdir_flag_spec\"
25196       libdir="$acl_save_libdir"
25197       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
25198     else
25199             for found_dir in $rpathdirs; do
25200         acl_save_libdir="$libdir"
25201         libdir="$found_dir"
25202         eval flag=\"$hardcode_libdir_flag_spec\"
25203         libdir="$acl_save_libdir"
25204         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
25205       done
25206     fi
25207   fi
25208   if test "X$ltrpathdirs" != "X"; then
25209             for found_dir in $ltrpathdirs; do
25210       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
25211     done
25212   fi
25213
25214           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
25215 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
25216 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
25217   $as_echo_n "(cached) " >&6
25218 else
25219   gt_save_CPPFLAGS="$CPPFLAGS"
25220             CPPFLAGS="$CPPFLAGS $INCINTL"
25221             gt_save_LIBS="$LIBS"
25222             LIBS="$LIBS $LIBINTL"
25223                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25224 /* end confdefs.h.  */
25225 #include <libintl.h>
25226 extern int _nl_msg_cat_cntr;
25227 extern
25228 #ifdef __cplusplus
25229 "C"
25230 #endif
25231 const char *_nl_expand_alias (const char *);
25232 int
25233 main ()
25234 {
25235 bindtextdomain ("", "");
25236 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
25237   ;
25238   return 0;
25239 }
25240 _ACEOF
25241 if ac_fn_c_try_link "$LINENO"; then :
25242   gt_cv_func_gnugettext1_libintl=yes
25243 else
25244   gt_cv_func_gnugettext1_libintl=no
25245 fi
25246 rm -f core conftest.err conftest.$ac_objext \
25247     conftest$ac_exeext conftest.$ac_ext
25248                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
25249               LIBS="$LIBS $LIBICONV"
25250               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25251 /* end confdefs.h.  */
25252 #include <libintl.h>
25253 extern int _nl_msg_cat_cntr;
25254 extern
25255 #ifdef __cplusplus
25256 "C"
25257 #endif
25258 const char *_nl_expand_alias (const char *);
25259 int
25260 main ()
25261 {
25262 bindtextdomain ("", "");
25263 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
25264   ;
25265   return 0;
25266 }
25267 _ACEOF
25268 if ac_fn_c_try_link "$LINENO"; then :
25269   LIBINTL="$LIBINTL $LIBICONV"
25270                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
25271                 gt_cv_func_gnugettext1_libintl=yes
25272
25273 fi
25274 rm -f core conftest.err conftest.$ac_objext \
25275     conftest$ac_exeext conftest.$ac_ext
25276             fi
25277             CPPFLAGS="$gt_save_CPPFLAGS"
25278             LIBS="$gt_save_LIBS"
25279 fi
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
25281 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
25282         fi
25283
25284                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
25285            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
25286                 && test "$PACKAGE" != gettext-runtime \
25287                 && test "$PACKAGE" != gettext-tools; }; then
25288           gt_use_preinstalled_gnugettext=yes
25289         else
25290                     LIBINTL=
25291           LTLIBINTL=
25292           INCINTL=
25293         fi
25294
25295
25296
25297     if test -n "$INTL_MACOSX_LIBS"; then
25298       if test "$gt_use_preinstalled_gnugettext" = "yes" \
25299          || test "$nls_cv_use_gnu_gettext" = "yes"; then
25300                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
25301         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
25302       fi
25303     fi
25304
25305     if test "$gt_use_preinstalled_gnugettext" = "yes" \
25306        || test "$nls_cv_use_gnu_gettext" = "yes"; then
25307
25308 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
25309
25310     else
25311       USE_NLS=no
25312     fi
25313   fi
25314
25315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
25316 $as_echo_n "checking whether to use NLS... " >&6; }
25317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
25318 $as_echo "$USE_NLS" >&6; }
25319   if test "$USE_NLS" = "yes"; then
25320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
25321 $as_echo_n "checking where the gettext function comes from... " >&6; }
25322     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25323       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
25324         gt_source="external libintl"
25325       else
25326         gt_source="libc"
25327       fi
25328     else
25329       gt_source="included intl directory"
25330     fi
25331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
25332 $as_echo "$gt_source" >&6; }
25333   fi
25334
25335   if test "$USE_NLS" = "yes"; then
25336
25337     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
25338       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
25339         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
25340 $as_echo_n "checking how to link with libintl... " >&6; }
25341         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
25342 $as_echo "$LIBINTL" >&6; }
25343
25344   for element in $INCINTL; do
25345     haveit=
25346     for x in $CPPFLAGS; do
25347
25348   acl_save_prefix="$prefix"
25349   prefix="$acl_final_prefix"
25350   acl_save_exec_prefix="$exec_prefix"
25351   exec_prefix="$acl_final_exec_prefix"
25352   eval x=\"$x\"
25353   exec_prefix="$acl_save_exec_prefix"
25354   prefix="$acl_save_prefix"
25355
25356       if test "X$x" = "X$element"; then
25357         haveit=yes
25358         break
25359       fi
25360     done
25361     if test -z "$haveit"; then
25362       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25363     fi
25364   done
25365
25366       fi
25367
25368
25369 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
25370
25371
25372 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
25373
25374     fi
25375
25376         POSUB=po
25377   fi
25378
25379
25380
25381     INTLLIBS="$LIBINTL"
25382
25383
25384
25385
25386
25387
25388
25389 #
25390 # Security (authentication) mechansims
25391 #
25392
25393     BSD_SECURITY="yes"
25394
25395 # Check whether --with-bsd-security was given.
25396 if test "${with_bsd_security+set}" = set; then :
25397   withval=$with_bsd_security;
25398             case "$withval" in
25399                 n | no) BSD_SECURITY=no ;;
25400                 y |  ye | yes) BSD_SECURITY=yes ;;
25401                 *) as_fn_error $? "*** You must not supply an argument to --without-bsd-security." "$LINENO" 5
25402                     ;;
25403             esac
25404
25405 fi
25406
25407
25408     USE_AMANDAHOSTS=yes
25409
25410 # Check whether --with-amandahosts was given.
25411 if test "${with_amandahosts+set}" = set; then :
25412   withval=$with_amandahosts;
25413             case "$withval" in
25414                 n | no ) USE_AMANDAHOSTS=no ;;
25415                 y |  ye | yes) USE_AMANDAHOSTS=yes ;;
25416                 *) as_fn_error $? "*** You must not supply an argument to --without-amandahosts option." "$LINENO" 5
25417                   ;;
25418             esac
25419
25420
25421 fi
25422
25423
25424     if test "x$BSD_SECURITY" = "xyes"; then
25425
25426 $as_echo "#define BSD_SECURITY 1" >>confdefs.h
25427
25428         if test "x$USE_AMANDAHOSTS" = "xyes"; then
25429
25430 $as_echo "#define USE_AMANDAHOSTS 1" >>confdefs.h
25431
25432         fi
25433     fi
25434
25435      if test x"$BSD_SECURITY" = x"yes"; then
25436   WANT_BSD_SECURITY_TRUE=
25437   WANT_BSD_SECURITY_FALSE='#'
25438 else
25439   WANT_BSD_SECURITY_TRUE='#'
25440   WANT_BSD_SECURITY_FALSE=
25441 fi
25442
25443
25444
25445
25446
25447     BSDTCP_SECURITY="yes"
25448
25449 # Check whether --with-bsdtcp-security was given.
25450 if test "${with_bsdtcp_security+set}" = set; then :
25451   withval=$with_bsdtcp_security;
25452             case "$withval" in
25453                 n | no) BSDTCP_SECURITY=no ;;
25454                 y |  ye | yes) BSDTCP_SECURITY=yes ;;
25455                 *) as_fn_error $? "*** You must not supply an argument to --with-bsdtcp-security." "$LINENO" 5
25456               ;;
25457             esac
25458
25459 fi
25460
25461
25462     if test "x$BSDTCP_SECURITY" = "xyes"; then
25463
25464 $as_echo "#define BSDTCP_SECURITY 1" >>confdefs.h
25465
25466     fi
25467
25468      if test x"$BSDTCP_SECURITY" = x"yes"; then
25469   WANT_BSDTCP_SECURITY_TRUE=
25470   WANT_BSDTCP_SECURITY_FALSE='#'
25471 else
25472   WANT_BSDTCP_SECURITY_TRUE='#'
25473   WANT_BSDTCP_SECURITY_FALSE=
25474 fi
25475
25476
25477
25478
25479     BSDUDP_SECURITY="no"
25480
25481 # Check whether --with-bsdudp-security was given.
25482 if test "${with_bsdudp_security+set}" = set; then :
25483   withval=$with_bsdudp_security;
25484             case "$withval" in
25485                 n | no) : ;;
25486                 y |  ye | yes) BSDUDP_SECURITY=yes ;;
25487                 *) as_fn_error $? "*** You must not supply an argument to --with-bsdudp-security." "$LINENO" 5
25488               ;;
25489             esac
25490
25491 fi
25492
25493
25494     if test "x$BSDUDP_SECURITY" = "xyes"; then
25495
25496 $as_echo "#define BSDUDP_SECURITY 1" >>confdefs.h
25497
25498     fi
25499
25500      if test x"$BSDUDP_SECURITY" = x"yes"; then
25501   WANT_BSDUDP_SECURITY_TRUE=
25502   WANT_BSDUDP_SECURITY_FALSE='#'
25503 else
25504   WANT_BSDUDP_SECURITY_TRUE='#'
25505   WANT_BSDUDP_SECURITY_FALSE=
25506 fi
25507
25508
25509
25510
25511     RSH_SECURITY=no
25512
25513 # Check whether --with-rsh-security was given.
25514 if test "${with_rsh_security+set}" = set; then :
25515   withval=$with_rsh_security;
25516             case "$withval" in
25517                 n | no) : ;;
25518                 y |  ye | yes) RSH_SECURITY=yes ;;
25519                 *) as_fn_error $? "*** You must not supply an argument to --with-rsh-security." "$LINENO" 5
25520               ;;
25521             esac
25522
25523 fi
25524
25525
25526     if test "x$RSH_SECURITY" = "xyes"; then
25527
25528 $as_echo "#define RSH_SECURITY 1" >>confdefs.h
25529
25530     fi
25531      if test x"$RSH_SECURITY" = x"yes"; then
25532   WANT_RSH_SECURITY_TRUE=
25533   WANT_RSH_SECURITY_FALSE='#'
25534 else
25535   WANT_RSH_SECURITY_TRUE='#'
25536   WANT_RSH_SECURITY_FALSE=
25537 fi
25538
25539
25540
25541
25542     SSH_SECURITY=yes
25543
25544 # Check whether --with-ssh-security was given.
25545 if test "${with_ssh_security+set}" = set; then :
25546   withval=$with_ssh_security;
25547             case "$withval" in
25548                 n | no) SSH_SECURITY=no ;;
25549                 y |  ye | yes) SSH_SECURITY=yes ;;
25550                 *) as_fn_error $? "*** You must not supply an argument to --with-ssh-security." "$LINENO" 5
25551               ;;
25552             esac
25553
25554 fi
25555
25556
25557     if test "x$SSH_SECURITY" = "xyes"; then
25558         # find the SSH binary
25559         for ac_prog in ssh
25560 do
25561   # Extract the first word of "$ac_prog", so it can be a program name with args.
25562 set dummy $ac_prog; ac_word=$2
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25564 $as_echo_n "checking for $ac_word... " >&6; }
25565 if ${ac_cv_path_SSH+:} false; then :
25566   $as_echo_n "(cached) " >&6
25567 else
25568   case $SSH in
25569   [\\/]* | ?:[\\/]*)
25570   ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
25571   ;;
25572   *)
25573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25574 for as_dir in $LOCSYSPATH
25575 do
25576   IFS=$as_save_IFS
25577   test -z "$as_dir" && as_dir=.
25578     for ac_exec_ext in '' $ac_executable_extensions; do
25579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25580     ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
25581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25582     break 2
25583   fi
25584 done
25585   done
25586 IFS=$as_save_IFS
25587
25588   ;;
25589 esac
25590 fi
25591 SSH=$ac_cv_path_SSH
25592 if test -n "$SSH"; then
25593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSH" >&5
25594 $as_echo "$SSH" >&6; }
25595 else
25596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25597 $as_echo "no" >&6; }
25598 fi
25599
25600
25601   test -n "$SSH" && break
25602 done
25603
25604
25605         # see what options we should use
25606
25607 # Check whether --with-ssh-options was given.
25608 if test "${with_ssh_options+set}" = set; then :
25609   withval=$with_ssh_options;  SSH_OPTIONS="$withval"
25610 else
25611    SSH_OPTIONS=''
25612
25613 fi
25614
25615
25616         case "$SSH_OPTIONS" in
25617             y | ye | yes | n | no)
25618                 as_fn_error $? "*** You must supply an argument to --with-ssh-options." "$LINENO" 5;;
25619             *) : ;;
25620         esac
25621
25622         { $as_echo "$as_me:${as_lineno-$LINENO}: checking SSH options" >&5
25623 $as_echo_n "checking SSH options... " >&6; }
25624         # if we didn't get SSH options from the user, figure them out for ourselves
25625         if test -z "$SSH_OPTIONS"; then
25626             case `$SSH -V 2>&1` in
25627                 OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
25628                 *) SSH_OPTIONS='-x -o BatchMode=yes' ;;
25629             esac
25630         fi
25631
25632         # now convert that to a comma-separated list of C strings
25633         eval "set dummy ${SSH_OPTIONS}"; shift
25634         SSH_OPTIONS=''
25635         for i in "${@}"; do
25636             quoted="\"`echo "$i" | sed -e 's/\"/\\\"/'`\""
25637             SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }$quoted";
25638         done
25639         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSH_OPTIONS" >&5
25640 $as_echo "$SSH_OPTIONS" >&6; }
25641
25642         # finally, make the various outputs for all of this
25643
25644 $as_echo "#define SSH_SECURITY 1" >>confdefs.h
25645
25646
25647 cat >>confdefs.h <<_ACEOF
25648 #define SSH "$SSH"
25649 _ACEOF
25650
25651
25652 cat >>confdefs.h <<_ACEOF
25653 #define SSH_OPTIONS $SSH_OPTIONS
25654 _ACEOF
25655
25656     fi
25657      if test x"$SSH_SECURITY" = x"yes"; then
25658   WANT_SSH_SECURITY_TRUE=
25659   WANT_SSH_SECURITY_FALSE='#'
25660 else
25661   WANT_SSH_SECURITY_TRUE='#'
25662   WANT_SSH_SECURITY_FALSE=
25663 fi
25664
25665
25666
25667     # (note -- don't just substitute SSH_OPTIONS -- shell quoting will break)
25668
25669
25670     # Specify --with-krb5-security if Kerberos software is in somewhere
25671     # other than the listed KRB5_SPOTS.  We only compile kerberos support in
25672     # if the right files are there.
25673
25674     KRB5_SECURITY="no"
25675     : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
25676
25677
25678 # Check whether --with-krb5-security was given.
25679 if test "${with_krb5_security+set}" = set; then :
25680   withval=$with_krb5_security;
25681             case "$withval" in
25682                 n | no) KRB5_SECURITY=no ;;
25683                 y | ye | yes) KRB5_SECURITY=yes ;;
25684                 *) KRB5_SPOTS="$KRB5_SECURITY"
25685                    KRB5_SECURITY=yes
25686                    ;;
25687             esac
25688
25689
25690 fi
25691
25692
25693     if test "x$KRB5_SECURITY" = "xyes"; then
25694         # if found, force the static versions of these libs (.a) by linking directly
25695         # with the .a files.  I don't know how to get -R dependancies checked
25696         # in autoconf at this time. -kashmir
25697         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos V libraries" >&5
25698 $as_echo_n "checking for Kerberos V libraries... " >&6; }
25699         KRB5_DIR_FOUND=""
25700         for dir in $KRB5_SPOTS; do
25701           for lib in lib lib64; do
25702             k5libdir=${dir}/${lib}
25703             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
25704                 if test -f ${k5libdir}/libk5crypto.a -o -f ${k5libdir}/libk5crypto.so; then
25705                     K5CRYPTO=-lk5crypto
25706                 elif test -f ${k5libdir}/libcrypto.a -o -f ${k5libdir}/libcrypto.so; then
25707                     K5CRYPTO=-lcrypto
25708                 else
25709                     K5CRYPTO=""
25710                 fi
25711                 if test -f ${k5libdir}/libkrb5support.a -o -f ${k5libdir}/libkrb5support.so; then
25712                     K5SUPPORT=-lkrb5support
25713                 else
25714                     K5SUPPORT=""
25715                 fi
25716                 KRB5_DIR_FOUND=$dir
25717                 KRB5_LIBDIR_FOUND=$k5libdir
25718                 LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err $LIBS"
25719
25720                 break
25721             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
25722                 LIBS="-lgssapi -lkrb5 -lasn1 $LIBS"
25723
25724                 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL_INCLUDES"
25725
25726                 break
25727             fi
25728           done
25729         done
25730
25731         if test "$KRB5_DIR_FOUND"; then
25732             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $KRB5_DIR_FOUND" >&5
25733 $as_echo "found in $KRB5_DIR_FOUND" >&6; }
25734             #
25735             # some OS's, such as NetBSD, stick krb5 includes out of the way...
25736             # should probably just use autoconf to look for various include
25737             # options and set them, but don't quite want to do that until I've
25738             # dug into it a bit more.
25739             #
25740             if test -d "$KRB5_DIR_FOUND/krb5" ; then
25741                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include/krb5"
25742
25743             else
25744                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include"
25745
25746             fi
25747                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
25748 $as_echo_n "checking for main in -lkrb5support... " >&6; }
25749 if ${ac_cv_lib_krb5support_main+:} false; then :
25750   $as_echo_n "(cached) " >&6
25751 else
25752   ac_check_lib_save_LIBS=$LIBS
25753 LIBS="-lkrb5support  $LIBS"
25754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25755 /* end confdefs.h.  */
25756
25757
25758 int
25759 main ()
25760 {
25761 return main ();
25762   ;
25763   return 0;
25764 }
25765 _ACEOF
25766 if ac_fn_c_try_link "$LINENO"; then :
25767   ac_cv_lib_krb5support_main=yes
25768 else
25769   ac_cv_lib_krb5support_main=no
25770 fi
25771 rm -f core conftest.err conftest.$ac_objext \
25772     conftest$ac_exeext conftest.$ac_ext
25773 LIBS=$ac_check_lib_save_LIBS
25774 fi
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
25776 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
25777 if test "x$ac_cv_lib_krb5support_main" = xyes; then :
25778   cat >>confdefs.h <<_ACEOF
25779 #define HAVE_LIBKRB5SUPPORT 1
25780 _ACEOF
25781
25782   LIBS="-lkrb5support $LIBS"
25783
25784 fi
25785
25786
25787             if test "$KRB5_LIBDIR_FOUND" != "$libdir" ; then
25788                 LDFLAGS="$LDFLAGS -L$KRB5_LIBDIR_FOUND"
25789
25790             fi
25791
25792
25793 $as_echo "#define KRB5_SECURITY 1" >>confdefs.h
25794
25795         else
25796             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no krb5 system libraries found" >&5
25797 $as_echo "no krb5 system libraries found" >&6; }
25798             as_fn_error $? "No Kerberos V libraries were found on your system; krb5-security cannot be enabled" "$LINENO" 5
25799             KRB5_SECURITY="no"
25800         fi
25801     fi
25802
25803      if test x"$KRB5_SECURITY" = x"yes"; then
25804   WANT_KRB5_SECURITY_TRUE=
25805   WANT_KRB5_SECURITY_FALSE='#'
25806 else
25807   WANT_KRB5_SECURITY_TRUE='#'
25808   WANT_KRB5_SECURITY_FALSE=
25809 fi
25810
25811
25812
25813
25814 #
25815 # Dumpers
25816 #
25817
25818
25819
25820     for ac_prog in xfsdump
25821 do
25822   # Extract the first word of "$ac_prog", so it can be a program name with args.
25823 set dummy $ac_prog; ac_word=$2
25824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25825 $as_echo_n "checking for $ac_word... " >&6; }
25826 if ${ac_cv_path_XFSDUMP+:} false; then :
25827   $as_echo_n "(cached) " >&6
25828 else
25829   case $XFSDUMP in
25830   [\\/]* | ?:[\\/]*)
25831   ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
25832   ;;
25833   *)
25834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25835 for as_dir in $SYSLOCPATH
25836 do
25837   IFS=$as_save_IFS
25838   test -z "$as_dir" && as_dir=.
25839     for ac_exec_ext in '' $ac_executable_extensions; do
25840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25841     ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
25842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25843     break 2
25844   fi
25845 done
25846   done
25847 IFS=$as_save_IFS
25848
25849   ;;
25850 esac
25851 fi
25852 XFSDUMP=$ac_cv_path_XFSDUMP
25853 if test -n "$XFSDUMP"; then
25854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFSDUMP" >&5
25855 $as_echo "$XFSDUMP" >&6; }
25856 else
25857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25858 $as_echo "no" >&6; }
25859 fi
25860
25861
25862   test -n "$XFSDUMP" && break
25863 done
25864
25865     for ac_prog in xfsrestore
25866 do
25867   # Extract the first word of "$ac_prog", so it can be a program name with args.
25868 set dummy $ac_prog; ac_word=$2
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25870 $as_echo_n "checking for $ac_word... " >&6; }
25871 if ${ac_cv_path_XFSRESTORE+:} false; then :
25872   $as_echo_n "(cached) " >&6
25873 else
25874   case $XFSRESTORE in
25875   [\\/]* | ?:[\\/]*)
25876   ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
25877   ;;
25878   *)
25879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25880 for as_dir in $SYSLOCPATH
25881 do
25882   IFS=$as_save_IFS
25883   test -z "$as_dir" && as_dir=.
25884     for ac_exec_ext in '' $ac_executable_extensions; do
25885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25886     ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
25887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25888     break 2
25889   fi
25890 done
25891   done
25892 IFS=$as_save_IFS
25893
25894   ;;
25895 esac
25896 fi
25897 XFSRESTORE=$ac_cv_path_XFSRESTORE
25898 if test -n "$XFSRESTORE"; then
25899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFSRESTORE" >&5
25900 $as_echo "$XFSRESTORE" >&6; }
25901 else
25902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25903 $as_echo "no" >&6; }
25904 fi
25905
25906
25907   test -n "$XFSRESTORE" && break
25908 done
25909
25910     if test "$XFSDUMP" -a "$XFSRESTORE"; then
25911
25912 cat >>confdefs.h <<_ACEOF
25913 #define XFSDUMP "$XFSDUMP"
25914 _ACEOF
25915
25916
25917 cat >>confdefs.h <<_ACEOF
25918 #define XFSRESTORE "$XFSRESTORE"
25919 _ACEOF
25920
25921
25922     { $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
25923 $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;}
25924
25925
25926     cat <<AAW_EOF >>config.warnings
25927 xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h
25928 AAW_EOF
25929
25930
25931     fi
25932
25933
25934
25935
25936     # Extract the first word of "vxdump", so it can be a program name with args.
25937 set dummy vxdump; ac_word=$2
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25939 $as_echo_n "checking for $ac_word... " >&6; }
25940 if ${ac_cv_path_VXDUMP+:} false; then :
25941   $as_echo_n "(cached) " >&6
25942 else
25943   case $VXDUMP in
25944   [\\/]* | ?:[\\/]*)
25945   ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
25946   ;;
25947   *)
25948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25949 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
25950 for as_dir in $as_dummy
25951 do
25952   IFS=$as_save_IFS
25953   test -z "$as_dir" && as_dir=.
25954     for ac_exec_ext in '' $ac_executable_extensions; do
25955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25956     ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
25957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25958     break 2
25959   fi
25960 done
25961   done
25962 IFS=$as_save_IFS
25963
25964   ;;
25965 esac
25966 fi
25967 VXDUMP=$ac_cv_path_VXDUMP
25968 if test -n "$VXDUMP"; then
25969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VXDUMP" >&5
25970 $as_echo "$VXDUMP" >&6; }
25971 else
25972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25973 $as_echo "no" >&6; }
25974 fi
25975
25976
25977     # Extract the first word of "vxrestore", so it can be a program name with args.
25978 set dummy vxrestore; ac_word=$2
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25980 $as_echo_n "checking for $ac_word... " >&6; }
25981 if ${ac_cv_path_VXRESTORE+:} false; then :
25982   $as_echo_n "(cached) " >&6
25983 else
25984   case $VXRESTORE in
25985   [\\/]* | ?:[\\/]*)
25986   ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
25987   ;;
25988   *)
25989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25990 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
25991 for as_dir in $as_dummy
25992 do
25993   IFS=$as_save_IFS
25994   test -z "$as_dir" && as_dir=.
25995     for ac_exec_ext in '' $ac_executable_extensions; do
25996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25997     ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
25998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25999     break 2
26000   fi
26001 done
26002   done
26003 IFS=$as_save_IFS
26004
26005   ;;
26006 esac
26007 fi
26008 VXRESTORE=$ac_cv_path_VXRESTORE
26009 if test -n "$VXRESTORE"; then
26010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VXRESTORE" >&5
26011 $as_echo "$VXRESTORE" >&6; }
26012 else
26013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26014 $as_echo "no" >&6; }
26015 fi
26016
26017
26018     if test "$VXDUMP" -a "$VXRESTORE"; then
26019
26020 cat >>confdefs.h <<_ACEOF
26021 #define VXDUMP "$VXDUMP"
26022 _ACEOF
26023
26024
26025 cat >>confdefs.h <<_ACEOF
26026 #define VXRESTORE "$VXRESTORE"
26027 _ACEOF
26028
26029     fi
26030
26031
26032
26033
26034     # Extract the first word of "vdump", so it can be a program name with args.
26035 set dummy vdump; ac_word=$2
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26037 $as_echo_n "checking for $ac_word... " >&6; }
26038 if ${ac_cv_path_VDUMP+:} false; then :
26039   $as_echo_n "(cached) " >&6
26040 else
26041   case $VDUMP in
26042   [\\/]* | ?:[\\/]*)
26043   ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
26044   ;;
26045   *)
26046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26047 for as_dir in $SYSLOCPATH
26048 do
26049   IFS=$as_save_IFS
26050   test -z "$as_dir" && as_dir=.
26051     for ac_exec_ext in '' $ac_executable_extensions; do
26052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26053     ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
26054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26055     break 2
26056   fi
26057 done
26058   done
26059 IFS=$as_save_IFS
26060
26061   ;;
26062 esac
26063 fi
26064 VDUMP=$ac_cv_path_VDUMP
26065 if test -n "$VDUMP"; then
26066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VDUMP" >&5
26067 $as_echo "$VDUMP" >&6; }
26068 else
26069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26070 $as_echo "no" >&6; }
26071 fi
26072
26073
26074     # Extract the first word of "vrestore", so it can be a program name with args.
26075 set dummy vrestore; ac_word=$2
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26077 $as_echo_n "checking for $ac_word... " >&6; }
26078 if ${ac_cv_path_VRESTORE+:} false; then :
26079   $as_echo_n "(cached) " >&6
26080 else
26081   case $VRESTORE in
26082   [\\/]* | ?:[\\/]*)
26083   ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
26084   ;;
26085   *)
26086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26087 for as_dir in $SYSLOCPATH
26088 do
26089   IFS=$as_save_IFS
26090   test -z "$as_dir" && as_dir=.
26091     for ac_exec_ext in '' $ac_executable_extensions; do
26092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26093     ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
26094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26095     break 2
26096   fi
26097 done
26098   done
26099 IFS=$as_save_IFS
26100
26101   ;;
26102 esac
26103 fi
26104 VRESTORE=$ac_cv_path_VRESTORE
26105 if test -n "$VRESTORE"; then
26106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VRESTORE" >&5
26107 $as_echo "$VRESTORE" >&6; }
26108 else
26109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26110 $as_echo "no" >&6; }
26111 fi
26112
26113
26114     if test "$VDUMP" -a "$VRESTORE"; then
26115
26116 cat >>confdefs.h <<_ACEOF
26117 #define VDUMP "$VDUMP"
26118 _ACEOF
26119
26120
26121 cat >>confdefs.h <<_ACEOF
26122 #define VRESTORE "$VRESTORE"
26123 _ACEOF
26124
26125     fi
26126
26127
26128
26129
26130
26131     # Set the order of dump programs to look for.  Finding the proper file
26132     # system dumping program is problematic.  Some systems, notably HP-UX
26133     # and AIX, have both the backup and dump programs.  HP-UX can't use the
26134     # the backup program while AIX systems can't use the dump program.  So
26135     # a variable is set up here to specify the order of dump programs to
26136     # search for on the system.
26137     DUMP_PROGRAMS="ufsdump dump backup"
26138     DUMP_RETURNS_1=
26139     AIX_BACKUP=
26140     case "$host" in
26141         *-dg-*)
26142             DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
26143             DUMP_RETURNS_1=1
26144             ;;
26145       *-ibm-aix*)
26146             DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
26147             AIX_BACKUP=1
26148
26149 $as_echo "#define AIX_BACKUP 1" >>confdefs.h
26150
26151             ;;
26152       *-ultrix*)
26153             DUMP_RETURNS_1=1
26154             ;;
26155     esac
26156
26157     if test -n "$DUMP_RETURNS_1"; then
26158
26159 $as_echo "#define DUMP_RETURNS_1 1" >>confdefs.h
26160
26161     fi
26162
26163     for ac_prog in $DUMP_PROGRAMS
26164 do
26165   # Extract the first word of "$ac_prog", so it can be a program name with args.
26166 set dummy $ac_prog; ac_word=$2
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26168 $as_echo_n "checking for $ac_word... " >&6; }
26169 if ${ac_cv_path_DUMP+:} false; then :
26170   $as_echo_n "(cached) " >&6
26171 else
26172   case $DUMP in
26173   [\\/]* | ?:[\\/]*)
26174   ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
26175   ;;
26176   *)
26177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26178 for as_dir in $SYSLOCPATH
26179 do
26180   IFS=$as_save_IFS
26181   test -z "$as_dir" && as_dir=.
26182     for ac_exec_ext in '' $ac_executable_extensions; do
26183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26184     ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
26185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26186     break 2
26187   fi
26188 done
26189   done
26190 IFS=$as_save_IFS
26191
26192   ;;
26193 esac
26194 fi
26195 DUMP=$ac_cv_path_DUMP
26196 if test -n "$DUMP"; then
26197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMP" >&5
26198 $as_echo "$DUMP" >&6; }
26199 else
26200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26201 $as_echo "no" >&6; }
26202 fi
26203
26204
26205   test -n "$DUMP" && break
26206 done
26207
26208     for ac_prog in ufsrestore restore
26209 do
26210   # Extract the first word of "$ac_prog", so it can be a program name with args.
26211 set dummy $ac_prog; ac_word=$2
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26213 $as_echo_n "checking for $ac_word... " >&6; }
26214 if ${ac_cv_path_RESTORE+:} false; then :
26215   $as_echo_n "(cached) " >&6
26216 else
26217   case $RESTORE in
26218   [\\/]* | ?:[\\/]*)
26219   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
26220   ;;
26221   *)
26222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26223 for as_dir in $SYSLOCPATH
26224 do
26225   IFS=$as_save_IFS
26226   test -z "$as_dir" && as_dir=.
26227     for ac_exec_ext in '' $ac_executable_extensions; do
26228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26229     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
26230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26231     break 2
26232   fi
26233 done
26234   done
26235 IFS=$as_save_IFS
26236
26237   ;;
26238 esac
26239 fi
26240 RESTORE=$ac_cv_path_RESTORE
26241 if test -n "$RESTORE"; then
26242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESTORE" >&5
26243 $as_echo "$RESTORE" >&6; }
26244 else
26245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26246 $as_echo "no" >&6; }
26247 fi
26248
26249
26250   test -n "$RESTORE" && break
26251 done
26252
26253
26254     # newer versions of GNU tar include a program named 'backup' which
26255     # does *not* implement the expected 'dump' interface.  Detect that here
26256     # and pretend we never saw it.
26257     if test -n "$DUMP"; then
26258       if test "`basename $DUMP`" = "backup"; then
26259         backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
26260         if test $? -eq 0; then
26261           DUMP=
26262         fi
26263       fi
26264     fi
26265
26266     if test "$DUMP" -a "$RESTORE"; then
26267
26268 cat >>confdefs.h <<_ACEOF
26269 #define DUMP "$DUMP"
26270 _ACEOF
26271
26272
26273 cat >>confdefs.h <<_ACEOF
26274 #define RESTORE "$RESTORE"
26275 _ACEOF
26276
26277
26278         # check for an estimate flag
26279         if test -x $DUMP; then
26280             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DUMP supports -E or -S for estimates" >&5
26281 $as_echo_n "checking whether $DUMP supports -E or -S for estimates... " >&6; }
26282 if ${amanda_cv_dump_estimate+:} false; then :
26283   $as_echo_n "(cached) " >&6
26284 else
26285
26286                     case "$DUMP" in
26287                     *dump)
26288                         { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
26289                             | $GREP -v Dumping
26290                             | $GREP -v Date
26291                             | $GREP -v Label >conftest.d-E 2>&1'
26292   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26293   (eval $ac_try) 2>&5
26294   ac_status=$?
26295   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26296   test $ac_status = 0; }; }
26297                         cat conftest.d-E >&5
26298                         { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
26299                             | $GREP -v Dumping
26300                             | $GREP -v Date
26301                             | $GREP -v Label >conftest.d-S 2>&1'
26302   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26303   (eval $ac_try) 2>&5
26304   ac_status=$?
26305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26306   test $ac_status = 0; }; }
26307                         cat conftest.d-S >&5
26308                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
26309                             | $GREP -v Dumping
26310                             | $GREP -v Date
26311                             | $GREP -v Label >conftest.d 2>&1'
26312   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26313   (eval $ac_try) 2>&5
26314   ac_status=$?
26315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26316   test $ac_status = 0; }; }
26317                         cat conftest.d >&5
26318                         if { ac_try='cmp conftest.d-E conftest.d 1>&2'
26319   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26320   (eval $ac_try) 2>&5
26321   ac_status=$?
26322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26323   test $ac_status = 0; }; }; then
26324                             amanda_cv_dump_estimate=E
26325                         elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
26326   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26327   (eval $ac_try) 2>&5
26328   ac_status=$?
26329   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26330   test $ac_status = 0; }; }; then
26331                             amanda_cv_dump_estimate=S
26332                         else
26333                             amanda_cv_dump_estimate=no
26334                         fi
26335                         rm -f conftest.d conftest.d-E conftest.d-S
26336                       ;;
26337                     *) amanda_cv_dump_estimate=no
26338                       ;;
26339                     esac
26340
26341 fi
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_dump_estimate" >&5
26343 $as_echo "$amanda_cv_dump_estimate" >&6; }
26344         else
26345
26346     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $DUMP is not executable, cannot run -E/-S test" >&5
26347 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -E/-S test" >&2;}
26348
26349
26350     cat <<AAW_EOF >>config.warnings
26351 $DUMP is not executable, cannot run -E/-S test
26352 AAW_EOF
26353
26354
26355             amanda_cv_dump_estimate=no
26356         fi
26357         if test "x$amanda_cv_dump_estimate" != xno; then
26358
26359 cat >>confdefs.h <<_ACEOF
26360 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
26361 _ACEOF
26362
26363         fi
26364
26365
26366 # Check whether --with-dump-honor-nodump was given.
26367 if test "${with_dump_honor_nodump+set}" = set; then :
26368   withval=$with_dump_honor_nodump;
26369             if test -x $DUMP; then
26370                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DUMP supports -h (honor nodump flag)" >&5
26371 $as_echo_n "checking whether $DUMP supports -h (honor nodump flag)... " >&6; }
26372 if ${amanda_cv_honor_nodump+:} false; then :
26373   $as_echo_n "(cached) " >&6
26374 else
26375
26376                     case "$DUMP" in
26377                     *dump)
26378                         { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
26379                             | $GREP -v Dumping
26380                             | $GREP -v Date
26381                             | $GREP -v Label >conftest.d-h 2>&1'
26382   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26383   (eval $ac_try) 2>&5
26384   ac_status=$?
26385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26386   test $ac_status = 0; }; }
26387                         cat conftest.d-h >&5
26388                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
26389                             | $GREP -v Dumping
26390                             | $GREP -v Date
26391                             | $GREP -v Label >conftest.d 2>&1'
26392   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26393   (eval $ac_try) 2>&5
26394   ac_status=$?
26395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26396   test $ac_status = 0; }; }
26397                         cat conftest.d >&5
26398                         if { ac_try='diff conftest.d-h conftest.d 1>&2'
26399   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26400   (eval $ac_try) 2>&5
26401   ac_status=$?
26402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26403   test $ac_status = 0; }; }; then
26404                             amanda_cv_honor_nodump=yes
26405                         else
26406                             amanda_cv_honor_nodump=no
26407                         fi
26408                         rm -f conftest.d conftest.d-h
26409                       ;;
26410                     *) amanda_cv_honor_nodump=no
26411                       ;;
26412                     esac
26413
26414 fi
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_honor_nodump" >&5
26416 $as_echo "$amanda_cv_honor_nodump" >&6; }
26417             else
26418
26419     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $DUMP is not executable, cannot run -h test" >&5
26420 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -h test" >&2;}
26421
26422
26423     cat <<AAW_EOF >>config.warnings
26424 $DUMP is not executable, cannot run -h test
26425 AAW_EOF
26426
26427
26428                 amanda_cv_honor_nodump=no
26429             fi
26430             if test "x$amanda_cv_honor_nodump" = xyes; then
26431
26432 $as_echo "#define HAVE_HONOR_NODUMP 1" >>confdefs.h
26433
26434             fi
26435
26436 fi
26437
26438     fi
26439
26440
26441
26442
26443
26444
26445
26446     # call with
26447
26448 # Check whether --with-gnutar was given.
26449 if test "${with_gnutar+set}" = set; then :
26450   withval=$with_gnutar;
26451             # check withval
26452             case "$withval" in
26453                 /*) GNUTAR="$withval";;
26454                 y|ye|yes) :;;
26455                 n|no) GNUTAR=no ;;
26456                 *)  as_fn_error $? "*** You must supply a full pathname to --with-gnutar" "$LINENO" 5;;
26457             esac
26458             # done
26459
26460
26461 fi
26462
26463
26464     if test "x$GNUTAR" = "xno"; then
26465         GNUTAR=
26466     else
26467         OLD_GNUTAR=$GNUTAR
26468         for gnutar_name in gtar gnutar tar; do
26469             for ac_prog in $gnutar_name
26470 do
26471   # Extract the first word of "$ac_prog", so it can be a program name with args.
26472 set dummy $ac_prog; ac_word=$2
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26474 $as_echo_n "checking for $ac_word... " >&6; }
26475 if ${ac_cv_path_GNUTAR+:} false; then :
26476   $as_echo_n "(cached) " >&6
26477 else
26478   case $GNUTAR in
26479   [\\/]* | ?:[\\/]*)
26480   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
26481   ;;
26482   *)
26483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26484 for as_dir in $LOCSYSPATH
26485 do
26486   IFS=$as_save_IFS
26487   test -z "$as_dir" && as_dir=.
26488     for ac_exec_ext in '' $ac_executable_extensions; do
26489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26490     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
26491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26492     break 2
26493   fi
26494 done
26495   done
26496 IFS=$as_save_IFS
26497
26498   ;;
26499 esac
26500 fi
26501 GNUTAR=$ac_cv_path_GNUTAR
26502 if test -n "$GNUTAR"; then
26503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
26504 $as_echo "$GNUTAR" >&6; }
26505 else
26506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26507 $as_echo "no" >&6; }
26508 fi
26509
26510
26511   test -n "$GNUTAR" && break
26512 done
26513
26514             if test -n "$GNUTAR"; then
26515               case `"$GNUTAR" --version 2>&1` in
26516                *GNU*tar* | *Free*paxutils* )
26517                             # OK, it is GNU tar
26518                             break
26519                             ;;
26520                *)
26521                             if test -n "$OLD_GNUTAR"; then
26522
26523     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GNUTAR is not GNU tar, it will be used." >&5
26524 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, it will be used." >&2;}
26525
26526
26527     cat <<AAW_EOF >>config.warnings
26528 $GNUTAR is not GNU tar, it will be used.
26529 AAW_EOF
26530
26531
26532                             else
26533                                     # warning..
26534
26535     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&5
26536 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&2;}
26537
26538
26539     cat <<AAW_EOF >>config.warnings
26540 $GNUTAR is not GNU tar, so it will not be used.
26541 AAW_EOF
26542
26543
26544                                     # reset the cache for GNUTAR so AC_PATH_PROGS will search again
26545                                     GNUTAR=''
26546                                     unset ac_cv_path_GNUTAR
26547                             fi
26548                             ;;
26549               esac
26550             fi
26551         done
26552     fi
26553
26554     if test "x$GNUTAR" != "x"; then
26555         # define unquoted
26556
26557 cat >>confdefs.h <<_ACEOF
26558 #define GNUTAR "$GNUTAR"
26559 _ACEOF
26560
26561     fi
26562
26563
26564
26565
26566
26567
26568     # call with
26569
26570 # Check whether --with-star was given.
26571 if test "${with_star+set}" = set; then :
26572   withval=$with_star;
26573             # check withval
26574             case "$withval" in
26575                 /*) STAR="$withval";;
26576                 y|ye|yes) :;;
26577                 n|no) STAR=no ;;
26578                 *)  as_fn_error $? "*** You must supply a full pathname to --with-star" "$LINENO" 5;;
26579             esac
26580             # done
26581
26582
26583 fi
26584
26585
26586     if test "x$STAR" = "xno"; then
26587         STAR=
26588     else
26589         OLD_STAR=$STAR
26590         for ac_prog in star
26591 do
26592   # Extract the first word of "$ac_prog", so it can be a program name with args.
26593 set dummy $ac_prog; ac_word=$2
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26595 $as_echo_n "checking for $ac_word... " >&6; }
26596 if ${ac_cv_path_STAR+:} false; then :
26597   $as_echo_n "(cached) " >&6
26598 else
26599   case $STAR in
26600   [\\/]* | ?:[\\/]*)
26601   ac_cv_path_STAR="$STAR" # Let the user override the test with a path.
26602   ;;
26603   *)
26604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26605 for as_dir in $LOCSYSPATH
26606 do
26607   IFS=$as_save_IFS
26608   test -z "$as_dir" && as_dir=.
26609     for ac_exec_ext in '' $ac_executable_extensions; do
26610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26611     ac_cv_path_STAR="$as_dir/$ac_word$ac_exec_ext"
26612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26613     break 2
26614   fi
26615 done
26616   done
26617 IFS=$as_save_IFS
26618
26619   ;;
26620 esac
26621 fi
26622 STAR=$ac_cv_path_STAR
26623 if test -n "$STAR"; then
26624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAR" >&5
26625 $as_echo "$STAR" >&6; }
26626 else
26627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26628 $as_echo "no" >&6; }
26629 fi
26630
26631
26632   test -n "$STAR" && break
26633 done
26634
26635         if test -n "$STAR"; then
26636             case `"$STAR" --version 2>/dev/null` in
26637              *star*)
26638                     # OK, it is star
26639                     break
26640                     ;;
26641              *)
26642                     if test -n "$OLD_STAR"; then
26643
26644     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $STAR is not star, it will be used." >&5
26645 $as_echo "$as_me: WARNING: $STAR is not star, it will be used." >&2;}
26646
26647
26648     cat <<AAW_EOF >>config.warnings
26649 $STAR is not star, it will be used.
26650 AAW_EOF
26651
26652
26653                     else
26654                         # warning..
26655
26656     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $STAR is not star, so it will not be used." >&5
26657 $as_echo "$as_me: WARNING: $STAR is not star, so it will not be used." >&2;}
26658
26659
26660     cat <<AAW_EOF >>config.warnings
26661 $STAR is not star, so it will not be used.
26662 AAW_EOF
26663
26664
26665                         # reset the cache for STAR so AC_PATH_PROGS will search again
26666                         STAR=''
26667                         unset ac_cv_path_STAR
26668                     fi
26669                     ;;
26670             esac
26671         fi
26672     fi
26673
26674     if test "x$STAR" != "x"; then
26675         # define unquoted
26676
26677 cat >>confdefs.h <<_ACEOF
26678 #define STAR "$STAR"
26679 _ACEOF
26680
26681     fi
26682
26683
26684
26685
26686
26687
26688     # call with
26689
26690 # Check whether --with-suntar was given.
26691 if test "${with_suntar+set}" = set; then :
26692   withval=$with_suntar;
26693             # check withval
26694             case "$withval" in
26695                 /*) SUNTAR="$withval";;
26696                 y|ye|yes) :;;
26697                 n|no) SUNTAR=no ;;
26698                 *)  as_fn_error $? "*** You must supply a full pathname to --with-suntar" "$LINENO" 5;;
26699             esac
26700             # done
26701
26702 else
26703
26704             if test "x$SUNTAR" == "x"; then
26705                 SUNTAR="/usr/sbin/tar"
26706             fi
26707
26708
26709 fi
26710
26711
26712     if test "x$SUNTAR" = "xno"; then
26713         SUNTAR=
26714     fi
26715
26716     if test "x$SUNTAR" != "x"; then
26717         # define unquoted
26718
26719 cat >>confdefs.h <<_ACEOF
26720 #define SUNTAR "$SUNTAR"
26721 _ACEOF
26722
26723     fi
26724
26725
26726
26727
26728
26729
26730
26731 # Check whether --with-smbclient was given.
26732 if test "${with_smbclient+set}" = set; then :
26733   withval=$with_smbclient;
26734             case "$withval" in
26735                 /*) SAMBA_CLIENT="$withval";;
26736                 y|ye|yes) :;;
26737                 n|no) SAMBA_CLIENT=no ;;
26738                 *)  as_fn_error $? "*** You must supply a full pathname to --with-smbclient" "$LINENO" 5;;
26739             esac
26740
26741
26742 fi
26743
26744
26745
26746 # Check whether --with-samba-user was given.
26747 if test "${with_samba_user+set}" = set; then :
26748   withval=$with_samba_user;  as_fn_error $? "--with-samba-user is no longer supported; place username in 'amandapass'" "$LINENO" 5
26749
26750 fi
26751
26752
26753     if test "x$SAMBA_CLIENT" != "xno"; then
26754       # Extract the first word of "smbclient", so it can be a program name with args.
26755 set dummy smbclient; ac_word=$2
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26757 $as_echo_n "checking for $ac_word... " >&6; }
26758 if ${ac_cv_path_SAMBA_CLIENT+:} false; then :
26759   $as_echo_n "(cached) " >&6
26760 else
26761   case $SAMBA_CLIENT in
26762   [\\/]* | ?:[\\/]*)
26763   ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
26764   ;;
26765   *)
26766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26767 for as_dir in $LOCSYSPATH
26768 do
26769   IFS=$as_save_IFS
26770   test -z "$as_dir" && as_dir=.
26771     for ac_exec_ext in '' $ac_executable_extensions; do
26772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26773     ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
26774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26775     break 2
26776   fi
26777 done
26778   done
26779 IFS=$as_save_IFS
26780
26781   ;;
26782 esac
26783 fi
26784 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
26785 if test -n "$SAMBA_CLIENT"; then
26786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAMBA_CLIENT" >&5
26787 $as_echo "$SAMBA_CLIENT" >&6; }
26788 else
26789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26790 $as_echo "no" >&6; }
26791 fi
26792
26793
26794       smbversion=0
26795       if test ! -z "$SAMBA_CLIENT"; then
26796         case `"$SAMBA_CLIENT" '\\\\nosuchhost.amanda.org\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1` in
26797         *"Unknown host"*)
26798                       smbversion=1
26799                       ;;
26800         *"Connection to nosuchhost.amanda.org failed"*)
26801                       smbversion=2
26802                       ;;
26803         *)
26804
26805     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
26806 $as_echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
26807
26808
26809     cat <<AAW_EOF >>config.warnings
26810 $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.
26811 AAW_EOF
26812
26813
26814                       SAMBA_CLIENT=
26815                       ;;
26816         esac
26817         if test -n "$SAMBA_CLIENT"; then
26818
26819 cat >>confdefs.h <<_ACEOF
26820 #define SAMBA_CLIENT "$SAMBA_CLIENT"
26821 _ACEOF
26822
26823
26824 cat >>confdefs.h <<_ACEOF
26825 #define SAMBA_VERSION $smbversion
26826 _ACEOF
26827
26828         fi
26829       fi
26830     fi
26831
26832      if test -n "$SAMBA_CLIENT"; then
26833   WANT_SAMBA_TRUE=
26834   WANT_SAMBA_FALSE='#'
26835 else
26836   WANT_SAMBA_TRUE='#'
26837   WANT_SAMBA_FALSE=
26838 fi
26839
26840
26841
26842     USE_RUNDUMP=no
26843
26844     # some systems require rundump unconditionally
26845     case "$host" in
26846         *-ultrix*) USE_RUNDUMP=yes ;;
26847         *-dg-*) USE_RUNDUMP=yes ;;
26848     esac
26849
26850
26851 # Check whether --with-rundump was given.
26852 if test "${with_rundump+set}" = set; then :
26853   withval=$with_rundump;
26854         case "$withval" in
26855             n | no) USE_RUNDUMP=no ;;
26856             y | ye | yes) USE_RUNDUMP=yes ;;
26857             *) as_fn_error $? "You must not supply an argument to --with-rundump option." "$LINENO" 5;;
26858         esac
26859
26860 fi
26861
26862
26863     if test x"$USE_RUNDUMP" = x"yes"; then
26864         USE_RUNDUMP=1
26865
26866 $as_echo "#define USE_RUNDUMP 1" >>confdefs.h
26867
26868     else
26869         USE_RUNDUMP=
26870     fi
26871
26872
26873
26874
26875 #
26876 # Look for other programs Amanda will use
26877 #
26878
26879
26880     # Extract the first word of "grep", so it can be a program name with args.
26881 set dummy grep; ac_word=$2
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26883 $as_echo_n "checking for $ac_word... " >&6; }
26884 if ${ac_cv_path_GREP+:} false; then :
26885   $as_echo_n "(cached) " >&6
26886 else
26887   case $GREP in
26888   [\\/]* | ?:[\\/]*)
26889   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
26890   ;;
26891   *)
26892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26893 for as_dir in $LOCSYSPATH
26894 do
26895   IFS=$as_save_IFS
26896   test -z "$as_dir" && as_dir=.
26897     for ac_exec_ext in '' $ac_executable_extensions; do
26898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26899     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
26900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26901     break 2
26902   fi
26903 done
26904   done
26905 IFS=$as_save_IFS
26906
26907   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
26908   ;;
26909 esac
26910 fi
26911 GREP=$ac_cv_path_GREP
26912 if test -n "$GREP"; then
26913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
26914 $as_echo "$GREP" >&6; }
26915 else
26916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26917 $as_echo "no" >&6; }
26918 fi
26919
26920
26921
26922 cat >>confdefs.h <<_ACEOF
26923 #define GREP "$GREP"
26924 _ACEOF
26925
26926
26927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
26928 $as_echo_n "checking for egrep... " >&6; }
26929 if ${ac_cv_path_EGREP+:} false; then :
26930   $as_echo_n "(cached) " >&6
26931 else
26932   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
26933    then ac_cv_path_EGREP="$GREP -E"
26934    else
26935      if test -z "$EGREP"; then
26936   ac_path_EGREP_found=false
26937   # Loop through the user's path and test for each of PROGNAME-LIST
26938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26939 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
26940 do
26941   IFS=$as_save_IFS
26942   test -z "$as_dir" && as_dir=.
26943     for ac_prog in egrep; do
26944     for ac_exec_ext in '' $ac_executable_extensions; do
26945       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
26946       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
26947 # Check for GNU ac_path_EGREP and select it if it is found.
26948   # Check for GNU $ac_path_EGREP
26949 case `"$ac_path_EGREP" --version 2>&1` in
26950 *GNU*)
26951   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
26952 *)
26953   ac_count=0
26954   $as_echo_n 0123456789 >"conftest.in"
26955   while :
26956   do
26957     cat "conftest.in" "conftest.in" >"conftest.tmp"
26958     mv "conftest.tmp" "conftest.in"
26959     cp "conftest.in" "conftest.nl"
26960     $as_echo 'EGREP' >> "conftest.nl"
26961     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
26962     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
26963     as_fn_arith $ac_count + 1 && ac_count=$as_val
26964     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
26965       # Best one so far, save it but keep looking for a better one
26966       ac_cv_path_EGREP="$ac_path_EGREP"
26967       ac_path_EGREP_max=$ac_count
26968     fi
26969     # 10*(2^10) chars as input seems more than enough
26970     test $ac_count -gt 10 && break
26971   done
26972   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
26973 esac
26974
26975       $ac_path_EGREP_found && break 3
26976     done
26977   done
26978   done
26979 IFS=$as_save_IFS
26980   if test -z "$ac_cv_path_EGREP"; then
26981     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
26982   fi
26983 else
26984   ac_cv_path_EGREP=$EGREP
26985 fi
26986
26987    fi
26988 fi
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
26990 $as_echo "$ac_cv_path_EGREP" >&6; }
26991  EGREP="$ac_cv_path_EGREP"
26992
26993
26994
26995
26996
26997
26998     # Extract the first word of "lint", so it can be a program name with args.
26999 set dummy lint; ac_word=$2
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27001 $as_echo_n "checking for $ac_word... " >&6; }
27002 if ${ac_cv_path_AMLINT+:} false; then :
27003   $as_echo_n "(cached) " >&6
27004 else
27005   case $AMLINT in
27006   [\\/]* | ?:[\\/]*)
27007   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
27008   ;;
27009   *)
27010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27011 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
27012 for as_dir in $as_dummy
27013 do
27014   IFS=$as_save_IFS
27015   test -z "$as_dir" && as_dir=.
27016     for ac_exec_ext in '' $ac_executable_extensions; do
27017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27018     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
27019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27020     break 2
27021   fi
27022 done
27023   done
27024 IFS=$as_save_IFS
27025
27026   ;;
27027 esac
27028 fi
27029 AMLINT=$ac_cv_path_AMLINT
27030 if test -n "$AMLINT"; then
27031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AMLINT" >&5
27032 $as_echo "$AMLINT" >&6; }
27033 else
27034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27035 $as_echo "no" >&6; }
27036 fi
27037
27038
27039     if test ! -z "$AMLINT"; then
27040       $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
27041       if test $? -eq 0; then
27042         AMLINTFLAGS="-n -s -u -m -x"
27043         AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
27044         AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
27045         AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
27046         AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
27047         AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
27048         AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
27049         AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
27050         AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
27051         AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
27052         AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
27053         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
27054         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
27055         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
27056         AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
27057         AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
27058         AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
27059         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
27060         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
27061         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
27062         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
27063         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
27064         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
27065         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
27066         AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
27067         AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
27068         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
27069         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
27070         AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
27071         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
27072         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
27073         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
27074         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
27075         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
27076         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
27077         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
27078         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
27079         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
27080         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
27081         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
27082         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
27083         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
27084         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
27085         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
27086         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
27087         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
27088         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
27089         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
27090         AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
27091         AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
27092         AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
27093       else
27094         AMLINTFLAGS=""
27095       fi
27096     else
27097       # Extract the first word of "splint", so it can be a program name with args.
27098 set dummy splint; ac_word=$2
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27100 $as_echo_n "checking for $ac_word... " >&6; }
27101 if ${ac_cv_path_AMLINT+:} false; then :
27102   $as_echo_n "(cached) " >&6
27103 else
27104   case $AMLINT in
27105   [\\/]* | ?:[\\/]*)
27106   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
27107   ;;
27108   *)
27109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27110 for as_dir in $SYSLOCPATH
27111 do
27112   IFS=$as_save_IFS
27113   test -z "$as_dir" && as_dir=.
27114     for ac_exec_ext in '' $ac_executable_extensions; do
27115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27116     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
27117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27118     break 2
27119   fi
27120 done
27121   done
27122 IFS=$as_save_IFS
27123
27124   ;;
27125 esac
27126 fi
27127 AMLINT=$ac_cv_path_AMLINT
27128 if test -n "$AMLINT"; then
27129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AMLINT" >&5
27130 $as_echo "$AMLINT" >&6; }
27131 else
27132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27133 $as_echo "no" >&6; }
27134 fi
27135
27136
27137       if test ! -z "$AMLINT"; then
27138         AMLINT="splint"
27139         AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
27140       else
27141         AMLINT='echo "Error: LINT is not installed" ; false'
27142         AMLINTFLAGS=''
27143       fi
27144     fi
27145
27146
27147 for ac_prog in flex lex
27148 do
27149   # Extract the first word of "$ac_prog", so it can be a program name with args.
27150 set dummy $ac_prog; ac_word=$2
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27152 $as_echo_n "checking for $ac_word... " >&6; }
27153 if ${ac_cv_prog_LEX+:} false; then :
27154   $as_echo_n "(cached) " >&6
27155 else
27156   if test -n "$LEX"; then
27157   ac_cv_prog_LEX="$LEX" # Let the user override the test.
27158 else
27159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27160 for as_dir in $PATH
27161 do
27162   IFS=$as_save_IFS
27163   test -z "$as_dir" && as_dir=.
27164     for ac_exec_ext in '' $ac_executable_extensions; do
27165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27166     ac_cv_prog_LEX="$ac_prog"
27167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27168     break 2
27169   fi
27170 done
27171   done
27172 IFS=$as_save_IFS
27173
27174 fi
27175 fi
27176 LEX=$ac_cv_prog_LEX
27177 if test -n "$LEX"; then
27178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
27179 $as_echo "$LEX" >&6; }
27180 else
27181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27182 $as_echo "no" >&6; }
27183 fi
27184
27185
27186   test -n "$LEX" && break
27187 done
27188 test -n "$LEX" || LEX=":"
27189
27190 if test "x$LEX" != "x:"; then
27191   cat >conftest.l <<_ACEOF
27192 %%
27193 a { ECHO; }
27194 b { REJECT; }
27195 c { yymore (); }
27196 d { yyless (1); }
27197 e { yyless (input () != 0); }
27198 f { unput (yytext[0]); }
27199 . { BEGIN INITIAL; }
27200 %%
27201 #ifdef YYTEXT_POINTER
27202 extern char *yytext;
27203 #endif
27204 int
27205 main (void)
27206 {
27207   return ! yylex () + ! yywrap ();
27208 }
27209 _ACEOF
27210 { { ac_try="$LEX conftest.l"
27211 case "(($ac_try" in
27212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27213   *) ac_try_echo=$ac_try;;
27214 esac
27215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27216 $as_echo "$ac_try_echo"; } >&5
27217   (eval "$LEX conftest.l") 2>&5
27218   ac_status=$?
27219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27220   test $ac_status = 0; }
27221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
27222 $as_echo_n "checking lex output file root... " >&6; }
27223 if ${ac_cv_prog_lex_root+:} false; then :
27224   $as_echo_n "(cached) " >&6
27225 else
27226
27227 if test -f lex.yy.c; then
27228   ac_cv_prog_lex_root=lex.yy
27229 elif test -f lexyy.c; then
27230   ac_cv_prog_lex_root=lexyy
27231 else
27232   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
27233 fi
27234 fi
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
27236 $as_echo "$ac_cv_prog_lex_root" >&6; }
27237 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
27238
27239 if test -z "${LEXLIB+set}"; then
27240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
27241 $as_echo_n "checking lex library... " >&6; }
27242 if ${ac_cv_lib_lex+:} false; then :
27243   $as_echo_n "(cached) " >&6
27244 else
27245
27246     ac_save_LIBS=$LIBS
27247     ac_cv_lib_lex='none needed'
27248     for ac_lib in '' -lfl -ll; do
27249       LIBS="$ac_lib $ac_save_LIBS"
27250       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27251 /* end confdefs.h.  */
27252 `cat $LEX_OUTPUT_ROOT.c`
27253 _ACEOF
27254 if ac_fn_c_try_link "$LINENO"; then :
27255   ac_cv_lib_lex=$ac_lib
27256 fi
27257 rm -f core conftest.err conftest.$ac_objext \
27258     conftest$ac_exeext conftest.$ac_ext
27259       test "$ac_cv_lib_lex" != 'none needed' && break
27260     done
27261     LIBS=$ac_save_LIBS
27262
27263 fi
27264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
27265 $as_echo "$ac_cv_lib_lex" >&6; }
27266   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
27267 fi
27268
27269
27270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
27271 $as_echo_n "checking whether yytext is a pointer... " >&6; }
27272 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
27273   $as_echo_n "(cached) " >&6
27274 else
27275   # POSIX says lex can declare yytext either as a pointer or an array; the
27276 # default is implementation-dependent.  Figure out which it is, since
27277 # not all implementations provide the %pointer and %array declarations.
27278 ac_cv_prog_lex_yytext_pointer=no
27279 ac_save_LIBS=$LIBS
27280 LIBS="$LEXLIB $ac_save_LIBS"
27281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27282 /* end confdefs.h.  */
27283
27284   #define YYTEXT_POINTER 1
27285 `cat $LEX_OUTPUT_ROOT.c`
27286 _ACEOF
27287 if ac_fn_c_try_link "$LINENO"; then :
27288   ac_cv_prog_lex_yytext_pointer=yes
27289 fi
27290 rm -f core conftest.err conftest.$ac_objext \
27291     conftest$ac_exeext conftest.$ac_ext
27292 LIBS=$ac_save_LIBS
27293
27294 fi
27295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
27296 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
27297 if test $ac_cv_prog_lex_yytext_pointer = yes; then
27298
27299 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
27300
27301 fi
27302 rm -f conftest.l $LEX_OUTPUT_ROOT.c
27303
27304 fi
27305 if test "$LEX" = :; then
27306   LEX=${am_missing_run}flex
27307 fi
27308
27309
27310
27311     if test x"$LEX" != x""; then
27312         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lex is broken Solaris (SGU) lex" >&5
27313 $as_echo_n "checking whether lex is broken Solaris (SGU) lex... " >&6; }
27314         $LEX -V < /dev/null >/dev/null 2>conftest.out
27315         if grep SGU conftest.out >/dev/null; then
27316             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&5
27317 $as_echo "yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&6; }
27318             LEX='echo no lex equivalent available; false'
27319         else
27320             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27321 $as_echo "no" >&6; }
27322         fi
27323         rm conftest.out
27324     fi
27325
27326
27327
27328     # Extract the first word of "ar", so it can be a program name with args.
27329 set dummy ar; ac_word=$2
27330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27331 $as_echo_n "checking for $ac_word... " >&6; }
27332 if ${ac_cv_path_AR+:} false; then :
27333   $as_echo_n "(cached) " >&6
27334 else
27335   case $AR in
27336   [\\/]* | ?:[\\/]*)
27337   ac_cv_path_AR="$AR" # Let the user override the test with a path.
27338   ;;
27339   *)
27340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27341 for as_dir in $LOCSYSPATH
27342 do
27343   IFS=$as_save_IFS
27344   test -z "$as_dir" && as_dir=.
27345     for ac_exec_ext in '' $ac_executable_extensions; do
27346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27347     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
27348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27349     break 2
27350   fi
27351 done
27352   done
27353 IFS=$as_save_IFS
27354
27355   ;;
27356 esac
27357 fi
27358 AR=$ac_cv_path_AR
27359 if test -n "$AR"; then
27360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
27361 $as_echo "$AR" >&6; }
27362 else
27363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27364 $as_echo "no" >&6; }
27365 fi
27366
27367
27368
27369
27370
27371     # Extract the first word of "gettext", so it can be a program name with args.
27372 set dummy gettext; ac_word=$2
27373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27374 $as_echo_n "checking for $ac_word... " >&6; }
27375 if ${ac_cv_path_GETTEXT+:} false; then :
27376   $as_echo_n "(cached) " >&6
27377 else
27378   case $GETTEXT in
27379   [\\/]* | ?:[\\/]*)
27380   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
27381   ;;
27382   *)
27383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27384 for as_dir in $LOCSYSPATH
27385 do
27386   IFS=$as_save_IFS
27387   test -z "$as_dir" && as_dir=.
27388     for ac_exec_ext in '' $ac_executable_extensions; do
27389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27390     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
27391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27392     break 2
27393   fi
27394 done
27395   done
27396 IFS=$as_save_IFS
27397
27398   ;;
27399 esac
27400 fi
27401 GETTEXT=$ac_cv_path_GETTEXT
27402 if test -n "$GETTEXT"; then
27403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETTEXT" >&5
27404 $as_echo "$GETTEXT" >&6; }
27405 else
27406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27407 $as_echo "no" >&6; }
27408 fi
27409
27410
27411
27412 for ac_prog in gawk mawk nawk awk
27413 do
27414   # Extract the first word of "$ac_prog", so it can be a program name with args.
27415 set dummy $ac_prog; ac_word=$2
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27417 $as_echo_n "checking for $ac_word... " >&6; }
27418 if ${ac_cv_prog_AWK+:} false; then :
27419   $as_echo_n "(cached) " >&6
27420 else
27421   if test -n "$AWK"; then
27422   ac_cv_prog_AWK="$AWK" # Let the user override the test.
27423 else
27424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27425 for as_dir in $PATH
27426 do
27427   IFS=$as_save_IFS
27428   test -z "$as_dir" && as_dir=.
27429     for ac_exec_ext in '' $ac_executable_extensions; do
27430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27431     ac_cv_prog_AWK="$ac_prog"
27432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27433     break 2
27434   fi
27435 done
27436   done
27437 IFS=$as_save_IFS
27438
27439 fi
27440 fi
27441 AWK=$ac_cv_prog_AWK
27442 if test -n "$AWK"; then
27443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
27444 $as_echo "$AWK" >&6; }
27445 else
27446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27447 $as_echo "no" >&6; }
27448 fi
27449
27450
27451   test -n "$AWK" && break
27452 done
27453
27454 for ac_prog in 'bison -y' byacc
27455 do
27456   # Extract the first word of "$ac_prog", so it can be a program name with args.
27457 set dummy $ac_prog; ac_word=$2
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27459 $as_echo_n "checking for $ac_word... " >&6; }
27460 if ${ac_cv_prog_YACC+:} false; then :
27461   $as_echo_n "(cached) " >&6
27462 else
27463   if test -n "$YACC"; then
27464   ac_cv_prog_YACC="$YACC" # Let the user override the test.
27465 else
27466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27467 for as_dir in $PATH
27468 do
27469   IFS=$as_save_IFS
27470   test -z "$as_dir" && as_dir=.
27471     for ac_exec_ext in '' $ac_executable_extensions; do
27472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27473     ac_cv_prog_YACC="$ac_prog"
27474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27475     break 2
27476   fi
27477 done
27478   done
27479 IFS=$as_save_IFS
27480
27481 fi
27482 fi
27483 YACC=$ac_cv_prog_YACC
27484 if test -n "$YACC"; then
27485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
27486 $as_echo "$YACC" >&6; }
27487 else
27488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27489 $as_echo "no" >&6; }
27490 fi
27491
27492
27493   test -n "$YACC" && break
27494 done
27495 test -n "$YACC" || YACC="yacc"
27496
27497
27498
27499
27500     # Extract the first word of "dd", so it can be a program name with args.
27501 set dummy dd; ac_word=$2
27502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27503 $as_echo_n "checking for $ac_word... " >&6; }
27504 if ${ac_cv_path_DD+:} false; then :
27505   $as_echo_n "(cached) " >&6
27506 else
27507   case $DD in
27508   [\\/]* | ?:[\\/]*)
27509   ac_cv_path_DD="$DD" # Let the user override the test with a path.
27510   ;;
27511   *)
27512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27513 for as_dir in $LOCSYSPATH
27514 do
27515   IFS=$as_save_IFS
27516   test -z "$as_dir" && as_dir=.
27517     for ac_exec_ext in '' $ac_executable_extensions; do
27518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27519     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
27520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27521     break 2
27522   fi
27523 done
27524   done
27525 IFS=$as_save_IFS
27526
27527   ;;
27528 esac
27529 fi
27530 DD=$ac_cv_path_DD
27531 if test -n "$DD"; then
27532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
27533 $as_echo "$DD" >&6; }
27534 else
27535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27536 $as_echo "no" >&6; }
27537 fi
27538
27539
27540
27541
27542
27543     # Extract the first word of "bash", so it can be a program name with args.
27544 set dummy bash; ac_word=$2
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27546 $as_echo_n "checking for $ac_word... " >&6; }
27547 if ${ac_cv_path_BASH+:} false; then :
27548   $as_echo_n "(cached) " >&6
27549 else
27550   case $BASH in
27551   [\\/]* | ?:[\\/]*)
27552   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
27553   ;;
27554   *)
27555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27556 for as_dir in $SYSPATH
27557 do
27558   IFS=$as_save_IFS
27559   test -z "$as_dir" && as_dir=.
27560     for ac_exec_ext in '' $ac_executable_extensions; do
27561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27562     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
27563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27564     break 2
27565   fi
27566 done
27567   done
27568 IFS=$as_save_IFS
27569
27570   ;;
27571 esac
27572 fi
27573 BASH=$ac_cv_path_BASH
27574 if test -n "$BASH"; then
27575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
27576 $as_echo "$BASH" >&6; }
27577 else
27578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27579 $as_echo "no" >&6; }
27580 fi
27581
27582
27583
27584
27585
27586
27587
27588     # Extract the first word of "sort", so it can be a program name with args.
27589 set dummy sort; ac_word=$2
27590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27591 $as_echo_n "checking for $ac_word... " >&6; }
27592 if ${ac_cv_path_SORT+:} false; then :
27593   $as_echo_n "(cached) " >&6
27594 else
27595   case $SORT in
27596   [\\/]* | ?:[\\/]*)
27597   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
27598   ;;
27599   *)
27600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27601 for as_dir in $LOCSYSPATH
27602 do
27603   IFS=$as_save_IFS
27604   test -z "$as_dir" && as_dir=.
27605     for ac_exec_ext in '' $ac_executable_extensions; do
27606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27607     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
27608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27609     break 2
27610   fi
27611 done
27612   done
27613 IFS=$as_save_IFS
27614
27615   test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
27616   ;;
27617 esac
27618 fi
27619 SORT=$ac_cv_path_SORT
27620 if test -n "$SORT"; then
27621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
27622 $as_echo "$SORT" >&6; }
27623 else
27624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27625 $as_echo "no" >&6; }
27626 fi
27627
27628
27629
27630     # sort is only needed in the server build
27631     if test x"$SORT" = x"NONE" && $WANT_SERVER; then
27632         as_fn_error $? "Set SORT to the path of the sort program." "$LINENO" 5
27633     fi
27634
27635
27636 cat >>confdefs.h <<_ACEOF
27637 #define SORT_PATH "$SORT"
27638 _ACEOF
27639
27640
27641
27642
27643     for ac_prog in Mail mailx mail
27644 do
27645   # Extract the first word of "$ac_prog", so it can be a program name with args.
27646 set dummy $ac_prog; ac_word=$2
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27648 $as_echo_n "checking for $ac_word... " >&6; }
27649 if ${ac_cv_path_MAILER+:} false; then :
27650   $as_echo_n "(cached) " >&6
27651 else
27652   case $MAILER in
27653   [\\/]* | ?:[\\/]*)
27654   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
27655   ;;
27656   *)
27657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27658 for as_dir in $PATH
27659 do
27660   IFS=$as_save_IFS
27661   test -z "$as_dir" && as_dir=.
27662     for ac_exec_ext in '' $ac_executable_extensions; do
27663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27664     ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
27665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27666     break 2
27667   fi
27668 done
27669   done
27670 IFS=$as_save_IFS
27671
27672   ;;
27673 esac
27674 fi
27675 MAILER=$ac_cv_path_MAILER
27676 if test -n "$MAILER"; then
27677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAILER" >&5
27678 $as_echo "$MAILER" >&6; }
27679 else
27680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27681 $as_echo "no" >&6; }
27682 fi
27683
27684
27685   test -n "$MAILER" && break
27686 done
27687 test -n "$MAILER" || MAILER="NONE"
27688
27689     if test x"$MAILER" = x"NONE"; then
27690
27691     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
27692 $as_echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
27693
27694
27695     cat <<AAW_EOF >>config.warnings
27696 WARNING: Amanda cannot send mail reports without a mailer.
27697 AAW_EOF
27698
27699
27700         DEFAULT_MAILER=""
27701     else
27702         DEFAULT_MAILER="$MAILER"
27703     fi
27704
27705 cat >>confdefs.h <<_ACEOF
27706 #define DEFAULT_MAILER "$DEFAULT_MAILER"
27707 _ACEOF
27708
27709
27710
27711
27712
27713     # Extract the first word of "mt", so it can be a program name with args.
27714 set dummy mt; ac_word=$2
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27716 $as_echo_n "checking for $ac_word... " >&6; }
27717 if ${ac_cv_path_MT+:} false; then :
27718   $as_echo_n "(cached) " >&6
27719 else
27720   case $MT in
27721   [\\/]* | ?:[\\/]*)
27722   ac_cv_path_MT="$MT" # Let the user override the test with a path.
27723   ;;
27724   *)
27725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27726 for as_dir in $SYSLOCPATH
27727 do
27728   IFS=$as_save_IFS
27729   test -z "$as_dir" && as_dir=.
27730     for ac_exec_ext in '' $ac_executable_extensions; do
27731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27732     ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
27733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27734     break 2
27735   fi
27736 done
27737   done
27738 IFS=$as_save_IFS
27739
27740   test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
27741   ;;
27742 esac
27743 fi
27744 MT=$ac_cv_path_MT
27745 if test -n "$MT"; then
27746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5
27747 $as_echo "$MT" >&6; }
27748 else
27749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27750 $as_echo "no" >&6; }
27751 fi
27752
27753
27754
27755     case "$host" in
27756         *-hp-*) MT_FILE_FLAG="-t" ;;
27757         *) MT_FILE_FLAG="-f" ;;
27758     esac
27759
27760
27761
27762 cat >>confdefs.h <<_ACEOF
27763 #define MT_FILE_FLAG "$MT_FILE_FLAG"
27764 _ACEOF
27765
27766
27767
27768
27769     # Extract the first word of "mtx", so it can be a program name with args.
27770 set dummy mtx; ac_word=$2
27771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27772 $as_echo_n "checking for $ac_word... " >&6; }
27773 if ${ac_cv_path_MTX+:} false; then :
27774   $as_echo_n "(cached) " >&6
27775 else
27776   case $MTX in
27777   [\\/]* | ?:[\\/]*)
27778   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
27779   ;;
27780   *)
27781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27782 for as_dir in $LOCSYSPATH
27783 do
27784   IFS=$as_save_IFS
27785   test -z "$as_dir" && as_dir=.
27786     for ac_exec_ext in '' $ac_executable_extensions; do
27787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27788     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
27789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27790     break 2
27791   fi
27792 done
27793   done
27794 IFS=$as_save_IFS
27795
27796   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
27797   ;;
27798 esac
27799 fi
27800 MTX=$ac_cv_path_MTX
27801 if test -n "$MTX"; then
27802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
27803 $as_echo "$MTX" >&6; }
27804 else
27805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27806 $as_echo "no" >&6; }
27807 fi
27808
27809
27810
27811
27812
27813
27814     # Extract the first word of "mount", so it can be a program name with args.
27815 set dummy mount; ac_word=$2
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27817 $as_echo_n "checking for $ac_word... " >&6; }
27818 if ${ac_cv_path_MOUNT+:} false; then :
27819   $as_echo_n "(cached) " >&6
27820 else
27821   case $MOUNT in
27822   [\\/]* | ?:[\\/]*)
27823   ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
27824   ;;
27825   *)
27826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27827 for as_dir in $LOCSYSPATH
27828 do
27829   IFS=$as_save_IFS
27830   test -z "$as_dir" && as_dir=.
27831     for ac_exec_ext in '' $ac_executable_extensions; do
27832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27833     ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
27834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27835     break 2
27836   fi
27837 done
27838   done
27839 IFS=$as_save_IFS
27840
27841   test -z "$ac_cv_path_MOUNT" && ac_cv_path_MOUNT="mount"
27842   ;;
27843 esac
27844 fi
27845 MOUNT=$ac_cv_path_MOUNT
27846 if test -n "$MOUNT"; then
27847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOUNT" >&5
27848 $as_echo "$MOUNT" >&6; }
27849 else
27850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27851 $as_echo "no" >&6; }
27852 fi
27853
27854
27855
27856
27857
27858
27859     # Extract the first word of "umount", so it can be a program name with args.
27860 set dummy umount; ac_word=$2
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27862 $as_echo_n "checking for $ac_word... " >&6; }
27863 if ${ac_cv_path_UMOUNT+:} false; then :
27864   $as_echo_n "(cached) " >&6
27865 else
27866   case $UMOUNT in
27867   [\\/]* | ?:[\\/]*)
27868   ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
27869   ;;
27870   *)
27871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27872 for as_dir in $LOCSYSPATH
27873 do
27874   IFS=$as_save_IFS
27875   test -z "$as_dir" && as_dir=.
27876     for ac_exec_ext in '' $ac_executable_extensions; do
27877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27878     ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
27879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27880     break 2
27881   fi
27882 done
27883   done
27884 IFS=$as_save_IFS
27885
27886   test -z "$ac_cv_path_UMOUNT" && ac_cv_path_UMOUNT="umount"
27887   ;;
27888 esac
27889 fi
27890 UMOUNT=$ac_cv_path_UMOUNT
27891 if test -n "$UMOUNT"; then
27892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UMOUNT" >&5
27893 $as_echo "$UMOUNT" >&6; }
27894 else
27895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27896 $as_echo "no" >&6; }
27897 fi
27898
27899
27900
27901
27902
27903
27904     # Extract the first word of "uname", so it can be a program name with args.
27905 set dummy uname; ac_word=$2
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27907 $as_echo_n "checking for $ac_word... " >&6; }
27908 if ${ac_cv_path_UNAME+:} false; then :
27909   $as_echo_n "(cached) " >&6
27910 else
27911   case $UNAME in
27912   [\\/]* | ?:[\\/]*)
27913   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
27914   ;;
27915   *)
27916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27917 for as_dir in $LOCSYSPATH
27918 do
27919   IFS=$as_save_IFS
27920   test -z "$as_dir" && as_dir=.
27921     for ac_exec_ext in '' $ac_executable_extensions; do
27922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27923     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
27924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27925     break 2
27926   fi
27927 done
27928   done
27929 IFS=$as_save_IFS
27930
27931   ;;
27932 esac
27933 fi
27934 UNAME=$ac_cv_path_UNAME
27935 if test -n "$UNAME"; then
27936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
27937 $as_echo "$UNAME" >&6; }
27938 else
27939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27940 $as_echo "no" >&6; }
27941 fi
27942
27943
27944
27945 cat >>confdefs.h <<_ACEOF
27946 #define UNAME_PATH "$UNAME"
27947 _ACEOF
27948
27949
27950
27951
27952
27953     for ac_prog in lpr lp
27954 do
27955   # Extract the first word of "$ac_prog", so it can be a program name with args.
27956 set dummy $ac_prog; ac_word=$2
27957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27958 $as_echo_n "checking for $ac_word... " >&6; }
27959 if ${ac_cv_path_LPR+:} false; then :
27960   $as_echo_n "(cached) " >&6
27961 else
27962   case $LPR in
27963   [\\/]* | ?:[\\/]*)
27964   ac_cv_path_LPR="$LPR" # Let the user override the test with a path.
27965   ;;
27966   *)
27967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27968 for as_dir in $PATH
27969 do
27970   IFS=$as_save_IFS
27971   test -z "$as_dir" && as_dir=.
27972     for ac_exec_ext in '' $ac_executable_extensions; do
27973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27974     ac_cv_path_LPR="$as_dir/$ac_word$ac_exec_ext"
27975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27976     break 2
27977   fi
27978 done
27979   done
27980 IFS=$as_save_IFS
27981
27982   ;;
27983 esac
27984 fi
27985 LPR=$ac_cv_path_LPR
27986 if test -n "$LPR"; then
27987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPR" >&5
27988 $as_echo "$LPR" >&6; }
27989 else
27990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27991 $as_echo "no" >&6; }
27992 fi
27993
27994
27995   test -n "$LPR" && break
27996 done
27997
27998     if test ! -z "$LPR"; then
27999
28000 $as_echo "#define HAVE_LPR_CMD 1" >>confdefs.h
28001
28002
28003         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flag to use to select a printer" >&5
28004 $as_echo_n "checking which flag to use to select a printer... " >&6; }
28005 if ${amanda_cv_printer_flag+:} false; then :
28006   $as_echo_n "(cached) " >&6
28007 else
28008
28009             amanda_cv_printer_flag=$LPRFLAG
28010             case "$LPR" in
28011                 lpr|*/lpr) amanda_cv_printer_flag="-P";;
28012                 lp|*/lp) amanda_cv_printer_flag="-d";;
28013             esac
28014
28015 fi
28016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_printer_flag" >&5
28017 $as_echo "$amanda_cv_printer_flag" >&6; }
28018         if test -z "$amanda_cv_printer_flag"; then
28019
28020     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: amanda will always print to the default printer" >&5
28021 $as_echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
28022
28023
28024     cat <<AAW_EOF >>config.warnings
28025 WARNING: amanda will always print to the default printer
28026 AAW_EOF
28027
28028
28029         fi
28030     fi
28031
28032
28033
28034
28035
28036
28037     # Extract the first word of "pcat", so it can be a program name with args.
28038 set dummy pcat; ac_word=$2
28039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28040 $as_echo_n "checking for $ac_word... " >&6; }
28041 if ${ac_cv_path_PCAT+:} false; then :
28042   $as_echo_n "(cached) " >&6
28043 else
28044   case $PCAT in
28045   [\\/]* | ?:[\\/]*)
28046   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
28047   ;;
28048   *)
28049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28050 for as_dir in $LOCSYSPATH
28051 do
28052   IFS=$as_save_IFS
28053   test -z "$as_dir" && as_dir=.
28054     for ac_exec_ext in '' $ac_executable_extensions; do
28055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28056     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
28057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28058     break 2
28059   fi
28060 done
28061   done
28062 IFS=$as_save_IFS
28063
28064   ;;
28065 esac
28066 fi
28067 PCAT=$ac_cv_path_PCAT
28068 if test -n "$PCAT"; then
28069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCAT" >&5
28070 $as_echo "$PCAT" >&6; }
28071 else
28072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28073 $as_echo "no" >&6; }
28074 fi
28075
28076
28077
28078
28079
28080     for ac_prog in perl5 perl
28081 do
28082   # Extract the first word of "$ac_prog", so it can be a program name with args.
28083 set dummy $ac_prog; ac_word=$2
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28085 $as_echo_n "checking for $ac_word... " >&6; }
28086 if ${ac_cv_path_PERL+:} false; then :
28087   $as_echo_n "(cached) " >&6
28088 else
28089   case $PERL in
28090   [\\/]* | ?:[\\/]*)
28091   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
28092   ;;
28093   *)
28094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28095 for as_dir in $LOCSYSPATH
28096 do
28097   IFS=$as_save_IFS
28098   test -z "$as_dir" && as_dir=.
28099     for ac_exec_ext in '' $ac_executable_extensions; do
28100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28101     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
28102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28103     break 2
28104   fi
28105 done
28106   done
28107 IFS=$as_save_IFS
28108
28109   ;;
28110 esac
28111 fi
28112 PERL=$ac_cv_path_PERL
28113 if test -n "$PERL"; then
28114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
28115 $as_echo "$PERL" >&6; }
28116 else
28117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28118 $as_echo "no" >&6; }
28119 fi
28120
28121
28122   test -n "$PERL" && break
28123 done
28124
28125
28126     # Make sure we have perl
28127 if test -z "$PERL"; then
28128 # Extract the first word of "perl", so it can be a program name with args.
28129 set dummy perl; ac_word=$2
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28131 $as_echo_n "checking for $ac_word... " >&6; }
28132 if ${ac_cv_prog_PERL+:} false; then :
28133   $as_echo_n "(cached) " >&6
28134 else
28135   if test -n "$PERL"; then
28136   ac_cv_prog_PERL="$PERL" # Let the user override the test.
28137 else
28138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28139 for as_dir in $PATH
28140 do
28141   IFS=$as_save_IFS
28142   test -z "$as_dir" && as_dir=.
28143     for ac_exec_ext in '' $ac_executable_extensions; do
28144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28145     ac_cv_prog_PERL="perl"
28146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28147     break 2
28148   fi
28149 done
28150   done
28151 IFS=$as_save_IFS
28152
28153 fi
28154 fi
28155 PERL=$ac_cv_prog_PERL
28156 if test -n "$PERL"; then
28157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
28158 $as_echo "$PERL" >&6; }
28159 else
28160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28161 $as_echo "no" >&6; }
28162 fi
28163
28164
28165 fi
28166
28167 # Check if version of Perl is sufficient
28168 ac_perl_version="5.6.0"
28169
28170 if test "x$PERL" != "x"; then
28171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
28172 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
28173   # NB: It would be nice to log the error if there is one, but we cannot rely
28174   # on autoconf internals
28175   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
28176   if test $? -ne 0; then
28177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28178 $as_echo "no" >&6; };
28179
28180         as_fn_error $? "Amanda requires at least perl 5.6.0" "$LINENO" 5
28181
28182   else
28183     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
28184 $as_echo "ok" >&6; };
28185
28186   fi
28187 else
28188   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
28189 $as_echo "$as_me: WARNING: could not find perl" >&2;}
28190 fi
28191
28192
28193
28194
28195     for ac_prog in swig
28196 do
28197   # Extract the first word of "$ac_prog", so it can be a program name with args.
28198 set dummy $ac_prog; ac_word=$2
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28200 $as_echo_n "checking for $ac_word... " >&6; }
28201 if ${ac_cv_path_SWIG+:} false; then :
28202   $as_echo_n "(cached) " >&6
28203 else
28204   case $SWIG in
28205   [\\/]* | ?:[\\/]*)
28206   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
28207   ;;
28208   *)
28209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28210 for as_dir in $LOCSYSPATH
28211 do
28212   IFS=$as_save_IFS
28213   test -z "$as_dir" && as_dir=.
28214     for ac_exec_ext in '' $ac_executable_extensions; do
28215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28216     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
28217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28218     break 2
28219   fi
28220 done
28221   done
28222 IFS=$as_save_IFS
28223
28224   ;;
28225 esac
28226 fi
28227 SWIG=$ac_cv_path_SWIG
28228 if test -n "$SWIG"; then
28229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
28230 $as_echo "$SWIG" >&6; }
28231 else
28232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28233 $as_echo "no" >&6; }
28234 fi
28235
28236
28237   test -n "$SWIG" && break
28238 done
28239
28240
28241     # 1.3.32 introduces a change in the way empty strings are handled (old versions
28242     # returned undef in Perl, while new versions return an empty Perl string)
28243     # 1.3.39 is required for the %begin block
28244
28245         # Extract the first word of "swig", so it can be a program name with args.
28246 set dummy swig; ac_word=$2
28247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28248 $as_echo_n "checking for $ac_word... " >&6; }
28249 if ${ac_cv_path_SWIG+:} false; then :
28250   $as_echo_n "(cached) " >&6
28251 else
28252   case $SWIG in
28253   [\\/]* | ?:[\\/]*)
28254   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
28255   ;;
28256   *)
28257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28258 for as_dir in $PATH
28259 do
28260   IFS=$as_save_IFS
28261   test -z "$as_dir" && as_dir=.
28262     for ac_exec_ext in '' $ac_executable_extensions; do
28263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28264     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
28265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28266     break 2
28267   fi
28268 done
28269   done
28270 IFS=$as_save_IFS
28271
28272   ;;
28273 esac
28274 fi
28275 SWIG=$ac_cv_path_SWIG
28276 if test -n "$SWIG"; then
28277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
28278 $as_echo "$SWIG" >&6; }
28279 else
28280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28281 $as_echo "no" >&6; }
28282 fi
28283
28284
28285         if test -z "$SWIG" ; then
28286                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
28287         elif test -n "1.3.39" ; then
28288                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
28289 $as_echo_n "checking for SWIG version... " >&6; }
28290                 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'`
28291                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
28292 $as_echo "$swig_version" >&6; }
28293                 if test -n "$swig_version" ; then
28294
28295   # Used to indicate true or false condition
28296   ax_compare_version=false
28297
28298   # Convert the two version strings to be compared into a format that
28299   # allows a simple string comparison.  The end result is that a version
28300   # string of the form 1.12.5-r617 will be converted to the form
28301   # 0001001200050617.  In other words, each number is zero padded to four
28302   # digits, and non digits are removed.
28303
28304   ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
28305                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
28306                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
28307                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
28308                      -e 's/[^0-9]//g'`
28309
28310
28311   ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
28312                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
28313                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
28314                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
28315                      -e 's/[^0-9]//g'`
28316
28317
28318     ax_compare_version=`echo "x$ax_compare_version_A
28319 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"`
28320
28321
28322
28323     if test "$ax_compare_version" = "true" ; then
28324
28325                                                     SWIG_LIB=`$SWIG -swiglib`
28326
28327     else
28328                                                     SWIG='echo "Error: SWIG version >= 1.3.39 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
28329
28330   fi
28331
28332                 else
28333                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
28334                 fi
28335         fi
28336
28337
28338
28339
28340     # Extract the first word of "ps", so it can be a program name with args.
28341 set dummy ps; ac_word=$2
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28343 $as_echo_n "checking for $ac_word... " >&6; }
28344 if ${ac_cv_path_PS+:} false; then :
28345   $as_echo_n "(cached) " >&6
28346 else
28347   case $PS in
28348   [\\/]* | ?:[\\/]*)
28349   ac_cv_path_PS="$PS" # Let the user override the test with a path.
28350   ;;
28351   *)
28352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28353 for as_dir in $PATH
28354 do
28355   IFS=$as_save_IFS
28356   test -z "$as_dir" && as_dir=.
28357     for ac_exec_ext in '' $ac_executable_extensions; do
28358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28359     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
28360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28361     break 2
28362   fi
28363 done
28364   done
28365 IFS=$as_save_IFS
28366
28367   ;;
28368 esac
28369 fi
28370 PS=$ac_cv_path_PS
28371 if test -n "$PS"; then
28372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5
28373 $as_echo "$PS" >&6; }
28374 else
28375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28376 $as_echo "no" >&6; }
28377 fi
28378
28379
28380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking ps argument to use" >&5
28381 $as_echo_n "checking ps argument to use... " >&6; }
28382     PS_ARGUMENT=
28383
28384     # ps is *very* non-portable, and across many systems, the same option
28385     # (e.g., -e) can mean different things.  So this macro tries to
28386     # special-case most known systems, and makes an effort to detect unknown
28387     # systems
28388     case "$host" in
28389         *-*-solaris*)
28390             PS_ARGUMENT="-eo pid,ppid,comm"
28391             PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
28392             ;;
28393
28394         *-*-linux-*)
28395             PS_ARGUMENT="-eo pid,ppid,command"
28396             PS_ARGUMENT_ARGS="-eo pid,ppid,command"
28397             ;;
28398
28399         *-*-*bsd*)
28400             PS_ARGUMENT="-axo pid,ppid,command"
28401             PS_ARGUMENT_ARGS="-axo pid,ppid,command"
28402             ;;
28403
28404         *-apple-darwin*)
28405             PS_ARGUMENT="-aAco pid,ppid,command"
28406             PS_ARGUMENT_ARGS="-aAo pid,ppid,command"
28407             ;;
28408
28409         *-pc-cygwin)
28410             # Cygwin is special-cased in Amanda::Process
28411             PS_ARGUMENT=CYGWIN
28412             PS_ARGUMENT_ARGS="-ef"
28413             ;;
28414
28415         *-*-hpux*)
28416             # HPUX's 'PS' needs the env var UNIX95 to run in "xpg4" mode
28417             PS="UNIX95=1 $PS"
28418             PS_ARGUMENT="-eo pid,ppid,comm"
28419             PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
28420             ;;
28421
28422         *)
28423             for try in \
28424                 "-axo pid,ppid,command" \
28425                 "-aAco pid,ppid,command" \
28426                 "-eo pid,ppid,comm"
28427             do
28428                 ps $try >/dev/null 2>/dev/null
28429                 if test $? -eq 0; then
28430                     PS_ARGUMENT="$try"
28431                     break
28432                 fi
28433             done
28434             for try in \
28435                 "-axo pid,ppid,command" \
28436                 "-aAo pid,ppid,command" \
28437                 "-eo pid,ppid,comm"
28438             do
28439                 ps $try >/dev/null 2>/dev/null
28440                 if test $? -eq 0; then
28441                     PS_ARGUMENT_ARGS="$try"
28442                     break
28443                 fi
28444             done
28445             if test -z "$PS_ARGUMENT" -o -z "$PS_ARGUMENT_ARGS"; then
28446                 as_fn_error $? "Can't find ps argument to use." "$LINENO" 5
28447             fi
28448             ;;
28449     esac
28450
28451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS_ARGUMENT" >&5
28452 $as_echo "$PS_ARGUMENT" >&6; }
28453
28454     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS_ARGUMENT_ARGS" >&5
28455 $as_echo "$PS_ARGUMENT_ARGS" >&6; }
28456
28457
28458
28459
28460     # Extract the first word of "rpcgen", so it can be a program name with args.
28461 set dummy rpcgen; ac_word=$2
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28463 $as_echo_n "checking for $ac_word... " >&6; }
28464 if ${ac_cv_path_RPCGEN+:} false; then :
28465   $as_echo_n "(cached) " >&6
28466 else
28467   case $RPCGEN in
28468   [\\/]* | ?:[\\/]*)
28469   ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a path.
28470   ;;
28471   *)
28472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28473 for as_dir in $LOCSYSPATH
28474 do
28475   IFS=$as_save_IFS
28476   test -z "$as_dir" && as_dir=.
28477     for ac_exec_ext in '' $ac_executable_extensions; do
28478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28479     ac_cv_path_RPCGEN="$as_dir/$ac_word$ac_exec_ext"
28480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28481     break 2
28482   fi
28483 done
28484   done
28485 IFS=$as_save_IFS
28486
28487   ;;
28488 esac
28489 fi
28490 RPCGEN=$ac_cv_path_RPCGEN
28491 if test -n "$RPCGEN"; then
28492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPCGEN" >&5
28493 $as_echo "$RPCGEN" >&6; }
28494 else
28495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28496 $as_echo "no" >&6; }
28497 fi
28498
28499
28500
28501
28502     # Extract the first word of "nc", so it can be a program name with args.
28503 set dummy nc; ac_word=$2
28504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28505 $as_echo_n "checking for $ac_word... " >&6; }
28506 if ${ac_cv_path_NC+:} false; then :
28507   $as_echo_n "(cached) " >&6
28508 else
28509   case $NC in
28510   [\\/]* | ?:[\\/]*)
28511   ac_cv_path_NC="$NC" # Let the user override the test with a path.
28512   ;;
28513   *)
28514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28515 for as_dir in $LOCSYSPATH
28516 do
28517   IFS=$as_save_IFS
28518   test -z "$as_dir" && as_dir=.
28519     for ac_exec_ext in '' $ac_executable_extensions; do
28520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28521     ac_cv_path_NC="$as_dir/$ac_word$ac_exec_ext"
28522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28523     break 2
28524   fi
28525 done
28526   done
28527 IFS=$as_save_IFS
28528
28529   ;;
28530 esac
28531 fi
28532 NC=$ac_cv_path_NC
28533 if test -n "$NC"; then
28534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NC" >&5
28535 $as_echo "$NC" >&6; }
28536 else
28537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28538 $as_echo "no" >&6; }
28539 fi
28540
28541
28542     # Extract the first word of "nc6", so it can be a program name with args.
28543 set dummy nc6; ac_word=$2
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28545 $as_echo_n "checking for $ac_word... " >&6; }
28546 if ${ac_cv_path_NC6+:} false; then :
28547   $as_echo_n "(cached) " >&6
28548 else
28549   case $NC6 in
28550   [\\/]* | ?:[\\/]*)
28551   ac_cv_path_NC6="$NC6" # Let the user override the test with a path.
28552   ;;
28553   *)
28554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28555 for as_dir in $LOCSYSPATH
28556 do
28557   IFS=$as_save_IFS
28558   test -z "$as_dir" && as_dir=.
28559     for ac_exec_ext in '' $ac_executable_extensions; do
28560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28561     ac_cv_path_NC6="$as_dir/$ac_word$ac_exec_ext"
28562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28563     break 2
28564   fi
28565 done
28566   done
28567 IFS=$as_save_IFS
28568
28569   ;;
28570 esac
28571 fi
28572 NC6=$ac_cv_path_NC6
28573 if test -n "$NC6"; then
28574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NC6" >&5
28575 $as_echo "$NC6" >&6; }
28576 else
28577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28578 $as_echo "no" >&6; }
28579 fi
28580
28581
28582     # Extract the first word of "netcat", so it can be a program name with args.
28583 set dummy netcat; ac_word=$2
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28585 $as_echo_n "checking for $ac_word... " >&6; }
28586 if ${ac_cv_path_NETCAT+:} false; then :
28587   $as_echo_n "(cached) " >&6
28588 else
28589   case $NETCAT in
28590   [\\/]* | ?:[\\/]*)
28591   ac_cv_path_NETCAT="$NETCAT" # Let the user override the test with a path.
28592   ;;
28593   *)
28594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28595 for as_dir in $LOCSYSPATH
28596 do
28597   IFS=$as_save_IFS
28598   test -z "$as_dir" && as_dir=.
28599     for ac_exec_ext in '' $ac_executable_extensions; do
28600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28601     ac_cv_path_NETCAT="$as_dir/$ac_word$ac_exec_ext"
28602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28603     break 2
28604   fi
28605 done
28606   done
28607 IFS=$as_save_IFS
28608
28609   ;;
28610 esac
28611 fi
28612 NETCAT=$ac_cv_path_NETCAT
28613 if test -n "$NETCAT"; then
28614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETCAT" >&5
28615 $as_echo "$NETCAT" >&6; }
28616 else
28617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28618 $as_echo "no" >&6; }
28619 fi
28620
28621
28622
28623
28624
28625 #
28626 # Compiler / system characteristics
28627 #
28628
28629 #
28630 # compiler
28631 #
28632 if test $ac_cv_c_compiler_gnu = yes; then
28633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
28634 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
28635 if ${ac_cv_prog_gcc_traditional+:} false; then :
28636   $as_echo_n "(cached) " >&6
28637 else
28638     ac_pattern="Autoconf.*'x'"
28639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28640 /* end confdefs.h.  */
28641 #include <sgtty.h>
28642 Autoconf TIOCGETP
28643 _ACEOF
28644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28645   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
28646   ac_cv_prog_gcc_traditional=yes
28647 else
28648   ac_cv_prog_gcc_traditional=no
28649 fi
28650 rm -f conftest*
28651
28652
28653   if test $ac_cv_prog_gcc_traditional = no; then
28654     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28655 /* end confdefs.h.  */
28656 #include <termio.h>
28657 Autoconf TCGETA
28658 _ACEOF
28659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28660   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
28661   ac_cv_prog_gcc_traditional=yes
28662 fi
28663 rm -f conftest*
28664
28665   fi
28666 fi
28667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
28668 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
28669   if test $ac_cv_prog_gcc_traditional = yes; then
28670     CC="$CC -traditional"
28671   fi
28672 fi
28673
28674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28675 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28676 if ${ac_cv_c_const+:} false; then :
28677   $as_echo_n "(cached) " >&6
28678 else
28679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28680 /* end confdefs.h.  */
28681
28682 int
28683 main ()
28684 {
28685 /* FIXME: Include the comments suggested by Paul. */
28686 #ifndef __cplusplus
28687   /* Ultrix mips cc rejects this.  */
28688   typedef int charset[2];
28689   const charset cs;
28690   /* SunOS 4.1.1 cc rejects this.  */
28691   char const *const *pcpcc;
28692   char **ppc;
28693   /* NEC SVR4.0.2 mips cc rejects this.  */
28694   struct point {int x, y;};
28695   static struct point const zero = {0,0};
28696   /* AIX XL C 1.02.0.0 rejects this.
28697      It does not let you subtract one const X* pointer from another in
28698      an arm of an if-expression whose if-part is not a constant
28699      expression */
28700   const char *g = "string";
28701   pcpcc = &g + (g ? g-g : 0);
28702   /* HPUX 7.0 cc rejects these. */
28703   ++pcpcc;
28704   ppc = (char**) pcpcc;
28705   pcpcc = (char const *const *) ppc;
28706   { /* SCO 3.2v4 cc rejects this.  */
28707     char *t;
28708     char const *s = 0 ? (char *) 0 : (char const *) 0;
28709
28710     *t++ = 0;
28711     if (s) return 0;
28712   }
28713   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
28714     int x[] = {25, 17};
28715     const int *foo = &x[0];
28716     ++foo;
28717   }
28718   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28719     typedef const int *iptr;
28720     iptr p = 0;
28721     ++p;
28722   }
28723   { /* AIX XL C 1.02.0.0 rejects this saying
28724        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28725     struct s { int j; const int *ap[3]; };
28726     struct s *b; b->j = 5;
28727   }
28728   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28729     const int foo = 10;
28730     if (!foo) return 0;
28731   }
28732   return !cs[0] && !zero.x;
28733 #endif
28734
28735   ;
28736   return 0;
28737 }
28738 _ACEOF
28739 if ac_fn_c_try_compile "$LINENO"; then :
28740   ac_cv_c_const=yes
28741 else
28742   ac_cv_c_const=no
28743 fi
28744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28745 fi
28746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28747 $as_echo "$ac_cv_c_const" >&6; }
28748 if test $ac_cv_c_const = no; then
28749
28750 $as_echo "#define const /**/" >>confdefs.h
28751
28752 fi
28753
28754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
28755 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
28756 if ${ac_cv_c_bigendian+:} false; then :
28757   $as_echo_n "(cached) " >&6
28758 else
28759   ac_cv_c_bigendian=unknown
28760     # See if we're dealing with a universal compiler.
28761     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28762 /* end confdefs.h.  */
28763 #ifndef __APPLE_CC__
28764                not a universal capable compiler
28765              #endif
28766              typedef int dummy;
28767
28768 _ACEOF
28769 if ac_fn_c_try_compile "$LINENO"; then :
28770
28771         # Check for potential -arch flags.  It is not universal unless
28772         # there are at least two -arch flags with different values.
28773         ac_arch=
28774         ac_prev=
28775         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28776          if test -n "$ac_prev"; then
28777            case $ac_word in
28778              i?86 | x86_64 | ppc | ppc64)
28779                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
28780                  ac_arch=$ac_word
28781                else
28782                  ac_cv_c_bigendian=universal
28783                  break
28784                fi
28785                ;;
28786            esac
28787            ac_prev=
28788          elif test "x$ac_word" = "x-arch"; then
28789            ac_prev=arch
28790          fi
28791        done
28792 fi
28793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28794     if test $ac_cv_c_bigendian = unknown; then
28795       # See if sys/param.h defines the BYTE_ORDER macro.
28796       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28797 /* end confdefs.h.  */
28798 #include <sys/types.h>
28799              #include <sys/param.h>
28800
28801 int
28802 main ()
28803 {
28804 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28805                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28806                      && LITTLE_ENDIAN)
28807               bogus endian macros
28808              #endif
28809
28810   ;
28811   return 0;
28812 }
28813 _ACEOF
28814 if ac_fn_c_try_compile "$LINENO"; then :
28815   # It does; now see whether it defined to BIG_ENDIAN or not.
28816          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28817 /* end confdefs.h.  */
28818 #include <sys/types.h>
28819                 #include <sys/param.h>
28820
28821 int
28822 main ()
28823 {
28824 #if BYTE_ORDER != BIG_ENDIAN
28825                  not big endian
28826                 #endif
28827
28828   ;
28829   return 0;
28830 }
28831 _ACEOF
28832 if ac_fn_c_try_compile "$LINENO"; then :
28833   ac_cv_c_bigendian=yes
28834 else
28835   ac_cv_c_bigendian=no
28836 fi
28837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28838 fi
28839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28840     fi
28841     if test $ac_cv_c_bigendian = unknown; then
28842       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28843       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28844 /* end confdefs.h.  */
28845 #include <limits.h>
28846
28847 int
28848 main ()
28849 {
28850 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28851               bogus endian macros
28852              #endif
28853
28854   ;
28855   return 0;
28856 }
28857 _ACEOF
28858 if ac_fn_c_try_compile "$LINENO"; then :
28859   # It does; now see whether it defined to _BIG_ENDIAN or not.
28860          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28861 /* end confdefs.h.  */
28862 #include <limits.h>
28863
28864 int
28865 main ()
28866 {
28867 #ifndef _BIG_ENDIAN
28868                  not big endian
28869                 #endif
28870
28871   ;
28872   return 0;
28873 }
28874 _ACEOF
28875 if ac_fn_c_try_compile "$LINENO"; then :
28876   ac_cv_c_bigendian=yes
28877 else
28878   ac_cv_c_bigendian=no
28879 fi
28880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28881 fi
28882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28883     fi
28884     if test $ac_cv_c_bigendian = unknown; then
28885       # Compile a test program.
28886       if test "$cross_compiling" = yes; then :
28887   # Try to guess by grepping values from an object file.
28888          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28889 /* end confdefs.h.  */
28890 short int ascii_mm[] =
28891                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28892                 short int ascii_ii[] =
28893                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28894                 int use_ascii (int i) {
28895                   return ascii_mm[i] + ascii_ii[i];
28896                 }
28897                 short int ebcdic_ii[] =
28898                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28899                 short int ebcdic_mm[] =
28900                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28901                 int use_ebcdic (int i) {
28902                   return ebcdic_mm[i] + ebcdic_ii[i];
28903                 }
28904                 extern int foo;
28905
28906 int
28907 main ()
28908 {
28909 return use_ascii (foo) == use_ebcdic (foo);
28910   ;
28911   return 0;
28912 }
28913 _ACEOF
28914 if ac_fn_c_try_compile "$LINENO"; then :
28915   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28916               ac_cv_c_bigendian=yes
28917             fi
28918             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28919               if test "$ac_cv_c_bigendian" = unknown; then
28920                 ac_cv_c_bigendian=no
28921               else
28922                 # finding both strings is unlikely to happen, but who knows?
28923                 ac_cv_c_bigendian=unknown
28924               fi
28925             fi
28926 fi
28927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28928 else
28929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28930 /* end confdefs.h.  */
28931 $ac_includes_default
28932 int
28933 main ()
28934 {
28935
28936              /* Are we little or big endian?  From Harbison&Steele.  */
28937              union
28938              {
28939                long int l;
28940                char c[sizeof (long int)];
28941              } u;
28942              u.l = 1;
28943              return u.c[sizeof (long int) - 1] == 1;
28944
28945   ;
28946   return 0;
28947 }
28948 _ACEOF
28949 if ac_fn_c_try_run "$LINENO"; then :
28950   ac_cv_c_bigendian=no
28951 else
28952   ac_cv_c_bigendian=yes
28953 fi
28954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28955   conftest.$ac_objext conftest.beam conftest.$ac_ext
28956 fi
28957
28958     fi
28959 fi
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
28961 $as_echo "$ac_cv_c_bigendian" >&6; }
28962  case $ac_cv_c_bigendian in #(
28963    yes)
28964      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
28965 ;; #(
28966    no)
28967       ;; #(
28968    universal)
28969
28970 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
28971
28972      ;; #(
28973    *)
28974      as_fn_error $? "unknown endianness
28975  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
28976  esac
28977
28978
28979 # GCC_COMPILER is needed in the gnulib Makefile to silence errors
28980  if test "x$GCC" = "xyes"; then
28981   GCC_COMPILER_TRUE=
28982   GCC_COMPILER_FALSE='#'
28983 else
28984   GCC_COMPILER_TRUE='#'
28985   GCC_COMPILER_FALSE=
28986 fi
28987
28988
28989 #
28990 # Warnings
28991 #
28992
28993
28994
28995
28996     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wparentheses" >&5
28997 $as_echo_n "checking for gcc flag -Wparentheses... " >&6; }
28998     if test "x$GCC" = "xyes"; then
28999                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29000            $CC -v --help 2>&1) |
29001          $EGREP -- '[^[:alnum:]]-Wparentheses[^[:alnum:]-]' 2>&1 > /dev/null
29002                 if test $? -eq 0; then
29003             found_warning=yes
29004             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29005 $as_echo "yes" >&6; }
29006         else
29007             found_warning=no
29008             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29009 $as_echo "no" >&6; }
29010         fi
29011     else
29012         found_warning=no
29013         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29014 $as_echo "no (not using gcc)" >&6; }
29015     fi
29016
29017     if test x"$found_warning" = x"yes"; then
29018         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
29019
29020
29021     else
29022         :
29023     fi
29024
29025
29026
29027
29028
29029
29030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wdeclaration-after-statement" >&5
29031 $as_echo_n "checking for gcc flag -Wdeclaration-after-statement... " >&6; }
29032     if test "x$GCC" = "xyes"; then
29033                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29034            $CC -v --help 2>&1) |
29035          $EGREP -- '[^[:alnum:]]-Wdeclaration-after-statement[^[:alnum:]-]' 2>&1 > /dev/null
29036                 if test $? -eq 0; then
29037             found_warning=yes
29038             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29039 $as_echo "yes" >&6; }
29040         else
29041             found_warning=no
29042             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29043 $as_echo "no" >&6; }
29044         fi
29045     else
29046         found_warning=no
29047         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29048 $as_echo "no (not using gcc)" >&6; }
29049     fi
29050
29051     if test x"$found_warning" = x"yes"; then
29052         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
29053
29054
29055     else
29056         :
29057     fi
29058
29059
29060
29061
29062
29063
29064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wmissing-prototypes" >&5
29065 $as_echo_n "checking for gcc flag -Wmissing-prototypes... " >&6; }
29066     if test "x$GCC" = "xyes"; then
29067                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29068            $CC -v --help 2>&1) |
29069          $EGREP -- '[^[:alnum:]]-Wmissing-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
29070                 if test $? -eq 0; then
29071             found_warning=yes
29072             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29073 $as_echo "yes" >&6; }
29074         else
29075             found_warning=no
29076             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29077 $as_echo "no" >&6; }
29078         fi
29079     else
29080         found_warning=no
29081         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29082 $as_echo "no (not using gcc)" >&6; }
29083     fi
29084
29085     if test x"$found_warning" = x"yes"; then
29086         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
29087
29088
29089     else
29090         :
29091     fi
29092
29093
29094
29095
29096
29097
29098     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wstrict-prototypes" >&5
29099 $as_echo_n "checking for gcc flag -Wstrict-prototypes... " >&6; }
29100     if test "x$GCC" = "xyes"; then
29101                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29102            $CC -v --help 2>&1) |
29103          $EGREP -- '[^[:alnum:]]-Wstrict-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
29104                 if test $? -eq 0; then
29105             found_warning=yes
29106             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29107 $as_echo "yes" >&6; }
29108         else
29109             found_warning=no
29110             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29111 $as_echo "no" >&6; }
29112         fi
29113     else
29114         found_warning=no
29115         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29116 $as_echo "no (not using gcc)" >&6; }
29117     fi
29118
29119     if test x"$found_warning" = x"yes"; then
29120         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
29121
29122
29123     else
29124         :
29125     fi
29126
29127
29128
29129
29130
29131
29132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wmissing-declarations" >&5
29133 $as_echo_n "checking for gcc flag -Wmissing-declarations... " >&6; }
29134     if test "x$GCC" = "xyes"; then
29135                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29136            $CC -v --help 2>&1) |
29137          $EGREP -- '[^[:alnum:]]-Wmissing-declarations[^[:alnum:]-]' 2>&1 > /dev/null
29138                 if test $? -eq 0; then
29139             found_warning=yes
29140             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29141 $as_echo "yes" >&6; }
29142         else
29143             found_warning=no
29144             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29145 $as_echo "no" >&6; }
29146         fi
29147     else
29148         found_warning=no
29149         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29150 $as_echo "no (not using gcc)" >&6; }
29151     fi
29152
29153     if test x"$found_warning" = x"yes"; then
29154         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
29155
29156
29157     else
29158         :
29159     fi
29160
29161
29162
29163
29164
29165
29166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wformat" >&5
29167 $as_echo_n "checking for gcc flag -Wformat... " >&6; }
29168     if test "x$GCC" = "xyes"; then
29169                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29170            $CC -v --help 2>&1) |
29171          $EGREP -- '[^[:alnum:]]-Wformat[^[:alnum:]-]' 2>&1 > /dev/null
29172                 if test $? -eq 0; then
29173             found_warning=yes
29174             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29175 $as_echo "yes" >&6; }
29176         else
29177             found_warning=no
29178             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29179 $as_echo "no" >&6; }
29180         fi
29181     else
29182         found_warning=no
29183         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29184 $as_echo "no (not using gcc)" >&6; }
29185     fi
29186
29187     if test x"$found_warning" = x"yes"; then
29188         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
29189
29190
29191     else
29192         :
29193     fi
29194
29195
29196
29197
29198
29199
29200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wformat-security" >&5
29201 $as_echo_n "checking for gcc flag -Wformat-security... " >&6; }
29202     if test "x$GCC" = "xyes"; then
29203                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29204            $CC -v --help 2>&1) |
29205          $EGREP -- '[^[:alnum:]]-Wformat-security[^[:alnum:]-]' 2>&1 > /dev/null
29206                 if test $? -eq 0; then
29207             found_warning=yes
29208             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29209 $as_echo "yes" >&6; }
29210         else
29211             found_warning=no
29212             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29213 $as_echo "no" >&6; }
29214         fi
29215     else
29216         found_warning=no
29217         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29218 $as_echo "no (not using gcc)" >&6; }
29219     fi
29220
29221     if test x"$found_warning" = x"yes"; then
29222         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat-security"
29223
29224
29225     else
29226         :
29227     fi
29228
29229
29230
29231
29232
29233
29234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wsign-compare" >&5
29235 $as_echo_n "checking for gcc flag -Wsign-compare... " >&6; }
29236     if test "x$GCC" = "xyes"; then
29237                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29238            $CC -v --help 2>&1) |
29239          $EGREP -- '[^[:alnum:]]-Wsign-compare[^[:alnum:]-]' 2>&1 > /dev/null
29240                 if test $? -eq 0; then
29241             found_warning=yes
29242             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29243 $as_echo "yes" >&6; }
29244         else
29245             found_warning=no
29246             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29247 $as_echo "no" >&6; }
29248         fi
29249     else
29250         found_warning=no
29251         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29252 $as_echo "no (not using gcc)" >&6; }
29253     fi
29254
29255     if test x"$found_warning" = x"yes"; then
29256         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
29257
29258
29259     else
29260         :
29261     fi
29262
29263
29264
29265
29266
29267
29268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wfloat-equal" >&5
29269 $as_echo_n "checking for gcc flag -Wfloat-equal... " >&6; }
29270     if test "x$GCC" = "xyes"; then
29271                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29272            $CC -v --help 2>&1) |
29273          $EGREP -- '[^[:alnum:]]-Wfloat-equal[^[:alnum:]-]' 2>&1 > /dev/null
29274                 if test $? -eq 0; then
29275             found_warning=yes
29276             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29277 $as_echo "yes" >&6; }
29278         else
29279             found_warning=no
29280             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29281 $as_echo "no" >&6; }
29282         fi
29283     else
29284         found_warning=no
29285         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29286 $as_echo "no (not using gcc)" >&6; }
29287     fi
29288
29289     if test x"$found_warning" = x"yes"; then
29290         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
29291
29292
29293     else
29294         :
29295     fi
29296
29297
29298
29299
29300
29301
29302     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wold-style-definition" >&5
29303 $as_echo_n "checking for gcc flag -Wold-style-definition... " >&6; }
29304     if test "x$GCC" = "xyes"; then
29305                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29306            $CC -v --help 2>&1) |
29307          $EGREP -- '[^[:alnum:]]-Wold-style-definition[^[:alnum:]-]' 2>&1 > /dev/null
29308                 if test $? -eq 0; then
29309             found_warning=yes
29310             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29311 $as_echo "yes" >&6; }
29312         else
29313             found_warning=no
29314             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29315 $as_echo "no" >&6; }
29316         fi
29317     else
29318         found_warning=no
29319         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29320 $as_echo "no (not using gcc)" >&6; }
29321     fi
29322
29323     if test x"$found_warning" = x"yes"; then
29324         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
29325
29326
29327     else
29328         :
29329     fi
29330
29331
29332
29333     # test for -W'warning', then add the 'no-' version.
29334
29335
29336
29337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wstrict-aliasing" >&5
29338 $as_echo_n "checking for gcc flag -Wstrict-aliasing... " >&6; }
29339     if test "x$GCC" = "xyes"; then
29340                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29341            $CC -v --help 2>&1) |
29342          $EGREP -- '[^[:alnum:]]-Wstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
29343                 if test $? -eq 0; then
29344             found_warning=yes
29345             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29346 $as_echo "yes" >&6; }
29347         else
29348             found_warning=no
29349             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29350 $as_echo "no" >&6; }
29351         fi
29352     else
29353         found_warning=no
29354         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29355 $as_echo "no (not using gcc)" >&6; }
29356     fi
29357
29358     if test x"$found_warning" = x"yes"; then
29359         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
29360
29361
29362     else
29363         :
29364     fi
29365
29366
29367
29368     # test for -W'warning', then add the 'no-' version.
29369
29370
29371
29372     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wunknown-pragmas" >&5
29373 $as_echo_n "checking for gcc flag -Wunknown-pragmas... " >&6; }
29374     if test "x$GCC" = "xyes"; then
29375                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29376            $CC -v --help 2>&1) |
29377          $EGREP -- '[^[:alnum:]]-Wunknown-pragmas[^[:alnum:]-]' 2>&1 > /dev/null
29378                 if test $? -eq 0; then
29379             found_warning=yes
29380             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29381 $as_echo "yes" >&6; }
29382         else
29383             found_warning=no
29384             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29385 $as_echo "no" >&6; }
29386         fi
29387     else
29388         found_warning=no
29389         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29390 $as_echo "no (not using gcc)" >&6; }
29391     fi
29392
29393     if test x"$found_warning" = x"yes"; then
29394         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
29395
29396
29397     else
29398         :
29399     fi
29400
29401
29402
29403     # Check whether --enable-werror was given.
29404 if test "${enable_werror+set}" = set; then :
29405   enableval=$enable_werror;
29406             case "$enableval" in
29407             "" | y | ye | yes)
29408
29409
29410
29411
29412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Werror" >&5
29413 $as_echo_n "checking for gcc flag -Werror... " >&6; }
29414     if test "x$GCC" = "xyes"; then
29415                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
29416            $CC -v --help 2>&1) |
29417          $EGREP -- '[^[:alnum:]]-Werror[^[:alnum:]-]' 2>&1 > /dev/null
29418                 if test $? -eq 0; then
29419             found_warning=yes
29420             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29421 $as_echo "yes" >&6; }
29422         else
29423             found_warning=no
29424             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29425 $as_echo "no" >&6; }
29426         fi
29427     else
29428         found_warning=no
29429         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
29430 $as_echo "no (not using gcc)" >&6; }
29431     fi
29432
29433     if test x"$found_warning" = x"yes"; then
29434         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Werror"
29435
29436
29437     else
29438         :
29439     fi
29440
29441
29442                 ;;
29443             esac
29444
29445 fi
29446
29447
29448
29449     # Check whether --enable-swig-error was given.
29450 if test "${enable_swig_error+set}" = set; then :
29451   enableval=$enable_swig_error;
29452             case "$enableval" in
29453             "" | y | ye | yes)
29454                 AMANDA_SWIG_PERL_CFLAGS=-Werror -Wno-deprecated-declarations
29455                 ;;
29456             *n | no)
29457                 AMANDA_SWIG_PERL_CFLAGS=
29458                 ;;
29459             esac
29460
29461 fi
29462
29463
29464
29465
29466 #
29467 # Libtool
29468 #
29469 case `pwd` in
29470   *\ * | *\     *)
29471     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
29472 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
29473 esac
29474
29475
29476
29477 macro_version='2.4'
29478 macro_revision='1.3293'
29479
29480
29481
29482
29483
29484
29485
29486
29487
29488
29489
29490
29491
29492 ltmain="$ac_aux_dir/ltmain.sh"
29493
29494 # Backslashify metacharacters that are still active within
29495 # double-quoted strings.
29496 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
29497
29498 # Same as above, but do not quote variable references.
29499 double_quote_subst='s/\(["`\\]\)/\\\1/g'
29500
29501 # Sed substitution to delay expansion of an escaped shell variable in a
29502 # double_quote_subst'ed string.
29503 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
29504
29505 # Sed substitution to delay expansion of an escaped single quote.
29506 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
29507
29508 # Sed substitution to avoid accidental globbing in evaled expressions
29509 no_glob_subst='s/\*/\\\*/g'
29510
29511 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29512 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
29513 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
29514
29515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
29516 $as_echo_n "checking how to print strings... " >&6; }
29517 # Test print first, because it will be a builtin if present.
29518 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
29519    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
29520   ECHO='print -r --'
29521 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
29522   ECHO='printf %s\n'
29523 else
29524   # Use this function as a fallback that always works.
29525   func_fallback_echo ()
29526   {
29527     eval 'cat <<_LTECHO_EOF
29528 $1
29529 _LTECHO_EOF'
29530   }
29531   ECHO='func_fallback_echo'
29532 fi
29533
29534 # func_echo_all arg...
29535 # Invoke $ECHO with all args, space-separated.
29536 func_echo_all ()
29537 {
29538     $ECHO ""
29539 }
29540
29541 case "$ECHO" in
29542   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
29543 $as_echo "printf" >&6; } ;;
29544   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
29545 $as_echo "print -r" >&6; } ;;
29546   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
29547 $as_echo "cat" >&6; } ;;
29548 esac
29549
29550
29551
29552
29553
29554
29555
29556
29557
29558
29559
29560
29561
29562
29563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
29564 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
29565 if ${ac_cv_path_SED+:} false; then :
29566   $as_echo_n "(cached) " >&6
29567 else
29568             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
29569      for ac_i in 1 2 3 4 5 6 7; do
29570        ac_script="$ac_script$as_nl$ac_script"
29571      done
29572      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
29573      { ac_script=; unset ac_script;}
29574      if test -z "$SED"; then
29575   ac_path_SED_found=false
29576   # Loop through the user's path and test for each of PROGNAME-LIST
29577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29578 for as_dir in $PATH
29579 do
29580   IFS=$as_save_IFS
29581   test -z "$as_dir" && as_dir=.
29582     for ac_prog in sed gsed; do
29583     for ac_exec_ext in '' $ac_executable_extensions; do
29584       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
29585       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
29586 # Check for GNU ac_path_SED and select it if it is found.
29587   # Check for GNU $ac_path_SED
29588 case `"$ac_path_SED" --version 2>&1` in
29589 *GNU*)
29590   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
29591 *)
29592   ac_count=0
29593   $as_echo_n 0123456789 >"conftest.in"
29594   while :
29595   do
29596     cat "conftest.in" "conftest.in" >"conftest.tmp"
29597     mv "conftest.tmp" "conftest.in"
29598     cp "conftest.in" "conftest.nl"
29599     $as_echo '' >> "conftest.nl"
29600     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
29601     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
29602     as_fn_arith $ac_count + 1 && ac_count=$as_val
29603     if test $ac_count -gt ${ac_path_SED_max-0}; then
29604       # Best one so far, save it but keep looking for a better one
29605       ac_cv_path_SED="$ac_path_SED"
29606       ac_path_SED_max=$ac_count
29607     fi
29608     # 10*(2^10) chars as input seems more than enough
29609     test $ac_count -gt 10 && break
29610   done
29611   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
29612 esac
29613
29614       $ac_path_SED_found && break 3
29615     done
29616   done
29617   done
29618 IFS=$as_save_IFS
29619   if test -z "$ac_cv_path_SED"; then
29620     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
29621   fi
29622 else
29623   ac_cv_path_SED=$SED
29624 fi
29625
29626 fi
29627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
29628 $as_echo "$ac_cv_path_SED" >&6; }
29629  SED="$ac_cv_path_SED"
29630   rm -f conftest.sed
29631
29632 test -z "$SED" && SED=sed
29633 Xsed="$SED -e 1s/^X//"
29634
29635
29636
29637
29638
29639
29640
29641
29642
29643
29644
29645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
29646 $as_echo_n "checking for fgrep... " >&6; }
29647 if ${ac_cv_path_FGREP+:} false; then :
29648   $as_echo_n "(cached) " >&6
29649 else
29650   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
29651    then ac_cv_path_FGREP="$GREP -F"
29652    else
29653      if test -z "$FGREP"; then
29654   ac_path_FGREP_found=false
29655   # Loop through the user's path and test for each of PROGNAME-LIST
29656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
29658 do
29659   IFS=$as_save_IFS
29660   test -z "$as_dir" && as_dir=.
29661     for ac_prog in fgrep; do
29662     for ac_exec_ext in '' $ac_executable_extensions; do
29663       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
29664       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
29665 # Check for GNU ac_path_FGREP and select it if it is found.
29666   # Check for GNU $ac_path_FGREP
29667 case `"$ac_path_FGREP" --version 2>&1` in
29668 *GNU*)
29669   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
29670 *)
29671   ac_count=0
29672   $as_echo_n 0123456789 >"conftest.in"
29673   while :
29674   do
29675     cat "conftest.in" "conftest.in" >"conftest.tmp"
29676     mv "conftest.tmp" "conftest.in"
29677     cp "conftest.in" "conftest.nl"
29678     $as_echo 'FGREP' >> "conftest.nl"
29679     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
29680     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
29681     as_fn_arith $ac_count + 1 && ac_count=$as_val
29682     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
29683       # Best one so far, save it but keep looking for a better one
29684       ac_cv_path_FGREP="$ac_path_FGREP"
29685       ac_path_FGREP_max=$ac_count
29686     fi
29687     # 10*(2^10) chars as input seems more than enough
29688     test $ac_count -gt 10 && break
29689   done
29690   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
29691 esac
29692
29693       $ac_path_FGREP_found && break 3
29694     done
29695   done
29696   done
29697 IFS=$as_save_IFS
29698   if test -z "$ac_cv_path_FGREP"; then
29699     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
29700   fi
29701 else
29702   ac_cv_path_FGREP=$FGREP
29703 fi
29704
29705    fi
29706 fi
29707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
29708 $as_echo "$ac_cv_path_FGREP" >&6; }
29709  FGREP="$ac_cv_path_FGREP"
29710
29711
29712 test -z "$GREP" && GREP=grep
29713
29714
29715
29716
29717
29718
29719
29720
29721
29722
29723
29724
29725
29726
29727
29728
29729
29730
29731
29732 # Check whether --with-gnu-ld was given.
29733 if test "${with_gnu_ld+set}" = set; then :
29734   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
29735 else
29736   with_gnu_ld=no
29737 fi
29738
29739 ac_prog=ld
29740 if test "$GCC" = yes; then
29741   # Check if gcc -print-prog-name=ld gives a path.
29742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
29743 $as_echo_n "checking for ld used by $CC... " >&6; }
29744   case $host in
29745   *-*-mingw*)
29746     # gcc leaves a trailing carriage return which upsets mingw
29747     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
29748   *)
29749     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
29750   esac
29751   case $ac_prog in
29752     # Accept absolute paths.
29753     [\\/]* | ?:[\\/]*)
29754       re_direlt='/[^/][^/]*/\.\./'
29755       # Canonicalize the pathname of ld
29756       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
29757       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
29758         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
29759       done
29760       test -z "$LD" && LD="$ac_prog"
29761       ;;
29762   "")
29763     # If it fails, then pretend we aren't using GCC.
29764     ac_prog=ld
29765     ;;
29766   *)
29767     # If it is relative, then search for the first ld in PATH.
29768     with_gnu_ld=unknown
29769     ;;
29770   esac
29771 elif test "$with_gnu_ld" = yes; then
29772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
29773 $as_echo_n "checking for GNU ld... " >&6; }
29774 else
29775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
29776 $as_echo_n "checking for non-GNU ld... " >&6; }
29777 fi
29778 if ${lt_cv_path_LD+:} false; then :
29779   $as_echo_n "(cached) " >&6
29780 else
29781   if test -z "$LD"; then
29782   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
29783   for ac_dir in $PATH; do
29784     IFS="$lt_save_ifs"
29785     test -z "$ac_dir" && ac_dir=.
29786     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
29787       lt_cv_path_LD="$ac_dir/$ac_prog"
29788       # Check to see if the program is GNU ld.  I'd rather use --version,
29789       # but apparently some variants of GNU ld only accept -v.
29790       # Break only if it was the GNU/non-GNU ld that we prefer.
29791       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
29792       *GNU* | *'with BFD'*)
29793         test "$with_gnu_ld" != no && break
29794         ;;
29795       *)
29796         test "$with_gnu_ld" != yes && break
29797         ;;
29798       esac
29799     fi
29800   done
29801   IFS="$lt_save_ifs"
29802 else
29803   lt_cv_path_LD="$LD" # Let the user override the test with a path.
29804 fi
29805 fi
29806
29807 LD="$lt_cv_path_LD"
29808 if test -n "$LD"; then
29809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
29810 $as_echo "$LD" >&6; }
29811 else
29812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29813 $as_echo "no" >&6; }
29814 fi
29815 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
29816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
29817 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
29818 if ${lt_cv_prog_gnu_ld+:} false; then :
29819   $as_echo_n "(cached) " >&6
29820 else
29821   # I'd rather use --version here, but apparently some GNU lds only accept -v.
29822 case `$LD -v 2>&1 </dev/null` in
29823 *GNU* | *'with BFD'*)
29824   lt_cv_prog_gnu_ld=yes
29825   ;;
29826 *)
29827   lt_cv_prog_gnu_ld=no
29828   ;;
29829 esac
29830 fi
29831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
29832 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
29833 with_gnu_ld=$lt_cv_prog_gnu_ld
29834
29835
29836
29837
29838
29839
29840
29841
29842
29843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
29844 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
29845 if ${lt_cv_path_NM+:} false; then :
29846   $as_echo_n "(cached) " >&6
29847 else
29848   if test -n "$NM"; then
29849   # Let the user override the test.
29850   lt_cv_path_NM="$NM"
29851 else
29852   lt_nm_to_check="${ac_tool_prefix}nm"
29853   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
29854     lt_nm_to_check="$lt_nm_to_check nm"
29855   fi
29856   for lt_tmp_nm in $lt_nm_to_check; do
29857     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
29858     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
29859       IFS="$lt_save_ifs"
29860       test -z "$ac_dir" && ac_dir=.
29861       tmp_nm="$ac_dir/$lt_tmp_nm"
29862       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
29863         # Check to see if the nm accepts a BSD-compat flag.
29864         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
29865         #   nm: unknown option "B" ignored
29866         # Tru64's nm complains that /dev/null is an invalid object file
29867         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
29868         */dev/null* | *'Invalid file or object type'*)
29869           lt_cv_path_NM="$tmp_nm -B"
29870           break
29871           ;;
29872         *)
29873           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
29874           */dev/null*)
29875             lt_cv_path_NM="$tmp_nm -p"
29876             break
29877             ;;
29878           *)
29879             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
29880             continue # so that we can try to find one that supports BSD flags
29881             ;;
29882           esac
29883           ;;
29884         esac
29885       fi
29886     done
29887     IFS="$lt_save_ifs"
29888   done
29889   : ${lt_cv_path_NM=no}
29890 fi
29891 fi
29892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
29893 $as_echo "$lt_cv_path_NM" >&6; }
29894 if test "$lt_cv_path_NM" != "no"; then
29895   NM="$lt_cv_path_NM"
29896 else
29897   # Didn't find any BSD compatible name lister, look for dumpbin.
29898   if test -n "$DUMPBIN"; then :
29899     # Let the user override the test.
29900   else
29901     if test -n "$ac_tool_prefix"; then
29902   for ac_prog in dumpbin "link -dump"
29903   do
29904     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
29906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29907 $as_echo_n "checking for $ac_word... " >&6; }
29908 if ${ac_cv_prog_DUMPBIN+:} false; then :
29909   $as_echo_n "(cached) " >&6
29910 else
29911   if test -n "$DUMPBIN"; then
29912   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
29913 else
29914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29915 for as_dir in $PATH
29916 do
29917   IFS=$as_save_IFS
29918   test -z "$as_dir" && as_dir=.
29919     for ac_exec_ext in '' $ac_executable_extensions; do
29920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29921     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
29922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29923     break 2
29924   fi
29925 done
29926   done
29927 IFS=$as_save_IFS
29928
29929 fi
29930 fi
29931 DUMPBIN=$ac_cv_prog_DUMPBIN
29932 if test -n "$DUMPBIN"; then
29933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
29934 $as_echo "$DUMPBIN" >&6; }
29935 else
29936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29937 $as_echo "no" >&6; }
29938 fi
29939
29940
29941     test -n "$DUMPBIN" && break
29942   done
29943 fi
29944 if test -z "$DUMPBIN"; then
29945   ac_ct_DUMPBIN=$DUMPBIN
29946   for ac_prog in dumpbin "link -dump"
29947 do
29948   # Extract the first word of "$ac_prog", so it can be a program name with args.
29949 set dummy $ac_prog; ac_word=$2
29950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29951 $as_echo_n "checking for $ac_word... " >&6; }
29952 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
29953   $as_echo_n "(cached) " >&6
29954 else
29955   if test -n "$ac_ct_DUMPBIN"; then
29956   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
29957 else
29958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29959 for as_dir in $PATH
29960 do
29961   IFS=$as_save_IFS
29962   test -z "$as_dir" && as_dir=.
29963     for ac_exec_ext in '' $ac_executable_extensions; do
29964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29965     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
29966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29967     break 2
29968   fi
29969 done
29970   done
29971 IFS=$as_save_IFS
29972
29973 fi
29974 fi
29975 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
29976 if test -n "$ac_ct_DUMPBIN"; then
29977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
29978 $as_echo "$ac_ct_DUMPBIN" >&6; }
29979 else
29980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29981 $as_echo "no" >&6; }
29982 fi
29983
29984
29985   test -n "$ac_ct_DUMPBIN" && break
29986 done
29987
29988   if test "x$ac_ct_DUMPBIN" = x; then
29989     DUMPBIN=":"
29990   else
29991     case $cross_compiling:$ac_tool_warned in
29992 yes:)
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29995 ac_tool_warned=yes ;;
29996 esac
29997     DUMPBIN=$ac_ct_DUMPBIN
29998   fi
29999 fi
30000
30001     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
30002     *COFF*)
30003       DUMPBIN="$DUMPBIN -symbols"
30004       ;;
30005     *)
30006       DUMPBIN=:
30007       ;;
30008     esac
30009   fi
30010
30011   if test "$DUMPBIN" != ":"; then
30012     NM="$DUMPBIN"
30013   fi
30014 fi
30015 test -z "$NM" && NM=nm
30016
30017
30018
30019
30020
30021
30022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
30023 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
30024 if ${lt_cv_nm_interface+:} false; then :
30025   $as_echo_n "(cached) " >&6
30026 else
30027   lt_cv_nm_interface="BSD nm"
30028   echo "int some_variable = 0;" > conftest.$ac_ext
30029   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
30030   (eval "$ac_compile" 2>conftest.err)
30031   cat conftest.err >&5
30032   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
30033   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
30034   cat conftest.err >&5
30035   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
30036   cat conftest.out >&5
30037   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
30038     lt_cv_nm_interface="MS dumpbin"
30039   fi
30040   rm -f conftest*
30041 fi
30042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
30043 $as_echo "$lt_cv_nm_interface" >&6; }
30044
30045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
30046 $as_echo_n "checking whether ln -s works... " >&6; }
30047 LN_S=$as_ln_s
30048 if test "$LN_S" = "ln -s"; then
30049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30050 $as_echo "yes" >&6; }
30051 else
30052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
30053 $as_echo "no, using $LN_S" >&6; }
30054 fi
30055
30056 # find the maximum length of command line arguments
30057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
30058 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
30059 if ${lt_cv_sys_max_cmd_len+:} false; then :
30060   $as_echo_n "(cached) " >&6
30061 else
30062     i=0
30063   teststring="ABCD"
30064
30065   case $build_os in
30066   msdosdjgpp*)
30067     # On DJGPP, this test can blow up pretty badly due to problems in libc
30068     # (any single argument exceeding 2000 bytes causes a buffer overrun
30069     # during glob expansion).  Even if it were fixed, the result of this
30070     # check would be larger than it should be.
30071     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
30072     ;;
30073
30074   gnu*)
30075     # Under GNU Hurd, this test is not required because there is
30076     # no limit to the length of command line arguments.
30077     # Libtool will interpret -1 as no limit whatsoever
30078     lt_cv_sys_max_cmd_len=-1;
30079     ;;
30080
30081   cygwin* | mingw* | cegcc*)
30082     # On Win9x/ME, this test blows up -- it succeeds, but takes
30083     # about 5 minutes as the teststring grows exponentially.
30084     # Worse, since 9x/ME are not pre-emptively multitasking,
30085     # you end up with a "frozen" computer, even though with patience
30086     # the test eventually succeeds (with a max line length of 256k).
30087     # Instead, let's just punt: use the minimum linelength reported by
30088     # all of the supported platforms: 8192 (on NT/2K/XP).
30089     lt_cv_sys_max_cmd_len=8192;
30090     ;;
30091
30092   mint*)
30093     # On MiNT this can take a long time and run out of memory.
30094     lt_cv_sys_max_cmd_len=8192;
30095     ;;
30096
30097   amigaos*)
30098     # On AmigaOS with pdksh, this test takes hours, literally.
30099     # So we just punt and use a minimum line length of 8192.
30100     lt_cv_sys_max_cmd_len=8192;
30101     ;;
30102
30103   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
30104     # This has been around since 386BSD, at least.  Likely further.
30105     if test -x /sbin/sysctl; then
30106       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
30107     elif test -x /usr/sbin/sysctl; then
30108       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
30109     else
30110       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
30111     fi
30112     # And add a safety zone
30113     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
30114     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
30115     ;;
30116
30117   interix*)
30118     # We know the value 262144 and hardcode it with a safety zone (like BSD)
30119     lt_cv_sys_max_cmd_len=196608
30120     ;;
30121
30122   osf*)
30123     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
30124     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
30125     # nice to cause kernel panics so lets avoid the loop below.
30126     # First set a reasonable default.
30127     lt_cv_sys_max_cmd_len=16384
30128     #
30129     if test -x /sbin/sysconfig; then
30130       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
30131         *1*) lt_cv_sys_max_cmd_len=-1 ;;
30132       esac
30133     fi
30134     ;;
30135   sco3.2v5*)
30136     lt_cv_sys_max_cmd_len=102400
30137     ;;
30138   sysv5* | sco5v6* | sysv4.2uw2*)
30139     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
30140     if test -n "$kargmax"; then
30141       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
30142     else
30143       lt_cv_sys_max_cmd_len=32768
30144     fi
30145     ;;
30146   *)
30147     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
30148     if test -n "$lt_cv_sys_max_cmd_len"; then
30149       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
30150       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
30151     else
30152       # Make teststring a little bigger before we do anything with it.
30153       # a 1K string should be a reasonable start.
30154       for i in 1 2 3 4 5 6 7 8 ; do
30155         teststring=$teststring$teststring
30156       done
30157       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
30158       # If test is not a shell built-in, we'll probably end up computing a
30159       # maximum length that is only half of the actual maximum length, but
30160       # we can't tell.
30161       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
30162                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
30163               test $i != 17 # 1/2 MB should be enough
30164       do
30165         i=`expr $i + 1`
30166         teststring=$teststring$teststring
30167       done
30168       # Only check the string length outside the loop.
30169       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
30170       teststring=
30171       # Add a significant safety factor because C++ compilers can tack on
30172       # massive amounts of additional arguments before passing them to the
30173       # linker.  It appears as though 1/2 is a usable value.
30174       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
30175     fi
30176     ;;
30177   esac
30178
30179 fi
30180
30181 if test -n $lt_cv_sys_max_cmd_len ; then
30182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
30183 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
30184 else
30185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
30186 $as_echo "none" >&6; }
30187 fi
30188 max_cmd_len=$lt_cv_sys_max_cmd_len
30189
30190
30191
30192
30193
30194
30195 : ${CP="cp -f"}
30196 : ${MV="mv -f"}
30197 : ${RM="rm -f"}
30198
30199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
30200 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
30201 # Try some XSI features
30202 xsi_shell=no
30203 ( _lt_dummy="a/b/c"
30204   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
30205       = c,a/b,b/c, \
30206     && eval 'test $(( 1 + 1 )) -eq 2 \
30207     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
30208   && xsi_shell=yes
30209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
30210 $as_echo "$xsi_shell" >&6; }
30211
30212
30213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
30214 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
30215 lt_shell_append=no
30216 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
30217     >/dev/null 2>&1 \
30218   && lt_shell_append=yes
30219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
30220 $as_echo "$lt_shell_append" >&6; }
30221
30222
30223 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30224   lt_unset=unset
30225 else
30226   lt_unset=false
30227 fi
30228
30229
30230
30231
30232
30233 # test EBCDIC or ASCII
30234 case `echo X|tr X '\101'` in
30235  A) # ASCII based system
30236     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
30237   lt_SP2NL='tr \040 \012'
30238   lt_NL2SP='tr \015\012 \040\040'
30239   ;;
30240  *) # EBCDIC based system
30241   lt_SP2NL='tr \100 \n'
30242   lt_NL2SP='tr \r\n \100\100'
30243   ;;
30244 esac
30245
30246
30247
30248
30249
30250
30251
30252
30253
30254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
30255 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
30256 if ${lt_cv_to_host_file_cmd+:} false; then :
30257   $as_echo_n "(cached) " >&6
30258 else
30259   case $host in
30260   *-*-mingw* )
30261     case $build in
30262       *-*-mingw* ) # actually msys
30263         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
30264         ;;
30265       *-*-cygwin* )
30266         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
30267         ;;
30268       * ) # otherwise, assume *nix
30269         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
30270         ;;
30271     esac
30272     ;;
30273   *-*-cygwin* )
30274     case $build in
30275       *-*-mingw* ) # actually msys
30276         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
30277         ;;
30278       *-*-cygwin* )
30279         lt_cv_to_host_file_cmd=func_convert_file_noop
30280         ;;
30281       * ) # otherwise, assume *nix
30282         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
30283         ;;
30284     esac
30285     ;;
30286   * ) # unhandled hosts (and "normal" native builds)
30287     lt_cv_to_host_file_cmd=func_convert_file_noop
30288     ;;
30289 esac
30290
30291 fi
30292
30293 to_host_file_cmd=$lt_cv_to_host_file_cmd
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
30295 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
30296
30297
30298
30299
30300
30301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
30302 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
30303 if ${lt_cv_to_tool_file_cmd+:} false; then :
30304   $as_echo_n "(cached) " >&6
30305 else
30306   #assume ordinary cross tools, or native build.
30307 lt_cv_to_tool_file_cmd=func_convert_file_noop
30308 case $host in
30309   *-*-mingw* )
30310     case $build in
30311       *-*-mingw* ) # actually msys
30312         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
30313         ;;
30314     esac
30315     ;;
30316 esac
30317
30318 fi
30319
30320 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
30322 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
30323
30324
30325
30326
30327
30328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
30329 $as_echo_n "checking for $LD option to reload object files... " >&6; }
30330 if ${lt_cv_ld_reload_flag+:} false; then :
30331   $as_echo_n "(cached) " >&6
30332 else
30333   lt_cv_ld_reload_flag='-r'
30334 fi
30335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
30336 $as_echo "$lt_cv_ld_reload_flag" >&6; }
30337 reload_flag=$lt_cv_ld_reload_flag
30338 case $reload_flag in
30339 "" | " "*) ;;
30340 *) reload_flag=" $reload_flag" ;;
30341 esac
30342 reload_cmds='$LD$reload_flag -o $output$reload_objs'
30343 case $host_os in
30344   cygwin* | mingw* | pw32* | cegcc*)
30345     if test "$GCC" != yes; then
30346       reload_cmds=false
30347     fi
30348     ;;
30349   darwin*)
30350     if test "$GCC" = yes; then
30351       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
30352     else
30353       reload_cmds='$LD$reload_flag -o $output$reload_objs'
30354     fi
30355     ;;
30356 esac
30357
30358
30359
30360
30361
30362
30363
30364
30365
30366 if test -n "$ac_tool_prefix"; then
30367   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
30368 set dummy ${ac_tool_prefix}objdump; ac_word=$2
30369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30370 $as_echo_n "checking for $ac_word... " >&6; }
30371 if ${ac_cv_prog_OBJDUMP+:} false; then :
30372   $as_echo_n "(cached) " >&6
30373 else
30374   if test -n "$OBJDUMP"; then
30375   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
30376 else
30377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30378 for as_dir in $PATH
30379 do
30380   IFS=$as_save_IFS
30381   test -z "$as_dir" && as_dir=.
30382     for ac_exec_ext in '' $ac_executable_extensions; do
30383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30384     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
30385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30386     break 2
30387   fi
30388 done
30389   done
30390 IFS=$as_save_IFS
30391
30392 fi
30393 fi
30394 OBJDUMP=$ac_cv_prog_OBJDUMP
30395 if test -n "$OBJDUMP"; then
30396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
30397 $as_echo "$OBJDUMP" >&6; }
30398 else
30399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30400 $as_echo "no" >&6; }
30401 fi
30402
30403
30404 fi
30405 if test -z "$ac_cv_prog_OBJDUMP"; then
30406   ac_ct_OBJDUMP=$OBJDUMP
30407   # Extract the first word of "objdump", so it can be a program name with args.
30408 set dummy objdump; ac_word=$2
30409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30410 $as_echo_n "checking for $ac_word... " >&6; }
30411 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
30412   $as_echo_n "(cached) " >&6
30413 else
30414   if test -n "$ac_ct_OBJDUMP"; then
30415   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
30416 else
30417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30418 for as_dir in $PATH
30419 do
30420   IFS=$as_save_IFS
30421   test -z "$as_dir" && as_dir=.
30422     for ac_exec_ext in '' $ac_executable_extensions; do
30423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30424     ac_cv_prog_ac_ct_OBJDUMP="objdump"
30425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30426     break 2
30427   fi
30428 done
30429   done
30430 IFS=$as_save_IFS
30431
30432 fi
30433 fi
30434 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
30435 if test -n "$ac_ct_OBJDUMP"; then
30436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
30437 $as_echo "$ac_ct_OBJDUMP" >&6; }
30438 else
30439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30440 $as_echo "no" >&6; }
30441 fi
30442
30443   if test "x$ac_ct_OBJDUMP" = x; then
30444     OBJDUMP="false"
30445   else
30446     case $cross_compiling:$ac_tool_warned in
30447 yes:)
30448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30450 ac_tool_warned=yes ;;
30451 esac
30452     OBJDUMP=$ac_ct_OBJDUMP
30453   fi
30454 else
30455   OBJDUMP="$ac_cv_prog_OBJDUMP"
30456 fi
30457
30458 test -z "$OBJDUMP" && OBJDUMP=objdump
30459
30460
30461
30462
30463
30464
30465
30466
30467
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
30469 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
30470 if ${lt_cv_deplibs_check_method+:} false; then :
30471   $as_echo_n "(cached) " >&6
30472 else
30473   lt_cv_file_magic_cmd='$MAGIC_CMD'
30474 lt_cv_file_magic_test_file=
30475 lt_cv_deplibs_check_method='unknown'
30476 # Need to set the preceding variable on all platforms that support
30477 # interlibrary dependencies.
30478 # 'none' -- dependencies not supported.
30479 # `unknown' -- same as none, but documents that we really don't know.
30480 # 'pass_all' -- all dependencies passed with no checks.
30481 # 'test_compile' -- check by making test program.
30482 # 'file_magic [[regex]]' -- check by looking for files in library path
30483 # which responds to the $file_magic_cmd with a given extended regex.
30484 # If you have `file' or equivalent on your system and you're not sure
30485 # whether `pass_all' will *always* work, you probably want this one.
30486
30487 case $host_os in
30488 aix[4-9]*)
30489   lt_cv_deplibs_check_method=pass_all
30490   ;;
30491
30492 beos*)
30493   lt_cv_deplibs_check_method=pass_all
30494   ;;
30495
30496 bsdi[45]*)
30497   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
30498   lt_cv_file_magic_cmd='/usr/bin/file -L'
30499   lt_cv_file_magic_test_file=/shlib/libc.so
30500   ;;
30501
30502 cygwin*)
30503   # func_win32_libid is a shell function defined in ltmain.sh
30504   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30505   lt_cv_file_magic_cmd='func_win32_libid'
30506   ;;
30507
30508 mingw* | pw32*)
30509   # Base MSYS/MinGW do not provide the 'file' command needed by
30510   # func_win32_libid shell function, so use a weaker test based on 'objdump',
30511   # unless we find 'file', for example because we are cross-compiling.
30512   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
30513   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
30514     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30515     lt_cv_file_magic_cmd='func_win32_libid'
30516   else
30517     # Keep this pattern in sync with the one in func_win32_libid.
30518     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
30519     lt_cv_file_magic_cmd='$OBJDUMP -f'
30520   fi
30521   ;;
30522
30523 cegcc*)
30524   # use the weaker test based on 'objdump'. See mingw*.
30525   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
30526   lt_cv_file_magic_cmd='$OBJDUMP -f'
30527   ;;
30528
30529 darwin* | rhapsody*)
30530   lt_cv_deplibs_check_method=pass_all
30531   ;;
30532
30533 freebsd* | dragonfly*)
30534   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
30535     case $host_cpu in
30536     i*86 )
30537       # Not sure whether the presence of OpenBSD here was a mistake.
30538       # Let's accept both of them until this is cleared up.
30539       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
30540       lt_cv_file_magic_cmd=/usr/bin/file
30541       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
30542       ;;
30543     esac
30544   else
30545     lt_cv_deplibs_check_method=pass_all
30546   fi
30547   ;;
30548
30549 gnu*)
30550   lt_cv_deplibs_check_method=pass_all
30551   ;;
30552
30553 haiku*)
30554   lt_cv_deplibs_check_method=pass_all
30555   ;;
30556
30557 hpux10.20* | hpux11*)
30558   lt_cv_file_magic_cmd=/usr/bin/file
30559   case $host_cpu in
30560   ia64*)
30561     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
30562     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
30563     ;;
30564   hppa*64*)
30565     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]'
30566     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
30567     ;;
30568   *)
30569     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
30570     lt_cv_file_magic_test_file=/usr/lib/libc.sl
30571     ;;
30572   esac
30573   ;;
30574
30575 interix[3-9]*)
30576   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
30577   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
30578   ;;
30579
30580 irix5* | irix6* | nonstopux*)
30581   case $LD in
30582   *-32|*"-32 ") libmagic=32-bit;;
30583   *-n32|*"-n32 ") libmagic=N32;;
30584   *-64|*"-64 ") libmagic=64-bit;;
30585   *) libmagic=never-match;;
30586   esac
30587   lt_cv_deplibs_check_method=pass_all
30588   ;;
30589
30590 # This must be Linux ELF.
30591 linux* | k*bsd*-gnu | kopensolaris*-gnu)
30592   lt_cv_deplibs_check_method=pass_all
30593   ;;
30594
30595 netbsd*)
30596   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
30597     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
30598   else
30599     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
30600   fi
30601   ;;
30602
30603 newos6*)
30604   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
30605   lt_cv_file_magic_cmd=/usr/bin/file
30606   lt_cv_file_magic_test_file=/usr/lib/libnls.so
30607   ;;
30608
30609 *nto* | *qnx*)
30610   lt_cv_deplibs_check_method=pass_all
30611   ;;
30612
30613 openbsd*)
30614   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
30615     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
30616   else
30617     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
30618   fi
30619   ;;
30620
30621 osf3* | osf4* | osf5*)
30622   lt_cv_deplibs_check_method=pass_all
30623   ;;
30624
30625 rdos*)
30626   lt_cv_deplibs_check_method=pass_all
30627   ;;
30628
30629 solaris*)
30630   lt_cv_deplibs_check_method=pass_all
30631   ;;
30632
30633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
30634   lt_cv_deplibs_check_method=pass_all
30635   ;;
30636
30637 sysv4 | sysv4.3*)
30638   case $host_vendor in
30639   motorola)
30640     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]'
30641     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
30642     ;;
30643   ncr)
30644     lt_cv_deplibs_check_method=pass_all
30645     ;;
30646   sequent)
30647     lt_cv_file_magic_cmd='/bin/file'
30648     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
30649     ;;
30650   sni)
30651     lt_cv_file_magic_cmd='/bin/file'
30652     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
30653     lt_cv_file_magic_test_file=/lib/libc.so
30654     ;;
30655   siemens)
30656     lt_cv_deplibs_check_method=pass_all
30657     ;;
30658   pc)
30659     lt_cv_deplibs_check_method=pass_all
30660     ;;
30661   esac
30662   ;;
30663
30664 tpf*)
30665   lt_cv_deplibs_check_method=pass_all
30666   ;;
30667 esac
30668
30669 fi
30670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
30671 $as_echo "$lt_cv_deplibs_check_method" >&6; }
30672
30673 file_magic_glob=
30674 want_nocaseglob=no
30675 if test "$build" = "$host"; then
30676   case $host_os in
30677   mingw* | pw32*)
30678     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
30679       want_nocaseglob=yes
30680     else
30681       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
30682     fi
30683     ;;
30684   esac
30685 fi
30686
30687 file_magic_cmd=$lt_cv_file_magic_cmd
30688 deplibs_check_method=$lt_cv_deplibs_check_method
30689 test -z "$deplibs_check_method" && deplibs_check_method=unknown
30690
30691
30692
30693
30694
30695
30696
30697
30698
30699
30700
30701
30702
30703
30704
30705
30706
30707
30708
30709
30710
30711
30712 if test -n "$ac_tool_prefix"; then
30713   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
30714 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
30715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30716 $as_echo_n "checking for $ac_word... " >&6; }
30717 if ${ac_cv_prog_DLLTOOL+:} false; then :
30718   $as_echo_n "(cached) " >&6
30719 else
30720   if test -n "$DLLTOOL"; then
30721   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
30722 else
30723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30724 for as_dir in $PATH
30725 do
30726   IFS=$as_save_IFS
30727   test -z "$as_dir" && as_dir=.
30728     for ac_exec_ext in '' $ac_executable_extensions; do
30729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30730     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
30731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30732     break 2
30733   fi
30734 done
30735   done
30736 IFS=$as_save_IFS
30737
30738 fi
30739 fi
30740 DLLTOOL=$ac_cv_prog_DLLTOOL
30741 if test -n "$DLLTOOL"; then
30742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
30743 $as_echo "$DLLTOOL" >&6; }
30744 else
30745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30746 $as_echo "no" >&6; }
30747 fi
30748
30749
30750 fi
30751 if test -z "$ac_cv_prog_DLLTOOL"; then
30752   ac_ct_DLLTOOL=$DLLTOOL
30753   # Extract the first word of "dlltool", so it can be a program name with args.
30754 set dummy dlltool; ac_word=$2
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30756 $as_echo_n "checking for $ac_word... " >&6; }
30757 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
30758   $as_echo_n "(cached) " >&6
30759 else
30760   if test -n "$ac_ct_DLLTOOL"; then
30761   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
30762 else
30763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30764 for as_dir in $PATH
30765 do
30766   IFS=$as_save_IFS
30767   test -z "$as_dir" && as_dir=.
30768     for ac_exec_ext in '' $ac_executable_extensions; do
30769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30770     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
30771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30772     break 2
30773   fi
30774 done
30775   done
30776 IFS=$as_save_IFS
30777
30778 fi
30779 fi
30780 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
30781 if test -n "$ac_ct_DLLTOOL"; then
30782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
30783 $as_echo "$ac_ct_DLLTOOL" >&6; }
30784 else
30785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30786 $as_echo "no" >&6; }
30787 fi
30788
30789   if test "x$ac_ct_DLLTOOL" = x; then
30790     DLLTOOL="false"
30791   else
30792     case $cross_compiling:$ac_tool_warned in
30793 yes:)
30794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30796 ac_tool_warned=yes ;;
30797 esac
30798     DLLTOOL=$ac_ct_DLLTOOL
30799   fi
30800 else
30801   DLLTOOL="$ac_cv_prog_DLLTOOL"
30802 fi
30803
30804 test -z "$DLLTOOL" && DLLTOOL=dlltool
30805
30806
30807
30808
30809
30810
30811
30812
30813
30814
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
30816 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
30817 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
30818   $as_echo_n "(cached) " >&6
30819 else
30820   lt_cv_sharedlib_from_linklib_cmd='unknown'
30821
30822 case $host_os in
30823 cygwin* | mingw* | pw32* | cegcc*)
30824   # two different shell functions defined in ltmain.sh
30825   # decide which to use based on capabilities of $DLLTOOL
30826   case `$DLLTOOL --help 2>&1` in
30827   *--identify-strict*)
30828     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
30829     ;;
30830   *)
30831     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
30832     ;;
30833   esac
30834   ;;
30835 *)
30836   # fallback: assume linklib IS sharedlib
30837   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
30838   ;;
30839 esac
30840
30841 fi
30842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
30843 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
30844 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
30845 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
30846
30847
30848
30849
30850
30851
30852
30853 if test -n "$ac_tool_prefix"; then
30854   for ac_prog in ar
30855   do
30856     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30857 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30859 $as_echo_n "checking for $ac_word... " >&6; }
30860 if ${ac_cv_prog_AR+:} false; then :
30861   $as_echo_n "(cached) " >&6
30862 else
30863   if test -n "$AR"; then
30864   ac_cv_prog_AR="$AR" # Let the user override the test.
30865 else
30866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30867 for as_dir in $PATH
30868 do
30869   IFS=$as_save_IFS
30870   test -z "$as_dir" && as_dir=.
30871     for ac_exec_ext in '' $ac_executable_extensions; do
30872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30873     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
30874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30875     break 2
30876   fi
30877 done
30878   done
30879 IFS=$as_save_IFS
30880
30881 fi
30882 fi
30883 AR=$ac_cv_prog_AR
30884 if test -n "$AR"; then
30885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
30886 $as_echo "$AR" >&6; }
30887 else
30888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30889 $as_echo "no" >&6; }
30890 fi
30891
30892
30893     test -n "$AR" && break
30894   done
30895 fi
30896 if test -z "$AR"; then
30897   ac_ct_AR=$AR
30898   for ac_prog in ar
30899 do
30900   # Extract the first word of "$ac_prog", so it can be a program name with args.
30901 set dummy $ac_prog; ac_word=$2
30902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30903 $as_echo_n "checking for $ac_word... " >&6; }
30904 if ${ac_cv_prog_ac_ct_AR+:} false; then :
30905   $as_echo_n "(cached) " >&6
30906 else
30907   if test -n "$ac_ct_AR"; then
30908   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
30909 else
30910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30911 for as_dir in $PATH
30912 do
30913   IFS=$as_save_IFS
30914   test -z "$as_dir" && as_dir=.
30915     for ac_exec_ext in '' $ac_executable_extensions; do
30916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30917     ac_cv_prog_ac_ct_AR="$ac_prog"
30918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30919     break 2
30920   fi
30921 done
30922   done
30923 IFS=$as_save_IFS
30924
30925 fi
30926 fi
30927 ac_ct_AR=$ac_cv_prog_ac_ct_AR
30928 if test -n "$ac_ct_AR"; then
30929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
30930 $as_echo "$ac_ct_AR" >&6; }
30931 else
30932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30933 $as_echo "no" >&6; }
30934 fi
30935
30936
30937   test -n "$ac_ct_AR" && break
30938 done
30939
30940   if test "x$ac_ct_AR" = x; then
30941     AR="false"
30942   else
30943     case $cross_compiling:$ac_tool_warned in
30944 yes:)
30945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30947 ac_tool_warned=yes ;;
30948 esac
30949     AR=$ac_ct_AR
30950   fi
30951 fi
30952
30953 : ${AR=ar}
30954 : ${AR_FLAGS=cru}
30955
30956
30957
30958
30959
30960
30961
30962
30963
30964
30965
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
30967 $as_echo_n "checking for archiver @FILE support... " >&6; }
30968 if ${lt_cv_ar_at_file+:} false; then :
30969   $as_echo_n "(cached) " >&6
30970 else
30971   lt_cv_ar_at_file=no
30972    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30973 /* end confdefs.h.  */
30974
30975 int
30976 main ()
30977 {
30978
30979   ;
30980   return 0;
30981 }
30982 _ACEOF
30983 if ac_fn_c_try_compile "$LINENO"; then :
30984   echo conftest.$ac_objext > conftest.lst
30985       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
30986       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
30987   (eval $lt_ar_try) 2>&5
30988   ac_status=$?
30989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30990   test $ac_status = 0; }
30991       if test "$ac_status" -eq 0; then
30992         # Ensure the archiver fails upon bogus file names.
30993         rm -f conftest.$ac_objext libconftest.a
30994         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
30995   (eval $lt_ar_try) 2>&5
30996   ac_status=$?
30997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30998   test $ac_status = 0; }
30999         if test "$ac_status" -ne 0; then
31000           lt_cv_ar_at_file=@
31001         fi
31002       fi
31003       rm -f conftest.* libconftest.a
31004
31005 fi
31006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31007
31008 fi
31009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
31010 $as_echo "$lt_cv_ar_at_file" >&6; }
31011
31012 if test "x$lt_cv_ar_at_file" = xno; then
31013   archiver_list_spec=
31014 else
31015   archiver_list_spec=$lt_cv_ar_at_file
31016 fi
31017
31018
31019
31020
31021
31022
31023
31024 if test -n "$ac_tool_prefix"; then
31025   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
31026 set dummy ${ac_tool_prefix}strip; ac_word=$2
31027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31028 $as_echo_n "checking for $ac_word... " >&6; }
31029 if ${ac_cv_prog_STRIP+:} false; then :
31030   $as_echo_n "(cached) " >&6
31031 else
31032   if test -n "$STRIP"; then
31033   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
31034 else
31035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31036 for as_dir in $PATH
31037 do
31038   IFS=$as_save_IFS
31039   test -z "$as_dir" && as_dir=.
31040     for ac_exec_ext in '' $ac_executable_extensions; do
31041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31042     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
31043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31044     break 2
31045   fi
31046 done
31047   done
31048 IFS=$as_save_IFS
31049
31050 fi
31051 fi
31052 STRIP=$ac_cv_prog_STRIP
31053 if test -n "$STRIP"; then
31054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
31055 $as_echo "$STRIP" >&6; }
31056 else
31057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31058 $as_echo "no" >&6; }
31059 fi
31060
31061
31062 fi
31063 if test -z "$ac_cv_prog_STRIP"; then
31064   ac_ct_STRIP=$STRIP
31065   # Extract the first word of "strip", so it can be a program name with args.
31066 set dummy strip; ac_word=$2
31067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31068 $as_echo_n "checking for $ac_word... " >&6; }
31069 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
31070   $as_echo_n "(cached) " >&6
31071 else
31072   if test -n "$ac_ct_STRIP"; then
31073   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
31074 else
31075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31076 for as_dir in $PATH
31077 do
31078   IFS=$as_save_IFS
31079   test -z "$as_dir" && as_dir=.
31080     for ac_exec_ext in '' $ac_executable_extensions; do
31081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31082     ac_cv_prog_ac_ct_STRIP="strip"
31083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31084     break 2
31085   fi
31086 done
31087   done
31088 IFS=$as_save_IFS
31089
31090 fi
31091 fi
31092 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
31093 if test -n "$ac_ct_STRIP"; then
31094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
31095 $as_echo "$ac_ct_STRIP" >&6; }
31096 else
31097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31098 $as_echo "no" >&6; }
31099 fi
31100
31101   if test "x$ac_ct_STRIP" = x; then
31102     STRIP=":"
31103   else
31104     case $cross_compiling:$ac_tool_warned in
31105 yes:)
31106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31108 ac_tool_warned=yes ;;
31109 esac
31110     STRIP=$ac_ct_STRIP
31111   fi
31112 else
31113   STRIP="$ac_cv_prog_STRIP"
31114 fi
31115
31116 test -z "$STRIP" && STRIP=:
31117
31118
31119
31120
31121
31122
31123 if test -n "$ac_tool_prefix"; then
31124   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
31125 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
31126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31127 $as_echo_n "checking for $ac_word... " >&6; }
31128 if ${ac_cv_prog_RANLIB+:} false; then :
31129   $as_echo_n "(cached) " >&6
31130 else
31131   if test -n "$RANLIB"; then
31132   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
31133 else
31134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31135 for as_dir in $PATH
31136 do
31137   IFS=$as_save_IFS
31138   test -z "$as_dir" && as_dir=.
31139     for ac_exec_ext in '' $ac_executable_extensions; do
31140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31141     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
31142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31143     break 2
31144   fi
31145 done
31146   done
31147 IFS=$as_save_IFS
31148
31149 fi
31150 fi
31151 RANLIB=$ac_cv_prog_RANLIB
31152 if test -n "$RANLIB"; then
31153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
31154 $as_echo "$RANLIB" >&6; }
31155 else
31156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31157 $as_echo "no" >&6; }
31158 fi
31159
31160
31161 fi
31162 if test -z "$ac_cv_prog_RANLIB"; then
31163   ac_ct_RANLIB=$RANLIB
31164   # Extract the first word of "ranlib", so it can be a program name with args.
31165 set dummy ranlib; ac_word=$2
31166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31167 $as_echo_n "checking for $ac_word... " >&6; }
31168 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
31169   $as_echo_n "(cached) " >&6
31170 else
31171   if test -n "$ac_ct_RANLIB"; then
31172   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
31173 else
31174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31175 for as_dir in $PATH
31176 do
31177   IFS=$as_save_IFS
31178   test -z "$as_dir" && as_dir=.
31179     for ac_exec_ext in '' $ac_executable_extensions; do
31180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31181     ac_cv_prog_ac_ct_RANLIB="ranlib"
31182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31183     break 2
31184   fi
31185 done
31186   done
31187 IFS=$as_save_IFS
31188
31189 fi
31190 fi
31191 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
31192 if test -n "$ac_ct_RANLIB"; then
31193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
31194 $as_echo "$ac_ct_RANLIB" >&6; }
31195 else
31196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31197 $as_echo "no" >&6; }
31198 fi
31199
31200   if test "x$ac_ct_RANLIB" = x; then
31201     RANLIB=":"
31202   else
31203     case $cross_compiling:$ac_tool_warned in
31204 yes:)
31205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31207 ac_tool_warned=yes ;;
31208 esac
31209     RANLIB=$ac_ct_RANLIB
31210   fi
31211 else
31212   RANLIB="$ac_cv_prog_RANLIB"
31213 fi
31214
31215 test -z "$RANLIB" && RANLIB=:
31216
31217
31218
31219
31220
31221
31222 # Determine commands to create old-style static archives.
31223 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
31224 old_postinstall_cmds='chmod 644 $oldlib'
31225 old_postuninstall_cmds=
31226
31227 if test -n "$RANLIB"; then
31228   case $host_os in
31229   openbsd*)
31230     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
31231     ;;
31232   *)
31233     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
31234     ;;
31235   esac
31236   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
31237 fi
31238
31239 case $host_os in
31240   darwin*)
31241     lock_old_archive_extraction=yes ;;
31242   *)
31243     lock_old_archive_extraction=no ;;
31244 esac
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
31282
31283
31284 # If no C compiler was specified, use CC.
31285 LTCC=${LTCC-"$CC"}
31286
31287 # If no C compiler flags were specified, use CFLAGS.
31288 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
31289
31290 # Allow CC to be a program name with arguments.
31291 compiler=$CC
31292
31293
31294 # Check for command to grab the raw symbol name followed by C symbol from nm.
31295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
31296 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
31297 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
31298   $as_echo_n "(cached) " >&6
31299 else
31300
31301 # These are sane defaults that work on at least a few old systems.
31302 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
31303
31304 # Character class describing NM global symbol codes.
31305 symcode='[BCDEGRST]'
31306
31307 # Regexp to match symbols that can be accessed directly from C.
31308 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
31309
31310 # Define system-specific variables.
31311 case $host_os in
31312 aix*)
31313   symcode='[BCDT]'
31314   ;;
31315 cygwin* | mingw* | pw32* | cegcc*)
31316   symcode='[ABCDGISTW]'
31317   ;;
31318 hpux*)
31319   if test "$host_cpu" = ia64; then
31320     symcode='[ABCDEGRST]'
31321   fi
31322   ;;
31323 irix* | nonstopux*)
31324   symcode='[BCDEGRST]'
31325   ;;
31326 osf*)
31327   symcode='[BCDEGQRST]'
31328   ;;
31329 solaris*)
31330   symcode='[BDRT]'
31331   ;;
31332 sco3.2v5*)
31333   symcode='[DT]'
31334   ;;
31335 sysv4.2uw2*)
31336   symcode='[DT]'
31337   ;;
31338 sysv5* | sco5v6* | unixware* | OpenUNIX*)
31339   symcode='[ABDT]'
31340   ;;
31341 sysv4)
31342   symcode='[DFNSTU]'
31343   ;;
31344 esac
31345
31346 # If we're using GNU nm, then use its standard symbol codes.
31347 case `$NM -V 2>&1` in
31348 *GNU* | *'with BFD'*)
31349   symcode='[ABCDGIRSTW]' ;;
31350 esac
31351
31352 # Transform an extracted symbol line into a proper C declaration.
31353 # Some systems (esp. on ia64) link data and code symbols differently,
31354 # so use this general approach.
31355 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
31356
31357 # Transform an extracted symbol line into symbol name and symbol address
31358 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
31359 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'"
31360
31361 # Handle CRLF in mingw tool chain
31362 opt_cr=
31363 case $build_os in
31364 mingw*)
31365   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
31366   ;;
31367 esac
31368
31369 # Try without a prefix underscore, then with it.
31370 for ac_symprfx in "" "_"; do
31371
31372   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
31373   symxfrm="\\1 $ac_symprfx\\2 \\2"
31374
31375   # Write the raw and C identifiers.
31376   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
31377     # Fake it for dumpbin and say T for any non-static function
31378     # and D for any global variable.
31379     # Also find C++ and __fastcall symbols from MSVC++,
31380     # which start with @ or ?.
31381     lt_cv_sys_global_symbol_pipe="$AWK '"\
31382 "     {last_section=section; section=\$ 3};"\
31383 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
31384 "     \$ 0!~/External *\|/{next};"\
31385 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
31386 "     {if(hide[section]) next};"\
31387 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
31388 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
31389 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
31390 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
31391 "     ' prfx=^$ac_symprfx"
31392   else
31393     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
31394   fi
31395   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
31396
31397   # Check to see that the pipe works correctly.
31398   pipe_works=no
31399
31400   rm -f conftest*
31401   cat > conftest.$ac_ext <<_LT_EOF
31402 #ifdef __cplusplus
31403 extern "C" {
31404 #endif
31405 char nm_test_var;
31406 void nm_test_func(void);
31407 void nm_test_func(void){}
31408 #ifdef __cplusplus
31409 }
31410 #endif
31411 int main(){nm_test_var='a';nm_test_func();return(0);}
31412 _LT_EOF
31413
31414   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31415   (eval $ac_compile) 2>&5
31416   ac_status=$?
31417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31418   test $ac_status = 0; }; then
31419     # Now try to grab the symbols.
31420     nlist=conftest.nm
31421     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
31422   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
31423   ac_status=$?
31424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31425   test $ac_status = 0; } && test -s "$nlist"; then
31426       # Try sorting and uniquifying the output.
31427       if sort "$nlist" | uniq > "$nlist"T; then
31428         mv -f "$nlist"T "$nlist"
31429       else
31430         rm -f "$nlist"T
31431       fi
31432
31433       # Make sure that we snagged all the symbols we need.
31434       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
31435         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
31436           cat <<_LT_EOF > conftest.$ac_ext
31437 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
31438 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
31439 /* DATA imports from DLLs on WIN32 con't be const, because runtime
31440    relocations are performed -- see ld's documentation on pseudo-relocs.  */
31441 # define LT_DLSYM_CONST
31442 #elif defined(__osf__)
31443 /* This system does not cope well with relocations in const data.  */
31444 # define LT_DLSYM_CONST
31445 #else
31446 # define LT_DLSYM_CONST const
31447 #endif
31448
31449 #ifdef __cplusplus
31450 extern "C" {
31451 #endif
31452
31453 _LT_EOF
31454           # Now generate the symbol file.
31455           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
31456
31457           cat <<_LT_EOF >> conftest.$ac_ext
31458
31459 /* The mapping between symbol names and symbols.  */
31460 LT_DLSYM_CONST struct {
31461   const char *name;
31462   void       *address;
31463 }
31464 lt__PROGRAM__LTX_preloaded_symbols[] =
31465 {
31466   { "@PROGRAM@", (void *) 0 },
31467 _LT_EOF
31468           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
31469           cat <<\_LT_EOF >> conftest.$ac_ext
31470   {0, (void *) 0}
31471 };
31472
31473 /* This works around a problem in FreeBSD linker */
31474 #ifdef FREEBSD_WORKAROUND
31475 static const void *lt_preloaded_setup() {
31476   return lt__PROGRAM__LTX_preloaded_symbols;
31477 }
31478 #endif
31479
31480 #ifdef __cplusplus
31481 }
31482 #endif
31483 _LT_EOF
31484           # Now try linking the two files.
31485           mv conftest.$ac_objext conftstm.$ac_objext
31486           lt_globsym_save_LIBS=$LIBS
31487           lt_globsym_save_CFLAGS=$CFLAGS
31488           LIBS="conftstm.$ac_objext"
31489           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
31490           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
31491   (eval $ac_link) 2>&5
31492   ac_status=$?
31493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31494   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
31495             pipe_works=yes
31496           fi
31497           LIBS=$lt_globsym_save_LIBS
31498           CFLAGS=$lt_globsym_save_CFLAGS
31499         else
31500           echo "cannot find nm_test_func in $nlist" >&5
31501         fi
31502       else
31503         echo "cannot find nm_test_var in $nlist" >&5
31504       fi
31505     else
31506       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
31507     fi
31508   else
31509     echo "$progname: failed program was:" >&5
31510     cat conftest.$ac_ext >&5
31511   fi
31512   rm -rf conftest* conftst*
31513
31514   # Do not use the global_symbol_pipe unless it works.
31515   if test "$pipe_works" = yes; then
31516     break
31517   else
31518     lt_cv_sys_global_symbol_pipe=
31519   fi
31520 done
31521
31522 fi
31523
31524 if test -z "$lt_cv_sys_global_symbol_pipe"; then
31525   lt_cv_sys_global_symbol_to_cdecl=
31526 fi
31527 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
31528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
31529 $as_echo "failed" >&6; }
31530 else
31531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
31532 $as_echo "ok" >&6; }
31533 fi
31534
31535 # Response file support.
31536 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
31537   nm_file_list_spec='@'
31538 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
31539   nm_file_list_spec='@'
31540 fi
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
31566
31567
31568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
31569 $as_echo_n "checking for sysroot... " >&6; }
31570
31571 # Check whether --with-sysroot was given.
31572 if test "${with_sysroot+set}" = set; then :
31573   withval=$with_sysroot;
31574 else
31575   with_sysroot=no
31576 fi
31577
31578
31579 lt_sysroot=
31580 case ${with_sysroot} in #(
31581  yes)
31582    if test "$GCC" = yes; then
31583      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
31584    fi
31585    ;; #(
31586  /*)
31587    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
31588    ;; #(
31589  no|'')
31590    ;; #(
31591  *)
31592    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
31593 $as_echo "${with_sysroot}" >&6; }
31594    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
31595    ;;
31596 esac
31597
31598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
31599 $as_echo "${lt_sysroot:-no}" >&6; }
31600
31601
31602
31603
31604
31605 # Check whether --enable-libtool-lock was given.
31606 if test "${enable_libtool_lock+set}" = set; then :
31607   enableval=$enable_libtool_lock;
31608 fi
31609
31610 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
31611
31612 # Some flags need to be propagated to the compiler or linker for good
31613 # libtool support.
31614 case $host in
31615 ia64-*-hpux*)
31616   # Find out which ABI we are using.
31617   echo 'int i;' > conftest.$ac_ext
31618   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31619   (eval $ac_compile) 2>&5
31620   ac_status=$?
31621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31622   test $ac_status = 0; }; then
31623     case `/usr/bin/file conftest.$ac_objext` in
31624       *ELF-32*)
31625         HPUX_IA64_MODE="32"
31626         ;;
31627       *ELF-64*)
31628         HPUX_IA64_MODE="64"
31629         ;;
31630     esac
31631   fi
31632   rm -rf conftest*
31633   ;;
31634 *-*-irix6*)
31635   # Find out which ABI we are using.
31636   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
31637   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31638   (eval $ac_compile) 2>&5
31639   ac_status=$?
31640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31641   test $ac_status = 0; }; then
31642     if test "$lt_cv_prog_gnu_ld" = yes; then
31643       case `/usr/bin/file conftest.$ac_objext` in
31644         *32-bit*)
31645           LD="${LD-ld} -melf32bsmip"
31646           ;;
31647         *N32*)
31648           LD="${LD-ld} -melf32bmipn32"
31649           ;;
31650         *64-bit*)
31651           LD="${LD-ld} -melf64bmip"
31652         ;;
31653       esac
31654     else
31655       case `/usr/bin/file conftest.$ac_objext` in
31656         *32-bit*)
31657           LD="${LD-ld} -32"
31658           ;;
31659         *N32*)
31660           LD="${LD-ld} -n32"
31661           ;;
31662         *64-bit*)
31663           LD="${LD-ld} -64"
31664           ;;
31665       esac
31666     fi
31667   fi
31668   rm -rf conftest*
31669   ;;
31670
31671 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
31672 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
31673   # Find out which ABI we are using.
31674   echo 'int i;' > conftest.$ac_ext
31675   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31676   (eval $ac_compile) 2>&5
31677   ac_status=$?
31678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31679   test $ac_status = 0; }; then
31680     case `/usr/bin/file conftest.o` in
31681       *32-bit*)
31682         case $host in
31683           x86_64-*kfreebsd*-gnu)
31684             LD="${LD-ld} -m elf_i386_fbsd"
31685             ;;
31686           x86_64-*linux*)
31687             LD="${LD-ld} -m elf_i386"
31688             ;;
31689           ppc64-*linux*|powerpc64-*linux*)
31690             LD="${LD-ld} -m elf32ppclinux"
31691             ;;
31692           s390x-*linux*)
31693             LD="${LD-ld} -m elf_s390"
31694             ;;
31695           sparc64-*linux*)
31696             LD="${LD-ld} -m elf32_sparc"
31697             ;;
31698         esac
31699         ;;
31700       *64-bit*)
31701         case $host in
31702           x86_64-*kfreebsd*-gnu)
31703             LD="${LD-ld} -m elf_x86_64_fbsd"
31704             ;;
31705           x86_64-*linux*)
31706             LD="${LD-ld} -m elf_x86_64"
31707             ;;
31708           ppc*-*linux*|powerpc*-*linux*)
31709             LD="${LD-ld} -m elf64ppc"
31710             ;;
31711           s390*-*linux*|s390*-*tpf*)
31712             LD="${LD-ld} -m elf64_s390"
31713             ;;
31714           sparc*-*linux*)
31715             LD="${LD-ld} -m elf64_sparc"
31716             ;;
31717         esac
31718         ;;
31719     esac
31720   fi
31721   rm -rf conftest*
31722   ;;
31723
31724 *-*-sco3.2v5*)
31725   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
31726   SAVE_CFLAGS="$CFLAGS"
31727   CFLAGS="$CFLAGS -belf"
31728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
31729 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
31730 if ${lt_cv_cc_needs_belf+:} false; then :
31731   $as_echo_n "(cached) " >&6
31732 else
31733   ac_ext=c
31734 ac_cpp='$CPP $CPPFLAGS'
31735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31738
31739      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31740 /* end confdefs.h.  */
31741
31742 int
31743 main ()
31744 {
31745
31746   ;
31747   return 0;
31748 }
31749 _ACEOF
31750 if ac_fn_c_try_link "$LINENO"; then :
31751   lt_cv_cc_needs_belf=yes
31752 else
31753   lt_cv_cc_needs_belf=no
31754 fi
31755 rm -f core conftest.err conftest.$ac_objext \
31756     conftest$ac_exeext conftest.$ac_ext
31757      ac_ext=c
31758 ac_cpp='$CPP $CPPFLAGS'
31759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31762
31763 fi
31764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
31765 $as_echo "$lt_cv_cc_needs_belf" >&6; }
31766   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
31767     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
31768     CFLAGS="$SAVE_CFLAGS"
31769   fi
31770   ;;
31771 sparc*-*solaris*)
31772   # Find out which ABI we are using.
31773   echo 'int i;' > conftest.$ac_ext
31774   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
31775   (eval $ac_compile) 2>&5
31776   ac_status=$?
31777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31778   test $ac_status = 0; }; then
31779     case `/usr/bin/file conftest.o` in
31780     *64-bit*)
31781       case $lt_cv_prog_gnu_ld in
31782       yes*) LD="${LD-ld} -m elf64_sparc" ;;
31783       *)
31784         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
31785           LD="${LD-ld} -64"
31786         fi
31787         ;;
31788       esac
31789       ;;
31790     esac
31791   fi
31792   rm -rf conftest*
31793   ;;
31794 esac
31795
31796 need_locks="$enable_libtool_lock"
31797
31798 if test -n "$ac_tool_prefix"; then
31799   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
31800 set dummy ${ac_tool_prefix}mt; ac_word=$2
31801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31802 $as_echo_n "checking for $ac_word... " >&6; }
31803 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
31804   $as_echo_n "(cached) " >&6
31805 else
31806   if test -n "$MANIFEST_TOOL"; then
31807   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
31808 else
31809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31810 for as_dir in $PATH
31811 do
31812   IFS=$as_save_IFS
31813   test -z "$as_dir" && as_dir=.
31814     for ac_exec_ext in '' $ac_executable_extensions; do
31815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31816     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
31817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31818     break 2
31819   fi
31820 done
31821   done
31822 IFS=$as_save_IFS
31823
31824 fi
31825 fi
31826 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
31827 if test -n "$MANIFEST_TOOL"; then
31828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
31829 $as_echo "$MANIFEST_TOOL" >&6; }
31830 else
31831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31832 $as_echo "no" >&6; }
31833 fi
31834
31835
31836 fi
31837 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
31838   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
31839   # Extract the first word of "mt", so it can be a program name with args.
31840 set dummy mt; ac_word=$2
31841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31842 $as_echo_n "checking for $ac_word... " >&6; }
31843 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
31844   $as_echo_n "(cached) " >&6
31845 else
31846   if test -n "$ac_ct_MANIFEST_TOOL"; then
31847   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
31848 else
31849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31850 for as_dir in $PATH
31851 do
31852   IFS=$as_save_IFS
31853   test -z "$as_dir" && as_dir=.
31854     for ac_exec_ext in '' $ac_executable_extensions; do
31855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31856     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
31857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31858     break 2
31859   fi
31860 done
31861   done
31862 IFS=$as_save_IFS
31863
31864 fi
31865 fi
31866 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
31867 if test -n "$ac_ct_MANIFEST_TOOL"; then
31868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
31869 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
31870 else
31871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31872 $as_echo "no" >&6; }
31873 fi
31874
31875   if test "x$ac_ct_MANIFEST_TOOL" = x; then
31876     MANIFEST_TOOL=":"
31877   else
31878     case $cross_compiling:$ac_tool_warned in
31879 yes:)
31880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31882 ac_tool_warned=yes ;;
31883 esac
31884     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
31885   fi
31886 else
31887   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
31888 fi
31889
31890 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
31891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
31892 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
31893 if ${lt_cv_path_mainfest_tool+:} false; then :
31894   $as_echo_n "(cached) " >&6
31895 else
31896   lt_cv_path_mainfest_tool=no
31897   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
31898   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
31899   cat conftest.err >&5
31900   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
31901     lt_cv_path_mainfest_tool=yes
31902   fi
31903   rm -f conftest*
31904 fi
31905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
31906 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
31907 if test "x$lt_cv_path_mainfest_tool" != xyes; then
31908   MANIFEST_TOOL=:
31909 fi
31910
31911
31912
31913
31914
31915
31916   case $host_os in
31917     rhapsody* | darwin*)
31918     if test -n "$ac_tool_prefix"; then
31919   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
31920 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
31921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31922 $as_echo_n "checking for $ac_word... " >&6; }
31923 if ${ac_cv_prog_DSYMUTIL+:} false; then :
31924   $as_echo_n "(cached) " >&6
31925 else
31926   if test -n "$DSYMUTIL"; then
31927   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
31928 else
31929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31930 for as_dir in $PATH
31931 do
31932   IFS=$as_save_IFS
31933   test -z "$as_dir" && as_dir=.
31934     for ac_exec_ext in '' $ac_executable_extensions; do
31935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31936     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
31937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31938     break 2
31939   fi
31940 done
31941   done
31942 IFS=$as_save_IFS
31943
31944 fi
31945 fi
31946 DSYMUTIL=$ac_cv_prog_DSYMUTIL
31947 if test -n "$DSYMUTIL"; then
31948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
31949 $as_echo "$DSYMUTIL" >&6; }
31950 else
31951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31952 $as_echo "no" >&6; }
31953 fi
31954
31955
31956 fi
31957 if test -z "$ac_cv_prog_DSYMUTIL"; then
31958   ac_ct_DSYMUTIL=$DSYMUTIL
31959   # Extract the first word of "dsymutil", so it can be a program name with args.
31960 set dummy dsymutil; ac_word=$2
31961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31962 $as_echo_n "checking for $ac_word... " >&6; }
31963 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
31964   $as_echo_n "(cached) " >&6
31965 else
31966   if test -n "$ac_ct_DSYMUTIL"; then
31967   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
31968 else
31969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31970 for as_dir in $PATH
31971 do
31972   IFS=$as_save_IFS
31973   test -z "$as_dir" && as_dir=.
31974     for ac_exec_ext in '' $ac_executable_extensions; do
31975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31976     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
31977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31978     break 2
31979   fi
31980 done
31981   done
31982 IFS=$as_save_IFS
31983
31984 fi
31985 fi
31986 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
31987 if test -n "$ac_ct_DSYMUTIL"; then
31988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
31989 $as_echo "$ac_ct_DSYMUTIL" >&6; }
31990 else
31991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31992 $as_echo "no" >&6; }
31993 fi
31994
31995   if test "x$ac_ct_DSYMUTIL" = x; then
31996     DSYMUTIL=":"
31997   else
31998     case $cross_compiling:$ac_tool_warned in
31999 yes:)
32000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32002 ac_tool_warned=yes ;;
32003 esac
32004     DSYMUTIL=$ac_ct_DSYMUTIL
32005   fi
32006 else
32007   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
32008 fi
32009
32010     if test -n "$ac_tool_prefix"; then
32011   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
32012 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
32013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32014 $as_echo_n "checking for $ac_word... " >&6; }
32015 if ${ac_cv_prog_NMEDIT+:} false; then :
32016   $as_echo_n "(cached) " >&6
32017 else
32018   if test -n "$NMEDIT"; then
32019   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
32020 else
32021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32022 for as_dir in $PATH
32023 do
32024   IFS=$as_save_IFS
32025   test -z "$as_dir" && as_dir=.
32026     for ac_exec_ext in '' $ac_executable_extensions; do
32027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32028     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
32029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32030     break 2
32031   fi
32032 done
32033   done
32034 IFS=$as_save_IFS
32035
32036 fi
32037 fi
32038 NMEDIT=$ac_cv_prog_NMEDIT
32039 if test -n "$NMEDIT"; then
32040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
32041 $as_echo "$NMEDIT" >&6; }
32042 else
32043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32044 $as_echo "no" >&6; }
32045 fi
32046
32047
32048 fi
32049 if test -z "$ac_cv_prog_NMEDIT"; then
32050   ac_ct_NMEDIT=$NMEDIT
32051   # Extract the first word of "nmedit", so it can be a program name with args.
32052 set dummy nmedit; ac_word=$2
32053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32054 $as_echo_n "checking for $ac_word... " >&6; }
32055 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
32056   $as_echo_n "(cached) " >&6
32057 else
32058   if test -n "$ac_ct_NMEDIT"; then
32059   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
32060 else
32061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32062 for as_dir in $PATH
32063 do
32064   IFS=$as_save_IFS
32065   test -z "$as_dir" && as_dir=.
32066     for ac_exec_ext in '' $ac_executable_extensions; do
32067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32068     ac_cv_prog_ac_ct_NMEDIT="nmedit"
32069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32070     break 2
32071   fi
32072 done
32073   done
32074 IFS=$as_save_IFS
32075
32076 fi
32077 fi
32078 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
32079 if test -n "$ac_ct_NMEDIT"; then
32080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
32081 $as_echo "$ac_ct_NMEDIT" >&6; }
32082 else
32083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32084 $as_echo "no" >&6; }
32085 fi
32086
32087   if test "x$ac_ct_NMEDIT" = x; then
32088     NMEDIT=":"
32089   else
32090     case $cross_compiling:$ac_tool_warned in
32091 yes:)
32092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32094 ac_tool_warned=yes ;;
32095 esac
32096     NMEDIT=$ac_ct_NMEDIT
32097   fi
32098 else
32099   NMEDIT="$ac_cv_prog_NMEDIT"
32100 fi
32101
32102     if test -n "$ac_tool_prefix"; then
32103   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
32104 set dummy ${ac_tool_prefix}lipo; ac_word=$2
32105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32106 $as_echo_n "checking for $ac_word... " >&6; }
32107 if ${ac_cv_prog_LIPO+:} false; then :
32108   $as_echo_n "(cached) " >&6
32109 else
32110   if test -n "$LIPO"; then
32111   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
32112 else
32113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32114 for as_dir in $PATH
32115 do
32116   IFS=$as_save_IFS
32117   test -z "$as_dir" && as_dir=.
32118     for ac_exec_ext in '' $ac_executable_extensions; do
32119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32120     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
32121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32122     break 2
32123   fi
32124 done
32125   done
32126 IFS=$as_save_IFS
32127
32128 fi
32129 fi
32130 LIPO=$ac_cv_prog_LIPO
32131 if test -n "$LIPO"; then
32132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
32133 $as_echo "$LIPO" >&6; }
32134 else
32135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32136 $as_echo "no" >&6; }
32137 fi
32138
32139
32140 fi
32141 if test -z "$ac_cv_prog_LIPO"; then
32142   ac_ct_LIPO=$LIPO
32143   # Extract the first word of "lipo", so it can be a program name with args.
32144 set dummy lipo; ac_word=$2
32145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32146 $as_echo_n "checking for $ac_word... " >&6; }
32147 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
32148   $as_echo_n "(cached) " >&6
32149 else
32150   if test -n "$ac_ct_LIPO"; then
32151   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
32152 else
32153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32154 for as_dir in $PATH
32155 do
32156   IFS=$as_save_IFS
32157   test -z "$as_dir" && as_dir=.
32158     for ac_exec_ext in '' $ac_executable_extensions; do
32159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32160     ac_cv_prog_ac_ct_LIPO="lipo"
32161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32162     break 2
32163   fi
32164 done
32165   done
32166 IFS=$as_save_IFS
32167
32168 fi
32169 fi
32170 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
32171 if test -n "$ac_ct_LIPO"; then
32172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
32173 $as_echo "$ac_ct_LIPO" >&6; }
32174 else
32175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32176 $as_echo "no" >&6; }
32177 fi
32178
32179   if test "x$ac_ct_LIPO" = x; then
32180     LIPO=":"
32181   else
32182     case $cross_compiling:$ac_tool_warned in
32183 yes:)
32184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32186 ac_tool_warned=yes ;;
32187 esac
32188     LIPO=$ac_ct_LIPO
32189   fi
32190 else
32191   LIPO="$ac_cv_prog_LIPO"
32192 fi
32193
32194     if test -n "$ac_tool_prefix"; then
32195   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
32196 set dummy ${ac_tool_prefix}otool; ac_word=$2
32197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32198 $as_echo_n "checking for $ac_word... " >&6; }
32199 if ${ac_cv_prog_OTOOL+:} false; then :
32200   $as_echo_n "(cached) " >&6
32201 else
32202   if test -n "$OTOOL"; then
32203   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
32204 else
32205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32206 for as_dir in $PATH
32207 do
32208   IFS=$as_save_IFS
32209   test -z "$as_dir" && as_dir=.
32210     for ac_exec_ext in '' $ac_executable_extensions; do
32211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32212     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
32213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32214     break 2
32215   fi
32216 done
32217   done
32218 IFS=$as_save_IFS
32219
32220 fi
32221 fi
32222 OTOOL=$ac_cv_prog_OTOOL
32223 if test -n "$OTOOL"; then
32224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
32225 $as_echo "$OTOOL" >&6; }
32226 else
32227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32228 $as_echo "no" >&6; }
32229 fi
32230
32231
32232 fi
32233 if test -z "$ac_cv_prog_OTOOL"; then
32234   ac_ct_OTOOL=$OTOOL
32235   # Extract the first word of "otool", so it can be a program name with args.
32236 set dummy otool; ac_word=$2
32237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32238 $as_echo_n "checking for $ac_word... " >&6; }
32239 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
32240   $as_echo_n "(cached) " >&6
32241 else
32242   if test -n "$ac_ct_OTOOL"; then
32243   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
32244 else
32245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32246 for as_dir in $PATH
32247 do
32248   IFS=$as_save_IFS
32249   test -z "$as_dir" && as_dir=.
32250     for ac_exec_ext in '' $ac_executable_extensions; do
32251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32252     ac_cv_prog_ac_ct_OTOOL="otool"
32253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32254     break 2
32255   fi
32256 done
32257   done
32258 IFS=$as_save_IFS
32259
32260 fi
32261 fi
32262 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
32263 if test -n "$ac_ct_OTOOL"; then
32264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
32265 $as_echo "$ac_ct_OTOOL" >&6; }
32266 else
32267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32268 $as_echo "no" >&6; }
32269 fi
32270
32271   if test "x$ac_ct_OTOOL" = x; then
32272     OTOOL=":"
32273   else
32274     case $cross_compiling:$ac_tool_warned in
32275 yes:)
32276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32278 ac_tool_warned=yes ;;
32279 esac
32280     OTOOL=$ac_ct_OTOOL
32281   fi
32282 else
32283   OTOOL="$ac_cv_prog_OTOOL"
32284 fi
32285
32286     if test -n "$ac_tool_prefix"; then
32287   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
32288 set dummy ${ac_tool_prefix}otool64; ac_word=$2
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32290 $as_echo_n "checking for $ac_word... " >&6; }
32291 if ${ac_cv_prog_OTOOL64+:} false; then :
32292   $as_echo_n "(cached) " >&6
32293 else
32294   if test -n "$OTOOL64"; then
32295   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
32296 else
32297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32298 for as_dir in $PATH
32299 do
32300   IFS=$as_save_IFS
32301   test -z "$as_dir" && as_dir=.
32302     for ac_exec_ext in '' $ac_executable_extensions; do
32303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32304     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
32305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32306     break 2
32307   fi
32308 done
32309   done
32310 IFS=$as_save_IFS
32311
32312 fi
32313 fi
32314 OTOOL64=$ac_cv_prog_OTOOL64
32315 if test -n "$OTOOL64"; then
32316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
32317 $as_echo "$OTOOL64" >&6; }
32318 else
32319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32320 $as_echo "no" >&6; }
32321 fi
32322
32323
32324 fi
32325 if test -z "$ac_cv_prog_OTOOL64"; then
32326   ac_ct_OTOOL64=$OTOOL64
32327   # Extract the first word of "otool64", so it can be a program name with args.
32328 set dummy otool64; ac_word=$2
32329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32330 $as_echo_n "checking for $ac_word... " >&6; }
32331 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
32332   $as_echo_n "(cached) " >&6
32333 else
32334   if test -n "$ac_ct_OTOOL64"; then
32335   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
32336 else
32337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32338 for as_dir in $PATH
32339 do
32340   IFS=$as_save_IFS
32341   test -z "$as_dir" && as_dir=.
32342     for ac_exec_ext in '' $ac_executable_extensions; do
32343   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32344     ac_cv_prog_ac_ct_OTOOL64="otool64"
32345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32346     break 2
32347   fi
32348 done
32349   done
32350 IFS=$as_save_IFS
32351
32352 fi
32353 fi
32354 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
32355 if test -n "$ac_ct_OTOOL64"; then
32356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
32357 $as_echo "$ac_ct_OTOOL64" >&6; }
32358 else
32359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32360 $as_echo "no" >&6; }
32361 fi
32362
32363   if test "x$ac_ct_OTOOL64" = x; then
32364     OTOOL64=":"
32365   else
32366     case $cross_compiling:$ac_tool_warned in
32367 yes:)
32368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32370 ac_tool_warned=yes ;;
32371 esac
32372     OTOOL64=$ac_ct_OTOOL64
32373   fi
32374 else
32375   OTOOL64="$ac_cv_prog_OTOOL64"
32376 fi
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
32402
32403
32404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
32405 $as_echo_n "checking for -single_module linker flag... " >&6; }
32406 if ${lt_cv_apple_cc_single_mod+:} false; then :
32407   $as_echo_n "(cached) " >&6
32408 else
32409   lt_cv_apple_cc_single_mod=no
32410       if test -z "${LT_MULTI_MODULE}"; then
32411         # By default we will add the -single_module flag. You can override
32412         # by either setting the environment variable LT_MULTI_MODULE
32413         # non-empty at configure time, or by adding -multi_module to the
32414         # link flags.
32415         rm -rf libconftest.dylib*
32416         echo "int foo(void){return 1;}" > conftest.c
32417         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
32418 -dynamiclib -Wl,-single_module conftest.c" >&5
32419         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
32420           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
32421         _lt_result=$?
32422         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
32423           lt_cv_apple_cc_single_mod=yes
32424         else
32425           cat conftest.err >&5
32426         fi
32427         rm -rf libconftest.dylib*
32428         rm -f conftest.*
32429       fi
32430 fi
32431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
32432 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
32433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
32434 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
32435 if ${lt_cv_ld_exported_symbols_list+:} false; then :
32436   $as_echo_n "(cached) " >&6
32437 else
32438   lt_cv_ld_exported_symbols_list=no
32439       save_LDFLAGS=$LDFLAGS
32440       echo "_main" > conftest.sym
32441       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
32442       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32443 /* end confdefs.h.  */
32444
32445 int
32446 main ()
32447 {
32448
32449   ;
32450   return 0;
32451 }
32452 _ACEOF
32453 if ac_fn_c_try_link "$LINENO"; then :
32454   lt_cv_ld_exported_symbols_list=yes
32455 else
32456   lt_cv_ld_exported_symbols_list=no
32457 fi
32458 rm -f core conftest.err conftest.$ac_objext \
32459     conftest$ac_exeext conftest.$ac_ext
32460         LDFLAGS="$save_LDFLAGS"
32461
32462 fi
32463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
32464 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
32465     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
32466 $as_echo_n "checking for -force_load linker flag... " >&6; }
32467 if ${lt_cv_ld_force_load+:} false; then :
32468   $as_echo_n "(cached) " >&6
32469 else
32470   lt_cv_ld_force_load=no
32471       cat > conftest.c << _LT_EOF
32472 int forced_loaded() { return 2;}
32473 _LT_EOF
32474       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
32475       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
32476       echo "$AR cru libconftest.a conftest.o" >&5
32477       $AR cru libconftest.a conftest.o 2>&5
32478       echo "$RANLIB libconftest.a" >&5
32479       $RANLIB libconftest.a 2>&5
32480       cat > conftest.c << _LT_EOF
32481 int main() { return 0;}
32482 _LT_EOF
32483       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
32484       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
32485       _lt_result=$?
32486       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
32487         lt_cv_ld_force_load=yes
32488       else
32489         cat conftest.err >&5
32490       fi
32491         rm -f conftest.err libconftest.a conftest conftest.c
32492         rm -rf conftest.dSYM
32493
32494 fi
32495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
32496 $as_echo "$lt_cv_ld_force_load" >&6; }
32497     case $host_os in
32498     rhapsody* | darwin1.[012])
32499       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
32500     darwin1.*)
32501       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
32502     darwin*) # darwin 5.x on
32503       # if running on 10.5 or later, the deployment target defaults
32504       # to the OS version, if on x86, and 10.4, the deployment
32505       # target defaults to 10.4. Don't you love it?
32506       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
32507         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
32508           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
32509         10.[012]*)
32510           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
32511         10.*)
32512           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
32513       esac
32514     ;;
32515   esac
32516     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
32517       _lt_dar_single_mod='$single_module'
32518     fi
32519     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
32520       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
32521     else
32522       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
32523     fi
32524     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
32525       _lt_dsymutil='~$DSYMUTIL $lib || :'
32526     else
32527       _lt_dsymutil=
32528     fi
32529     ;;
32530   esac
32531
32532 for ac_header in dlfcn.h
32533 do :
32534   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
32535 "
32536 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
32537   cat >>confdefs.h <<_ACEOF
32538 #define HAVE_DLFCN_H 1
32539 _ACEOF
32540
32541 fi
32542
32543 done
32544
32545
32546
32547
32548
32549 # Set options
32550
32551
32552
32553         enable_dlopen=no
32554
32555
32556   enable_win32_dll=no
32557
32558
32559             # Check whether --enable-shared was given.
32560 if test "${enable_shared+set}" = set; then :
32561   enableval=$enable_shared; p=${PACKAGE-default}
32562     case $enableval in
32563     yes) enable_shared=yes ;;
32564     no) enable_shared=no ;;
32565     *)
32566       enable_shared=no
32567       # Look at the argument we got.  We use all the common list separators.
32568       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32569       for pkg in $enableval; do
32570         IFS="$lt_save_ifs"
32571         if test "X$pkg" = "X$p"; then
32572           enable_shared=yes
32573         fi
32574       done
32575       IFS="$lt_save_ifs"
32576       ;;
32577     esac
32578 else
32579   enable_shared=yes
32580 fi
32581
32582
32583
32584
32585
32586
32587
32588
32589
32590   # Check whether --enable-static was given.
32591 if test "${enable_static+set}" = set; then :
32592   enableval=$enable_static; p=${PACKAGE-default}
32593     case $enableval in
32594     yes) enable_static=yes ;;
32595     no) enable_static=no ;;
32596     *)
32597      enable_static=no
32598       # Look at the argument we got.  We use all the common list separators.
32599       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32600       for pkg in $enableval; do
32601         IFS="$lt_save_ifs"
32602         if test "X$pkg" = "X$p"; then
32603           enable_static=yes
32604         fi
32605       done
32606       IFS="$lt_save_ifs"
32607       ;;
32608     esac
32609 else
32610   enable_static=yes
32611 fi
32612
32613
32614
32615
32616
32617
32618
32619
32620
32621
32622 # Check whether --with-pic was given.
32623 if test "${with_pic+set}" = set; then :
32624   withval=$with_pic; pic_mode="$withval"
32625 else
32626   pic_mode=default
32627 fi
32628
32629
32630 test -z "$pic_mode" && pic_mode=default
32631
32632
32633
32634
32635
32636
32637
32638   # Check whether --enable-fast-install was given.
32639 if test "${enable_fast_install+set}" = set; then :
32640   enableval=$enable_fast_install; p=${PACKAGE-default}
32641     case $enableval in
32642     yes) enable_fast_install=yes ;;
32643     no) enable_fast_install=no ;;
32644     *)
32645       enable_fast_install=no
32646       # Look at the argument we got.  We use all the common list separators.
32647       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32648       for pkg in $enableval; do
32649         IFS="$lt_save_ifs"
32650         if test "X$pkg" = "X$p"; then
32651           enable_fast_install=yes
32652         fi
32653       done
32654       IFS="$lt_save_ifs"
32655       ;;
32656     esac
32657 else
32658   enable_fast_install=yes
32659 fi
32660
32661
32662
32663
32664
32665
32666
32667
32668
32669
32670
32671 # This can be used to rebuild libtool when needed
32672 LIBTOOL_DEPS="$ltmain"
32673
32674 # Always use our own libtool.
32675 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
32676
32677
32678
32679
32680
32681
32682
32683
32684
32685
32686
32687
32688
32689
32690
32691
32692
32693
32694
32695
32696
32697
32698
32699
32700
32701
32702 test -z "$LN_S" && LN_S="ln -s"
32703
32704
32705
32706
32707
32708
32709
32710
32711
32712
32713
32714
32715
32716
32717 if test -n "${ZSH_VERSION+set}" ; then
32718    setopt NO_GLOB_SUBST
32719 fi
32720
32721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
32722 $as_echo_n "checking for objdir... " >&6; }
32723 if ${lt_cv_objdir+:} false; then :
32724   $as_echo_n "(cached) " >&6
32725 else
32726   rm -f .libs 2>/dev/null
32727 mkdir .libs 2>/dev/null
32728 if test -d .libs; then
32729   lt_cv_objdir=.libs
32730 else
32731   # MS-DOS does not allow filenames that begin with a dot.
32732   lt_cv_objdir=_libs
32733 fi
32734 rmdir .libs 2>/dev/null
32735 fi
32736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
32737 $as_echo "$lt_cv_objdir" >&6; }
32738 objdir=$lt_cv_objdir
32739
32740
32741
32742
32743
32744 cat >>confdefs.h <<_ACEOF
32745 #define LT_OBJDIR "$lt_cv_objdir/"
32746 _ACEOF
32747
32748
32749
32750
32751 case $host_os in
32752 aix3*)
32753   # AIX sometimes has problems with the GCC collect2 program.  For some
32754   # reason, if we set the COLLECT_NAMES environment variable, the problems
32755   # vanish in a puff of smoke.
32756   if test "X${COLLECT_NAMES+set}" != Xset; then
32757     COLLECT_NAMES=
32758     export COLLECT_NAMES
32759   fi
32760   ;;
32761 esac
32762
32763 # Global variables:
32764 ofile=libtool
32765 can_build_shared=yes
32766
32767 # All known linkers require a `.a' archive for static linking (except MSVC,
32768 # which needs '.lib').
32769 libext=a
32770
32771 with_gnu_ld="$lt_cv_prog_gnu_ld"
32772
32773 old_CC="$CC"
32774 old_CFLAGS="$CFLAGS"
32775
32776 # Set sane defaults for various variables
32777 test -z "$CC" && CC=cc
32778 test -z "$LTCC" && LTCC=$CC
32779 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
32780 test -z "$LD" && LD=ld
32781 test -z "$ac_objext" && ac_objext=o
32782
32783 for cc_temp in $compiler""; do
32784   case $cc_temp in
32785     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
32786     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
32787     \-*) ;;
32788     *) break;;
32789   esac
32790 done
32791 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
32792
32793
32794 # Only perform the check for file, if the check method requires it
32795 test -z "$MAGIC_CMD" && MAGIC_CMD=file
32796 case $deplibs_check_method in
32797 file_magic*)
32798   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
32799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
32800 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
32801 if ${lt_cv_path_MAGIC_CMD+:} false; then :
32802   $as_echo_n "(cached) " >&6
32803 else
32804   case $MAGIC_CMD in
32805 [\\/*] |  ?:[\\/]*)
32806   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
32807   ;;
32808 *)
32809   lt_save_MAGIC_CMD="$MAGIC_CMD"
32810   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32811   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
32812   for ac_dir in $ac_dummy; do
32813     IFS="$lt_save_ifs"
32814     test -z "$ac_dir" && ac_dir=.
32815     if test -f $ac_dir/${ac_tool_prefix}file; then
32816       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
32817       if test -n "$file_magic_test_file"; then
32818         case $deplibs_check_method in
32819         "file_magic "*)
32820           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
32821           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32822           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
32823             $EGREP "$file_magic_regex" > /dev/null; then
32824             :
32825           else
32826             cat <<_LT_EOF 1>&2
32827
32828 *** Warning: the command libtool uses to detect shared libraries,
32829 *** $file_magic_cmd, produces output that libtool cannot recognize.
32830 *** The result is that libtool may fail to recognize shared libraries
32831 *** as such.  This will affect the creation of libtool libraries that
32832 *** depend on shared libraries, but programs linked with such libtool
32833 *** libraries will work regardless of this problem.  Nevertheless, you
32834 *** may want to report the problem to your system manager and/or to
32835 *** bug-libtool@gnu.org
32836
32837 _LT_EOF
32838           fi ;;
32839         esac
32840       fi
32841       break
32842     fi
32843   done
32844   IFS="$lt_save_ifs"
32845   MAGIC_CMD="$lt_save_MAGIC_CMD"
32846   ;;
32847 esac
32848 fi
32849
32850 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32851 if test -n "$MAGIC_CMD"; then
32852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
32853 $as_echo "$MAGIC_CMD" >&6; }
32854 else
32855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32856 $as_echo "no" >&6; }
32857 fi
32858
32859
32860
32861
32862
32863 if test -z "$lt_cv_path_MAGIC_CMD"; then
32864   if test -n "$ac_tool_prefix"; then
32865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
32866 $as_echo_n "checking for file... " >&6; }
32867 if ${lt_cv_path_MAGIC_CMD+:} false; then :
32868   $as_echo_n "(cached) " >&6
32869 else
32870   case $MAGIC_CMD in
32871 [\\/*] |  ?:[\\/]*)
32872   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
32873   ;;
32874 *)
32875   lt_save_MAGIC_CMD="$MAGIC_CMD"
32876   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32877   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
32878   for ac_dir in $ac_dummy; do
32879     IFS="$lt_save_ifs"
32880     test -z "$ac_dir" && ac_dir=.
32881     if test -f $ac_dir/file; then
32882       lt_cv_path_MAGIC_CMD="$ac_dir/file"
32883       if test -n "$file_magic_test_file"; then
32884         case $deplibs_check_method in
32885         "file_magic "*)
32886           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
32887           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32888           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
32889             $EGREP "$file_magic_regex" > /dev/null; then
32890             :
32891           else
32892             cat <<_LT_EOF 1>&2
32893
32894 *** Warning: the command libtool uses to detect shared libraries,
32895 *** $file_magic_cmd, produces output that libtool cannot recognize.
32896 *** The result is that libtool may fail to recognize shared libraries
32897 *** as such.  This will affect the creation of libtool libraries that
32898 *** depend on shared libraries, but programs linked with such libtool
32899 *** libraries will work regardless of this problem.  Nevertheless, you
32900 *** may want to report the problem to your system manager and/or to
32901 *** bug-libtool@gnu.org
32902
32903 _LT_EOF
32904           fi ;;
32905         esac
32906       fi
32907       break
32908     fi
32909   done
32910   IFS="$lt_save_ifs"
32911   MAGIC_CMD="$lt_save_MAGIC_CMD"
32912   ;;
32913 esac
32914 fi
32915
32916 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
32917 if test -n "$MAGIC_CMD"; then
32918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
32919 $as_echo "$MAGIC_CMD" >&6; }
32920 else
32921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32922 $as_echo "no" >&6; }
32923 fi
32924
32925
32926   else
32927     MAGIC_CMD=:
32928   fi
32929 fi
32930
32931   fi
32932   ;;
32933 esac
32934
32935 # Use C for the default configuration in the libtool script
32936
32937 lt_save_CC="$CC"
32938 ac_ext=c
32939 ac_cpp='$CPP $CPPFLAGS'
32940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32943
32944
32945 # Source file extension for C test sources.
32946 ac_ext=c
32947
32948 # Object file extension for compiled C test sources.
32949 objext=o
32950 objext=$objext
32951
32952 # Code to be used in simple compile tests
32953 lt_simple_compile_test_code="int some_variable = 0;"
32954
32955 # Code to be used in simple link tests
32956 lt_simple_link_test_code='int main(){return(0);}'
32957
32958
32959
32960
32961
32962
32963
32964 # If no C compiler was specified, use CC.
32965 LTCC=${LTCC-"$CC"}
32966
32967 # If no C compiler flags were specified, use CFLAGS.
32968 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
32969
32970 # Allow CC to be a program name with arguments.
32971 compiler=$CC
32972
32973 # Save the default compiler, since it gets overwritten when the other
32974 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
32975 compiler_DEFAULT=$CC
32976
32977 # save warnings/boilerplate of simple test code
32978 ac_outfile=conftest.$ac_objext
32979 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
32980 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
32981 _lt_compiler_boilerplate=`cat conftest.err`
32982 $RM conftest*
32983
32984 ac_outfile=conftest.$ac_objext
32985 echo "$lt_simple_link_test_code" >conftest.$ac_ext
32986 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
32987 _lt_linker_boilerplate=`cat conftest.err`
32988 $RM -r conftest*
32989
32990
32991 ## CAVEAT EMPTOR:
32992 ## There is no encapsulation within the following macros, do not change
32993 ## the running order or otherwise move them around unless you know exactly
32994 ## what you are doing...
32995 if test -n "$compiler"; then
32996
32997 lt_prog_compiler_no_builtin_flag=
32998
32999 if test "$GCC" = yes; then
33000   case $cc_basename in
33001   nvcc*)
33002     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
33003   *)
33004     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
33005   esac
33006
33007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
33008 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
33009 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
33010   $as_echo_n "(cached) " >&6
33011 else
33012   lt_cv_prog_compiler_rtti_exceptions=no
33013    ac_outfile=conftest.$ac_objext
33014    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33015    lt_compiler_flag="-fno-rtti -fno-exceptions"
33016    # Insert the option either (1) after the last *FLAGS variable, or
33017    # (2) before a word containing "conftest.", or (3) at the end.
33018    # Note that $ac_compile itself does not contain backslashes and begins
33019    # with a dollar sign (not a hyphen), so the echo should work correctly.
33020    # The option is referenced via a variable to avoid confusing sed.
33021    lt_compile=`echo "$ac_compile" | $SED \
33022    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33023    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33024    -e 's:$: $lt_compiler_flag:'`
33025    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33026    (eval "$lt_compile" 2>conftest.err)
33027    ac_status=$?
33028    cat conftest.err >&5
33029    echo "$as_me:$LINENO: \$? = $ac_status" >&5
33030    if (exit $ac_status) && test -s "$ac_outfile"; then
33031      # The compiler can only warn and ignore the option if not recognized
33032      # So say no if there are warnings other than the usual output.
33033      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
33034      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
33035      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
33036        lt_cv_prog_compiler_rtti_exceptions=yes
33037      fi
33038    fi
33039    $RM conftest*
33040
33041 fi
33042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
33043 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
33044
33045 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
33046     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
33047 else
33048     :
33049 fi
33050
33051 fi
33052
33053
33054
33055
33056
33057
33058   lt_prog_compiler_wl=
33059 lt_prog_compiler_pic=
33060 lt_prog_compiler_static=
33061
33062
33063   if test "$GCC" = yes; then
33064     lt_prog_compiler_wl='-Wl,'
33065     lt_prog_compiler_static='-static'
33066
33067     case $host_os in
33068       aix*)
33069       # All AIX code is PIC.
33070       if test "$host_cpu" = ia64; then
33071         # AIX 5 now supports IA64 processor
33072         lt_prog_compiler_static='-Bstatic'
33073       fi
33074       ;;
33075
33076     amigaos*)
33077       case $host_cpu in
33078       powerpc)
33079             # see comment about AmigaOS4 .so support
33080             lt_prog_compiler_pic='-fPIC'
33081         ;;
33082       m68k)
33083             # FIXME: we need at least 68020 code to build shared libraries, but
33084             # adding the `-m68020' flag to GCC prevents building anything better,
33085             # like `-m68040'.
33086             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
33087         ;;
33088       esac
33089       ;;
33090
33091     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
33092       # PIC is the default for these OSes.
33093       ;;
33094
33095     mingw* | cygwin* | pw32* | os2* | cegcc*)
33096       # This hack is so that the source file can tell whether it is being
33097       # built for inclusion in a dll (and should export symbols for example).
33098       # Although the cygwin gcc ignores -fPIC, still need this for old-style
33099       # (--disable-auto-import) libraries
33100       lt_prog_compiler_pic='-DDLL_EXPORT'
33101       ;;
33102
33103     darwin* | rhapsody*)
33104       # PIC is the default on this platform
33105       # Common symbols not allowed in MH_DYLIB files
33106       lt_prog_compiler_pic='-fno-common'
33107       ;;
33108
33109     haiku*)
33110       # PIC is the default for Haiku.
33111       # The "-static" flag exists, but is broken.
33112       lt_prog_compiler_static=
33113       ;;
33114
33115     hpux*)
33116       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
33117       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
33118       # sets the default TLS model and affects inlining.
33119       case $host_cpu in
33120       hppa*64*)
33121         # +Z the default
33122         ;;
33123       *)
33124         lt_prog_compiler_pic='-fPIC'
33125         ;;
33126       esac
33127       ;;
33128
33129     interix[3-9]*)
33130       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
33131       # Instead, we relocate shared libraries at runtime.
33132       ;;
33133
33134     msdosdjgpp*)
33135       # Just because we use GCC doesn't mean we suddenly get shared libraries
33136       # on systems that don't support them.
33137       lt_prog_compiler_can_build_shared=no
33138       enable_shared=no
33139       ;;
33140
33141     *nto* | *qnx*)
33142       # QNX uses GNU C++, but need to define -shared option too, otherwise
33143       # it will coredump.
33144       lt_prog_compiler_pic='-fPIC -shared'
33145       ;;
33146
33147     sysv4*MP*)
33148       if test -d /usr/nec; then
33149         lt_prog_compiler_pic=-Kconform_pic
33150       fi
33151       ;;
33152
33153     *)
33154       lt_prog_compiler_pic='-fPIC'
33155       ;;
33156     esac
33157
33158     case $cc_basename in
33159     nvcc*) # Cuda Compiler Driver 2.2
33160       lt_prog_compiler_wl='-Xlinker '
33161       lt_prog_compiler_pic='-Xcompiler -fPIC'
33162       ;;
33163     esac
33164   else
33165     # PORTME Check for flag to pass linker flags through the system compiler.
33166     case $host_os in
33167     aix*)
33168       lt_prog_compiler_wl='-Wl,'
33169       if test "$host_cpu" = ia64; then
33170         # AIX 5 now supports IA64 processor
33171         lt_prog_compiler_static='-Bstatic'
33172       else
33173         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
33174       fi
33175       ;;
33176
33177     mingw* | cygwin* | pw32* | os2* | cegcc*)
33178       # This hack is so that the source file can tell whether it is being
33179       # built for inclusion in a dll (and should export symbols for example).
33180       lt_prog_compiler_pic='-DDLL_EXPORT'
33181       ;;
33182
33183     hpux9* | hpux10* | hpux11*)
33184       lt_prog_compiler_wl='-Wl,'
33185       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
33186       # not for PA HP-UX.
33187       case $host_cpu in
33188       hppa*64*|ia64*)
33189         # +Z the default
33190         ;;
33191       *)
33192         lt_prog_compiler_pic='+Z'
33193         ;;
33194       esac
33195       # Is there a better lt_prog_compiler_static that works with the bundled CC?
33196       lt_prog_compiler_static='${wl}-a ${wl}archive'
33197       ;;
33198
33199     irix5* | irix6* | nonstopux*)
33200       lt_prog_compiler_wl='-Wl,'
33201       # PIC (with -KPIC) is the default.
33202       lt_prog_compiler_static='-non_shared'
33203       ;;
33204
33205     linux* | k*bsd*-gnu | kopensolaris*-gnu)
33206       case $cc_basename in
33207       # old Intel for x86_64 which still supported -KPIC.
33208       ecc*)
33209         lt_prog_compiler_wl='-Wl,'
33210         lt_prog_compiler_pic='-KPIC'
33211         lt_prog_compiler_static='-static'
33212         ;;
33213       # icc used to be incompatible with GCC.
33214       # ICC 10 doesn't accept -KPIC any more.
33215       icc* | ifort*)
33216         lt_prog_compiler_wl='-Wl,'
33217         lt_prog_compiler_pic='-fPIC'
33218         lt_prog_compiler_static='-static'
33219         ;;
33220       # Lahey Fortran 8.1.
33221       lf95*)
33222         lt_prog_compiler_wl='-Wl,'
33223         lt_prog_compiler_pic='--shared'
33224         lt_prog_compiler_static='--static'
33225         ;;
33226       nagfor*)
33227         # NAG Fortran compiler
33228         lt_prog_compiler_wl='-Wl,-Wl,,'
33229         lt_prog_compiler_pic='-PIC'
33230         lt_prog_compiler_static='-Bstatic'
33231         ;;
33232       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
33233         # Portland Group compilers (*not* the Pentium gcc compiler,
33234         # which looks to be a dead project)
33235         lt_prog_compiler_wl='-Wl,'
33236         lt_prog_compiler_pic='-fpic'
33237         lt_prog_compiler_static='-Bstatic'
33238         ;;
33239       ccc*)
33240         lt_prog_compiler_wl='-Wl,'
33241         # All Alpha code is PIC.
33242         lt_prog_compiler_static='-non_shared'
33243         ;;
33244       xl* | bgxl* | bgf* | mpixl*)
33245         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
33246         lt_prog_compiler_wl='-Wl,'
33247         lt_prog_compiler_pic='-qpic'
33248         lt_prog_compiler_static='-qstaticlink'
33249         ;;
33250       *)
33251         case `$CC -V 2>&1 | sed 5q` in
33252         *Sun\ F* | *Sun*Fortran*)
33253           # Sun Fortran 8.3 passes all unrecognized flags to the linker
33254           lt_prog_compiler_pic='-KPIC'
33255           lt_prog_compiler_static='-Bstatic'
33256           lt_prog_compiler_wl=''
33257           ;;
33258         *Sun\ C*)
33259           # Sun C 5.9
33260           lt_prog_compiler_pic='-KPIC'
33261           lt_prog_compiler_static='-Bstatic'
33262           lt_prog_compiler_wl='-Wl,'
33263           ;;
33264         esac
33265         ;;
33266       esac
33267       ;;
33268
33269     newsos6)
33270       lt_prog_compiler_pic='-KPIC'
33271       lt_prog_compiler_static='-Bstatic'
33272       ;;
33273
33274     *nto* | *qnx*)
33275       # QNX uses GNU C++, but need to define -shared option too, otherwise
33276       # it will coredump.
33277       lt_prog_compiler_pic='-fPIC -shared'
33278       ;;
33279
33280     osf3* | osf4* | osf5*)
33281       lt_prog_compiler_wl='-Wl,'
33282       # All OSF/1 code is PIC.
33283       lt_prog_compiler_static='-non_shared'
33284       ;;
33285
33286     rdos*)
33287       lt_prog_compiler_static='-non_shared'
33288       ;;
33289
33290     solaris*)
33291       lt_prog_compiler_pic='-KPIC'
33292       lt_prog_compiler_static='-Bstatic'
33293       case $cc_basename in
33294       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
33295         lt_prog_compiler_wl='-Qoption ld ';;
33296       *)
33297         lt_prog_compiler_wl='-Wl,';;
33298       esac
33299       ;;
33300
33301     sunos4*)
33302       lt_prog_compiler_wl='-Qoption ld '
33303       lt_prog_compiler_pic='-PIC'
33304       lt_prog_compiler_static='-Bstatic'
33305       ;;
33306
33307     sysv4 | sysv4.2uw2* | sysv4.3*)
33308       lt_prog_compiler_wl='-Wl,'
33309       lt_prog_compiler_pic='-KPIC'
33310       lt_prog_compiler_static='-Bstatic'
33311       ;;
33312
33313     sysv4*MP*)
33314       if test -d /usr/nec ;then
33315         lt_prog_compiler_pic='-Kconform_pic'
33316         lt_prog_compiler_static='-Bstatic'
33317       fi
33318       ;;
33319
33320     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
33321       lt_prog_compiler_wl='-Wl,'
33322       lt_prog_compiler_pic='-KPIC'
33323       lt_prog_compiler_static='-Bstatic'
33324       ;;
33325
33326     unicos*)
33327       lt_prog_compiler_wl='-Wl,'
33328       lt_prog_compiler_can_build_shared=no
33329       ;;
33330
33331     uts4*)
33332       lt_prog_compiler_pic='-pic'
33333       lt_prog_compiler_static='-Bstatic'
33334       ;;
33335
33336     *)
33337       lt_prog_compiler_can_build_shared=no
33338       ;;
33339     esac
33340   fi
33341
33342 case $host_os in
33343   # For platforms which do not support PIC, -DPIC is meaningless:
33344   *djgpp*)
33345     lt_prog_compiler_pic=
33346     ;;
33347   *)
33348     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
33349     ;;
33350 esac
33351
33352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
33353 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
33354 if ${lt_cv_prog_compiler_pic+:} false; then :
33355   $as_echo_n "(cached) " >&6
33356 else
33357   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
33358 fi
33359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
33360 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
33361 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
33362
33363 #
33364 # Check to make sure the PIC flag actually works.
33365 #
33366 if test -n "$lt_prog_compiler_pic"; then
33367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
33368 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
33369 if ${lt_cv_prog_compiler_pic_works+:} false; then :
33370   $as_echo_n "(cached) " >&6
33371 else
33372   lt_cv_prog_compiler_pic_works=no
33373    ac_outfile=conftest.$ac_objext
33374    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33375    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
33376    # Insert the option either (1) after the last *FLAGS variable, or
33377    # (2) before a word containing "conftest.", or (3) at the end.
33378    # Note that $ac_compile itself does not contain backslashes and begins
33379    # with a dollar sign (not a hyphen), so the echo should work correctly.
33380    # The option is referenced via a variable to avoid confusing sed.
33381    lt_compile=`echo "$ac_compile" | $SED \
33382    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33383    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33384    -e 's:$: $lt_compiler_flag:'`
33385    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33386    (eval "$lt_compile" 2>conftest.err)
33387    ac_status=$?
33388    cat conftest.err >&5
33389    echo "$as_me:$LINENO: \$? = $ac_status" >&5
33390    if (exit $ac_status) && test -s "$ac_outfile"; then
33391      # The compiler can only warn and ignore the option if not recognized
33392      # So say no if there are warnings other than the usual output.
33393      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
33394      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
33395      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
33396        lt_cv_prog_compiler_pic_works=yes
33397      fi
33398    fi
33399    $RM conftest*
33400
33401 fi
33402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
33403 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
33404
33405 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
33406     case $lt_prog_compiler_pic in
33407      "" | " "*) ;;
33408      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
33409      esac
33410 else
33411     lt_prog_compiler_pic=
33412      lt_prog_compiler_can_build_shared=no
33413 fi
33414
33415 fi
33416
33417
33418
33419
33420
33421
33422
33423
33424
33425
33426
33427 #
33428 # Check to make sure the static flag actually works.
33429 #
33430 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
33431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
33432 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
33433 if ${lt_cv_prog_compiler_static_works+:} false; then :
33434   $as_echo_n "(cached) " >&6
33435 else
33436   lt_cv_prog_compiler_static_works=no
33437    save_LDFLAGS="$LDFLAGS"
33438    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
33439    echo "$lt_simple_link_test_code" > conftest.$ac_ext
33440    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
33441      # The linker can only warn and ignore the option if not recognized
33442      # So say no if there are warnings
33443      if test -s conftest.err; then
33444        # Append any errors to the config.log.
33445        cat conftest.err 1>&5
33446        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
33447        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
33448        if diff conftest.exp conftest.er2 >/dev/null; then
33449          lt_cv_prog_compiler_static_works=yes
33450        fi
33451      else
33452        lt_cv_prog_compiler_static_works=yes
33453      fi
33454    fi
33455    $RM -r conftest*
33456    LDFLAGS="$save_LDFLAGS"
33457
33458 fi
33459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
33460 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
33461
33462 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
33463     :
33464 else
33465     lt_prog_compiler_static=
33466 fi
33467
33468
33469
33470
33471
33472
33473
33474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
33475 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
33476 if ${lt_cv_prog_compiler_c_o+:} false; then :
33477   $as_echo_n "(cached) " >&6
33478 else
33479   lt_cv_prog_compiler_c_o=no
33480    $RM -r conftest 2>/dev/null
33481    mkdir conftest
33482    cd conftest
33483    mkdir out
33484    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33485
33486    lt_compiler_flag="-o out/conftest2.$ac_objext"
33487    # Insert the option either (1) after the last *FLAGS variable, or
33488    # (2) before a word containing "conftest.", or (3) at the end.
33489    # Note that $ac_compile itself does not contain backslashes and begins
33490    # with a dollar sign (not a hyphen), so the echo should work correctly.
33491    lt_compile=`echo "$ac_compile" | $SED \
33492    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33493    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33494    -e 's:$: $lt_compiler_flag:'`
33495    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33496    (eval "$lt_compile" 2>out/conftest.err)
33497    ac_status=$?
33498    cat out/conftest.err >&5
33499    echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500    if (exit $ac_status) && test -s out/conftest2.$ac_objext
33501    then
33502      # The compiler can only warn and ignore the option if not recognized
33503      # So say no if there are warnings
33504      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
33505      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
33506      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
33507        lt_cv_prog_compiler_c_o=yes
33508      fi
33509    fi
33510    chmod u+w . 2>&5
33511    $RM conftest*
33512    # SGI C++ compiler will create directory out/ii_files/ for
33513    # template instantiation
33514    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
33515    $RM out/* && rmdir out
33516    cd ..
33517    $RM -r conftest
33518    $RM conftest*
33519
33520 fi
33521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
33522 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
33523
33524
33525
33526
33527
33528
33529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
33530 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
33531 if ${lt_cv_prog_compiler_c_o+:} false; then :
33532   $as_echo_n "(cached) " >&6
33533 else
33534   lt_cv_prog_compiler_c_o=no
33535    $RM -r conftest 2>/dev/null
33536    mkdir conftest
33537    cd conftest
33538    mkdir out
33539    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
33540
33541    lt_compiler_flag="-o out/conftest2.$ac_objext"
33542    # Insert the option either (1) after the last *FLAGS variable, or
33543    # (2) before a word containing "conftest.", or (3) at the end.
33544    # Note that $ac_compile itself does not contain backslashes and begins
33545    # with a dollar sign (not a hyphen), so the echo should work correctly.
33546    lt_compile=`echo "$ac_compile" | $SED \
33547    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
33548    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
33549    -e 's:$: $lt_compiler_flag:'`
33550    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
33551    (eval "$lt_compile" 2>out/conftest.err)
33552    ac_status=$?
33553    cat out/conftest.err >&5
33554    echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555    if (exit $ac_status) && test -s out/conftest2.$ac_objext
33556    then
33557      # The compiler can only warn and ignore the option if not recognized
33558      # So say no if there are warnings
33559      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
33560      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
33561      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
33562        lt_cv_prog_compiler_c_o=yes
33563      fi
33564    fi
33565    chmod u+w . 2>&5
33566    $RM conftest*
33567    # SGI C++ compiler will create directory out/ii_files/ for
33568    # template instantiation
33569    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
33570    $RM out/* && rmdir out
33571    cd ..
33572    $RM -r conftest
33573    $RM conftest*
33574
33575 fi
33576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
33577 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
33578
33579
33580
33581
33582 hard_links="nottested"
33583 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
33584   # do not overwrite the value of need_locks provided by the user
33585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
33586 $as_echo_n "checking if we can lock with hard links... " >&6; }
33587   hard_links=yes
33588   $RM conftest*
33589   ln conftest.a conftest.b 2>/dev/null && hard_links=no
33590   touch conftest.a
33591   ln conftest.a conftest.b 2>&5 || hard_links=no
33592   ln conftest.a conftest.b 2>/dev/null && hard_links=no
33593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
33594 $as_echo "$hard_links" >&6; }
33595   if test "$hard_links" = no; then
33596     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
33597 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
33598     need_locks=warn
33599   fi
33600 else
33601   need_locks=no
33602 fi
33603
33604
33605
33606
33607
33608
33609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
33610 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
33611
33612   runpath_var=
33613   allow_undefined_flag=
33614   always_export_symbols=no
33615   archive_cmds=
33616   archive_expsym_cmds=
33617   compiler_needs_object=no
33618   enable_shared_with_static_runtimes=no
33619   export_dynamic_flag_spec=
33620   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
33621   hardcode_automatic=no
33622   hardcode_direct=no
33623   hardcode_direct_absolute=no
33624   hardcode_libdir_flag_spec=
33625   hardcode_libdir_flag_spec_ld=
33626   hardcode_libdir_separator=
33627   hardcode_minus_L=no
33628   hardcode_shlibpath_var=unsupported
33629   inherit_rpath=no
33630   link_all_deplibs=unknown
33631   module_cmds=
33632   module_expsym_cmds=
33633   old_archive_from_new_cmds=
33634   old_archive_from_expsyms_cmds=
33635   thread_safe_flag_spec=
33636   whole_archive_flag_spec=
33637   # include_expsyms should be a list of space-separated symbols to be *always*
33638   # included in the symbol list
33639   include_expsyms=
33640   # exclude_expsyms can be an extended regexp of symbols to exclude
33641   # it will be wrapped by ` (' and `)$', so one must not match beginning or
33642   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
33643   # as well as any symbol that contains `d'.
33644   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
33645   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
33646   # platforms (ab)use it in PIC code, but their linkers get confused if
33647   # the symbol is explicitly referenced.  Since portable code cannot
33648   # rely on this symbol name, it's probably fine to never include it in
33649   # preloaded symbol tables.
33650   # Exclude shared library initialization/finalization symbols.
33651   extract_expsyms_cmds=
33652
33653   case $host_os in
33654   cygwin* | mingw* | pw32* | cegcc*)
33655     # FIXME: the MSVC++ port hasn't been tested in a loooong time
33656     # When not using gcc, we currently assume that we are using
33657     # Microsoft Visual C++.
33658     if test "$GCC" != yes; then
33659       with_gnu_ld=no
33660     fi
33661     ;;
33662   interix*)
33663     # we just hope/assume this is gcc and not c89 (= MSVC++)
33664     with_gnu_ld=yes
33665     ;;
33666   openbsd*)
33667     with_gnu_ld=no
33668     ;;
33669   esac
33670
33671   ld_shlibs=yes
33672
33673   # On some targets, GNU ld is compatible enough with the native linker
33674   # that we're better off using the native interface for both.
33675   lt_use_gnu_ld_interface=no
33676   if test "$with_gnu_ld" = yes; then
33677     case $host_os in
33678       aix*)
33679         # The AIX port of GNU ld has always aspired to compatibility
33680         # with the native linker.  However, as the warning in the GNU ld
33681         # block says, versions before 2.19.5* couldn't really create working
33682         # shared libraries, regardless of the interface used.
33683         case `$LD -v 2>&1` in
33684           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
33685           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
33686           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
33687           *)
33688             lt_use_gnu_ld_interface=yes
33689             ;;
33690         esac
33691         ;;
33692       *)
33693         lt_use_gnu_ld_interface=yes
33694         ;;
33695     esac
33696   fi
33697
33698   if test "$lt_use_gnu_ld_interface" = yes; then
33699     # If archive_cmds runs LD, not CC, wlarc should be empty
33700     wlarc='${wl}'
33701
33702     # Set some defaults for GNU ld with shared library support. These
33703     # are reset later if shared libraries are not supported. Putting them
33704     # here allows them to be overridden if necessary.
33705     runpath_var=LD_RUN_PATH
33706     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
33707     export_dynamic_flag_spec='${wl}--export-dynamic'
33708     # ancient GNU ld didn't support --whole-archive et. al.
33709     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
33710       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
33711     else
33712       whole_archive_flag_spec=
33713     fi
33714     supports_anon_versioning=no
33715     case `$LD -v 2>&1` in
33716       *GNU\ gold*) supports_anon_versioning=yes ;;
33717       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
33718       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
33719       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
33720       *\ 2.11.*) ;; # other 2.11 versions
33721       *) supports_anon_versioning=yes ;;
33722     esac
33723
33724     # See if GNU ld supports shared libraries.
33725     case $host_os in
33726     aix[3-9]*)
33727       # On AIX/PPC, the GNU linker is very broken
33728       if test "$host_cpu" != ia64; then
33729         ld_shlibs=no
33730         cat <<_LT_EOF 1>&2
33731
33732 *** Warning: the GNU linker, at least up to release 2.19, is reported
33733 *** to be unable to reliably create shared libraries on AIX.
33734 *** Therefore, libtool is disabling shared libraries support.  If you
33735 *** really care for shared libraries, you may want to install binutils
33736 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
33737 *** You will then need to restart the configuration process.
33738
33739 _LT_EOF
33740       fi
33741       ;;
33742
33743     amigaos*)
33744       case $host_cpu in
33745       powerpc)
33746             # see comment about AmigaOS4 .so support
33747             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33748             archive_expsym_cmds=''
33749         ;;
33750       m68k)
33751             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)'
33752             hardcode_libdir_flag_spec='-L$libdir'
33753             hardcode_minus_L=yes
33754         ;;
33755       esac
33756       ;;
33757
33758     beos*)
33759       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33760         allow_undefined_flag=unsupported
33761         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
33762         # support --undefined.  This deserves some investigation.  FIXME
33763         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33764       else
33765         ld_shlibs=no
33766       fi
33767       ;;
33768
33769     cygwin* | mingw* | pw32* | cegcc*)
33770       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
33771       # as there is no search path for DLLs.
33772       hardcode_libdir_flag_spec='-L$libdir'
33773       export_dynamic_flag_spec='${wl}--export-all-symbols'
33774       allow_undefined_flag=unsupported
33775       always_export_symbols=no
33776       enable_shared_with_static_runtimes=yes
33777       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'
33778       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
33779
33780       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
33781         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
33782         # If the export-symbols file already is a .def file (1st line
33783         # is EXPORTS), use it as is; otherwise, prepend...
33784         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
33785           cp $export_symbols $output_objdir/$soname.def;
33786         else
33787           echo EXPORTS > $output_objdir/$soname.def;
33788           cat $export_symbols >> $output_objdir/$soname.def;
33789         fi~
33790         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
33791       else
33792         ld_shlibs=no
33793       fi
33794       ;;
33795
33796     haiku*)
33797       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33798       link_all_deplibs=yes
33799       ;;
33800
33801     interix[3-9]*)
33802       hardcode_direct=no
33803       hardcode_shlibpath_var=no
33804       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
33805       export_dynamic_flag_spec='${wl}-E'
33806       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
33807       # Instead, shared libraries are loaded at an image base (0x10000000 by
33808       # default) and relocated if they conflict, which is a slow very memory
33809       # consuming and fragmenting process.  To avoid this, we pick a random,
33810       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
33811       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
33812       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
33813       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'
33814       ;;
33815
33816     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
33817       tmp_diet=no
33818       if test "$host_os" = linux-dietlibc; then
33819         case $cc_basename in
33820           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
33821         esac
33822       fi
33823       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
33824          && test "$tmp_diet" = no
33825       then
33826         tmp_addflag=' $pic_flag'
33827         tmp_sharedflag='-shared'
33828         case $cc_basename,$host_cpu in
33829         pgcc*)                          # Portland Group C compiler
33830           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'
33831           tmp_addflag=' $pic_flag'
33832           ;;
33833         pgf77* | pgf90* | pgf95* | pgfortran*)
33834                                         # Portland Group f77 and f90 compilers
33835           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'
33836           tmp_addflag=' $pic_flag -Mnomain' ;;
33837         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
33838           tmp_addflag=' -i_dynamic' ;;
33839         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
33840           tmp_addflag=' -i_dynamic -nofor_main' ;;
33841         ifc* | ifort*)                  # Intel Fortran compiler
33842           tmp_addflag=' -nofor_main' ;;
33843         lf95*)                          # Lahey Fortran 8.1
33844           whole_archive_flag_spec=
33845           tmp_sharedflag='--shared' ;;
33846         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
33847           tmp_sharedflag='-qmkshrobj'
33848           tmp_addflag= ;;
33849         nvcc*)  # Cuda Compiler Driver 2.2
33850           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'
33851           compiler_needs_object=yes
33852           ;;
33853         esac
33854         case `$CC -V 2>&1 | sed 5q` in
33855         *Sun\ C*)                       # Sun C 5.9
33856           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'
33857           compiler_needs_object=yes
33858           tmp_sharedflag='-G' ;;
33859         *Sun\ F*)                       # Sun Fortran 8.3
33860           tmp_sharedflag='-G' ;;
33861         esac
33862         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33863
33864         if test "x$supports_anon_versioning" = xyes; then
33865           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
33866             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
33867             echo "local: *; };" >> $output_objdir/$libname.ver~
33868             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
33869         fi
33870
33871         case $cc_basename in
33872         xlf* | bgf* | bgxlf* | mpixlf*)
33873           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
33874           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
33875           hardcode_libdir_flag_spec=
33876           hardcode_libdir_flag_spec_ld='-rpath $libdir'
33877           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
33878           if test "x$supports_anon_versioning" = xyes; then
33879             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
33880               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
33881               echo "local: *; };" >> $output_objdir/$libname.ver~
33882               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
33883           fi
33884           ;;
33885         esac
33886       else
33887         ld_shlibs=no
33888       fi
33889       ;;
33890
33891     netbsd*)
33892       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
33893         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
33894         wlarc=
33895       else
33896         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33897         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33898       fi
33899       ;;
33900
33901     solaris*)
33902       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
33903         ld_shlibs=no
33904         cat <<_LT_EOF 1>&2
33905
33906 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
33907 *** create shared libraries on Solaris systems.  Therefore, libtool
33908 *** is disabling shared libraries support.  We urge you to upgrade GNU
33909 *** binutils to release 2.9.1 or newer.  Another option is to modify
33910 *** your PATH or compiler configuration so that the native linker is
33911 *** used, and then restart.
33912
33913 _LT_EOF
33914       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33915         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33916         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33917       else
33918         ld_shlibs=no
33919       fi
33920       ;;
33921
33922     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
33923       case `$LD -v 2>&1` in
33924         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
33925         ld_shlibs=no
33926         cat <<_LT_EOF 1>&2
33927
33928 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
33929 *** reliably create shared libraries on SCO systems.  Therefore, libtool
33930 *** is disabling shared libraries support.  We urge you to upgrade GNU
33931 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
33932 *** your PATH or compiler configuration so that the native linker is
33933 *** used, and then restart.
33934
33935 _LT_EOF
33936         ;;
33937         *)
33938           # For security reasons, it is highly recommended that you always
33939           # use absolute paths for naming shared libraries, and exclude the
33940           # DT_RUNPATH tag from executables and libraries.  But doing so
33941           # requires that you compile everything twice, which is a pain.
33942           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33943             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
33944             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33945             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33946           else
33947             ld_shlibs=no
33948           fi
33949         ;;
33950       esac
33951       ;;
33952
33953     sunos4*)
33954       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
33955       wlarc=
33956       hardcode_direct=yes
33957       hardcode_shlibpath_var=no
33958       ;;
33959
33960     *)
33961       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
33962         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33963         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33964       else
33965         ld_shlibs=no
33966       fi
33967       ;;
33968     esac
33969
33970     if test "$ld_shlibs" = no; then
33971       runpath_var=
33972       hardcode_libdir_flag_spec=
33973       export_dynamic_flag_spec=
33974       whole_archive_flag_spec=
33975     fi
33976   else
33977     # PORTME fill in a description of your system's linker (not GNU ld)
33978     case $host_os in
33979     aix3*)
33980       allow_undefined_flag=unsupported
33981       always_export_symbols=yes
33982       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'
33983       # Note: this linker hardcodes the directories in LIBPATH if there
33984       # are no directories specified by -L.
33985       hardcode_minus_L=yes
33986       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
33987         # Neither direct hardcoding nor static linking is supported with a
33988         # broken collect2.
33989         hardcode_direct=unsupported
33990       fi
33991       ;;
33992
33993     aix[4-9]*)
33994       if test "$host_cpu" = ia64; then
33995         # On IA64, the linker does run time linking by default, so we don't
33996         # have to do anything special.
33997         aix_use_runtimelinking=no
33998         exp_sym_flag='-Bexport'
33999         no_entry_flag=""
34000       else
34001         # If we're using GNU nm, then we don't want the "-C" option.
34002         # -C means demangle to AIX nm, but means don't demangle with GNU nm
34003         # Also, AIX nm treats weak defined symbols like other global
34004         # defined symbols, whereas GNU nm marks them as "W".
34005         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
34006           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'
34007         else
34008           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'
34009         fi
34010         aix_use_runtimelinking=no
34011
34012         # Test if we are trying to use run time linking or normal
34013         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
34014         # need to do runtime linking.
34015         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
34016           for ld_flag in $LDFLAGS; do
34017           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
34018             aix_use_runtimelinking=yes
34019             break
34020           fi
34021           done
34022           ;;
34023         esac
34024
34025         exp_sym_flag='-bexport'
34026         no_entry_flag='-bnoentry'
34027       fi
34028
34029       # When large executables or shared objects are built, AIX ld can
34030       # have problems creating the table of contents.  If linking a library
34031       # or program results in "error TOC overflow" add -mminimal-toc to
34032       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
34033       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
34034
34035       archive_cmds=''
34036       hardcode_direct=yes
34037       hardcode_direct_absolute=yes
34038       hardcode_libdir_separator=':'
34039       link_all_deplibs=yes
34040       file_list_spec='${wl}-f,'
34041
34042       if test "$GCC" = yes; then
34043         case $host_os in aix4.[012]|aix4.[012].*)
34044         # We only want to do this on AIX 4.2 and lower, the check
34045         # below for broken collect2 doesn't work under 4.3+
34046           collect2name=`${CC} -print-prog-name=collect2`
34047           if test -f "$collect2name" &&
34048            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
34049           then
34050           # We have reworked collect2
34051           :
34052           else
34053           # We have old collect2
34054           hardcode_direct=unsupported
34055           # It fails to find uninstalled libraries when the uninstalled
34056           # path is not listed in the libpath.  Setting hardcode_minus_L
34057           # to unsupported forces relinking
34058           hardcode_minus_L=yes
34059           hardcode_libdir_flag_spec='-L$libdir'
34060           hardcode_libdir_separator=
34061           fi
34062           ;;
34063         esac
34064         shared_flag='-shared'
34065         if test "$aix_use_runtimelinking" = yes; then
34066           shared_flag="$shared_flag "'${wl}-G'
34067         fi
34068       else
34069         # not using gcc
34070         if test "$host_cpu" = ia64; then
34071         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
34072         # chokes on -Wl,-G. The following line is correct:
34073           shared_flag='-G'
34074         else
34075           if test "$aix_use_runtimelinking" = yes; then
34076             shared_flag='${wl}-G'
34077           else
34078             shared_flag='${wl}-bM:SRE'
34079           fi
34080         fi
34081       fi
34082
34083       export_dynamic_flag_spec='${wl}-bexpall'
34084       # It seems that -bexpall does not export symbols beginning with
34085       # underscore (_), so it is better to generate a list of symbols to export.
34086       always_export_symbols=yes
34087       if test "$aix_use_runtimelinking" = yes; then
34088         # Warning - without using the other runtime loading flags (-brtl),
34089         # -berok will link without error, but may produce a broken library.
34090         allow_undefined_flag='-berok'
34091         # Determine the default libpath from the value encoded in an
34092         # empty executable.
34093         if test "${lt_cv_aix_libpath+set}" = set; then
34094   aix_libpath=$lt_cv_aix_libpath
34095 else
34096   if ${lt_cv_aix_libpath_+:} false; then :
34097   $as_echo_n "(cached) " >&6
34098 else
34099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34100 /* end confdefs.h.  */
34101
34102 int
34103 main ()
34104 {
34105
34106   ;
34107   return 0;
34108 }
34109 _ACEOF
34110 if ac_fn_c_try_link "$LINENO"; then :
34111
34112   lt_aix_libpath_sed='
34113       /Import File Strings/,/^$/ {
34114           /^0/ {
34115               s/^0  *\([^ ]*\) *$/\1/
34116               p
34117           }
34118       }'
34119   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
34120   # Check for a 64-bit object if we didn't find anything.
34121   if test -z "$lt_cv_aix_libpath_"; then
34122     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
34123   fi
34124 fi
34125 rm -f core conftest.err conftest.$ac_objext \
34126     conftest$ac_exeext conftest.$ac_ext
34127   if test -z "$lt_cv_aix_libpath_"; then
34128     lt_cv_aix_libpath_="/usr/lib:/lib"
34129   fi
34130
34131 fi
34132
34133   aix_libpath=$lt_cv_aix_libpath_
34134 fi
34135
34136         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
34137         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"
34138       else
34139         if test "$host_cpu" = ia64; then
34140           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
34141           allow_undefined_flag="-z nodefs"
34142           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"
34143         else
34144          # Determine the default libpath from the value encoded in an
34145          # empty executable.
34146          if test "${lt_cv_aix_libpath+set}" = set; then
34147   aix_libpath=$lt_cv_aix_libpath
34148 else
34149   if ${lt_cv_aix_libpath_+:} false; then :
34150   $as_echo_n "(cached) " >&6
34151 else
34152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34153 /* end confdefs.h.  */
34154
34155 int
34156 main ()
34157 {
34158
34159   ;
34160   return 0;
34161 }
34162 _ACEOF
34163 if ac_fn_c_try_link "$LINENO"; then :
34164
34165   lt_aix_libpath_sed='
34166       /Import File Strings/,/^$/ {
34167           /^0/ {
34168               s/^0  *\([^ ]*\) *$/\1/
34169               p
34170           }
34171       }'
34172   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
34173   # Check for a 64-bit object if we didn't find anything.
34174   if test -z "$lt_cv_aix_libpath_"; then
34175     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
34176   fi
34177 fi
34178 rm -f core conftest.err conftest.$ac_objext \
34179     conftest$ac_exeext conftest.$ac_ext
34180   if test -z "$lt_cv_aix_libpath_"; then
34181     lt_cv_aix_libpath_="/usr/lib:/lib"
34182   fi
34183
34184 fi
34185
34186   aix_libpath=$lt_cv_aix_libpath_
34187 fi
34188
34189          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
34190           # Warning - without using the other run time loading flags,
34191           # -berok will link without error, but may produce a broken library.
34192           no_undefined_flag=' ${wl}-bernotok'
34193           allow_undefined_flag=' ${wl}-berok'
34194           if test "$with_gnu_ld" = yes; then
34195             # We only use this code for GNU lds that support --whole-archive.
34196             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
34197           else
34198             # Exported symbols can be pulled into shared objects from archives
34199             whole_archive_flag_spec='$convenience'
34200           fi
34201           archive_cmds_need_lc=yes
34202           # This is similar to how AIX traditionally builds its shared libraries.
34203           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'
34204         fi
34205       fi
34206       ;;
34207
34208     amigaos*)
34209       case $host_cpu in
34210       powerpc)
34211             # see comment about AmigaOS4 .so support
34212             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
34213             archive_expsym_cmds=''
34214         ;;
34215       m68k)
34216             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)'
34217             hardcode_libdir_flag_spec='-L$libdir'
34218             hardcode_minus_L=yes
34219         ;;
34220       esac
34221       ;;
34222
34223     bsdi[45]*)
34224       export_dynamic_flag_spec=-rdynamic
34225       ;;
34226
34227     cygwin* | mingw* | pw32* | cegcc*)
34228       # When not using gcc, we currently assume that we are using
34229       # Microsoft Visual C++.
34230       # hardcode_libdir_flag_spec is actually meaningless, as there is
34231       # no search path for DLLs.
34232       case $cc_basename in
34233       cl*)
34234         # Native MSVC
34235         hardcode_libdir_flag_spec=' '
34236         allow_undefined_flag=unsupported
34237         always_export_symbols=yes
34238         file_list_spec='@'
34239         # Tell ltmain to make .lib files, not .a files.
34240         libext=lib
34241         # Tell ltmain to make .dll files, not .so files.
34242         shrext_cmds=".dll"
34243         # FIXME: Setting linknames here is a bad hack.
34244         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
34245         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
34246             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
34247           else
34248             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
34249           fi~
34250           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
34251           linknames='
34252         # The linker will not automatically build a static lib if we build a DLL.
34253         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
34254         enable_shared_with_static_runtimes=yes
34255         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
34256         # Don't use ranlib
34257         old_postinstall_cmds='chmod 644 $oldlib'
34258         postlink_cmds='lt_outputfile="@OUTPUT@"~
34259           lt_tool_outputfile="@TOOL_OUTPUT@"~
34260           case $lt_outputfile in
34261             *.exe|*.EXE) ;;
34262             *)
34263               lt_outputfile="$lt_outputfile.exe"
34264               lt_tool_outputfile="$lt_tool_outputfile.exe"
34265               ;;
34266           esac~
34267           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
34268             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
34269             $RM "$lt_outputfile.manifest";
34270           fi'
34271         ;;
34272       *)
34273         # Assume MSVC wrapper
34274         hardcode_libdir_flag_spec=' '
34275         allow_undefined_flag=unsupported
34276         # Tell ltmain to make .lib files, not .a files.
34277         libext=lib
34278         # Tell ltmain to make .dll files, not .so files.
34279         shrext_cmds=".dll"
34280         # FIXME: Setting linknames here is a bad hack.
34281         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
34282         # The linker will automatically build a .lib file if we build a DLL.
34283         old_archive_from_new_cmds='true'
34284         # FIXME: Should let the user specify the lib program.
34285         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
34286         enable_shared_with_static_runtimes=yes
34287         ;;
34288       esac
34289       ;;
34290
34291     darwin* | rhapsody*)
34292
34293
34294   archive_cmds_need_lc=no
34295   hardcode_direct=no
34296   hardcode_automatic=yes
34297   hardcode_shlibpath_var=unsupported
34298   if test "$lt_cv_ld_force_load" = "yes"; then
34299     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\"`'
34300   else
34301     whole_archive_flag_spec=''
34302   fi
34303   link_all_deplibs=yes
34304   allow_undefined_flag="$_lt_dar_allow_undefined"
34305   case $cc_basename in
34306      ifort*) _lt_dar_can_shared=yes ;;
34307      *) _lt_dar_can_shared=$GCC ;;
34308   esac
34309   if test "$_lt_dar_can_shared" = "yes"; then
34310     output_verbose_link_cmd=func_echo_all
34311     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
34312     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
34313     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}"
34314     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}"
34315
34316   else
34317   ld_shlibs=no
34318   fi
34319
34320       ;;
34321
34322     dgux*)
34323       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34324       hardcode_libdir_flag_spec='-L$libdir'
34325       hardcode_shlibpath_var=no
34326       ;;
34327
34328     freebsd1*)
34329       ld_shlibs=no
34330       ;;
34331
34332     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
34333     # support.  Future versions do this automatically, but an explicit c++rt0.o
34334     # does not break anything, and helps significantly (at the cost of a little
34335     # extra space).
34336     freebsd2.2*)
34337       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
34338       hardcode_libdir_flag_spec='-R$libdir'
34339       hardcode_direct=yes
34340       hardcode_shlibpath_var=no
34341       ;;
34342
34343     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
34344     freebsd2*)
34345       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
34346       hardcode_direct=yes
34347       hardcode_minus_L=yes
34348       hardcode_shlibpath_var=no
34349       ;;
34350
34351     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
34352     freebsd* | dragonfly*)
34353       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
34354       hardcode_libdir_flag_spec='-R$libdir'
34355       hardcode_direct=yes
34356       hardcode_shlibpath_var=no
34357       ;;
34358
34359     hpux9*)
34360       if test "$GCC" = yes; then
34361         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'
34362       else
34363         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'
34364       fi
34365       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
34366       hardcode_libdir_separator=:
34367       hardcode_direct=yes
34368
34369       # hardcode_minus_L: Not really in the search PATH,
34370       # but as the default location of the library.
34371       hardcode_minus_L=yes
34372       export_dynamic_flag_spec='${wl}-E'
34373       ;;
34374
34375     hpux10*)
34376       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
34377         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
34378       else
34379         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
34380       fi
34381       if test "$with_gnu_ld" = no; then
34382         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
34383         hardcode_libdir_flag_spec_ld='+b $libdir'
34384         hardcode_libdir_separator=:
34385         hardcode_direct=yes
34386         hardcode_direct_absolute=yes
34387         export_dynamic_flag_spec='${wl}-E'
34388         # hardcode_minus_L: Not really in the search PATH,
34389         # but as the default location of the library.
34390         hardcode_minus_L=yes
34391       fi
34392       ;;
34393
34394     hpux11*)
34395       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
34396         case $host_cpu in
34397         hppa*64*)
34398           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
34399           ;;
34400         ia64*)
34401           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
34402           ;;
34403         *)
34404           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
34405           ;;
34406         esac
34407       else
34408         case $host_cpu in
34409         hppa*64*)
34410           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
34411           ;;
34412         ia64*)
34413           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
34414           ;;
34415         *)
34416
34417           # Older versions of the 11.00 compiler do not understand -b yet
34418           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
34419           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
34420 $as_echo_n "checking if $CC understands -b... " >&6; }
34421 if ${lt_cv_prog_compiler__b+:} false; then :
34422   $as_echo_n "(cached) " >&6
34423 else
34424   lt_cv_prog_compiler__b=no
34425    save_LDFLAGS="$LDFLAGS"
34426    LDFLAGS="$LDFLAGS -b"
34427    echo "$lt_simple_link_test_code" > conftest.$ac_ext
34428    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
34429      # The linker can only warn and ignore the option if not recognized
34430      # So say no if there are warnings
34431      if test -s conftest.err; then
34432        # Append any errors to the config.log.
34433        cat conftest.err 1>&5
34434        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
34435        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
34436        if diff conftest.exp conftest.er2 >/dev/null; then
34437          lt_cv_prog_compiler__b=yes
34438        fi
34439      else
34440        lt_cv_prog_compiler__b=yes
34441      fi
34442    fi
34443    $RM -r conftest*
34444    LDFLAGS="$save_LDFLAGS"
34445
34446 fi
34447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
34448 $as_echo "$lt_cv_prog_compiler__b" >&6; }
34449
34450 if test x"$lt_cv_prog_compiler__b" = xyes; then
34451     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
34452 else
34453     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
34454 fi
34455
34456           ;;
34457         esac
34458       fi
34459       if test "$with_gnu_ld" = no; then
34460         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
34461         hardcode_libdir_separator=:
34462
34463         case $host_cpu in
34464         hppa*64*|ia64*)
34465           hardcode_direct=no
34466           hardcode_shlibpath_var=no
34467           ;;
34468         *)
34469           hardcode_direct=yes
34470           hardcode_direct_absolute=yes
34471           export_dynamic_flag_spec='${wl}-E'
34472
34473           # hardcode_minus_L: Not really in the search PATH,
34474           # but as the default location of the library.
34475           hardcode_minus_L=yes
34476           ;;
34477         esac
34478       fi
34479       ;;
34480
34481     irix5* | irix6* | nonstopux*)
34482       if test "$GCC" = yes; then
34483         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'
34484         # Try to use the -exported_symbol ld option, if it does not
34485         # work, assume that -exports_file does not work either and
34486         # implicitly export all symbols.
34487         # This should be the same for all languages, so no per-tag cache variable.
34488         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
34489 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
34490 if ${lt_cv_irix_exported_symbol+:} false; then :
34491   $as_echo_n "(cached) " >&6
34492 else
34493   save_LDFLAGS="$LDFLAGS"
34494            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
34495            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34496 /* end confdefs.h.  */
34497 int foo (void) { return 0; }
34498 _ACEOF
34499 if ac_fn_c_try_link "$LINENO"; then :
34500   lt_cv_irix_exported_symbol=yes
34501 else
34502   lt_cv_irix_exported_symbol=no
34503 fi
34504 rm -f core conftest.err conftest.$ac_objext \
34505     conftest$ac_exeext conftest.$ac_ext
34506            LDFLAGS="$save_LDFLAGS"
34507 fi
34508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
34509 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
34510         if test "$lt_cv_irix_exported_symbol" = yes; then
34511           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'
34512         fi
34513       else
34514         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'
34515         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'
34516       fi
34517       archive_cmds_need_lc='no'
34518       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34519       hardcode_libdir_separator=:
34520       inherit_rpath=yes
34521       link_all_deplibs=yes
34522       ;;
34523
34524     netbsd*)
34525       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
34526         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
34527       else
34528         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
34529       fi
34530       hardcode_libdir_flag_spec='-R$libdir'
34531       hardcode_direct=yes
34532       hardcode_shlibpath_var=no
34533       ;;
34534
34535     newsos6)
34536       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34537       hardcode_direct=yes
34538       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34539       hardcode_libdir_separator=:
34540       hardcode_shlibpath_var=no
34541       ;;
34542
34543     *nto* | *qnx*)
34544       ;;
34545
34546     openbsd*)
34547       if test -f /usr/libexec/ld.so; then
34548         hardcode_direct=yes
34549         hardcode_shlibpath_var=no
34550         hardcode_direct_absolute=yes
34551         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
34552           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
34553           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
34554           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
34555           export_dynamic_flag_spec='${wl}-E'
34556         else
34557           case $host_os in
34558            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
34559              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
34560              hardcode_libdir_flag_spec='-R$libdir'
34561              ;;
34562            *)
34563              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
34564              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
34565              ;;
34566           esac
34567         fi
34568       else
34569         ld_shlibs=no
34570       fi
34571       ;;
34572
34573     os2*)
34574       hardcode_libdir_flag_spec='-L$libdir'
34575       hardcode_minus_L=yes
34576       allow_undefined_flag=unsupported
34577       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'
34578       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
34579       ;;
34580
34581     osf3*)
34582       if test "$GCC" = yes; then
34583         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
34584         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'
34585       else
34586         allow_undefined_flag=' -expect_unresolved \*'
34587         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'
34588       fi
34589       archive_cmds_need_lc='no'
34590       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34591       hardcode_libdir_separator=:
34592       ;;
34593
34594     osf4* | osf5*)      # as osf3* with the addition of -msym flag
34595       if test "$GCC" = yes; then
34596         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
34597         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'
34598         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
34599       else
34600         allow_undefined_flag=' -expect_unresolved \*'
34601         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'
34602         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~
34603         $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'
34604
34605         # Both c and cxx compiler support -rpath directly
34606         hardcode_libdir_flag_spec='-rpath $libdir'
34607       fi
34608       archive_cmds_need_lc='no'
34609       hardcode_libdir_separator=:
34610       ;;
34611
34612     solaris*)
34613       no_undefined_flag=' -z defs'
34614       if test "$GCC" = yes; then
34615         wlarc='${wl}'
34616         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
34617         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
34618           $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'
34619       else
34620         case `$CC -V 2>&1` in
34621         *"Compilers 5.0"*)
34622           wlarc=''
34623           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
34624           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
34625           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
34626           ;;
34627         *)
34628           wlarc='${wl}'
34629           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
34630           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
34631           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
34632           ;;
34633         esac
34634       fi
34635       hardcode_libdir_flag_spec='-R$libdir'
34636       hardcode_shlibpath_var=no
34637       case $host_os in
34638       solaris2.[0-5] | solaris2.[0-5].*) ;;
34639       *)
34640         # The compiler driver will combine and reorder linker options,
34641         # but understands `-z linker_flag'.  GCC discards it without `$wl',
34642         # but is careful enough not to reorder.
34643         # Supported since Solaris 2.6 (maybe 2.5.1?)
34644         if test "$GCC" = yes; then
34645           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
34646         else
34647           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
34648         fi
34649         ;;
34650       esac
34651       link_all_deplibs=yes
34652       ;;
34653
34654     sunos4*)
34655       if test "x$host_vendor" = xsequent; then
34656         # Use $CC to link under sequent, because it throws in some extra .o
34657         # files that make .init and .fini sections work.
34658         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
34659       else
34660         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
34661       fi
34662       hardcode_libdir_flag_spec='-L$libdir'
34663       hardcode_direct=yes
34664       hardcode_minus_L=yes
34665       hardcode_shlibpath_var=no
34666       ;;
34667
34668     sysv4)
34669       case $host_vendor in
34670         sni)
34671           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34672           hardcode_direct=yes # is this really true???
34673         ;;
34674         siemens)
34675           ## LD is ld it makes a PLAMLIB
34676           ## CC just makes a GrossModule.
34677           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
34678           reload_cmds='$CC -r -o $output$reload_objs'
34679           hardcode_direct=no
34680         ;;
34681         motorola)
34682           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34683           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
34684         ;;
34685       esac
34686       runpath_var='LD_RUN_PATH'
34687       hardcode_shlibpath_var=no
34688       ;;
34689
34690     sysv4.3*)
34691       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34692       hardcode_shlibpath_var=no
34693       export_dynamic_flag_spec='-Bexport'
34694       ;;
34695
34696     sysv4*MP*)
34697       if test -d /usr/nec; then
34698         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34699         hardcode_shlibpath_var=no
34700         runpath_var=LD_RUN_PATH
34701         hardcode_runpath_var=yes
34702         ld_shlibs=yes
34703       fi
34704       ;;
34705
34706     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
34707       no_undefined_flag='${wl}-z,text'
34708       archive_cmds_need_lc=no
34709       hardcode_shlibpath_var=no
34710       runpath_var='LD_RUN_PATH'
34711
34712       if test "$GCC" = yes; then
34713         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34714         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34715       else
34716         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34717         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34718       fi
34719       ;;
34720
34721     sysv5* | sco3.2v5* | sco5v6*)
34722       # Note: We can NOT use -z defs as we might desire, because we do not
34723       # link with -lc, and that would cause any symbols used from libc to
34724       # always be unresolved, which means just about no library would
34725       # ever link correctly.  If we're not using GNU ld we use -z text
34726       # though, which does catch some bad symbols but isn't as heavy-handed
34727       # as -z defs.
34728       no_undefined_flag='${wl}-z,text'
34729       allow_undefined_flag='${wl}-z,nodefs'
34730       archive_cmds_need_lc=no
34731       hardcode_shlibpath_var=no
34732       hardcode_libdir_flag_spec='${wl}-R,$libdir'
34733       hardcode_libdir_separator=':'
34734       link_all_deplibs=yes
34735       export_dynamic_flag_spec='${wl}-Bexport'
34736       runpath_var='LD_RUN_PATH'
34737
34738       if test "$GCC" = yes; then
34739         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34740         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34741       else
34742         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34743         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
34744       fi
34745       ;;
34746
34747     uts4*)
34748       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
34749       hardcode_libdir_flag_spec='-L$libdir'
34750       hardcode_shlibpath_var=no
34751       ;;
34752
34753     *)
34754       ld_shlibs=no
34755       ;;
34756     esac
34757
34758     if test x$host_vendor = xsni; then
34759       case $host in
34760       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
34761         export_dynamic_flag_spec='${wl}-Blargedynsym'
34762         ;;
34763       esac
34764     fi
34765   fi
34766
34767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
34768 $as_echo "$ld_shlibs" >&6; }
34769 test "$ld_shlibs" = no && can_build_shared=no
34770
34771 with_gnu_ld=$with_gnu_ld
34772
34773
34774
34775
34776
34777
34778
34779
34780
34781
34782
34783
34784
34785
34786
34787 #
34788 # Do we need to explicitly link libc?
34789 #
34790 case "x$archive_cmds_need_lc" in
34791 x|xyes)
34792   # Assume -lc should be added
34793   archive_cmds_need_lc=yes
34794
34795   if test "$enable_shared" = yes && test "$GCC" = yes; then
34796     case $archive_cmds in
34797     *'~'*)
34798       # FIXME: we may have to deal with multi-command sequences.
34799       ;;
34800     '$CC '*)
34801       # Test whether the compiler implicitly links with -lc since on some
34802       # systems, -lgcc has to come before -lc. If gcc already passes -lc
34803       # to ld, don't add -lc before -lgcc.
34804       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
34805 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
34806 if ${lt_cv_archive_cmds_need_lc+:} false; then :
34807   $as_echo_n "(cached) " >&6
34808 else
34809   $RM conftest*
34810         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
34811
34812         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
34813   (eval $ac_compile) 2>&5
34814   ac_status=$?
34815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34816   test $ac_status = 0; } 2>conftest.err; then
34817           soname=conftest
34818           lib=conftest
34819           libobjs=conftest.$ac_objext
34820           deplibs=
34821           wl=$lt_prog_compiler_wl
34822           pic_flag=$lt_prog_compiler_pic
34823           compiler_flags=-v
34824           linker_flags=-v
34825           verstring=
34826           output_objdir=.
34827           libname=conftest
34828           lt_save_allow_undefined_flag=$allow_undefined_flag
34829           allow_undefined_flag=
34830           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
34831   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
34832   ac_status=$?
34833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34834   test $ac_status = 0; }
34835           then
34836             lt_cv_archive_cmds_need_lc=no
34837           else
34838             lt_cv_archive_cmds_need_lc=yes
34839           fi
34840           allow_undefined_flag=$lt_save_allow_undefined_flag
34841         else
34842           cat conftest.err 1>&5
34843         fi
34844         $RM conftest*
34845
34846 fi
34847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
34848 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
34849       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
34850       ;;
34851     esac
34852   fi
34853   ;;
34854 esac
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
35010
35011
35012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
35013 $as_echo_n "checking dynamic linker characteristics... " >&6; }
35014
35015 if test "$GCC" = yes; then
35016   case $host_os in
35017     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
35018     *) lt_awk_arg="/^libraries:/" ;;
35019   esac
35020   case $host_os in
35021     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
35022     *) lt_sed_strip_eq="s,=/,/,g" ;;
35023   esac
35024   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
35025   case $lt_search_path_spec in
35026   *\;*)
35027     # if the path contains ";" then we assume it to be the separator
35028     # otherwise default to the standard path separator (i.e. ":") - it is
35029     # assumed that no part of a normal pathname contains ";" but that should
35030     # okay in the real world where ";" in dirpaths is itself problematic.
35031     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
35032     ;;
35033   *)
35034     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
35035     ;;
35036   esac
35037   # Ok, now we have the path, separated by spaces, we can step through it
35038   # and add multilib dir if necessary.
35039   lt_tmp_lt_search_path_spec=
35040   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
35041   for lt_sys_path in $lt_search_path_spec; do
35042     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
35043       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
35044     else
35045       test -d "$lt_sys_path" && \
35046         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
35047     fi
35048   done
35049   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
35050 BEGIN {RS=" "; FS="/|\n";} {
35051   lt_foo="";
35052   lt_count=0;
35053   for (lt_i = NF; lt_i > 0; lt_i--) {
35054     if ($lt_i != "" && $lt_i != ".") {
35055       if ($lt_i == "..") {
35056         lt_count++;
35057       } else {
35058         if (lt_count == 0) {
35059           lt_foo="/" $lt_i lt_foo;
35060         } else {
35061           lt_count--;
35062         }
35063       }
35064     }
35065   }
35066   if (lt_foo != "") { lt_freq[lt_foo]++; }
35067   if (lt_freq[lt_foo] == 1) { print lt_foo; }
35068 }'`
35069   # AWK program above erroneously prepends '/' to C:/dos/paths
35070   # for these hosts.
35071   case $host_os in
35072     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
35073       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
35074   esac
35075   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
35076 else
35077   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
35078 fi
35079 library_names_spec=
35080 libname_spec='lib$name'
35081 soname_spec=
35082 shrext_cmds=".so"
35083 postinstall_cmds=
35084 postuninstall_cmds=
35085 finish_cmds=
35086 finish_eval=
35087 shlibpath_var=
35088 shlibpath_overrides_runpath=unknown
35089 version_type=none
35090 dynamic_linker="$host_os ld.so"
35091 sys_lib_dlsearch_path_spec="/lib /usr/lib"
35092 need_lib_prefix=unknown
35093 hardcode_into_libs=no
35094
35095 # when you set need_version to no, make sure it does not cause -set_version
35096 # flags to be left without arguments
35097 need_version=unknown
35098
35099 case $host_os in
35100 aix3*)
35101   version_type=linux
35102   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
35103   shlibpath_var=LIBPATH
35104
35105   # AIX 3 has no versioning support, so we append a major version to the name.
35106   soname_spec='${libname}${release}${shared_ext}$major'
35107   ;;
35108
35109 aix[4-9]*)
35110   version_type=linux
35111   need_lib_prefix=no
35112   need_version=no
35113   hardcode_into_libs=yes
35114   if test "$host_cpu" = ia64; then
35115     # AIX 5 supports IA64
35116     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
35117     shlibpath_var=LD_LIBRARY_PATH
35118   else
35119     # With GCC up to 2.95.x, collect2 would create an import file
35120     # for dependence libraries.  The import file would start with
35121     # the line `#! .'.  This would cause the generated library to
35122     # depend on `.', always an invalid library.  This was fixed in
35123     # development snapshots of GCC prior to 3.0.
35124     case $host_os in
35125       aix4 | aix4.[01] | aix4.[01].*)
35126       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
35127            echo ' yes '
35128            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
35129         :
35130       else
35131         can_build_shared=no
35132       fi
35133       ;;
35134     esac
35135     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
35136     # soname into executable. Probably we can add versioning support to
35137     # collect2, so additional links can be useful in future.
35138     if test "$aix_use_runtimelinking" = yes; then
35139       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
35140       # instead of lib<name>.a to let people know that these are not
35141       # typical AIX shared libraries.
35142       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35143     else
35144       # We preserve .a as extension for shared libraries through AIX4.2
35145       # and later when we are not doing run time linking.
35146       library_names_spec='${libname}${release}.a $libname.a'
35147       soname_spec='${libname}${release}${shared_ext}$major'
35148     fi
35149     shlibpath_var=LIBPATH
35150   fi
35151   ;;
35152
35153 amigaos*)
35154   case $host_cpu in
35155   powerpc)
35156     # Since July 2007 AmigaOS4 officially supports .so libraries.
35157     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
35158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35159     ;;
35160   m68k)
35161     library_names_spec='$libname.ixlibrary $libname.a'
35162     # Create ${libname}_ixlibrary.a entries in /sys/libs.
35163     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'
35164     ;;
35165   esac
35166   ;;
35167
35168 beos*)
35169   library_names_spec='${libname}${shared_ext}'
35170   dynamic_linker="$host_os ld.so"
35171   shlibpath_var=LIBRARY_PATH
35172   ;;
35173
35174 bsdi[45]*)
35175   version_type=linux
35176   need_version=no
35177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35178   soname_spec='${libname}${release}${shared_ext}$major'
35179   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
35180   shlibpath_var=LD_LIBRARY_PATH
35181   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
35182   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
35183   # the default ld.so.conf also contains /usr/contrib/lib and
35184   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
35185   # libtool to hard-code these into programs
35186   ;;
35187
35188 cygwin* | mingw* | pw32* | cegcc*)
35189   version_type=windows
35190   shrext_cmds=".dll"
35191   need_version=no
35192   need_lib_prefix=no
35193
35194   case $GCC,$cc_basename in
35195   yes,*)
35196     # gcc
35197     library_names_spec='$libname.dll.a'
35198     # DLL is installed to $(libdir)/../bin by postinstall_cmds
35199     postinstall_cmds='base_file=`basename \${file}`~
35200       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
35201       dldir=$destdir/`dirname \$dlpath`~
35202       test -d \$dldir || mkdir -p \$dldir~
35203       $install_prog $dir/$dlname \$dldir/$dlname~
35204       chmod a+x \$dldir/$dlname~
35205       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
35206         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
35207       fi'
35208     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
35209       dlpath=$dir/\$dldll~
35210        $RM \$dlpath'
35211     shlibpath_overrides_runpath=yes
35212
35213     case $host_os in
35214     cygwin*)
35215       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
35216       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35217
35218       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
35219       ;;
35220     mingw* | cegcc*)
35221       # MinGW DLLs use traditional 'lib' prefix
35222       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35223       ;;
35224     pw32*)
35225       # pw32 DLLs use 'pw' prefix rather than 'lib'
35226       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35227       ;;
35228     esac
35229     dynamic_linker='Win32 ld.exe'
35230     ;;
35231
35232   *,cl*)
35233     # Native MSVC
35234     libname_spec='$name'
35235     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
35236     library_names_spec='${libname}.dll.lib'
35237
35238     case $build_os in
35239     mingw*)
35240       sys_lib_search_path_spec=
35241       lt_save_ifs=$IFS
35242       IFS=';'
35243       for lt_path in $LIB
35244       do
35245         IFS=$lt_save_ifs
35246         # Let DOS variable expansion print the short 8.3 style file name.
35247         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
35248         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
35249       done
35250       IFS=$lt_save_ifs
35251       # Convert to MSYS style.
35252       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
35253       ;;
35254     cygwin*)
35255       # Convert to unix form, then to dos form, then back to unix form
35256       # but this time dos style (no spaces!) so that the unix form looks
35257       # like /cygdrive/c/PROGRA~1:/cygdr...
35258       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
35259       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
35260       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
35261       ;;
35262     *)
35263       sys_lib_search_path_spec="$LIB"
35264       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
35265         # It is most probably a Windows format PATH.
35266         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
35267       else
35268         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
35269       fi
35270       # FIXME: find the short name or the path components, as spaces are
35271       # common. (e.g. "Program Files" -> "PROGRA~1")
35272       ;;
35273     esac
35274
35275     # DLL is installed to $(libdir)/../bin by postinstall_cmds
35276     postinstall_cmds='base_file=`basename \${file}`~
35277       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
35278       dldir=$destdir/`dirname \$dlpath`~
35279       test -d \$dldir || mkdir -p \$dldir~
35280       $install_prog $dir/$dlname \$dldir/$dlname'
35281     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
35282       dlpath=$dir/\$dldll~
35283        $RM \$dlpath'
35284     shlibpath_overrides_runpath=yes
35285     dynamic_linker='Win32 link.exe'
35286     ;;
35287
35288   *)
35289     # Assume MSVC wrapper
35290     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
35291     dynamic_linker='Win32 ld.exe'
35292     ;;
35293   esac
35294   # FIXME: first we should search . and the directory the executable is in
35295   shlibpath_var=PATH
35296   ;;
35297
35298 darwin* | rhapsody*)
35299   dynamic_linker="$host_os dyld"
35300   version_type=darwin
35301   need_lib_prefix=no
35302   need_version=no
35303   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
35304   soname_spec='${libname}${release}${major}$shared_ext'
35305   shlibpath_overrides_runpath=yes
35306   shlibpath_var=DYLD_LIBRARY_PATH
35307   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
35308
35309   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
35310   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
35311   ;;
35312
35313 dgux*)
35314   version_type=linux
35315   need_lib_prefix=no
35316   need_version=no
35317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
35318   soname_spec='${libname}${release}${shared_ext}$major'
35319   shlibpath_var=LD_LIBRARY_PATH
35320   ;;
35321
35322 freebsd1*)
35323   dynamic_linker=no
35324   ;;
35325
35326 freebsd* | dragonfly*)
35327   # DragonFly does not have aout.  When/if they implement a new
35328   # versioning mechanism, adjust this.
35329   if test -x /usr/bin/objformat; then
35330     objformat=`/usr/bin/objformat`
35331   else
35332     case $host_os in
35333     freebsd[123]*) objformat=aout ;;
35334     *) objformat=elf ;;
35335     esac
35336   fi
35337   version_type=freebsd-$objformat
35338   case $version_type in
35339     freebsd-elf*)
35340       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
35341       need_version=no
35342       need_lib_prefix=no
35343       ;;
35344     freebsd-*)
35345       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
35346       need_version=yes
35347       ;;
35348   esac
35349   shlibpath_var=LD_LIBRARY_PATH
35350   case $host_os in
35351   freebsd2*)
35352     shlibpath_overrides_runpath=yes
35353     ;;
35354   freebsd3.[01]* | freebsdelf3.[01]*)
35355     shlibpath_overrides_runpath=yes
35356     hardcode_into_libs=yes
35357     ;;
35358   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
35359   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
35360     shlibpath_overrides_runpath=no
35361     hardcode_into_libs=yes
35362     ;;
35363   *) # from 4.6 on, and DragonFly
35364     shlibpath_overrides_runpath=yes
35365     hardcode_into_libs=yes
35366     ;;
35367   esac
35368   ;;
35369
35370 gnu*)
35371   version_type=linux
35372   need_lib_prefix=no
35373   need_version=no
35374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
35375   soname_spec='${libname}${release}${shared_ext}$major'
35376   shlibpath_var=LD_LIBRARY_PATH
35377   hardcode_into_libs=yes
35378   ;;
35379
35380 haiku*)
35381   version_type=linux
35382   need_lib_prefix=no
35383   need_version=no
35384   dynamic_linker="$host_os runtime_loader"
35385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
35386   soname_spec='${libname}${release}${shared_ext}$major'
35387   shlibpath_var=LIBRARY_PATH
35388   shlibpath_overrides_runpath=yes
35389   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
35390   hardcode_into_libs=yes
35391   ;;
35392
35393 hpux9* | hpux10* | hpux11*)
35394   # Give a soname corresponding to the major version so that dld.sl refuses to
35395   # link against other versions.
35396   version_type=sunos
35397   need_lib_prefix=no
35398   need_version=no
35399   case $host_cpu in
35400   ia64*)
35401     shrext_cmds='.so'
35402     hardcode_into_libs=yes
35403     dynamic_linker="$host_os dld.so"
35404     shlibpath_var=LD_LIBRARY_PATH
35405     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
35406     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35407     soname_spec='${libname}${release}${shared_ext}$major'
35408     if test "X$HPUX_IA64_MODE" = X32; then
35409       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
35410     else
35411       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
35412     fi
35413     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
35414     ;;
35415   hppa*64*)
35416     shrext_cmds='.sl'
35417     hardcode_into_libs=yes
35418     dynamic_linker="$host_os dld.sl"
35419     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
35420     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
35421     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35422     soname_spec='${libname}${release}${shared_ext}$major'
35423     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
35424     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
35425     ;;
35426   *)
35427     shrext_cmds='.sl'
35428     dynamic_linker="$host_os dld.sl"
35429     shlibpath_var=SHLIB_PATH
35430     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
35431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35432     soname_spec='${libname}${release}${shared_ext}$major'
35433     ;;
35434   esac
35435   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
35436   postinstall_cmds='chmod 555 $lib'
35437   # or fails outright, so override atomically:
35438   install_override_mode=555
35439   ;;
35440
35441 interix[3-9]*)
35442   version_type=linux
35443   need_lib_prefix=no
35444   need_version=no
35445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
35446   soname_spec='${libname}${release}${shared_ext}$major'
35447   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
35448   shlibpath_var=LD_LIBRARY_PATH
35449   shlibpath_overrides_runpath=no
35450   hardcode_into_libs=yes
35451   ;;
35452
35453 irix5* | irix6* | nonstopux*)
35454   case $host_os in
35455     nonstopux*) version_type=nonstopux ;;
35456     *)
35457         if test "$lt_cv_prog_gnu_ld" = yes; then
35458                 version_type=linux
35459         else
35460                 version_type=irix
35461         fi ;;
35462   esac
35463   need_lib_prefix=no
35464   need_version=no
35465   soname_spec='${libname}${release}${shared_ext}$major'
35466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
35467   case $host_os in
35468   irix5* | nonstopux*)
35469     libsuff= shlibsuff=
35470     ;;
35471   *)
35472     case $LD in # libtool.m4 will add one of these switches to LD
35473     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
35474       libsuff= shlibsuff= libmagic=32-bit;;
35475     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
35476       libsuff=32 shlibsuff=N32 libmagic=N32;;
35477     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
35478       libsuff=64 shlibsuff=64 libmagic=64-bit;;
35479     *) libsuff= shlibsuff= libmagic=never-match;;
35480     esac
35481     ;;
35482   esac
35483   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
35484   shlibpath_overrides_runpath=no
35485   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
35486   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
35487   hardcode_into_libs=yes
35488   ;;
35489
35490 # No shared lib support for Linux oldld, aout, or coff.
35491 linux*oldld* | linux*aout* | linux*coff*)
35492   dynamic_linker=no
35493   ;;
35494
35495 # This must be Linux ELF.
35496 linux* | k*bsd*-gnu | kopensolaris*-gnu)
35497   version_type=linux
35498   need_lib_prefix=no
35499   need_version=no
35500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35501   soname_spec='${libname}${release}${shared_ext}$major'
35502   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
35503   shlibpath_var=LD_LIBRARY_PATH
35504   shlibpath_overrides_runpath=no
35505
35506   # Some binutils ld are patched to set DT_RUNPATH
35507   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
35508   $as_echo_n "(cached) " >&6
35509 else
35510   lt_cv_shlibpath_overrides_runpath=no
35511     save_LDFLAGS=$LDFLAGS
35512     save_libdir=$libdir
35513     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
35514          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
35515     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35516 /* end confdefs.h.  */
35517
35518 int
35519 main ()
35520 {
35521
35522   ;
35523   return 0;
35524 }
35525 _ACEOF
35526 if ac_fn_c_try_link "$LINENO"; then :
35527   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
35528   lt_cv_shlibpath_overrides_runpath=yes
35529 fi
35530 fi
35531 rm -f core conftest.err conftest.$ac_objext \
35532     conftest$ac_exeext conftest.$ac_ext
35533     LDFLAGS=$save_LDFLAGS
35534     libdir=$save_libdir
35535
35536 fi
35537
35538   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
35539
35540   # This implies no fast_install, which is unacceptable.
35541   # Some rework will be needed to allow for fast_install
35542   # before this can be enabled.
35543   hardcode_into_libs=yes
35544
35545   # Add ABI-specific directories to the system library path.
35546   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
35547
35548   # Append ld.so.conf contents to the search path
35549   if test -f /etc/ld.so.conf; then
35550     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' ' '`
35551     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
35552
35553   fi
35554
35555   # We used to test for /lib/ld.so.1 and disable shared libraries on
35556   # powerpc, because MkLinux only supported shared libraries with the
35557   # GNU dynamic linker.  Since this was broken with cross compilers,
35558   # most powerpc-linux boxes support dynamic linking these days and
35559   # people can always --disable-shared, the test was removed, and we
35560   # assume the GNU/Linux dynamic linker is in use.
35561   dynamic_linker='GNU/Linux ld.so'
35562   ;;
35563
35564 netbsd*)
35565   version_type=sunos
35566   need_lib_prefix=no
35567   need_version=no
35568   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
35569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
35570     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
35571     dynamic_linker='NetBSD (a.out) ld.so'
35572   else
35573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
35574     soname_spec='${libname}${release}${shared_ext}$major'
35575     dynamic_linker='NetBSD ld.elf_so'
35576   fi
35577   shlibpath_var=LD_LIBRARY_PATH
35578   shlibpath_overrides_runpath=yes
35579   hardcode_into_libs=yes
35580   ;;
35581
35582 newsos6)
35583   version_type=linux
35584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35585   shlibpath_var=LD_LIBRARY_PATH
35586   shlibpath_overrides_runpath=yes
35587   ;;
35588
35589 *nto* | *qnx*)
35590   version_type=qnx
35591   need_lib_prefix=no
35592   need_version=no
35593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35594   soname_spec='${libname}${release}${shared_ext}$major'
35595   shlibpath_var=LD_LIBRARY_PATH
35596   shlibpath_overrides_runpath=no
35597   hardcode_into_libs=yes
35598   dynamic_linker='ldqnx.so'
35599   ;;
35600
35601 openbsd*)
35602   version_type=sunos
35603   sys_lib_dlsearch_path_spec="/usr/lib"
35604   need_lib_prefix=no
35605   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
35606   case $host_os in
35607     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
35608     *)                          need_version=no  ;;
35609   esac
35610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
35611   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
35612   shlibpath_var=LD_LIBRARY_PATH
35613   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
35614     case $host_os in
35615       openbsd2.[89] | openbsd2.[89].*)
35616         shlibpath_overrides_runpath=no
35617         ;;
35618       *)
35619         shlibpath_overrides_runpath=yes
35620         ;;
35621       esac
35622   else
35623     shlibpath_overrides_runpath=yes
35624   fi
35625   ;;
35626
35627 os2*)
35628   libname_spec='$name'
35629   shrext_cmds=".dll"
35630   need_lib_prefix=no
35631   library_names_spec='$libname${shared_ext} $libname.a'
35632   dynamic_linker='OS/2 ld.exe'
35633   shlibpath_var=LIBPATH
35634   ;;
35635
35636 osf3* | osf4* | osf5*)
35637   version_type=osf
35638   need_lib_prefix=no
35639   need_version=no
35640   soname_spec='${libname}${release}${shared_ext}$major'
35641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35642   shlibpath_var=LD_LIBRARY_PATH
35643   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
35644   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
35645   ;;
35646
35647 rdos*)
35648   dynamic_linker=no
35649   ;;
35650
35651 solaris*)
35652   version_type=linux
35653   need_lib_prefix=no
35654   need_version=no
35655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35656   soname_spec='${libname}${release}${shared_ext}$major'
35657   shlibpath_var=LD_LIBRARY_PATH
35658   shlibpath_overrides_runpath=yes
35659   hardcode_into_libs=yes
35660   # ldd complains unless libraries are executable
35661   postinstall_cmds='chmod +x $lib'
35662   ;;
35663
35664 sunos4*)
35665   version_type=sunos
35666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
35667   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
35668   shlibpath_var=LD_LIBRARY_PATH
35669   shlibpath_overrides_runpath=yes
35670   if test "$with_gnu_ld" = yes; then
35671     need_lib_prefix=no
35672   fi
35673   need_version=yes
35674   ;;
35675
35676 sysv4 | sysv4.3*)
35677   version_type=linux
35678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35679   soname_spec='${libname}${release}${shared_ext}$major'
35680   shlibpath_var=LD_LIBRARY_PATH
35681   case $host_vendor in
35682     sni)
35683       shlibpath_overrides_runpath=no
35684       need_lib_prefix=no
35685       runpath_var=LD_RUN_PATH
35686       ;;
35687     siemens)
35688       need_lib_prefix=no
35689       ;;
35690     motorola)
35691       need_lib_prefix=no
35692       need_version=no
35693       shlibpath_overrides_runpath=no
35694       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
35695       ;;
35696   esac
35697   ;;
35698
35699 sysv4*MP*)
35700   if test -d /usr/nec ;then
35701     version_type=linux
35702     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
35703     soname_spec='$libname${shared_ext}.$major'
35704     shlibpath_var=LD_LIBRARY_PATH
35705   fi
35706   ;;
35707
35708 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
35709   version_type=freebsd-elf
35710   need_lib_prefix=no
35711   need_version=no
35712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
35713   soname_spec='${libname}${release}${shared_ext}$major'
35714   shlibpath_var=LD_LIBRARY_PATH
35715   shlibpath_overrides_runpath=yes
35716   hardcode_into_libs=yes
35717   if test "$with_gnu_ld" = yes; then
35718     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
35719   else
35720     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
35721     case $host_os in
35722       sco3.2v5*)
35723         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
35724         ;;
35725     esac
35726   fi
35727   sys_lib_dlsearch_path_spec='/usr/lib'
35728   ;;
35729
35730 tpf*)
35731   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
35732   version_type=linux
35733   need_lib_prefix=no
35734   need_version=no
35735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35736   shlibpath_var=LD_LIBRARY_PATH
35737   shlibpath_overrides_runpath=no
35738   hardcode_into_libs=yes
35739   ;;
35740
35741 uts4*)
35742   version_type=linux
35743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
35744   soname_spec='${libname}${release}${shared_ext}$major'
35745   shlibpath_var=LD_LIBRARY_PATH
35746   ;;
35747
35748 *)
35749   dynamic_linker=no
35750   ;;
35751 esac
35752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
35753 $as_echo "$dynamic_linker" >&6; }
35754 test "$dynamic_linker" = no && can_build_shared=no
35755
35756 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
35757 if test "$GCC" = yes; then
35758   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
35759 fi
35760
35761 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
35762   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
35763 fi
35764 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
35765   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
35766 fi
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
35857
35858
35859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
35860 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
35861 hardcode_action=
35862 if test -n "$hardcode_libdir_flag_spec" ||
35863    test -n "$runpath_var" ||
35864    test "X$hardcode_automatic" = "Xyes" ; then
35865
35866   # We can hardcode non-existent directories.
35867   if test "$hardcode_direct" != no &&
35868      # If the only mechanism to avoid hardcoding is shlibpath_var, we
35869      # have to relink, otherwise we might link with an installed library
35870      # when we should be linking with a yet-to-be-installed one
35871      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
35872      test "$hardcode_minus_L" != no; then
35873     # Linking always hardcodes the temporary library directory.
35874     hardcode_action=relink
35875   else
35876     # We can link without hardcoding, and we can hardcode nonexisting dirs.
35877     hardcode_action=immediate
35878   fi
35879 else
35880   # We cannot hardcode anything, or else we can only hardcode existing
35881   # directories.
35882   hardcode_action=unsupported
35883 fi
35884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
35885 $as_echo "$hardcode_action" >&6; }
35886
35887 if test "$hardcode_action" = relink ||
35888    test "$inherit_rpath" = yes; then
35889   # Fast installation is not supported
35890   enable_fast_install=no
35891 elif test "$shlibpath_overrides_runpath" = yes ||
35892      test "$enable_shared" = no; then
35893   # Fast installation is not necessary
35894   enable_fast_install=needless
35895 fi
35896
35897
35898
35899
35900
35901
35902   if test "x$enable_dlopen" != xyes; then
35903   enable_dlopen=unknown
35904   enable_dlopen_self=unknown
35905   enable_dlopen_self_static=unknown
35906 else
35907   lt_cv_dlopen=no
35908   lt_cv_dlopen_libs=
35909
35910   case $host_os in
35911   beos*)
35912     lt_cv_dlopen="load_add_on"
35913     lt_cv_dlopen_libs=
35914     lt_cv_dlopen_self=yes
35915     ;;
35916
35917   mingw* | pw32* | cegcc*)
35918     lt_cv_dlopen="LoadLibrary"
35919     lt_cv_dlopen_libs=
35920     ;;
35921
35922   cygwin*)
35923     lt_cv_dlopen="dlopen"
35924     lt_cv_dlopen_libs=
35925     ;;
35926
35927   darwin*)
35928   # if libdl is installed we need to link against it
35929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
35930 $as_echo_n "checking for dlopen in -ldl... " >&6; }
35931 if ${ac_cv_lib_dl_dlopen+:} false; then :
35932   $as_echo_n "(cached) " >&6
35933 else
35934   ac_check_lib_save_LIBS=$LIBS
35935 LIBS="-ldl  $LIBS"
35936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35937 /* end confdefs.h.  */
35938
35939 /* Override any GCC internal prototype to avoid an error.
35940    Use char because int might match the return type of a GCC
35941    builtin and then its argument prototype would still apply.  */
35942 #ifdef __cplusplus
35943 extern "C"
35944 #endif
35945 char dlopen ();
35946 int
35947 main ()
35948 {
35949 return dlopen ();
35950   ;
35951   return 0;
35952 }
35953 _ACEOF
35954 if ac_fn_c_try_link "$LINENO"; then :
35955   ac_cv_lib_dl_dlopen=yes
35956 else
35957   ac_cv_lib_dl_dlopen=no
35958 fi
35959 rm -f core conftest.err conftest.$ac_objext \
35960     conftest$ac_exeext conftest.$ac_ext
35961 LIBS=$ac_check_lib_save_LIBS
35962 fi
35963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
35964 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
35965 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
35966   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
35967 else
35968
35969     lt_cv_dlopen="dyld"
35970     lt_cv_dlopen_libs=
35971     lt_cv_dlopen_self=yes
35972
35973 fi
35974
35975     ;;
35976
35977   *)
35978     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
35979 if test "x$ac_cv_func_shl_load" = xyes; then :
35980   lt_cv_dlopen="shl_load"
35981 else
35982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
35983 $as_echo_n "checking for shl_load in -ldld... " >&6; }
35984 if ${ac_cv_lib_dld_shl_load+:} false; then :
35985   $as_echo_n "(cached) " >&6
35986 else
35987   ac_check_lib_save_LIBS=$LIBS
35988 LIBS="-ldld  $LIBS"
35989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35990 /* end confdefs.h.  */
35991
35992 /* Override any GCC internal prototype to avoid an error.
35993    Use char because int might match the return type of a GCC
35994    builtin and then its argument prototype would still apply.  */
35995 #ifdef __cplusplus
35996 extern "C"
35997 #endif
35998 char shl_load ();
35999 int
36000 main ()
36001 {
36002 return shl_load ();
36003   ;
36004   return 0;
36005 }
36006 _ACEOF
36007 if ac_fn_c_try_link "$LINENO"; then :
36008   ac_cv_lib_dld_shl_load=yes
36009 else
36010   ac_cv_lib_dld_shl_load=no
36011 fi
36012 rm -f core conftest.err conftest.$ac_objext \
36013     conftest$ac_exeext conftest.$ac_ext
36014 LIBS=$ac_check_lib_save_LIBS
36015 fi
36016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
36017 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
36018 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
36019   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
36020 else
36021   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
36022 if test "x$ac_cv_func_dlopen" = xyes; then :
36023   lt_cv_dlopen="dlopen"
36024 else
36025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
36026 $as_echo_n "checking for dlopen in -ldl... " >&6; }
36027 if ${ac_cv_lib_dl_dlopen+:} false; then :
36028   $as_echo_n "(cached) " >&6
36029 else
36030   ac_check_lib_save_LIBS=$LIBS
36031 LIBS="-ldl  $LIBS"
36032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36033 /* end confdefs.h.  */
36034
36035 /* Override any GCC internal prototype to avoid an error.
36036    Use char because int might match the return type of a GCC
36037    builtin and then its argument prototype would still apply.  */
36038 #ifdef __cplusplus
36039 extern "C"
36040 #endif
36041 char dlopen ();
36042 int
36043 main ()
36044 {
36045 return dlopen ();
36046   ;
36047   return 0;
36048 }
36049 _ACEOF
36050 if ac_fn_c_try_link "$LINENO"; then :
36051   ac_cv_lib_dl_dlopen=yes
36052 else
36053   ac_cv_lib_dl_dlopen=no
36054 fi
36055 rm -f core conftest.err conftest.$ac_objext \
36056     conftest$ac_exeext conftest.$ac_ext
36057 LIBS=$ac_check_lib_save_LIBS
36058 fi
36059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
36060 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
36061 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
36062   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
36063 else
36064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
36065 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
36066 if ${ac_cv_lib_svld_dlopen+:} false; then :
36067   $as_echo_n "(cached) " >&6
36068 else
36069   ac_check_lib_save_LIBS=$LIBS
36070 LIBS="-lsvld  $LIBS"
36071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36072 /* end confdefs.h.  */
36073
36074 /* Override any GCC internal prototype to avoid an error.
36075    Use char because int might match the return type of a GCC
36076    builtin and then its argument prototype would still apply.  */
36077 #ifdef __cplusplus
36078 extern "C"
36079 #endif
36080 char dlopen ();
36081 int
36082 main ()
36083 {
36084 return dlopen ();
36085   ;
36086   return 0;
36087 }
36088 _ACEOF
36089 if ac_fn_c_try_link "$LINENO"; then :
36090   ac_cv_lib_svld_dlopen=yes
36091 else
36092   ac_cv_lib_svld_dlopen=no
36093 fi
36094 rm -f core conftest.err conftest.$ac_objext \
36095     conftest$ac_exeext conftest.$ac_ext
36096 LIBS=$ac_check_lib_save_LIBS
36097 fi
36098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
36099 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
36100 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
36101   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
36102 else
36103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
36104 $as_echo_n "checking for dld_link in -ldld... " >&6; }
36105 if ${ac_cv_lib_dld_dld_link+:} false; then :
36106   $as_echo_n "(cached) " >&6
36107 else
36108   ac_check_lib_save_LIBS=$LIBS
36109 LIBS="-ldld  $LIBS"
36110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36111 /* end confdefs.h.  */
36112
36113 /* Override any GCC internal prototype to avoid an error.
36114    Use char because int might match the return type of a GCC
36115    builtin and then its argument prototype would still apply.  */
36116 #ifdef __cplusplus
36117 extern "C"
36118 #endif
36119 char dld_link ();
36120 int
36121 main ()
36122 {
36123 return dld_link ();
36124   ;
36125   return 0;
36126 }
36127 _ACEOF
36128 if ac_fn_c_try_link "$LINENO"; then :
36129   ac_cv_lib_dld_dld_link=yes
36130 else
36131   ac_cv_lib_dld_dld_link=no
36132 fi
36133 rm -f core conftest.err conftest.$ac_objext \
36134     conftest$ac_exeext conftest.$ac_ext
36135 LIBS=$ac_check_lib_save_LIBS
36136 fi
36137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
36138 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
36139 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
36140   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
36141 fi
36142
36143
36144 fi
36145
36146
36147 fi
36148
36149
36150 fi
36151
36152
36153 fi
36154
36155
36156 fi
36157
36158     ;;
36159   esac
36160
36161   if test "x$lt_cv_dlopen" != xno; then
36162     enable_dlopen=yes
36163   else
36164     enable_dlopen=no
36165   fi
36166
36167   case $lt_cv_dlopen in
36168   dlopen)
36169     save_CPPFLAGS="$CPPFLAGS"
36170     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
36171
36172     save_LDFLAGS="$LDFLAGS"
36173     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
36174
36175     save_LIBS="$LIBS"
36176     LIBS="$lt_cv_dlopen_libs $LIBS"
36177
36178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
36179 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
36180 if ${lt_cv_dlopen_self+:} false; then :
36181   $as_echo_n "(cached) " >&6
36182 else
36183           if test "$cross_compiling" = yes; then :
36184   lt_cv_dlopen_self=cross
36185 else
36186   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
36187   lt_status=$lt_dlunknown
36188   cat > conftest.$ac_ext <<_LT_EOF
36189 #line $LINENO "configure"
36190 #include "confdefs.h"
36191
36192 #if HAVE_DLFCN_H
36193 #include <dlfcn.h>
36194 #endif
36195
36196 #include <stdio.h>
36197
36198 #ifdef RTLD_GLOBAL
36199 #  define LT_DLGLOBAL           RTLD_GLOBAL
36200 #else
36201 #  ifdef DL_GLOBAL
36202 #    define LT_DLGLOBAL         DL_GLOBAL
36203 #  else
36204 #    define LT_DLGLOBAL         0
36205 #  endif
36206 #endif
36207
36208 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
36209    find out it does not work in some platform. */
36210 #ifndef LT_DLLAZY_OR_NOW
36211 #  ifdef RTLD_LAZY
36212 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
36213 #  else
36214 #    ifdef DL_LAZY
36215 #      define LT_DLLAZY_OR_NOW          DL_LAZY
36216 #    else
36217 #      ifdef RTLD_NOW
36218 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
36219 #      else
36220 #        ifdef DL_NOW
36221 #          define LT_DLLAZY_OR_NOW      DL_NOW
36222 #        else
36223 #          define LT_DLLAZY_OR_NOW      0
36224 #        endif
36225 #      endif
36226 #    endif
36227 #  endif
36228 #endif
36229
36230 /* When -fvisbility=hidden is used, assume the code has been annotated
36231    correspondingly for the symbols needed.  */
36232 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
36233 int fnord () __attribute__((visibility("default")));
36234 #endif
36235
36236 int fnord () { return 42; }
36237 int main ()
36238 {
36239   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
36240   int status = $lt_dlunknown;
36241
36242   if (self)
36243     {
36244       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
36245       else
36246         {
36247           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
36248           else puts (dlerror ());
36249         }
36250       /* dlclose (self); */
36251     }
36252   else
36253     puts (dlerror ());
36254
36255   return status;
36256 }
36257 _LT_EOF
36258   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
36259   (eval $ac_link) 2>&5
36260   ac_status=$?
36261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36262   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
36263     (./conftest; exit; ) >&5 2>/dev/null
36264     lt_status=$?
36265     case x$lt_status in
36266       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
36267       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
36268       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
36269     esac
36270   else :
36271     # compilation failed
36272     lt_cv_dlopen_self=no
36273   fi
36274 fi
36275 rm -fr conftest*
36276
36277
36278 fi
36279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
36280 $as_echo "$lt_cv_dlopen_self" >&6; }
36281
36282     if test "x$lt_cv_dlopen_self" = xyes; then
36283       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
36284       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
36285 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
36286 if ${lt_cv_dlopen_self_static+:} false; then :
36287   $as_echo_n "(cached) " >&6
36288 else
36289           if test "$cross_compiling" = yes; then :
36290   lt_cv_dlopen_self_static=cross
36291 else
36292   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
36293   lt_status=$lt_dlunknown
36294   cat > conftest.$ac_ext <<_LT_EOF
36295 #line $LINENO "configure"
36296 #include "confdefs.h"
36297
36298 #if HAVE_DLFCN_H
36299 #include <dlfcn.h>
36300 #endif
36301
36302 #include <stdio.h>
36303
36304 #ifdef RTLD_GLOBAL
36305 #  define LT_DLGLOBAL           RTLD_GLOBAL
36306 #else
36307 #  ifdef DL_GLOBAL
36308 #    define LT_DLGLOBAL         DL_GLOBAL
36309 #  else
36310 #    define LT_DLGLOBAL         0
36311 #  endif
36312 #endif
36313
36314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
36315    find out it does not work in some platform. */
36316 #ifndef LT_DLLAZY_OR_NOW
36317 #  ifdef RTLD_LAZY
36318 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
36319 #  else
36320 #    ifdef DL_LAZY
36321 #      define LT_DLLAZY_OR_NOW          DL_LAZY
36322 #    else
36323 #      ifdef RTLD_NOW
36324 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
36325 #      else
36326 #        ifdef DL_NOW
36327 #          define LT_DLLAZY_OR_NOW      DL_NOW
36328 #        else
36329 #          define LT_DLLAZY_OR_NOW      0
36330 #        endif
36331 #      endif
36332 #    endif
36333 #  endif
36334 #endif
36335
36336 /* When -fvisbility=hidden is used, assume the code has been annotated
36337    correspondingly for the symbols needed.  */
36338 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
36339 int fnord () __attribute__((visibility("default")));
36340 #endif
36341
36342 int fnord () { return 42; }
36343 int main ()
36344 {
36345   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
36346   int status = $lt_dlunknown;
36347
36348   if (self)
36349     {
36350       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
36351       else
36352         {
36353           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
36354           else puts (dlerror ());
36355         }
36356       /* dlclose (self); */
36357     }
36358   else
36359     puts (dlerror ());
36360
36361   return status;
36362 }
36363 _LT_EOF
36364   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
36365   (eval $ac_link) 2>&5
36366   ac_status=$?
36367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36368   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
36369     (./conftest; exit; ) >&5 2>/dev/null
36370     lt_status=$?
36371     case x$lt_status in
36372       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
36373       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
36374       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
36375     esac
36376   else :
36377     # compilation failed
36378     lt_cv_dlopen_self_static=no
36379   fi
36380 fi
36381 rm -fr conftest*
36382
36383
36384 fi
36385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
36386 $as_echo "$lt_cv_dlopen_self_static" >&6; }
36387     fi
36388
36389     CPPFLAGS="$save_CPPFLAGS"
36390     LDFLAGS="$save_LDFLAGS"
36391     LIBS="$save_LIBS"
36392     ;;
36393   esac
36394
36395   case $lt_cv_dlopen_self in
36396   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
36397   *) enable_dlopen_self=unknown ;;
36398   esac
36399
36400   case $lt_cv_dlopen_self_static in
36401   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
36402   *) enable_dlopen_self_static=unknown ;;
36403   esac
36404 fi
36405
36406
36407
36408
36409
36410
36411
36412
36413
36414
36415
36416
36417
36418
36419
36420
36421
36422 striplib=
36423 old_striplib=
36424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
36425 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
36426 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
36427   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
36428   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
36429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36430 $as_echo "yes" >&6; }
36431 else
36432 # FIXME - insert some real tests, host_os isn't really good enough
36433   case $host_os in
36434   darwin*)
36435     if test -n "$STRIP" ; then
36436       striplib="$STRIP -x"
36437       old_striplib="$STRIP -S"
36438       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36439 $as_echo "yes" >&6; }
36440     else
36441       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36442 $as_echo "no" >&6; }
36443     fi
36444     ;;
36445   *)
36446     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36447 $as_echo "no" >&6; }
36448     ;;
36449   esac
36450 fi
36451
36452
36453
36454
36455
36456
36457
36458
36459
36460
36461
36462
36463   # Report which library types will actually be built
36464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
36465 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
36466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
36467 $as_echo "$can_build_shared" >&6; }
36468
36469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
36470 $as_echo_n "checking whether to build shared libraries... " >&6; }
36471   test "$can_build_shared" = "no" && enable_shared=no
36472
36473   # On AIX, shared libraries and static libraries use the same namespace, and
36474   # are all built from PIC.
36475   case $host_os in
36476   aix3*)
36477     test "$enable_shared" = yes && enable_static=no
36478     if test -n "$RANLIB"; then
36479       archive_cmds="$archive_cmds~\$RANLIB \$lib"
36480       postinstall_cmds='$RANLIB $lib'
36481     fi
36482     ;;
36483
36484   aix[4-9]*)
36485     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
36486       test "$enable_shared" = yes && enable_static=no
36487     fi
36488     ;;
36489   esac
36490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
36491 $as_echo "$enable_shared" >&6; }
36492
36493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
36494 $as_echo_n "checking whether to build static libraries... " >&6; }
36495   # Make sure either enable_shared or enable_static is yes.
36496   test "$enable_shared" = yes || enable_static=yes
36497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
36498 $as_echo "$enable_static" >&6; }
36499
36500
36501
36502
36503 fi
36504 ac_ext=c
36505 ac_cpp='$CPP $CPPFLAGS'
36506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36509
36510 CC="$lt_save_CC"
36511
36512
36513
36514
36515
36516
36517
36518
36519
36520
36521
36522
36523
36524         ac_config_commands="$ac_config_commands libtool"
36525
36526
36527
36528
36529 # Only expand once:
36530
36531
36532
36533
36534     # Check whether --enable-static-binary was given.
36535 if test "${enable_static_binary+set}" = set; then :
36536   enableval=$enable_static_binary;
36537             case "$enableval" in
36538             "" | y | ye | yes)
36539                 AMANDA_STATIC_LDFLAGS=-static
36540                 if test x"$enable_static" = x"no"; then
36541                         as_fn_error $? "*** --enable-static-binary is incompatible with --disable-static" "$LINENO" 5
36542                 fi
36543                 ;;
36544             *n | no)
36545                 AMANDA_STATIC_LDFLAGS=
36546                 ;;
36547             esac
36548
36549 fi
36550
36551
36552
36553
36554 #
36555 # headers
36556 #
36557 ac_header_dirent=no
36558 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
36559   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
36560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
36561 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
36562 if eval \${$as_ac_Header+:} false; then :
36563   $as_echo_n "(cached) " >&6
36564 else
36565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36566 /* end confdefs.h.  */
36567 #include <sys/types.h>
36568 #include <$ac_hdr>
36569
36570 int
36571 main ()
36572 {
36573 if ((DIR *) 0)
36574 return 0;
36575   ;
36576   return 0;
36577 }
36578 _ACEOF
36579 if ac_fn_c_try_compile "$LINENO"; then :
36580   eval "$as_ac_Header=yes"
36581 else
36582   eval "$as_ac_Header=no"
36583 fi
36584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36585 fi
36586 eval ac_res=\$$as_ac_Header
36587                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
36588 $as_echo "$ac_res" >&6; }
36589 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36590   cat >>confdefs.h <<_ACEOF
36591 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
36592 _ACEOF
36593
36594 ac_header_dirent=$ac_hdr; break
36595 fi
36596
36597 done
36598 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
36599 if test $ac_header_dirent = dirent.h; then
36600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
36601 $as_echo_n "checking for library containing opendir... " >&6; }
36602 if ${ac_cv_search_opendir+:} false; then :
36603   $as_echo_n "(cached) " >&6
36604 else
36605   ac_func_search_save_LIBS=$LIBS
36606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36607 /* end confdefs.h.  */
36608
36609 /* Override any GCC internal prototype to avoid an error.
36610    Use char because int might match the return type of a GCC
36611    builtin and then its argument prototype would still apply.  */
36612 #ifdef __cplusplus
36613 extern "C"
36614 #endif
36615 char opendir ();
36616 int
36617 main ()
36618 {
36619 return opendir ();
36620   ;
36621   return 0;
36622 }
36623 _ACEOF
36624 for ac_lib in '' dir; do
36625   if test -z "$ac_lib"; then
36626     ac_res="none required"
36627   else
36628     ac_res=-l$ac_lib
36629     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36630   fi
36631   if ac_fn_c_try_link "$LINENO"; then :
36632   ac_cv_search_opendir=$ac_res
36633 fi
36634 rm -f core conftest.err conftest.$ac_objext \
36635     conftest$ac_exeext
36636   if ${ac_cv_search_opendir+:} false; then :
36637   break
36638 fi
36639 done
36640 if ${ac_cv_search_opendir+:} false; then :
36641
36642 else
36643   ac_cv_search_opendir=no
36644 fi
36645 rm conftest.$ac_ext
36646 LIBS=$ac_func_search_save_LIBS
36647 fi
36648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
36649 $as_echo "$ac_cv_search_opendir" >&6; }
36650 ac_res=$ac_cv_search_opendir
36651 if test "$ac_res" != no; then :
36652   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36653
36654 fi
36655
36656 else
36657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
36658 $as_echo_n "checking for library containing opendir... " >&6; }
36659 if ${ac_cv_search_opendir+:} false; then :
36660   $as_echo_n "(cached) " >&6
36661 else
36662   ac_func_search_save_LIBS=$LIBS
36663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36664 /* end confdefs.h.  */
36665
36666 /* Override any GCC internal prototype to avoid an error.
36667    Use char because int might match the return type of a GCC
36668    builtin and then its argument prototype would still apply.  */
36669 #ifdef __cplusplus
36670 extern "C"
36671 #endif
36672 char opendir ();
36673 int
36674 main ()
36675 {
36676 return opendir ();
36677   ;
36678   return 0;
36679 }
36680 _ACEOF
36681 for ac_lib in '' x; do
36682   if test -z "$ac_lib"; then
36683     ac_res="none required"
36684   else
36685     ac_res=-l$ac_lib
36686     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36687   fi
36688   if ac_fn_c_try_link "$LINENO"; then :
36689   ac_cv_search_opendir=$ac_res
36690 fi
36691 rm -f core conftest.err conftest.$ac_objext \
36692     conftest$ac_exeext
36693   if ${ac_cv_search_opendir+:} false; then :
36694   break
36695 fi
36696 done
36697 if ${ac_cv_search_opendir+:} false; then :
36698
36699 else
36700   ac_cv_search_opendir=no
36701 fi
36702 rm conftest.$ac_ext
36703 LIBS=$ac_func_search_save_LIBS
36704 fi
36705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
36706 $as_echo "$ac_cv_search_opendir" >&6; }
36707 ac_res=$ac_cv_search_opendir
36708 if test "$ac_res" != no; then :
36709   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36710
36711 fi
36712
36713 fi
36714
36715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
36716 $as_echo_n "checking for ANSI C header files... " >&6; }
36717 if ${ac_cv_header_stdc+:} false; then :
36718   $as_echo_n "(cached) " >&6
36719 else
36720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36721 /* end confdefs.h.  */
36722 #include <stdlib.h>
36723 #include <stdarg.h>
36724 #include <string.h>
36725 #include <float.h>
36726
36727 int
36728 main ()
36729 {
36730
36731   ;
36732   return 0;
36733 }
36734 _ACEOF
36735 if ac_fn_c_try_compile "$LINENO"; then :
36736   ac_cv_header_stdc=yes
36737 else
36738   ac_cv_header_stdc=no
36739 fi
36740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36741
36742 if test $ac_cv_header_stdc = yes; then
36743   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
36744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36745 /* end confdefs.h.  */
36746 #include <string.h>
36747
36748 _ACEOF
36749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36750   $EGREP "memchr" >/dev/null 2>&1; then :
36751
36752 else
36753   ac_cv_header_stdc=no
36754 fi
36755 rm -f conftest*
36756
36757 fi
36758
36759 if test $ac_cv_header_stdc = yes; then
36760   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
36761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36762 /* end confdefs.h.  */
36763 #include <stdlib.h>
36764
36765 _ACEOF
36766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36767   $EGREP "free" >/dev/null 2>&1; then :
36768
36769 else
36770   ac_cv_header_stdc=no
36771 fi
36772 rm -f conftest*
36773
36774 fi
36775
36776 if test $ac_cv_header_stdc = yes; then
36777   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
36778   if test "$cross_compiling" = yes; then :
36779   :
36780 else
36781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36782 /* end confdefs.h.  */
36783 #include <ctype.h>
36784 #include <stdlib.h>
36785 #if ((' ' & 0x0FF) == 0x020)
36786 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
36787 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
36788 #else
36789 # define ISLOWER(c) \
36790                    (('a' <= (c) && (c) <= 'i') \
36791                      || ('j' <= (c) && (c) <= 'r') \
36792                      || ('s' <= (c) && (c) <= 'z'))
36793 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
36794 #endif
36795
36796 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
36797 int
36798 main ()
36799 {
36800   int i;
36801   for (i = 0; i < 256; i++)
36802     if (XOR (islower (i), ISLOWER (i))
36803         || toupper (i) != TOUPPER (i))
36804       return 2;
36805   return 0;
36806 }
36807 _ACEOF
36808 if ac_fn_c_try_run "$LINENO"; then :
36809
36810 else
36811   ac_cv_header_stdc=no
36812 fi
36813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36814   conftest.$ac_objext conftest.beam conftest.$ac_ext
36815 fi
36816
36817 fi
36818 fi
36819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
36820 $as_echo "$ac_cv_header_stdc" >&6; }
36821 if test $ac_cv_header_stdc = yes; then
36822
36823 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
36824
36825 fi
36826
36827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
36828 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
36829 if ${ac_cv_header_time+:} false; then :
36830   $as_echo_n "(cached) " >&6
36831 else
36832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36833 /* end confdefs.h.  */
36834 #include <sys/types.h>
36835 #include <sys/time.h>
36836 #include <time.h>
36837
36838 int
36839 main ()
36840 {
36841 if ((struct tm *) 0)
36842 return 0;
36843   ;
36844   return 0;
36845 }
36846 _ACEOF
36847 if ac_fn_c_try_compile "$LINENO"; then :
36848   ac_cv_header_time=yes
36849 else
36850   ac_cv_header_time=no
36851 fi
36852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36853 fi
36854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
36855 $as_echo "$ac_cv_header_time" >&6; }
36856 if test $ac_cv_header_time = yes; then
36857
36858 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
36859
36860 fi
36861
36862 for ac_header in grp.h \
36863         libc.h \
36864         libgen.h \
36865         limits.h \
36866         math.h \
36867         netinet/in.h \
36868         regex.h \
36869         stdarg.h \
36870         stdlib.h \
36871         strings.h \
36872         rpc/rpc.h \
36873         sys/file.h \
36874         sys/ioctl.h \
36875         sys/ipc.h \
36876         sys/mntent.h \
36877         sys/param.h \
36878         sys/select.h \
36879         sys/stat.h \
36880         sys/shm.h \
36881         sys/time.h \
36882         sys/types.h \
36883         sys/uio.h \
36884         syslog.h \
36885         time.h \
36886         unistd.h \
36887
36888 do :
36889   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36890 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
36891 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36892   cat >>confdefs.h <<_ACEOF
36893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36894 _ACEOF
36895
36896 fi
36897
36898 done
36899
36900
36901 $as_echo "#define HAVE_AMANDA_H 1" >>confdefs.h
36902
36903
36904 $as_echo "#define HAVE_UTIL_H 1" >>confdefs.h
36905
36906
36907
36908 $as_echo "#define USE_GETTEXT 1" >>confdefs.h
36909
36910
36911 #
36912 # Types
36913 #
36914 # The cast to long int works around a bug in the HP C Compiler
36915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36917 # This bug is HP SR number 8606223364.
36918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
36919 $as_echo_n "checking size of int... " >&6; }
36920 if ${ac_cv_sizeof_int+:} false; then :
36921   $as_echo_n "(cached) " >&6
36922 else
36923   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
36924
36925 else
36926   if test "$ac_cv_type_int" = yes; then
36927      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36929 as_fn_error 77 "cannot compute sizeof (int)
36930 See \`config.log' for more details" "$LINENO" 5; }
36931    else
36932      ac_cv_sizeof_int=0
36933    fi
36934 fi
36935
36936 fi
36937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
36938 $as_echo "$ac_cv_sizeof_int" >&6; }
36939
36940
36941
36942 cat >>confdefs.h <<_ACEOF
36943 #define SIZEOF_INT $ac_cv_sizeof_int
36944 _ACEOF
36945
36946
36947 # The cast to long int works around a bug in the HP C Compiler
36948 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36949 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36950 # This bug is HP SR number 8606223364.
36951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
36952 $as_echo_n "checking size of long... " >&6; }
36953 if ${ac_cv_sizeof_long+:} false; then :
36954   $as_echo_n "(cached) " >&6
36955 else
36956   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
36957
36958 else
36959   if test "$ac_cv_type_long" = yes; then
36960      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36962 as_fn_error 77 "cannot compute sizeof (long)
36963 See \`config.log' for more details" "$LINENO" 5; }
36964    else
36965      ac_cv_sizeof_long=0
36966    fi
36967 fi
36968
36969 fi
36970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
36971 $as_echo "$ac_cv_sizeof_long" >&6; }
36972
36973
36974
36975 cat >>confdefs.h <<_ACEOF
36976 #define SIZEOF_LONG $ac_cv_sizeof_long
36977 _ACEOF
36978
36979
36980 # The cast to long int works around a bug in the HP C Compiler
36981 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36982 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36983 # This bug is HP SR number 8606223364.
36984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
36985 $as_echo_n "checking size of long long... " >&6; }
36986 if ${ac_cv_sizeof_long_long+:} false; then :
36987   $as_echo_n "(cached) " >&6
36988 else
36989   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
36990
36991 else
36992   if test "$ac_cv_type_long_long" = yes; then
36993      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36995 as_fn_error 77 "cannot compute sizeof (long long)
36996 See \`config.log' for more details" "$LINENO" 5; }
36997    else
36998      ac_cv_sizeof_long_long=0
36999    fi
37000 fi
37001
37002 fi
37003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
37004 $as_echo "$ac_cv_sizeof_long_long" >&6; }
37005
37006
37007
37008 cat >>confdefs.h <<_ACEOF
37009 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
37010 _ACEOF
37011
37012
37013 # The cast to long int works around a bug in the HP C Compiler
37014 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37015 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37016 # This bug is HP SR number 8606223364.
37017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
37018 $as_echo_n "checking size of intmax_t... " >&6; }
37019 if ${ac_cv_sizeof_intmax_t+:} false; then :
37020   $as_echo_n "(cached) " >&6
37021 else
37022   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t"        "$ac_includes_default"; then :
37023
37024 else
37025   if test "$ac_cv_type_intmax_t" = yes; then
37026      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37028 as_fn_error 77 "cannot compute sizeof (intmax_t)
37029 See \`config.log' for more details" "$LINENO" 5; }
37030    else
37031      ac_cv_sizeof_intmax_t=0
37032    fi
37033 fi
37034
37035 fi
37036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
37037 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
37038
37039
37040
37041 cat >>confdefs.h <<_ACEOF
37042 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
37043 _ACEOF
37044
37045
37046 # The cast to long int works around a bug in the HP C Compiler
37047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37049 # This bug is HP SR number 8606223364.
37050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
37051 $as_echo_n "checking size of off_t... " >&6; }
37052 if ${ac_cv_sizeof_off_t+:} false; then :
37053   $as_echo_n "(cached) " >&6
37054 else
37055   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
37056
37057 else
37058   if test "$ac_cv_type_off_t" = yes; then
37059      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37061 as_fn_error 77 "cannot compute sizeof (off_t)
37062 See \`config.log' for more details" "$LINENO" 5; }
37063    else
37064      ac_cv_sizeof_off_t=0
37065    fi
37066 fi
37067
37068 fi
37069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
37070 $as_echo "$ac_cv_sizeof_off_t" >&6; }
37071
37072
37073
37074 cat >>confdefs.h <<_ACEOF
37075 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
37076 _ACEOF
37077
37078
37079 # The cast to long int works around a bug in the HP C Compiler
37080 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37081 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37082 # This bug is HP SR number 8606223364.
37083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
37084 $as_echo_n "checking size of size_t... " >&6; }
37085 if ${ac_cv_sizeof_size_t+:} false; then :
37086   $as_echo_n "(cached) " >&6
37087 else
37088   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
37089
37090 else
37091   if test "$ac_cv_type_size_t" = yes; then
37092      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37094 as_fn_error 77 "cannot compute sizeof (size_t)
37095 See \`config.log' for more details" "$LINENO" 5; }
37096    else
37097      ac_cv_sizeof_size_t=0
37098    fi
37099 fi
37100
37101 fi
37102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
37103 $as_echo "$ac_cv_sizeof_size_t" >&6; }
37104
37105
37106
37107 cat >>confdefs.h <<_ACEOF
37108 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
37109 _ACEOF
37110
37111
37112 # The cast to long int works around a bug in the HP C Compiler
37113 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37114 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37115 # This bug is HP SR number 8606223364.
37116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
37117 $as_echo_n "checking size of ssize_t... " >&6; }
37118 if ${ac_cv_sizeof_ssize_t+:} false; then :
37119   $as_echo_n "(cached) " >&6
37120 else
37121   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
37122
37123 else
37124   if test "$ac_cv_type_ssize_t" = yes; then
37125      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37127 as_fn_error 77 "cannot compute sizeof (ssize_t)
37128 See \`config.log' for more details" "$LINENO" 5; }
37129    else
37130      ac_cv_sizeof_ssize_t=0
37131    fi
37132 fi
37133
37134 fi
37135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
37136 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
37137
37138
37139
37140 cat >>confdefs.h <<_ACEOF
37141 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
37142 _ACEOF
37143
37144
37145 # The cast to long int works around a bug in the HP C Compiler
37146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37147 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37148 # This bug is HP SR number 8606223364.
37149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
37150 $as_echo_n "checking size of time_t... " >&6; }
37151 if ${ac_cv_sizeof_time_t+:} false; then :
37152   $as_echo_n "(cached) " >&6
37153 else
37154   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
37155
37156 else
37157   if test "$ac_cv_type_time_t" = yes; then
37158      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37160 as_fn_error 77 "cannot compute sizeof (time_t)
37161 See \`config.log' for more details" "$LINENO" 5; }
37162    else
37163      ac_cv_sizeof_time_t=0
37164    fi
37165 fi
37166
37167 fi
37168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
37169 $as_echo "$ac_cv_sizeof_time_t" >&6; }
37170
37171
37172
37173 cat >>confdefs.h <<_ACEOF
37174 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
37175 _ACEOF
37176
37177
37178 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
37179 if test "x$ac_cv_type_off_t" = xyes; then :
37180
37181 else
37182
37183 cat >>confdefs.h <<_ACEOF
37184 #define off_t long int
37185 _ACEOF
37186
37187 fi
37188
37189 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
37190 if test "x$ac_cv_type_pid_t" = xyes; then :
37191
37192 else
37193
37194 cat >>confdefs.h <<_ACEOF
37195 #define pid_t int
37196 _ACEOF
37197
37198 fi
37199
37200 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
37201 if test "x$ac_cv_type_size_t" = xyes; then :
37202
37203 else
37204
37205 cat >>confdefs.h <<_ACEOF
37206 #define size_t unsigned int
37207 _ACEOF
37208
37209 fi
37210
37211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
37212 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
37213 if ${ac_cv_type_uid_t+:} false; then :
37214   $as_echo_n "(cached) " >&6
37215 else
37216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37217 /* end confdefs.h.  */
37218 #include <sys/types.h>
37219
37220 _ACEOF
37221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37222   $EGREP "uid_t" >/dev/null 2>&1; then :
37223   ac_cv_type_uid_t=yes
37224 else
37225   ac_cv_type_uid_t=no
37226 fi
37227 rm -f conftest*
37228
37229 fi
37230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
37231 $as_echo "$ac_cv_type_uid_t" >&6; }
37232 if test $ac_cv_type_uid_t = no; then
37233
37234 $as_echo "#define uid_t int" >>confdefs.h
37235
37236
37237 $as_echo "#define gid_t int" >>confdefs.h
37238
37239 fi
37240
37241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
37242 $as_echo_n "checking return type of signal handlers... " >&6; }
37243 if ${ac_cv_type_signal+:} false; then :
37244   $as_echo_n "(cached) " >&6
37245 else
37246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37247 /* end confdefs.h.  */
37248 #include <sys/types.h>
37249 #include <signal.h>
37250
37251 int
37252 main ()
37253 {
37254 return *(signal (0, 0)) (0) == 1;
37255   ;
37256   return 0;
37257 }
37258 _ACEOF
37259 if ac_fn_c_try_compile "$LINENO"; then :
37260   ac_cv_type_signal=int
37261 else
37262   ac_cv_type_signal=void
37263 fi
37264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37265 fi
37266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
37267 $as_echo "$ac_cv_type_signal" >&6; }
37268
37269 cat >>confdefs.h <<_ACEOF
37270 #define RETSIGTYPE $ac_cv_type_signal
37271 _ACEOF
37272
37273
37274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
37275 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
37276 if ${ac_cv_struct_tm+:} false; then :
37277   $as_echo_n "(cached) " >&6
37278 else
37279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37280 /* end confdefs.h.  */
37281 #include <sys/types.h>
37282 #include <time.h>
37283
37284 int
37285 main ()
37286 {
37287 struct tm tm;
37288                                      int *p = &tm.tm_sec;
37289                                      return !p;
37290   ;
37291   return 0;
37292 }
37293 _ACEOF
37294 if ac_fn_c_try_compile "$LINENO"; then :
37295   ac_cv_struct_tm=time.h
37296 else
37297   ac_cv_struct_tm=sys/time.h
37298 fi
37299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37300 fi
37301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
37302 $as_echo "$ac_cv_struct_tm" >&6; }
37303 if test $ac_cv_struct_tm = sys/time.h; then
37304
37305 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
37306
37307 fi
37308
37309
37310       ## lifted from config/gnulib/socklen.m4
37311             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
37312 $as_echo_n "checking for socklen_t equivalent... " >&6; }
37313       if ${gl_cv_socklen_t_equiv+:} false; then :
37314   $as_echo_n "(cached) " >&6
37315 else
37316   # Systems have either "struct sockaddr *" or
37317          # "void *" as the second argument to getpeername
37318          gl_cv_socklen_t_equiv=
37319          for arg2 in "struct sockaddr" void; do
37320            for t in socklen_t int size_t "unsigned int" "long int" "unsigned long int"; do
37321              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37322 /* end confdefs.h.  */
37323 #include <sys/types.h>
37324                 #include <sys/socket.h>
37325
37326                 int getpeername (int, $arg2 *, $t *);
37327 int
37328 main ()
37329 {
37330 $t len;
37331                 getpeername (0, 0, &len);
37332   ;
37333   return 0;
37334 }
37335 _ACEOF
37336 if ac_fn_c_try_compile "$LINENO"; then :
37337   gl_cv_socklen_t_equiv="$t"
37338 fi
37339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37340              test "$gl_cv_socklen_t_equiv" != "" && break
37341            done
37342            test "$gl_cv_socklen_t_equiv" != "" && break
37343          done
37344
37345 fi
37346
37347       ## end lifting from config/gnulib/socklen.m4
37348       # fallback if the check fails
37349       if test "$gl_cv_socklen_t_equiv" = ""; then
37350         gl_cv_socklen_t_equiv=socklen_t
37351       fi
37352       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
37353 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
37354
37355
37356 cat >>confdefs.h <<_ACEOF
37357 #define socklen_t_equiv $gl_cv_socklen_t_equiv
37358 _ACEOF
37359
37360
37361
37362
37363     ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
37364 #ifdef HAVE_SYS_TYPES_H
37365 #include <sys/types.h>
37366 #endif
37367 #ifdef STDC_HEADERS
37368 #include <stdlib.h>
37369 #include <stddef.h>
37370 #endif
37371 #include <sys/socket.h>
37372
37373
37374 "
37375 if test "x$ac_cv_type_sa_family_t" = xyes; then :
37376
37377 else
37378
37379
37380 $as_echo "#define sa_family_t unsigned short" >>confdefs.h
37381
37382
37383 fi
37384
37385
37386
37387
37388     ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "
37389 #ifdef HAVE_SYS_TYPES_H
37390 #include <sys/types.h>
37391 #endif
37392 #ifdef STDC_HEADERS
37393 #include <stdlib.h>
37394 #include <stddef.h>
37395 #endif
37396 #include <netinet/in.h>
37397
37398
37399 "
37400 if test "x$ac_cv_type_in_port_t" = xyes; then :
37401
37402 else
37403
37404
37405 $as_echo "#define in_port_t unsigned short" >>confdefs.h
37406
37407
37408 fi
37409
37410
37411
37412
37413     for ac_header in sys/wait.h wait.h
37414 do :
37415   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37416 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
37417 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37418   cat >>confdefs.h <<_ACEOF
37419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37420 _ACEOF
37421
37422 fi
37423
37424 done
37425
37426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait uses union wait" >&5
37427 $as_echo_n "checking whether wait uses union wait... " >&6; }
37428 if ${cf_cv_arg_union_wait+:} false; then :
37429   $as_echo_n "(cached) " >&6
37430 else
37431
37432         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37433 /* end confdefs.h.  */
37434
37435 #include <sys/types.h>
37436
37437 #if HAVE_SYS_WAIT_H
37438 # include <sys/wait.h>
37439 #else
37440 # if HAVE_WAIT_H
37441 #  include <wait.h>
37442 # endif
37443 #endif
37444
37445 #ifdef __STDC__
37446 pid_t wait(union wait *);
37447 #endif
37448
37449 int
37450 main ()
37451 {
37452
37453   union wait x; int i;
37454   wait(&x); i = WIFEXITED(x)
37455
37456   ;
37457   return 0;
37458 }
37459 _ACEOF
37460 if ac_fn_c_try_compile "$LINENO"; then :
37461   cf_cv_arg_union_wait=yes
37462 else
37463   cf_cv_arg_union_wait=no
37464 fi
37465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37466 fi
37467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_arg_union_wait" >&5
37468 $as_echo "$cf_cv_arg_union_wait" >&6; }
37469     if test $cf_cv_arg_union_wait = yes; then
37470
37471 $as_echo "#define WAIT_USES_UNION 1" >>confdefs.h
37472
37473     fi
37474
37475
37476
37477     for ac_header in sys/wait.h wait.h
37478 do :
37479   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37480 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
37481 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37482   cat >>confdefs.h <<_ACEOF
37483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37484 _ACEOF
37485
37486 fi
37487
37488 done
37489
37490     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait uses int" >&5
37491 $as_echo_n "checking whether wait uses int... " >&6; }
37492 if ${cf_cv_arg_int+:} false; then :
37493   $as_echo_n "(cached) " >&6
37494 else
37495
37496         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37497 /* end confdefs.h.  */
37498
37499 #include <sys/types.h>
37500
37501 #if HAVE_SYS_WAIT_H
37502 # include <sys/wait.h>
37503 #else
37504 # if HAVE_WAIT_H
37505 #  include <wait.h>
37506 # endif
37507 #endif
37508
37509 #ifdef __STDC__
37510 pid_t wait(int *);
37511 #endif
37512
37513 int
37514 main ()
37515 {
37516
37517   int x; int i;
37518   wait(&x); i = WIFEXITED(x)
37519
37520   ;
37521   return 0;
37522 }
37523 _ACEOF
37524 if ac_fn_c_try_compile "$LINENO"; then :
37525   cf_cv_arg_int=yes
37526 else
37527   cf_cv_arg_int=no
37528 fi
37529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37530 fi
37531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_arg_int" >&5
37532 $as_echo "$cf_cv_arg_int" >&6; }
37533 if test $cf_cv_arg_int = yes; then
37534
37535 $as_echo "#define WAIT_USES_INT 1" >>confdefs.h
37536
37537 fi
37538
37539
37540 #
37541 # Libraries
37542 #
37543 # cur_colr is on some HP's
37544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcur_colr" >&5
37545 $as_echo_n "checking for main in -lcur_colr... " >&6; }
37546 if ${ac_cv_lib_cur_colr_main+:} false; then :
37547   $as_echo_n "(cached) " >&6
37548 else
37549   ac_check_lib_save_LIBS=$LIBS
37550 LIBS="-lcur_colr  $LIBS"
37551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37552 /* end confdefs.h.  */
37553
37554
37555 int
37556 main ()
37557 {
37558 return main ();
37559   ;
37560   return 0;
37561 }
37562 _ACEOF
37563 if ac_fn_c_try_link "$LINENO"; then :
37564   ac_cv_lib_cur_colr_main=yes
37565 else
37566   ac_cv_lib_cur_colr_main=no
37567 fi
37568 rm -f core conftest.err conftest.$ac_objext \
37569     conftest$ac_exeext conftest.$ac_ext
37570 LIBS=$ac_check_lib_save_LIBS
37571 fi
37572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_main" >&5
37573 $as_echo "$ac_cv_lib_cur_colr_main" >&6; }
37574 if test "x$ac_cv_lib_cur_colr_main" = xyes; then :
37575   cat >>confdefs.h <<_ACEOF
37576 #define HAVE_LIBCUR_COLR 1
37577 _ACEOF
37578
37579   LIBS="-lcur_colr $LIBS"
37580
37581 fi
37582
37583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lintl" >&5
37584 $as_echo_n "checking for main in -lintl... " >&6; }
37585 if ${ac_cv_lib_intl_main+:} false; then :
37586   $as_echo_n "(cached) " >&6
37587 else
37588   ac_check_lib_save_LIBS=$LIBS
37589 LIBS="-lintl  $LIBS"
37590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37591 /* end confdefs.h.  */
37592
37593
37594 int
37595 main ()
37596 {
37597 return main ();
37598   ;
37599   return 0;
37600 }
37601 _ACEOF
37602 if ac_fn_c_try_link "$LINENO"; then :
37603   ac_cv_lib_intl_main=yes
37604 else
37605   ac_cv_lib_intl_main=no
37606 fi
37607 rm -f core conftest.err conftest.$ac_objext \
37608     conftest$ac_exeext conftest.$ac_ext
37609 LIBS=$ac_check_lib_save_LIBS
37610 fi
37611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_main" >&5
37612 $as_echo "$ac_cv_lib_intl_main" >&6; }
37613 if test "x$ac_cv_lib_intl_main" = xyes; then :
37614   cat >>confdefs.h <<_ACEOF
37615 #define HAVE_LIBINTL 1
37616 _ACEOF
37617
37618   LIBS="-lintl $LIBS"
37619
37620 fi
37621
37622
37623     # Make sure we don't use -lnsl and -lsun on Irix systems.
37624     case "$host" in
37625         *sgi-irix*)
37626                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
37627 $as_echo_n "checking for main in -lsocket... " >&6; }
37628 if ${ac_cv_lib_socket_main+:} false; then :
37629   $as_echo_n "(cached) " >&6
37630 else
37631   ac_check_lib_save_LIBS=$LIBS
37632 LIBS="-lsocket  $LIBS"
37633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37634 /* end confdefs.h.  */
37635
37636
37637 int
37638 main ()
37639 {
37640 return main ();
37641   ;
37642   return 0;
37643 }
37644 _ACEOF
37645 if ac_fn_c_try_link "$LINENO"; then :
37646   ac_cv_lib_socket_main=yes
37647 else
37648   ac_cv_lib_socket_main=no
37649 fi
37650 rm -f core conftest.err conftest.$ac_objext \
37651     conftest$ac_exeext conftest.$ac_ext
37652 LIBS=$ac_check_lib_save_LIBS
37653 fi
37654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
37655 $as_echo "$ac_cv_lib_socket_main" >&6; }
37656 if test "x$ac_cv_lib_socket_main" = xyes; then :
37657   cat >>confdefs.h <<_ACEOF
37658 #define HAVE_LIBSOCKET 1
37659 _ACEOF
37660
37661   LIBS="-lsocket $LIBS"
37662
37663 fi
37664
37665                             ;;
37666         *)
37667                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
37668 $as_echo_n "checking for main in -lresolv... " >&6; }
37669 if ${ac_cv_lib_resolv_main+:} false; then :
37670   $as_echo_n "(cached) " >&6
37671 else
37672   ac_check_lib_save_LIBS=$LIBS
37673 LIBS="-lresolv  $LIBS"
37674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37675 /* end confdefs.h.  */
37676
37677
37678 int
37679 main ()
37680 {
37681 return main ();
37682   ;
37683   return 0;
37684 }
37685 _ACEOF
37686 if ac_fn_c_try_link "$LINENO"; then :
37687   ac_cv_lib_resolv_main=yes
37688 else
37689   ac_cv_lib_resolv_main=no
37690 fi
37691 rm -f core conftest.err conftest.$ac_objext \
37692     conftest$ac_exeext conftest.$ac_ext
37693 LIBS=$ac_check_lib_save_LIBS
37694 fi
37695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
37696 $as_echo "$ac_cv_lib_resolv_main" >&6; }
37697 if test "x$ac_cv_lib_resolv_main" = xyes; then :
37698   cat >>confdefs.h <<_ACEOF
37699 #define HAVE_LIBRESOLV 1
37700 _ACEOF
37701
37702   LIBS="-lresolv $LIBS"
37703
37704 fi
37705
37706                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
37707 $as_echo_n "checking for main in -lnsl... " >&6; }
37708 if ${ac_cv_lib_nsl_main+:} false; then :
37709   $as_echo_n "(cached) " >&6
37710 else
37711   ac_check_lib_save_LIBS=$LIBS
37712 LIBS="-lnsl  $LIBS"
37713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37714 /* end confdefs.h.  */
37715
37716
37717 int
37718 main ()
37719 {
37720 return main ();
37721   ;
37722   return 0;
37723 }
37724 _ACEOF
37725 if ac_fn_c_try_link "$LINENO"; then :
37726   ac_cv_lib_nsl_main=yes
37727 else
37728   ac_cv_lib_nsl_main=no
37729 fi
37730 rm -f core conftest.err conftest.$ac_objext \
37731     conftest$ac_exeext conftest.$ac_ext
37732 LIBS=$ac_check_lib_save_LIBS
37733 fi
37734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
37735 $as_echo "$ac_cv_lib_nsl_main" >&6; }
37736 if test "x$ac_cv_lib_nsl_main" = xyes; then :
37737   cat >>confdefs.h <<_ACEOF
37738 #define HAVE_LIBNSL 1
37739 _ACEOF
37740
37741   LIBS="-lnsl $LIBS"
37742
37743 fi
37744
37745                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
37746 $as_echo_n "checking for main in -lsocket... " >&6; }
37747 if ${ac_cv_lib_socket_main+:} false; then :
37748   $as_echo_n "(cached) " >&6
37749 else
37750   ac_check_lib_save_LIBS=$LIBS
37751 LIBS="-lsocket  $LIBS"
37752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37753 /* end confdefs.h.  */
37754
37755
37756 int
37757 main ()
37758 {
37759 return main ();
37760   ;
37761   return 0;
37762 }
37763 _ACEOF
37764 if ac_fn_c_try_link "$LINENO"; then :
37765   ac_cv_lib_socket_main=yes
37766 else
37767   ac_cv_lib_socket_main=no
37768 fi
37769 rm -f core conftest.err conftest.$ac_objext \
37770     conftest$ac_exeext conftest.$ac_ext
37771 LIBS=$ac_check_lib_save_LIBS
37772 fi
37773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
37774 $as_echo "$ac_cv_lib_socket_main" >&6; }
37775 if test "x$ac_cv_lib_socket_main" = xyes; then :
37776   cat >>confdefs.h <<_ACEOF
37777 #define HAVE_LIBSOCKET 1
37778 _ACEOF
37779
37780   LIBS="-lsocket $LIBS"
37781
37782 fi
37783
37784                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsun" >&5
37785 $as_echo_n "checking for main in -lsun... " >&6; }
37786 if ${ac_cv_lib_sun_main+:} false; then :
37787   $as_echo_n "(cached) " >&6
37788 else
37789   ac_check_lib_save_LIBS=$LIBS
37790 LIBS="-lsun  $LIBS"
37791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37792 /* end confdefs.h.  */
37793
37794
37795 int
37796 main ()
37797 {
37798 return main ();
37799   ;
37800   return 0;
37801 }
37802 _ACEOF
37803 if ac_fn_c_try_link "$LINENO"; then :
37804   ac_cv_lib_sun_main=yes
37805 else
37806   ac_cv_lib_sun_main=no
37807 fi
37808 rm -f core conftest.err conftest.$ac_objext \
37809     conftest$ac_exeext conftest.$ac_ext
37810 LIBS=$ac_check_lib_save_LIBS
37811 fi
37812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_main" >&5
37813 $as_echo "$ac_cv_lib_sun_main" >&6; }
37814 if test "x$ac_cv_lib_sun_main" = xyes; then :
37815   cat >>confdefs.h <<_ACEOF
37816 #define HAVE_LIBSUN 1
37817 _ACEOF
37818
37819   LIBS="-lsun $LIBS"
37820
37821 fi
37822
37823                             ;;
37824     esac
37825
37826
37827
37828
37829
37830
37831
37832
37833     # if any of the precious variables are set, disable the pkg-config run.
37834     # Further, if any is specified, all must be specified.
37835     explicit_glib=no
37836     test x"$GLIB_CFLAGS" = x"" || explicit_glib=yes
37837     test x"$GLIB_LIBS" = x"" || explicit_glib=yes
37838     test x"$GLIB_GENMARSHAL" = x"" || explicit_glib=yes
37839     test x"$GOBJECT_QUERY" = x"" || explicit_glib=yes
37840     test x"$GLIB_MKENUMS" = x"" || explicit_glib=yes
37841
37842     if test x"$explicit_glib" = x"no"; then
37843         # search for pkg-config, which the glib configuration uses, adding a few
37844         # system-specific search paths.
37845         # Extract the first word of "pkg-config", so it can be a program name with args.
37846 set dummy pkg-config; ac_word=$2
37847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37848 $as_echo_n "checking for $ac_word... " >&6; }
37849 if ${ac_cv_path_PKG_CONFIG+:} false; then :
37850   $as_echo_n "(cached) " >&6
37851 else
37852   case $PKG_CONFIG in
37853   [\\/]* | ?:[\\/]*)
37854   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37855   ;;
37856   *)
37857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37858 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
37859 for as_dir in $as_dummy
37860 do
37861   IFS=$as_save_IFS
37862   test -z "$as_dir" && as_dir=.
37863     for ac_exec_ext in '' $ac_executable_extensions; do
37864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37865     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37867     break 2
37868   fi
37869 done
37870   done
37871 IFS=$as_save_IFS
37872
37873   ;;
37874 esac
37875 fi
37876 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37877 if test -n "$PKG_CONFIG"; then
37878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
37879 $as_echo "$PKG_CONFIG" >&6; }
37880 else
37881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37882 $as_echo "no" >&6; }
37883 fi
37884
37885
37886
37887         case "$host" in
37888             sparc-sun-solaris2.8) # Solaris 8
37889                 # give the linker a runtime search path; pkg-config doesn't supply this.
37890                 # Users could also specify this with LD_LIBRARY_PATH to both ./configure
37891                 # and make.  Adding this support here makes straight './configure; make'
37892                 # "just work" on Solaris 8
37893                 if test -n "$PKG_CONFIG"; then
37894                     glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
37895                     LDFLAGS="$LDFLAGS $glib_R_flag"
37896                 fi
37897                 ;;
37898         esac
37899
37900         # Check whether --enable-glibtest was given.
37901 if test "${enable_glibtest+set}" = set; then :
37902   enableval=$enable_glibtest;
37903 else
37904   enable_glibtest=yes
37905 fi
37906
37907
37908   pkg_config_args=glib-2.0
37909   for module in . gmodule gobject gthread
37910   do
37911       case "$module" in
37912          gmodule)
37913              pkg_config_args="$pkg_config_args gmodule-2.0"
37914          ;;
37915          gmodule-no-export)
37916              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
37917          ;;
37918          gobject)
37919              pkg_config_args="$pkg_config_args gobject-2.0"
37920          ;;
37921          gthread)
37922              pkg_config_args="$pkg_config_args gthread-2.0"
37923          ;;
37924          gio*)
37925              pkg_config_args="$pkg_config_args $module-2.0"
37926          ;;
37927       esac
37928   done
37929
37930
37931
37932
37933
37934
37935
37936 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
37937         if test -n "$ac_tool_prefix"; then
37938   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
37939 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
37940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37941 $as_echo_n "checking for $ac_word... " >&6; }
37942 if ${ac_cv_path_PKG_CONFIG+:} false; then :
37943   $as_echo_n "(cached) " >&6
37944 else
37945   case $PKG_CONFIG in
37946   [\\/]* | ?:[\\/]*)
37947   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37948   ;;
37949   *)
37950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37951 for as_dir in $PATH
37952 do
37953   IFS=$as_save_IFS
37954   test -z "$as_dir" && as_dir=.
37955     for ac_exec_ext in '' $ac_executable_extensions; do
37956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37957     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37959     break 2
37960   fi
37961 done
37962   done
37963 IFS=$as_save_IFS
37964
37965   ;;
37966 esac
37967 fi
37968 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37969 if test -n "$PKG_CONFIG"; then
37970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
37971 $as_echo "$PKG_CONFIG" >&6; }
37972 else
37973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37974 $as_echo "no" >&6; }
37975 fi
37976
37977
37978 fi
37979 if test -z "$ac_cv_path_PKG_CONFIG"; then
37980   ac_pt_PKG_CONFIG=$PKG_CONFIG
37981   # Extract the first word of "pkg-config", so it can be a program name with args.
37982 set dummy pkg-config; ac_word=$2
37983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37984 $as_echo_n "checking for $ac_word... " >&6; }
37985 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
37986   $as_echo_n "(cached) " >&6
37987 else
37988   case $ac_pt_PKG_CONFIG in
37989   [\\/]* | ?:[\\/]*)
37990   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
37991   ;;
37992   *)
37993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37994 for as_dir in $PATH
37995 do
37996   IFS=$as_save_IFS
37997   test -z "$as_dir" && as_dir=.
37998     for ac_exec_ext in '' $ac_executable_extensions; do
37999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38000     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38002     break 2
38003   fi
38004 done
38005   done
38006 IFS=$as_save_IFS
38007
38008   ;;
38009 esac
38010 fi
38011 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
38012 if test -n "$ac_pt_PKG_CONFIG"; then
38013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
38014 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
38015 else
38016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38017 $as_echo "no" >&6; }
38018 fi
38019
38020   if test "x$ac_pt_PKG_CONFIG" = x; then
38021     PKG_CONFIG=""
38022   else
38023     case $cross_compiling:$ac_tool_warned in
38024 yes:)
38025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38027 ac_tool_warned=yes ;;
38028 esac
38029     PKG_CONFIG=$ac_pt_PKG_CONFIG
38030   fi
38031 else
38032   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
38033 fi
38034
38035 fi
38036 if test -n "$PKG_CONFIG"; then
38037         _pkg_min_version=0.7
38038         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
38039 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
38040         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
38041                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38042 $as_echo "yes" >&6; }
38043         else
38044                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38045 $as_echo "no" >&6; }
38046                 PKG_CONFIG=""
38047         fi
38048 fi
38049
38050   no_glib=""
38051
38052   if test "x$PKG_CONFIG" = x ; then
38053     no_glib=yes
38054     PKG_CONFIG=no
38055   fi
38056
38057   min_glib_version=2.2.0
38058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
38059 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
38060
38061   if test x$PKG_CONFIG != xno ; then
38062     ## don't try to run the test against uninstalled libtool libs
38063     if $PKG_CONFIG --uninstalled $pkg_config_args; then
38064           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
38065           enable_glibtest=no
38066     fi
38067
38068     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
38069           :
38070     else
38071           no_glib=yes
38072     fi
38073   fi
38074
38075   if test x"$no_glib" = x ; then
38076     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
38077     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
38078     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
38079
38080     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
38081     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
38082     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
38083            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
38084     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
38085            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
38086     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
38087            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
38088     if test "x$enable_glibtest" = "xyes" ; then
38089       ac_save_CFLAGS="$CFLAGS"
38090       ac_save_LIBS="$LIBS"
38091       CFLAGS="$CFLAGS $GLIB_CFLAGS"
38092       LIBS="$GLIB_LIBS $LIBS"
38093       rm -f conf.glibtest
38094       if test "$cross_compiling" = yes; then :
38095   echo $ac_n "cross compiling; assumed OK... $ac_c"
38096 else
38097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38098 /* end confdefs.h.  */
38099
38100 #include <glib.h>
38101 #include <stdio.h>
38102 #include <stdlib.h>
38103
38104 int
38105 main ()
38106 {
38107   unsigned int major, minor, micro;
38108   char *tmp_version;
38109
38110   fclose (fopen ("conf.glibtest", "w"));
38111
38112   /* HP/UX 9 (%@#!) writes to sscanf strings */
38113   tmp_version = g_strdup("$min_glib_version");
38114   if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
38115      printf("%s, bad version string\n", "$min_glib_version");
38116      exit(1);
38117    }
38118
38119   if ((glib_major_version != $glib_config_major_version) ||
38120       (glib_minor_version != $glib_config_minor_version) ||
38121       (glib_micro_version != $glib_config_micro_version))
38122     {
38123       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
38124              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
38125              glib_major_version, glib_minor_version, glib_micro_version);
38126       printf ("*** was found! If pkg-config was correct, then it is best\n");
38127       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
38128       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
38129       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
38130       printf("*** required on your system.\n");
38131       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
38132       printf("*** to point to the correct configuration files\n");
38133     }
38134   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
38135            (glib_minor_version != GLIB_MINOR_VERSION) ||
38136            (glib_micro_version != GLIB_MICRO_VERSION))
38137     {
38138       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
38139              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
38140       printf("*** library (version %d.%d.%d)\n",
38141              glib_major_version, glib_minor_version, glib_micro_version);
38142     }
38143   else
38144     {
38145       if ((glib_major_version > major) ||
38146         ((glib_major_version == major) && (glib_minor_version > minor)) ||
38147         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
38148       {
38149         return 0;
38150        }
38151      else
38152       {
38153         printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
38154                glib_major_version, glib_minor_version, glib_micro_version);
38155         printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
38156                major, minor, micro);
38157         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
38158         printf("***\n");
38159         printf("*** If you have already installed a sufficiently new version, this error\n");
38160         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
38161         printf("*** being found. The easiest way to fix this is to remove the old version\n");
38162         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
38163         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
38164         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
38165         printf("*** so that the correct libraries are found at run-time))\n");
38166       }
38167     }
38168   return 1;
38169 }
38170
38171 _ACEOF
38172 if ac_fn_c_try_run "$LINENO"; then :
38173
38174 else
38175   no_glib=yes
38176 fi
38177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38178   conftest.$ac_objext conftest.beam conftest.$ac_ext
38179 fi
38180
38181        CFLAGS="$ac_save_CFLAGS"
38182        LIBS="$ac_save_LIBS"
38183      fi
38184   fi
38185   if test "x$no_glib" = x ; then
38186      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
38187 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
38188      :
38189   else
38190      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38191 $as_echo "no" >&6; }
38192      if test "$PKG_CONFIG" = "no" ; then
38193        echo "*** A new enough version of pkg-config was not found."
38194        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
38195      else
38196        if test -f conf.glibtest ; then
38197         :
38198        else
38199           echo "*** Could not run GLIB test program, checking why..."
38200           ac_save_CFLAGS="$CFLAGS"
38201           ac_save_LIBS="$LIBS"
38202           CFLAGS="$CFLAGS $GLIB_CFLAGS"
38203           LIBS="$LIBS $GLIB_LIBS"
38204           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38205 /* end confdefs.h.  */
38206
38207 #include <glib.h>
38208 #include <stdio.h>
38209
38210 int
38211 main ()
38212 {
38213  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
38214   ;
38215   return 0;
38216 }
38217 _ACEOF
38218 if ac_fn_c_try_link "$LINENO"; then :
38219    echo "*** The test program compiled, but did not run. This usually means"
38220           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
38221           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
38222           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
38223           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
38224           echo "*** is required on your system"
38225           echo "***"
38226           echo "*** If you have an old version installed, it is best to remove it, although"
38227           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
38228 else
38229    echo "*** The test program failed to compile or link. See the file config.log for the"
38230           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
38231 fi
38232 rm -f core conftest.err conftest.$ac_objext \
38233     conftest$ac_exeext conftest.$ac_ext
38234           CFLAGS="$ac_save_CFLAGS"
38235           LIBS="$ac_save_LIBS"
38236        fi
38237      fi
38238      GLIB_CFLAGS=""
38239      GLIB_LIBS=""
38240      GLIB_GENMARSHAL=""
38241      GOBJECT_QUERY=""
38242      GLIB_MKENUMS=""
38243
38244             as_fn_error $? "glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" "$LINENO" 5
38245
38246   fi
38247
38248
38249
38250
38251
38252   rm -f conf.glibtest
38253
38254     else
38255         # Confirm that all GLIB_ variables are set
38256         if test ! x"$GLIB_CFLAGS" = x"" && \
38257            test ! x"$GLIB_LIBS" = x"" && \
38258            test ! x"$GLIB_GENMARSHAL" = x"" && \
38259            test ! x"$GOBJECT_QUERY" = x"" && \
38260            test ! x"$GLIB_MKENUMS" = x""; then
38261             :
38262         else
38263             as_fn_error $? "Not all precious glib variables were set." "$LINENO" 5
38264         fi
38265     fi
38266
38267     # remove deprecated warning for newer version
38268     if $PKG_CONFIG --atleast-version 2.30.0 glib-2.0; then
38269
38270     # test for -W'warning', then add the 'no-' version.
38271
38272
38273
38274     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc flag -Wdeprecated-declarations" >&5
38275 $as_echo_n "checking for gcc flag -Wdeprecated-declarations... " >&6; }
38276     if test "x$GCC" = "xyes"; then
38277                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
38278            $CC -v --help 2>&1) |
38279          $EGREP -- '[^[:alnum:]]-Wdeprecated-declarations[^[:alnum:]-]' 2>&1 > /dev/null
38280                 if test $? -eq 0; then
38281             found_warning=yes
38282             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38283 $as_echo "yes" >&6; }
38284         else
38285             found_warning=no
38286             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38287 $as_echo "no" >&6; }
38288         fi
38289     else
38290         found_warning=no
38291         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not using gcc)" >&5
38292 $as_echo "no (not using gcc)" >&6; }
38293     fi
38294
38295     if test x"$found_warning" = x"yes"; then
38296         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-deprecated-declarations"
38297
38298
38299     else
38300         :
38301     fi
38302
38303
38304     fi
38305
38306     # GLIB_CPPFLAGS is not set by autoconf, yet GLIB_CFLAGS contains what GLIB_CPPFLAGS should contain.
38307     CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
38308
38309     LIBS="$GLIB_LIBS $LIBS"
38310
38311
38312
38313
38314 # Check whether --with-readline was given.
38315 if test "${with_readline+set}" = set; then :
38316   withval=$with_readline;
38317             case "$withval" in
38318                 y | ye | yes | n | no) : ;;
38319                 *) as_fn_error $? "*** --with-readline does not take a value" "$LINENO" 5
38320             esac
38321             want_readline="$withval"
38322
38323 else
38324
38325             want_readline="maybe" # meaning "only if we can find it"
38326
38327 fi
38328
38329
38330
38331   # unless the user said "no", look for readline.
38332   if test x"$want_readline" != x"no"; then
38333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
38334 $as_echo_n "checking for a readline compatible library... " >&6; }
38335 if ${ax_cv_lib_readline+:} false; then :
38336   $as_echo_n "(cached) " >&6
38337 else
38338
38339       ORIG_LIBS="$LIBS"
38340       for readline_lib in readline edit editline; do
38341         for termcap_lib in "" termcap curses ncurses; do
38342           if test -z "$termcap_lib"; then
38343             TRY_LIB="-l$readline_lib"
38344           else
38345             TRY_LIB="-l$readline_lib -l$termcap_lib"
38346           fi
38347           LIBS="$ORIG_LIBS $TRY_LIB"
38348           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38349 /* end confdefs.h.  */
38350
38351 /* Override any GCC internal prototype to avoid an error.
38352    Use char because int might match the return type of a GCC
38353    builtin and then its argument prototype would still apply.  */
38354 #ifdef __cplusplus
38355 extern "C"
38356 #endif
38357 char readline ();
38358 int
38359 main ()
38360 {
38361 return readline ();
38362   ;
38363   return 0;
38364 }
38365 _ACEOF
38366 if ac_fn_c_try_link "$LINENO"; then :
38367   ax_cv_lib_readline="$TRY_LIB"
38368 fi
38369 rm -f core conftest.err conftest.$ac_objext \
38370     conftest$ac_exeext conftest.$ac_ext
38371           if test -n "$ax_cv_lib_readline"; then
38372             break
38373           fi
38374         done
38375         if test -n "$ax_cv_lib_readline"; then
38376           break
38377         fi
38378       done
38379       if test -z "$ax_cv_lib_readline"; then
38380         ax_cv_lib_readline="no"
38381       fi
38382       LIBS="$ORIG_LIBS"
38383
38384 fi
38385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
38386 $as_echo "$ax_cv_lib_readline" >&6; }
38387
38388     if test "$ax_cv_lib_readline" != "no"; then
38389       ORIG_LIBS="$LIBS"
38390       LIBS="$LIBS $ax_cv_lib_readline"
38391       READLINE_LIBS="$ax_cv_lib_readline"
38392
38393 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
38394
38395       for ac_header in readline.h readline/readline.h
38396 do :
38397   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38398 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38399 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38400   cat >>confdefs.h <<_ACEOF
38401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38402 _ACEOF
38403
38404 fi
38405
38406 done
38407
38408       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
38409 $as_echo_n "checking whether readline supports history... " >&6; }
38410 if ${ax_cv_lib_readline_history+:} false; then :
38411   $as_echo_n "(cached) " >&6
38412 else
38413
38414         ax_cv_lib_readline_history="no"
38415         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38416 /* end confdefs.h.  */
38417
38418 /* Override any GCC internal prototype to avoid an error.
38419    Use char because int might match the return type of a GCC
38420    builtin and then its argument prototype would still apply.  */
38421 #ifdef __cplusplus
38422 extern "C"
38423 #endif
38424 char add_history ();
38425 int
38426 main ()
38427 {
38428 return add_history ();
38429   ;
38430   return 0;
38431 }
38432 _ACEOF
38433 if ac_fn_c_try_link "$LINENO"; then :
38434   ax_cv_lib_readline_history="yes"
38435 fi
38436 rm -f core conftest.err conftest.$ac_objext \
38437     conftest$ac_exeext conftest.$ac_ext
38438
38439 fi
38440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
38441 $as_echo "$ax_cv_lib_readline_history" >&6; }
38442       if test "$ax_cv_lib_readline_history" = "yes"; then
38443
38444 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
38445
38446         for ac_header in history.h readline/history.h
38447 do :
38448   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38449 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38451   cat >>confdefs.h <<_ACEOF
38452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38453 _ACEOF
38454
38455 fi
38456
38457 done
38458
38459       fi
38460       LIBS="$ORIG_LIBS"
38461
38462     else
38463       # no readline.  if the user *really* wanted it, bail out.
38464       if test x"$want_readline" = x"yes"; then
38465         as_fn_error $? "*** No readline implementation found.  Try using --with-libraries and --with-includes" "$LINENO" 5
38466       fi
38467       READLINE_LIBS=""
38468     fi
38469   fi
38470
38471
38472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf in -lm" >&5
38473 $as_echo_n "checking for modf in -lm... " >&6; }
38474 if ${ac_cv_lib_m_modf+:} false; then :
38475   $as_echo_n "(cached) " >&6
38476 else
38477   ac_check_lib_save_LIBS=$LIBS
38478 LIBS="-lm  $LIBS"
38479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38480 /* end confdefs.h.  */
38481
38482 /* Override any GCC internal prototype to avoid an error.
38483    Use char because int might match the return type of a GCC
38484    builtin and then its argument prototype would still apply.  */
38485 #ifdef __cplusplus
38486 extern "C"
38487 #endif
38488 char modf ();
38489 int
38490 main ()
38491 {
38492 return modf ();
38493   ;
38494   return 0;
38495 }
38496 _ACEOF
38497 if ac_fn_c_try_link "$LINENO"; then :
38498   ac_cv_lib_m_modf=yes
38499 else
38500   ac_cv_lib_m_modf=no
38501 fi
38502 rm -f core conftest.err conftest.$ac_objext \
38503     conftest$ac_exeext conftest.$ac_ext
38504 LIBS=$ac_check_lib_save_LIBS
38505 fi
38506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_modf" >&5
38507 $as_echo "$ac_cv_lib_m_modf" >&6; }
38508 if test "x$ac_cv_lib_m_modf" = xyes; then :
38509   cat >>confdefs.h <<_ACEOF
38510 #define HAVE_LIBM 1
38511 _ACEOF
38512
38513   LIBS="-lm $LIBS"
38514
38515 fi
38516
38517
38518     ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
38519 if test "x$ac_cv_header_execinfo_h" = xyes; then :
38520
38521         ac_fn_c_check_func "$LINENO" "backtrace_symbols_fd" "ac_cv_func_backtrace_symbols_fd"
38522 if test "x$ac_cv_func_backtrace_symbols_fd" = xyes; then :
38523
38524
38525 $as_echo "#define HAVE_GLIBC_BACKTRACE 1" >>confdefs.h
38526
38527
38528 fi
38529
38530
38531 fi
38532
38533
38534
38535
38536 #
38537 # Declarations
38538 #
38539 # Checks for library functions and if the function is declared in
38540 # an appropriate header file.  Functions which exist, but for which
38541 # no declaration is available, are declared in common-src/amanda.h.
38542 # It's not clear that any existing system implements but does not
38543 # declare common functions such as these.
38544 #
38545
38546 ice_have_accept=no
38547 for ac_func in accept
38548 do :
38549   ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
38550 if test "x$ac_cv_func_accept" = xyes; then :
38551   cat >>confdefs.h <<_ACEOF
38552 #define HAVE_ACCEPT 1
38553 _ACEOF
38554  ice_have_accept=yes
38555 fi
38556 done
38557
38558 if test "${ice_have_accept}" = yes; then
38559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept declaration in sys/types.h sys/socket.h" >&5
38560 $as_echo_n "checking for accept declaration in sys/types.h sys/socket.h... " >&6; }
38561 if ${ice_cv_have_accept_decl+:} false; then :
38562   $as_echo_n "(cached) " >&6
38563 else
38564
38565 ice_cv_have_accept_decl=no
38566 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38567 ice_re_word='(^|[^a-zA-Z0-9_])'
38568 for header in sys/types.h sys/socket.h; do
38569 # Check for ordinary declaration
38570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38571 /* end confdefs.h.  */
38572 #include <$header>
38573
38574 _ACEOF
38575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38576   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then :
38577   ice_cv_have_accept_decl=yes
38578 fi
38579 rm -f conftest*
38580
38581 if test "$ice_cv_have_accept_decl" = yes; then
38582         break
38583 fi
38584 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38586 /* end confdefs.h.  */
38587 #include <$header>
38588
38589 _ACEOF
38590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38591   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38592   ice_cv_have_accept_decl=yes
38593 fi
38594 rm -f conftest*
38595
38596 if test "$ice_cv_have_accept_decl" = yes; then
38597         break
38598 fi
38599 done
38600
38601 fi
38602
38603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_accept_decl" >&5
38604 $as_echo "$ice_cv_have_accept_decl" >&6; }
38605 if test "$ice_cv_have_accept_decl" = yes; then
38606
38607 cat >>confdefs.h <<_ACEOF
38608 #define HAVE_ACCEPT_DECL 1
38609 _ACEOF
38610
38611 fi
38612 fi
38613
38614 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
38615 # for constant arguments.  Useless!
38616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
38617 $as_echo_n "checking for working alloca.h... " >&6; }
38618 if ${ac_cv_working_alloca_h+:} false; then :
38619   $as_echo_n "(cached) " >&6
38620 else
38621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38622 /* end confdefs.h.  */
38623 #include <alloca.h>
38624 int
38625 main ()
38626 {
38627 char *p = (char *) alloca (2 * sizeof (int));
38628                           if (p) return 0;
38629   ;
38630   return 0;
38631 }
38632 _ACEOF
38633 if ac_fn_c_try_link "$LINENO"; then :
38634   ac_cv_working_alloca_h=yes
38635 else
38636   ac_cv_working_alloca_h=no
38637 fi
38638 rm -f core conftest.err conftest.$ac_objext \
38639     conftest$ac_exeext conftest.$ac_ext
38640 fi
38641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
38642 $as_echo "$ac_cv_working_alloca_h" >&6; }
38643 if test $ac_cv_working_alloca_h = yes; then
38644
38645 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
38646
38647 fi
38648
38649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
38650 $as_echo_n "checking for alloca... " >&6; }
38651 if ${ac_cv_func_alloca_works+:} false; then :
38652   $as_echo_n "(cached) " >&6
38653 else
38654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38655 /* end confdefs.h.  */
38656 #ifdef __GNUC__
38657 # define alloca __builtin_alloca
38658 #else
38659 # ifdef _MSC_VER
38660 #  include <malloc.h>
38661 #  define alloca _alloca
38662 # else
38663 #  ifdef HAVE_ALLOCA_H
38664 #   include <alloca.h>
38665 #  else
38666 #   ifdef _AIX
38667  #pragma alloca
38668 #   else
38669 #    ifndef alloca /* predefined by HP cc +Olibcalls */
38670 void *alloca (size_t);
38671 #    endif
38672 #   endif
38673 #  endif
38674 # endif
38675 #endif
38676
38677 int
38678 main ()
38679 {
38680 char *p = (char *) alloca (1);
38681                                     if (p) return 0;
38682   ;
38683   return 0;
38684 }
38685 _ACEOF
38686 if ac_fn_c_try_link "$LINENO"; then :
38687   ac_cv_func_alloca_works=yes
38688 else
38689   ac_cv_func_alloca_works=no
38690 fi
38691 rm -f core conftest.err conftest.$ac_objext \
38692     conftest$ac_exeext conftest.$ac_ext
38693 fi
38694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
38695 $as_echo "$ac_cv_func_alloca_works" >&6; }
38696
38697 if test $ac_cv_func_alloca_works = yes; then
38698
38699 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
38700
38701 else
38702   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
38703 # that cause trouble.  Some versions do not even contain alloca or
38704 # contain a buggy version.  If you still want to use their alloca,
38705 # use ar to extract alloca.o from them instead of compiling alloca.c.
38706
38707 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
38708
38709 $as_echo "#define C_ALLOCA 1" >>confdefs.h
38710
38711
38712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
38713 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
38714 if ${ac_cv_os_cray+:} false; then :
38715   $as_echo_n "(cached) " >&6
38716 else
38717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38718 /* end confdefs.h.  */
38719 #if defined CRAY && ! defined CRAY2
38720 webecray
38721 #else
38722 wenotbecray
38723 #endif
38724
38725 _ACEOF
38726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38727   $EGREP "webecray" >/dev/null 2>&1; then :
38728   ac_cv_os_cray=yes
38729 else
38730   ac_cv_os_cray=no
38731 fi
38732 rm -f conftest*
38733
38734 fi
38735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
38736 $as_echo "$ac_cv_os_cray" >&6; }
38737 if test $ac_cv_os_cray = yes; then
38738   for ac_func in _getb67 GETB67 getb67; do
38739     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38740 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
38741 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
38742
38743 cat >>confdefs.h <<_ACEOF
38744 #define CRAY_STACKSEG_END $ac_func
38745 _ACEOF
38746
38747     break
38748 fi
38749
38750   done
38751 fi
38752
38753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
38754 $as_echo_n "checking stack direction for C alloca... " >&6; }
38755 if ${ac_cv_c_stack_direction+:} false; then :
38756   $as_echo_n "(cached) " >&6
38757 else
38758   if test "$cross_compiling" = yes; then :
38759   ac_cv_c_stack_direction=0
38760 else
38761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38762 /* end confdefs.h.  */
38763 $ac_includes_default
38764 int
38765 find_stack_direction ()
38766 {
38767   static char *addr = 0;
38768   auto char dummy;
38769   if (addr == 0)
38770     {
38771       addr = &dummy;
38772       return find_stack_direction ();
38773     }
38774   else
38775     return (&dummy > addr) ? 1 : -1;
38776 }
38777
38778 int
38779 main ()
38780 {
38781   return find_stack_direction () < 0;
38782 }
38783 _ACEOF
38784 if ac_fn_c_try_run "$LINENO"; then :
38785   ac_cv_c_stack_direction=1
38786 else
38787   ac_cv_c_stack_direction=-1
38788 fi
38789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38790   conftest.$ac_objext conftest.beam conftest.$ac_ext
38791 fi
38792
38793 fi
38794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
38795 $as_echo "$ac_cv_c_stack_direction" >&6; }
38796 cat >>confdefs.h <<_ACEOF
38797 #define STACK_DIRECTION $ac_cv_c_stack_direction
38798 _ACEOF
38799
38800
38801 fi
38802
38803 for ac_func in atexit
38804 do :
38805   ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
38806 if test "x$ac_cv_func_atexit" = xyes; then :
38807   cat >>confdefs.h <<_ACEOF
38808 #define HAVE_ATEXIT 1
38809 _ACEOF
38810
38811 fi
38812 done
38813
38814
38815 ice_have_atof=no
38816 for ac_func in atof
38817 do :
38818   ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
38819 if test "x$ac_cv_func_atof" = xyes; then :
38820   cat >>confdefs.h <<_ACEOF
38821 #define HAVE_ATOF 1
38822 _ACEOF
38823  ice_have_atof=yes
38824 fi
38825 done
38826
38827 if test "${ice_have_atof}" = yes; then
38828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atof declaration in stdlib.h" >&5
38829 $as_echo_n "checking for atof declaration in stdlib.h... " >&6; }
38830 if ${ice_cv_have_atof_decl+:} false; then :
38831   $as_echo_n "(cached) " >&6
38832 else
38833
38834 ice_cv_have_atof_decl=no
38835 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38836 ice_re_word='(^|[^a-zA-Z0-9_])'
38837 for header in stdlib.h; do
38838 # Check for ordinary declaration
38839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38840 /* end confdefs.h.  */
38841 #include <$header>
38842
38843 _ACEOF
38844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38845   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then :
38846   ice_cv_have_atof_decl=yes
38847 fi
38848 rm -f conftest*
38849
38850 if test "$ice_cv_have_atof_decl" = yes; then
38851         break
38852 fi
38853 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38855 /* end confdefs.h.  */
38856 #include <$header>
38857
38858 _ACEOF
38859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38860   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38861   ice_cv_have_atof_decl=yes
38862 fi
38863 rm -f conftest*
38864
38865 if test "$ice_cv_have_atof_decl" = yes; then
38866         break
38867 fi
38868 done
38869
38870 fi
38871
38872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atof_decl" >&5
38873 $as_echo "$ice_cv_have_atof_decl" >&6; }
38874 if test "$ice_cv_have_atof_decl" = yes; then
38875
38876 cat >>confdefs.h <<_ACEOF
38877 #define HAVE_ATOF_DECL 1
38878 _ACEOF
38879
38880 fi
38881 fi
38882
38883
38884 ice_have_atol=no
38885 for ac_func in atol
38886 do :
38887   ac_fn_c_check_func "$LINENO" "atol" "ac_cv_func_atol"
38888 if test "x$ac_cv_func_atol" = xyes; then :
38889   cat >>confdefs.h <<_ACEOF
38890 #define HAVE_ATOL 1
38891 _ACEOF
38892  ice_have_atol=yes
38893 fi
38894 done
38895
38896 if test "${ice_have_atol}" = yes; then
38897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atol declaration in stdlib.h" >&5
38898 $as_echo_n "checking for atol declaration in stdlib.h... " >&6; }
38899 if ${ice_cv_have_atol_decl+:} false; then :
38900   $as_echo_n "(cached) " >&6
38901 else
38902
38903 ice_cv_have_atol_decl=no
38904 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38905 ice_re_word='(^|[^a-zA-Z0-9_])'
38906 for header in stdlib.h; do
38907 # Check for ordinary declaration
38908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38909 /* end confdefs.h.  */
38910 #include <$header>
38911
38912 _ACEOF
38913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38914   $EGREP "${ice_re_word}atol[   ]*\(" >/dev/null 2>&1; then :
38915   ice_cv_have_atol_decl=yes
38916 fi
38917 rm -f conftest*
38918
38919 if test "$ice_cv_have_atol_decl" = yes; then
38920         break
38921 fi
38922 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38924 /* end confdefs.h.  */
38925 #include <$header>
38926
38927 _ACEOF
38928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38929   $EGREP "${ice_re_word}atol[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38930   ice_cv_have_atol_decl=yes
38931 fi
38932 rm -f conftest*
38933
38934 if test "$ice_cv_have_atol_decl" = yes; then
38935         break
38936 fi
38937 done
38938
38939 fi
38940
38941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atol_decl" >&5
38942 $as_echo "$ice_cv_have_atol_decl" >&6; }
38943 if test "$ice_cv_have_atol_decl" = yes; then
38944
38945 cat >>confdefs.h <<_ACEOF
38946 #define HAVE_ATOL_DECL 1
38947 _ACEOF
38948
38949 fi
38950 fi
38951
38952
38953 ice_have_atoll=no
38954 for ac_func in atoll
38955 do :
38956   ac_fn_c_check_func "$LINENO" "atoll" "ac_cv_func_atoll"
38957 if test "x$ac_cv_func_atoll" = xyes; then :
38958   cat >>confdefs.h <<_ACEOF
38959 #define HAVE_ATOLL 1
38960 _ACEOF
38961  ice_have_atoll=yes
38962 fi
38963 done
38964
38965 if test "${ice_have_atoll}" = yes; then
38966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atoll declaration in stdlib.h" >&5
38967 $as_echo_n "checking for atoll declaration in stdlib.h... " >&6; }
38968 if ${ice_cv_have_atoll_decl+:} false; then :
38969   $as_echo_n "(cached) " >&6
38970 else
38971
38972 ice_cv_have_atoll_decl=no
38973 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38974 ice_re_word='(^|[^a-zA-Z0-9_])'
38975 for header in stdlib.h; do
38976 # Check for ordinary declaration
38977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38978 /* end confdefs.h.  */
38979 #include <$header>
38980
38981 _ACEOF
38982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38983   $EGREP "${ice_re_word}atoll[  ]*\(" >/dev/null 2>&1; then :
38984   ice_cv_have_atoll_decl=yes
38985 fi
38986 rm -f conftest*
38987
38988 if test "$ice_cv_have_atoll_decl" = yes; then
38989         break
38990 fi
38991 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38993 /* end confdefs.h.  */
38994 #include <$header>
38995
38996 _ACEOF
38997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38998   $EGREP "${ice_re_word}atoll[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
38999   ice_cv_have_atoll_decl=yes
39000 fi
39001 rm -f conftest*
39002
39003 if test "$ice_cv_have_atoll_decl" = yes; then
39004         break
39005 fi
39006 done
39007
39008 fi
39009
39010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_atoll_decl" >&5
39011 $as_echo "$ice_cv_have_atoll_decl" >&6; }
39012 if test "$ice_cv_have_atoll_decl" = yes; then
39013
39014 cat >>confdefs.h <<_ACEOF
39015 #define HAVE_ATOLL_DECL 1
39016 _ACEOF
39017
39018 fi
39019 fi
39020
39021
39022 ice_have_strtol=no
39023 for ac_func in strtol
39024 do :
39025   ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
39026 if test "x$ac_cv_func_strtol" = xyes; then :
39027   cat >>confdefs.h <<_ACEOF
39028 #define HAVE_STRTOL 1
39029 _ACEOF
39030  ice_have_strtol=yes
39031 fi
39032 done
39033
39034 if test "${ice_have_strtol}" = yes; then
39035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtol declaration in stdlib.h" >&5
39036 $as_echo_n "checking for strtol declaration in stdlib.h... " >&6; }
39037 if ${ice_cv_have_strtol_decl+:} false; then :
39038   $as_echo_n "(cached) " >&6
39039 else
39040
39041 ice_cv_have_strtol_decl=no
39042 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39043 ice_re_word='(^|[^a-zA-Z0-9_])'
39044 for header in stdlib.h; do
39045 # Check for ordinary declaration
39046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39047 /* end confdefs.h.  */
39048 #include <$header>
39049
39050 _ACEOF
39051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39052   $EGREP "${ice_re_word}strtol[         ]*\(" >/dev/null 2>&1; then :
39053   ice_cv_have_strtol_decl=yes
39054 fi
39055 rm -f conftest*
39056
39057 if test "$ice_cv_have_strtol_decl" = yes; then
39058         break
39059 fi
39060 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39062 /* end confdefs.h.  */
39063 #include <$header>
39064
39065 _ACEOF
39066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39067   $EGREP "${ice_re_word}strtol[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39068   ice_cv_have_strtol_decl=yes
39069 fi
39070 rm -f conftest*
39071
39072 if test "$ice_cv_have_strtol_decl" = yes; then
39073         break
39074 fi
39075 done
39076
39077 fi
39078
39079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strtol_decl" >&5
39080 $as_echo "$ice_cv_have_strtol_decl" >&6; }
39081 if test "$ice_cv_have_strtol_decl" = yes; then
39082
39083 cat >>confdefs.h <<_ACEOF
39084 #define HAVE_STRTOL_DECL 1
39085 _ACEOF
39086
39087 fi
39088 fi
39089
39090
39091 ice_have_strtoll=no
39092 for ac_func in strtoll
39093 do :
39094   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
39095 if test "x$ac_cv_func_strtoll" = xyes; then :
39096   cat >>confdefs.h <<_ACEOF
39097 #define HAVE_STRTOLL 1
39098 _ACEOF
39099  ice_have_strtoll=yes
39100 fi
39101 done
39102
39103 if test "${ice_have_strtoll}" = yes; then
39104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtoll declaration in stdlib.h" >&5
39105 $as_echo_n "checking for strtoll declaration in stdlib.h... " >&6; }
39106 if ${ice_cv_have_strtoll_decl+:} false; then :
39107   $as_echo_n "(cached) " >&6
39108 else
39109
39110 ice_cv_have_strtoll_decl=no
39111 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39112 ice_re_word='(^|[^a-zA-Z0-9_])'
39113 for header in stdlib.h; do
39114 # Check for ordinary declaration
39115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39116 /* end confdefs.h.  */
39117 #include <$header>
39118
39119 _ACEOF
39120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39121   $EGREP "${ice_re_word}strtoll[        ]*\(" >/dev/null 2>&1; then :
39122   ice_cv_have_strtoll_decl=yes
39123 fi
39124 rm -f conftest*
39125
39126 if test "$ice_cv_have_strtoll_decl" = yes; then
39127         break
39128 fi
39129 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39131 /* end confdefs.h.  */
39132 #include <$header>
39133
39134 _ACEOF
39135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39136   $EGREP "${ice_re_word}strtoll[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39137   ice_cv_have_strtoll_decl=yes
39138 fi
39139 rm -f conftest*
39140
39141 if test "$ice_cv_have_strtoll_decl" = yes; then
39142         break
39143 fi
39144 done
39145
39146 fi
39147
39148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strtoll_decl" >&5
39149 $as_echo "$ice_cv_have_strtoll_decl" >&6; }
39150 if test "$ice_cv_have_strtoll_decl" = yes; then
39151
39152 cat >>confdefs.h <<_ACEOF
39153 #define HAVE_STRTOLL_DECL 1
39154 _ACEOF
39155
39156 fi
39157 fi
39158
39159 for ac_func in basename
39160 do :
39161   ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
39162 if test "x$ac_cv_func_basename" = xyes; then :
39163   cat >>confdefs.h <<_ACEOF
39164 #define HAVE_BASENAME 1
39165 _ACEOF
39166
39167 fi
39168 done
39169
39170
39171 ice_have_bind=no
39172 for ac_func in bind
39173 do :
39174   ac_fn_c_check_func "$LINENO" "bind" "ac_cv_func_bind"
39175 if test "x$ac_cv_func_bind" = xyes; then :
39176   cat >>confdefs.h <<_ACEOF
39177 #define HAVE_BIND 1
39178 _ACEOF
39179  ice_have_bind=yes
39180 fi
39181 done
39182
39183 if test "${ice_have_bind}" = yes; then
39184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind declaration in sys/types.h sys/socket.h" >&5
39185 $as_echo_n "checking for bind declaration in sys/types.h sys/socket.h... " >&6; }
39186 if ${ice_cv_have_bind_decl+:} false; then :
39187   $as_echo_n "(cached) " >&6
39188 else
39189
39190 ice_cv_have_bind_decl=no
39191 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39192 ice_re_word='(^|[^a-zA-Z0-9_])'
39193 for header in sys/types.h sys/socket.h; do
39194 # Check for ordinary declaration
39195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39196 /* end confdefs.h.  */
39197 #include <$header>
39198
39199 _ACEOF
39200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39201   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then :
39202   ice_cv_have_bind_decl=yes
39203 fi
39204 rm -f conftest*
39205
39206 if test "$ice_cv_have_bind_decl" = yes; then
39207         break
39208 fi
39209 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39211 /* end confdefs.h.  */
39212 #include <$header>
39213
39214 _ACEOF
39215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39216   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39217   ice_cv_have_bind_decl=yes
39218 fi
39219 rm -f conftest*
39220
39221 if test "$ice_cv_have_bind_decl" = yes; then
39222         break
39223 fi
39224 done
39225
39226 fi
39227
39228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bind_decl" >&5
39229 $as_echo "$ice_cv_have_bind_decl" >&6; }
39230 if test "$ice_cv_have_bind_decl" = yes; then
39231
39232 cat >>confdefs.h <<_ACEOF
39233 #define HAVE_BIND_DECL 1
39234 _ACEOF
39235
39236 fi
39237 fi
39238
39239
39240 ice_have_bcopy=no
39241 for ac_func in bcopy
39242 do :
39243   ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
39244 if test "x$ac_cv_func_bcopy" = xyes; then :
39245   cat >>confdefs.h <<_ACEOF
39246 #define HAVE_BCOPY 1
39247 _ACEOF
39248  ice_have_bcopy=yes
39249 fi
39250 done
39251
39252 if test "${ice_have_bcopy}" = yes; then
39253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
39254 $as_echo_n "checking for bcopy declaration in string.h strings.h stdlib.h... " >&6; }
39255 if ${ice_cv_have_bcopy_decl+:} false; then :
39256   $as_echo_n "(cached) " >&6
39257 else
39258
39259 ice_cv_have_bcopy_decl=no
39260 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39261 ice_re_word='(^|[^a-zA-Z0-9_])'
39262 for header in string.h strings.h stdlib.h; do
39263 # Check for ordinary declaration
39264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39265 /* end confdefs.h.  */
39266 #include <$header>
39267
39268 _ACEOF
39269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39270   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then :
39271   ice_cv_have_bcopy_decl=yes
39272 fi
39273 rm -f conftest*
39274
39275 if test "$ice_cv_have_bcopy_decl" = yes; then
39276         break
39277 fi
39278 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39280 /* end confdefs.h.  */
39281 #include <$header>
39282
39283 _ACEOF
39284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39285   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39286   ice_cv_have_bcopy_decl=yes
39287 fi
39288 rm -f conftest*
39289
39290 if test "$ice_cv_have_bcopy_decl" = yes; then
39291         break
39292 fi
39293 done
39294
39295 fi
39296
39297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bcopy_decl" >&5
39298 $as_echo "$ice_cv_have_bcopy_decl" >&6; }
39299 if test "$ice_cv_have_bcopy_decl" = yes; then
39300
39301 cat >>confdefs.h <<_ACEOF
39302 #define HAVE_BCOPY_DECL 1
39303 _ACEOF
39304
39305 fi
39306 fi
39307
39308
39309 ice_have_bzero=no
39310 for ac_func in bzero
39311 do :
39312   ac_fn_c_check_func "$LINENO" "bzero" "ac_cv_func_bzero"
39313 if test "x$ac_cv_func_bzero" = xyes; then :
39314   cat >>confdefs.h <<_ACEOF
39315 #define HAVE_BZERO 1
39316 _ACEOF
39317  ice_have_bzero=yes
39318 fi
39319 done
39320
39321 if test "${ice_have_bzero}" = yes; then
39322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzero declaration in string.h strings.h stdlib.h" >&5
39323 $as_echo_n "checking for bzero declaration in string.h strings.h stdlib.h... " >&6; }
39324 if ${ice_cv_have_bzero_decl+:} false; then :
39325   $as_echo_n "(cached) " >&6
39326 else
39327
39328 ice_cv_have_bzero_decl=no
39329 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39330 ice_re_word='(^|[^a-zA-Z0-9_])'
39331 for header in string.h strings.h stdlib.h; do
39332 # Check for ordinary declaration
39333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39334 /* end confdefs.h.  */
39335 #include <$header>
39336
39337 _ACEOF
39338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39339   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then :
39340   ice_cv_have_bzero_decl=yes
39341 fi
39342 rm -f conftest*
39343
39344 if test "$ice_cv_have_bzero_decl" = yes; then
39345         break
39346 fi
39347 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39349 /* end confdefs.h.  */
39350 #include <$header>
39351
39352 _ACEOF
39353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39354   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39355   ice_cv_have_bzero_decl=yes
39356 fi
39357 rm -f conftest*
39358
39359 if test "$ice_cv_have_bzero_decl" = yes; then
39360         break
39361 fi
39362 done
39363
39364 fi
39365
39366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_bzero_decl" >&5
39367 $as_echo "$ice_cv_have_bzero_decl" >&6; }
39368 if test "$ice_cv_have_bzero_decl" = yes; then
39369
39370 cat >>confdefs.h <<_ACEOF
39371 #define HAVE_BZERO_DECL 1
39372 _ACEOF
39373
39374 fi
39375 fi
39376
39377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
39378 $as_echo_n "checking whether closedir returns void... " >&6; }
39379 if ${ac_cv_func_closedir_void+:} false; then :
39380   $as_echo_n "(cached) " >&6
39381 else
39382   if test "$cross_compiling" = yes; then :
39383   ac_cv_func_closedir_void=yes
39384 else
39385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39386 /* end confdefs.h.  */
39387 $ac_includes_default
39388 #include <$ac_header_dirent>
39389 #ifndef __cplusplus
39390 int closedir ();
39391 #endif
39392
39393 int
39394 main ()
39395 {
39396 return closedir (opendir (".")) != 0;
39397   ;
39398   return 0;
39399 }
39400 _ACEOF
39401 if ac_fn_c_try_run "$LINENO"; then :
39402   ac_cv_func_closedir_void=no
39403 else
39404   ac_cv_func_closedir_void=yes
39405 fi
39406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39407   conftest.$ac_objext conftest.beam conftest.$ac_ext
39408 fi
39409
39410 fi
39411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
39412 $as_echo "$ac_cv_func_closedir_void" >&6; }
39413 if test $ac_cv_func_closedir_void = yes; then
39414
39415 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
39416
39417 fi
39418
39419
39420 ice_have_closelog=no
39421 for ac_func in closelog
39422 do :
39423   ac_fn_c_check_func "$LINENO" "closelog" "ac_cv_func_closelog"
39424 if test "x$ac_cv_func_closelog" = xyes; then :
39425   cat >>confdefs.h <<_ACEOF
39426 #define HAVE_CLOSELOG 1
39427 _ACEOF
39428  ice_have_closelog=yes
39429 fi
39430 done
39431
39432 if test "${ice_have_closelog}" = yes; then
39433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for closelog declaration in syslog.h" >&5
39434 $as_echo_n "checking for closelog declaration in syslog.h... " >&6; }
39435 if ${ice_cv_have_closelog_decl+:} false; then :
39436   $as_echo_n "(cached) " >&6
39437 else
39438
39439 ice_cv_have_closelog_decl=no
39440 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39441 ice_re_word='(^|[^a-zA-Z0-9_])'
39442 for header in syslog.h; do
39443 # Check for ordinary declaration
39444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39445 /* end confdefs.h.  */
39446 #include <$header>
39447
39448 _ACEOF
39449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39450   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then :
39451   ice_cv_have_closelog_decl=yes
39452 fi
39453 rm -f conftest*
39454
39455 if test "$ice_cv_have_closelog_decl" = yes; then
39456         break
39457 fi
39458 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39460 /* end confdefs.h.  */
39461 #include <$header>
39462
39463 _ACEOF
39464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39465   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39466   ice_cv_have_closelog_decl=yes
39467 fi
39468 rm -f conftest*
39469
39470 if test "$ice_cv_have_closelog_decl" = yes; then
39471         break
39472 fi
39473 done
39474
39475 fi
39476
39477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_closelog_decl" >&5
39478 $as_echo "$ice_cv_have_closelog_decl" >&6; }
39479 if test "$ice_cv_have_closelog_decl" = yes; then
39480
39481 cat >>confdefs.h <<_ACEOF
39482 #define HAVE_CLOSELOG_DECL 1
39483 _ACEOF
39484
39485 fi
39486 fi
39487
39488
39489 ice_have_connect=no
39490 for ac_func in connect
39491 do :
39492   ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
39493 if test "x$ac_cv_func_connect" = xyes; then :
39494   cat >>confdefs.h <<_ACEOF
39495 #define HAVE_CONNECT 1
39496 _ACEOF
39497  ice_have_connect=yes
39498 fi
39499 done
39500
39501 if test "${ice_have_connect}" = yes; then
39502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect declaration in sys/types.h sys/socket.h" >&5
39503 $as_echo_n "checking for connect declaration in sys/types.h sys/socket.h... " >&6; }
39504 if ${ice_cv_have_connect_decl+:} false; then :
39505   $as_echo_n "(cached) " >&6
39506 else
39507
39508 ice_cv_have_connect_decl=no
39509 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39510 ice_re_word='(^|[^a-zA-Z0-9_])'
39511 for header in sys/types.h sys/socket.h; do
39512 # Check for ordinary declaration
39513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39514 /* end confdefs.h.  */
39515 #include <$header>
39516
39517 _ACEOF
39518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39519   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then :
39520   ice_cv_have_connect_decl=yes
39521 fi
39522 rm -f conftest*
39523
39524 if test "$ice_cv_have_connect_decl" = yes; then
39525         break
39526 fi
39527 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39529 /* end confdefs.h.  */
39530 #include <$header>
39531
39532 _ACEOF
39533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39534   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39535   ice_cv_have_connect_decl=yes
39536 fi
39537 rm -f conftest*
39538
39539 if test "$ice_cv_have_connect_decl" = yes; then
39540         break
39541 fi
39542 done
39543
39544 fi
39545
39546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_connect_decl" >&5
39547 $as_echo "$ice_cv_have_connect_decl" >&6; }
39548 if test "$ice_cv_have_connect_decl" = yes; then
39549
39550 cat >>confdefs.h <<_ACEOF
39551 #define HAVE_CONNECT_DECL 1
39552 _ACEOF
39553
39554 fi
39555 fi
39556
39557
39558 ice_have_fclose=no
39559 for ac_func in fclose
39560 do :
39561   ac_fn_c_check_func "$LINENO" "fclose" "ac_cv_func_fclose"
39562 if test "x$ac_cv_func_fclose" = xyes; then :
39563   cat >>confdefs.h <<_ACEOF
39564 #define HAVE_FCLOSE 1
39565 _ACEOF
39566  ice_have_fclose=yes
39567 fi
39568 done
39569
39570 if test "${ice_have_fclose}" = yes; then
39571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose declaration in stdio.h" >&5
39572 $as_echo_n "checking for fclose declaration in stdio.h... " >&6; }
39573 if ${ice_cv_have_fclose_decl+:} false; then :
39574   $as_echo_n "(cached) " >&6
39575 else
39576
39577 ice_cv_have_fclose_decl=no
39578 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39579 ice_re_word='(^|[^a-zA-Z0-9_])'
39580 for header in stdio.h; do
39581 # Check for ordinary declaration
39582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39583 /* end confdefs.h.  */
39584 #include <$header>
39585
39586 _ACEOF
39587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39588   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then :
39589   ice_cv_have_fclose_decl=yes
39590 fi
39591 rm -f conftest*
39592
39593 if test "$ice_cv_have_fclose_decl" = yes; then
39594         break
39595 fi
39596 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39598 /* end confdefs.h.  */
39599 #include <$header>
39600
39601 _ACEOF
39602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39603   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39604   ice_cv_have_fclose_decl=yes
39605 fi
39606 rm -f conftest*
39607
39608 if test "$ice_cv_have_fclose_decl" = yes; then
39609         break
39610 fi
39611 done
39612
39613 fi
39614
39615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fclose_decl" >&5
39616 $as_echo "$ice_cv_have_fclose_decl" >&6; }
39617 if test "$ice_cv_have_fclose_decl" = yes; then
39618
39619 cat >>confdefs.h <<_ACEOF
39620 #define HAVE_FCLOSE_DECL 1
39621 _ACEOF
39622
39623 fi
39624 fi
39625
39626
39627 ice_have_fflush=no
39628 for ac_func in fflush
39629 do :
39630   ac_fn_c_check_func "$LINENO" "fflush" "ac_cv_func_fflush"
39631 if test "x$ac_cv_func_fflush" = xyes; then :
39632   cat >>confdefs.h <<_ACEOF
39633 #define HAVE_FFLUSH 1
39634 _ACEOF
39635  ice_have_fflush=yes
39636 fi
39637 done
39638
39639 if test "${ice_have_fflush}" = yes; then
39640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fflush declaration in stdio.h" >&5
39641 $as_echo_n "checking for fflush declaration in stdio.h... " >&6; }
39642 if ${ice_cv_have_fflush_decl+:} false; then :
39643   $as_echo_n "(cached) " >&6
39644 else
39645
39646 ice_cv_have_fflush_decl=no
39647 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39648 ice_re_word='(^|[^a-zA-Z0-9_])'
39649 for header in stdio.h; do
39650 # Check for ordinary declaration
39651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39652 /* end confdefs.h.  */
39653 #include <$header>
39654
39655 _ACEOF
39656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39657   $EGREP "${ice_re_word}fflush[         ]*\(" >/dev/null 2>&1; then :
39658   ice_cv_have_fflush_decl=yes
39659 fi
39660 rm -f conftest*
39661
39662 if test "$ice_cv_have_fflush_decl" = yes; then
39663         break
39664 fi
39665 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39667 /* end confdefs.h.  */
39668 #include <$header>
39669
39670 _ACEOF
39671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39672   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39673   ice_cv_have_fflush_decl=yes
39674 fi
39675 rm -f conftest*
39676
39677 if test "$ice_cv_have_fflush_decl" = yes; then
39678         break
39679 fi
39680 done
39681
39682 fi
39683
39684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fflush_decl" >&5
39685 $as_echo "$ice_cv_have_fflush_decl" >&6; }
39686 if test "$ice_cv_have_fflush_decl" = yes; then
39687
39688 cat >>confdefs.h <<_ACEOF
39689 #define HAVE_FFLUSH_DECL 1
39690 _ACEOF
39691
39692 fi
39693 fi
39694
39695
39696 ice_have_fprintf=no
39697 for ac_func in fprintf
39698 do :
39699   ac_fn_c_check_func "$LINENO" "fprintf" "ac_cv_func_fprintf"
39700 if test "x$ac_cv_func_fprintf" = xyes; then :
39701   cat >>confdefs.h <<_ACEOF
39702 #define HAVE_FPRINTF 1
39703 _ACEOF
39704  ice_have_fprintf=yes
39705 fi
39706 done
39707
39708 if test "${ice_have_fprintf}" = yes; then
39709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fprintf declaration in stdio.h" >&5
39710 $as_echo_n "checking for fprintf declaration in stdio.h... " >&6; }
39711 if ${ice_cv_have_fprintf_decl+:} false; then :
39712   $as_echo_n "(cached) " >&6
39713 else
39714
39715 ice_cv_have_fprintf_decl=no
39716 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39717 ice_re_word='(^|[^a-zA-Z0-9_])'
39718 for header in stdio.h; do
39719 # Check for ordinary declaration
39720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39721 /* end confdefs.h.  */
39722 #include <$header>
39723
39724 _ACEOF
39725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39726   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then :
39727   ice_cv_have_fprintf_decl=yes
39728 fi
39729 rm -f conftest*
39730
39731 if test "$ice_cv_have_fprintf_decl" = yes; then
39732         break
39733 fi
39734 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39736 /* end confdefs.h.  */
39737 #include <$header>
39738
39739 _ACEOF
39740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39741   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39742   ice_cv_have_fprintf_decl=yes
39743 fi
39744 rm -f conftest*
39745
39746 if test "$ice_cv_have_fprintf_decl" = yes; then
39747         break
39748 fi
39749 done
39750
39751 fi
39752
39753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fprintf_decl" >&5
39754 $as_echo "$ice_cv_have_fprintf_decl" >&6; }
39755 if test "$ice_cv_have_fprintf_decl" = yes; then
39756
39757 cat >>confdefs.h <<_ACEOF
39758 #define HAVE_FPRINTF_DECL 1
39759 _ACEOF
39760
39761 fi
39762 fi
39763
39764
39765 ice_have_fputc=no
39766 for ac_func in fputc
39767 do :
39768   ac_fn_c_check_func "$LINENO" "fputc" "ac_cv_func_fputc"
39769 if test "x$ac_cv_func_fputc" = xyes; then :
39770   cat >>confdefs.h <<_ACEOF
39771 #define HAVE_FPUTC 1
39772 _ACEOF
39773  ice_have_fputc=yes
39774 fi
39775 done
39776
39777 if test "${ice_have_fputc}" = yes; then
39778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fputc declaration in stdio.h" >&5
39779 $as_echo_n "checking for fputc declaration in stdio.h... " >&6; }
39780 if ${ice_cv_have_fputc_decl+:} false; then :
39781   $as_echo_n "(cached) " >&6
39782 else
39783
39784 ice_cv_have_fputc_decl=no
39785 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39786 ice_re_word='(^|[^a-zA-Z0-9_])'
39787 for header in stdio.h; do
39788 # Check for ordinary declaration
39789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39790 /* end confdefs.h.  */
39791 #include <$header>
39792
39793 _ACEOF
39794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39795   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then :
39796   ice_cv_have_fputc_decl=yes
39797 fi
39798 rm -f conftest*
39799
39800 if test "$ice_cv_have_fputc_decl" = yes; then
39801         break
39802 fi
39803 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39805 /* end confdefs.h.  */
39806 #include <$header>
39807
39808 _ACEOF
39809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39810   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39811   ice_cv_have_fputc_decl=yes
39812 fi
39813 rm -f conftest*
39814
39815 if test "$ice_cv_have_fputc_decl" = yes; then
39816         break
39817 fi
39818 done
39819
39820 fi
39821
39822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fputc_decl" >&5
39823 $as_echo "$ice_cv_have_fputc_decl" >&6; }
39824 if test "$ice_cv_have_fputc_decl" = yes; then
39825
39826 cat >>confdefs.h <<_ACEOF
39827 #define HAVE_FPUTC_DECL 1
39828 _ACEOF
39829
39830 fi
39831 fi
39832
39833
39834 ice_have_fputs=no
39835 for ac_func in fputs
39836 do :
39837   ac_fn_c_check_func "$LINENO" "fputs" "ac_cv_func_fputs"
39838 if test "x$ac_cv_func_fputs" = xyes; then :
39839   cat >>confdefs.h <<_ACEOF
39840 #define HAVE_FPUTS 1
39841 _ACEOF
39842  ice_have_fputs=yes
39843 fi
39844 done
39845
39846 if test "${ice_have_fputs}" = yes; then
39847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fputs declaration in stdio.h" >&5
39848 $as_echo_n "checking for fputs declaration in stdio.h... " >&6; }
39849 if ${ice_cv_have_fputs_decl+:} false; then :
39850   $as_echo_n "(cached) " >&6
39851 else
39852
39853 ice_cv_have_fputs_decl=no
39854 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39855 ice_re_word='(^|[^a-zA-Z0-9_])'
39856 for header in stdio.h; do
39857 # Check for ordinary declaration
39858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39859 /* end confdefs.h.  */
39860 #include <$header>
39861
39862 _ACEOF
39863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39864   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then :
39865   ice_cv_have_fputs_decl=yes
39866 fi
39867 rm -f conftest*
39868
39869 if test "$ice_cv_have_fputs_decl" = yes; then
39870         break
39871 fi
39872 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39874 /* end confdefs.h.  */
39875 #include <$header>
39876
39877 _ACEOF
39878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39879   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39880   ice_cv_have_fputs_decl=yes
39881 fi
39882 rm -f conftest*
39883
39884 if test "$ice_cv_have_fputs_decl" = yes; then
39885         break
39886 fi
39887 done
39888
39889 fi
39890
39891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fputs_decl" >&5
39892 $as_echo "$ice_cv_have_fputs_decl" >&6; }
39893 if test "$ice_cv_have_fputs_decl" = yes; then
39894
39895 cat >>confdefs.h <<_ACEOF
39896 #define HAVE_FPUTS_DECL 1
39897 _ACEOF
39898
39899 fi
39900 fi
39901
39902
39903 ice_have_fread=no
39904 for ac_func in fread
39905 do :
39906   ac_fn_c_check_func "$LINENO" "fread" "ac_cv_func_fread"
39907 if test "x$ac_cv_func_fread" = xyes; then :
39908   cat >>confdefs.h <<_ACEOF
39909 #define HAVE_FREAD 1
39910 _ACEOF
39911  ice_have_fread=yes
39912 fi
39913 done
39914
39915 if test "${ice_have_fread}" = yes; then
39916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fread declaration in stdio.h stdlib.h" >&5
39917 $as_echo_n "checking for fread declaration in stdio.h stdlib.h... " >&6; }
39918 if ${ice_cv_have_fread_decl+:} false; then :
39919   $as_echo_n "(cached) " >&6
39920 else
39921
39922 ice_cv_have_fread_decl=no
39923 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39924 ice_re_word='(^|[^a-zA-Z0-9_])'
39925 for header in stdio.h stdlib.h; do
39926 # Check for ordinary declaration
39927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39928 /* end confdefs.h.  */
39929 #include <$header>
39930
39931 _ACEOF
39932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39933   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then :
39934   ice_cv_have_fread_decl=yes
39935 fi
39936 rm -f conftest*
39937
39938 if test "$ice_cv_have_fread_decl" = yes; then
39939         break
39940 fi
39941 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39943 /* end confdefs.h.  */
39944 #include <$header>
39945
39946 _ACEOF
39947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39948   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
39949   ice_cv_have_fread_decl=yes
39950 fi
39951 rm -f conftest*
39952
39953 if test "$ice_cv_have_fread_decl" = yes; then
39954         break
39955 fi
39956 done
39957
39958 fi
39959
39960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fread_decl" >&5
39961 $as_echo "$ice_cv_have_fread_decl" >&6; }
39962 if test "$ice_cv_have_fread_decl" = yes; then
39963
39964 cat >>confdefs.h <<_ACEOF
39965 #define HAVE_FREAD_DECL 1
39966 _ACEOF
39967
39968 fi
39969 fi
39970
39971
39972 ice_have_fseek=no
39973 for ac_func in fseek
39974 do :
39975   ac_fn_c_check_func "$LINENO" "fseek" "ac_cv_func_fseek"
39976 if test "x$ac_cv_func_fseek" = xyes; then :
39977   cat >>confdefs.h <<_ACEOF
39978 #define HAVE_FSEEK 1
39979 _ACEOF
39980  ice_have_fseek=yes
39981 fi
39982 done
39983
39984 if test "${ice_have_fseek}" = yes; then
39985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseek declaration in stdio.h" >&5
39986 $as_echo_n "checking for fseek declaration in stdio.h... " >&6; }
39987 if ${ice_cv_have_fseek_decl+:} false; then :
39988   $as_echo_n "(cached) " >&6
39989 else
39990
39991 ice_cv_have_fseek_decl=no
39992 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39993 ice_re_word='(^|[^a-zA-Z0-9_])'
39994 for header in stdio.h; do
39995 # Check for ordinary declaration
39996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39997 /* end confdefs.h.  */
39998 #include <$header>
39999
40000 _ACEOF
40001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40002   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then :
40003   ice_cv_have_fseek_decl=yes
40004 fi
40005 rm -f conftest*
40006
40007 if test "$ice_cv_have_fseek_decl" = yes; then
40008         break
40009 fi
40010 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40012 /* end confdefs.h.  */
40013 #include <$header>
40014
40015 _ACEOF
40016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40017   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40018   ice_cv_have_fseek_decl=yes
40019 fi
40020 rm -f conftest*
40021
40022 if test "$ice_cv_have_fseek_decl" = yes; then
40023         break
40024 fi
40025 done
40026
40027 fi
40028
40029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fseek_decl" >&5
40030 $as_echo "$ice_cv_have_fseek_decl" >&6; }
40031 if test "$ice_cv_have_fseek_decl" = yes; then
40032
40033 cat >>confdefs.h <<_ACEOF
40034 #define HAVE_FSEEK_DECL 1
40035 _ACEOF
40036
40037 fi
40038 fi
40039
40040
40041 ice_have_fwrite=no
40042 for ac_func in fwrite
40043 do :
40044   ac_fn_c_check_func "$LINENO" "fwrite" "ac_cv_func_fwrite"
40045 if test "x$ac_cv_func_fwrite" = xyes; then :
40046   cat >>confdefs.h <<_ACEOF
40047 #define HAVE_FWRITE 1
40048 _ACEOF
40049  ice_have_fwrite=yes
40050 fi
40051 done
40052
40053 if test "${ice_have_fwrite}" = yes; then
40054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fwrite declaration in stdio.h stdlib.h" >&5
40055 $as_echo_n "checking for fwrite declaration in stdio.h stdlib.h... " >&6; }
40056 if ${ice_cv_have_fwrite_decl+:} false; then :
40057   $as_echo_n "(cached) " >&6
40058 else
40059
40060 ice_cv_have_fwrite_decl=no
40061 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40062 ice_re_word='(^|[^a-zA-Z0-9_])'
40063 for header in stdio.h stdlib.h; do
40064 # Check for ordinary declaration
40065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40066 /* end confdefs.h.  */
40067 #include <$header>
40068
40069 _ACEOF
40070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40071   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then :
40072   ice_cv_have_fwrite_decl=yes
40073 fi
40074 rm -f conftest*
40075
40076 if test "$ice_cv_have_fwrite_decl" = yes; then
40077         break
40078 fi
40079 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40081 /* end confdefs.h.  */
40082 #include <$header>
40083
40084 _ACEOF
40085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40086   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40087   ice_cv_have_fwrite_decl=yes
40088 fi
40089 rm -f conftest*
40090
40091 if test "$ice_cv_have_fwrite_decl" = yes; then
40092         break
40093 fi
40094 done
40095
40096 fi
40097
40098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_fwrite_decl" >&5
40099 $as_echo "$ice_cv_have_fwrite_decl" >&6; }
40100 if test "$ice_cv_have_fwrite_decl" = yes; then
40101
40102 cat >>confdefs.h <<_ACEOF
40103 #define HAVE_FWRITE_DECL 1
40104 _ACEOF
40105
40106 fi
40107 fi
40108
40109 for ac_func in getgrgid_r
40110 do :
40111   ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"
40112 if test "x$ac_cv_func_getgrgid_r" = xyes; then :
40113   cat >>confdefs.h <<_ACEOF
40114 #define HAVE_GETGRGID_R 1
40115 _ACEOF
40116
40117 fi
40118 done
40119
40120 for ac_func in getpwuid_r
40121 do :
40122   ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
40123 if test "x$ac_cv_func_getpwuid_r" = xyes; then :
40124   cat >>confdefs.h <<_ACEOF
40125 #define HAVE_GETPWUID_R 1
40126 _ACEOF
40127
40128 fi
40129 done
40130
40131
40132 ice_have_gethostname=no
40133 for ac_func in gethostname
40134 do :
40135   ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
40136 if test "x$ac_cv_func_gethostname" = xyes; then :
40137   cat >>confdefs.h <<_ACEOF
40138 #define HAVE_GETHOSTNAME 1
40139 _ACEOF
40140  ice_have_gethostname=yes
40141 fi
40142 done
40143
40144 if test "${ice_have_gethostname}" = yes; then
40145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname declaration in unistd.h" >&5
40146 $as_echo_n "checking for gethostname declaration in unistd.h... " >&6; }
40147 if ${ice_cv_have_gethostname_decl+:} false; then :
40148   $as_echo_n "(cached) " >&6
40149 else
40150
40151 ice_cv_have_gethostname_decl=no
40152 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40153 ice_re_word='(^|[^a-zA-Z0-9_])'
40154 for header in unistd.h; do
40155 # Check for ordinary declaration
40156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40157 /* end confdefs.h.  */
40158 #include <$header>
40159
40160 _ACEOF
40161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40162   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then :
40163   ice_cv_have_gethostname_decl=yes
40164 fi
40165 rm -f conftest*
40166
40167 if test "$ice_cv_have_gethostname_decl" = yes; then
40168         break
40169 fi
40170 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40172 /* end confdefs.h.  */
40173 #include <$header>
40174
40175 _ACEOF
40176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40177   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40178   ice_cv_have_gethostname_decl=yes
40179 fi
40180 rm -f conftest*
40181
40182 if test "$ice_cv_have_gethostname_decl" = yes; then
40183         break
40184 fi
40185 done
40186
40187 fi
40188
40189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_gethostname_decl" >&5
40190 $as_echo "$ice_cv_have_gethostname_decl" >&6; }
40191 if test "$ice_cv_have_gethostname_decl" = yes; then
40192
40193 cat >>confdefs.h <<_ACEOF
40194 #define HAVE_GETHOSTNAME_DECL 1
40195 _ACEOF
40196
40197 fi
40198 fi
40199
40200
40201 ice_have_getopt=no
40202 for ac_func in getopt
40203 do :
40204   ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
40205 if test "x$ac_cv_func_getopt" = xyes; then :
40206   cat >>confdefs.h <<_ACEOF
40207 #define HAVE_GETOPT 1
40208 _ACEOF
40209  ice_have_getopt=yes
40210 fi
40211 done
40212
40213 if test "${ice_have_getopt}" = yes; then
40214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
40215 $as_echo_n "checking for getopt declaration in stdlib.h unistd.h libc.h... " >&6; }
40216 if ${ice_cv_have_getopt_decl+:} false; then :
40217   $as_echo_n "(cached) " >&6
40218 else
40219
40220 ice_cv_have_getopt_decl=no
40221 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40222 ice_re_word='(^|[^a-zA-Z0-9_])'
40223 for header in stdlib.h unistd.h libc.h; do
40224 # Check for ordinary declaration
40225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40226 /* end confdefs.h.  */
40227 #include <$header>
40228
40229 _ACEOF
40230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40231   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then :
40232   ice_cv_have_getopt_decl=yes
40233 fi
40234 rm -f conftest*
40235
40236 if test "$ice_cv_have_getopt_decl" = yes; then
40237         break
40238 fi
40239 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40241 /* end confdefs.h.  */
40242 #include <$header>
40243
40244 _ACEOF
40245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40246   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40247   ice_cv_have_getopt_decl=yes
40248 fi
40249 rm -f conftest*
40250
40251 if test "$ice_cv_have_getopt_decl" = yes; then
40252         break
40253 fi
40254 done
40255
40256 fi
40257
40258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getopt_decl" >&5
40259 $as_echo "$ice_cv_have_getopt_decl" >&6; }
40260 if test "$ice_cv_have_getopt_decl" = yes; then
40261
40262 cat >>confdefs.h <<_ACEOF
40263 #define HAVE_GETOPT_DECL 1
40264 _ACEOF
40265
40266 fi
40267 fi
40268
40269
40270 ice_have_getpeername=no
40271 for ac_func in getpeername
40272 do :
40273   ac_fn_c_check_func "$LINENO" "getpeername" "ac_cv_func_getpeername"
40274 if test "x$ac_cv_func_getpeername" = xyes; then :
40275   cat >>confdefs.h <<_ACEOF
40276 #define HAVE_GETPEERNAME 1
40277 _ACEOF
40278  ice_have_getpeername=yes
40279 fi
40280 done
40281
40282 if test "${ice_have_getpeername}" = yes; then
40283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
40284 $as_echo_n "checking for getpeername declaration in sys/types.h sys/socket.h... " >&6; }
40285 if ${ice_cv_have_getpeername_decl+:} false; then :
40286   $as_echo_n "(cached) " >&6
40287 else
40288
40289 ice_cv_have_getpeername_decl=no
40290 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40291 ice_re_word='(^|[^a-zA-Z0-9_])'
40292 for header in sys/types.h sys/socket.h; do
40293 # Check for ordinary declaration
40294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40295 /* end confdefs.h.  */
40296 #include <$header>
40297
40298 _ACEOF
40299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40300   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then :
40301   ice_cv_have_getpeername_decl=yes
40302 fi
40303 rm -f conftest*
40304
40305 if test "$ice_cv_have_getpeername_decl" = yes; then
40306         break
40307 fi
40308 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40310 /* end confdefs.h.  */
40311 #include <$header>
40312
40313 _ACEOF
40314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40315   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40316   ice_cv_have_getpeername_decl=yes
40317 fi
40318 rm -f conftest*
40319
40320 if test "$ice_cv_have_getpeername_decl" = yes; then
40321         break
40322 fi
40323 done
40324
40325 fi
40326
40327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getpeername_decl" >&5
40328 $as_echo "$ice_cv_have_getpeername_decl" >&6; }
40329 if test "$ice_cv_have_getpeername_decl" = yes; then
40330
40331 cat >>confdefs.h <<_ACEOF
40332 #define HAVE_GETPEERNAME_DECL 1
40333 _ACEOF
40334
40335 fi
40336 fi
40337
40338 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
40339 if test "x$ac_cv_func_getpgrp" = xyes; then :
40340
40341 fi
40342
40343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
40344 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
40345 if ${ac_cv_func_getpgrp_void+:} false; then :
40346   $as_echo_n "(cached) " >&6
40347 else
40348   # Use it with a single arg.
40349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40350 /* end confdefs.h.  */
40351 $ac_includes_default
40352 int
40353 main ()
40354 {
40355 getpgrp (0);
40356   ;
40357   return 0;
40358 }
40359 _ACEOF
40360 if ac_fn_c_try_compile "$LINENO"; then :
40361   ac_cv_func_getpgrp_void=no
40362 else
40363   ac_cv_func_getpgrp_void=yes
40364 fi
40365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40366
40367 fi
40368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
40369 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
40370 if test $ac_cv_func_getpgrp_void = yes; then
40371
40372 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
40373
40374 fi
40375
40376
40377 ice_have_getsockname=no
40378 for ac_func in getsockname
40379 do :
40380   ac_fn_c_check_func "$LINENO" "getsockname" "ac_cv_func_getsockname"
40381 if test "x$ac_cv_func_getsockname" = xyes; then :
40382   cat >>confdefs.h <<_ACEOF
40383 #define HAVE_GETSOCKNAME 1
40384 _ACEOF
40385  ice_have_getsockname=yes
40386 fi
40387 done
40388
40389 if test "${ice_have_getsockname}" = yes; then
40390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
40391 $as_echo_n "checking for getsockname declaration in sys/types.h sys/socket.h... " >&6; }
40392 if ${ice_cv_have_getsockname_decl+:} false; then :
40393   $as_echo_n "(cached) " >&6
40394 else
40395
40396 ice_cv_have_getsockname_decl=no
40397 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40398 ice_re_word='(^|[^a-zA-Z0-9_])'
40399 for header in sys/types.h sys/socket.h; do
40400 # Check for ordinary declaration
40401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40402 /* end confdefs.h.  */
40403 #include <$header>
40404
40405 _ACEOF
40406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40407   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then :
40408   ice_cv_have_getsockname_decl=yes
40409 fi
40410 rm -f conftest*
40411
40412 if test "$ice_cv_have_getsockname_decl" = yes; then
40413         break
40414 fi
40415 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40417 /* end confdefs.h.  */
40418 #include <$header>
40419
40420 _ACEOF
40421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40422   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40423   ice_cv_have_getsockname_decl=yes
40424 fi
40425 rm -f conftest*
40426
40427 if test "$ice_cv_have_getsockname_decl" = yes; then
40428         break
40429 fi
40430 done
40431
40432 fi
40433
40434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getsockname_decl" >&5
40435 $as_echo "$ice_cv_have_getsockname_decl" >&6; }
40436 if test "$ice_cv_have_getsockname_decl" = yes; then
40437
40438 cat >>confdefs.h <<_ACEOF
40439 #define HAVE_GETSOCKNAME_DECL 1
40440 _ACEOF
40441
40442 fi
40443 fi
40444
40445
40446 ice_have_getsockopt=no
40447 for ac_func in getsockopt
40448 do :
40449   ac_fn_c_check_func "$LINENO" "getsockopt" "ac_cv_func_getsockopt"
40450 if test "x$ac_cv_func_getsockopt" = xyes; then :
40451   cat >>confdefs.h <<_ACEOF
40452 #define HAVE_GETSOCKOPT 1
40453 _ACEOF
40454  ice_have_getsockopt=yes
40455 fi
40456 done
40457
40458 if test "${ice_have_getsockopt}" = yes; then
40459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
40460 $as_echo_n "checking for getsockopt declaration in sys/types.h sys/socket.h... " >&6; }
40461 if ${ice_cv_have_getsockopt_decl+:} false; then :
40462   $as_echo_n "(cached) " >&6
40463 else
40464
40465 ice_cv_have_getsockopt_decl=no
40466 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40467 ice_re_word='(^|[^a-zA-Z0-9_])'
40468 for header in sys/types.h sys/socket.h; do
40469 # Check for ordinary declaration
40470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40471 /* end confdefs.h.  */
40472 #include <$header>
40473
40474 _ACEOF
40475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40476   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then :
40477   ice_cv_have_getsockopt_decl=yes
40478 fi
40479 rm -f conftest*
40480
40481 if test "$ice_cv_have_getsockopt_decl" = yes; then
40482         break
40483 fi
40484 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40486 /* end confdefs.h.  */
40487 #include <$header>
40488
40489 _ACEOF
40490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40491   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40492   ice_cv_have_getsockopt_decl=yes
40493 fi
40494 rm -f conftest*
40495
40496 if test "$ice_cv_have_getsockopt_decl" = yes; then
40497         break
40498 fi
40499 done
40500
40501 fi
40502
40503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_getsockopt_decl" >&5
40504 $as_echo "$ice_cv_have_getsockopt_decl" >&6; }
40505 if test "$ice_cv_have_getsockopt_decl" = yes; then
40506
40507 cat >>confdefs.h <<_ACEOF
40508 #define HAVE_GETSOCKOPT_DECL 1
40509 _ACEOF
40510
40511 fi
40512 fi
40513
40514
40515 ice_have_initgroups=no
40516 for ac_func in initgroups
40517 do :
40518   ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
40519 if test "x$ac_cv_func_initgroups" = xyes; then :
40520   cat >>confdefs.h <<_ACEOF
40521 #define HAVE_INITGROUPS 1
40522 _ACEOF
40523  ice_have_initgroups=yes
40524 fi
40525 done
40526
40527 if test "${ice_have_initgroups}" = yes; then
40528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
40529 $as_echo_n "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... " >&6; }
40530 if ${ice_cv_have_initgroups_decl+:} false; then :
40531   $as_echo_n "(cached) " >&6
40532 else
40533
40534 ice_cv_have_initgroups_decl=no
40535 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40536 ice_re_word='(^|[^a-zA-Z0-9_])'
40537 for header in grp.h sys/types.h unistd.h libc.h; do
40538 # Check for ordinary declaration
40539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40540 /* end confdefs.h.  */
40541 #include <$header>
40542
40543 _ACEOF
40544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40545   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then :
40546   ice_cv_have_initgroups_decl=yes
40547 fi
40548 rm -f conftest*
40549
40550 if test "$ice_cv_have_initgroups_decl" = yes; then
40551         break
40552 fi
40553 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40555 /* end confdefs.h.  */
40556 #include <$header>
40557
40558 _ACEOF
40559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40560   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40561   ice_cv_have_initgroups_decl=yes
40562 fi
40563 rm -f conftest*
40564
40565 if test "$ice_cv_have_initgroups_decl" = yes; then
40566         break
40567 fi
40568 done
40569
40570 fi
40571
40572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_initgroups_decl" >&5
40573 $as_echo "$ice_cv_have_initgroups_decl" >&6; }
40574 if test "$ice_cv_have_initgroups_decl" = yes; then
40575
40576 cat >>confdefs.h <<_ACEOF
40577 #define HAVE_INITGROUPS_DECL 1
40578 _ACEOF
40579
40580 fi
40581 fi
40582
40583
40584 ice_have_ioctl=no
40585 for ac_func in ioctl
40586 do :
40587   ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
40588 if test "x$ac_cv_func_ioctl" = xyes; then :
40589   cat >>confdefs.h <<_ACEOF
40590 #define HAVE_IOCTL 1
40591 _ACEOF
40592  ice_have_ioctl=yes
40593 fi
40594 done
40595
40596 if test "${ice_have_ioctl}" = yes; then
40597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
40598 $as_echo_n "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... " >&6; }
40599 if ${ice_cv_have_ioctl_decl+:} false; then :
40600   $as_echo_n "(cached) " >&6
40601 else
40602
40603 ice_cv_have_ioctl_decl=no
40604 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40605 ice_re_word='(^|[^a-zA-Z0-9_])'
40606 for header in sys/ioctl.h unistd.h libc.h; do
40607 # Check for ordinary declaration
40608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40609 /* end confdefs.h.  */
40610 #include <$header>
40611
40612 _ACEOF
40613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40614   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then :
40615   ice_cv_have_ioctl_decl=yes
40616 fi
40617 rm -f conftest*
40618
40619 if test "$ice_cv_have_ioctl_decl" = yes; then
40620         break
40621 fi
40622 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40624 /* end confdefs.h.  */
40625 #include <$header>
40626
40627 _ACEOF
40628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40629   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40630   ice_cv_have_ioctl_decl=yes
40631 fi
40632 rm -f conftest*
40633
40634 if test "$ice_cv_have_ioctl_decl" = yes; then
40635         break
40636 fi
40637 done
40638
40639 fi
40640
40641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ioctl_decl" >&5
40642 $as_echo "$ice_cv_have_ioctl_decl" >&6; }
40643 if test "$ice_cv_have_ioctl_decl" = yes; then
40644
40645 cat >>confdefs.h <<_ACEOF
40646 #define HAVE_IOCTL_DECL 1
40647 _ACEOF
40648
40649 fi
40650 fi
40651
40652
40653 ice_have_isnormal=no
40654 for ac_func in isnormal
40655 do :
40656   ac_fn_c_check_func "$LINENO" "isnormal" "ac_cv_func_isnormal"
40657 if test "x$ac_cv_func_isnormal" = xyes; then :
40658   cat >>confdefs.h <<_ACEOF
40659 #define HAVE_ISNORMAL 1
40660 _ACEOF
40661  ice_have_isnormal=yes
40662 fi
40663 done
40664
40665 if test "${ice_have_isnormal}" = yes; then
40666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnormal declaration in math.h" >&5
40667 $as_echo_n "checking for isnormal declaration in math.h... " >&6; }
40668 if ${ice_cv_have_isnormal_decl+:} false; then :
40669   $as_echo_n "(cached) " >&6
40670 else
40671
40672 ice_cv_have_isnormal_decl=no
40673 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40674 ice_re_word='(^|[^a-zA-Z0-9_])'
40675 for header in math.h; do
40676 # Check for ordinary declaration
40677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40678 /* end confdefs.h.  */
40679 #include <$header>
40680
40681 _ACEOF
40682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40683   $EGREP "${ice_re_word}isnormal[       ]*\(" >/dev/null 2>&1; then :
40684   ice_cv_have_isnormal_decl=yes
40685 fi
40686 rm -f conftest*
40687
40688 if test "$ice_cv_have_isnormal_decl" = yes; then
40689         break
40690 fi
40691 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40693 /* end confdefs.h.  */
40694 #include <$header>
40695
40696 _ACEOF
40697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40698   $EGREP "${ice_re_word}isnormal[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40699   ice_cv_have_isnormal_decl=yes
40700 fi
40701 rm -f conftest*
40702
40703 if test "$ice_cv_have_isnormal_decl" = yes; then
40704         break
40705 fi
40706 done
40707
40708 fi
40709
40710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_isnormal_decl" >&5
40711 $as_echo "$ice_cv_have_isnormal_decl" >&6; }
40712 if test "$ice_cv_have_isnormal_decl" = yes; then
40713
40714 cat >>confdefs.h <<_ACEOF
40715 #define HAVE_ISNORMAL_DECL 1
40716 _ACEOF
40717
40718 fi
40719 fi
40720
40721
40722 ice_have_listen=no
40723 for ac_func in listen
40724 do :
40725   ac_fn_c_check_func "$LINENO" "listen" "ac_cv_func_listen"
40726 if test "x$ac_cv_func_listen" = xyes; then :
40727   cat >>confdefs.h <<_ACEOF
40728 #define HAVE_LISTEN 1
40729 _ACEOF
40730  ice_have_listen=yes
40731 fi
40732 done
40733
40734 if test "${ice_have_listen}" = yes; then
40735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for listen declaration in sys/types.h sys/socket.h" >&5
40736 $as_echo_n "checking for listen declaration in sys/types.h sys/socket.h... " >&6; }
40737 if ${ice_cv_have_listen_decl+:} false; then :
40738   $as_echo_n "(cached) " >&6
40739 else
40740
40741 ice_cv_have_listen_decl=no
40742 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40743 ice_re_word='(^|[^a-zA-Z0-9_])'
40744 for header in sys/types.h sys/socket.h; do
40745 # Check for ordinary declaration
40746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40747 /* end confdefs.h.  */
40748 #include <$header>
40749
40750 _ACEOF
40751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40752   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then :
40753   ice_cv_have_listen_decl=yes
40754 fi
40755 rm -f conftest*
40756
40757 if test "$ice_cv_have_listen_decl" = yes; then
40758         break
40759 fi
40760 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40762 /* end confdefs.h.  */
40763 #include <$header>
40764
40765 _ACEOF
40766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40767   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40768   ice_cv_have_listen_decl=yes
40769 fi
40770 rm -f conftest*
40771
40772 if test "$ice_cv_have_listen_decl" = yes; then
40773         break
40774 fi
40775 done
40776
40777 fi
40778
40779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_listen_decl" >&5
40780 $as_echo "$ice_cv_have_listen_decl" >&6; }
40781 if test "$ice_cv_have_listen_decl" = yes; then
40782
40783 cat >>confdefs.h <<_ACEOF
40784 #define HAVE_LISTEN_DECL 1
40785 _ACEOF
40786
40787 fi
40788 fi
40789
40790
40791 ice_have_lstat=no
40792 for ac_func in lstat
40793 do :
40794   ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
40795 if test "x$ac_cv_func_lstat" = xyes; then :
40796   cat >>confdefs.h <<_ACEOF
40797 #define HAVE_LSTAT 1
40798 _ACEOF
40799  ice_have_lstat=yes
40800 fi
40801 done
40802
40803 if test "${ice_have_lstat}" = yes; then
40804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat declaration in sys/types.h sys/stat.h" >&5
40805 $as_echo_n "checking for lstat declaration in sys/types.h sys/stat.h... " >&6; }
40806 if ${ice_cv_have_lstat_decl+:} false; then :
40807   $as_echo_n "(cached) " >&6
40808 else
40809
40810 ice_cv_have_lstat_decl=no
40811 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40812 ice_re_word='(^|[^a-zA-Z0-9_])'
40813 for header in sys/types.h sys/stat.h; do
40814 # Check for ordinary declaration
40815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40816 /* end confdefs.h.  */
40817 #include <$header>
40818
40819 _ACEOF
40820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40821   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then :
40822   ice_cv_have_lstat_decl=yes
40823 fi
40824 rm -f conftest*
40825
40826 if test "$ice_cv_have_lstat_decl" = yes; then
40827         break
40828 fi
40829 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40831 /* end confdefs.h.  */
40832 #include <$header>
40833
40834 _ACEOF
40835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40836   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40837   ice_cv_have_lstat_decl=yes
40838 fi
40839 rm -f conftest*
40840
40841 if test "$ice_cv_have_lstat_decl" = yes; then
40842         break
40843 fi
40844 done
40845
40846 fi
40847
40848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_lstat_decl" >&5
40849 $as_echo "$ice_cv_have_lstat_decl" >&6; }
40850 if test "$ice_cv_have_lstat_decl" = yes; then
40851
40852 cat >>confdefs.h <<_ACEOF
40853 #define HAVE_LSTAT_DECL 1
40854 _ACEOF
40855
40856 fi
40857 fi
40858
40859
40860 ice_have_malloc=no
40861 for ac_func in malloc
40862 do :
40863   ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
40864 if test "x$ac_cv_func_malloc" = xyes; then :
40865   cat >>confdefs.h <<_ACEOF
40866 #define HAVE_MALLOC 1
40867 _ACEOF
40868  ice_have_malloc=yes
40869 fi
40870 done
40871
40872 if test "${ice_have_malloc}" = yes; then
40873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc declaration in stdlib.h" >&5
40874 $as_echo_n "checking for malloc declaration in stdlib.h... " >&6; }
40875 if ${ice_cv_have_malloc_decl+:} false; then :
40876   $as_echo_n "(cached) " >&6
40877 else
40878
40879 ice_cv_have_malloc_decl=no
40880 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40881 ice_re_word='(^|[^a-zA-Z0-9_])'
40882 for header in stdlib.h; do
40883 # Check for ordinary declaration
40884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40885 /* end confdefs.h.  */
40886 #include <$header>
40887
40888 _ACEOF
40889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40890   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then :
40891   ice_cv_have_malloc_decl=yes
40892 fi
40893 rm -f conftest*
40894
40895 if test "$ice_cv_have_malloc_decl" = yes; then
40896         break
40897 fi
40898 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40900 /* end confdefs.h.  */
40901 #include <$header>
40902
40903 _ACEOF
40904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40905   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40906   ice_cv_have_malloc_decl=yes
40907 fi
40908 rm -f conftest*
40909
40910 if test "$ice_cv_have_malloc_decl" = yes; then
40911         break
40912 fi
40913 done
40914
40915 fi
40916
40917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_malloc_decl" >&5
40918 $as_echo "$ice_cv_have_malloc_decl" >&6; }
40919 if test "$ice_cv_have_malloc_decl" = yes; then
40920
40921 cat >>confdefs.h <<_ACEOF
40922 #define HAVE_MALLOC_DECL 1
40923 _ACEOF
40924
40925 fi
40926 fi
40927
40928
40929 ice_have_memmove=no
40930 for ac_func in memmove
40931 do :
40932   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
40933 if test "x$ac_cv_func_memmove" = xyes; then :
40934   cat >>confdefs.h <<_ACEOF
40935 #define HAVE_MEMMOVE 1
40936 _ACEOF
40937  ice_have_memmove=yes
40938 fi
40939 done
40940
40941 if test "${ice_have_memmove}" = yes; then
40942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memmove declaration in string.h strings.h" >&5
40943 $as_echo_n "checking for memmove declaration in string.h strings.h... " >&6; }
40944 if ${ice_cv_have_memmove_decl+:} false; then :
40945   $as_echo_n "(cached) " >&6
40946 else
40947
40948 ice_cv_have_memmove_decl=no
40949 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40950 ice_re_word='(^|[^a-zA-Z0-9_])'
40951 for header in string.h strings.h; do
40952 # Check for ordinary declaration
40953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40954 /* end confdefs.h.  */
40955 #include <$header>
40956
40957 _ACEOF
40958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40959   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then :
40960   ice_cv_have_memmove_decl=yes
40961 fi
40962 rm -f conftest*
40963
40964 if test "$ice_cv_have_memmove_decl" = yes; then
40965         break
40966 fi
40967 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40969 /* end confdefs.h.  */
40970 #include <$header>
40971
40972 _ACEOF
40973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40974   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
40975   ice_cv_have_memmove_decl=yes
40976 fi
40977 rm -f conftest*
40978
40979 if test "$ice_cv_have_memmove_decl" = yes; then
40980         break
40981 fi
40982 done
40983
40984 fi
40985
40986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_memmove_decl" >&5
40987 $as_echo "$ice_cv_have_memmove_decl" >&6; }
40988 if test "$ice_cv_have_memmove_decl" = yes; then
40989
40990 cat >>confdefs.h <<_ACEOF
40991 #define HAVE_MEMMOVE_DECL 1
40992 _ACEOF
40993
40994 fi
40995 fi
40996
40997
40998 ice_have_memset=no
40999 for ac_func in memset
41000 do :
41001   ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
41002 if test "x$ac_cv_func_memset" = xyes; then :
41003   cat >>confdefs.h <<_ACEOF
41004 #define HAVE_MEMSET 1
41005 _ACEOF
41006  ice_have_memset=yes
41007 fi
41008 done
41009
41010 if test "${ice_have_memset}" = yes; then
41011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memset declaration in string.h strings.h" >&5
41012 $as_echo_n "checking for memset declaration in string.h strings.h... " >&6; }
41013 if ${ice_cv_have_memset_decl+:} false; then :
41014   $as_echo_n "(cached) " >&6
41015 else
41016
41017 ice_cv_have_memset_decl=no
41018 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41019 ice_re_word='(^|[^a-zA-Z0-9_])'
41020 for header in string.h strings.h; do
41021 # Check for ordinary declaration
41022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41023 /* end confdefs.h.  */
41024 #include <$header>
41025
41026 _ACEOF
41027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41028   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then :
41029   ice_cv_have_memset_decl=yes
41030 fi
41031 rm -f conftest*
41032
41033 if test "$ice_cv_have_memset_decl" = yes; then
41034         break
41035 fi
41036 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41038 /* end confdefs.h.  */
41039 #include <$header>
41040
41041 _ACEOF
41042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41043   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41044   ice_cv_have_memset_decl=yes
41045 fi
41046 rm -f conftest*
41047
41048 if test "$ice_cv_have_memset_decl" = yes; then
41049         break
41050 fi
41051 done
41052
41053 fi
41054
41055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_memset_decl" >&5
41056 $as_echo "$ice_cv_have_memset_decl" >&6; }
41057 if test "$ice_cv_have_memset_decl" = yes; then
41058
41059 cat >>confdefs.h <<_ACEOF
41060 #define HAVE_MEMSET_DECL 1
41061 _ACEOF
41062
41063 fi
41064 fi
41065
41066
41067 ice_have_mkstemp=no
41068 for ac_func in mkstemp
41069 do :
41070   ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
41071 if test "x$ac_cv_func_mkstemp" = xyes; then :
41072   cat >>confdefs.h <<_ACEOF
41073 #define HAVE_MKSTEMP 1
41074 _ACEOF
41075  ice_have_mkstemp=yes
41076 fi
41077 done
41078
41079 if test "${ice_have_mkstemp}" = yes; then
41080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkstemp declaration in stdlib.h" >&5
41081 $as_echo_n "checking for mkstemp declaration in stdlib.h... " >&6; }
41082 if ${ice_cv_have_mkstemp_decl+:} false; then :
41083   $as_echo_n "(cached) " >&6
41084 else
41085
41086 ice_cv_have_mkstemp_decl=no
41087 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41088 ice_re_word='(^|[^a-zA-Z0-9_])'
41089 for header in stdlib.h; do
41090 # Check for ordinary declaration
41091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41092 /* end confdefs.h.  */
41093 #include <$header>
41094
41095 _ACEOF
41096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41097   $EGREP "${ice_re_word}mkstemp[        ]*\(" >/dev/null 2>&1; then :
41098   ice_cv_have_mkstemp_decl=yes
41099 fi
41100 rm -f conftest*
41101
41102 if test "$ice_cv_have_mkstemp_decl" = yes; then
41103         break
41104 fi
41105 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41107 /* end confdefs.h.  */
41108 #include <$header>
41109
41110 _ACEOF
41111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41112   $EGREP "${ice_re_word}mkstemp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41113   ice_cv_have_mkstemp_decl=yes
41114 fi
41115 rm -f conftest*
41116
41117 if test "$ice_cv_have_mkstemp_decl" = yes; then
41118         break
41119 fi
41120 done
41121
41122 fi
41123
41124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mkstemp_decl" >&5
41125 $as_echo "$ice_cv_have_mkstemp_decl" >&6; }
41126 if test "$ice_cv_have_mkstemp_decl" = yes; then
41127
41128 cat >>confdefs.h <<_ACEOF
41129 #define HAVE_MKSTEMP_DECL 1
41130 _ACEOF
41131
41132 fi
41133 fi
41134
41135
41136 ice_have_mktemp=no
41137 for ac_func in mktemp
41138 do :
41139   ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
41140 if test "x$ac_cv_func_mktemp" = xyes; then :
41141   cat >>confdefs.h <<_ACEOF
41142 #define HAVE_MKTEMP 1
41143 _ACEOF
41144  ice_have_mktemp=yes
41145 fi
41146 done
41147
41148 if test "${ice_have_mktemp}" = yes; then
41149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mktemp declaration in stdlib.h" >&5
41150 $as_echo_n "checking for mktemp declaration in stdlib.h... " >&6; }
41151 if ${ice_cv_have_mktemp_decl+:} false; then :
41152   $as_echo_n "(cached) " >&6
41153 else
41154
41155 ice_cv_have_mktemp_decl=no
41156 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41157 ice_re_word='(^|[^a-zA-Z0-9_])'
41158 for header in stdlib.h; do
41159 # Check for ordinary declaration
41160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41161 /* end confdefs.h.  */
41162 #include <$header>
41163
41164 _ACEOF
41165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41166   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then :
41167   ice_cv_have_mktemp_decl=yes
41168 fi
41169 rm -f conftest*
41170
41171 if test "$ice_cv_have_mktemp_decl" = yes; then
41172         break
41173 fi
41174 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41176 /* end confdefs.h.  */
41177 #include <$header>
41178
41179 _ACEOF
41180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41181   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41182   ice_cv_have_mktemp_decl=yes
41183 fi
41184 rm -f conftest*
41185
41186 if test "$ice_cv_have_mktemp_decl" = yes; then
41187         break
41188 fi
41189 done
41190
41191 fi
41192
41193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mktemp_decl" >&5
41194 $as_echo "$ice_cv_have_mktemp_decl" >&6; }
41195 if test "$ice_cv_have_mktemp_decl" = yes; then
41196
41197 cat >>confdefs.h <<_ACEOF
41198 #define HAVE_MKTEMP_DECL 1
41199 _ACEOF
41200
41201 fi
41202 fi
41203
41204
41205 ice_have_mktime=no
41206 for ac_func in mktime
41207 do :
41208   ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
41209 if test "x$ac_cv_func_mktime" = xyes; then :
41210   cat >>confdefs.h <<_ACEOF
41211 #define HAVE_MKTIME 1
41212 _ACEOF
41213  ice_have_mktime=yes
41214 fi
41215 done
41216
41217 if test "${ice_have_mktime}" = yes; then
41218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mktime declaration in time.h sys/time.h" >&5
41219 $as_echo_n "checking for mktime declaration in time.h sys/time.h... " >&6; }
41220 if ${ice_cv_have_mktime_decl+:} false; then :
41221   $as_echo_n "(cached) " >&6
41222 else
41223
41224 ice_cv_have_mktime_decl=no
41225 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41226 ice_re_word='(^|[^a-zA-Z0-9_])'
41227 for header in time.h sys/time.h; do
41228 # Check for ordinary declaration
41229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41230 /* end confdefs.h.  */
41231 #include <$header>
41232
41233 _ACEOF
41234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41235   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then :
41236   ice_cv_have_mktime_decl=yes
41237 fi
41238 rm -f conftest*
41239
41240 if test "$ice_cv_have_mktime_decl" = yes; then
41241         break
41242 fi
41243 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41245 /* end confdefs.h.  */
41246 #include <$header>
41247
41248 _ACEOF
41249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41250   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41251   ice_cv_have_mktime_decl=yes
41252 fi
41253 rm -f conftest*
41254
41255 if test "$ice_cv_have_mktime_decl" = yes; then
41256         break
41257 fi
41258 done
41259
41260 fi
41261
41262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_mktime_decl" >&5
41263 $as_echo "$ice_cv_have_mktime_decl" >&6; }
41264 if test "$ice_cv_have_mktime_decl" = yes; then
41265
41266 cat >>confdefs.h <<_ACEOF
41267 #define HAVE_MKTIME_DECL 1
41268 _ACEOF
41269
41270 fi
41271 fi
41272
41273 for ac_func in on_exit
41274 do :
41275   ac_fn_c_check_func "$LINENO" "on_exit" "ac_cv_func_on_exit"
41276 if test "x$ac_cv_func_on_exit" = xyes; then :
41277   cat >>confdefs.h <<_ACEOF
41278 #define HAVE_ON_EXIT 1
41279 _ACEOF
41280
41281 fi
41282 done
41283
41284
41285 ice_have_openlog=no
41286 for ac_func in openlog
41287 do :
41288   ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
41289 if test "x$ac_cv_func_openlog" = xyes; then :
41290   cat >>confdefs.h <<_ACEOF
41291 #define HAVE_OPENLOG 1
41292 _ACEOF
41293  ice_have_openlog=yes
41294 fi
41295 done
41296
41297 if test "${ice_have_openlog}" = yes; then
41298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openlog declaration in syslog.h" >&5
41299 $as_echo_n "checking for openlog declaration in syslog.h... " >&6; }
41300 if ${ice_cv_have_openlog_decl+:} false; then :
41301   $as_echo_n "(cached) " >&6
41302 else
41303
41304 ice_cv_have_openlog_decl=no
41305 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41306 ice_re_word='(^|[^a-zA-Z0-9_])'
41307 for header in syslog.h; do
41308 # Check for ordinary declaration
41309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41310 /* end confdefs.h.  */
41311 #include <$header>
41312
41313 _ACEOF
41314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41315   $EGREP "${ice_re_word}openlog[        ]*\(" >/dev/null 2>&1; then :
41316   ice_cv_have_openlog_decl=yes
41317 fi
41318 rm -f conftest*
41319
41320 if test "$ice_cv_have_openlog_decl" = yes; then
41321         break
41322 fi
41323 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41325 /* end confdefs.h.  */
41326 #include <$header>
41327
41328 _ACEOF
41329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41330   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41331   ice_cv_have_openlog_decl=yes
41332 fi
41333 rm -f conftest*
41334
41335 if test "$ice_cv_have_openlog_decl" = yes; then
41336         break
41337 fi
41338 done
41339
41340 fi
41341
41342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_openlog_decl" >&5
41343 $as_echo "$ice_cv_have_openlog_decl" >&6; }
41344 if test "$ice_cv_have_openlog_decl" = yes; then
41345
41346 cat >>confdefs.h <<_ACEOF
41347 #define HAVE_OPENLOG_DECL 1
41348 _ACEOF
41349
41350 fi
41351 fi
41352
41353
41354 ice_have_pclose=no
41355 for ac_func in pclose
41356 do :
41357   ac_fn_c_check_func "$LINENO" "pclose" "ac_cv_func_pclose"
41358 if test "x$ac_cv_func_pclose" = xyes; then :
41359   cat >>confdefs.h <<_ACEOF
41360 #define HAVE_PCLOSE 1
41361 _ACEOF
41362  ice_have_pclose=yes
41363 fi
41364 done
41365
41366 if test "${ice_have_pclose}" = yes; then
41367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pclose declaration in stdio.h" >&5
41368 $as_echo_n "checking for pclose declaration in stdio.h... " >&6; }
41369 if ${ice_cv_have_pclose_decl+:} false; then :
41370   $as_echo_n "(cached) " >&6
41371 else
41372
41373 ice_cv_have_pclose_decl=no
41374 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41375 ice_re_word='(^|[^a-zA-Z0-9_])'
41376 for header in stdio.h; do
41377 # Check for ordinary declaration
41378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41379 /* end confdefs.h.  */
41380 #include <$header>
41381
41382 _ACEOF
41383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41384   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then :
41385   ice_cv_have_pclose_decl=yes
41386 fi
41387 rm -f conftest*
41388
41389 if test "$ice_cv_have_pclose_decl" = yes; then
41390         break
41391 fi
41392 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41394 /* end confdefs.h.  */
41395 #include <$header>
41396
41397 _ACEOF
41398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41399   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41400   ice_cv_have_pclose_decl=yes
41401 fi
41402 rm -f conftest*
41403
41404 if test "$ice_cv_have_pclose_decl" = yes; then
41405         break
41406 fi
41407 done
41408
41409 fi
41410
41411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_pclose_decl" >&5
41412 $as_echo "$ice_cv_have_pclose_decl" >&6; }
41413 if test "$ice_cv_have_pclose_decl" = yes; then
41414
41415 cat >>confdefs.h <<_ACEOF
41416 #define HAVE_PCLOSE_DECL 1
41417 _ACEOF
41418
41419 fi
41420 fi
41421
41422
41423 ice_have_perror=no
41424 for ac_func in perror
41425 do :
41426   ac_fn_c_check_func "$LINENO" "perror" "ac_cv_func_perror"
41427 if test "x$ac_cv_func_perror" = xyes; then :
41428   cat >>confdefs.h <<_ACEOF
41429 #define HAVE_PERROR 1
41430 _ACEOF
41431  ice_have_perror=yes
41432 fi
41433 done
41434
41435 if test "${ice_have_perror}" = yes; then
41436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perror declaration in stdio.h" >&5
41437 $as_echo_n "checking for perror declaration in stdio.h... " >&6; }
41438 if ${ice_cv_have_perror_decl+:} false; then :
41439   $as_echo_n "(cached) " >&6
41440 else
41441
41442 ice_cv_have_perror_decl=no
41443 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41444 ice_re_word='(^|[^a-zA-Z0-9_])'
41445 for header in stdio.h; do
41446 # Check for ordinary declaration
41447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41448 /* end confdefs.h.  */
41449 #include <$header>
41450
41451 _ACEOF
41452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41453   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then :
41454   ice_cv_have_perror_decl=yes
41455 fi
41456 rm -f conftest*
41457
41458 if test "$ice_cv_have_perror_decl" = yes; then
41459         break
41460 fi
41461 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41463 /* end confdefs.h.  */
41464 #include <$header>
41465
41466 _ACEOF
41467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41468   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41469   ice_cv_have_perror_decl=yes
41470 fi
41471 rm -f conftest*
41472
41473 if test "$ice_cv_have_perror_decl" = yes; then
41474         break
41475 fi
41476 done
41477
41478 fi
41479
41480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_perror_decl" >&5
41481 $as_echo "$ice_cv_have_perror_decl" >&6; }
41482 if test "$ice_cv_have_perror_decl" = yes; then
41483
41484 cat >>confdefs.h <<_ACEOF
41485 #define HAVE_PERROR_DECL 1
41486 _ACEOF
41487
41488 fi
41489 fi
41490
41491
41492 ice_have_printf=no
41493 for ac_func in printf
41494 do :
41495   ac_fn_c_check_func "$LINENO" "printf" "ac_cv_func_printf"
41496 if test "x$ac_cv_func_printf" = xyes; then :
41497   cat >>confdefs.h <<_ACEOF
41498 #define HAVE_PRINTF 1
41499 _ACEOF
41500  ice_have_printf=yes
41501 fi
41502 done
41503
41504 if test "${ice_have_printf}" = yes; then
41505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf declaration in stdio.h" >&5
41506 $as_echo_n "checking for printf declaration in stdio.h... " >&6; }
41507 if ${ice_cv_have_printf_decl+:} false; then :
41508   $as_echo_n "(cached) " >&6
41509 else
41510
41511 ice_cv_have_printf_decl=no
41512 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41513 ice_re_word='(^|[^a-zA-Z0-9_])'
41514 for header in stdio.h; do
41515 # Check for ordinary declaration
41516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41517 /* end confdefs.h.  */
41518 #include <$header>
41519
41520 _ACEOF
41521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41522   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then :
41523   ice_cv_have_printf_decl=yes
41524 fi
41525 rm -f conftest*
41526
41527 if test "$ice_cv_have_printf_decl" = yes; then
41528         break
41529 fi
41530 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41532 /* end confdefs.h.  */
41533 #include <$header>
41534
41535 _ACEOF
41536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41537   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41538   ice_cv_have_printf_decl=yes
41539 fi
41540 rm -f conftest*
41541
41542 if test "$ice_cv_have_printf_decl" = yes; then
41543         break
41544 fi
41545 done
41546
41547 fi
41548
41549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_printf_decl" >&5
41550 $as_echo "$ice_cv_have_printf_decl" >&6; }
41551 if test "$ice_cv_have_printf_decl" = yes; then
41552
41553 cat >>confdefs.h <<_ACEOF
41554 #define HAVE_PRINTF_DECL 1
41555 _ACEOF
41556
41557 fi
41558 fi
41559
41560 for ac_func in putenv
41561 do :
41562   ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
41563 if test "x$ac_cv_func_putenv" = xyes; then :
41564   cat >>confdefs.h <<_ACEOF
41565 #define HAVE_PUTENV 1
41566 _ACEOF
41567
41568 fi
41569 done
41570
41571
41572 ice_have_puts=no
41573 for ac_func in puts
41574 do :
41575   ac_fn_c_check_func "$LINENO" "puts" "ac_cv_func_puts"
41576 if test "x$ac_cv_func_puts" = xyes; then :
41577   cat >>confdefs.h <<_ACEOF
41578 #define HAVE_PUTS 1
41579 _ACEOF
41580  ice_have_puts=yes
41581 fi
41582 done
41583
41584 if test "${ice_have_puts}" = yes; then
41585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts declaration in stdio.h" >&5
41586 $as_echo_n "checking for puts declaration in stdio.h... " >&6; }
41587 if ${ice_cv_have_puts_decl+:} false; then :
41588   $as_echo_n "(cached) " >&6
41589 else
41590
41591 ice_cv_have_puts_decl=no
41592 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41593 ice_re_word='(^|[^a-zA-Z0-9_])'
41594 for header in stdio.h; do
41595 # Check for ordinary declaration
41596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41597 /* end confdefs.h.  */
41598 #include <$header>
41599
41600 _ACEOF
41601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41602   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then :
41603   ice_cv_have_puts_decl=yes
41604 fi
41605 rm -f conftest*
41606
41607 if test "$ice_cv_have_puts_decl" = yes; then
41608         break
41609 fi
41610 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41612 /* end confdefs.h.  */
41613 #include <$header>
41614
41615 _ACEOF
41616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41617   $EGREP "${ice_re_word}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41618   ice_cv_have_puts_decl=yes
41619 fi
41620 rm -f conftest*
41621
41622 if test "$ice_cv_have_puts_decl" = yes; then
41623         break
41624 fi
41625 done
41626
41627 fi
41628
41629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_puts_decl" >&5
41630 $as_echo "$ice_cv_have_puts_decl" >&6; }
41631 if test "$ice_cv_have_puts_decl" = yes; then
41632
41633 cat >>confdefs.h <<_ACEOF
41634 #define HAVE_PUTS_DECL 1
41635 _ACEOF
41636
41637 fi
41638 fi
41639
41640
41641 ice_have_realloc=no
41642 for ac_func in realloc
41643 do :
41644   ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
41645 if test "x$ac_cv_func_realloc" = xyes; then :
41646   cat >>confdefs.h <<_ACEOF
41647 #define HAVE_REALLOC 1
41648 _ACEOF
41649  ice_have_realloc=yes
41650 fi
41651 done
41652
41653 if test "${ice_have_realloc}" = yes; then
41654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for realloc declaration in stdlib.h" >&5
41655 $as_echo_n "checking for realloc declaration in stdlib.h... " >&6; }
41656 if ${ice_cv_have_realloc_decl+:} false; then :
41657   $as_echo_n "(cached) " >&6
41658 else
41659
41660 ice_cv_have_realloc_decl=no
41661 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41662 ice_re_word='(^|[^a-zA-Z0-9_])'
41663 for header in stdlib.h; do
41664 # Check for ordinary declaration
41665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41666 /* end confdefs.h.  */
41667 #include <$header>
41668
41669 _ACEOF
41670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41671   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then :
41672   ice_cv_have_realloc_decl=yes
41673 fi
41674 rm -f conftest*
41675
41676 if test "$ice_cv_have_realloc_decl" = yes; then
41677         break
41678 fi
41679 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41681 /* end confdefs.h.  */
41682 #include <$header>
41683
41684 _ACEOF
41685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41686   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41687   ice_cv_have_realloc_decl=yes
41688 fi
41689 rm -f conftest*
41690
41691 if test "$ice_cv_have_realloc_decl" = yes; then
41692         break
41693 fi
41694 done
41695
41696 fi
41697
41698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_realloc_decl" >&5
41699 $as_echo "$ice_cv_have_realloc_decl" >&6; }
41700 if test "$ice_cv_have_realloc_decl" = yes; then
41701
41702 cat >>confdefs.h <<_ACEOF
41703 #define HAVE_REALLOC_DECL 1
41704 _ACEOF
41705
41706 fi
41707 fi
41708
41709
41710 ice_have_recvfrom=no
41711 for ac_func in recvfrom
41712 do :
41713   ac_fn_c_check_func "$LINENO" "recvfrom" "ac_cv_func_recvfrom"
41714 if test "x$ac_cv_func_recvfrom" = xyes; then :
41715   cat >>confdefs.h <<_ACEOF
41716 #define HAVE_RECVFROM 1
41717 _ACEOF
41718  ice_have_recvfrom=yes
41719 fi
41720 done
41721
41722 if test "${ice_have_recvfrom}" = yes; then
41723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
41724 $as_echo_n "checking for recvfrom declaration in sys/types.h sys/socket.h... " >&6; }
41725 if ${ice_cv_have_recvfrom_decl+:} false; then :
41726   $as_echo_n "(cached) " >&6
41727 else
41728
41729 ice_cv_have_recvfrom_decl=no
41730 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41731 ice_re_word='(^|[^a-zA-Z0-9_])'
41732 for header in sys/types.h sys/socket.h; do
41733 # Check for ordinary declaration
41734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41735 /* end confdefs.h.  */
41736 #include <$header>
41737
41738 _ACEOF
41739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41740   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then :
41741   ice_cv_have_recvfrom_decl=yes
41742 fi
41743 rm -f conftest*
41744
41745 if test "$ice_cv_have_recvfrom_decl" = yes; then
41746         break
41747 fi
41748 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41750 /* end confdefs.h.  */
41751 #include <$header>
41752
41753 _ACEOF
41754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41755   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41756   ice_cv_have_recvfrom_decl=yes
41757 fi
41758 rm -f conftest*
41759
41760 if test "$ice_cv_have_recvfrom_decl" = yes; then
41761         break
41762 fi
41763 done
41764
41765 fi
41766
41767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_recvfrom_decl" >&5
41768 $as_echo "$ice_cv_have_recvfrom_decl" >&6; }
41769 if test "$ice_cv_have_recvfrom_decl" = yes; then
41770
41771 cat >>confdefs.h <<_ACEOF
41772 #define HAVE_RECVFROM_DECL 1
41773 _ACEOF
41774
41775 fi
41776 fi
41777
41778
41779 ice_have_remove=no
41780 for ac_func in remove
41781 do :
41782   ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
41783 if test "x$ac_cv_func_remove" = xyes; then :
41784   cat >>confdefs.h <<_ACEOF
41785 #define HAVE_REMOVE 1
41786 _ACEOF
41787  ice_have_remove=yes
41788 fi
41789 done
41790
41791 if test "${ice_have_remove}" = yes; then
41792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove declaration in stdio.h" >&5
41793 $as_echo_n "checking for remove declaration in stdio.h... " >&6; }
41794 if ${ice_cv_have_remove_decl+:} false; then :
41795   $as_echo_n "(cached) " >&6
41796 else
41797
41798 ice_cv_have_remove_decl=no
41799 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41800 ice_re_word='(^|[^a-zA-Z0-9_])'
41801 for header in stdio.h; do
41802 # Check for ordinary declaration
41803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41804 /* end confdefs.h.  */
41805 #include <$header>
41806
41807 _ACEOF
41808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41809   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then :
41810   ice_cv_have_remove_decl=yes
41811 fi
41812 rm -f conftest*
41813
41814 if test "$ice_cv_have_remove_decl" = yes; then
41815         break
41816 fi
41817 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41819 /* end confdefs.h.  */
41820 #include <$header>
41821
41822 _ACEOF
41823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41824   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41825   ice_cv_have_remove_decl=yes
41826 fi
41827 rm -f conftest*
41828
41829 if test "$ice_cv_have_remove_decl" = yes; then
41830         break
41831 fi
41832 done
41833
41834 fi
41835
41836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_remove_decl" >&5
41837 $as_echo "$ice_cv_have_remove_decl" >&6; }
41838 if test "$ice_cv_have_remove_decl" = yes; then
41839
41840 cat >>confdefs.h <<_ACEOF
41841 #define HAVE_REMOVE_DECL 1
41842 _ACEOF
41843
41844 fi
41845 fi
41846
41847
41848 ice_have_rename=no
41849 for ac_func in rename
41850 do :
41851   ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename"
41852 if test "x$ac_cv_func_rename" = xyes; then :
41853   cat >>confdefs.h <<_ACEOF
41854 #define HAVE_RENAME 1
41855 _ACEOF
41856  ice_have_rename=yes
41857 fi
41858 done
41859
41860 if test "${ice_have_rename}" = yes; then
41861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename declaration in stdio.h" >&5
41862 $as_echo_n "checking for rename declaration in stdio.h... " >&6; }
41863 if ${ice_cv_have_rename_decl+:} false; then :
41864   $as_echo_n "(cached) " >&6
41865 else
41866
41867 ice_cv_have_rename_decl=no
41868 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41869 ice_re_word='(^|[^a-zA-Z0-9_])'
41870 for header in stdio.h; do
41871 # Check for ordinary declaration
41872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41873 /* end confdefs.h.  */
41874 #include <$header>
41875
41876 _ACEOF
41877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41878   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then :
41879   ice_cv_have_rename_decl=yes
41880 fi
41881 rm -f conftest*
41882
41883 if test "$ice_cv_have_rename_decl" = yes; then
41884         break
41885 fi
41886 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41888 /* end confdefs.h.  */
41889 #include <$header>
41890
41891 _ACEOF
41892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41893   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41894   ice_cv_have_rename_decl=yes
41895 fi
41896 rm -f conftest*
41897
41898 if test "$ice_cv_have_rename_decl" = yes; then
41899         break
41900 fi
41901 done
41902
41903 fi
41904
41905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_rename_decl" >&5
41906 $as_echo "$ice_cv_have_rename_decl" >&6; }
41907 if test "$ice_cv_have_rename_decl" = yes; then
41908
41909 cat >>confdefs.h <<_ACEOF
41910 #define HAVE_RENAME_DECL 1
41911 _ACEOF
41912
41913 fi
41914 fi
41915
41916
41917 ice_have_rewind=no
41918 for ac_func in rewind
41919 do :
41920   ac_fn_c_check_func "$LINENO" "rewind" "ac_cv_func_rewind"
41921 if test "x$ac_cv_func_rewind" = xyes; then :
41922   cat >>confdefs.h <<_ACEOF
41923 #define HAVE_REWIND 1
41924 _ACEOF
41925  ice_have_rewind=yes
41926 fi
41927 done
41928
41929 if test "${ice_have_rewind}" = yes; then
41930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rewind declaration in stdio.h" >&5
41931 $as_echo_n "checking for rewind declaration in stdio.h... " >&6; }
41932 if ${ice_cv_have_rewind_decl+:} false; then :
41933   $as_echo_n "(cached) " >&6
41934 else
41935
41936 ice_cv_have_rewind_decl=no
41937 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41938 ice_re_word='(^|[^a-zA-Z0-9_])'
41939 for header in stdio.h; do
41940 # Check for ordinary declaration
41941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41942 /* end confdefs.h.  */
41943 #include <$header>
41944
41945 _ACEOF
41946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41947   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then :
41948   ice_cv_have_rewind_decl=yes
41949 fi
41950 rm -f conftest*
41951
41952 if test "$ice_cv_have_rewind_decl" = yes; then
41953         break
41954 fi
41955 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41957 /* end confdefs.h.  */
41958 #include <$header>
41959
41960 _ACEOF
41961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41962   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
41963   ice_cv_have_rewind_decl=yes
41964 fi
41965 rm -f conftest*
41966
41967 if test "$ice_cv_have_rewind_decl" = yes; then
41968         break
41969 fi
41970 done
41971
41972 fi
41973
41974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_rewind_decl" >&5
41975 $as_echo "$ice_cv_have_rewind_decl" >&6; }
41976 if test "$ice_cv_have_rewind_decl" = yes; then
41977
41978 cat >>confdefs.h <<_ACEOF
41979 #define HAVE_REWIND_DECL 1
41980 _ACEOF
41981
41982 fi
41983 fi
41984
41985
41986 ice_have_ruserok=no
41987 for ac_func in ruserok
41988 do :
41989   ac_fn_c_check_func "$LINENO" "ruserok" "ac_cv_func_ruserok"
41990 if test "x$ac_cv_func_ruserok" = xyes; then :
41991   cat >>confdefs.h <<_ACEOF
41992 #define HAVE_RUSEROK 1
41993 _ACEOF
41994  ice_have_ruserok=yes
41995 fi
41996 done
41997
41998 if test "${ice_have_ruserok}" = yes; then
41999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
42000 $as_echo_n "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... " >&6; }
42001 if ${ice_cv_have_ruserok_decl+:} false; then :
42002   $as_echo_n "(cached) " >&6
42003 else
42004
42005 ice_cv_have_ruserok_decl=no
42006 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42007 ice_re_word='(^|[^a-zA-Z0-9_])'
42008 for header in netdb.h sys/socket.h libc.h unistd.h; do
42009 # Check for ordinary declaration
42010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42011 /* end confdefs.h.  */
42012 #include <$header>
42013
42014 _ACEOF
42015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42016   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then :
42017   ice_cv_have_ruserok_decl=yes
42018 fi
42019 rm -f conftest*
42020
42021 if test "$ice_cv_have_ruserok_decl" = yes; then
42022         break
42023 fi
42024 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42026 /* end confdefs.h.  */
42027 #include <$header>
42028
42029 _ACEOF
42030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42031   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42032   ice_cv_have_ruserok_decl=yes
42033 fi
42034 rm -f conftest*
42035
42036 if test "$ice_cv_have_ruserok_decl" = yes; then
42037         break
42038 fi
42039 done
42040
42041 fi
42042
42043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ruserok_decl" >&5
42044 $as_echo "$ice_cv_have_ruserok_decl" >&6; }
42045 if test "$ice_cv_have_ruserok_decl" = yes; then
42046
42047 cat >>confdefs.h <<_ACEOF
42048 #define HAVE_RUSEROK_DECL 1
42049 _ACEOF
42050
42051 fi
42052 fi
42053
42054
42055 ice_have_select=no
42056 for ac_func in select
42057 do :
42058   ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
42059 if test "x$ac_cv_func_select" = xyes; then :
42060   cat >>confdefs.h <<_ACEOF
42061 #define HAVE_SELECT 1
42062 _ACEOF
42063  ice_have_select=yes
42064 fi
42065 done
42066
42067 if test "${ice_have_select}" = yes; then
42068 { $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
42069 $as_echo_n "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... " >&6; }
42070 if ${ice_cv_have_select_decl+:} false; then :
42071   $as_echo_n "(cached) " >&6
42072 else
42073
42074 ice_cv_have_select_decl=no
42075 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42076 ice_re_word='(^|[^a-zA-Z0-9_])'
42077 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
42078 # Check for ordinary declaration
42079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42080 /* end confdefs.h.  */
42081 #include <$header>
42082
42083 _ACEOF
42084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42085   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then :
42086   ice_cv_have_select_decl=yes
42087 fi
42088 rm -f conftest*
42089
42090 if test "$ice_cv_have_select_decl" = yes; then
42091         break
42092 fi
42093 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42095 /* end confdefs.h.  */
42096 #include <$header>
42097
42098 _ACEOF
42099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42100   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42101   ice_cv_have_select_decl=yes
42102 fi
42103 rm -f conftest*
42104
42105 if test "$ice_cv_have_select_decl" = yes; then
42106         break
42107 fi
42108 done
42109
42110 fi
42111
42112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_select_decl" >&5
42113 $as_echo "$ice_cv_have_select_decl" >&6; }
42114 if test "$ice_cv_have_select_decl" = yes; then
42115
42116 cat >>confdefs.h <<_ACEOF
42117 #define HAVE_SELECT_DECL 1
42118 _ACEOF
42119
42120 fi
42121 fi
42122
42123
42124
42125         for ac_header in sys/time.h \
42126             sys/types.h \
42127             sys/select.h \
42128             sys/socket.h \
42129             unistd.h \
42130
42131 do :
42132   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42133 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
42134 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
42135   cat >>confdefs.h <<_ACEOF
42136 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42137 _ACEOF
42138
42139 fi
42140
42141 done
42142
42143
42144         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select() argument type" >&5
42145 $as_echo_n "checking for select() argument type... " >&6; }
42146 if ${amanda_cv_select_arg_type+:} false; then :
42147   $as_echo_n "(cached) " >&6
42148 else
42149
42150                 rm -f conftest.c
42151                 cat <<EOF >conftest.$ac_ext
42152 #include "confdefs.h"
42153 #ifdef TIME_WITH_SYS_TIME
42154 #  include <sys/time.h>
42155 #  include <time.h>
42156 #else
42157 #  ifdef HAVE_SYS_TIME_H
42158 #    include <sys/time.h>
42159 #  else
42160 #    include <time.h>
42161 #  endif
42162 #endif
42163 #ifdef HAVE_SYS_TYPES_H
42164 # include <sys/types.h>
42165 #endif
42166 #ifdef HAVE_SYS_SELECT_H
42167 #  include <sys/select.h>
42168 #endif
42169 #ifdef HAVE_SYS_SOCKET_H
42170 #  include <sys/socket.h>
42171 #endif
42172 #ifdef HAVE_UNISTD_H
42173 # include <unistd.h>
42174 #endif
42175
42176 int main()
42177 {
42178 #ifdef FD_SET_POINTER
42179         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
42180 #else
42181         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
42182 #endif
42183         return 0;
42184 }
42185 EOF
42186
42187                 # Figure out the select argument type by first trying to
42188                 # compile with the fd_set argument.  If the compile fails,
42189                 # then we know to use the int.  If it suceeds, then try to
42190                 # use the int.  If the int fails, then use fd_set.  If
42191                 # both suceeed, then do a line count on the number of
42192                 # lines that the compiler spit out, assuming that the
42193                 # compile outputing more lines had more errors.
42194                 amanda_cv_select_arg_type=no
42195                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
42196                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
42197                 if test $? -ne 0; then
42198                     amanda_cv_select_arg_type=int
42199                 fi
42200                 if test "$amanda_cv_select_arg_type" = no; then
42201                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
42202                     if test $? -ne 0; then
42203                         amanda_cv_select_arg_type=fd_set
42204                     fi
42205                 fi
42206                 if test "$amanda_cv_select_arg_type" = no; then
42207                     wc_fdset=`wc -l <conftest.fd_set`
42208                     wc_int=`wc -l <conftest.int`
42209                     if test "$wc_fdset" -le "$wc_int"; then
42210                         amanda_cv_select_arg_type=fd_set
42211                     else
42212                         amanda_cv_select_arg_type=int
42213                     fi
42214                 fi
42215                 rm -f conftest*
42216
42217
42218 fi
42219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_select_arg_type" >&5
42220 $as_echo "$amanda_cv_select_arg_type" >&6; }
42221
42222 cat >>confdefs.h <<_ACEOF
42223 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
42224 _ACEOF
42225
42226
42227
42228
42229 ice_have_sendto=no
42230 for ac_func in sendto
42231 do :
42232   ac_fn_c_check_func "$LINENO" "sendto" "ac_cv_func_sendto"
42233 if test "x$ac_cv_func_sendto" = xyes; then :
42234   cat >>confdefs.h <<_ACEOF
42235 #define HAVE_SENDTO 1
42236 _ACEOF
42237  ice_have_sendto=yes
42238 fi
42239 done
42240
42241 if test "${ice_have_sendto}" = yes; then
42242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendto declaration in sys/types.h sys/socket.h" >&5
42243 $as_echo_n "checking for sendto declaration in sys/types.h sys/socket.h... " >&6; }
42244 if ${ice_cv_have_sendto_decl+:} false; then :
42245   $as_echo_n "(cached) " >&6
42246 else
42247
42248 ice_cv_have_sendto_decl=no
42249 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42250 ice_re_word='(^|[^a-zA-Z0-9_])'
42251 for header in sys/types.h sys/socket.h; do
42252 # Check for ordinary declaration
42253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42254 /* end confdefs.h.  */
42255 #include <$header>
42256
42257 _ACEOF
42258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42259   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then :
42260   ice_cv_have_sendto_decl=yes
42261 fi
42262 rm -f conftest*
42263
42264 if test "$ice_cv_have_sendto_decl" = yes; then
42265         break
42266 fi
42267 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42269 /* end confdefs.h.  */
42270 #include <$header>
42271
42272 _ACEOF
42273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42274   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42275   ice_cv_have_sendto_decl=yes
42276 fi
42277 rm -f conftest*
42278
42279 if test "$ice_cv_have_sendto_decl" = yes; then
42280         break
42281 fi
42282 done
42283
42284 fi
42285
42286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_sendto_decl" >&5
42287 $as_echo "$ice_cv_have_sendto_decl" >&6; }
42288 if test "$ice_cv_have_sendto_decl" = yes; then
42289
42290 cat >>confdefs.h <<_ACEOF
42291 #define HAVE_SENDTO_DECL 1
42292 _ACEOF
42293
42294 fi
42295 fi
42296
42297
42298 ice_have_setegid=no
42299 for ac_func in setegid
42300 do :
42301   ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
42302 if test "x$ac_cv_func_setegid" = xyes; then :
42303   cat >>confdefs.h <<_ACEOF
42304 #define HAVE_SETEGID 1
42305 _ACEOF
42306  ice_have_setegid=yes
42307 fi
42308 done
42309
42310 if test "${ice_have_setegid}" = yes; then
42311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setegid declaration in unistd.h" >&5
42312 $as_echo_n "checking for setegid declaration in unistd.h... " >&6; }
42313 if ${ice_cv_have_setegid_decl+:} false; then :
42314   $as_echo_n "(cached) " >&6
42315 else
42316
42317 ice_cv_have_setegid_decl=no
42318 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42319 ice_re_word='(^|[^a-zA-Z0-9_])'
42320 for header in unistd.h; do
42321 # Check for ordinary declaration
42322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42323 /* end confdefs.h.  */
42324 #include <$header>
42325
42326 _ACEOF
42327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42328   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then :
42329   ice_cv_have_setegid_decl=yes
42330 fi
42331 rm -f conftest*
42332
42333 if test "$ice_cv_have_setegid_decl" = yes; then
42334         break
42335 fi
42336 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42338 /* end confdefs.h.  */
42339 #include <$header>
42340
42341 _ACEOF
42342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42343   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42344   ice_cv_have_setegid_decl=yes
42345 fi
42346 rm -f conftest*
42347
42348 if test "$ice_cv_have_setegid_decl" = yes; then
42349         break
42350 fi
42351 done
42352
42353 fi
42354
42355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setegid_decl" >&5
42356 $as_echo "$ice_cv_have_setegid_decl" >&6; }
42357 if test "$ice_cv_have_setegid_decl" = yes; then
42358
42359 cat >>confdefs.h <<_ACEOF
42360 #define HAVE_SETEGID_DECL 1
42361 _ACEOF
42362
42363 fi
42364 fi
42365
42366
42367 ice_have_seteuid=no
42368 for ac_func in seteuid
42369 do :
42370   ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
42371 if test "x$ac_cv_func_seteuid" = xyes; then :
42372   cat >>confdefs.h <<_ACEOF
42373 #define HAVE_SETEUID 1
42374 _ACEOF
42375  ice_have_seteuid=yes
42376 fi
42377 done
42378
42379 if test "${ice_have_seteuid}" = yes; then
42380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seteuid declaration in unistd.h" >&5
42381 $as_echo_n "checking for seteuid declaration in unistd.h... " >&6; }
42382 if ${ice_cv_have_seteuid_decl+:} false; then :
42383   $as_echo_n "(cached) " >&6
42384 else
42385
42386 ice_cv_have_seteuid_decl=no
42387 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42388 ice_re_word='(^|[^a-zA-Z0-9_])'
42389 for header in unistd.h; do
42390 # Check for ordinary declaration
42391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42392 /* end confdefs.h.  */
42393 #include <$header>
42394
42395 _ACEOF
42396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42397   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then :
42398   ice_cv_have_seteuid_decl=yes
42399 fi
42400 rm -f conftest*
42401
42402 if test "$ice_cv_have_seteuid_decl" = yes; then
42403         break
42404 fi
42405 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42407 /* end confdefs.h.  */
42408 #include <$header>
42409
42410 _ACEOF
42411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42412   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42413   ice_cv_have_seteuid_decl=yes
42414 fi
42415 rm -f conftest*
42416
42417 if test "$ice_cv_have_seteuid_decl" = yes; then
42418         break
42419 fi
42420 done
42421
42422 fi
42423
42424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_seteuid_decl" >&5
42425 $as_echo "$ice_cv_have_seteuid_decl" >&6; }
42426 if test "$ice_cv_have_seteuid_decl" = yes; then
42427
42428 cat >>confdefs.h <<_ACEOF
42429 #define HAVE_SETEUID_DECL 1
42430 _ACEOF
42431
42432 fi
42433 fi
42434
42435
42436 ice_have_setresgid=no
42437 for ac_func in setresgid
42438 do :
42439   ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
42440 if test "x$ac_cv_func_setresgid" = xyes; then :
42441   cat >>confdefs.h <<_ACEOF
42442 #define HAVE_SETRESGID 1
42443 _ACEOF
42444  ice_have_setresgid=yes
42445 fi
42446 done
42447
42448 if test "${ice_have_setresgid}" = yes; then
42449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setresgid declaration in unistd.h" >&5
42450 $as_echo_n "checking for setresgid declaration in unistd.h... " >&6; }
42451 if ${ice_cv_have_setresgid_decl+:} false; then :
42452   $as_echo_n "(cached) " >&6
42453 else
42454
42455 ice_cv_have_setresgid_decl=no
42456 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42457 ice_re_word='(^|[^a-zA-Z0-9_])'
42458 for header in unistd.h; do
42459 # Check for ordinary declaration
42460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42461 /* end confdefs.h.  */
42462 #include <$header>
42463
42464 _ACEOF
42465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42466   $EGREP "${ice_re_word}setresgid[      ]*\(" >/dev/null 2>&1; then :
42467   ice_cv_have_setresgid_decl=yes
42468 fi
42469 rm -f conftest*
42470
42471 if test "$ice_cv_have_setresgid_decl" = yes; then
42472         break
42473 fi
42474 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42476 /* end confdefs.h.  */
42477 #include <$header>
42478
42479 _ACEOF
42480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42481   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42482   ice_cv_have_setresgid_decl=yes
42483 fi
42484 rm -f conftest*
42485
42486 if test "$ice_cv_have_setresgid_decl" = yes; then
42487         break
42488 fi
42489 done
42490
42491 fi
42492
42493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setresgid_decl" >&5
42494 $as_echo "$ice_cv_have_setresgid_decl" >&6; }
42495 if test "$ice_cv_have_setresgid_decl" = yes; then
42496
42497 cat >>confdefs.h <<_ACEOF
42498 #define HAVE_SETRESGID_DECL 1
42499 _ACEOF
42500
42501 fi
42502 fi
42503
42504
42505 ice_have_setresuid=no
42506 for ac_func in setresuid
42507 do :
42508   ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
42509 if test "x$ac_cv_func_setresuid" = xyes; then :
42510   cat >>confdefs.h <<_ACEOF
42511 #define HAVE_SETRESUID 1
42512 _ACEOF
42513  ice_have_setresuid=yes
42514 fi
42515 done
42516
42517 if test "${ice_have_setresuid}" = yes; then
42518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setresuid declaration in unistd.h" >&5
42519 $as_echo_n "checking for setresuid declaration in unistd.h... " >&6; }
42520 if ${ice_cv_have_setresuid_decl+:} false; then :
42521   $as_echo_n "(cached) " >&6
42522 else
42523
42524 ice_cv_have_setresuid_decl=no
42525 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42526 ice_re_word='(^|[^a-zA-Z0-9_])'
42527 for header in unistd.h; do
42528 # Check for ordinary declaration
42529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42530 /* end confdefs.h.  */
42531 #include <$header>
42532
42533 _ACEOF
42534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42535   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then :
42536   ice_cv_have_setresuid_decl=yes
42537 fi
42538 rm -f conftest*
42539
42540 if test "$ice_cv_have_setresuid_decl" = yes; then
42541         break
42542 fi
42543 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42545 /* end confdefs.h.  */
42546 #include <$header>
42547
42548 _ACEOF
42549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42550   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42551   ice_cv_have_setresuid_decl=yes
42552 fi
42553 rm -f conftest*
42554
42555 if test "$ice_cv_have_setresuid_decl" = yes; then
42556         break
42557 fi
42558 done
42559
42560 fi
42561
42562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setresuid_decl" >&5
42563 $as_echo "$ice_cv_have_setresuid_decl" >&6; }
42564 if test "$ice_cv_have_setresuid_decl" = yes; then
42565
42566 cat >>confdefs.h <<_ACEOF
42567 #define HAVE_SETRESUID_DECL 1
42568 _ACEOF
42569
42570 fi
42571 fi
42572
42573
42574 ice_have_snprintf=no
42575 for ac_func in snprintf
42576 do :
42577   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
42578 if test "x$ac_cv_func_snprintf" = xyes; then :
42579   cat >>confdefs.h <<_ACEOF
42580 #define HAVE_SNPRINTF 1
42581 _ACEOF
42582  ice_have_snprintf=yes
42583 fi
42584 done
42585
42586 if test "${ice_have_snprintf}" = yes; then
42587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snprintf declaration in stdio.h" >&5
42588 $as_echo_n "checking for snprintf declaration in stdio.h... " >&6; }
42589 if ${ice_cv_have_snprintf_decl+:} false; then :
42590   $as_echo_n "(cached) " >&6
42591 else
42592
42593 ice_cv_have_snprintf_decl=no
42594 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42595 ice_re_word='(^|[^a-zA-Z0-9_])'
42596 for header in stdio.h; do
42597 # Check for ordinary declaration
42598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42599 /* end confdefs.h.  */
42600 #include <$header>
42601
42602 _ACEOF
42603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42604   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then :
42605   ice_cv_have_snprintf_decl=yes
42606 fi
42607 rm -f conftest*
42608
42609 if test "$ice_cv_have_snprintf_decl" = yes; then
42610         break
42611 fi
42612 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42614 /* end confdefs.h.  */
42615 #include <$header>
42616
42617 _ACEOF
42618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42619   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42620   ice_cv_have_snprintf_decl=yes
42621 fi
42622 rm -f conftest*
42623
42624 if test "$ice_cv_have_snprintf_decl" = yes; then
42625         break
42626 fi
42627 done
42628
42629 fi
42630
42631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_snprintf_decl" >&5
42632 $as_echo "$ice_cv_have_snprintf_decl" >&6; }
42633 if test "$ice_cv_have_snprintf_decl" = yes; then
42634
42635 cat >>confdefs.h <<_ACEOF
42636 #define HAVE_SNPRINTF_DECL 1
42637 _ACEOF
42638
42639 fi
42640 fi
42641
42642
42643 ice_have_vsnprintf=no
42644 for ac_func in vsnprintf
42645 do :
42646   ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
42647 if test "x$ac_cv_func_vsnprintf" = xyes; then :
42648   cat >>confdefs.h <<_ACEOF
42649 #define HAVE_VSNPRINTF 1
42650 _ACEOF
42651  ice_have_vsnprintf=yes
42652 fi
42653 done
42654
42655 if test "${ice_have_vsnprintf}" = yes; then
42656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vsnprintf declaration in stdio.h" >&5
42657 $as_echo_n "checking for vsnprintf declaration in stdio.h... " >&6; }
42658 if ${ice_cv_have_vsnprintf_decl+:} false; then :
42659   $as_echo_n "(cached) " >&6
42660 else
42661
42662 ice_cv_have_vsnprintf_decl=no
42663 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42664 ice_re_word='(^|[^a-zA-Z0-9_])'
42665 for header in stdio.h; do
42666 # Check for ordinary declaration
42667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42668 /* end confdefs.h.  */
42669 #include <$header>
42670
42671 _ACEOF
42672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42673   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then :
42674   ice_cv_have_vsnprintf_decl=yes
42675 fi
42676 rm -f conftest*
42677
42678 if test "$ice_cv_have_vsnprintf_decl" = yes; then
42679         break
42680 fi
42681 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42683 /* end confdefs.h.  */
42684 #include <$header>
42685
42686 _ACEOF
42687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42688   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42689   ice_cv_have_vsnprintf_decl=yes
42690 fi
42691 rm -f conftest*
42692
42693 if test "$ice_cv_have_vsnprintf_decl" = yes; then
42694         break
42695 fi
42696 done
42697
42698 fi
42699
42700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vsnprintf_decl" >&5
42701 $as_echo "$ice_cv_have_vsnprintf_decl" >&6; }
42702 if test "$ice_cv_have_vsnprintf_decl" = yes; then
42703
42704 cat >>confdefs.h <<_ACEOF
42705 #define HAVE_VSNPRINTF_DECL 1
42706 _ACEOF
42707
42708 fi
42709 fi
42710
42711
42712     ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
42713 if test "x$ac_cv_func_setpgid" = xyes; then :
42714
42715
42716 $as_echo "#define HAVE_SETPGID 1" >>confdefs.h
42717
42718
42719 ice_have_setpgid=no
42720 for ac_func in setpgid
42721 do :
42722   ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
42723 if test "x$ac_cv_func_setpgid" = xyes; then :
42724   cat >>confdefs.h <<_ACEOF
42725 #define HAVE_SETPGID 1
42726 _ACEOF
42727  ice_have_setpgid=yes
42728 fi
42729 done
42730
42731 if test "${ice_have_setpgid}" = yes; then
42732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setpgid declaration in sys/types.h unistd.h" >&5
42733 $as_echo_n "checking for setpgid declaration in sys/types.h unistd.h... " >&6; }
42734 if ${ice_cv_have_setpgid_decl+:} false; then :
42735   $as_echo_n "(cached) " >&6
42736 else
42737
42738 ice_cv_have_setpgid_decl=no
42739 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42740 ice_re_word='(^|[^a-zA-Z0-9_])'
42741 for header in sys/types.h unistd.h; do
42742 # Check for ordinary declaration
42743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42744 /* end confdefs.h.  */
42745 #include <$header>
42746
42747 _ACEOF
42748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42749   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then :
42750   ice_cv_have_setpgid_decl=yes
42751 fi
42752 rm -f conftest*
42753
42754 if test "$ice_cv_have_setpgid_decl" = yes; then
42755         break
42756 fi
42757 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42759 /* end confdefs.h.  */
42760 #include <$header>
42761
42762 _ACEOF
42763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42764   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42765   ice_cv_have_setpgid_decl=yes
42766 fi
42767 rm -f conftest*
42768
42769 if test "$ice_cv_have_setpgid_decl" = yes; then
42770         break
42771 fi
42772 done
42773
42774 fi
42775
42776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setpgid_decl" >&5
42777 $as_echo "$ice_cv_have_setpgid_decl" >&6; }
42778 if test "$ice_cv_have_setpgid_decl" = yes; then
42779
42780 cat >>confdefs.h <<_ACEOF
42781 #define HAVE_SETPGID_DECL 1
42782 _ACEOF
42783
42784 fi
42785 fi
42786
42787
42788 fi
42789
42790
42791 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
42792 if test "x$ac_cv_func_setpgrp" = xyes; then :
42793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
42794 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
42795 if ${ac_cv_func_setpgrp_void+:} false; then :
42796   $as_echo_n "(cached) " >&6
42797 else
42798   if test "$cross_compiling" = yes; then :
42799   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
42800 else
42801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42802 /* end confdefs.h.  */
42803 $ac_includes_default
42804 int
42805 main ()
42806 {
42807 /* If this system has a BSD-style setpgrp which takes arguments,
42808   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
42809   exit successfully. */
42810   return setpgrp (1,1) != -1;
42811   ;
42812   return 0;
42813 }
42814 _ACEOF
42815 if ac_fn_c_try_run "$LINENO"; then :
42816   ac_cv_func_setpgrp_void=no
42817 else
42818   ac_cv_func_setpgrp_void=yes
42819 fi
42820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42821   conftest.$ac_objext conftest.beam conftest.$ac_ext
42822 fi
42823
42824 fi
42825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
42826 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
42827 if test $ac_cv_func_setpgrp_void = yes; then
42828
42829 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
42830
42831 fi
42832
42833 fi
42834
42835
42836 ice_have_setpgrp=no
42837 for ac_func in setpgrp
42838 do :
42839   ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
42840 if test "x$ac_cv_func_setpgrp" = xyes; then :
42841   cat >>confdefs.h <<_ACEOF
42842 #define HAVE_SETPGRP 1
42843 _ACEOF
42844  ice_have_setpgrp=yes
42845 fi
42846 done
42847
42848 if test "${ice_have_setpgrp}" = yes; then
42849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
42850 $as_echo_n "checking for setpgrp declaration in sys/types.h unistd.h libc.h... " >&6; }
42851 if ${ice_cv_have_setpgrp_decl+:} false; then :
42852   $as_echo_n "(cached) " >&6
42853 else
42854
42855 ice_cv_have_setpgrp_decl=no
42856 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42857 ice_re_word='(^|[^a-zA-Z0-9_])'
42858 for header in sys/types.h unistd.h libc.h; do
42859 # Check for ordinary declaration
42860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42861 /* end confdefs.h.  */
42862 #include <$header>
42863
42864 _ACEOF
42865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42866   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then :
42867   ice_cv_have_setpgrp_decl=yes
42868 fi
42869 rm -f conftest*
42870
42871 if test "$ice_cv_have_setpgrp_decl" = yes; then
42872         break
42873 fi
42874 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42876 /* end confdefs.h.  */
42877 #include <$header>
42878
42879 _ACEOF
42880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42881   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42882   ice_cv_have_setpgrp_decl=yes
42883 fi
42884 rm -f conftest*
42885
42886 if test "$ice_cv_have_setpgrp_decl" = yes; then
42887         break
42888 fi
42889 done
42890
42891 fi
42892
42893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setpgrp_decl" >&5
42894 $as_echo "$ice_cv_have_setpgrp_decl" >&6; }
42895 if test "$ice_cv_have_setpgrp_decl" = yes; then
42896
42897 cat >>confdefs.h <<_ACEOF
42898 #define HAVE_SETPGRP_DECL 1
42899 _ACEOF
42900
42901 fi
42902 fi
42903
42904
42905 ice_have_setsockopt=no
42906 for ac_func in setsockopt
42907 do :
42908   ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
42909 if test "x$ac_cv_func_setsockopt" = xyes; then :
42910   cat >>confdefs.h <<_ACEOF
42911 #define HAVE_SETSOCKOPT 1
42912 _ACEOF
42913  ice_have_setsockopt=yes
42914 fi
42915 done
42916
42917 if test "${ice_have_setsockopt}" = yes; then
42918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
42919 $as_echo_n "checking for setsockopt declaration in sys/types.h sys/socket.h... " >&6; }
42920 if ${ice_cv_have_setsockopt_decl+:} false; then :
42921   $as_echo_n "(cached) " >&6
42922 else
42923
42924 ice_cv_have_setsockopt_decl=no
42925 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42926 ice_re_word='(^|[^a-zA-Z0-9_])'
42927 for header in sys/types.h sys/socket.h; do
42928 # Check for ordinary declaration
42929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42930 /* end confdefs.h.  */
42931 #include <$header>
42932
42933 _ACEOF
42934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42935   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then :
42936   ice_cv_have_setsockopt_decl=yes
42937 fi
42938 rm -f conftest*
42939
42940 if test "$ice_cv_have_setsockopt_decl" = yes; then
42941         break
42942 fi
42943 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42945 /* end confdefs.h.  */
42946 #include <$header>
42947
42948 _ACEOF
42949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42950   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
42951   ice_cv_have_setsockopt_decl=yes
42952 fi
42953 rm -f conftest*
42954
42955 if test "$ice_cv_have_setsockopt_decl" = yes; then
42956         break
42957 fi
42958 done
42959
42960 fi
42961
42962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_setsockopt_decl" >&5
42963 $as_echo "$ice_cv_have_setsockopt_decl" >&6; }
42964 if test "$ice_cv_have_setsockopt_decl" = yes; then
42965
42966 cat >>confdefs.h <<_ACEOF
42967 #define HAVE_SETSOCKOPT_DECL 1
42968 _ACEOF
42969
42970 fi
42971 fi
42972
42973 for ac_func in sigaction sigemptyset sigvec
42974 do :
42975   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42976 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
42977 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
42978   cat >>confdefs.h <<_ACEOF
42979 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42980 _ACEOF
42981
42982 fi
42983 done
42984
42985
42986 ice_have_socket=no
42987 for ac_func in socket
42988 do :
42989   ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
42990 if test "x$ac_cv_func_socket" = xyes; then :
42991   cat >>confdefs.h <<_ACEOF
42992 #define HAVE_SOCKET 1
42993 _ACEOF
42994  ice_have_socket=yes
42995 fi
42996 done
42997
42998 if test "${ice_have_socket}" = yes; then
42999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket declaration in sys/types.h sys/socket.h" >&5
43000 $as_echo_n "checking for socket declaration in sys/types.h sys/socket.h... " >&6; }
43001 if ${ice_cv_have_socket_decl+:} false; then :
43002   $as_echo_n "(cached) " >&6
43003 else
43004
43005 ice_cv_have_socket_decl=no
43006 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43007 ice_re_word='(^|[^a-zA-Z0-9_])'
43008 for header in sys/types.h sys/socket.h; do
43009 # Check for ordinary declaration
43010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43011 /* end confdefs.h.  */
43012 #include <$header>
43013
43014 _ACEOF
43015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43016   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then :
43017   ice_cv_have_socket_decl=yes
43018 fi
43019 rm -f conftest*
43020
43021 if test "$ice_cv_have_socket_decl" = yes; then
43022         break
43023 fi
43024 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43026 /* end confdefs.h.  */
43027 #include <$header>
43028
43029 _ACEOF
43030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43031   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43032   ice_cv_have_socket_decl=yes
43033 fi
43034 rm -f conftest*
43035
43036 if test "$ice_cv_have_socket_decl" = yes; then
43037         break
43038 fi
43039 done
43040
43041 fi
43042
43043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_socket_decl" >&5
43044 $as_echo "$ice_cv_have_socket_decl" >&6; }
43045 if test "$ice_cv_have_socket_decl" = yes; then
43046
43047 cat >>confdefs.h <<_ACEOF
43048 #define HAVE_SOCKET_DECL 1
43049 _ACEOF
43050
43051 fi
43052 fi
43053
43054
43055 ice_have_socketpair=no
43056 for ac_func in socketpair
43057 do :
43058   ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
43059 if test "x$ac_cv_func_socketpair" = xyes; then :
43060   cat >>confdefs.h <<_ACEOF
43061 #define HAVE_SOCKETPAIR 1
43062 _ACEOF
43063  ice_have_socketpair=yes
43064 fi
43065 done
43066
43067 if test "${ice_have_socketpair}" = yes; then
43068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
43069 $as_echo_n "checking for socketpair declaration in sys/types.h sys/socket.h... " >&6; }
43070 if ${ice_cv_have_socketpair_decl+:} false; then :
43071   $as_echo_n "(cached) " >&6
43072 else
43073
43074 ice_cv_have_socketpair_decl=no
43075 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43076 ice_re_word='(^|[^a-zA-Z0-9_])'
43077 for header in sys/types.h sys/socket.h; do
43078 # Check for ordinary declaration
43079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43080 /* end confdefs.h.  */
43081 #include <$header>
43082
43083 _ACEOF
43084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43085   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then :
43086   ice_cv_have_socketpair_decl=yes
43087 fi
43088 rm -f conftest*
43089
43090 if test "$ice_cv_have_socketpair_decl" = yes; then
43091         break
43092 fi
43093 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43095 /* end confdefs.h.  */
43096 #include <$header>
43097
43098 _ACEOF
43099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43100   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43101   ice_cv_have_socketpair_decl=yes
43102 fi
43103 rm -f conftest*
43104
43105 if test "$ice_cv_have_socketpair_decl" = yes; then
43106         break
43107 fi
43108 done
43109
43110 fi
43111
43112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_socketpair_decl" >&5
43113 $as_echo "$ice_cv_have_socketpair_decl" >&6; }
43114 if test "$ice_cv_have_socketpair_decl" = yes; then
43115
43116 cat >>confdefs.h <<_ACEOF
43117 #define HAVE_SOCKETPAIR_DECL 1
43118 _ACEOF
43119
43120 fi
43121 fi
43122
43123
43124 ice_have_sscanf=no
43125 for ac_func in sscanf
43126 do :
43127   ac_fn_c_check_func "$LINENO" "sscanf" "ac_cv_func_sscanf"
43128 if test "x$ac_cv_func_sscanf" = xyes; then :
43129   cat >>confdefs.h <<_ACEOF
43130 #define HAVE_SSCANF 1
43131 _ACEOF
43132  ice_have_sscanf=yes
43133 fi
43134 done
43135
43136 if test "${ice_have_sscanf}" = yes; then
43137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sscanf declaration in stdio.h" >&5
43138 $as_echo_n "checking for sscanf declaration in stdio.h... " >&6; }
43139 if ${ice_cv_have_sscanf_decl+:} false; then :
43140   $as_echo_n "(cached) " >&6
43141 else
43142
43143 ice_cv_have_sscanf_decl=no
43144 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43145 ice_re_word='(^|[^a-zA-Z0-9_])'
43146 for header in stdio.h; do
43147 # Check for ordinary declaration
43148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43149 /* end confdefs.h.  */
43150 #include <$header>
43151
43152 _ACEOF
43153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43154   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then :
43155   ice_cv_have_sscanf_decl=yes
43156 fi
43157 rm -f conftest*
43158
43159 if test "$ice_cv_have_sscanf_decl" = yes; then
43160         break
43161 fi
43162 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43164 /* end confdefs.h.  */
43165 #include <$header>
43166
43167 _ACEOF
43168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43169   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43170   ice_cv_have_sscanf_decl=yes
43171 fi
43172 rm -f conftest*
43173
43174 if test "$ice_cv_have_sscanf_decl" = yes; then
43175         break
43176 fi
43177 done
43178
43179 fi
43180
43181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_sscanf_decl" >&5
43182 $as_echo "$ice_cv_have_sscanf_decl" >&6; }
43183 if test "$ice_cv_have_sscanf_decl" = yes; then
43184
43185 cat >>confdefs.h <<_ACEOF
43186 #define HAVE_SSCANF_DECL 1
43187 _ACEOF
43188
43189 fi
43190 fi
43191
43192
43193 ice_have_strerror=no
43194 for ac_func in strerror
43195 do :
43196   ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
43197 if test "x$ac_cv_func_strerror" = xyes; then :
43198   cat >>confdefs.h <<_ACEOF
43199 #define HAVE_STRERROR 1
43200 _ACEOF
43201  ice_have_strerror=yes
43202 fi
43203 done
43204
43205 if test "${ice_have_strerror}" = yes; then
43206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror declaration in string.h strings.h" >&5
43207 $as_echo_n "checking for strerror declaration in string.h strings.h... " >&6; }
43208 if ${ice_cv_have_strerror_decl+:} false; then :
43209   $as_echo_n "(cached) " >&6
43210 else
43211
43212 ice_cv_have_strerror_decl=no
43213 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43214 ice_re_word='(^|[^a-zA-Z0-9_])'
43215 for header in string.h strings.h; do
43216 # Check for ordinary declaration
43217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43218 /* end confdefs.h.  */
43219 #include <$header>
43220
43221 _ACEOF
43222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43223   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then :
43224   ice_cv_have_strerror_decl=yes
43225 fi
43226 rm -f conftest*
43227
43228 if test "$ice_cv_have_strerror_decl" = yes; then
43229         break
43230 fi
43231 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43233 /* end confdefs.h.  */
43234 #include <$header>
43235
43236 _ACEOF
43237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43238   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43239   ice_cv_have_strerror_decl=yes
43240 fi
43241 rm -f conftest*
43242
43243 if test "$ice_cv_have_strerror_decl" = yes; then
43244         break
43245 fi
43246 done
43247
43248 fi
43249
43250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strerror_decl" >&5
43251 $as_echo "$ice_cv_have_strerror_decl" >&6; }
43252 if test "$ice_cv_have_strerror_decl" = yes; then
43253
43254 cat >>confdefs.h <<_ACEOF
43255 #define HAVE_STRERROR_DECL 1
43256 _ACEOF
43257
43258 fi
43259 fi
43260
43261 for ac_func in strftime
43262 do :
43263   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
43264 if test "x$ac_cv_func_strftime" = xyes; then :
43265   cat >>confdefs.h <<_ACEOF
43266 #define HAVE_STRFTIME 1
43267 _ACEOF
43268
43269 else
43270   # strftime is in -lintl on SCO UNIX.
43271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
43272 $as_echo_n "checking for strftime in -lintl... " >&6; }
43273 if ${ac_cv_lib_intl_strftime+:} false; then :
43274   $as_echo_n "(cached) " >&6
43275 else
43276   ac_check_lib_save_LIBS=$LIBS
43277 LIBS="-lintl  $LIBS"
43278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43279 /* end confdefs.h.  */
43280
43281 /* Override any GCC internal prototype to avoid an error.
43282    Use char because int might match the return type of a GCC
43283    builtin and then its argument prototype would still apply.  */
43284 #ifdef __cplusplus
43285 extern "C"
43286 #endif
43287 char strftime ();
43288 int
43289 main ()
43290 {
43291 return strftime ();
43292   ;
43293   return 0;
43294 }
43295 _ACEOF
43296 if ac_fn_c_try_link "$LINENO"; then :
43297   ac_cv_lib_intl_strftime=yes
43298 else
43299   ac_cv_lib_intl_strftime=no
43300 fi
43301 rm -f core conftest.err conftest.$ac_objext \
43302     conftest$ac_exeext conftest.$ac_ext
43303 LIBS=$ac_check_lib_save_LIBS
43304 fi
43305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
43306 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
43307 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
43308   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
43309
43310 LIBS="-lintl $LIBS"
43311 fi
43312
43313 fi
43314 done
43315
43316
43317 ice_have_strftime=no
43318 for ac_func in strftime
43319 do :
43320   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
43321 if test "x$ac_cv_func_strftime" = xyes; then :
43322   cat >>confdefs.h <<_ACEOF
43323 #define HAVE_STRFTIME 1
43324 _ACEOF
43325  ice_have_strftime=yes
43326 fi
43327 done
43328
43329 if test "${ice_have_strftime}" = yes; then
43330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime declaration in time.h sys/time.h" >&5
43331 $as_echo_n "checking for strftime declaration in time.h sys/time.h... " >&6; }
43332 if ${ice_cv_have_strftime_decl+:} false; then :
43333   $as_echo_n "(cached) " >&6
43334 else
43335
43336 ice_cv_have_strftime_decl=no
43337 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43338 ice_re_word='(^|[^a-zA-Z0-9_])'
43339 for header in time.h sys/time.h; do
43340 # Check for ordinary declaration
43341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43342 /* end confdefs.h.  */
43343 #include <$header>
43344
43345 _ACEOF
43346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43347   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then :
43348   ice_cv_have_strftime_decl=yes
43349 fi
43350 rm -f conftest*
43351
43352 if test "$ice_cv_have_strftime_decl" = yes; then
43353         break
43354 fi
43355 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43357 /* end confdefs.h.  */
43358 #include <$header>
43359
43360 _ACEOF
43361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43362   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43363   ice_cv_have_strftime_decl=yes
43364 fi
43365 rm -f conftest*
43366
43367 if test "$ice_cv_have_strftime_decl" = yes; then
43368         break
43369 fi
43370 done
43371
43372 fi
43373
43374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strftime_decl" >&5
43375 $as_echo "$ice_cv_have_strftime_decl" >&6; }
43376 if test "$ice_cv_have_strftime_decl" = yes; then
43377
43378 cat >>confdefs.h <<_ACEOF
43379 #define HAVE_STRFTIME_DECL 1
43380 _ACEOF
43381
43382 fi
43383 fi
43384
43385
43386 ice_have_strncasecmp=no
43387 for ac_func in strncasecmp
43388 do :
43389   ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
43390 if test "x$ac_cv_func_strncasecmp" = xyes; then :
43391   cat >>confdefs.h <<_ACEOF
43392 #define HAVE_STRNCASECMP 1
43393 _ACEOF
43394  ice_have_strncasecmp=yes
43395 fi
43396 done
43397
43398 if test "${ice_have_strncasecmp}" = yes; then
43399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strncasecmp declaration in string.h strings.h" >&5
43400 $as_echo_n "checking for strncasecmp declaration in string.h strings.h... " >&6; }
43401 if ${ice_cv_have_strncasecmp_decl+:} false; then :
43402   $as_echo_n "(cached) " >&6
43403 else
43404
43405 ice_cv_have_strncasecmp_decl=no
43406 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43407 ice_re_word='(^|[^a-zA-Z0-9_])'
43408 for header in string.h strings.h; do
43409 # Check for ordinary declaration
43410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43411 /* end confdefs.h.  */
43412 #include <$header>
43413
43414 _ACEOF
43415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43416   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then :
43417   ice_cv_have_strncasecmp_decl=yes
43418 fi
43419 rm -f conftest*
43420
43421 if test "$ice_cv_have_strncasecmp_decl" = yes; then
43422         break
43423 fi
43424 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43426 /* end confdefs.h.  */
43427 #include <$header>
43428
43429 _ACEOF
43430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43431   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43432   ice_cv_have_strncasecmp_decl=yes
43433 fi
43434 rm -f conftest*
43435
43436 if test "$ice_cv_have_strncasecmp_decl" = yes; then
43437         break
43438 fi
43439 done
43440
43441 fi
43442
43443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strncasecmp_decl" >&5
43444 $as_echo "$ice_cv_have_strncasecmp_decl" >&6; }
43445 if test "$ice_cv_have_strncasecmp_decl" = yes; then
43446
43447 cat >>confdefs.h <<_ACEOF
43448 #define HAVE_STRNCASECMP_DECL 1
43449 _ACEOF
43450
43451 fi
43452 fi
43453
43454
43455 ice_have_syslog=no
43456 for ac_func in syslog
43457 do :
43458   ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
43459 if test "x$ac_cv_func_syslog" = xyes; then :
43460   cat >>confdefs.h <<_ACEOF
43461 #define HAVE_SYSLOG 1
43462 _ACEOF
43463  ice_have_syslog=yes
43464 fi
43465 done
43466
43467 if test "${ice_have_syslog}" = yes; then
43468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog declaration in syslog.h" >&5
43469 $as_echo_n "checking for syslog declaration in syslog.h... " >&6; }
43470 if ${ice_cv_have_syslog_decl+:} false; then :
43471   $as_echo_n "(cached) " >&6
43472 else
43473
43474 ice_cv_have_syslog_decl=no
43475 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43476 ice_re_word='(^|[^a-zA-Z0-9_])'
43477 for header in syslog.h; do
43478 # Check for ordinary declaration
43479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43480 /* end confdefs.h.  */
43481 #include <$header>
43482
43483 _ACEOF
43484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43485   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then :
43486   ice_cv_have_syslog_decl=yes
43487 fi
43488 rm -f conftest*
43489
43490 if test "$ice_cv_have_syslog_decl" = yes; then
43491         break
43492 fi
43493 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43495 /* end confdefs.h.  */
43496 #include <$header>
43497
43498 _ACEOF
43499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43500   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43501   ice_cv_have_syslog_decl=yes
43502 fi
43503 rm -f conftest*
43504
43505 if test "$ice_cv_have_syslog_decl" = yes; then
43506         break
43507 fi
43508 done
43509
43510 fi
43511
43512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_syslog_decl" >&5
43513 $as_echo "$ice_cv_have_syslog_decl" >&6; }
43514 if test "$ice_cv_have_syslog_decl" = yes; then
43515
43516 cat >>confdefs.h <<_ACEOF
43517 #define HAVE_SYSLOG_DECL 1
43518 _ACEOF
43519
43520 fi
43521 fi
43522
43523
43524 ice_have_system=no
43525 for ac_func in system
43526 do :
43527   ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system"
43528 if test "x$ac_cv_func_system" = xyes; then :
43529   cat >>confdefs.h <<_ACEOF
43530 #define HAVE_SYSTEM 1
43531 _ACEOF
43532  ice_have_system=yes
43533 fi
43534 done
43535
43536 if test "${ice_have_system}" = yes; then
43537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system declaration in stdlib.h" >&5
43538 $as_echo_n "checking for system declaration in stdlib.h... " >&6; }
43539 if ${ice_cv_have_system_decl+:} false; then :
43540   $as_echo_n "(cached) " >&6
43541 else
43542
43543 ice_cv_have_system_decl=no
43544 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43545 ice_re_word='(^|[^a-zA-Z0-9_])'
43546 for header in stdlib.h; do
43547 # Check for ordinary declaration
43548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43549 /* end confdefs.h.  */
43550 #include <$header>
43551
43552 _ACEOF
43553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43554   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then :
43555   ice_cv_have_system_decl=yes
43556 fi
43557 rm -f conftest*
43558
43559 if test "$ice_cv_have_system_decl" = yes; then
43560         break
43561 fi
43562 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43564 /* end confdefs.h.  */
43565 #include <$header>
43566
43567 _ACEOF
43568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43569   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43570   ice_cv_have_system_decl=yes
43571 fi
43572 rm -f conftest*
43573
43574 if test "$ice_cv_have_system_decl" = yes; then
43575         break
43576 fi
43577 done
43578
43579 fi
43580
43581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_system_decl" >&5
43582 $as_echo "$ice_cv_have_system_decl" >&6; }
43583 if test "$ice_cv_have_system_decl" = yes; then
43584
43585 cat >>confdefs.h <<_ACEOF
43586 #define HAVE_SYSTEM_DECL 1
43587 _ACEOF
43588
43589 fi
43590 fi
43591
43592
43593 ice_have_time=no
43594 for ac_func in time
43595 do :
43596   ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
43597 if test "x$ac_cv_func_time" = xyes; then :
43598   cat >>confdefs.h <<_ACEOF
43599 #define HAVE_TIME 1
43600 _ACEOF
43601  ice_have_time=yes
43602 fi
43603 done
43604
43605 if test "${ice_have_time}" = yes; then
43606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time declaration in time.h sys/time.h" >&5
43607 $as_echo_n "checking for time declaration in time.h sys/time.h... " >&6; }
43608 if ${ice_cv_have_time_decl+:} false; then :
43609   $as_echo_n "(cached) " >&6
43610 else
43611
43612 ice_cv_have_time_decl=no
43613 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43614 ice_re_word='(^|[^a-zA-Z0-9_])'
43615 for header in time.h sys/time.h; do
43616 # Check for ordinary declaration
43617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43618 /* end confdefs.h.  */
43619 #include <$header>
43620
43621 _ACEOF
43622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43623   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then :
43624   ice_cv_have_time_decl=yes
43625 fi
43626 rm -f conftest*
43627
43628 if test "$ice_cv_have_time_decl" = yes; then
43629         break
43630 fi
43631 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43633 /* end confdefs.h.  */
43634 #include <$header>
43635
43636 _ACEOF
43637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43638   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43639   ice_cv_have_time_decl=yes
43640 fi
43641 rm -f conftest*
43642
43643 if test "$ice_cv_have_time_decl" = yes; then
43644         break
43645 fi
43646 done
43647
43648 fi
43649
43650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_time_decl" >&5
43651 $as_echo "$ice_cv_have_time_decl" >&6; }
43652 if test "$ice_cv_have_time_decl" = yes; then
43653
43654 cat >>confdefs.h <<_ACEOF
43655 #define HAVE_TIME_DECL 1
43656 _ACEOF
43657
43658 fi
43659 fi
43660
43661
43662 ice_have_tolower=no
43663 for ac_func in tolower
43664 do :
43665   ac_fn_c_check_func "$LINENO" "tolower" "ac_cv_func_tolower"
43666 if test "x$ac_cv_func_tolower" = xyes; then :
43667   cat >>confdefs.h <<_ACEOF
43668 #define HAVE_TOLOWER 1
43669 _ACEOF
43670  ice_have_tolower=yes
43671 fi
43672 done
43673
43674 if test "${ice_have_tolower}" = yes; then
43675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tolower declaration in ctype.h" >&5
43676 $as_echo_n "checking for tolower declaration in ctype.h... " >&6; }
43677 if ${ice_cv_have_tolower_decl+:} false; then :
43678   $as_echo_n "(cached) " >&6
43679 else
43680
43681 ice_cv_have_tolower_decl=no
43682 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43683 ice_re_word='(^|[^a-zA-Z0-9_])'
43684 for header in ctype.h; do
43685 # Check for ordinary declaration
43686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43687 /* end confdefs.h.  */
43688 #include <$header>
43689
43690 _ACEOF
43691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43692   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then :
43693   ice_cv_have_tolower_decl=yes
43694 fi
43695 rm -f conftest*
43696
43697 if test "$ice_cv_have_tolower_decl" = yes; then
43698         break
43699 fi
43700 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43702 /* end confdefs.h.  */
43703 #include <$header>
43704
43705 _ACEOF
43706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43707   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43708   ice_cv_have_tolower_decl=yes
43709 fi
43710 rm -f conftest*
43711
43712 if test "$ice_cv_have_tolower_decl" = yes; then
43713         break
43714 fi
43715 done
43716
43717 fi
43718
43719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_tolower_decl" >&5
43720 $as_echo "$ice_cv_have_tolower_decl" >&6; }
43721 if test "$ice_cv_have_tolower_decl" = yes; then
43722
43723 cat >>confdefs.h <<_ACEOF
43724 #define HAVE_TOLOWER_DECL 1
43725 _ACEOF
43726
43727 fi
43728 fi
43729
43730
43731 ice_have_toupper=no
43732 for ac_func in toupper
43733 do :
43734   ac_fn_c_check_func "$LINENO" "toupper" "ac_cv_func_toupper"
43735 if test "x$ac_cv_func_toupper" = xyes; then :
43736   cat >>confdefs.h <<_ACEOF
43737 #define HAVE_TOUPPER 1
43738 _ACEOF
43739  ice_have_toupper=yes
43740 fi
43741 done
43742
43743 if test "${ice_have_toupper}" = yes; then
43744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toupper declaration in ctype.h" >&5
43745 $as_echo_n "checking for toupper declaration in ctype.h... " >&6; }
43746 if ${ice_cv_have_toupper_decl+:} false; then :
43747   $as_echo_n "(cached) " >&6
43748 else
43749
43750 ice_cv_have_toupper_decl=no
43751 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43752 ice_re_word='(^|[^a-zA-Z0-9_])'
43753 for header in ctype.h; do
43754 # Check for ordinary declaration
43755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43756 /* end confdefs.h.  */
43757 #include <$header>
43758
43759 _ACEOF
43760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43761   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then :
43762   ice_cv_have_toupper_decl=yes
43763 fi
43764 rm -f conftest*
43765
43766 if test "$ice_cv_have_toupper_decl" = yes; then
43767         break
43768 fi
43769 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43771 /* end confdefs.h.  */
43772 #include <$header>
43773
43774 _ACEOF
43775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43776   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43777   ice_cv_have_toupper_decl=yes
43778 fi
43779 rm -f conftest*
43780
43781 if test "$ice_cv_have_toupper_decl" = yes; then
43782         break
43783 fi
43784 done
43785
43786 fi
43787
43788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_toupper_decl" >&5
43789 $as_echo "$ice_cv_have_toupper_decl" >&6; }
43790 if test "$ice_cv_have_toupper_decl" = yes; then
43791
43792 cat >>confdefs.h <<_ACEOF
43793 #define HAVE_TOUPPER_DECL 1
43794 _ACEOF
43795
43796 fi
43797 fi
43798
43799
43800 ice_have_ungetc=no
43801 for ac_func in ungetc
43802 do :
43803   ac_fn_c_check_func "$LINENO" "ungetc" "ac_cv_func_ungetc"
43804 if test "x$ac_cv_func_ungetc" = xyes; then :
43805   cat >>confdefs.h <<_ACEOF
43806 #define HAVE_UNGETC 1
43807 _ACEOF
43808  ice_have_ungetc=yes
43809 fi
43810 done
43811
43812 if test "${ice_have_ungetc}" = yes; then
43813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ungetc declaration in stdio.h" >&5
43814 $as_echo_n "checking for ungetc declaration in stdio.h... " >&6; }
43815 if ${ice_cv_have_ungetc_decl+:} false; then :
43816   $as_echo_n "(cached) " >&6
43817 else
43818
43819 ice_cv_have_ungetc_decl=no
43820 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43821 ice_re_word='(^|[^a-zA-Z0-9_])'
43822 for header in stdio.h; do
43823 # Check for ordinary declaration
43824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43825 /* end confdefs.h.  */
43826 #include <$header>
43827
43828 _ACEOF
43829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43830   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then :
43831   ice_cv_have_ungetc_decl=yes
43832 fi
43833 rm -f conftest*
43834
43835 if test "$ice_cv_have_ungetc_decl" = yes; then
43836         break
43837 fi
43838 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43840 /* end confdefs.h.  */
43841 #include <$header>
43842
43843 _ACEOF
43844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43845   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43846   ice_cv_have_ungetc_decl=yes
43847 fi
43848 rm -f conftest*
43849
43850 if test "$ice_cv_have_ungetc_decl" = yes; then
43851         break
43852 fi
43853 done
43854
43855 fi
43856
43857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_ungetc_decl" >&5
43858 $as_echo "$ice_cv_have_ungetc_decl" >&6; }
43859 if test "$ice_cv_have_ungetc_decl" = yes; then
43860
43861 cat >>confdefs.h <<_ACEOF
43862 #define HAVE_UNGETC_DECL 1
43863 _ACEOF
43864
43865 fi
43866 fi
43867
43868 for ac_func in unsetenv
43869 do :
43870   ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
43871 if test "x$ac_cv_func_unsetenv" = xyes; then :
43872   cat >>confdefs.h <<_ACEOF
43873 #define HAVE_UNSETENV 1
43874 _ACEOF
43875
43876 fi
43877 done
43878
43879
43880 ice_have_vfprintf=no
43881 for ac_func in vfprintf
43882 do :
43883   ac_fn_c_check_func "$LINENO" "vfprintf" "ac_cv_func_vfprintf"
43884 if test "x$ac_cv_func_vfprintf" = xyes; then :
43885   cat >>confdefs.h <<_ACEOF
43886 #define HAVE_VFPRINTF 1
43887 _ACEOF
43888  ice_have_vfprintf=yes
43889 fi
43890 done
43891
43892 if test "${ice_have_vfprintf}" = yes; then
43893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vfprintf declaration in stdio.h stdlib.h" >&5
43894 $as_echo_n "checking for vfprintf declaration in stdio.h stdlib.h... " >&6; }
43895 if ${ice_cv_have_vfprintf_decl+:} false; then :
43896   $as_echo_n "(cached) " >&6
43897 else
43898
43899 ice_cv_have_vfprintf_decl=no
43900 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43901 ice_re_word='(^|[^a-zA-Z0-9_])'
43902 for header in stdio.h stdlib.h; do
43903 # Check for ordinary declaration
43904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43905 /* end confdefs.h.  */
43906 #include <$header>
43907
43908 _ACEOF
43909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43910   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then :
43911   ice_cv_have_vfprintf_decl=yes
43912 fi
43913 rm -f conftest*
43914
43915 if test "$ice_cv_have_vfprintf_decl" = yes; then
43916         break
43917 fi
43918 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43920 /* end confdefs.h.  */
43921 #include <$header>
43922
43923 _ACEOF
43924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43925   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43926   ice_cv_have_vfprintf_decl=yes
43927 fi
43928 rm -f conftest*
43929
43930 if test "$ice_cv_have_vfprintf_decl" = yes; then
43931         break
43932 fi
43933 done
43934
43935 fi
43936
43937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vfprintf_decl" >&5
43938 $as_echo "$ice_cv_have_vfprintf_decl" >&6; }
43939 if test "$ice_cv_have_vfprintf_decl" = yes; then
43940
43941 cat >>confdefs.h <<_ACEOF
43942 #define HAVE_VFPRINTF_DECL 1
43943 _ACEOF
43944
43945 fi
43946 fi
43947
43948
43949 ice_have_vprintf=no
43950 for ac_func in vprintf
43951 do :
43952   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
43953 if test "x$ac_cv_func_vprintf" = xyes; then :
43954   cat >>confdefs.h <<_ACEOF
43955 #define HAVE_VPRINTF 1
43956 _ACEOF
43957  ice_have_vprintf=yes
43958 fi
43959 done
43960
43961 if test "${ice_have_vprintf}" = yes; then
43962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vprintf declaration in stdio.h stdlib.h" >&5
43963 $as_echo_n "checking for vprintf declaration in stdio.h stdlib.h... " >&6; }
43964 if ${ice_cv_have_vprintf_decl+:} false; then :
43965   $as_echo_n "(cached) " >&6
43966 else
43967
43968 ice_cv_have_vprintf_decl=no
43969 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43970 ice_re_word='(^|[^a-zA-Z0-9_])'
43971 for header in stdio.h stdlib.h; do
43972 # Check for ordinary declaration
43973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43974 /* end confdefs.h.  */
43975 #include <$header>
43976
43977 _ACEOF
43978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43979   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then :
43980   ice_cv_have_vprintf_decl=yes
43981 fi
43982 rm -f conftest*
43983
43984 if test "$ice_cv_have_vprintf_decl" = yes; then
43985         break
43986 fi
43987 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43989 /* end confdefs.h.  */
43990 #include <$header>
43991
43992 _ACEOF
43993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43994   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
43995   ice_cv_have_vprintf_decl=yes
43996 fi
43997 rm -f conftest*
43998
43999 if test "$ice_cv_have_vprintf_decl" = yes; then
44000         break
44001 fi
44002 done
44003
44004 fi
44005
44006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_vprintf_decl" >&5
44007 $as_echo "$ice_cv_have_vprintf_decl" >&6; }
44008 if test "$ice_cv_have_vprintf_decl" = yes; then
44009
44010 cat >>confdefs.h <<_ACEOF
44011 #define HAVE_VPRINTF_DECL 1
44012 _ACEOF
44013
44014 fi
44015 fi
44016
44017 ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4"
44018 if test "x$ac_cv_func_wait4" = xyes; then :
44019
44020 fi
44021
44022
44023 ice_have_writev=no
44024 for ac_func in writev
44025 do :
44026   ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev"
44027 if test "x$ac_cv_func_writev" = xyes; then :
44028   cat >>confdefs.h <<_ACEOF
44029 #define HAVE_WRITEV 1
44030 _ACEOF
44031  ice_have_writev=yes
44032 fi
44033 done
44034
44035 if test "${ice_have_writev}" = yes; then
44036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for writev declaration in unistd.h sys/uio.h" >&5
44037 $as_echo_n "checking for writev declaration in unistd.h sys/uio.h... " >&6; }
44038 if ${ice_cv_have_writev_decl+:} false; then :
44039   $as_echo_n "(cached) " >&6
44040 else
44041
44042 ice_cv_have_writev_decl=no
44043 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44044 ice_re_word='(^|[^a-zA-Z0-9_])'
44045 for header in unistd.h sys/uio.h; do
44046 # Check for ordinary declaration
44047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44048 /* end confdefs.h.  */
44049 #include <$header>
44050
44051 _ACEOF
44052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44053   $EGREP "${ice_re_word}writev[         ]*\(" >/dev/null 2>&1; then :
44054   ice_cv_have_writev_decl=yes
44055 fi
44056 rm -f conftest*
44057
44058 if test "$ice_cv_have_writev_decl" = yes; then
44059         break
44060 fi
44061 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44063 /* end confdefs.h.  */
44064 #include <$header>
44065
44066 _ACEOF
44067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44068   $EGREP "${ice_re_word}writev[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
44069   ice_cv_have_writev_decl=yes
44070 fi
44071 rm -f conftest*
44072
44073 if test "$ice_cv_have_writev_decl" = yes; then
44074         break
44075 fi
44076 done
44077
44078 fi
44079
44080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_writev_decl" >&5
44081 $as_echo "$ice_cv_have_writev_decl" >&6; }
44082 if test "$ice_cv_have_writev_decl" = yes; then
44083
44084 cat >>confdefs.h <<_ACEOF
44085 #define HAVE_WRITEV_DECL 1
44086 _ACEOF
44087
44088 fi
44089 fi
44090
44091
44092 ice_have_strcasecmp=no
44093 for ac_func in strcasecmp
44094 do :
44095   ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
44096 if test "x$ac_cv_func_strcasecmp" = xyes; then :
44097   cat >>confdefs.h <<_ACEOF
44098 #define HAVE_STRCASECMP 1
44099 _ACEOF
44100  ice_have_strcasecmp=yes
44101 fi
44102 done
44103
44104 if test "${ice_have_strcasecmp}" = yes; then
44105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp declaration in string.h strings.h" >&5
44106 $as_echo_n "checking for strcasecmp declaration in string.h strings.h... " >&6; }
44107 if ${ice_cv_have_strcasecmp_decl+:} false; then :
44108   $as_echo_n "(cached) " >&6
44109 else
44110
44111 ice_cv_have_strcasecmp_decl=no
44112 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44113 ice_re_word='(^|[^a-zA-Z0-9_])'
44114 for header in string.h strings.h; do
44115 # Check for ordinary declaration
44116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44117 /* end confdefs.h.  */
44118 #include <$header>
44119
44120 _ACEOF
44121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44122   $EGREP "${ice_re_word}strcasecmp[     ]*\(" >/dev/null 2>&1; then :
44123   ice_cv_have_strcasecmp_decl=yes
44124 fi
44125 rm -f conftest*
44126
44127 if test "$ice_cv_have_strcasecmp_decl" = yes; then
44128         break
44129 fi
44130 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44132 /* end confdefs.h.  */
44133 #include <$header>
44134
44135 _ACEOF
44136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44137   $EGREP "${ice_re_word}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then :
44138   ice_cv_have_strcasecmp_decl=yes
44139 fi
44140 rm -f conftest*
44141
44142 if test "$ice_cv_have_strcasecmp_decl" = yes; then
44143         break
44144 fi
44145 done
44146
44147 fi
44148
44149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_strcasecmp_decl" >&5
44150 $as_echo "$ice_cv_have_strcasecmp_decl" >&6; }
44151 if test "$ice_cv_have_strcasecmp_decl" = yes; then
44152
44153 cat >>confdefs.h <<_ACEOF
44154 #define HAVE_STRCASECMP_DECL 1
44155 _ACEOF
44156
44157 fi
44158 fi
44159
44160
44161 #
44162 # Devices
44163 #
44164
44165
44166
44167
44168
44169
44170
44171
44172
44173
44174
44175
44176
44177
44178
44179
44180
44181
44182
44183
44184
44185
44186 # Check whether --with-libcurl was given.
44187 if test "${with_libcurl+set}" = set; then :
44188   withval=$with_libcurl; _libcurl_with=$withval
44189 else
44190   _libcurl_with=yes
44191 fi
44192
44193
44194   if test "$_libcurl_with" != "no" ; then
44195
44196      for ac_prog in gawk mawk nawk awk
44197 do
44198   # Extract the first word of "$ac_prog", so it can be a program name with args.
44199 set dummy $ac_prog; ac_word=$2
44200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44201 $as_echo_n "checking for $ac_word... " >&6; }
44202 if ${ac_cv_prog_AWK+:} false; then :
44203   $as_echo_n "(cached) " >&6
44204 else
44205   if test -n "$AWK"; then
44206   ac_cv_prog_AWK="$AWK" # Let the user override the test.
44207 else
44208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44209 for as_dir in $PATH
44210 do
44211   IFS=$as_save_IFS
44212   test -z "$as_dir" && as_dir=.
44213     for ac_exec_ext in '' $ac_executable_extensions; do
44214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44215     ac_cv_prog_AWK="$ac_prog"
44216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44217     break 2
44218   fi
44219 done
44220   done
44221 IFS=$as_save_IFS
44222
44223 fi
44224 fi
44225 AWK=$ac_cv_prog_AWK
44226 if test -n "$AWK"; then
44227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
44228 $as_echo "$AWK" >&6; }
44229 else
44230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44231 $as_echo "no" >&6; }
44232 fi
44233
44234
44235   test -n "$AWK" && break
44236 done
44237
44238
44239      _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
44240
44241      _libcurl_try_link=yes
44242
44243      if test -d "$_libcurl_with" ; then
44244         LIBCURL_CPPFLAGS="-I$withval/include"
44245         _libcurl_ldflags="-L$withval/lib"
44246         # Extract the first word of "curl-config", so it can be a program name with args.
44247 set dummy curl-config; ac_word=$2
44248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44249 $as_echo_n "checking for $ac_word... " >&6; }
44250 if ${ac_cv_path__libcurl_config+:} false; then :
44251   $as_echo_n "(cached) " >&6
44252 else
44253   case $_libcurl_config in
44254   [\\/]* | ?:[\\/]*)
44255   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
44256   ;;
44257   *)
44258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44259 for as_dir in "$withval/bin"
44260 do
44261   IFS=$as_save_IFS
44262   test -z "$as_dir" && as_dir=.
44263     for ac_exec_ext in '' $ac_executable_extensions; do
44264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44265     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
44266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44267     break 2
44268   fi
44269 done
44270   done
44271 IFS=$as_save_IFS
44272
44273   ;;
44274 esac
44275 fi
44276 _libcurl_config=$ac_cv_path__libcurl_config
44277 if test -n "$_libcurl_config"; then
44278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
44279 $as_echo "$_libcurl_config" >&6; }
44280 else
44281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44282 $as_echo "no" >&6; }
44283 fi
44284
44285
44286      else
44287         # Extract the first word of "curl-config", so it can be a program name with args.
44288 set dummy curl-config; ac_word=$2
44289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44290 $as_echo_n "checking for $ac_word... " >&6; }
44291 if ${ac_cv_path__libcurl_config+:} false; then :
44292   $as_echo_n "(cached) " >&6
44293 else
44294   case $_libcurl_config in
44295   [\\/]* | ?:[\\/]*)
44296   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
44297   ;;
44298   *)
44299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44300 for as_dir in $PATH
44301 do
44302   IFS=$as_save_IFS
44303   test -z "$as_dir" && as_dir=.
44304     for ac_exec_ext in '' $ac_executable_extensions; do
44305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44306     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
44307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44308     break 2
44309   fi
44310 done
44311   done
44312 IFS=$as_save_IFS
44313
44314   ;;
44315 esac
44316 fi
44317 _libcurl_config=$ac_cv_path__libcurl_config
44318 if test -n "$_libcurl_config"; then
44319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
44320 $as_echo "$_libcurl_config" >&6; }
44321 else
44322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44323 $as_echo "no" >&6; }
44324 fi
44325
44326
44327      fi
44328
44329      if test x$_libcurl_config != "x" ; then
44330         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
44331 $as_echo_n "checking for the version of libcurl... " >&6; }
44332 if ${libcurl_cv_lib_curl_version+:} false; then :
44333   $as_echo_n "(cached) " >&6
44334 else
44335   libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
44336 fi
44337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
44338 $as_echo "$libcurl_cv_lib_curl_version" >&6; }
44339
44340         _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
44341         _libcurl_wanted=`echo 7.10.0 | $_libcurl_version_parse`
44342
44343         if test $_libcurl_wanted -gt 0 ; then
44344            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.10.0" >&5
44345 $as_echo_n "checking for libcurl >= version 7.10.0... " >&6; }
44346 if ${libcurl_cv_lib_version_ok+:} false; then :
44347   $as_echo_n "(cached) " >&6
44348 else
44349
44350               if test $_libcurl_version -ge $_libcurl_wanted ; then
44351                  libcurl_cv_lib_version_ok=yes
44352               else
44353                  libcurl_cv_lib_version_ok=no
44354               fi
44355
44356 fi
44357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
44358 $as_echo "$libcurl_cv_lib_version_ok" >&6; }
44359         fi
44360
44361         if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
44362            if test x"$LIBCURL_CPPFLAGS" = "x" ; then
44363               LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
44364            fi
44365            if test x"$LIBCURL" = "x" ; then
44366               LIBCURL=`$_libcurl_config --libs`
44367
44368               # This is so silly, but Apple actually has a bug in their
44369               # curl-config script.  Fixed in Tiger, but there are still
44370               # lots of Panther installs around.
44371               case "${host}" in
44372                  powerpc-apple-darwin7*)
44373                     LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
44374                  ;;
44375               esac
44376            fi
44377
44378            # All curl-config scripts support --feature
44379            _libcurl_features=`$_libcurl_config --feature`
44380
44381            # Is it modern enough to have --protocols? (7.12.4)
44382            if test $_libcurl_version -ge 461828 ; then
44383               _libcurl_protocols=`$_libcurl_config --protocols`
44384            fi
44385         else
44386            _libcurl_try_link=no
44387         fi
44388
44389         unset _libcurl_wanted
44390      fi
44391
44392      if test $_libcurl_try_link = yes ; then
44393
44394         # we didn't find curl-config, so let's see if the user-supplied
44395         # link line (or failing that, "-lcurl") is enough.
44396         LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
44397
44398         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
44399 $as_echo_n "checking whether libcurl is usable... " >&6; }
44400 if ${libcurl_cv_lib_curl_usable+:} false; then :
44401   $as_echo_n "(cached) " >&6
44402 else
44403
44404            _libcurl_save_cppflags=$CPPFLAGS
44405            CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
44406            _libcurl_save_libs=$LIBS
44407            LIBS="$LIBCURL $LIBS"
44408
44409            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44410 /* end confdefs.h.  */
44411 #include <curl/curl.h>
44412 int
44413 main ()
44414 {
44415
44416 /* Try and use a few common options to force a failure if we are
44417    missing symbols or can't link. */
44418 int x;
44419 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
44420 x=CURL_ERROR_SIZE;
44421 x=CURLOPT_WRITEFUNCTION;
44422 x=CURLOPT_FILE;
44423 x=CURLOPT_ERRORBUFFER;
44424 x=CURLOPT_STDERR;
44425 x=CURLOPT_VERBOSE;
44426
44427   ;
44428   return 0;
44429 }
44430 _ACEOF
44431 if ac_fn_c_try_link "$LINENO"; then :
44432   libcurl_cv_lib_curl_usable=yes
44433 else
44434   libcurl_cv_lib_curl_usable=no
44435 fi
44436 rm -f core conftest.err conftest.$ac_objext \
44437     conftest$ac_exeext conftest.$ac_ext
44438
44439            CPPFLAGS=$_libcurl_save_cppflags
44440            LIBS=$_libcurl_save_libs
44441            unset _libcurl_save_cppflags
44442            unset _libcurl_save_libs
44443
44444 fi
44445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
44446 $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
44447
44448         if test $libcurl_cv_lib_curl_usable = yes ; then
44449
44450            # Does curl_free() exist in this version of libcurl?
44451            # If not, fake it with free()
44452
44453            _libcurl_save_cppflags=$CPPFLAGS
44454            CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
44455            _libcurl_save_libs=$LIBS
44456            LIBS="$LIBS $LIBCURL"
44457
44458            ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
44459 if test "x$ac_cv_func_curl_free" = xyes; then :
44460
44461 else
44462
44463 $as_echo "#define curl_free free" >>confdefs.h
44464
44465 fi
44466
44467
44468            CPPFLAGS=$_libcurl_save_cppflags
44469            LIBS=$_libcurl_save_libs
44470            unset _libcurl_save_cppflags
44471            unset _libcurl_save_libs
44472
44473
44474 $as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
44475
44476
44477
44478
44479            for _libcurl_feature in $_libcurl_features ; do
44480               cat >>confdefs.h <<_ACEOF
44481 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
44482 _ACEOF
44483
44484               eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
44485            done
44486
44487            if test "x$_libcurl_protocols" = "x" ; then
44488
44489               # We don't have --protocols, so just assume that all
44490               # protocols are available
44491               _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
44492
44493               if test x$libcurl_feature_SSL = xyes ; then
44494                  _libcurl_protocols="$_libcurl_protocols HTTPS"
44495
44496                  # FTPS wasn't standards-compliant until version
44497                  # 7.11.0
44498                  if test $_libcurl_version -ge 461568; then
44499                     _libcurl_protocols="$_libcurl_protocols FTPS"
44500                  fi
44501               fi
44502            fi
44503
44504            for _libcurl_protocol in $_libcurl_protocols ; do
44505               cat >>confdefs.h <<_ACEOF
44506 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
44507 _ACEOF
44508
44509               eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
44510            done
44511         else
44512            unset LIBCURL
44513            unset LIBCURL_CPPFLAGS
44514         fi
44515      fi
44516
44517       LIBCURL_USE_NSS=no
44518       LIBCURL_USE_GNUTLS=no
44519       LIBCURL_USE_OPENSSL=yes
44520      _libcurl_configures=`$_libcurl_config --configure`
44521      for _libcurl_configure in $_libcurl_configures ; do
44522         if [[ $_libcurl_configure = \'--with-nss* ]]; then
44523             LIBCURL_USE_NSS=yes
44524         fi
44525         if [[ $_libcurl_configure = \'--without-nss* ]]; then
44526             LIBCURL_USE_NSS=no
44527         fi
44528         if [[ $_libcurl_configure = \'--with-gnutls* ]]; then
44529             LIBCURL_USE_GNUTLS=yes
44530         fi
44531         if [[ $_libcurl_configure = \'--without-gnutls* ]]; then
44532             LIBCURL_USE_GNUTLS=no
44533         fi
44534         if [[ $_libcurl_configure = \'--with-ssl* ]]; then
44535             LIBCURL_USE_OPENSSL=yes
44536         fi
44537         if [[ $_libcurl_configure = \'--without-ssl* ]]; then
44538             LIBCURL_USE_OPENSSL=no
44539         fi
44540      done
44541
44542      if test "x$LIBCURL_USE_NSS" = "xyes"; then
44543
44544 $as_echo "#define LIBCURL_USE_NSS 1" >>confdefs.h
44545
44546      fi
44547      if test "x$LIBCURL_USE_GNUTLS" = "xyes"; then
44548
44549 $as_echo "#define LIBCURL_USE_GNUTLS /**/" >>confdefs.h
44550
44551      fi
44552      if test "x$LIBCURL_USE_OPENSSL" = "xyes"; then
44553
44554 $as_echo "#define LIBCURL_USE_OPENSSL 1" >>confdefs.h
44555
44556      fi
44557
44558      unset _libcurl_try_link
44559      unset _libcurl_version_parse
44560      unset _libcurl_config
44561      unset _libcurl_feature
44562      unset _libcurl_features
44563      unset _libcurl_protocol
44564      unset _libcurl_protocols
44565      unset _libcurl_version
44566      unset _libcurl_ldflags
44567      unset _libcurl_configure
44568      unset _libcurl_configures
44569   fi
44570
44571   if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
44572      # This is the IF-NO path
44573      HAVE_CURL=no
44574   else
44575      # This is the IF-YES path
44576      HAVE_CURL=yes
44577   fi
44578
44579   unset _libcurl_with
44580
44581     if test x"$HAVE_CURL" = x"yes"; then
44582         LIBS="$LIBCURL $LIBS"
44583
44584         CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
44585
44586
44587
44588
44589     ac_fn_c_check_type "$LINENO" "curl_off_t" "ac_cv_type_curl_off_t" "
44590 #ifdef HAVE_SYS_TYPES_H
44591 #include <sys/types.h>
44592 #endif
44593 #ifdef STDC_HEADERS
44594 #include <stdlib.h>
44595 #include <stddef.h>
44596 #endif
44597 #include <curl/curl.h>
44598
44599
44600 "
44601 if test "x$ac_cv_type_curl_off_t" = xyes; then :
44602
44603 else
44604
44605
44606 $as_echo "#define curl_off_t off_t" >>confdefs.h
44607
44608
44609 fi
44610
44611
44612         case "$host" in
44613             *sun-solaris2*) # Solaris, all versions.
44614             # we extract the -L flags and translate them to -R flags, as required
44615             # by the runtime linker.
44616             if test -n "$_libcurl_config"; then
44617                 curlflags=`$_libcurl_config --libs 2>/dev/null`
44618                 for flag in curlflags; do
44619                     case $flag in
44620                         -L*) LDFLAGS="$LDFLAGS "`echo "x$flag" | sed -e 's/^x-L/-R/'`;;
44621                     esac
44622                 done
44623             fi
44624             ;;
44625         esac
44626     fi
44627
44628
44629
44630     HAVE_HMAC=yes
44631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_CTX_init in -lcrypto" >&5
44632 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
44633 if ${ac_cv_lib_crypto_HMAC_CTX_init+:} false; then :
44634   $as_echo_n "(cached) " >&6
44635 else
44636   ac_check_lib_save_LIBS=$LIBS
44637 LIBS="-lcrypto  $LIBS"
44638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44639 /* end confdefs.h.  */
44640
44641 /* Override any GCC internal prototype to avoid an error.
44642    Use char because int might match the return type of a GCC
44643    builtin and then its argument prototype would still apply.  */
44644 #ifdef __cplusplus
44645 extern "C"
44646 #endif
44647 char HMAC_CTX_init ();
44648 int
44649 main ()
44650 {
44651 return HMAC_CTX_init ();
44652   ;
44653   return 0;
44654 }
44655 _ACEOF
44656 if ac_fn_c_try_link "$LINENO"; then :
44657   ac_cv_lib_crypto_HMAC_CTX_init=yes
44658 else
44659   ac_cv_lib_crypto_HMAC_CTX_init=no
44660 fi
44661 rm -f core conftest.err conftest.$ac_objext \
44662     conftest$ac_exeext conftest.$ac_ext
44663 LIBS=$ac_check_lib_save_LIBS
44664 fi
44665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
44666 $as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
44667 if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = xyes; then :
44668   cat >>confdefs.h <<_ACEOF
44669 #define HAVE_LIBCRYPTO 1
44670 _ACEOF
44671
44672   LIBS="-lcrypto $LIBS"
44673
44674 else
44675   HAVE_HMAC=no
44676 fi
44677
44678
44679     found_hmac_h=no
44680     for ac_header in openssl/hmac.h crypto/hmac.h hmac.h
44681 do :
44682   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44683 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
44684 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44685   cat >>confdefs.h <<_ACEOF
44686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44687 _ACEOF
44688  found_hmac_h=yes; break
44689 fi
44690
44691 done
44692
44693     if test x"$found_hmac_h" != x"yes"; then
44694         HAVE_HMAC=no
44695     fi
44696
44697
44698
44699
44700
44701     # Check whether --enable-s3-device was given.
44702 if test "${enable_s3_device+set}" = set; then :
44703   enableval=$enable_s3_device;  WANT_S3_DEVICE=$enableval
44704 else
44705    WANT_S3_DEVICE=maybe
44706 fi
44707
44708
44709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include the Amazon S3 device" >&5
44710 $as_echo_n "checking whether to include the Amazon S3 device... " >&6; }
44711     # if the user didn't specify 'no', then check for support
44712     if test x"$WANT_S3_DEVICE" != x"no"; then
44713         if test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"; then
44714             WANT_S3_DEVICE=yes
44715         else
44716             # no support -- if the user explicitly enabled the device,
44717             # then this is an error
44718             if test x"$WANT_S3_DEVICE" = x"yes"; then
44719                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44720 $as_echo "no" >&6; }
44721                 as_fn_error $? "Cannot build the Amazon S3 device: one or more prerequisites are missing." "$LINENO" 5
44722             else
44723                 WANT_S3_DEVICE=no
44724             fi
44725         fi
44726     fi
44727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_S3_DEVICE" >&5
44728 $as_echo "$WANT_S3_DEVICE" >&6; }
44729
44730      if test x"$WANT_S3_DEVICE" = x"yes"; then
44731   WANT_S3_DEVICE_TRUE=
44732   WANT_S3_DEVICE_FALSE='#'
44733 else
44734   WANT_S3_DEVICE_TRUE='#'
44735   WANT_S3_DEVICE_FALSE=
44736 fi
44737
44738
44739     # Now handle any setup for S3, if we want it.
44740     if test x"$WANT_S3_DEVICE" = x"yes"; then
44741
44742 $as_echo "#define WANT_S3_DEVICE /**/" >>confdefs.h
44743
44744     fi
44745
44746
44747     for ac_header in \
44748         linux/zftape.h \
44749         sys/tape.h \
44750         sys/mtio.h \
44751
44752 do :
44753   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44754 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
44755 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44756   cat >>confdefs.h <<_ACEOF
44757 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44758 _ACEOF
44759
44760 fi
44761
44762 done
44763
44764
44765     # check for MTIOCTOP, an indicator of POSIX tape support
44766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MTIOCTOP" >&5
44767 $as_echo_n "checking for MTIOCTOP... " >&6; }
44768 if ${amanda_cv_HAVE_MTIOCTOP+:} false; then :
44769   $as_echo_n "(cached) " >&6
44770 else
44771
44772         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44773 /* end confdefs.h.  */
44774
44775 #ifdef HAVE_SYS_TAPE_H
44776 # include <sys/tape.h>
44777 #endif
44778 #ifdef HAVE_SYS_MTIO_H
44779 # include <sys/mtio.h>
44780 #endif
44781 #ifndef MTIOCTOP
44782 #error MTIOCTOP not defined
44783 #endif
44784
44785 int
44786 main ()
44787 {
44788  int dummy = 0;
44789   ;
44790   return 0;
44791 }
44792 _ACEOF
44793 if ac_fn_c_try_compile "$LINENO"; then :
44794   amanda_cv_HAVE_MTIOCTOP=yes
44795 else
44796   amanda_cv_HAVE_MTIOCTOP=no
44797 fi
44798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44799
44800         HAVE_MTIOCTOP=$amanda_cv_HAVE_MTIOCTOP
44801
44802 fi
44803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amanda_cv_HAVE_MTIOCTOP" >&5
44804 $as_echo "$amanda_cv_HAVE_MTIOCTOP" >&6; }
44805
44806     # maybe we have no tape device at all (e.g., Mac OS X)?
44807     if test x"$HAVE_MTIOCTOP" = x"yes"; then
44808         want_tape_device=yes
44809
44810 $as_echo "#define WANT_TAPE_DEVICE 1" >>confdefs.h
44811
44812     fi
44813      if test -n "$want_tape_device"; then
44814   WANT_TAPE_DEVICE_TRUE=
44815   WANT_TAPE_DEVICE_FALSE='#'
44816 else
44817   WANT_TAPE_DEVICE_TRUE='#'
44818   WANT_TAPE_DEVICE_FALSE=
44819 fi
44820
44821
44822     #
44823     # Check for various "mt status" related structure elements.
44824     #
44825     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_flags mtget structure element" >&5
44826 $as_echo_n "checking for mt_flags mtget structure element... " >&6; }
44827     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44828 /* end confdefs.h.  */
44829
44830 #include <stdio.h>
44831 #include <sys/types.h>
44832 #include <sys/mtio.h>
44833
44834 int
44835 main ()
44836 {
44837
44838             struct mtget buf;
44839             long ds;
44840
44841             ds = buf.mt_flags;
44842
44843   ;
44844   return 0;
44845 }
44846 _ACEOF
44847 if ac_fn_c_try_compile "$LINENO"; then :
44848
44849             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44850 $as_echo "yes" >&6; }
44851
44852 $as_echo "#define HAVE_MT_FLAGS 1" >>confdefs.h
44853
44854
44855 else
44856
44857             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44858 $as_echo "no" >&6; }
44859
44860 fi
44861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44862
44863     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_fileno mtget structure element" >&5
44864 $as_echo_n "checking for mt_fileno mtget structure element... " >&6; }
44865     mt_fileno_result="found"
44866     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44867 /* end confdefs.h.  */
44868
44869 #include <stdio.h>
44870 #include <sys/types.h>
44871 #include <sys/mtio.h>
44872
44873 int
44874 main ()
44875 {
44876
44877             struct mtget buf;
44878             long ds;
44879
44880             ds = buf.mt_fileno;
44881
44882   ;
44883   return 0;
44884 }
44885 _ACEOF
44886 if ac_fn_c_try_compile "$LINENO"; then :
44887
44888             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44889 $as_echo "yes" >&6; }
44890
44891 $as_echo "#define HAVE_MT_FILENO 1" >>confdefs.h
44892
44893
44894 else
44895
44896             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44897 $as_echo "no" >&6; }
44898
44899 fi
44900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44901
44902     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_blkno mtget structure element" >&5
44903 $as_echo_n "checking for mt_blkno mtget structure element... " >&6; }
44904     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44905 /* end confdefs.h.  */
44906
44907 #include <stdio.h>
44908 #include <sys/types.h>
44909 #include <sys/mtio.h>
44910
44911 int
44912 main ()
44913 {
44914
44915             struct mtget buf;
44916             long ds;
44917
44918             ds = buf.mt_blkno;
44919
44920   ;
44921   return 0;
44922 }
44923 _ACEOF
44924 if ac_fn_c_try_compile "$LINENO"; then :
44925
44926             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44927 $as_echo "yes" >&6; }
44928
44929 $as_echo "#define HAVE_MT_BLKNO 1" >>confdefs.h
44930
44931
44932 else
44933
44934             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44935 $as_echo "no" >&6; }
44936
44937 fi
44938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44939
44940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_dsreg mtget structure element" >&5
44941 $as_echo_n "checking for mt_dsreg mtget structure element... " >&6; }
44942     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44943 /* end confdefs.h.  */
44944
44945 #include <stdio.h>
44946 #include <sys/types.h>
44947 #include <sys/mtio.h>
44948
44949 int
44950 main ()
44951 {
44952
44953             struct mtget buf;
44954             long ds;
44955
44956             ds = buf.mt_dsreg;
44957
44958   ;
44959   return 0;
44960 }
44961 _ACEOF
44962 if ac_fn_c_try_compile "$LINENO"; then :
44963
44964             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44965 $as_echo "yes" >&6; }
44966
44967 $as_echo "#define HAVE_MT_DSREG 1" >>confdefs.h
44968
44969
44970 else
44971
44972             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44973 $as_echo "no" >&6; }
44974
44975 fi
44976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44977
44978     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mt_erreg mtget structure element" >&5
44979 $as_echo_n "checking for mt_erreg mtget structure element... " >&6; }
44980     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44981 /* end confdefs.h.  */
44982
44983 #include <stdio.h>
44984 #include <sys/types.h>
44985 #include <sys/mtio.h>
44986
44987 int
44988 main ()
44989 {
44990
44991             struct mtget buf;
44992             long ds;
44993
44994             ds = buf.mt_erreg;
44995
44996   ;
44997   return 0;
44998 }
44999 _ACEOF
45000 if ac_fn_c_try_compile "$LINENO"; then :
45001
45002             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45003 $as_echo "yes" >&6; }
45004
45005 $as_echo "#define HAVE_MT_ERREG 1" >>confdefs.h
45006
45007
45008 else
45009
45010             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45011 $as_echo "no" >&6; }
45012
45013 fi
45014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45015
45016     case "$host" in
45017         *linux*)
45018 $as_echo "#define DEFAULT_TAPE_NON_BLOCKING_OPEN 1" >>confdefs.h
45019 ;;
45020     esac
45021
45022
45023         # Check whether --enable-dvdrw-device was given.
45024 if test "${enable_dvdrw_device+set}" = set; then :
45025   enableval=$enable_dvdrw_device;  WANT_DVDRW_DEVICE=$enableval
45026 else
45027    WANT_DVDRW_DEVICE=yes
45028 fi
45029
45030
45031         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include the DVD-RW device" >&5
45032 $as_echo_n "checking whether to include the DVD-RW device... " >&6; }
45033         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WANT_DVDRW_DEVICE" >&5
45034 $as_echo "$WANT_DVDRW_DEVICE" >&6; }
45035
45036          if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
45037   WANT_DVDRW_DEVICE_TRUE=
45038   WANT_DVDRW_DEVICE_FALSE='#'
45039 else
45040   WANT_DVDRW_DEVICE_TRUE='#'
45041   WANT_DVDRW_DEVICE_FALSE=
45042 fi
45043
45044
45045         # Now handle any setup for DVDRW, if we want it.
45046         if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
45047
45048 $as_echo "#define WANT_DVDRW_DEVICE /**/" >>confdefs.h
45049
45050         fi
45051
45052
45053
45054
45055     # Check whether --enable-ndmp-device was given.
45056 if test "${enable_ndmp_device+set}" = set; then :
45057   enableval=$enable_ndmp_device;  WANT_NDMP_DEVICE=$enableval
45058 else
45059    WANT_NDMP_DEVICE=$WANT_NDMP
45060 fi
45061
45062
45063     if test x"$WANT_NDMP" != x"true" -a x"$WANT_NDMP_DEVICE" = x"true"; then
45064         as_fn_error $? "NDMP support is required to build the ndmp device (--with-ndmp)" "$LINENO" 5
45065     fi
45066
45067     if test x"$WANT_NDMP_DEVICE" = x"true"; then
45068
45069 $as_echo "#define WANT_NDMP_DEVICE 1" >>confdefs.h
45070
45071     fi
45072
45073      if test x"$WANT_NDMP_DEVICE" = x"true"; then
45074   WANT_NDMP_DEVICE_TRUE=
45075   WANT_NDMP_DEVICE_FALSE='#'
45076 else
45077   WANT_NDMP_DEVICE_TRUE='#'
45078   WANT_NDMP_DEVICE_FALSE=
45079 fi
45080
45081
45082
45083
45084 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"
45085
45086
45087 cat >confcache <<\_ACEOF
45088 # This file is a shell script that caches the results of configure
45089 # tests run on this system so they can be shared between configure
45090 # scripts and configure runs, see configure's option --config-cache.
45091 # It is not useful on other systems.  If it contains results you don't
45092 # want to keep, you may remove or edit it.
45093 #
45094 # config.status only pays attention to the cache file if you give it
45095 # the --recheck option to rerun configure.
45096 #
45097 # `ac_cv_env_foo' variables (set or unset) will be overridden when
45098 # loading this file, other *unset* `ac_cv_foo' will be assigned the
45099 # following values.
45100
45101 _ACEOF
45102
45103 # The following way of writing the cache mishandles newlines in values,
45104 # but we know of no workaround that is simple, portable, and efficient.
45105 # So, we kill variables containing newlines.
45106 # Ultrix sh set writes to stderr and can't be redirected directly,
45107 # and sets the high bit in the cache file unless we assign to the vars.
45108 (
45109   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45110     eval ac_val=\$$ac_var
45111     case $ac_val in #(
45112     *${as_nl}*)
45113       case $ac_var in #(
45114       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
45115 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45116       esac
45117       case $ac_var in #(
45118       _ | IFS | as_nl) ;; #(
45119       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
45120       *) { eval $ac_var=; unset $ac_var;} ;;
45121       esac ;;
45122     esac
45123   done
45124
45125   (set) 2>&1 |
45126     case $as_nl`(ac_space=' '; set) 2>&1` in #(
45127     *${as_nl}ac_space=\ *)
45128       # `set' does not quote correctly, so add quotes: double-quote
45129       # substitution turns \\\\ into \\, and sed turns \\ into \.
45130       sed -n \
45131         "s/'/'\\\\''/g;
45132           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45133       ;; #(
45134     *)
45135       # `set' quotes correctly as required by POSIX, so do not add quotes.
45136       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45137       ;;
45138     esac |
45139     sort
45140 ) |
45141   sed '
45142      /^ac_cv_env_/b end
45143      t clear
45144      :clear
45145      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45146      t end
45147      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45148      :end' >>confcache
45149 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45150   if test -w "$cache_file"; then
45151     if test "x$cache_file" != "x/dev/null"; then
45152       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
45153 $as_echo "$as_me: updating cache $cache_file" >&6;}
45154       if test ! -f "$cache_file" || test -h "$cache_file"; then
45155         cat confcache >"$cache_file"
45156       else
45157         case $cache_file in #(
45158         */* | ?:*)
45159           mv -f confcache "$cache_file"$$ &&
45160           mv -f "$cache_file"$$ "$cache_file" ;; #(
45161         *)
45162           mv -f confcache "$cache_file" ;;
45163         esac
45164       fi
45165     fi
45166   else
45167     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
45168 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
45169   fi
45170 fi
45171 rm -f confcache
45172
45173 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45174 # Let make expand exec_prefix.
45175 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45176
45177 DEFS=-DHAVE_CONFIG_H
45178
45179 ac_libobjs=
45180 ac_ltlibobjs=
45181 U=
45182 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45183   # 1. Remove the extension, and $U if already installed.
45184   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45185   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
45186   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
45187   #    will be set to the directory where LIBOBJS objects are built.
45188   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45189   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
45190 done
45191 LIBOBJS=$ac_libobjs
45192
45193 LTLIBOBJS=$ac_ltlibobjs
45194
45195
45196  if test -n "$EXEEXT"; then
45197   am__EXEEXT_TRUE=
45198   am__EXEEXT_FALSE='#'
45199 else
45200   am__EXEEXT_TRUE='#'
45201   am__EXEEXT_FALSE=
45202 fi
45203
45204 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45205   as_fn_error $? "conditional \"AMDEP\" was never defined.
45206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45207 fi
45208 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45209   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
45210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45211 fi
45212 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
45213   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
45214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45215 fi
45216
45217     gl_libobjs=
45218     gl_ltlibobjs=
45219     if test -n "$gl_LIBOBJS"; then
45220       # Remove the extension.
45221       sed_drop_objext='s/\.o$//;s/\.obj$//'
45222       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
45223         gl_libobjs="$gl_libobjs $i.$ac_objext"
45224         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
45225       done
45226     fi
45227     gl_LIBOBJS=$gl_libobjs
45228
45229     gl_LTLIBOBJS=$gl_ltlibobjs
45230
45231
45232
45233     gltests_libobjs=
45234     gltests_ltlibobjs=
45235     if test -n "$gltests_LIBOBJS"; then
45236       # Remove the extension.
45237       sed_drop_objext='s/\.o$//;s/\.obj$//'
45238       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
45239         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
45240         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
45241       done
45242     fi
45243     gltests_LIBOBJS=$gltests_libobjs
45244
45245     gltests_LTLIBOBJS=$gltests_ltlibobjs
45246
45247
45248 if test -z "${WANT_AS_NEEDED_TRUE}" && test -z "${WANT_AS_NEEDED_FALSE}"; then
45249   as_fn_error $? "conditional \"WANT_AS_NEEDED\" was never defined.
45250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45251 fi
45252 if test -z "${CHECK_USERID_TRUE}" && test -z "${CHECK_USERID_FALSE}"; then
45253   as_fn_error $? "conditional \"CHECK_USERID\" was never defined.
45254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45255 fi
45256 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
45257   as_fn_error $? "conditional \"WANT_SETUID_CLIENT\" was never defined.
45258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45259 fi
45260 if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
45261   as_fn_error $? "conditional \"WANT_INSTALLPERMS\" was never defined.
45262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45263 fi
45264 if test -z "${SYNTAX_CHECKS_TRUE}" && test -z "${SYNTAX_CHECKS_FALSE}"; then
45265   as_fn_error $? "conditional \"SYNTAX_CHECKS\" was never defined.
45266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45267 fi
45268 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
45269   as_fn_error $? "conditional \"WANT_CLIENT\" was never defined.
45270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45271 fi
45272 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
45273   as_fn_error $? "conditional \"WANT_RESTORE\" was never defined.
45274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45275 fi
45276 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
45277   as_fn_error $? "conditional \"WANT_SERVER\" was never defined.
45278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45279 fi
45280 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
45281   as_fn_error $? "conditional \"WANT_RECOVER\" was never defined.
45282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45283 fi
45284 if test -z "${WANT_NDMP_TRUE}" && test -z "${WANT_NDMP_FALSE}"; then
45285   as_fn_error $? "conditional \"WANT_NDMP\" was never defined.
45286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45287 fi
45288 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
45289   as_fn_error $? "conditional \"WANT_TAPE\" was never defined.
45290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45291 fi
45292 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
45293   as_fn_error $? "conditional \"WANT_AMPLOT\" was never defined.
45294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45295 fi
45296 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
45297   as_fn_error $? "conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
45298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45299 fi
45300 if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
45301   as_fn_error $? "conditional \"WANT_AMFLOCK_POSIX\" was never defined.
45302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45303 fi
45304 if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
45305   as_fn_error $? "conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
45306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45307 fi
45308 if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
45309   as_fn_error $? "conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
45310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45311 fi
45312 if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
45313   as_fn_error $? "conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
45314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45315 fi
45316 if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
45317   as_fn_error $? "conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
45318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45319 fi
45320 if test -z "${WANT_MANDATORY_THREAD_CHECK_TRUE}" && test -z "${WANT_MANDATORY_THREAD_CHECK_FALSE}"; then
45321   as_fn_error $? "conditional \"WANT_MANDATORY_THREAD_CHECK\" was never defined.
45322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45323 fi
45324 if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
45325   as_fn_error $? "conditional \"WANT_BSD_SECURITY\" was never defined.
45326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45327 fi
45328 if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
45329   as_fn_error $? "conditional \"WANT_BSDTCP_SECURITY\" was never defined.
45330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45331 fi
45332 if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
45333   as_fn_error $? "conditional \"WANT_BSDUDP_SECURITY\" was never defined.
45334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45335 fi
45336 if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
45337   as_fn_error $? "conditional \"WANT_RSH_SECURITY\" was never defined.
45338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45339 fi
45340 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
45341   as_fn_error $? "conditional \"WANT_SSH_SECURITY\" was never defined.
45342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45343 fi
45344 if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
45345   as_fn_error $? "conditional \"WANT_KRB5_SECURITY\" was never defined.
45346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45347 fi
45348 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
45349   as_fn_error $? "conditional \"WANT_SAMBA\" was never defined.
45350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45351 fi
45352
45353 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
45354   as_fn_error $? "conditional \"GCC_COMPILER\" was never defined.
45355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45356 fi
45357 if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
45358   as_fn_error $? "conditional \"WANT_S3_DEVICE\" was never defined.
45359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45360 fi
45361 if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
45362   as_fn_error $? "conditional \"WANT_TAPE_DEVICE\" was never defined.
45363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45364 fi
45365 if test -z "${WANT_DVDRW_DEVICE_TRUE}" && test -z "${WANT_DVDRW_DEVICE_FALSE}"; then
45366   as_fn_error $? "conditional \"WANT_DVDRW_DEVICE\" was never defined.
45367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45368 fi
45369 if test -z "${WANT_NDMP_DEVICE_TRUE}" && test -z "${WANT_NDMP_DEVICE_FALSE}"; then
45370   as_fn_error $? "conditional \"WANT_NDMP_DEVICE\" was never defined.
45371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45372 fi
45373
45374 : "${CONFIG_STATUS=./config.status}"
45375 ac_write_fail=0
45376 ac_clean_files_save=$ac_clean_files
45377 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45378 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
45379 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
45380 as_write_fail=0
45381 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
45382 #! $SHELL
45383 # Generated by $as_me.
45384 # Run this file to recreate the current configuration.
45385 # Compiler output produced by configure, useful for debugging
45386 # configure, is in config.log if it exists.
45387
45388 debug=false
45389 ac_cs_recheck=false
45390 ac_cs_silent=false
45391
45392 SHELL=\${CONFIG_SHELL-$SHELL}
45393 export SHELL
45394 _ASEOF
45395 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
45396 ## -------------------- ##
45397 ## M4sh Initialization. ##
45398 ## -------------------- ##
45399
45400 # Be more Bourne compatible
45401 DUALCASE=1; export DUALCASE # for MKS sh
45402 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
45403   emulate sh
45404   NULLCMD=:
45405   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45406   # is contrary to our usage.  Disable this feature.
45407   alias -g '${1+"$@"}'='"$@"'
45408   setopt NO_GLOB_SUBST
45409 else
45410   case `(set -o) 2>/dev/null` in #(
45411   *posix*) :
45412     set -o posix ;; #(
45413   *) :
45414      ;;
45415 esac
45416 fi
45417
45418
45419 as_nl='
45420 '
45421 export as_nl
45422 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45423 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45424 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45425 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45426 # Prefer a ksh shell builtin over an external printf program on Solaris,
45427 # but without wasting forks for bash or zsh.
45428 if test -z "$BASH_VERSION$ZSH_VERSION" \
45429     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45430   as_echo='print -r --'
45431   as_echo_n='print -rn --'
45432 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
45433   as_echo='printf %s\n'
45434   as_echo_n='printf %s'
45435 else
45436   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
45437     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
45438     as_echo_n='/usr/ucb/echo -n'
45439   else
45440     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
45441     as_echo_n_body='eval
45442       arg=$1;
45443       case $arg in #(
45444       *"$as_nl"*)
45445         expr "X$arg" : "X\\(.*\\)$as_nl";
45446         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
45447       esac;
45448       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
45449     '
45450     export as_echo_n_body
45451     as_echo_n='sh -c $as_echo_n_body as_echo'
45452   fi
45453   export as_echo_body
45454   as_echo='sh -c $as_echo_body as_echo'
45455 fi
45456
45457 # The user is always right.
45458 if test "${PATH_SEPARATOR+set}" != set; then
45459   PATH_SEPARATOR=:
45460   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
45461     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
45462       PATH_SEPARATOR=';'
45463   }
45464 fi
45465
45466
45467 # IFS
45468 # We need space, tab and new line, in precisely that order.  Quoting is
45469 # there to prevent editors from complaining about space-tab.
45470 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
45471 # splitting by setting IFS to empty value.)
45472 IFS=" ""        $as_nl"
45473
45474 # Find who we are.  Look in the path if we contain no directory separator.
45475 as_myself=
45476 case $0 in #((
45477   *[\\/]* ) as_myself=$0 ;;
45478   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45479 for as_dir in $PATH
45480 do
45481   IFS=$as_save_IFS
45482   test -z "$as_dir" && as_dir=.
45483     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45484   done
45485 IFS=$as_save_IFS
45486
45487      ;;
45488 esac
45489 # We did not find ourselves, most probably we were run as `sh COMMAND'
45490 # in which case we are not to be found in the path.
45491 if test "x$as_myself" = x; then
45492   as_myself=$0
45493 fi
45494 if test ! -f "$as_myself"; then
45495   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
45496   exit 1
45497 fi
45498
45499 # Unset variables that we do not need and which cause bugs (e.g. in
45500 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
45501 # suppresses any "Segmentation fault" message there.  '((' could
45502 # trigger a bug in pdksh 5.2.14.
45503 for as_var in BASH_ENV ENV MAIL MAILPATH
45504 do eval test x\${$as_var+set} = xset \
45505   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
45506 done
45507 PS1='$ '
45508 PS2='> '
45509 PS4='+ '
45510
45511 # NLS nuisances.
45512 LC_ALL=C
45513 export LC_ALL
45514 LANGUAGE=C
45515 export LANGUAGE
45516
45517 # CDPATH.
45518 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45519
45520
45521 # as_fn_error STATUS ERROR [LINENO LOG_FD]
45522 # ----------------------------------------
45523 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
45524 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
45525 # script with STATUS, using 1 if that was 0.
45526 as_fn_error ()
45527 {
45528   as_status=$1; test $as_status -eq 0 && as_status=1
45529   if test "$4"; then
45530     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
45531     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
45532   fi
45533   $as_echo "$as_me: error: $2" >&2
45534   as_fn_exit $as_status
45535 } # as_fn_error
45536
45537
45538 # as_fn_set_status STATUS
45539 # -----------------------
45540 # Set $? to STATUS, without forking.
45541 as_fn_set_status ()
45542 {
45543   return $1
45544 } # as_fn_set_status
45545
45546 # as_fn_exit STATUS
45547 # -----------------
45548 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
45549 as_fn_exit ()
45550 {
45551   set +e
45552   as_fn_set_status $1
45553   exit $1
45554 } # as_fn_exit
45555
45556 # as_fn_unset VAR
45557 # ---------------
45558 # Portably unset VAR.
45559 as_fn_unset ()
45560 {
45561   { eval $1=; unset $1;}
45562 }
45563 as_unset=as_fn_unset
45564 # as_fn_append VAR VALUE
45565 # ----------------------
45566 # Append the text in VALUE to the end of the definition contained in VAR. Take
45567 # advantage of any shell optimizations that allow amortized linear growth over
45568 # repeated appends, instead of the typical quadratic growth present in naive
45569 # implementations.
45570 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
45571   eval 'as_fn_append ()
45572   {
45573     eval $1+=\$2
45574   }'
45575 else
45576   as_fn_append ()
45577   {
45578     eval $1=\$$1\$2
45579   }
45580 fi # as_fn_append
45581
45582 # as_fn_arith ARG...
45583 # ------------------
45584 # Perform arithmetic evaluation on the ARGs, and store the result in the
45585 # global $as_val. Take advantage of shells that can avoid forks. The arguments
45586 # must be portable across $(()) and expr.
45587 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
45588   eval 'as_fn_arith ()
45589   {
45590     as_val=$(( $* ))
45591   }'
45592 else
45593   as_fn_arith ()
45594   {
45595     as_val=`expr "$@" || test $? -eq 1`
45596   }
45597 fi # as_fn_arith
45598
45599
45600 if expr a : '\(a\)' >/dev/null 2>&1 &&
45601    test "X`expr 00001 : '.*\(...\)'`" = X001; then
45602   as_expr=expr
45603 else
45604   as_expr=false
45605 fi
45606
45607 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45608   as_basename=basename
45609 else
45610   as_basename=false
45611 fi
45612
45613 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45614   as_dirname=dirname
45615 else
45616   as_dirname=false
45617 fi
45618
45619 as_me=`$as_basename -- "$0" ||
45620 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45621          X"$0" : 'X\(//\)$' \| \
45622          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
45623 $as_echo X/"$0" |
45624     sed '/^.*\/\([^/][^/]*\)\/*$/{
45625             s//\1/
45626             q
45627           }
45628           /^X\/\(\/\/\)$/{
45629             s//\1/
45630             q
45631           }
45632           /^X\/\(\/\).*/{
45633             s//\1/
45634             q
45635           }
45636           s/.*/./; q'`
45637
45638 # Avoid depending upon Character Ranges.
45639 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45640 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45641 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45642 as_cr_digits='0123456789'
45643 as_cr_alnum=$as_cr_Letters$as_cr_digits
45644
45645 ECHO_C= ECHO_N= ECHO_T=
45646 case `echo -n x` in #(((((
45647 -n*)
45648   case `echo 'xy\c'` in
45649   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
45650   xy)  ECHO_C='\c';;
45651   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
45652        ECHO_T=' ';;
45653   esac;;
45654 *)
45655   ECHO_N='-n';;
45656 esac
45657
45658 rm -f conf$$ conf$$.exe conf$$.file
45659 if test -d conf$$.dir; then
45660   rm -f conf$$.dir/conf$$.file
45661 else
45662   rm -f conf$$.dir
45663   mkdir conf$$.dir 2>/dev/null
45664 fi
45665 if (echo >conf$$.file) 2>/dev/null; then
45666   if ln -s conf$$.file conf$$ 2>/dev/null; then
45667     as_ln_s='ln -s'
45668     # ... but there are two gotchas:
45669     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
45670     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
45671     # In both cases, we have to default to `cp -p'.
45672     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
45673       as_ln_s='cp -p'
45674   elif ln conf$$.file conf$$ 2>/dev/null; then
45675     as_ln_s=ln
45676   else
45677     as_ln_s='cp -p'
45678   fi
45679 else
45680   as_ln_s='cp -p'
45681 fi
45682 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
45683 rmdir conf$$.dir 2>/dev/null
45684
45685
45686 # as_fn_mkdir_p
45687 # -------------
45688 # Create "$as_dir" as a directory, including parents if necessary.
45689 as_fn_mkdir_p ()
45690 {
45691
45692   case $as_dir in #(
45693   -*) as_dir=./$as_dir;;
45694   esac
45695   test -d "$as_dir" || eval $as_mkdir_p || {
45696     as_dirs=
45697     while :; do
45698       case $as_dir in #(
45699       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
45700       *) as_qdir=$as_dir;;
45701       esac
45702       as_dirs="'$as_qdir' $as_dirs"
45703       as_dir=`$as_dirname -- "$as_dir" ||
45704 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45705          X"$as_dir" : 'X\(//\)[^/]' \| \
45706          X"$as_dir" : 'X\(//\)$' \| \
45707          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45708 $as_echo X"$as_dir" |
45709     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45710             s//\1/
45711             q
45712           }
45713           /^X\(\/\/\)[^/].*/{
45714             s//\1/
45715             q
45716           }
45717           /^X\(\/\/\)$/{
45718             s//\1/
45719             q
45720           }
45721           /^X\(\/\).*/{
45722             s//\1/
45723             q
45724           }
45725           s/.*/./; q'`
45726       test -d "$as_dir" && break
45727     done
45728     test -z "$as_dirs" || eval "mkdir $as_dirs"
45729   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
45730
45731
45732 } # as_fn_mkdir_p
45733 if mkdir -p . 2>/dev/null; then
45734   as_mkdir_p='mkdir -p "$as_dir"'
45735 else
45736   test -d ./-p && rmdir ./-p
45737   as_mkdir_p=false
45738 fi
45739
45740 if test -x / >/dev/null 2>&1; then
45741   as_test_x='test -x'
45742 else
45743   if ls -dL / >/dev/null 2>&1; then
45744     as_ls_L_option=L
45745   else
45746     as_ls_L_option=
45747   fi
45748   as_test_x='
45749     eval sh -c '\''
45750       if test -d "$1"; then
45751         test -d "$1/.";
45752       else
45753         case $1 in #(
45754         -*)set "./$1";;
45755         esac;
45756         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
45757         ???[sx]*):;;*)false;;esac;fi
45758     '\'' sh
45759   '
45760 fi
45761 as_executable_p=$as_test_x
45762
45763 # Sed expression to map a string onto a valid CPP name.
45764 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45765
45766 # Sed expression to map a string onto a valid variable name.
45767 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45768
45769
45770 exec 6>&1
45771 ## ----------------------------------- ##
45772 ## Main body of $CONFIG_STATUS script. ##
45773 ## ----------------------------------- ##
45774 _ASEOF
45775 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
45776
45777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45778 # Save the log message, to keep $0 and so on meaningful, and to
45779 # report actual input values of CONFIG_FILES etc. instead of their
45780 # values after options handling.
45781 ac_log="
45782 This file was extended by amanda $as_me 3.3.3, which was
45783 generated by GNU Autoconf 2.68.  Invocation command line was
45784
45785   CONFIG_FILES    = $CONFIG_FILES
45786   CONFIG_HEADERS  = $CONFIG_HEADERS
45787   CONFIG_LINKS    = $CONFIG_LINKS
45788   CONFIG_COMMANDS = $CONFIG_COMMANDS
45789   $ $0 $@
45790
45791 on `(hostname || uname -n) 2>/dev/null | sed 1q`
45792 "
45793
45794 _ACEOF
45795
45796 case $ac_config_files in *"
45797 "*) set x $ac_config_files; shift; ac_config_files=$*;;
45798 esac
45799
45800 case $ac_config_headers in *"
45801 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
45802 esac
45803
45804
45805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45806 # Files that config.status was made for.
45807 config_files="$ac_config_files"
45808 config_headers="$ac_config_headers"
45809 config_commands="$ac_config_commands"
45810
45811 _ACEOF
45812
45813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45814 ac_cs_usage="\
45815 \`$as_me' instantiates files and other configuration actions
45816 from templates according to the current configuration.  Unless the files
45817 and actions are specified as TAGs, all are instantiated by default.
45818
45819 Usage: $0 [OPTION]... [TAG]...
45820
45821   -h, --help       print this help, then exit
45822   -V, --version    print version number and configuration settings, then exit
45823       --config     print configuration, then exit
45824   -q, --quiet, --silent
45825                    do not print progress messages
45826   -d, --debug      don't remove temporary files
45827       --recheck    update $as_me by reconfiguring in the same conditions
45828       --file=FILE[:TEMPLATE]
45829                    instantiate the configuration file FILE
45830       --header=FILE[:TEMPLATE]
45831                    instantiate the configuration header FILE
45832
45833 Configuration files:
45834 $config_files
45835
45836 Configuration headers:
45837 $config_headers
45838
45839 Configuration commands:
45840 $config_commands
45841
45842 Report bugs to the package provider."
45843
45844 _ACEOF
45845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45846 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
45847 ac_cs_version="\\
45848 amanda config.status 3.3.3
45849 configured by $0, generated by GNU Autoconf 2.68,
45850   with options \\"\$ac_cs_config\\"
45851
45852 Copyright (C) 2010 Free Software Foundation, Inc.
45853 This config.status script is free software; the Free Software Foundation
45854 gives unlimited permission to copy, distribute and modify it."
45855
45856 ac_pwd='$ac_pwd'
45857 srcdir='$srcdir'
45858 INSTALL='$INSTALL'
45859 MKDIR_P='$MKDIR_P'
45860 AWK='$AWK'
45861 test -n "\$AWK" || AWK=awk
45862 _ACEOF
45863
45864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45865 # The default lists apply if the user does not specify any file.
45866 ac_need_defaults=:
45867 while test $# != 0
45868 do
45869   case $1 in
45870   --*=?*)
45871     ac_option=`expr "X$1" : 'X\([^=]*\)='`
45872     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
45873     ac_shift=:
45874     ;;
45875   --*=)
45876     ac_option=`expr "X$1" : 'X\([^=]*\)='`
45877     ac_optarg=
45878     ac_shift=:
45879     ;;
45880   *)
45881     ac_option=$1
45882     ac_optarg=$2
45883     ac_shift=shift
45884     ;;
45885   esac
45886
45887   case $ac_option in
45888   # Handling of the options.
45889   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45890     ac_cs_recheck=: ;;
45891   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
45892     $as_echo "$ac_cs_version"; exit ;;
45893   --config | --confi | --conf | --con | --co | --c )
45894     $as_echo "$ac_cs_config"; exit ;;
45895   --debug | --debu | --deb | --de | --d | -d )
45896     debug=: ;;
45897   --file | --fil | --fi | --f )
45898     $ac_shift
45899     case $ac_optarg in
45900     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
45901     '') as_fn_error $? "missing file argument" ;;
45902     esac
45903     as_fn_append CONFIG_FILES " '$ac_optarg'"
45904     ac_need_defaults=false;;
45905   --header | --heade | --head | --hea )
45906     $ac_shift
45907     case $ac_optarg in
45908     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
45909     esac
45910     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
45911     ac_need_defaults=false;;
45912   --he | --h)
45913     # Conflict between --help and --header
45914     as_fn_error $? "ambiguous option: \`$1'
45915 Try \`$0 --help' for more information.";;
45916   --help | --hel | -h )
45917     $as_echo "$ac_cs_usage"; exit ;;
45918   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45919   | -silent | --silent | --silen | --sile | --sil | --si | --s)
45920     ac_cs_silent=: ;;
45921
45922   # This is an error.
45923   -*) as_fn_error $? "unrecognized option: \`$1'
45924 Try \`$0 --help' for more information." ;;
45925
45926   *) as_fn_append ac_config_targets " $1"
45927      ac_need_defaults=false ;;
45928
45929   esac
45930   shift
45931 done
45932
45933 ac_configure_extra_args=
45934
45935 if $ac_cs_silent; then
45936   exec 6>/dev/null
45937   ac_configure_extra_args="$ac_configure_extra_args --silent"
45938 fi
45939
45940 _ACEOF
45941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45942 if \$ac_cs_recheck; then
45943   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45944   shift
45945   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
45946   CONFIG_SHELL='$SHELL'
45947   export CONFIG_SHELL
45948   exec "\$@"
45949 fi
45950
45951 _ACEOF
45952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45953 exec 5>>config.log
45954 {
45955   echo
45956   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45957 ## Running $as_me. ##
45958 _ASBOX
45959   $as_echo "$ac_log"
45960 } >&5
45961
45962 _ACEOF
45963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45964 #
45965 # INIT-COMMANDS
45966 #
45967 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45968 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
45969     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
45970     # from automake < 1.5.
45971     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
45972     # Capture the value of LINGUAS because we need it to compute CATALOGS.
45973     LINGUAS="${LINGUAS-%UNSET%}"
45974
45975
45976
45977 # The HP-UX ksh and POSIX shell print the target directory to stdout
45978 # if CDPATH is set.
45979 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45980
45981 sed_quote_subst='$sed_quote_subst'
45982 double_quote_subst='$double_quote_subst'
45983 delay_variable_subst='$delay_variable_subst'
45984 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
45985 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
45986 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
45987 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
45988 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
45989 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
45990 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
45991 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
45992 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
45993 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
45994 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
45995 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
45996 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
45997 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
45998 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
45999 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
46000 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
46001 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
46002 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
46003 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
46004 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
46005 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
46006 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
46007 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
46008 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
46009 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
46010 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
46011 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
46012 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
46013 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
46014 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
46015 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
46016 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
46017 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
46018 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
46019 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
46020 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
46021 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
46022 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
46023 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
46024 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
46025 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
46026 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
46027 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
46028 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46029 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46030 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
46031 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
46032 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
46033 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
46034 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
46035 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
46036 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
46037 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
46038 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
46039 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"`'
46040 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
46041 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
46042 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
46043 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
46044 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
46045 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
46046 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
46047 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
46048 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
46049 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
46050 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
46051 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
46052 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
46053 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
46054 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
46055 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
46056 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
46057 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
46058 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46059 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
46060 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
46061 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
46062 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
46063 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
46064 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
46065 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46066 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
46067 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46068 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
46069 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46070 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
46071 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
46072 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
46073 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
46074 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
46075 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
46076 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
46077 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
46078 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
46079 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
46080 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
46081 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
46082 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
46083 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
46084 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
46085 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
46086 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
46087 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
46088 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
46089 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
46090 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
46091 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
46092 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
46093 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
46094 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
46095 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
46096 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
46097 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
46098 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
46099 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
46100 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
46101 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46102 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46103 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
46104 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
46105 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
46106 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
46107 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
46108 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
46109 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
46110 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
46111 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
46112 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
46113 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
46114
46115 LTCC='$LTCC'
46116 LTCFLAGS='$LTCFLAGS'
46117 compiler='$compiler_DEFAULT'
46118
46119 # A function that is used when there is no print builtin or printf.
46120 func_fallback_echo ()
46121 {
46122   eval 'cat <<_LTECHO_EOF
46123 \$1
46124 _LTECHO_EOF'
46125 }
46126
46127 # Quote evaled strings.
46128 for var in SHELL \
46129 ECHO \
46130 SED \
46131 GREP \
46132 EGREP \
46133 FGREP \
46134 LD \
46135 NM \
46136 LN_S \
46137 lt_SP2NL \
46138 lt_NL2SP \
46139 reload_flag \
46140 OBJDUMP \
46141 deplibs_check_method \
46142 file_magic_cmd \
46143 file_magic_glob \
46144 want_nocaseglob \
46145 DLLTOOL \
46146 sharedlib_from_linklib_cmd \
46147 AR \
46148 AR_FLAGS \
46149 archiver_list_spec \
46150 STRIP \
46151 RANLIB \
46152 CC \
46153 CFLAGS \
46154 compiler \
46155 lt_cv_sys_global_symbol_pipe \
46156 lt_cv_sys_global_symbol_to_cdecl \
46157 lt_cv_sys_global_symbol_to_c_name_address \
46158 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46159 nm_file_list_spec \
46160 lt_prog_compiler_no_builtin_flag \
46161 lt_prog_compiler_pic \
46162 lt_prog_compiler_wl \
46163 lt_prog_compiler_static \
46164 lt_cv_prog_compiler_c_o \
46165 need_locks \
46166 MANIFEST_TOOL \
46167 DSYMUTIL \
46168 NMEDIT \
46169 LIPO \
46170 OTOOL \
46171 OTOOL64 \
46172 shrext_cmds \
46173 export_dynamic_flag_spec \
46174 whole_archive_flag_spec \
46175 compiler_needs_object \
46176 with_gnu_ld \
46177 allow_undefined_flag \
46178 no_undefined_flag \
46179 hardcode_libdir_flag_spec \
46180 hardcode_libdir_flag_spec_ld \
46181 hardcode_libdir_separator \
46182 exclude_expsyms \
46183 include_expsyms \
46184 file_list_spec \
46185 variables_saved_for_relink \
46186 libname_spec \
46187 library_names_spec \
46188 soname_spec \
46189 install_override_mode \
46190 finish_eval \
46191 old_striplib \
46192 striplib; do
46193     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46194     *[\\\\\\\`\\"\\\$]*)
46195       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
46196       ;;
46197     *)
46198       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46199       ;;
46200     esac
46201 done
46202
46203 # Double-quote double-evaled strings.
46204 for var in reload_cmds \
46205 old_postinstall_cmds \
46206 old_postuninstall_cmds \
46207 old_archive_cmds \
46208 extract_expsyms_cmds \
46209 old_archive_from_new_cmds \
46210 old_archive_from_expsyms_cmds \
46211 archive_cmds \
46212 archive_expsym_cmds \
46213 module_cmds \
46214 module_expsym_cmds \
46215 export_symbols_cmds \
46216 prelink_cmds \
46217 postlink_cmds \
46218 postinstall_cmds \
46219 postuninstall_cmds \
46220 finish_cmds \
46221 sys_lib_search_path_spec \
46222 sys_lib_dlsearch_path_spec; do
46223     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46224     *[\\\\\\\`\\"\\\$]*)
46225       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
46226       ;;
46227     *)
46228       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46229       ;;
46230     esac
46231 done
46232
46233 ac_aux_dir='$ac_aux_dir'
46234 xsi_shell='$xsi_shell'
46235 lt_shell_append='$lt_shell_append'
46236
46237 # See if we are running on zsh, and set the options which allow our
46238 # commands through without removal of \ escapes INIT.
46239 if test -n "\${ZSH_VERSION+set}" ; then
46240    setopt NO_GLOB_SUBST
46241 fi
46242
46243
46244     PACKAGE='$PACKAGE'
46245     VERSION='$VERSION'
46246     TIMESTAMP='$TIMESTAMP'
46247     RM='$RM'
46248     ofile='$ofile'
46249
46250
46251
46252
46253 _ACEOF
46254
46255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46256
46257 # Handling of arguments.
46258 for ac_config_target in $ac_config_targets
46259 do
46260   case $ac_config_target in
46261     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
46262     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
46263     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
46264     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
46265     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46266     "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
46267     "amar-src/Makefile") CONFIG_FILES="$CONFIG_FILES amar-src/Makefile" ;;
46268     "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
46269     "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
46270     "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
46271     "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
46272     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
46273     "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
46274     "application-src/Makefile") CONFIG_FILES="$CONFIG_FILES application-src/Makefile" ;;
46275     "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
46276     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
46277     "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
46278     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
46279     "ndmp-src/Makefile") CONFIG_FILES="$CONFIG_FILES ndmp-src/Makefile" ;;
46280     "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
46281     "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
46282     "perl/amglue/Makefile") CONFIG_FILES="$CONFIG_FILES perl/amglue/Makefile" ;;
46283     "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
46284     "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
46285     "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
46286     "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
46287     "xfer-src/Makefile") CONFIG_FILES="$CONFIG_FILES xfer-src/Makefile" ;;
46288
46289   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
46290   esac
46291 done
46292
46293
46294 # If the user did not use the arguments to specify the items to instantiate,
46295 # then the envvar interface is used.  Set only those that are not.
46296 # We use the long form for the default assignment because of an extremely
46297 # bizarre bug on SunOS 4.1.3.
46298 if $ac_need_defaults; then
46299   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46300   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46301   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46302 fi
46303
46304 # Have a temporary directory for convenience.  Make it in the build tree
46305 # simply because there is no reason against having it here, and in addition,
46306 # creating and moving files from /tmp can sometimes cause problems.
46307 # Hook for its removal unless debugging.
46308 # Note that there is a small window in which the directory will not be cleaned:
46309 # after its creation but before its name has been assigned to `$tmp'.
46310 $debug ||
46311 {
46312   tmp= ac_tmp=
46313   trap 'exit_status=$?
46314   : "${ac_tmp:=$tmp}"
46315   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
46316 ' 0
46317   trap 'as_fn_exit 1' 1 2 13 15
46318 }
46319 # Create a (secure) tmp directory for tmp files.
46320
46321 {
46322   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46323   test -d "$tmp"
46324 }  ||
46325 {
46326   tmp=./conf$$-$RANDOM
46327   (umask 077 && mkdir "$tmp")
46328 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
46329 ac_tmp=$tmp
46330
46331 # Set up the scripts for CONFIG_FILES section.
46332 # No need to generate them if there are no CONFIG_FILES.
46333 # This happens for instance with `./config.status config.h'.
46334 if test -n "$CONFIG_FILES"; then
46335
46336
46337 ac_cr=`echo X | tr X '\015'`
46338 # On cygwin, bash can eat \r inside `` if the user requested igncr.
46339 # But we know of no other shell where ac_cr would be empty at this
46340 # point, so we can use a bashism as a fallback.
46341 if test "x$ac_cr" = x; then
46342   eval ac_cr=\$\'\\r\'
46343 fi
46344 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
46345 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
46346   ac_cs_awk_cr='\\r'
46347 else
46348   ac_cs_awk_cr=$ac_cr
46349 fi
46350
46351 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
46352 _ACEOF
46353
46354
46355 {
46356   echo "cat >conf$$subs.awk <<_ACEOF" &&
46357   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
46358   echo "_ACEOF"
46359 } >conf$$subs.sh ||
46360   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46361 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
46362 ac_delim='%!_!# '
46363 for ac_last_try in false false false false false :; do
46364   . ./conf$$subs.sh ||
46365     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46366
46367   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
46368   if test $ac_delim_n = $ac_delim_num; then
46369     break
46370   elif $ac_last_try; then
46371     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46372   else
46373     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46374   fi
46375 done
46376 rm -f conf$$subs.sh
46377
46378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46379 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
46380 _ACEOF
46381 sed -n '
46382 h
46383 s/^/S["/; s/!.*/"]=/
46384 p
46385 g
46386 s/^[^!]*!//
46387 :repl
46388 t repl
46389 s/'"$ac_delim"'$//
46390 t delim
46391 :nl
46392 h
46393 s/\(.\{148\}\)..*/\1/
46394 t more1
46395 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
46396 p
46397 n
46398 b repl
46399 :more1
46400 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46401 p
46402 g
46403 s/.\{148\}//
46404 t nl
46405 :delim
46406 h
46407 s/\(.\{148\}\)..*/\1/
46408 t more2
46409 s/["\\]/\\&/g; s/^/"/; s/$/"/
46410 p
46411 b
46412 :more2
46413 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46414 p
46415 g
46416 s/.\{148\}//
46417 t delim
46418 ' <conf$$subs.awk | sed '
46419 /^[^""]/{
46420   N
46421   s/\n//
46422 }
46423 ' >>$CONFIG_STATUS || ac_write_fail=1
46424 rm -f conf$$subs.awk
46425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46426 _ACAWK
46427 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
46428   for (key in S) S_is_set[key] = 1
46429   FS = "\a"
46430
46431 }
46432 {
46433   line = $ 0
46434   nfields = split(line, field, "@")
46435   substed = 0
46436   len = length(field[1])
46437   for (i = 2; i < nfields; i++) {
46438     key = field[i]
46439     keylen = length(key)
46440     if (S_is_set[key]) {
46441       value = S[key]
46442       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
46443       len += length(value) + length(field[++i])
46444       substed = 1
46445     } else
46446       len += 1 + keylen
46447   }
46448
46449   print line
46450 }
46451
46452 _ACAWK
46453 _ACEOF
46454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46455 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
46456   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
46457 else
46458   cat
46459 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
46460   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
46461 _ACEOF
46462
46463 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
46464 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
46465 # trailing colons and then remove the whole line if VPATH becomes empty
46466 # (actually we leave an empty line to preserve line numbers).
46467 if test "x$srcdir" = x.; then
46468   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
46469 h
46470 s///
46471 s/^/:/
46472 s/[      ]*$/:/
46473 s/:\$(srcdir):/:/g
46474 s/:\${srcdir}:/:/g
46475 s/:@srcdir@:/:/g
46476 s/^:*//
46477 s/:*$//
46478 x
46479 s/\(=[   ]*\).*/\1/
46480 G
46481 s/\n//
46482 s/^[^=]*=[       ]*$//
46483 }'
46484 fi
46485
46486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46487 fi # test -n "$CONFIG_FILES"
46488
46489 # Set up the scripts for CONFIG_HEADERS section.
46490 # No need to generate them if there are no CONFIG_HEADERS.
46491 # This happens for instance with `./config.status Makefile'.
46492 if test -n "$CONFIG_HEADERS"; then
46493 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
46494 BEGIN {
46495 _ACEOF
46496
46497 # Transform confdefs.h into an awk script `defines.awk', embedded as
46498 # here-document in config.status, that substitutes the proper values into
46499 # config.h.in to produce config.h.
46500
46501 # Create a delimiter string that does not exist in confdefs.h, to ease
46502 # handling of long lines.
46503 ac_delim='%!_!# '
46504 for ac_last_try in false false :; do
46505   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
46506   if test -z "$ac_tt"; then
46507     break
46508   elif $ac_last_try; then
46509     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
46510   else
46511     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46512   fi
46513 done
46514
46515 # For the awk script, D is an array of macro values keyed by name,
46516 # likewise P contains macro parameters if any.  Preserve backslash
46517 # newline sequences.
46518
46519 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46520 sed -n '
46521 s/.\{148\}/&'"$ac_delim"'/g
46522 t rset
46523 :rset
46524 s/^[     ]*#[    ]*define[       ][      ]*/ /
46525 t def
46526 d
46527 :def
46528 s/\\$//
46529 t bsnl
46530 s/["\\]/\\&/g
46531 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
46532 D["\1"]=" \3"/p
46533 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
46534 d
46535 :bsnl
46536 s/["\\]/\\&/g
46537 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
46538 D["\1"]=" \3\\\\\\n"\\/p
46539 t cont
46540 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
46541 t cont
46542 d
46543 :cont
46544 n
46545 s/.\{148\}/&'"$ac_delim"'/g
46546 t clear
46547 :clear
46548 s/\\$//
46549 t bsnlc
46550 s/["\\]/\\&/g; s/^/"/; s/$/"/p
46551 d
46552 :bsnlc
46553 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
46554 b cont
46555 ' <confdefs.h | sed '
46556 s/'"$ac_delim"'/"\\\
46557 "/g' >>$CONFIG_STATUS || ac_write_fail=1
46558
46559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46560   for (key in D) D_is_set[key] = 1
46561   FS = "\a"
46562 }
46563 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
46564   line = \$ 0
46565   split(line, arg, " ")
46566   if (arg[1] == "#") {
46567     defundef = arg[2]
46568     mac1 = arg[3]
46569   } else {
46570     defundef = substr(arg[1], 2)
46571     mac1 = arg[2]
46572   }
46573   split(mac1, mac2, "(") #)
46574   macro = mac2[1]
46575   prefix = substr(line, 1, index(line, defundef) - 1)
46576   if (D_is_set[macro]) {
46577     # Preserve the white space surrounding the "#".
46578     print prefix "define", macro P[macro] D[macro]
46579     next
46580   } else {
46581     # Replace #undef with comments.  This is necessary, for example,
46582     # in the case of _POSIX_SOURCE, which is predefined and required
46583     # on some systems where configure will not decide to define it.
46584     if (defundef == "undef") {
46585       print "/*", prefix defundef, macro, "*/"
46586       next
46587     }
46588   }
46589 }
46590 { print }
46591 _ACAWK
46592 _ACEOF
46593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46594   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
46595 fi # test -n "$CONFIG_HEADERS"
46596
46597
46598 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
46599 shift
46600 for ac_tag
46601 do
46602   case $ac_tag in
46603   :[FHLC]) ac_mode=$ac_tag; continue;;
46604   esac
46605   case $ac_mode$ac_tag in
46606   :[FHL]*:*);;
46607   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
46608   :[FH]-) ac_tag=-:-;;
46609   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
46610   esac
46611   ac_save_IFS=$IFS
46612   IFS=:
46613   set x $ac_tag
46614   IFS=$ac_save_IFS
46615   shift
46616   ac_file=$1
46617   shift
46618
46619   case $ac_mode in
46620   :L) ac_source=$1;;
46621   :[FH])
46622     ac_file_inputs=
46623     for ac_f
46624     do
46625       case $ac_f in
46626       -) ac_f="$ac_tmp/stdin";;
46627       *) # Look for the file first in the build tree, then in the source tree
46628          # (if the path is not absolute).  The absolute path cannot be DOS-style,
46629          # because $ac_f cannot contain `:'.
46630          test -f "$ac_f" ||
46631            case $ac_f in
46632            [\\/$]*) false;;
46633            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
46634            esac ||
46635            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
46636       esac
46637       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
46638       as_fn_append ac_file_inputs " '$ac_f'"
46639     done
46640
46641     # Let's still pretend it is `configure' which instantiates (i.e., don't
46642     # use $as_me), people would be surprised to read:
46643     #    /* config.h.  Generated by config.status.  */
46644     configure_input='Generated from '`
46645           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
46646         `' by configure.'
46647     if test x"$ac_file" != x-; then
46648       configure_input="$ac_file.  $configure_input"
46649       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
46650 $as_echo "$as_me: creating $ac_file" >&6;}
46651     fi
46652     # Neutralize special characters interpreted by sed in replacement strings.
46653     case $configure_input in #(
46654     *\&* | *\|* | *\\* )
46655        ac_sed_conf_input=`$as_echo "$configure_input" |
46656        sed 's/[\\\\&|]/\\\\&/g'`;; #(
46657     *) ac_sed_conf_input=$configure_input;;
46658     esac
46659
46660     case $ac_tag in
46661     *:-:* | *:-) cat >"$ac_tmp/stdin" \
46662       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
46663     esac
46664     ;;
46665   esac
46666
46667   ac_dir=`$as_dirname -- "$ac_file" ||
46668 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46669          X"$ac_file" : 'X\(//\)[^/]' \| \
46670          X"$ac_file" : 'X\(//\)$' \| \
46671          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
46672 $as_echo X"$ac_file" |
46673     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46674             s//\1/
46675             q
46676           }
46677           /^X\(\/\/\)[^/].*/{
46678             s//\1/
46679             q
46680           }
46681           /^X\(\/\/\)$/{
46682             s//\1/
46683             q
46684           }
46685           /^X\(\/\).*/{
46686             s//\1/
46687             q
46688           }
46689           s/.*/./; q'`
46690   as_dir="$ac_dir"; as_fn_mkdir_p
46691   ac_builddir=.
46692
46693 case "$ac_dir" in
46694 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46695 *)
46696   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
46697   # A ".." for each directory in $ac_dir_suffix.
46698   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
46699   case $ac_top_builddir_sub in
46700   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46701   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46702   esac ;;
46703 esac
46704 ac_abs_top_builddir=$ac_pwd
46705 ac_abs_builddir=$ac_pwd$ac_dir_suffix
46706 # for backward compatibility:
46707 ac_top_builddir=$ac_top_build_prefix
46708
46709 case $srcdir in
46710   .)  # We are building in place.
46711     ac_srcdir=.
46712     ac_top_srcdir=$ac_top_builddir_sub
46713     ac_abs_top_srcdir=$ac_pwd ;;
46714   [\\/]* | ?:[\\/]* )  # Absolute name.
46715     ac_srcdir=$srcdir$ac_dir_suffix;
46716     ac_top_srcdir=$srcdir
46717     ac_abs_top_srcdir=$srcdir ;;
46718   *) # Relative name.
46719     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46720     ac_top_srcdir=$ac_top_build_prefix$srcdir
46721     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46722 esac
46723 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46724
46725
46726   case $ac_mode in
46727   :F)
46728   #
46729   # CONFIG_FILE
46730   #
46731
46732   case $INSTALL in
46733   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46734   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
46735   esac
46736   ac_MKDIR_P=$MKDIR_P
46737   case $MKDIR_P in
46738   [\\/$]* | ?:[\\/]* ) ;;
46739   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
46740   esac
46741 _ACEOF
46742
46743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46744 # If the template does not know about datarootdir, expand it.
46745 # FIXME: This hack should be removed a few years after 2.60.
46746 ac_datarootdir_hack=; ac_datarootdir_seen=
46747 ac_sed_dataroot='
46748 /datarootdir/ {
46749   p
46750   q
46751 }
46752 /@datadir@/p
46753 /@docdir@/p
46754 /@infodir@/p
46755 /@localedir@/p
46756 /@mandir@/p'
46757 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
46758 *datarootdir*) ac_datarootdir_seen=yes;;
46759 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
46760   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
46761 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
46762 _ACEOF
46763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46764   ac_datarootdir_hack='
46765   s&@datadir@&$datadir&g
46766   s&@docdir@&$docdir&g
46767   s&@infodir@&$infodir&g
46768   s&@localedir@&$localedir&g
46769   s&@mandir@&$mandir&g
46770   s&\\\${datarootdir}&$datarootdir&g' ;;
46771 esac
46772 _ACEOF
46773
46774 # Neutralize VPATH when `$srcdir' = `.'.
46775 # Shell code in configure.ac might set extrasub.
46776 # FIXME: do we really want to maintain this feature?
46777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46778 ac_sed_extra="$ac_vpsub
46779 $extrasub
46780 _ACEOF
46781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46782 :t
46783 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46784 s|@configure_input@|$ac_sed_conf_input|;t t
46785 s&@top_builddir@&$ac_top_builddir_sub&;t t
46786 s&@top_build_prefix@&$ac_top_build_prefix&;t t
46787 s&@srcdir@&$ac_srcdir&;t t
46788 s&@abs_srcdir@&$ac_abs_srcdir&;t t
46789 s&@top_srcdir@&$ac_top_srcdir&;t t
46790 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
46791 s&@builddir@&$ac_builddir&;t t
46792 s&@abs_builddir@&$ac_abs_builddir&;t t
46793 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
46794 s&@INSTALL@&$ac_INSTALL&;t t
46795 s&@MKDIR_P@&$ac_MKDIR_P&;t t
46796 $ac_datarootdir_hack
46797 "
46798 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
46799   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46800
46801 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
46802   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
46803   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
46804       "$ac_tmp/out"`; test -z "$ac_out"; } &&
46805   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46806 which seems to be undefined.  Please make sure it is defined" >&5
46807 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46808 which seems to be undefined.  Please make sure it is defined" >&2;}
46809
46810   rm -f "$ac_tmp/stdin"
46811   case $ac_file in
46812   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
46813   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
46814   esac \
46815   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46816  ;;
46817   :H)
46818   #
46819   # CONFIG_HEADER
46820   #
46821   if test x"$ac_file" != x-; then
46822     {
46823       $as_echo "/* $configure_input  */" \
46824       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
46825     } >"$ac_tmp/config.h" \
46826       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46827     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
46828       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
46829 $as_echo "$as_me: $ac_file is unchanged" >&6;}
46830     else
46831       rm -f "$ac_file"
46832       mv "$ac_tmp/config.h" "$ac_file" \
46833         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46834     fi
46835   else
46836     $as_echo "/* $configure_input  */" \
46837       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
46838       || as_fn_error $? "could not create -" "$LINENO" 5
46839   fi
46840 # Compute "$ac_file"'s index in $config_headers.
46841 _am_arg="$ac_file"
46842 _am_stamp_count=1
46843 for _am_header in $config_headers :; do
46844   case $_am_header in
46845     $_am_arg | $_am_arg:* )
46846       break ;;
46847     * )
46848       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46849   esac
46850 done
46851 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
46852 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46853          X"$_am_arg" : 'X\(//\)[^/]' \| \
46854          X"$_am_arg" : 'X\(//\)$' \| \
46855          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
46856 $as_echo X"$_am_arg" |
46857     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46858             s//\1/
46859             q
46860           }
46861           /^X\(\/\/\)[^/].*/{
46862             s//\1/
46863             q
46864           }
46865           /^X\(\/\/\)$/{
46866             s//\1/
46867             q
46868           }
46869           /^X\(\/\).*/{
46870             s//\1/
46871             q
46872           }
46873           s/.*/./; q'`/stamp-h$_am_stamp_count
46874  ;;
46875
46876   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
46877 $as_echo "$as_me: executing $ac_file commands" >&6;}
46878  ;;
46879   esac
46880
46881
46882   case $ac_file$ac_mode in
46883     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
46884   # Autoconf 2.62 quotes --file arguments for eval, but not when files
46885   # are listed without --file.  Let's play safe and only enable the eval
46886   # if we detect the quoting.
46887   case $CONFIG_FILES in
46888   *\'*) eval set x "$CONFIG_FILES" ;;
46889   *)   set x $CONFIG_FILES ;;
46890   esac
46891   shift
46892   for mf
46893   do
46894     # Strip MF so we end up with the name of the file.
46895     mf=`echo "$mf" | sed -e 's/:.*$//'`
46896     # Check whether this is an Automake generated Makefile or not.
46897     # We used to match only the files named `Makefile.in', but
46898     # some people rename them; so instead we look at the file content.
46899     # Grep'ing the first line is not enough: some people post-process
46900     # each Makefile.in and add a new line on top of each file to say so.
46901     # Grep'ing the whole file is not good either: AIX grep has a line
46902     # limit of 2048, but all sed's we know have understand at least 4000.
46903     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
46904       dirpart=`$as_dirname -- "$mf" ||
46905 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46906          X"$mf" : 'X\(//\)[^/]' \| \
46907          X"$mf" : 'X\(//\)$' \| \
46908          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
46909 $as_echo X"$mf" |
46910     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46911             s//\1/
46912             q
46913           }
46914           /^X\(\/\/\)[^/].*/{
46915             s//\1/
46916             q
46917           }
46918           /^X\(\/\/\)$/{
46919             s//\1/
46920             q
46921           }
46922           /^X\(\/\).*/{
46923             s//\1/
46924             q
46925           }
46926           s/.*/./; q'`
46927     else
46928       continue
46929     fi
46930     # Extract the definition of DEPDIR, am__include, and am__quote
46931     # from the Makefile without running `make'.
46932     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46933     test -z "$DEPDIR" && continue
46934     am__include=`sed -n 's/^am__include = //p' < "$mf"`
46935     test -z "am__include" && continue
46936     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46937     # When using ansi2knr, U may be empty or an underscore; expand it
46938     U=`sed -n 's/^U = //p' < "$mf"`
46939     # Find all dependency output files, they are included files with
46940     # $(DEPDIR) in their names.  We invoke sed twice because it is the
46941     # simplest approach to changing $(DEPDIR) to its actual value in the
46942     # expansion.
46943     for file in `sed -n "
46944       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46945          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46946       # Make sure the directory exists.
46947       test -f "$dirpart/$file" && continue
46948       fdir=`$as_dirname -- "$file" ||
46949 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46950          X"$file" : 'X\(//\)[^/]' \| \
46951          X"$file" : 'X\(//\)$' \| \
46952          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
46953 $as_echo X"$file" |
46954     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46955             s//\1/
46956             q
46957           }
46958           /^X\(\/\/\)[^/].*/{
46959             s//\1/
46960             q
46961           }
46962           /^X\(\/\/\)$/{
46963             s//\1/
46964             q
46965           }
46966           /^X\(\/\).*/{
46967             s//\1/
46968             q
46969           }
46970           s/.*/./; q'`
46971       as_dir=$dirpart/$fdir; as_fn_mkdir_p
46972       # echo "creating $dirpart/$file"
46973       echo '# dummy' > "$dirpart/$file"
46974     done
46975   done
46976 }
46977  ;;
46978     "po-directories":C)
46979     for ac_file in $CONFIG_FILES; do
46980       # Support "outfile[:infile[:infile...]]"
46981       case "$ac_file" in
46982         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46983       esac
46984       # PO directories have a Makefile.in generated from Makefile.in.in.
46985       case "$ac_file" in */Makefile.in)
46986         # Adjust a relative srcdir.
46987         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46988         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46989         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46990         # In autoconf-2.13 it is called $ac_given_srcdir.
46991         # In autoconf-2.50 it is called $srcdir.
46992         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46993         case "$ac_given_srcdir" in
46994           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46995           /*) top_srcdir="$ac_given_srcdir" ;;
46996           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
46997         esac
46998         # Treat a directory as a PO directory if and only if it has a
46999         # POTFILES.in file. This allows packages to have multiple PO
47000         # directories under different names or in different locations.
47001         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
47002           rm -f "$ac_dir/POTFILES"
47003           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
47004           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
47005           POMAKEFILEDEPS="POTFILES.in"
47006           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
47007           # on $ac_dir but don't depend on user-specified configuration
47008           # parameters.
47009           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
47010             # The LINGUAS file contains the set of available languages.
47011             if test -n "$OBSOLETE_ALL_LINGUAS"; then
47012               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
47013             fi
47014             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
47015             # Hide the ALL_LINGUAS assigment from automake < 1.5.
47016             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
47017             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
47018           else
47019             # The set of available languages was given in configure.in.
47020             # Hide the ALL_LINGUAS assigment from automake < 1.5.
47021             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
47022           fi
47023           # Compute POFILES
47024           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
47025           # Compute UPDATEPOFILES
47026           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
47027           # Compute DUMMYPOFILES
47028           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
47029           # Compute GMOFILES
47030           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
47031           case "$ac_given_srcdir" in
47032             .) srcdirpre= ;;
47033             *) srcdirpre='$(srcdir)/' ;;
47034           esac
47035           POFILES=
47036           UPDATEPOFILES=
47037           DUMMYPOFILES=
47038           GMOFILES=
47039           for lang in $ALL_LINGUAS; do
47040             POFILES="$POFILES $srcdirpre$lang.po"
47041             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
47042             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
47043             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
47044           done
47045           # CATALOGS depends on both $ac_dir and the user's LINGUAS
47046           # environment variable.
47047           INST_LINGUAS=
47048           if test -n "$ALL_LINGUAS"; then
47049             for presentlang in $ALL_LINGUAS; do
47050               useit=no
47051               if test "%UNSET%" != "$LINGUAS"; then
47052                 desiredlanguages="$LINGUAS"
47053               else
47054                 desiredlanguages="$ALL_LINGUAS"
47055               fi
47056               for desiredlang in $desiredlanguages; do
47057                 # Use the presentlang catalog if desiredlang is
47058                 #   a. equal to presentlang, or
47059                 #   b. a variant of presentlang (because in this case,
47060                 #      presentlang can be used as a fallback for messages
47061                 #      which are not translated in the desiredlang catalog).
47062                 case "$desiredlang" in
47063                   "$presentlang"*) useit=yes;;
47064                 esac
47065               done
47066               if test $useit = yes; then
47067                 INST_LINGUAS="$INST_LINGUAS $presentlang"
47068               fi
47069             done
47070           fi
47071           CATALOGS=
47072           if test -n "$INST_LINGUAS"; then
47073             for lang in $INST_LINGUAS; do
47074               CATALOGS="$CATALOGS $lang.gmo"
47075             done
47076           fi
47077           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
47078           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"
47079           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
47080             if test -f "$f"; then
47081               case "$f" in
47082                 *.orig | *.bak | *~) ;;
47083                 *) cat "$f" >> "$ac_dir/Makefile" ;;
47084               esac
47085             fi
47086           done
47087         fi
47088         ;;
47089       esac
47090     done ;;
47091     "libtool":C)
47092
47093     # See if we are running on zsh, and set the options which allow our
47094     # commands through without removal of \ escapes.
47095     if test -n "${ZSH_VERSION+set}" ; then
47096       setopt NO_GLOB_SUBST
47097     fi
47098
47099     cfgfile="${ofile}T"
47100     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47101     $RM "$cfgfile"
47102
47103     cat <<_LT_EOF >> "$cfgfile"
47104 #! $SHELL
47105
47106 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
47107 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
47108 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
47109 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
47110 #
47111 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
47112 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
47113 #                 Inc.
47114 #   Written by Gordon Matzigkeit, 1996
47115 #
47116 #   This file is part of GNU Libtool.
47117 #
47118 # GNU Libtool is free software; you can redistribute it and/or
47119 # modify it under the terms of the GNU General Public License as
47120 # published by the Free Software Foundation; either version 2 of
47121 # the License, or (at your option) any later version.
47122 #
47123 # As a special exception to the GNU General Public License,
47124 # if you distribute this file as part of a program or library that
47125 # is built using GNU Libtool, you may include this file under the
47126 # same distribution terms that you use for the rest of that program.
47127 #
47128 # GNU Libtool is distributed in the hope that it will be useful,
47129 # but WITHOUT ANY WARRANTY; without even the implied warranty of
47130 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
47131 # GNU General Public License for more details.
47132 #
47133 # You should have received a copy of the GNU General Public License
47134 # along with GNU Libtool; see the file COPYING.  If not, a copy
47135 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
47136 # obtained by writing to the Free Software Foundation, Inc.,
47137 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
47138
47139
47140 # The names of the tagged configurations supported by this script.
47141 available_tags=""
47142
47143 # ### BEGIN LIBTOOL CONFIG
47144
47145 # Which release of libtool.m4 was used?
47146 macro_version=$macro_version
47147 macro_revision=$macro_revision
47148
47149 # Whether or not to build shared libraries.
47150 build_libtool_libs=$enable_shared
47151
47152 # Whether or not to build static libraries.
47153 build_old_libs=$enable_static
47154
47155 # What type of objects to build.
47156 pic_mode=$pic_mode
47157
47158 # Whether or not to optimize for fast installation.
47159 fast_install=$enable_fast_install
47160
47161 # Shell to use when invoking shell scripts.
47162 SHELL=$lt_SHELL
47163
47164 # An echo program that protects backslashes.
47165 ECHO=$lt_ECHO
47166
47167 # The host system.
47168 host_alias=$host_alias
47169 host=$host
47170 host_os=$host_os
47171
47172 # The build system.
47173 build_alias=$build_alias
47174 build=$build
47175 build_os=$build_os
47176
47177 # A sed program that does not truncate output.
47178 SED=$lt_SED
47179
47180 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
47181 Xsed="\$SED -e 1s/^X//"
47182
47183 # A grep program that handles long lines.
47184 GREP=$lt_GREP
47185
47186 # An ERE matcher.
47187 EGREP=$lt_EGREP
47188
47189 # A literal string matcher.
47190 FGREP=$lt_FGREP
47191
47192 # A BSD- or MS-compatible name lister.
47193 NM=$lt_NM
47194
47195 # Whether we need soft or hard links.
47196 LN_S=$lt_LN_S
47197
47198 # What is the maximum length of a command?
47199 max_cmd_len=$max_cmd_len
47200
47201 # Object file suffix (normally "o").
47202 objext=$ac_objext
47203
47204 # Executable file suffix (normally "").
47205 exeext=$exeext
47206
47207 # whether the shell understands "unset".
47208 lt_unset=$lt_unset
47209
47210 # turn spaces into newlines.
47211 SP2NL=$lt_lt_SP2NL
47212
47213 # turn newlines into spaces.
47214 NL2SP=$lt_lt_NL2SP
47215
47216 # convert \$build file names to \$host format.
47217 to_host_file_cmd=$lt_cv_to_host_file_cmd
47218
47219 # convert \$build files to toolchain format.
47220 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
47221
47222 # An object symbol dumper.
47223 OBJDUMP=$lt_OBJDUMP
47224
47225 # Method to check whether dependent libraries are shared objects.
47226 deplibs_check_method=$lt_deplibs_check_method
47227
47228 # Command to use when deplibs_check_method = "file_magic".
47229 file_magic_cmd=$lt_file_magic_cmd
47230
47231 # How to find potential files when deplibs_check_method = "file_magic".
47232 file_magic_glob=$lt_file_magic_glob
47233
47234 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
47235 want_nocaseglob=$lt_want_nocaseglob
47236
47237 # DLL creation program.
47238 DLLTOOL=$lt_DLLTOOL
47239
47240 # Command to associate shared and link libraries.
47241 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
47242
47243 # The archiver.
47244 AR=$lt_AR
47245
47246 # Flags to create an archive.
47247 AR_FLAGS=$lt_AR_FLAGS
47248
47249 # How to feed a file listing to the archiver.
47250 archiver_list_spec=$lt_archiver_list_spec
47251
47252 # A symbol stripping program.
47253 STRIP=$lt_STRIP
47254
47255 # Commands used to install an old-style archive.
47256 RANLIB=$lt_RANLIB
47257 old_postinstall_cmds=$lt_old_postinstall_cmds
47258 old_postuninstall_cmds=$lt_old_postuninstall_cmds
47259
47260 # Whether to use a lock for old archive extraction.
47261 lock_old_archive_extraction=$lock_old_archive_extraction
47262
47263 # A C compiler.
47264 LTCC=$lt_CC
47265
47266 # LTCC compiler flags.
47267 LTCFLAGS=$lt_CFLAGS
47268
47269 # Take the output of nm and produce a listing of raw symbols and C names.
47270 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47271
47272 # Transform the output of nm in a proper C declaration.
47273 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47274
47275 # Transform the output of nm in a C name address pair.
47276 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47277
47278 # Transform the output of nm in a C name address pair when lib prefix is needed.
47279 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47280
47281 # Specify filename containing input files for \$NM.
47282 nm_file_list_spec=$lt_nm_file_list_spec
47283
47284 # The root where to search for dependent libraries,and in which our libraries should be installed.
47285 lt_sysroot=$lt_sysroot
47286
47287 # The name of the directory that contains temporary libtool files.
47288 objdir=$objdir
47289
47290 # Used to examine libraries when file_magic_cmd begins with "file".
47291 MAGIC_CMD=$MAGIC_CMD
47292
47293 # Must we lock files when doing compilation?
47294 need_locks=$lt_need_locks
47295
47296 # Manifest tool.
47297 MANIFEST_TOOL=$lt_MANIFEST_TOOL
47298
47299 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47300 DSYMUTIL=$lt_DSYMUTIL
47301
47302 # Tool to change global to local symbols on Mac OS X.
47303 NMEDIT=$lt_NMEDIT
47304
47305 # Tool to manipulate fat objects and archives on Mac OS X.
47306 LIPO=$lt_LIPO
47307
47308 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
47309 OTOOL=$lt_OTOOL
47310
47311 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47312 OTOOL64=$lt_OTOOL64
47313
47314 # Old archive suffix (normally "a").
47315 libext=$libext
47316
47317 # Shared library suffix (normally ".so").
47318 shrext_cmds=$lt_shrext_cmds
47319
47320 # The commands to extract the exported symbol list from a shared archive.
47321 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47322
47323 # Variables whose values should be saved in libtool wrapper scripts and
47324 # restored at link time.
47325 variables_saved_for_relink=$lt_variables_saved_for_relink
47326
47327 # Do we need the "lib" prefix for modules?
47328 need_lib_prefix=$need_lib_prefix
47329
47330 # Do we need a version for libraries?
47331 need_version=$need_version
47332
47333 # Library versioning type.
47334 version_type=$version_type
47335
47336 # Shared library runtime path variable.
47337 runpath_var=$runpath_var
47338
47339 # Shared library path variable.
47340 shlibpath_var=$shlibpath_var
47341
47342 # Is shlibpath searched before the hard-coded library search path?
47343 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47344
47345 # Format of library name prefix.
47346 libname_spec=$lt_libname_spec
47347
47348 # List of archive names.  First name is the real one, the rest are links.
47349 # The last name is the one that the linker finds with -lNAME
47350 library_names_spec=$lt_library_names_spec
47351
47352 # The coded name of the library, if different from the real name.
47353 soname_spec=$lt_soname_spec
47354
47355 # Permission mode override for installation of shared libraries.
47356 install_override_mode=$lt_install_override_mode
47357
47358 # Command to use after installation of a shared archive.
47359 postinstall_cmds=$lt_postinstall_cmds
47360
47361 # Command to use after uninstallation of a shared archive.
47362 postuninstall_cmds=$lt_postuninstall_cmds
47363
47364 # Commands used to finish a libtool library installation in a directory.
47365 finish_cmds=$lt_finish_cmds
47366
47367 # As "finish_cmds", except a single script fragment to be evaled but
47368 # not shown.
47369 finish_eval=$lt_finish_eval
47370
47371 # Whether we should hardcode library paths into libraries.
47372 hardcode_into_libs=$hardcode_into_libs
47373
47374 # Compile-time system search path for libraries.
47375 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47376
47377 # Run-time system search path for libraries.
47378 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47379
47380 # Whether dlopen is supported.
47381 dlopen_support=$enable_dlopen
47382
47383 # Whether dlopen of programs is supported.
47384 dlopen_self=$enable_dlopen_self
47385
47386 # Whether dlopen of statically linked programs is supported.
47387 dlopen_self_static=$enable_dlopen_self_static
47388
47389 # Commands to strip libraries.
47390 old_striplib=$lt_old_striplib
47391 striplib=$lt_striplib
47392
47393
47394 # The linker used to build libraries.
47395 LD=$lt_LD
47396
47397 # How to create reloadable object files.
47398 reload_flag=$lt_reload_flag
47399 reload_cmds=$lt_reload_cmds
47400
47401 # Commands used to build an old-style archive.
47402 old_archive_cmds=$lt_old_archive_cmds
47403
47404 # A language specific compiler.
47405 CC=$lt_compiler
47406
47407 # Is the compiler the GNU compiler?
47408 with_gcc=$GCC
47409
47410 # Compiler flag to turn off builtin functions.
47411 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47412
47413 # Additional compiler flags for building library objects.
47414 pic_flag=$lt_lt_prog_compiler_pic
47415
47416 # How to pass a linker flag through the compiler.
47417 wl=$lt_lt_prog_compiler_wl
47418
47419 # Compiler flag to prevent dynamic linking.
47420 link_static_flag=$lt_lt_prog_compiler_static
47421
47422 # Does compiler simultaneously support -c and -o options?
47423 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47424
47425 # Whether or not to add -lc for building shared libraries.
47426 build_libtool_need_lc=$archive_cmds_need_lc
47427
47428 # Whether or not to disallow shared libs when runtime libs are static.
47429 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47430
47431 # Compiler flag to allow reflexive dlopens.
47432 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47433
47434 # Compiler flag to generate shared objects directly from archives.
47435 whole_archive_flag_spec=$lt_whole_archive_flag_spec
47436
47437 # Whether the compiler copes with passing no objects directly.
47438 compiler_needs_object=$lt_compiler_needs_object
47439
47440 # Create an old-style archive from a shared archive.
47441 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47442
47443 # Create a temporary old-style archive to link instead of a shared archive.
47444 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47445
47446 # Commands used to build a shared archive.
47447 archive_cmds=$lt_archive_cmds
47448 archive_expsym_cmds=$lt_archive_expsym_cmds
47449
47450 # Commands used to build a loadable module if different from building
47451 # a shared archive.
47452 module_cmds=$lt_module_cmds
47453 module_expsym_cmds=$lt_module_expsym_cmds
47454
47455 # Whether we are building with GNU ld or not.
47456 with_gnu_ld=$lt_with_gnu_ld
47457
47458 # Flag that allows shared libraries with undefined symbols to be built.
47459 allow_undefined_flag=$lt_allow_undefined_flag
47460
47461 # Flag that enforces no undefined symbols.
47462 no_undefined_flag=$lt_no_undefined_flag
47463
47464 # Flag to hardcode \$libdir into a binary during linking.
47465 # This must work even if \$libdir does not exist
47466 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
47467
47468 # If ld is used when linking, flag to hardcode \$libdir into a binary
47469 # during linking.  This must work even if \$libdir does not exist.
47470 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
47471
47472 # Whether we need a single "-rpath" flag with a separated argument.
47473 hardcode_libdir_separator=$lt_hardcode_libdir_separator
47474
47475 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47476 # DIR into the resulting binary.
47477 hardcode_direct=$hardcode_direct
47478
47479 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
47480 # DIR into the resulting binary and the resulting library dependency is
47481 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
47482 # library is relocated.
47483 hardcode_direct_absolute=$hardcode_direct_absolute
47484
47485 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47486 # into the resulting binary.
47487 hardcode_minus_L=$hardcode_minus_L
47488
47489 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47490 # into the resulting binary.
47491 hardcode_shlibpath_var=$hardcode_shlibpath_var
47492
47493 # Set to "yes" if building a shared library automatically hardcodes DIR
47494 # into the library and all subsequent libraries and executables linked
47495 # against it.
47496 hardcode_automatic=$hardcode_automatic
47497
47498 # Set to yes if linker adds runtime paths of dependent libraries
47499 # to runtime path list.
47500 inherit_rpath=$inherit_rpath
47501
47502 # Whether libtool must link a program against all its dependency libraries.
47503 link_all_deplibs=$link_all_deplibs
47504
47505 # Set to "yes" if exported symbols are required.
47506 always_export_symbols=$always_export_symbols
47507
47508 # The commands to list exported symbols.
47509 export_symbols_cmds=$lt_export_symbols_cmds
47510
47511 # Symbols that should not be listed in the preloaded symbols.
47512 exclude_expsyms=$lt_exclude_expsyms
47513
47514 # Symbols that must always be exported.
47515 include_expsyms=$lt_include_expsyms
47516
47517 # Commands necessary for linking programs (against libraries) with templates.
47518 prelink_cmds=$lt_prelink_cmds
47519
47520 # Commands necessary for finishing linking programs.
47521 postlink_cmds=$lt_postlink_cmds
47522
47523 # Specify filename containing input files.
47524 file_list_spec=$lt_file_list_spec
47525
47526 # How to hardcode a shared library path into an executable.
47527 hardcode_action=$hardcode_action
47528
47529 # ### END LIBTOOL CONFIG
47530
47531 _LT_EOF
47532
47533   case $host_os in
47534   aix3*)
47535     cat <<\_LT_EOF >> "$cfgfile"
47536 # AIX sometimes has problems with the GCC collect2 program.  For some
47537 # reason, if we set the COLLECT_NAMES environment variable, the problems
47538 # vanish in a puff of smoke.
47539 if test "X${COLLECT_NAMES+set}" != Xset; then
47540   COLLECT_NAMES=
47541   export COLLECT_NAMES
47542 fi
47543 _LT_EOF
47544     ;;
47545   esac
47546
47547
47548 ltmain="$ac_aux_dir/ltmain.sh"
47549
47550
47551   # We use sed instead of cat because bash on DJGPP gets confused if
47552   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
47553   # text mode, it properly converts lines to CR/LF.  This bash problem
47554   # is reportedly fixed, but why not run on old versions too?
47555   sed '$q' "$ltmain" >> "$cfgfile" \
47556      || (rm -f "$cfgfile"; exit 1)
47557
47558   if test x"$xsi_shell" = xyes; then
47559   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
47560 func_dirname ()\
47561 {\
47562 \    case ${1} in\
47563 \      */*) func_dirname_result="${1%/*}${2}" ;;\
47564 \      *  ) func_dirname_result="${3}" ;;\
47565 \    esac\
47566 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
47567   && mv -f "$cfgfile.tmp" "$cfgfile" \
47568     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47569 test 0 -eq $? || _lt_function_replace_fail=:
47570
47571
47572   sed -e '/^func_basename ()$/,/^} # func_basename /c\
47573 func_basename ()\
47574 {\
47575 \    func_basename_result="${1##*/}"\
47576 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
47577   && mv -f "$cfgfile.tmp" "$cfgfile" \
47578     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47579 test 0 -eq $? || _lt_function_replace_fail=:
47580
47581
47582   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
47583 func_dirname_and_basename ()\
47584 {\
47585 \    case ${1} in\
47586 \      */*) func_dirname_result="${1%/*}${2}" ;;\
47587 \      *  ) func_dirname_result="${3}" ;;\
47588 \    esac\
47589 \    func_basename_result="${1##*/}"\
47590 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
47591   && mv -f "$cfgfile.tmp" "$cfgfile" \
47592     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47593 test 0 -eq $? || _lt_function_replace_fail=:
47594
47595
47596   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
47597 func_stripname ()\
47598 {\
47599 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
47600 \    # positional parameters, so assign one to ordinary parameter first.\
47601 \    func_stripname_result=${3}\
47602 \    func_stripname_result=${func_stripname_result#"${1}"}\
47603 \    func_stripname_result=${func_stripname_result%"${2}"}\
47604 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
47605   && mv -f "$cfgfile.tmp" "$cfgfile" \
47606     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47607 test 0 -eq $? || _lt_function_replace_fail=:
47608
47609
47610   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
47611 func_split_long_opt ()\
47612 {\
47613 \    func_split_long_opt_name=${1%%=*}\
47614 \    func_split_long_opt_arg=${1#*=}\
47615 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
47616   && mv -f "$cfgfile.tmp" "$cfgfile" \
47617     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47618 test 0 -eq $? || _lt_function_replace_fail=:
47619
47620
47621   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
47622 func_split_short_opt ()\
47623 {\
47624 \    func_split_short_opt_arg=${1#??}\
47625 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
47626 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
47627   && mv -f "$cfgfile.tmp" "$cfgfile" \
47628     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47629 test 0 -eq $? || _lt_function_replace_fail=:
47630
47631
47632   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
47633 func_lo2o ()\
47634 {\
47635 \    case ${1} in\
47636 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
47637 \      *)    func_lo2o_result=${1} ;;\
47638 \    esac\
47639 } # Extended-shell func_lo2o 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_xform ()$/,/^} # func_xform /c\
47646 func_xform ()\
47647 {\
47648     func_xform_result=${1%.*}.lo\
47649 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
47650   && mv -f "$cfgfile.tmp" "$cfgfile" \
47651     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47652 test 0 -eq $? || _lt_function_replace_fail=:
47653
47654
47655   sed -e '/^func_arith ()$/,/^} # func_arith /c\
47656 func_arith ()\
47657 {\
47658     func_arith_result=$(( $* ))\
47659 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
47660   && mv -f "$cfgfile.tmp" "$cfgfile" \
47661     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47662 test 0 -eq $? || _lt_function_replace_fail=:
47663
47664
47665   sed -e '/^func_len ()$/,/^} # func_len /c\
47666 func_len ()\
47667 {\
47668     func_len_result=${#1}\
47669 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
47670   && mv -f "$cfgfile.tmp" "$cfgfile" \
47671     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47672 test 0 -eq $? || _lt_function_replace_fail=:
47673
47674 fi
47675
47676 if test x"$lt_shell_append" = xyes; then
47677   sed -e '/^func_append ()$/,/^} # func_append /c\
47678 func_append ()\
47679 {\
47680     eval "${1}+=\\${2}"\
47681 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
47682   && mv -f "$cfgfile.tmp" "$cfgfile" \
47683     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47684 test 0 -eq $? || _lt_function_replace_fail=:
47685
47686
47687   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
47688 func_append_quoted ()\
47689 {\
47690 \    func_quote_for_eval "${2}"\
47691 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
47692 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
47693   && mv -f "$cfgfile.tmp" "$cfgfile" \
47694     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47695 test 0 -eq $? || _lt_function_replace_fail=:
47696
47697
47698   # Save a `func_append' function call where possible by direct use of '+='
47699   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
47700     && mv -f "$cfgfile.tmp" "$cfgfile" \
47701       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47702   test 0 -eq $? || _lt_function_replace_fail=:
47703 else
47704   # Save a `func_append' function call even when '+=' is not available
47705   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
47706     && mv -f "$cfgfile.tmp" "$cfgfile" \
47707       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
47708   test 0 -eq $? || _lt_function_replace_fail=:
47709 fi
47710
47711 if test x"$_lt_function_replace_fail" = x":"; then
47712   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
47713 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
47714 fi
47715
47716
47717    mv -f "$cfgfile" "$ofile" ||
47718     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
47719   chmod +x "$ofile"
47720
47721  ;;
47722
47723   esac
47724 done # for ac_tag
47725
47726
47727 as_fn_exit 0
47728 _ACEOF
47729 ac_clean_files=$ac_clean_files_save
47730
47731 test $ac_write_fail = 0 ||
47732   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
47733
47734
47735 # configure is writing to config.log, and then calls config.status.
47736 # config.status does its own redirection, appending to config.log.
47737 # Unfortunately, on DOS this fails, as config.log is still kept open
47738 # by configure, so config.status won't be able to write to it; its
47739 # output is simply discarded.  So we exec the FD to /dev/null,
47740 # effectively closing config.log, so it can be properly (re)opened and
47741 # appended to by config.status.  When coming back to configure, we
47742 # need to make the FD available again.
47743 if test "$no_create" != yes; then
47744   ac_cs_success=:
47745   ac_config_status_args=
47746   test "$silent" = yes &&
47747     ac_config_status_args="$ac_config_status_args --quiet"
47748   exec 5>/dev/null
47749   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47750   exec 5>>config.log
47751   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47752   # would make configure fail if this is the last instruction.
47753   $ac_cs_success || as_fn_exit 1
47754 fi
47755 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
47756   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
47757 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
47758 fi
47759
47760
47761
47762     echo "Compiler Flags:"
47763     echo "  CFLAGS: ${CFLAGS-(none)}"
47764     echo "  CPPFLAGS: ${CPPFLAGS-(none)}"
47765     echo "  LDFLAGS: ${LDFLAGS-(none)}"
47766     echo "  LIBS: ${LIBS-(none)}"
47767
47768
47769     echo "Amanda Components:$AMANDA_COMPONENTS$missing_components"
47770
47771
47772     echo "Working IPv6:" $WORKING_IPV6
47773
47774
47775     echo "Build documentation:" $ENABLE_MANPAGE_BUILD
47776
47777
47778     echo "Directories:"
47779     echo "  Application: $APPLICATION_DIR"
47780     echo "  Configuration: $CONFIG_DIR"
47781     echo "  GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
47782     echo "  Perl modules (amperldir): $amperldir"
47783     echo "  Template and example data files (amdatadir): $amdatadir"
47784     echo "  Temporary: $AMANDA_TMPDIR"
47785
47786     if test -f config.warnings; then
47787         echo "WARNINGS:"
47788         cat config.warnings | sed -e 's/^/  /g'
47789         rm config.warnings
47790     fi
47791