Patches from Debian
[nbd.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for nbd 2.9.13.
4 #
5 # Report bugs to <wouter@debian.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
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 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org and wouter@debian.org
232 $0: about your system, including any error possibly output
233 $0: before this message. Then install a modern shell, or
234 $0: manually run the script under such a shell if you do
235 $0: have one."
236   fi
237   exit 1
238 fi
239 fi
240 fi
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
246
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
254 {
255   { eval $1=; unset $1;}
256 }
257 as_unset=as_fn_unset
258
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
263 {
264   return $1
265 } # as_fn_set_status
266
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
271 {
272   set +e
273   as_fn_set_status $1
274   exit $1
275 } # as_fn_exit
276
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
281 {
282
283   case $as_dir in #(
284   -*) as_dir=./$as_dir;;
285   esac
286   test -d "$as_dir" || eval $as_mkdir_p || {
287     as_dirs=
288     while :; do
289       case $as_dir in #(
290       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291       *) as_qdir=$as_dir;;
292       esac
293       as_dirs="'$as_qdir' $as_dirs"
294       as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296          X"$as_dir" : 'X\(//\)[^/]' \| \
297          X"$as_dir" : 'X\(//\)$' \| \
298          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301             s//\1/
302             q
303           }
304           /^X\(\/\/\)[^/].*/{
305             s//\1/
306             q
307           }
308           /^X\(\/\/\)$/{
309             s//\1/
310             q
311           }
312           /^X\(\/\).*/{
313             s//\1/
314             q
315           }
316           s/.*/./; q'`
317       test -d "$as_dir" && break
318     done
319     test -z "$as_dirs" || eval "mkdir $as_dirs"
320   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331   eval 'as_fn_append ()
332   {
333     eval $1+=\$2
334   }'
335 else
336   as_fn_append ()
337   {
338     eval $1=\$$1\$2
339   }
340 fi # as_fn_append
341
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348   eval 'as_fn_arith ()
349   {
350     as_val=$(( $* ))
351   }'
352 else
353   as_fn_arith ()
354   {
355     as_val=`expr "$@" || test $? -eq 1`
356   }
357 fi # as_fn_arith
358
359
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
366 {
367   as_status=$?; test $as_status -eq 0 && as_status=1
368   if test "$3"; then
369     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371   fi
372   $as_echo "$as_me: error: $1" >&2
373   as_fn_exit $as_status
374 } # as_fn_error
375
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377    test "X`expr 00001 : '.*\(...\)'`" = X001; then
378   as_expr=expr
379 else
380   as_expr=false
381 fi
382
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384   as_basename=basename
385 else
386   as_basename=false
387 fi
388
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390   as_dirname=dirname
391 else
392   as_dirname=false
393 fi
394
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397          X"$0" : 'X\(//\)$' \| \
398          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400     sed '/^.*\/\([^/][^/]*\)\/*$/{
401             s//\1/
402             q
403           }
404           /^X\/\(\/\/\)$/{
405             s//\1/
406             q
407           }
408           /^X\/\(\/\).*/{
409             s//\1/
410             q
411           }
412           s/.*/./; q'`
413
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422   as_lineno_1=$LINENO as_lineno_1a=$LINENO
423   as_lineno_2=$LINENO as_lineno_2a=$LINENO
424   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427   sed -n '
428     p
429     /[$]LINENO/=
430   ' <$as_myself |
431     sed '
432       s/[$]LINENO.*/&-/
433       t lineno
434       b
435       :lineno
436       N
437       :loop
438       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439       t loop
440       s/-\n.*//
441     ' >$as_me.lineno &&
442   chmod +x "$as_me.lineno" ||
443     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445   # Don't try to exec as it changes $[0], causing all sort of problems
446   # (the dirname of $[0] is not the place where we might find the
447   # original and so on.  Autoconf is especially sensitive to this).
448   . "./$as_me.lineno"
449   # Exit status is that of the last command.
450   exit
451 }
452
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456   case `echo 'xy\c'` in
457   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
458   xy)  ECHO_C='\c';;
459   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
460        ECHO_T=' ';;
461   esac;;
462 *)
463   ECHO_N='-n';;
464 esac
465
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468   rm -f conf$$.dir/conf$$.file
469 else
470   rm -f conf$$.dir
471   mkdir conf$$.dir 2>/dev/null
472 fi
473 if (echo >conf$$.file) 2>/dev/null; then
474   if ln -s conf$$.file conf$$ 2>/dev/null; then
475     as_ln_s='ln -s'
476     # ... but there are two gotchas:
477     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479     # In both cases, we have to default to `cp -p'.
480     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481       as_ln_s='cp -p'
482   elif ln conf$$.file conf$$ 2>/dev/null; then
483     as_ln_s=ln
484   else
485     as_ln_s='cp -p'
486   fi
487 else
488   as_ln_s='cp -p'
489 fi
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
492
493 if mkdir -p . 2>/dev/null; then
494   as_mkdir_p='mkdir -p "$as_dir"'
495 else
496   test -d ./-p && rmdir ./-p
497   as_mkdir_p=false
498 fi
499
500 if test -x / >/dev/null 2>&1; then
501   as_test_x='test -x'
502 else
503   if ls -dL / >/dev/null 2>&1; then
504     as_ls_L_option=L
505   else
506     as_ls_L_option=
507   fi
508   as_test_x='
509     eval sh -c '\''
510       if test -d "$1"; then
511         test -d "$1/.";
512       else
513         case $1 in #(
514         -*)set "./$1";;
515         esac;
516         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517         ???[sx]*):;;*)false;;esac;fi
518     '\'' sh
519   '
520 fi
521 as_executable_p=$as_test_x
522
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530 exec 7<&0 </dev/null 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='nbd'
551 PACKAGE_TARNAME='nbd'
552 PACKAGE_VERSION='2.9.13'
553 PACKAGE_STRING='nbd 2.9.13'
554 PACKAGE_BUGREPORT='wouter@debian.org'
555 PACKAGE_URL=''
556
557 # Factoring default headers for most tests.
558 ac_includes_default="\
559 #include <stdio.h>
560 #ifdef HAVE_SYS_TYPES_H
561 # include <sys/types.h>
562 #endif
563 #ifdef HAVE_SYS_STAT_H
564 # include <sys/stat.h>
565 #endif
566 #ifdef STDC_HEADERS
567 # include <stdlib.h>
568 # include <stddef.h>
569 #else
570 # ifdef HAVE_STDLIB_H
571 #  include <stdlib.h>
572 # endif
573 #endif
574 #ifdef HAVE_STRING_H
575 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
576 #  include <memory.h>
577 # endif
578 # include <string.h>
579 #endif
580 #ifdef HAVE_STRINGS_H
581 # include <strings.h>
582 #endif
583 #ifdef HAVE_INTTYPES_H
584 # include <inttypes.h>
585 #endif
586 #ifdef HAVE_STDINT_H
587 # include <stdint.h>
588 #endif
589 #ifdef HAVE_UNISTD_H
590 # include <unistd.h>
591 #endif"
592
593 ac_subst_vars='LTLIBOBJS
594 LIBOBJS
595 nbd_server_CPPFLAGS
596 sbin_PROGRAMS
597 GLIB_MKENUMS
598 GOBJECT_QUERY
599 GLIB_GENMARSHAL
600 GLIB_LIBS
601 GLIB_CFLAGS
602 PKG_CONFIG
603 EGREP
604 GREP
605 host_os
606 host_vendor
607 host_cpu
608 host
609 build_os
610 build_vendor
611 build_cpu
612 build
613 CPP
614 am__fastdepCC_FALSE
615 am__fastdepCC_TRUE
616 CCDEPMODE
617 AMDEPBACKSLASH
618 AMDEP_FALSE
619 AMDEP_TRUE
620 am__quote
621 am__include
622 DEPDIR
623 OBJEXT
624 EXEEXT
625 ac_ct_CC
626 CPPFLAGS
627 LDFLAGS
628 CFLAGS
629 CC
630 MAINT
631 MAINTAINER_MODE_FALSE
632 MAINTAINER_MODE_TRUE
633 am__untar
634 am__tar
635 AMTAR
636 am__leading_dot
637 SET_MAKE
638 AWK
639 mkdir_p
640 MKDIR_P
641 INSTALL_STRIP_PROGRAM
642 STRIP
643 install_sh
644 MAKEINFO
645 AUTOHEADER
646 AUTOMAKE
647 AUTOCONF
648 ACLOCAL
649 VERSION
650 PACKAGE
651 CYGPATH_W
652 am__isrc
653 INSTALL_DATA
654 INSTALL_SCRIPT
655 INSTALL_PROGRAM
656 target_alias
657 host_alias
658 build_alias
659 LIBS
660 ECHO_T
661 ECHO_N
662 ECHO_C
663 DEFS
664 mandir
665 localedir
666 libdir
667 psdir
668 pdfdir
669 dvidir
670 htmldir
671 infodir
672 docdir
673 oldincludedir
674 includedir
675 localstatedir
676 sharedstatedir
677 sysconfdir
678 datadir
679 datarootdir
680 libexecdir
681 sbindir
682 bindir
683 program_transform_name
684 prefix
685 exec_prefix
686 PACKAGE_URL
687 PACKAGE_BUGREPORT
688 PACKAGE_STRING
689 PACKAGE_VERSION
690 PACKAGE_TARNAME
691 PACKAGE_NAME
692 PATH_SEPARATOR
693 SHELL'
694 ac_subst_files=''
695 ac_user_opts='
696 enable_option_checking
697 enable_maintainer_mode
698 enable_lfs
699 enable_syslog
700 enable_debug
701 enable_sdp
702 enable_dependency_tracking
703 enable_glibtest
704 '
705       ac_precious_vars='build_alias
706 host_alias
707 target_alias
708 CC
709 CFLAGS
710 LDFLAGS
711 LIBS
712 CPPFLAGS
713 CPP
714 PKG_CONFIG'
715
716
717 # Initialize some variables set by options.
718 ac_init_help=
719 ac_init_version=false
720 ac_unrecognized_opts=
721 ac_unrecognized_sep=
722 # The variables have the same names as the options, with
723 # dashes changed to underlines.
724 cache_file=/dev/null
725 exec_prefix=NONE
726 no_create=
727 no_recursion=
728 prefix=NONE
729 program_prefix=NONE
730 program_suffix=NONE
731 program_transform_name=s,x,x,
732 silent=
733 site=
734 srcdir=
735 verbose=
736 x_includes=NONE
737 x_libraries=NONE
738
739 # Installation directory options.
740 # These are left unexpanded so users can "make install exec_prefix=/foo"
741 # and all the variables that are supposed to be based on exec_prefix
742 # by default will actually change.
743 # Use braces instead of parens because sh, perl, etc. also accept them.
744 # (The list follows the same order as the GNU Coding Standards.)
745 bindir='${exec_prefix}/bin'
746 sbindir='${exec_prefix}/sbin'
747 libexecdir='${exec_prefix}/libexec'
748 datarootdir='${prefix}/share'
749 datadir='${datarootdir}'
750 sysconfdir='${prefix}/etc'
751 sharedstatedir='${prefix}/com'
752 localstatedir='${prefix}/var'
753 includedir='${prefix}/include'
754 oldincludedir='/usr/include'
755 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
756 infodir='${datarootdir}/info'
757 htmldir='${docdir}'
758 dvidir='${docdir}'
759 pdfdir='${docdir}'
760 psdir='${docdir}'
761 libdir='${exec_prefix}/lib'
762 localedir='${datarootdir}/locale'
763 mandir='${datarootdir}/man'
764
765 ac_prev=
766 ac_dashdash=
767 for ac_option
768 do
769   # If the previous option needs an argument, assign it.
770   if test -n "$ac_prev"; then
771     eval $ac_prev=\$ac_option
772     ac_prev=
773     continue
774   fi
775
776   case $ac_option in
777   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
778   *)    ac_optarg=yes ;;
779   esac
780
781   # Accept the important Cygnus configure options, so we can diagnose typos.
782
783   case $ac_dashdash$ac_option in
784   --)
785     ac_dashdash=yes ;;
786
787   -bindir | --bindir | --bindi | --bind | --bin | --bi)
788     ac_prev=bindir ;;
789   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
790     bindir=$ac_optarg ;;
791
792   -build | --build | --buil | --bui | --bu)
793     ac_prev=build_alias ;;
794   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
795     build_alias=$ac_optarg ;;
796
797   -cache-file | --cache-file | --cache-fil | --cache-fi \
798   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
799     ac_prev=cache_file ;;
800   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
801   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
802     cache_file=$ac_optarg ;;
803
804   --config-cache | -C)
805     cache_file=config.cache ;;
806
807   -datadir | --datadir | --datadi | --datad)
808     ac_prev=datadir ;;
809   -datadir=* | --datadir=* | --datadi=* | --datad=*)
810     datadir=$ac_optarg ;;
811
812   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
813   | --dataroo | --dataro | --datar)
814     ac_prev=datarootdir ;;
815   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
816   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
817     datarootdir=$ac_optarg ;;
818
819   -disable-* | --disable-*)
820     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
821     # Reject names that are not valid shell variable names.
822     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
823       as_fn_error "invalid feature name: $ac_useropt"
824     ac_useropt_orig=$ac_useropt
825     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
826     case $ac_user_opts in
827       *"
828 "enable_$ac_useropt"
829 "*) ;;
830       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
831          ac_unrecognized_sep=', ';;
832     esac
833     eval enable_$ac_useropt=no ;;
834
835   -docdir | --docdir | --docdi | --doc | --do)
836     ac_prev=docdir ;;
837   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
838     docdir=$ac_optarg ;;
839
840   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
841     ac_prev=dvidir ;;
842   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
843     dvidir=$ac_optarg ;;
844
845   -enable-* | --enable-*)
846     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
847     # Reject names that are not valid shell variable names.
848     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
849       as_fn_error "invalid feature name: $ac_useropt"
850     ac_useropt_orig=$ac_useropt
851     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
852     case $ac_user_opts in
853       *"
854 "enable_$ac_useropt"
855 "*) ;;
856       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
857          ac_unrecognized_sep=', ';;
858     esac
859     eval enable_$ac_useropt=\$ac_optarg ;;
860
861   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
862   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
863   | --exec | --exe | --ex)
864     ac_prev=exec_prefix ;;
865   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
866   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
867   | --exec=* | --exe=* | --ex=*)
868     exec_prefix=$ac_optarg ;;
869
870   -gas | --gas | --ga | --g)
871     # Obsolete; use --with-gas.
872     with_gas=yes ;;
873
874   -help | --help | --hel | --he | -h)
875     ac_init_help=long ;;
876   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
877     ac_init_help=recursive ;;
878   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
879     ac_init_help=short ;;
880
881   -host | --host | --hos | --ho)
882     ac_prev=host_alias ;;
883   -host=* | --host=* | --hos=* | --ho=*)
884     host_alias=$ac_optarg ;;
885
886   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
887     ac_prev=htmldir ;;
888   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
889   | --ht=*)
890     htmldir=$ac_optarg ;;
891
892   -includedir | --includedir | --includedi | --included | --include \
893   | --includ | --inclu | --incl | --inc)
894     ac_prev=includedir ;;
895   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
896   | --includ=* | --inclu=* | --incl=* | --inc=*)
897     includedir=$ac_optarg ;;
898
899   -infodir | --infodir | --infodi | --infod | --info | --inf)
900     ac_prev=infodir ;;
901   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
902     infodir=$ac_optarg ;;
903
904   -libdir | --libdir | --libdi | --libd)
905     ac_prev=libdir ;;
906   -libdir=* | --libdir=* | --libdi=* | --libd=*)
907     libdir=$ac_optarg ;;
908
909   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
910   | --libexe | --libex | --libe)
911     ac_prev=libexecdir ;;
912   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
913   | --libexe=* | --libex=* | --libe=*)
914     libexecdir=$ac_optarg ;;
915
916   -localedir | --localedir | --localedi | --localed | --locale)
917     ac_prev=localedir ;;
918   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
919     localedir=$ac_optarg ;;
920
921   -localstatedir | --localstatedir | --localstatedi | --localstated \
922   | --localstate | --localstat | --localsta | --localst | --locals)
923     ac_prev=localstatedir ;;
924   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
925   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
926     localstatedir=$ac_optarg ;;
927
928   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
929     ac_prev=mandir ;;
930   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
931     mandir=$ac_optarg ;;
932
933   -nfp | --nfp | --nf)
934     # Obsolete; use --without-fp.
935     with_fp=no ;;
936
937   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
938   | --no-cr | --no-c | -n)
939     no_create=yes ;;
940
941   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
942   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
943     no_recursion=yes ;;
944
945   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
946   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
947   | --oldin | --oldi | --old | --ol | --o)
948     ac_prev=oldincludedir ;;
949   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
950   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
951   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
952     oldincludedir=$ac_optarg ;;
953
954   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
955     ac_prev=prefix ;;
956   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
957     prefix=$ac_optarg ;;
958
959   -program-prefix | --program-prefix | --program-prefi | --program-pref \
960   | --program-pre | --program-pr | --program-p)
961     ac_prev=program_prefix ;;
962   -program-prefix=* | --program-prefix=* | --program-prefi=* \
963   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
964     program_prefix=$ac_optarg ;;
965
966   -program-suffix | --program-suffix | --program-suffi | --program-suff \
967   | --program-suf | --program-su | --program-s)
968     ac_prev=program_suffix ;;
969   -program-suffix=* | --program-suffix=* | --program-suffi=* \
970   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
971     program_suffix=$ac_optarg ;;
972
973   -program-transform-name | --program-transform-name \
974   | --program-transform-nam | --program-transform-na \
975   | --program-transform-n | --program-transform- \
976   | --program-transform | --program-transfor \
977   | --program-transfo | --program-transf \
978   | --program-trans | --program-tran \
979   | --progr-tra | --program-tr | --program-t)
980     ac_prev=program_transform_name ;;
981   -program-transform-name=* | --program-transform-name=* \
982   | --program-transform-nam=* | --program-transform-na=* \
983   | --program-transform-n=* | --program-transform-=* \
984   | --program-transform=* | --program-transfor=* \
985   | --program-transfo=* | --program-transf=* \
986   | --program-trans=* | --program-tran=* \
987   | --progr-tra=* | --program-tr=* | --program-t=*)
988     program_transform_name=$ac_optarg ;;
989
990   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
991     ac_prev=pdfdir ;;
992   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
993     pdfdir=$ac_optarg ;;
994
995   -psdir | --psdir | --psdi | --psd | --ps)
996     ac_prev=psdir ;;
997   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
998     psdir=$ac_optarg ;;
999
1000   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1001   | -silent | --silent | --silen | --sile | --sil)
1002     silent=yes ;;
1003
1004   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1005     ac_prev=sbindir ;;
1006   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1007   | --sbi=* | --sb=*)
1008     sbindir=$ac_optarg ;;
1009
1010   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1011   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1012   | --sharedst | --shareds | --shared | --share | --shar \
1013   | --sha | --sh)
1014     ac_prev=sharedstatedir ;;
1015   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1016   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1017   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1018   | --sha=* | --sh=*)
1019     sharedstatedir=$ac_optarg ;;
1020
1021   -site | --site | --sit)
1022     ac_prev=site ;;
1023   -site=* | --site=* | --sit=*)
1024     site=$ac_optarg ;;
1025
1026   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1027     ac_prev=srcdir ;;
1028   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1029     srcdir=$ac_optarg ;;
1030
1031   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1032   | --syscon | --sysco | --sysc | --sys | --sy)
1033     ac_prev=sysconfdir ;;
1034   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1035   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1036     sysconfdir=$ac_optarg ;;
1037
1038   -target | --target | --targe | --targ | --tar | --ta | --t)
1039     ac_prev=target_alias ;;
1040   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1041     target_alias=$ac_optarg ;;
1042
1043   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1044     verbose=yes ;;
1045
1046   -version | --version | --versio | --versi | --vers | -V)
1047     ac_init_version=: ;;
1048
1049   -with-* | --with-*)
1050     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1051     # Reject names that are not valid shell variable names.
1052     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053       as_fn_error "invalid package name: $ac_useropt"
1054     ac_useropt_orig=$ac_useropt
1055     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056     case $ac_user_opts in
1057       *"
1058 "with_$ac_useropt"
1059 "*) ;;
1060       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1061          ac_unrecognized_sep=', ';;
1062     esac
1063     eval with_$ac_useropt=\$ac_optarg ;;
1064
1065   -without-* | --without-*)
1066     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1067     # Reject names that are not valid shell variable names.
1068     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069       as_fn_error "invalid package name: $ac_useropt"
1070     ac_useropt_orig=$ac_useropt
1071     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072     case $ac_user_opts in
1073       *"
1074 "with_$ac_useropt"
1075 "*) ;;
1076       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1077          ac_unrecognized_sep=', ';;
1078     esac
1079     eval with_$ac_useropt=no ;;
1080
1081   --x)
1082     # Obsolete; use --with-x.
1083     with_x=yes ;;
1084
1085   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1086   | --x-incl | --x-inc | --x-in | --x-i)
1087     ac_prev=x_includes ;;
1088   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1089   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1090     x_includes=$ac_optarg ;;
1091
1092   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1093   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1094     ac_prev=x_libraries ;;
1095   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1096   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1097     x_libraries=$ac_optarg ;;
1098
1099   -*) as_fn_error "unrecognized option: \`$ac_option'
1100 Try \`$0 --help' for more information."
1101     ;;
1102
1103   *=*)
1104     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1105     # Reject names that are not valid shell variable names.
1106     case $ac_envvar in #(
1107       '' | [0-9]* | *[!_$as_cr_alnum]* )
1108       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1109     esac
1110     eval $ac_envvar=\$ac_optarg
1111     export $ac_envvar ;;
1112
1113   *)
1114     # FIXME: should be removed in autoconf 3.0.
1115     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1116     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1117       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1118     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1119     ;;
1120
1121   esac
1122 done
1123
1124 if test -n "$ac_prev"; then
1125   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1126   as_fn_error "missing argument to $ac_option"
1127 fi
1128
1129 if test -n "$ac_unrecognized_opts"; then
1130   case $enable_option_checking in
1131     no) ;;
1132     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1133     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1134   esac
1135 fi
1136
1137 # Check all directory arguments for consistency.
1138 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1139                 datadir sysconfdir sharedstatedir localstatedir includedir \
1140                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1141                 libdir localedir mandir
1142 do
1143   eval ac_val=\$$ac_var
1144   # Remove trailing slashes.
1145   case $ac_val in
1146     */ )
1147       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1148       eval $ac_var=\$ac_val;;
1149   esac
1150   # Be sure to have absolute directory names.
1151   case $ac_val in
1152     [\\/$]* | ?:[\\/]* )  continue;;
1153     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1154   esac
1155   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1156 done
1157
1158 # There might be people who depend on the old broken behavior: `$host'
1159 # used to hold the argument of --host etc.
1160 # FIXME: To remove some day.
1161 build=$build_alias
1162 host=$host_alias
1163 target=$target_alias
1164
1165 # FIXME: To remove some day.
1166 if test "x$host_alias" != x; then
1167   if test "x$build_alias" = x; then
1168     cross_compiling=maybe
1169     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1170     If a cross compiler is detected then cross compile mode will be used." >&2
1171   elif test "x$build_alias" != "x$host_alias"; then
1172     cross_compiling=yes
1173   fi
1174 fi
1175
1176 ac_tool_prefix=
1177 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1178
1179 test "$silent" = yes && exec 6>/dev/null
1180
1181
1182 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1183 ac_ls_di=`ls -di .` &&
1184 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1185   as_fn_error "working directory cannot be determined"
1186 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1187   as_fn_error "pwd does not report name of working directory"
1188
1189
1190 # Find the source files, if location was not specified.
1191 if test -z "$srcdir"; then
1192   ac_srcdir_defaulted=yes
1193   # Try the directory containing this script, then the parent directory.
1194   ac_confdir=`$as_dirname -- "$as_myself" ||
1195 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1196          X"$as_myself" : 'X\(//\)[^/]' \| \
1197          X"$as_myself" : 'X\(//\)$' \| \
1198          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1199 $as_echo X"$as_myself" |
1200     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1201             s//\1/
1202             q
1203           }
1204           /^X\(\/\/\)[^/].*/{
1205             s//\1/
1206             q
1207           }
1208           /^X\(\/\/\)$/{
1209             s//\1/
1210             q
1211           }
1212           /^X\(\/\).*/{
1213             s//\1/
1214             q
1215           }
1216           s/.*/./; q'`
1217   srcdir=$ac_confdir
1218   if test ! -r "$srcdir/$ac_unique_file"; then
1219     srcdir=..
1220   fi
1221 else
1222   ac_srcdir_defaulted=no
1223 fi
1224 if test ! -r "$srcdir/$ac_unique_file"; then
1225   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1226   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1227 fi
1228 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1229 ac_abs_confdir=`(
1230         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1231         pwd)`
1232 # When building in place, set srcdir=.
1233 if test "$ac_abs_confdir" = "$ac_pwd"; then
1234   srcdir=.
1235 fi
1236 # Remove unnecessary trailing slashes from srcdir.
1237 # Double slashes in file names in object file debugging info
1238 # mess up M-x gdb in Emacs.
1239 case $srcdir in
1240 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1241 esac
1242 for ac_var in $ac_precious_vars; do
1243   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1244   eval ac_env_${ac_var}_value=\$${ac_var}
1245   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1246   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1247 done
1248
1249 #
1250 # Report the --help message.
1251 #
1252 if test "$ac_init_help" = "long"; then
1253   # Omit some internal or obsolete options to make the list less imposing.
1254   # This message is too long to be a string in the A/UX 3.1 sh.
1255   cat <<_ACEOF
1256 \`configure' configures nbd 2.9.13 to adapt to many kinds of systems.
1257
1258 Usage: $0 [OPTION]... [VAR=VALUE]...
1259
1260 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1261 VAR=VALUE.  See below for descriptions of some of the useful variables.
1262
1263 Defaults for the options are specified in brackets.
1264
1265 Configuration:
1266   -h, --help              display this help and exit
1267       --help=short        display options specific to this package
1268       --help=recursive    display the short help of all the included packages
1269   -V, --version           display version information and exit
1270   -q, --quiet, --silent   do not print \`checking...' messages
1271       --cache-file=FILE   cache test results in FILE [disabled]
1272   -C, --config-cache      alias for \`--cache-file=config.cache'
1273   -n, --no-create         do not create output files
1274       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1275
1276 Installation directories:
1277   --prefix=PREFIX         install architecture-independent files in PREFIX
1278                           [$ac_default_prefix]
1279   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1280                           [PREFIX]
1281
1282 By default, \`make install' will install all the files in
1283 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1284 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1285 for instance \`--prefix=\$HOME'.
1286
1287 For better control, use the options below.
1288
1289 Fine tuning of the installation directories:
1290   --bindir=DIR            user executables [EPREFIX/bin]
1291   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1292   --libexecdir=DIR        program executables [EPREFIX/libexec]
1293   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1294   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1295   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1296   --libdir=DIR            object code libraries [EPREFIX/lib]
1297   --includedir=DIR        C header files [PREFIX/include]
1298   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1299   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1300   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1301   --infodir=DIR           info documentation [DATAROOTDIR/info]
1302   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1303   --mandir=DIR            man documentation [DATAROOTDIR/man]
1304   --docdir=DIR            documentation root [DATAROOTDIR/doc/nbd]
1305   --htmldir=DIR           html documentation [DOCDIR]
1306   --dvidir=DIR            dvi documentation [DOCDIR]
1307   --pdfdir=DIR            pdf documentation [DOCDIR]
1308   --psdir=DIR             ps documentation [DOCDIR]
1309 _ACEOF
1310
1311   cat <<\_ACEOF
1312
1313 Program names:
1314   --program-prefix=PREFIX            prepend PREFIX to installed program names
1315   --program-suffix=SUFFIX            append SUFFIX to installed program names
1316   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1317
1318 System types:
1319   --build=BUILD     configure for building on BUILD [guessed]
1320   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1321 _ACEOF
1322 fi
1323
1324 if test -n "$ac_init_help"; then
1325   case $ac_init_help in
1326      short | recursive ) echo "Configuration of nbd 2.9.13:";;
1327    esac
1328   cat <<\_ACEOF
1329
1330 Optional Features:
1331   --disable-option-checking  ignore unrecognized --enable/--with options
1332   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1333   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1334   --enable-maintainer-mode  enable make rules and dependencies not useful
1335                           (and sometimes confusing) to the casual installer
1336   --disable-lfs           Disable Large File Support (default on)
1337   --enable-syslog         Enable Syslog logging
1338   --enable-debug          Build a debugging version of the server
1339   --enable-sdp            Build a version of nbd-server with support for the
1340                           Socket Direct Protocol (SDP). Requires you to build
1341                           and install a kernel with the InfiniBand patches
1342                           (default disabled)
1343   --disable-dependency-tracking  speeds up one-time build
1344   --enable-dependency-tracking   do not reject slow dependency extractors
1345   --disable-glibtest      do not try to compile and run a test GLIB program
1346
1347 Some influential environment variables:
1348   CC          C compiler command
1349   CFLAGS      C compiler flags
1350   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1351               nonstandard directory <lib dir>
1352   LIBS        libraries to pass to the linker, e.g. -l<library>
1353   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1354               you have headers in a nonstandard directory <include dir>
1355   CPP         C preprocessor
1356   PKG_CONFIG  path to pkg-config utility
1357
1358 Use these variables to override the choices made by `configure' or to help
1359 it to find libraries and programs with nonstandard names/locations.
1360
1361 Report bugs to <wouter@debian.org>.
1362 _ACEOF
1363 ac_status=$?
1364 fi
1365
1366 if test "$ac_init_help" = "recursive"; then
1367   # If there are subdirs, report their specific --help.
1368   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1369     test -d "$ac_dir" ||
1370       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1371       continue
1372     ac_builddir=.
1373
1374 case "$ac_dir" in
1375 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1376 *)
1377   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1378   # A ".." for each directory in $ac_dir_suffix.
1379   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1380   case $ac_top_builddir_sub in
1381   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1383   esac ;;
1384 esac
1385 ac_abs_top_builddir=$ac_pwd
1386 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1387 # for backward compatibility:
1388 ac_top_builddir=$ac_top_build_prefix
1389
1390 case $srcdir in
1391   .)  # We are building in place.
1392     ac_srcdir=.
1393     ac_top_srcdir=$ac_top_builddir_sub
1394     ac_abs_top_srcdir=$ac_pwd ;;
1395   [\\/]* | ?:[\\/]* )  # Absolute name.
1396     ac_srcdir=$srcdir$ac_dir_suffix;
1397     ac_top_srcdir=$srcdir
1398     ac_abs_top_srcdir=$srcdir ;;
1399   *) # Relative name.
1400     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1401     ac_top_srcdir=$ac_top_build_prefix$srcdir
1402     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1403 esac
1404 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1405
1406     cd "$ac_dir" || { ac_status=$?; continue; }
1407     # Check for guested configure.
1408     if test -f "$ac_srcdir/configure.gnu"; then
1409       echo &&
1410       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1411     elif test -f "$ac_srcdir/configure"; then
1412       echo &&
1413       $SHELL "$ac_srcdir/configure" --help=recursive
1414     else
1415       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1416     fi || ac_status=$?
1417     cd "$ac_pwd" || { ac_status=$?; break; }
1418   done
1419 fi
1420
1421 test -n "$ac_init_help" && exit $ac_status
1422 if $ac_init_version; then
1423   cat <<\_ACEOF
1424 nbd configure 2.9.13
1425 generated by GNU Autoconf 2.64
1426
1427 Copyright (C) 2009 Free Software Foundation, Inc.
1428 This configure script is free software; the Free Software Foundation
1429 gives unlimited permission to copy, distribute and modify it.
1430 _ACEOF
1431   exit
1432 fi
1433
1434 ## ------------------------ ##
1435 ## Autoconf initialization. ##
1436 ## ------------------------ ##
1437
1438 # ac_fn_c_try_compile LINENO
1439 # --------------------------
1440 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1441 ac_fn_c_try_compile ()
1442 {
1443   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1444   rm -f conftest.$ac_objext
1445   if { { ac_try="$ac_compile"
1446 case "(($ac_try" in
1447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1448   *) ac_try_echo=$ac_try;;
1449 esac
1450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1451 $as_echo "$ac_try_echo"; } >&5
1452   (eval "$ac_compile") 2>conftest.err
1453   ac_status=$?
1454   if test -s conftest.err; then
1455     grep -v '^ *+' conftest.err >conftest.er1
1456     cat conftest.er1 >&5
1457     mv -f conftest.er1 conftest.err
1458   fi
1459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1460   test $ac_status = 0; } && {
1461          test -z "$ac_c_werror_flag" ||
1462          test ! -s conftest.err
1463        } && test -s conftest.$ac_objext; then :
1464   ac_retval=0
1465 else
1466   $as_echo "$as_me: failed program was:" >&5
1467 sed 's/^/| /' conftest.$ac_ext >&5
1468
1469         ac_retval=1
1470 fi
1471   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1472   return $ac_retval
1473
1474 } # ac_fn_c_try_compile
1475
1476 # ac_fn_c_try_cpp LINENO
1477 # ----------------------
1478 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1479 ac_fn_c_try_cpp ()
1480 {
1481   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1482   if { { ac_try="$ac_cpp conftest.$ac_ext"
1483 case "(($ac_try" in
1484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1485   *) ac_try_echo=$ac_try;;
1486 esac
1487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488 $as_echo "$ac_try_echo"; } >&5
1489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1490   ac_status=$?
1491   if test -s conftest.err; then
1492     grep -v '^ *+' conftest.err >conftest.er1
1493     cat conftest.er1 >&5
1494     mv -f conftest.er1 conftest.err
1495   fi
1496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497   test $ac_status = 0; } >/dev/null && {
1498          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1499          test ! -s conftest.err
1500        }; then :
1501   ac_retval=0
1502 else
1503   $as_echo "$as_me: failed program was:" >&5
1504 sed 's/^/| /' conftest.$ac_ext >&5
1505
1506     ac_retval=1
1507 fi
1508   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1509   return $ac_retval
1510
1511 } # ac_fn_c_try_cpp
1512
1513 # ac_fn_c_try_run LINENO
1514 # ----------------------
1515 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1516 # that executables *can* be run.
1517 ac_fn_c_try_run ()
1518 {
1519   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520   if { { ac_try="$ac_link"
1521 case "(($ac_try" in
1522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523   *) ac_try_echo=$ac_try;;
1524 esac
1525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526 $as_echo "$ac_try_echo"; } >&5
1527   (eval "$ac_link") 2>&5
1528   ac_status=$?
1529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1531   { { case "(($ac_try" in
1532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533   *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537   (eval "$ac_try") 2>&5
1538   ac_status=$?
1539   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540   test $ac_status = 0; }; }; then :
1541   ac_retval=0
1542 else
1543   $as_echo "$as_me: program exited with status $ac_status" >&5
1544        $as_echo "$as_me: failed program was:" >&5
1545 sed 's/^/| /' conftest.$ac_ext >&5
1546
1547        ac_retval=$ac_status
1548 fi
1549   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1550   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1551   return $ac_retval
1552
1553 } # ac_fn_c_try_run
1554
1555 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1556 # -------------------------------------------------------
1557 # Tests whether HEADER exists and can be compiled using the include files in
1558 # INCLUDES, setting the cache variable VAR accordingly.
1559 ac_fn_c_check_header_compile ()
1560 {
1561   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1563 $as_echo_n "checking for $2... " >&6; }
1564 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1565   $as_echo_n "(cached) " >&6
1566 else
1567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1568 /* end confdefs.h.  */
1569 $4
1570 #include <$2>
1571 _ACEOF
1572 if ac_fn_c_try_compile "$LINENO"; then :
1573   eval "$3=yes"
1574 else
1575   eval "$3=no"
1576 fi
1577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1578 fi
1579 eval ac_res=\$$3
1580                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1581 $as_echo "$ac_res" >&6; }
1582   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1583
1584 } # ac_fn_c_check_header_compile
1585
1586 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1587 # --------------------------------------------
1588 # Tries to find the compile-time value of EXPR in a program that includes
1589 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1590 # computed
1591 ac_fn_c_compute_int ()
1592 {
1593   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594   if test "$cross_compiling" = yes; then
1595     # Depending upon the size, compute the lo and hi bounds.
1596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1597 /* end confdefs.h.  */
1598 $4
1599 int
1600 main ()
1601 {
1602 static int test_array [1 - 2 * !(($2) >= 0)];
1603 test_array [0] = 0
1604
1605   ;
1606   return 0;
1607 }
1608 _ACEOF
1609 if ac_fn_c_try_compile "$LINENO"; then :
1610   ac_lo=0 ac_mid=0
1611   while :; do
1612     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613 /* end confdefs.h.  */
1614 $4
1615 int
1616 main ()
1617 {
1618 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1619 test_array [0] = 0
1620
1621   ;
1622   return 0;
1623 }
1624 _ACEOF
1625 if ac_fn_c_try_compile "$LINENO"; then :
1626   ac_hi=$ac_mid; break
1627 else
1628   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1629                         if test $ac_lo -le $ac_mid; then
1630                           ac_lo= ac_hi=
1631                           break
1632                         fi
1633                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1634 fi
1635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636   done
1637 else
1638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h.  */
1640 $4
1641 int
1642 main ()
1643 {
1644 static int test_array [1 - 2 * !(($2) < 0)];
1645 test_array [0] = 0
1646
1647   ;
1648   return 0;
1649 }
1650 _ACEOF
1651 if ac_fn_c_try_compile "$LINENO"; then :
1652   ac_hi=-1 ac_mid=-1
1653   while :; do
1654     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h.  */
1656 $4
1657 int
1658 main ()
1659 {
1660 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1661 test_array [0] = 0
1662
1663   ;
1664   return 0;
1665 }
1666 _ACEOF
1667 if ac_fn_c_try_compile "$LINENO"; then :
1668   ac_lo=$ac_mid; break
1669 else
1670   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1671                         if test $ac_mid -le $ac_hi; then
1672                           ac_lo= ac_hi=
1673                           break
1674                         fi
1675                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1676 fi
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678   done
1679 else
1680   ac_lo= ac_hi=
1681 fi
1682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 fi
1684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685 # Binary search between lo and hi bounds.
1686 while test "x$ac_lo" != "x$ac_hi"; do
1687   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h.  */
1690 $4
1691 int
1692 main ()
1693 {
1694 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1695 test_array [0] = 0
1696
1697   ;
1698   return 0;
1699 }
1700 _ACEOF
1701 if ac_fn_c_try_compile "$LINENO"; then :
1702   ac_hi=$ac_mid
1703 else
1704   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1705 fi
1706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707 done
1708 case $ac_lo in #((
1709 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1710 '') ac_retval=1 ;;
1711 esac
1712   else
1713     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h.  */
1715 $4
1716 static long int longval () { return $2; }
1717 static unsigned long int ulongval () { return $2; }
1718 #include <stdio.h>
1719 #include <stdlib.h>
1720 int
1721 main ()
1722 {
1723
1724   FILE *f = fopen ("conftest.val", "w");
1725   if (! f)
1726     return 1;
1727   if (($2) < 0)
1728     {
1729       long int i = longval ();
1730       if (i != ($2))
1731         return 1;
1732       fprintf (f, "%ld", i);
1733     }
1734   else
1735     {
1736       unsigned long int i = ulongval ();
1737       if (i != ($2))
1738         return 1;
1739       fprintf (f, "%lu", i);
1740     }
1741   /* Do not output a trailing newline, as this causes \r\n confusion
1742      on some platforms.  */
1743   return ferror (f) || fclose (f) != 0;
1744
1745   ;
1746   return 0;
1747 }
1748 _ACEOF
1749 if ac_fn_c_try_run "$LINENO"; then :
1750   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1751 else
1752   ac_retval=1
1753 fi
1754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1755   conftest.$ac_objext conftest.beam conftest.$ac_ext
1756 rm -f conftest.val
1757
1758   fi
1759   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760   return $ac_retval
1761
1762 } # ac_fn_c_compute_int
1763
1764 # ac_fn_c_try_link LINENO
1765 # -----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_c_try_link ()
1768 {
1769   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770   rm -f conftest.$ac_objext conftest$ac_exeext
1771   if { { ac_try="$ac_link"
1772 case "(($ac_try" in
1773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774   *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778   (eval "$ac_link") 2>conftest.err
1779   ac_status=$?
1780   if test -s conftest.err; then
1781     grep -v '^ *+' conftest.err >conftest.er1
1782     cat conftest.er1 >&5
1783     mv -f conftest.er1 conftest.err
1784   fi
1785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786   test $ac_status = 0; } && {
1787          test -z "$ac_c_werror_flag" ||
1788          test ! -s conftest.err
1789        } && test -s conftest$ac_exeext && {
1790          test "$cross_compiling" = yes ||
1791          $as_test_x conftest$ac_exeext
1792        }; then :
1793   ac_retval=0
1794 else
1795   $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798         ac_retval=1
1799 fi
1800   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1801   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1802   # interfere with the next link command; also delete a directory that is
1803   # left behind by Apple's compiler.  We do this before executing the actions.
1804   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806   return $ac_retval
1807
1808 } # ac_fn_c_try_link
1809
1810 # ac_fn_c_check_func LINENO FUNC VAR
1811 # ----------------------------------
1812 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1813 ac_fn_c_check_func ()
1814 {
1815   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819   $as_echo_n "(cached) " >&6
1820 else
1821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h.  */
1823 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1824    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1825 #define $2 innocuous_$2
1826
1827 /* System header to define __stub macros and hopefully few prototypes,
1828     which can conflict with char $2 (); below.
1829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1830     <limits.h> exists even on freestanding compilers.  */
1831
1832 #ifdef __STDC__
1833 # include <limits.h>
1834 #else
1835 # include <assert.h>
1836 #endif
1837
1838 #undef $2
1839
1840 /* Override any GCC internal prototype to avoid an error.
1841    Use char because int might match the return type of a GCC
1842    builtin and then its argument prototype would still apply.  */
1843 #ifdef __cplusplus
1844 extern "C"
1845 #endif
1846 char $2 ();
1847 /* The GNU C library defines this for functions which it implements
1848     to always fail with ENOSYS.  Some functions are actually named
1849     something starting with __ and the normal name is an alias.  */
1850 #if defined __stub_$2 || defined __stub___$2
1851 choke me
1852 #endif
1853
1854 int
1855 main ()
1856 {
1857 return $2 ();
1858   ;
1859   return 0;
1860 }
1861 _ACEOF
1862 if ac_fn_c_try_link "$LINENO"; then :
1863   eval "$3=yes"
1864 else
1865   eval "$3=no"
1866 fi
1867 rm -f core conftest.err conftest.$ac_objext \
1868     conftest$ac_exeext conftest.$ac_ext
1869 fi
1870 eval ac_res=\$$3
1871                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874
1875 } # ac_fn_c_check_func
1876
1877 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1878 # -------------------------------------------
1879 # Tests whether TYPE exists after having included INCLUDES, setting cache
1880 # variable VAR accordingly.
1881 ac_fn_c_check_type ()
1882 {
1883   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887   $as_echo_n "(cached) " >&6
1888 else
1889   eval "$3=no"
1890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h.  */
1892 $4
1893 int
1894 main ()
1895 {
1896 if (sizeof ($2))
1897          return 0;
1898   ;
1899   return 0;
1900 }
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h.  */
1905 $4
1906 int
1907 main ()
1908 {
1909 if (sizeof (($2)))
1910             return 0;
1911   ;
1912   return 0;
1913 }
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916
1917 else
1918   eval "$3=yes"
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 fi
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923 fi
1924 eval ac_res=\$$3
1925                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1927   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1928
1929 } # ac_fn_c_check_type
1930
1931 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1932 # -------------------------------------------------------
1933 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1934 # the include files in INCLUDES and setting the cache variable VAR
1935 # accordingly.
1936 ac_fn_c_check_header_mongrel ()
1937 {
1938   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1943   $as_echo_n "(cached) " >&6
1944 fi
1945 eval ac_res=\$$3
1946                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 else
1949   # Is the header compilable?
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1951 $as_echo_n "checking $2 usability... " >&6; }
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h.  */
1954 $4
1955 #include <$2>
1956 _ACEOF
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958   ac_header_compiler=yes
1959 else
1960   ac_header_compiler=no
1961 fi
1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1964 $as_echo "$ac_header_compiler" >&6; }
1965
1966 # Is the header present?
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1968 $as_echo_n "checking $2 presence... " >&6; }
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h.  */
1971 #include <$2>
1972 _ACEOF
1973 if ac_fn_c_try_cpp "$LINENO"; then :
1974   ac_header_preproc=yes
1975 else
1976   ac_header_preproc=no
1977 fi
1978 rm -f conftest.err conftest.$ac_ext
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1980 $as_echo "$ac_header_preproc" >&6; }
1981
1982 # So?  What about this header?
1983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1984   yes:no: )
1985     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1986 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1987     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1989     ;;
1990   no:yes:* )
1991     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1992 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1993     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1994 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1995     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1996 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1997     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1998 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1999     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2000 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2001 ( cat <<\_ASBOX
2002 ## -------------------------------- ##
2003 ## Report this to wouter@debian.org ##
2004 ## -------------------------------- ##
2005 _ASBOX
2006      ) | sed "s/^/$as_me: WARNING:     /" >&2
2007     ;;
2008 esac
2009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2012   $as_echo_n "(cached) " >&6
2013 else
2014   eval "$3=\$ac_header_compiler"
2015 fi
2016 eval ac_res=\$$3
2017                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 fi
2020   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021
2022 } # ac_fn_c_check_header_mongrel
2023 cat >config.log <<_ACEOF
2024 This file contains any messages produced by compilers while
2025 running configure, to aid debugging if configure makes a mistake.
2026
2027 It was created by nbd $as_me 2.9.13, which was
2028 generated by GNU Autoconf 2.64.  Invocation command line was
2029
2030   $ $0 $@
2031
2032 _ACEOF
2033 exec 5>>config.log
2034 {
2035 cat <<_ASUNAME
2036 ## --------- ##
2037 ## Platform. ##
2038 ## --------- ##
2039
2040 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2041 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2042 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2043 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2044 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2045
2046 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2047 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2048
2049 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2050 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2051 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2052 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2053 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2054 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2055 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2056
2057 _ASUNAME
2058
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062   IFS=$as_save_IFS
2063   test -z "$as_dir" && as_dir=.
2064     $as_echo "PATH: $as_dir"
2065   done
2066 IFS=$as_save_IFS
2067
2068 } >&5
2069
2070 cat >&5 <<_ACEOF
2071
2072
2073 ## ----------- ##
2074 ## Core tests. ##
2075 ## ----------- ##
2076
2077 _ACEOF
2078
2079
2080 # Keep a trace of the command line.
2081 # Strip out --no-create and --no-recursion so they do not pile up.
2082 # Strip out --silent because we don't want to record it for future runs.
2083 # Also quote any args containing shell meta-characters.
2084 # Make two passes to allow for proper duplicate-argument suppression.
2085 ac_configure_args=
2086 ac_configure_args0=
2087 ac_configure_args1=
2088 ac_must_keep_next=false
2089 for ac_pass in 1 2
2090 do
2091   for ac_arg
2092   do
2093     case $ac_arg in
2094     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2095     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2096     | -silent | --silent | --silen | --sile | --sil)
2097       continue ;;
2098     *\'*)
2099       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2100     esac
2101     case $ac_pass in
2102     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2103     2)
2104       as_fn_append ac_configure_args1 " '$ac_arg'"
2105       if test $ac_must_keep_next = true; then
2106         ac_must_keep_next=false # Got value, back to normal.
2107       else
2108         case $ac_arg in
2109           *=* | --config-cache | -C | -disable-* | --disable-* \
2110           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2111           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2112           | -with-* | --with-* | -without-* | --without-* | --x)
2113             case "$ac_configure_args0 " in
2114               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2115             esac
2116             ;;
2117           -* ) ac_must_keep_next=true ;;
2118         esac
2119       fi
2120       as_fn_append ac_configure_args " '$ac_arg'"
2121       ;;
2122     esac
2123   done
2124 done
2125 { ac_configure_args0=; unset ac_configure_args0;}
2126 { ac_configure_args1=; unset ac_configure_args1;}
2127
2128 # When interrupted or exit'd, cleanup temporary files, and complete
2129 # config.log.  We remove comments because anyway the quotes in there
2130 # would cause problems or look ugly.
2131 # WARNING: Use '\'' to represent an apostrophe within the trap.
2132 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2133 trap 'exit_status=$?
2134   # Save into config.log some information that might help in debugging.
2135   {
2136     echo
2137
2138     cat <<\_ASBOX
2139 ## ---------------- ##
2140 ## Cache variables. ##
2141 ## ---------------- ##
2142 _ASBOX
2143     echo
2144     # The following way of writing the cache mishandles newlines in values,
2145 (
2146   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2147     eval ac_val=\$$ac_var
2148     case $ac_val in #(
2149     *${as_nl}*)
2150       case $ac_var in #(
2151       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2152 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2153       esac
2154       case $ac_var in #(
2155       _ | IFS | as_nl) ;; #(
2156       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2157       *) { eval $ac_var=; unset $ac_var;} ;;
2158       esac ;;
2159     esac
2160   done
2161   (set) 2>&1 |
2162     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2163     *${as_nl}ac_space=\ *)
2164       sed -n \
2165         "s/'\''/'\''\\\\'\'''\''/g;
2166           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2167       ;; #(
2168     *)
2169       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2170       ;;
2171     esac |
2172     sort
2173 )
2174     echo
2175
2176     cat <<\_ASBOX
2177 ## ----------------- ##
2178 ## Output variables. ##
2179 ## ----------------- ##
2180 _ASBOX
2181     echo
2182     for ac_var in $ac_subst_vars
2183     do
2184       eval ac_val=\$$ac_var
2185       case $ac_val in
2186       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187       esac
2188       $as_echo "$ac_var='\''$ac_val'\''"
2189     done | sort
2190     echo
2191
2192     if test -n "$ac_subst_files"; then
2193       cat <<\_ASBOX
2194 ## ------------------- ##
2195 ## File substitutions. ##
2196 ## ------------------- ##
2197 _ASBOX
2198       echo
2199       for ac_var in $ac_subst_files
2200       do
2201         eval ac_val=\$$ac_var
2202         case $ac_val in
2203         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2204         esac
2205         $as_echo "$ac_var='\''$ac_val'\''"
2206       done | sort
2207       echo
2208     fi
2209
2210     if test -s confdefs.h; then
2211       cat <<\_ASBOX
2212 ## ----------- ##
2213 ## confdefs.h. ##
2214 ## ----------- ##
2215 _ASBOX
2216       echo
2217       cat confdefs.h
2218       echo
2219     fi
2220     test "$ac_signal" != 0 &&
2221       $as_echo "$as_me: caught signal $ac_signal"
2222     $as_echo "$as_me: exit $exit_status"
2223   } >&5
2224   rm -f core *.core core.conftest.* &&
2225     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2226     exit $exit_status
2227 ' 0
2228 for ac_signal in 1 2 13 15; do
2229   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2230 done
2231 ac_signal=0
2232
2233 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2234 rm -f -r conftest* confdefs.h
2235
2236 $as_echo "/* confdefs.h */" > confdefs.h
2237
2238 # Predefined preprocessor variables.
2239
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_NAME "$PACKAGE_NAME"
2242 _ACEOF
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2246 _ACEOF
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2250 _ACEOF
2251
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_STRING "$PACKAGE_STRING"
2254 _ACEOF
2255
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2258 _ACEOF
2259
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_URL "$PACKAGE_URL"
2262 _ACEOF
2263
2264
2265 # Let the site file select an alternate cache file if it wants to.
2266 # Prefer an explicitly selected file to automatically selected ones.
2267 ac_site_file1=NONE
2268 ac_site_file2=NONE
2269 if test -n "$CONFIG_SITE"; then
2270   ac_site_file1=$CONFIG_SITE
2271 elif test "x$prefix" != xNONE; then
2272   ac_site_file1=$prefix/share/config.site
2273   ac_site_file2=$prefix/etc/config.site
2274 else
2275   ac_site_file1=$ac_default_prefix/share/config.site
2276   ac_site_file2=$ac_default_prefix/etc/config.site
2277 fi
2278 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2279 do
2280   test "x$ac_site_file" = xNONE && continue
2281   if test -r "$ac_site_file"; then
2282     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2283 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2284     sed 's/^/| /' "$ac_site_file" >&5
2285     . "$ac_site_file"
2286   fi
2287 done
2288
2289 if test -r "$cache_file"; then
2290   # Some versions of bash will fail to source /dev/null (special
2291   # files actually), so we avoid doing that.
2292   if test -f "$cache_file"; then
2293     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2294 $as_echo "$as_me: loading cache $cache_file" >&6;}
2295     case $cache_file in
2296       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2297       *)                      . "./$cache_file";;
2298     esac
2299   fi
2300 else
2301   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2302 $as_echo "$as_me: creating cache $cache_file" >&6;}
2303   >$cache_file
2304 fi
2305
2306 # Check that the precious variables saved in the cache have kept the same
2307 # value.
2308 ac_cache_corrupted=false
2309 for ac_var in $ac_precious_vars; do
2310   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2311   eval ac_new_set=\$ac_env_${ac_var}_set
2312   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2313   eval ac_new_val=\$ac_env_${ac_var}_value
2314   case $ac_old_set,$ac_new_set in
2315     set,)
2316       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2317 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2318       ac_cache_corrupted=: ;;
2319     ,set)
2320       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2321 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2322       ac_cache_corrupted=: ;;
2323     ,);;
2324     *)
2325       if test "x$ac_old_val" != "x$ac_new_val"; then
2326         # differences in whitespace do not lead to failure.
2327         ac_old_val_w=`echo x $ac_old_val`
2328         ac_new_val_w=`echo x $ac_new_val`
2329         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2330           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2331 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2332           ac_cache_corrupted=:
2333         else
2334           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2335 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2336           eval $ac_var=\$ac_old_val
2337         fi
2338         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2339 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2340         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2341 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2342       fi;;
2343   esac
2344   # Pass precious variables to config.status.
2345   if test "$ac_new_set" = set; then
2346     case $ac_new_val in
2347     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2348     *) ac_arg=$ac_var=$ac_new_val ;;
2349     esac
2350     case " $ac_configure_args " in
2351       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2352       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2353     esac
2354   fi
2355 done
2356 if $ac_cache_corrupted; then
2357   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2359   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2360 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2361   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2362 fi
2363 ## -------------------- ##
2364 ## Main body of script. ##
2365 ## -------------------- ##
2366
2367 ac_ext=c
2368 ac_cpp='$CPP $CPPFLAGS'
2369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2372
2373
2374 am__api_version='1.10'
2375
2376 ac_aux_dir=
2377 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2378   for ac_t in install-sh install.sh shtool; do
2379     if test -f "$ac_dir/$ac_t"; then
2380       ac_aux_dir=$ac_dir
2381       ac_install_sh="$ac_aux_dir/$ac_t -c"
2382       break 2
2383     fi
2384   done
2385 done
2386 if test -z "$ac_aux_dir"; then
2387   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2388 fi
2389
2390 # These three variables are undocumented and unsupported,
2391 # and are intended to be withdrawn in a future Autoconf release.
2392 # They can cause serious problems if a builder's source tree is in a directory
2393 # whose full name contains unusual characters.
2394 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2395 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2396 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2397
2398
2399 # Find a good install program.  We prefer a C program (faster),
2400 # so one script is as good as another.  But avoid the broken or
2401 # incompatible versions:
2402 # SysV /etc/install, /usr/sbin/install
2403 # SunOS /usr/etc/install
2404 # IRIX /sbin/install
2405 # AIX /bin/install
2406 # AmigaOS /C/install, which installs bootblocks on floppy discs
2407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2410 # OS/2's system install, which has a completely different semantic
2411 # ./install, which can be erroneously created by make from ./install.sh.
2412 # Reject install programs that cannot install multiple files.
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2414 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2415 if test -z "$INSTALL"; then
2416 if test "${ac_cv_path_install+set}" = set; then :
2417   $as_echo_n "(cached) " >&6
2418 else
2419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422   IFS=$as_save_IFS
2423   test -z "$as_dir" && as_dir=.
2424     # Account for people who put trailing slashes in PATH elements.
2425 case $as_dir/ in #((
2426   ./ | .// | /[cC]/* | \
2427   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2428   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2429   /usr/ucb/* ) ;;
2430   *)
2431     # OSF1 and SCO ODT 3.0 have their own names for install.
2432     # Don't use installbsd from OSF since it installs stuff as root
2433     # by default.
2434     for ac_prog in ginstall scoinst install; do
2435       for ac_exec_ext in '' $ac_executable_extensions; do
2436         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2437           if test $ac_prog = install &&
2438             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2439             # AIX install.  It has an incompatible calling convention.
2440             :
2441           elif test $ac_prog = install &&
2442             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2443             # program-specific install script used by HP pwplus--don't use.
2444             :
2445           else
2446             rm -rf conftest.one conftest.two conftest.dir
2447             echo one > conftest.one
2448             echo two > conftest.two
2449             mkdir conftest.dir
2450             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2451               test -s conftest.one && test -s conftest.two &&
2452               test -s conftest.dir/conftest.one &&
2453               test -s conftest.dir/conftest.two
2454             then
2455               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2456               break 3
2457             fi
2458           fi
2459         fi
2460       done
2461     done
2462     ;;
2463 esac
2464
2465   done
2466 IFS=$as_save_IFS
2467
2468 rm -rf conftest.one conftest.two conftest.dir
2469
2470 fi
2471   if test "${ac_cv_path_install+set}" = set; then
2472     INSTALL=$ac_cv_path_install
2473   else
2474     # As a last resort, use the slow shell script.  Don't cache a
2475     # value for INSTALL within a source directory, because that will
2476     # break other packages using the cache if that directory is
2477     # removed, or if the value is a relative name.
2478     INSTALL=$ac_install_sh
2479   fi
2480 fi
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2482 $as_echo "$INSTALL" >&6; }
2483
2484 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2485 # It thinks the first close brace ends the variable substitution.
2486 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2487
2488 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2489
2490 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2491
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2493 $as_echo_n "checking whether build environment is sane... " >&6; }
2494 # Just in case
2495 sleep 1
2496 echo timestamp > conftest.file
2497 # Do `set' in a subshell so we don't clobber the current shell's
2498 # arguments.  Must try -L first in case configure is actually a
2499 # symlink; some systems play weird games with the mod time of symlinks
2500 # (eg FreeBSD returns the mod time of the symlink's containing
2501 # directory).
2502 if (
2503    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2504    if test "$*" = "X"; then
2505       # -L didn't work.
2506       set X `ls -t $srcdir/configure conftest.file`
2507    fi
2508    rm -f conftest.file
2509    if test "$*" != "X $srcdir/configure conftest.file" \
2510       && test "$*" != "X conftest.file $srcdir/configure"; then
2511
2512       # If neither matched, then we have a broken ls.  This can happen
2513       # if, for instance, CONFIG_SHELL is bash and it inherits a
2514       # broken ls alias from the environment.  This has actually
2515       # happened.  Such a system could not be considered "sane".
2516       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2517 alias in your environment" "$LINENO" 5
2518    fi
2519
2520    test "$2" = conftest.file
2521    )
2522 then
2523    # Ok.
2524    :
2525 else
2526    as_fn_error "newly created file is older than distributed files!
2527 Check your system clock" "$LINENO" 5
2528 fi
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2530 $as_echo "yes" >&6; }
2531 test "$program_prefix" != NONE &&
2532   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2533 # Use a double $ so make ignores it.
2534 test "$program_suffix" != NONE &&
2535   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2536 # Double any \ or $.
2537 # By default was `s,x,x', remove it if useless.
2538 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2539 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2540
2541 # expand $ac_aux_dir to an absolute path
2542 am_aux_dir=`cd $ac_aux_dir && pwd`
2543
2544 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2545 # Use eval to expand $SHELL
2546 if eval "$MISSING --run true"; then
2547   am_missing_run="$MISSING --run "
2548 else
2549   am_missing_run=
2550   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2551 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2552 fi
2553
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2555 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2556 if test -z "$MKDIR_P"; then
2557   if test "${ac_cv_path_mkdir+set}" = set; then :
2558   $as_echo_n "(cached) " >&6
2559 else
2560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2562 do
2563   IFS=$as_save_IFS
2564   test -z "$as_dir" && as_dir=.
2565     for ac_prog in mkdir gmkdir; do
2566          for ac_exec_ext in '' $ac_executable_extensions; do
2567            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2568            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2569              'mkdir (GNU coreutils) '* | \
2570              'mkdir (coreutils) '* | \
2571              'mkdir (fileutils) '4.1*)
2572                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2573                break 3;;
2574            esac
2575          done
2576        done
2577   done
2578 IFS=$as_save_IFS
2579
2580 fi
2581
2582   if test "${ac_cv_path_mkdir+set}" = set; then
2583     MKDIR_P="$ac_cv_path_mkdir -p"
2584   else
2585     # As a last resort, use the slow shell script.  Don't cache a
2586     # value for MKDIR_P within a source directory, because that will
2587     # break other packages using the cache if that directory is
2588     # removed, or if the value is a relative name.
2589     test -d ./--version && rmdir ./--version
2590     MKDIR_P="$ac_install_sh -d"
2591   fi
2592 fi
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2594 $as_echo "$MKDIR_P" >&6; }
2595
2596 mkdir_p="$MKDIR_P"
2597 case $mkdir_p in
2598   [\\/$]* | ?:[\\/]*) ;;
2599   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2600 esac
2601
2602 for ac_prog in gawk mawk nawk awk
2603 do
2604   # Extract the first word of "$ac_prog", so it can be a program name with args.
2605 set dummy $ac_prog; ac_word=$2
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607 $as_echo_n "checking for $ac_word... " >&6; }
2608 if test "${ac_cv_prog_AWK+set}" = set; then :
2609   $as_echo_n "(cached) " >&6
2610 else
2611   if test -n "$AWK"; then
2612   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2616 do
2617   IFS=$as_save_IFS
2618   test -z "$as_dir" && as_dir=.
2619     for ac_exec_ext in '' $ac_executable_extensions; do
2620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621     ac_cv_prog_AWK="$ac_prog"
2622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623     break 2
2624   fi
2625 done
2626   done
2627 IFS=$as_save_IFS
2628
2629 fi
2630 fi
2631 AWK=$ac_cv_prog_AWK
2632 if test -n "$AWK"; then
2633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2634 $as_echo "$AWK" >&6; }
2635 else
2636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637 $as_echo "no" >&6; }
2638 fi
2639
2640
2641   test -n "$AWK" && break
2642 done
2643
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2645 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2646 set x ${MAKE-make}
2647 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2648 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2649   $as_echo_n "(cached) " >&6
2650 else
2651   cat >conftest.make <<\_ACEOF
2652 SHELL = /bin/sh
2653 all:
2654         @echo '@@@%%%=$(MAKE)=@@@%%%'
2655 _ACEOF
2656 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2657 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2658   *@@@%%%=?*=@@@%%%*)
2659     eval ac_cv_prog_make_${ac_make}_set=yes;;
2660   *)
2661     eval ac_cv_prog_make_${ac_make}_set=no;;
2662 esac
2663 rm -f conftest.make
2664 fi
2665 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2667 $as_echo "yes" >&6; }
2668   SET_MAKE=
2669 else
2670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2672   SET_MAKE="MAKE=${MAKE-make}"
2673 fi
2674
2675 rm -rf .tst 2>/dev/null
2676 mkdir .tst 2>/dev/null
2677 if test -d .tst; then
2678   am__leading_dot=.
2679 else
2680   am__leading_dot=_
2681 fi
2682 rmdir .tst 2>/dev/null
2683
2684 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2685   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2686   # is not polluted with repeated "-I."
2687   am__isrc=' -I$(srcdir)'
2688   # test to see if srcdir already configured
2689   if test -f $srcdir/config.status; then
2690     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2691   fi
2692 fi
2693
2694 # test whether we have cygpath
2695 if test -z "$CYGPATH_W"; then
2696   if (cygpath --version) >/dev/null 2>/dev/null; then
2697     CYGPATH_W='cygpath -w'
2698   else
2699     CYGPATH_W=echo
2700   fi
2701 fi
2702
2703
2704 # Define the identity of the package.
2705  PACKAGE='nbd'
2706  VERSION='2.9.13'
2707
2708
2709 cat >>confdefs.h <<_ACEOF
2710 #define PACKAGE "$PACKAGE"
2711 _ACEOF
2712
2713
2714 cat >>confdefs.h <<_ACEOF
2715 #define VERSION "$VERSION"
2716 _ACEOF
2717
2718 # Some tools Automake needs.
2719
2720 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2721
2722
2723 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2724
2725
2726 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2727
2728
2729 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2730
2731
2732 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2733
2734 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2735
2736 # Installed binaries are usually stripped using `strip' when the user
2737 # run `make install-strip'.  However `strip' might not be the right
2738 # tool to use in cross-compilation environments, therefore Automake
2739 # will honor the `STRIP' environment variable to overrule this program.
2740 if test "$cross_compiling" != no; then
2741   if test -n "$ac_tool_prefix"; then
2742   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2743 set dummy ${ac_tool_prefix}strip; ac_word=$2
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745 $as_echo_n "checking for $ac_word... " >&6; }
2746 if test "${ac_cv_prog_STRIP+set}" = set; then :
2747   $as_echo_n "(cached) " >&6
2748 else
2749   if test -n "$STRIP"; then
2750   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755   IFS=$as_save_IFS
2756   test -z "$as_dir" && as_dir=.
2757     for ac_exec_ext in '' $ac_executable_extensions; do
2758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761     break 2
2762   fi
2763 done
2764   done
2765 IFS=$as_save_IFS
2766
2767 fi
2768 fi
2769 STRIP=$ac_cv_prog_STRIP
2770 if test -n "$STRIP"; then
2771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2772 $as_echo "$STRIP" >&6; }
2773 else
2774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2775 $as_echo "no" >&6; }
2776 fi
2777
2778
2779 fi
2780 if test -z "$ac_cv_prog_STRIP"; then
2781   ac_ct_STRIP=$STRIP
2782   # Extract the first word of "strip", so it can be a program name with args.
2783 set dummy strip; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2787   $as_echo_n "(cached) " >&6
2788 else
2789   if test -n "$ac_ct_STRIP"; then
2790   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795   IFS=$as_save_IFS
2796   test -z "$as_dir" && as_dir=.
2797     for ac_exec_ext in '' $ac_executable_extensions; do
2798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799     ac_cv_prog_ac_ct_STRIP="strip"
2800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801     break 2
2802   fi
2803 done
2804   done
2805 IFS=$as_save_IFS
2806
2807 fi
2808 fi
2809 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2810 if test -n "$ac_ct_STRIP"; then
2811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2812 $as_echo "$ac_ct_STRIP" >&6; }
2813 else
2814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2816 fi
2817
2818   if test "x$ac_ct_STRIP" = x; then
2819     STRIP=":"
2820   else
2821     case $cross_compiling:$ac_tool_warned in
2822 yes:)
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2825 ac_tool_warned=yes ;;
2826 esac
2827     STRIP=$ac_ct_STRIP
2828   fi
2829 else
2830   STRIP="$ac_cv_prog_STRIP"
2831 fi
2832
2833 fi
2834 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2835
2836 # We need awk for the "check" target.  The system "awk" is bad on
2837 # some platforms.
2838 # Always define AMTAR for backward compatibility.
2839
2840 AMTAR=${AMTAR-"${am_missing_run}tar"}
2841
2842 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2843
2844
2845
2846
2847
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2849 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2850     # Check whether --enable-maintainer-mode was given.
2851 if test "${enable_maintainer_mode+set}" = set; then :
2852   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2853 else
2854   USE_MAINTAINER_MODE=no
2855 fi
2856
2857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2858 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2859    if test $USE_MAINTAINER_MODE = yes; then
2860   MAINTAINER_MODE_TRUE=
2861   MAINTAINER_MODE_FALSE='#'
2862 else
2863   MAINTAINER_MODE_TRUE='#'
2864   MAINTAINER_MODE_FALSE=
2865 fi
2866
2867   MAINT=$MAINTAINER_MODE_TRUE
2868
2869
2870
2871 # Check whether --enable-lfs was given.
2872 if test "${enable_lfs+set}" = set; then :
2873   enableval=$enable_lfs;
2874     if test "x$enableval" = "xyes" ; then
2875       NBD_LFS=1
2876     else
2877       NBD_LFS=0
2878     fi
2879
2880 else
2881   NBD_LFS=1
2882
2883 fi
2884
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Large File Support should be enabled" >&5
2886 $as_echo_n "checking whether Large File Support should be enabled... " >&6; }
2887 if test $NBD_LFS -eq 1; then
2888
2889 $as_echo "#define NBD_LFS 1" >>confdefs.h
2890
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2892 $as_echo "yes" >&6; }
2893 else
2894   $as_echo "#define NBD_LFS 0" >>confdefs.h
2895
2896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2898 fi
2899
2900 # Check whether --enable-syslog was given.
2901 if test "${enable_syslog+set}" = set; then :
2902   enableval=$enable_syslog;
2903     if test "x$enableval" = "xyes" ; then
2904       ISSERVER=1
2905     else
2906       ISSERVER=0
2907     fi
2908
2909 else
2910   ISSERVER=0
2911
2912 fi
2913
2914
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syslog logging is requested" >&5
2916 $as_echo_n "checking whether syslog logging is requested... " >&6; }
2917 if test $ISSERVER -eq 1; then
2918
2919 $as_echo "#define ISSERVER 1" >>confdefs.h
2920
2921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2922 $as_echo "yes" >&6; }
2923 else
2924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2926 fi
2927
2928 # Check whether --enable-debug was given.
2929 if test "${enable_debug+set}" = set; then :
2930   enableval=$enable_debug;
2931     if test "x$enableval" = "xyes"; then
2932       DODBG=1
2933     else
2934       DODBG=0
2935     fi
2936
2937 else
2938   DODBG=0
2939
2940 fi
2941
2942
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a debugging version is requested" >&5
2944 $as_echo_n "checking whether a debugging version is requested... " >&6; }
2945 if test $DODBG -eq 1; then
2946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2947 $as_echo "yes" >&6; }
2948   if test $ISSERVER -eq 1; then
2949     as_fn_error "You requested both syslog logging and a debugging version of the server. Bad idea!" "$LINENO" 5
2950   fi
2951
2952 $as_echo "#define DODBG 1" >>confdefs.h
2953
2954
2955 $as_echo "#define NOFORK 1" >>confdefs.h
2956
2957 else
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2960 fi
2961
2962 # Check whether --enable-sdp was given.
2963 if test "${enable_sdp+set}" = set; then :
2964   enableval=$enable_sdp;
2965     if test "x$enableval" = "xyes"; then
2966
2967 $as_echo "#define WITH_SDP 1" >>confdefs.h
2968
2969     fi
2970
2971
2972 fi
2973
2974
2975 ac_ext=c
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980 if test -n "$ac_tool_prefix"; then
2981   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2982 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if test "${ac_cv_prog_CC+set}" = set; then :
2986   $as_echo_n "(cached) " >&6
2987 else
2988   if test -n "$CC"; then
2989   ac_cv_prog_CC="$CC" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2993 do
2994   IFS=$as_save_IFS
2995   test -z "$as_dir" && as_dir=.
2996     for ac_exec_ext in '' $ac_executable_extensions; do
2997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000     break 2
3001   fi
3002 done
3003   done
3004 IFS=$as_save_IFS
3005
3006 fi
3007 fi
3008 CC=$ac_cv_prog_CC
3009 if test -n "$CC"; then
3010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011 $as_echo "$CC" >&6; }
3012 else
3013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3015 fi
3016
3017
3018 fi
3019 if test -z "$ac_cv_prog_CC"; then
3020   ac_ct_CC=$CC
3021   # Extract the first word of "gcc", so it can be a program name with args.
3022 set dummy gcc; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3026   $as_echo_n "(cached) " >&6
3027 else
3028   if test -n "$ac_ct_CC"; then
3029   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034   IFS=$as_save_IFS
3035   test -z "$as_dir" && as_dir=.
3036     for ac_exec_ext in '' $ac_executable_extensions; do
3037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3038     ac_cv_prog_ac_ct_CC="gcc"
3039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040     break 2
3041   fi
3042 done
3043   done
3044 IFS=$as_save_IFS
3045
3046 fi
3047 fi
3048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3049 if test -n "$ac_ct_CC"; then
3050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3051 $as_echo "$ac_ct_CC" >&6; }
3052 else
3053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055 fi
3056
3057   if test "x$ac_ct_CC" = x; then
3058     CC=""
3059   else
3060     case $cross_compiling:$ac_tool_warned in
3061 yes:)
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3064 ac_tool_warned=yes ;;
3065 esac
3066     CC=$ac_ct_CC
3067   fi
3068 else
3069   CC="$ac_cv_prog_CC"
3070 fi
3071
3072 if test -z "$CC"; then
3073           if test -n "$ac_tool_prefix"; then
3074     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3075 set dummy ${ac_tool_prefix}cc; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_CC+set}" = set; then :
3079   $as_echo_n "(cached) " >&6
3080 else
3081   if test -n "$CC"; then
3082   ac_cv_prog_CC="$CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087   IFS=$as_save_IFS
3088   test -z "$as_dir" && as_dir=.
3089     for ac_exec_ext in '' $ac_executable_extensions; do
3090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091     ac_cv_prog_CC="${ac_tool_prefix}cc"
3092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093     break 2
3094   fi
3095 done
3096   done
3097 IFS=$as_save_IFS
3098
3099 fi
3100 fi
3101 CC=$ac_cv_prog_CC
3102 if test -n "$CC"; then
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3105 else
3106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3108 fi
3109
3110
3111   fi
3112 fi
3113 if test -z "$CC"; then
3114   # Extract the first word of "cc", so it can be a program name with args.
3115 set dummy cc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if test "${ac_cv_prog_CC+set}" = set; then :
3119   $as_echo_n "(cached) " >&6
3120 else
3121   if test -n "$CC"; then
3122   ac_cv_prog_CC="$CC" # Let the user override the test.
3123 else
3124   ac_prog_rejected=no
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128   IFS=$as_save_IFS
3129   test -z "$as_dir" && as_dir=.
3130     for ac_exec_ext in '' $ac_executable_extensions; do
3131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3133        ac_prog_rejected=yes
3134        continue
3135      fi
3136     ac_cv_prog_CC="cc"
3137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138     break 2
3139   fi
3140 done
3141   done
3142 IFS=$as_save_IFS
3143
3144 if test $ac_prog_rejected = yes; then
3145   # We found a bogon in the path, so make sure we never use it.
3146   set dummy $ac_cv_prog_CC
3147   shift
3148   if test $# != 0; then
3149     # We chose a different compiler from the bogus one.
3150     # However, it has the same basename, so the bogon will be chosen
3151     # first if we set CC to just the basename; use the full file name.
3152     shift
3153     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3154   fi
3155 fi
3156 fi
3157 fi
3158 CC=$ac_cv_prog_CC
3159 if test -n "$CC"; then
3160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3162 else
3163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 fi
3166
3167
3168 fi
3169 if test -z "$CC"; then
3170   if test -n "$ac_tool_prefix"; then
3171   for ac_prog in cl.exe
3172   do
3173     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if test "${ac_cv_prog_CC+set}" = set; then :
3178   $as_echo_n "(cached) " >&6
3179 else
3180   if test -n "$CC"; then
3181   ac_cv_prog_CC="$CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188     for ac_exec_ext in '' $ac_executable_extensions; do
3189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3190     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192     break 2
3193   fi
3194 done
3195   done
3196 IFS=$as_save_IFS
3197
3198 fi
3199 fi
3200 CC=$ac_cv_prog_CC
3201 if test -n "$CC"; then
3202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3203 $as_echo "$CC" >&6; }
3204 else
3205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 fi
3208
3209
3210     test -n "$CC" && break
3211   done
3212 fi
3213 if test -z "$CC"; then
3214   ac_ct_CC=$CC
3215   for ac_prog in cl.exe
3216 do
3217   # Extract the first word of "$ac_prog", so it can be a program name with args.
3218 set dummy $ac_prog; ac_word=$2
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3222   $as_echo_n "(cached) " >&6
3223 else
3224   if test -n "$ac_ct_CC"; then
3225   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230   IFS=$as_save_IFS
3231   test -z "$as_dir" && as_dir=.
3232     for ac_exec_ext in '' $ac_executable_extensions; do
3233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3234     ac_cv_prog_ac_ct_CC="$ac_prog"
3235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236     break 2
3237   fi
3238 done
3239   done
3240 IFS=$as_save_IFS
3241
3242 fi
3243 fi
3244 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3245 if test -n "$ac_ct_CC"; then
3246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3247 $as_echo "$ac_ct_CC" >&6; }
3248 else
3249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3251 fi
3252
3253
3254   test -n "$ac_ct_CC" && break
3255 done
3256
3257   if test "x$ac_ct_CC" = x; then
3258     CC=""
3259   else
3260     case $cross_compiling:$ac_tool_warned in
3261 yes:)
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3264 ac_tool_warned=yes ;;
3265 esac
3266     CC=$ac_ct_CC
3267   fi
3268 fi
3269
3270 fi
3271
3272
3273 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 as_fn_error "no acceptable C compiler found in \$PATH
3276 See \`config.log' for more details." "$LINENO" 5; }
3277
3278 # Provide some information about the compiler.
3279 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3280 set X $ac_compile
3281 ac_compiler=$2
3282 for ac_option in --version -v -V -qversion; do
3283   { { ac_try="$ac_compiler $ac_option >&5"
3284 case "(($ac_try" in
3285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286   *) ac_try_echo=$ac_try;;
3287 esac
3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289 $as_echo "$ac_try_echo"; } >&5
3290   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3291   ac_status=$?
3292   if test -s conftest.err; then
3293     sed '10a\
3294 ... rest of stderr output deleted ...
3295          10q' conftest.err >conftest.er1
3296     cat conftest.er1 >&5
3297     rm -f conftest.er1 conftest.err
3298   fi
3299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300   test $ac_status = 0; }
3301 done
3302
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h.  */
3305 #include <stdio.h>
3306 int
3307 main ()
3308 {
3309 FILE *f = fopen ("conftest.out", "w");
3310  return ferror (f) || fclose (f) != 0;
3311
3312   ;
3313   return 0;
3314 }
3315 _ACEOF
3316 ac_clean_files_save=$ac_clean_files
3317 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3318 # Try to create an executable without -o first, disregard a.out.
3319 # It will help us diagnose broken compilers, and finding out an intuition
3320 # of exeext.
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3322 $as_echo_n "checking for C compiler default output file name... " >&6; }
3323 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3324
3325 # The possible output files:
3326 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3327
3328 ac_rmfiles=
3329 for ac_file in $ac_files
3330 do
3331   case $ac_file in
3332     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3333     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3334   esac
3335 done
3336 rm -f $ac_rmfiles
3337
3338 if { { ac_try="$ac_link_default"
3339 case "(($ac_try" in
3340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341   *) ac_try_echo=$ac_try;;
3342 esac
3343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344 $as_echo "$ac_try_echo"; } >&5
3345   (eval "$ac_link_default") 2>&5
3346   ac_status=$?
3347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348   test $ac_status = 0; }; then :
3349   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3350 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3351 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3352 # so that the user can short-circuit this test for compilers unknown to
3353 # Autoconf.
3354 for ac_file in $ac_files ''
3355 do
3356   test -f "$ac_file" || continue
3357   case $ac_file in
3358     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3359         ;;
3360     [ab].out )
3361         # We found the default executable, but exeext='' is most
3362         # certainly right.
3363         break;;
3364     *.* )
3365         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3366         then :; else
3367            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3368         fi
3369         # We set ac_cv_exeext here because the later test for it is not
3370         # safe: cross compilers may not add the suffix if given an `-o'
3371         # argument, so we may need to know it at that point already.
3372         # Even if this section looks crufty: it has the advantage of
3373         # actually working.
3374         break;;
3375     * )
3376         break;;
3377   esac
3378 done
3379 test "$ac_cv_exeext" = no && ac_cv_exeext=
3380
3381 else
3382   ac_file=''
3383 fi
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3385 $as_echo "$ac_file" >&6; }
3386 if test -z "$ac_file"; then :
3387   $as_echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3389
3390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 { as_fn_set_status 77
3393 as_fn_error "C compiler cannot create executables
3394 See \`config.log' for more details." "$LINENO" 5; }; }
3395 fi
3396 ac_exeext=$ac_cv_exeext
3397
3398 # Check that the compiler produces executables we can run.  If not, either
3399 # the compiler is broken, or we cross compile.
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3401 $as_echo_n "checking whether the C compiler works... " >&6; }
3402 # If not cross compiling, check that we can run a simple program.
3403 if test "$cross_compiling" != yes; then
3404   if { ac_try='./$ac_file'
3405   { { case "(($ac_try" in
3406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407   *) ac_try_echo=$ac_try;;
3408 esac
3409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410 $as_echo "$ac_try_echo"; } >&5
3411   (eval "$ac_try") 2>&5
3412   ac_status=$?
3413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414   test $ac_status = 0; }; }; then
3415     cross_compiling=no
3416   else
3417     if test "$cross_compiling" = maybe; then
3418         cross_compiling=yes
3419     else
3420         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422 as_fn_error "cannot run C compiled programs.
3423 If you meant to cross compile, use \`--host'.
3424 See \`config.log' for more details." "$LINENO" 5; }
3425     fi
3426   fi
3427 fi
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3429 $as_echo "yes" >&6; }
3430
3431 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3432 ac_clean_files=$ac_clean_files_save
3433 # Check that the compiler produces executables we can run.  If not, either
3434 # the compiler is broken, or we cross compile.
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3436 $as_echo_n "checking whether we are cross compiling... " >&6; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3438 $as_echo "$cross_compiling" >&6; }
3439
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3441 $as_echo_n "checking for suffix of executables... " >&6; }
3442 if { { ac_try="$ac_link"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449   (eval "$ac_link") 2>&5
3450   ac_status=$?
3451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452   test $ac_status = 0; }; then :
3453   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3454 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3455 # work properly (i.e., refer to `conftest.exe'), while it won't with
3456 # `rm'.
3457 for ac_file in conftest.exe conftest conftest.*; do
3458   test -f "$ac_file" || continue
3459   case $ac_file in
3460     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3461     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3462           break;;
3463     * ) break;;
3464   esac
3465 done
3466 else
3467   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469 as_fn_error "cannot compute suffix of executables: cannot compile and link
3470 See \`config.log' for more details." "$LINENO" 5; }
3471 fi
3472 rm -f conftest$ac_cv_exeext
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3474 $as_echo "$ac_cv_exeext" >&6; }
3475
3476 rm -f conftest.$ac_ext
3477 EXEEXT=$ac_cv_exeext
3478 ac_exeext=$EXEEXT
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3480 $as_echo_n "checking for suffix of object files... " >&6; }
3481 if test "${ac_cv_objext+set}" = set; then :
3482   $as_echo_n "(cached) " >&6
3483 else
3484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h.  */
3486
3487 int
3488 main ()
3489 {
3490
3491   ;
3492   return 0;
3493 }
3494 _ACEOF
3495 rm -f conftest.o conftest.obj
3496 if { { ac_try="$ac_compile"
3497 case "(($ac_try" in
3498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499   *) ac_try_echo=$ac_try;;
3500 esac
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503   (eval "$ac_compile") 2>&5
3504   ac_status=$?
3505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506   test $ac_status = 0; }; then :
3507   for ac_file in conftest.o conftest.obj conftest.*; do
3508   test -f "$ac_file" || continue;
3509   case $ac_file in
3510     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3511     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3512        break;;
3513   esac
3514 done
3515 else
3516   $as_echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521 as_fn_error "cannot compute suffix of object files: cannot compile
3522 See \`config.log' for more details." "$LINENO" 5; }
3523 fi
3524 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3527 $as_echo "$ac_cv_objext" >&6; }
3528 OBJEXT=$ac_cv_objext
3529 ac_objext=$OBJEXT
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3531 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3532 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3533   $as_echo_n "(cached) " >&6
3534 else
3535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h.  */
3537
3538 int
3539 main ()
3540 {
3541 #ifndef __GNUC__
3542        choke me
3543 #endif
3544
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 if ac_fn_c_try_compile "$LINENO"; then :
3550   ac_compiler_gnu=yes
3551 else
3552   ac_compiler_gnu=no
3553 fi
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3556
3557 fi
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3559 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3560 if test $ac_compiler_gnu = yes; then
3561   GCC=yes
3562 else
3563   GCC=
3564 fi
3565 ac_test_CFLAGS=${CFLAGS+set}
3566 ac_save_CFLAGS=$CFLAGS
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3568 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3569 if test "${ac_cv_prog_cc_g+set}" = set; then :
3570   $as_echo_n "(cached) " >&6
3571 else
3572   ac_save_c_werror_flag=$ac_c_werror_flag
3573    ac_c_werror_flag=yes
3574    ac_cv_prog_cc_g=no
3575    CFLAGS="-g"
3576    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h.  */
3578
3579 int
3580 main ()
3581 {
3582
3583   ;
3584   return 0;
3585 }
3586 _ACEOF
3587 if ac_fn_c_try_compile "$LINENO"; then :
3588   ac_cv_prog_cc_g=yes
3589 else
3590   CFLAGS=""
3591       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h.  */
3593
3594 int
3595 main ()
3596 {
3597
3598   ;
3599   return 0;
3600 }
3601 _ACEOF
3602 if ac_fn_c_try_compile "$LINENO"; then :
3603
3604 else
3605   ac_c_werror_flag=$ac_save_c_werror_flag
3606          CFLAGS="-g"
3607          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h.  */
3609
3610 int
3611 main ()
3612 {
3613
3614   ;
3615   return 0;
3616 }
3617 _ACEOF
3618 if ac_fn_c_try_compile "$LINENO"; then :
3619   ac_cv_prog_cc_g=yes
3620 fi
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622 fi
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 fi
3625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626    ac_c_werror_flag=$ac_save_c_werror_flag
3627 fi
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3629 $as_echo "$ac_cv_prog_cc_g" >&6; }
3630 if test "$ac_test_CFLAGS" = set; then
3631   CFLAGS=$ac_save_CFLAGS
3632 elif test $ac_cv_prog_cc_g = yes; then
3633   if test "$GCC" = yes; then
3634     CFLAGS="-g -O2"
3635   else
3636     CFLAGS="-g"
3637   fi
3638 else
3639   if test "$GCC" = yes; then
3640     CFLAGS="-O2"
3641   else
3642     CFLAGS=
3643   fi
3644 fi
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3646 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3647 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3648   $as_echo_n "(cached) " >&6
3649 else
3650   ac_cv_prog_cc_c89=no
3651 ac_save_CC=$CC
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h.  */
3654 #include <stdarg.h>
3655 #include <stdio.h>
3656 #include <sys/types.h>
3657 #include <sys/stat.h>
3658 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3659 struct buf { int x; };
3660 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3661 static char *e (p, i)
3662      char **p;
3663      int i;
3664 {
3665   return p[i];
3666 }
3667 static char *f (char * (*g) (char **, int), char **p, ...)
3668 {
3669   char *s;
3670   va_list v;
3671   va_start (v,p);
3672   s = g (p, va_arg (v,int));
3673   va_end (v);
3674   return s;
3675 }
3676
3677 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3678    function prototypes and stuff, but not '\xHH' hex character constants.
3679    These don't provoke an error unfortunately, instead are silently treated
3680    as 'x'.  The following induces an error, until -std is added to get
3681    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3682    array size at least.  It's necessary to write '\x00'==0 to get something
3683    that's true only with -std.  */
3684 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3685
3686 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3687    inside strings and character constants.  */
3688 #define FOO(x) 'x'
3689 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3690
3691 int test (int i, double x);
3692 struct s1 {int (*f) (int a);};
3693 struct s2 {int (*f) (double a);};
3694 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3695 int argc;
3696 char **argv;
3697 int
3698 main ()
3699 {
3700 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3701   ;
3702   return 0;
3703 }
3704 _ACEOF
3705 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3706         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3707 do
3708   CC="$ac_save_CC $ac_arg"
3709   if ac_fn_c_try_compile "$LINENO"; then :
3710   ac_cv_prog_cc_c89=$ac_arg
3711 fi
3712 rm -f core conftest.err conftest.$ac_objext
3713   test "x$ac_cv_prog_cc_c89" != "xno" && break
3714 done
3715 rm -f conftest.$ac_ext
3716 CC=$ac_save_CC
3717
3718 fi
3719 # AC_CACHE_VAL
3720 case "x$ac_cv_prog_cc_c89" in
3721   x)
3722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3723 $as_echo "none needed" >&6; } ;;
3724   xno)
3725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3726 $as_echo "unsupported" >&6; } ;;
3727   *)
3728     CC="$CC $ac_cv_prog_cc_c89"
3729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3730 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3731 esac
3732 if test "x$ac_cv_prog_cc_c89" != xno; then :
3733
3734 fi
3735
3736 ac_ext=c
3737 ac_cpp='$CPP $CPPFLAGS'
3738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741 DEPDIR="${am__leading_dot}deps"
3742
3743 ac_config_commands="$ac_config_commands depfiles"
3744
3745
3746 am_make=${MAKE-make}
3747 cat > confinc << 'END'
3748 am__doit:
3749         @echo done
3750 .PHONY: am__doit
3751 END
3752 # If we don't find an include directive, just comment out the code.
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3754 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3755 am__include="#"
3756 am__quote=
3757 _am_result=none
3758 # First try GNU make style include.
3759 echo "include confinc" > confmf
3760 # We grep out `Entering directory' and `Leaving directory'
3761 # messages which can occur if `w' ends up in MAKEFLAGS.
3762 # In particular we don't look at `^make:' because GNU make might
3763 # be invoked under some other name (usually "gmake"), in which
3764 # case it prints its new name instead of `make'.
3765 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3766    am__include=include
3767    am__quote=
3768    _am_result=GNU
3769 fi
3770 # Now try BSD make style include.
3771 if test "$am__include" = "#"; then
3772    echo '.include "confinc"' > confmf
3773    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3774       am__include=.include
3775       am__quote="\""
3776       _am_result=BSD
3777    fi
3778 fi
3779
3780
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3782 $as_echo "$_am_result" >&6; }
3783 rm -f confinc confmf
3784
3785 # Check whether --enable-dependency-tracking was given.
3786 if test "${enable_dependency_tracking+set}" = set; then :
3787   enableval=$enable_dependency_tracking;
3788 fi
3789
3790 if test "x$enable_dependency_tracking" != xno; then
3791   am_depcomp="$ac_aux_dir/depcomp"
3792   AMDEPBACKSLASH='\'
3793 fi
3794  if test "x$enable_dependency_tracking" != xno; then
3795   AMDEP_TRUE=
3796   AMDEP_FALSE='#'
3797 else
3798   AMDEP_TRUE='#'
3799   AMDEP_FALSE=
3800 fi
3801
3802
3803
3804 depcc="$CC"   am_compiler_list=
3805
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3807 $as_echo_n "checking dependency style of $depcc... " >&6; }
3808 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3809   $as_echo_n "(cached) " >&6
3810 else
3811   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3812   # We make a subdir and do the tests there.  Otherwise we can end up
3813   # making bogus files that we don't know about and never remove.  For
3814   # instance it was reported that on HP-UX the gcc test will end up
3815   # making a dummy file named `D' -- because `-MD' means `put the output
3816   # in D'.
3817   mkdir conftest.dir
3818   # Copy depcomp to subdir because otherwise we won't find it if we're
3819   # using a relative directory.
3820   cp "$am_depcomp" conftest.dir
3821   cd conftest.dir
3822   # We will build objects and dependencies in a subdirectory because
3823   # it helps to detect inapplicable dependency modes.  For instance
3824   # both Tru64's cc and ICC support -MD to output dependencies as a
3825   # side effect of compilation, but ICC will put the dependencies in
3826   # the current directory while Tru64 will put them in the object
3827   # directory.
3828   mkdir sub
3829
3830   am_cv_CC_dependencies_compiler_type=none
3831   if test "$am_compiler_list" = ""; then
3832      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3833   fi
3834   for depmode in $am_compiler_list; do
3835     # Setup a source with many dependencies, because some compilers
3836     # like to wrap large dependency lists on column 80 (with \), and
3837     # we should not choose a depcomp mode which is confused by this.
3838     #
3839     # We need to recreate these files for each test, as the compiler may
3840     # overwrite some of them when testing with obscure command lines.
3841     # This happens at least with the AIX C compiler.
3842     : > sub/conftest.c
3843     for i in 1 2 3 4 5 6; do
3844       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3845       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3846       # Solaris 8's {/usr,}/bin/sh.
3847       touch sub/conftst$i.h
3848     done
3849     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3850
3851     case $depmode in
3852     nosideeffect)
3853       # after this tag, mechanisms are not by side-effect, so they'll
3854       # only be used when explicitly requested
3855       if test "x$enable_dependency_tracking" = xyes; then
3856         continue
3857       else
3858         break
3859       fi
3860       ;;
3861     none) break ;;
3862     esac
3863     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3864     # mode.  It turns out that the SunPro C++ compiler does not properly
3865     # handle `-M -o', and we need to detect this.
3866     if depmode=$depmode \
3867        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3868        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3869        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3870          >/dev/null 2>conftest.err &&
3871        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3872        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3873        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3874        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3875       # icc doesn't choke on unknown options, it will just issue warnings
3876       # or remarks (even with -Werror).  So we grep stderr for any message
3877       # that says an option was ignored or not supported.
3878       # When given -MP, icc 7.0 and 7.1 complain thusly:
3879       #   icc: Command line warning: ignoring option '-M'; no argument required
3880       # The diagnosis changed in icc 8.0:
3881       #   icc: Command line remark: option '-MP' not supported
3882       if (grep 'ignoring option' conftest.err ||
3883           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3884         am_cv_CC_dependencies_compiler_type=$depmode
3885         break
3886       fi
3887     fi
3888   done
3889
3890   cd ..
3891   rm -rf conftest.dir
3892 else
3893   am_cv_CC_dependencies_compiler_type=none
3894 fi
3895
3896 fi
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3898 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3899 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3900
3901  if
3902   test "x$enable_dependency_tracking" != xno \
3903   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3904   am__fastdepCC_TRUE=
3905   am__fastdepCC_FALSE='#'
3906 else
3907   am__fastdepCC_TRUE='#'
3908   am__fastdepCC_FALSE=
3909 fi
3910
3911
3912 ac_ext=c
3913 ac_cpp='$CPP $CPPFLAGS'
3914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3918 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3919 # On Suns, sometimes $CPP names a directory.
3920 if test -n "$CPP" && test -d "$CPP"; then
3921   CPP=
3922 fi
3923 if test -z "$CPP"; then
3924   if test "${ac_cv_prog_CPP+set}" = set; then :
3925   $as_echo_n "(cached) " >&6
3926 else
3927       # Double quotes because CPP needs to be expanded
3928     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3929     do
3930       ac_preproc_ok=false
3931 for ac_c_preproc_warn_flag in '' yes
3932 do
3933   # Use a header file that comes with gcc, so configuring glibc
3934   # with a fresh cross-compiler works.
3935   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3936   # <limits.h> exists even on freestanding compilers.
3937   # On the NeXT, cc -E runs the code through the compiler's parser,
3938   # not just through cpp. "Syntax error" is here to catch this case.
3939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h.  */
3941 #ifdef __STDC__
3942 # include <limits.h>
3943 #else
3944 # include <assert.h>
3945 #endif
3946                      Syntax error
3947 _ACEOF
3948 if ac_fn_c_try_cpp "$LINENO"; then :
3949
3950 else
3951   # Broken: fails on valid input.
3952 continue
3953 fi
3954 rm -f conftest.err conftest.$ac_ext
3955
3956   # OK, works on sane cases.  Now check whether nonexistent headers
3957   # can be detected and how.
3958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h.  */
3960 #include <ac_nonexistent.h>
3961 _ACEOF
3962 if ac_fn_c_try_cpp "$LINENO"; then :
3963   # Broken: success on invalid input.
3964 continue
3965 else
3966   # Passes both tests.
3967 ac_preproc_ok=:
3968 break
3969 fi
3970 rm -f conftest.err conftest.$ac_ext
3971
3972 done
3973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3974 rm -f conftest.err conftest.$ac_ext
3975 if $ac_preproc_ok; then :
3976   break
3977 fi
3978
3979     done
3980     ac_cv_prog_CPP=$CPP
3981
3982 fi
3983   CPP=$ac_cv_prog_CPP
3984 else
3985   ac_cv_prog_CPP=$CPP
3986 fi
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3988 $as_echo "$CPP" >&6; }
3989 ac_preproc_ok=false
3990 for ac_c_preproc_warn_flag in '' yes
3991 do
3992   # Use a header file that comes with gcc, so configuring glibc
3993   # with a fresh cross-compiler works.
3994   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3995   # <limits.h> exists even on freestanding compilers.
3996   # On the NeXT, cc -E runs the code through the compiler's parser,
3997   # not just through cpp. "Syntax error" is here to catch this case.
3998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h.  */
4000 #ifdef __STDC__
4001 # include <limits.h>
4002 #else
4003 # include <assert.h>
4004 #endif
4005                      Syntax error
4006 _ACEOF
4007 if ac_fn_c_try_cpp "$LINENO"; then :
4008
4009 else
4010   # Broken: fails on valid input.
4011 continue
4012 fi
4013 rm -f conftest.err conftest.$ac_ext
4014
4015   # OK, works on sane cases.  Now check whether nonexistent headers
4016   # can be detected and how.
4017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h.  */
4019 #include <ac_nonexistent.h>
4020 _ACEOF
4021 if ac_fn_c_try_cpp "$LINENO"; then :
4022   # Broken: success on invalid input.
4023 continue
4024 else
4025   # Passes both tests.
4026 ac_preproc_ok=:
4027 break
4028 fi
4029 rm -f conftest.err conftest.$ac_ext
4030
4031 done
4032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4033 rm -f conftest.err conftest.$ac_ext
4034 if $ac_preproc_ok; then :
4035
4036 else
4037   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4040 See \`config.log' for more details." "$LINENO" 5; }
4041 fi
4042
4043 ac_ext=c
4044 ac_cpp='$CPP $CPPFLAGS'
4045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4048
4049
4050 # Make sure we can run config.sub.
4051 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4052   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4053
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4055 $as_echo_n "checking build system type... " >&6; }
4056 if test "${ac_cv_build+set}" = set; then :
4057   $as_echo_n "(cached) " >&6
4058 else
4059   ac_build_alias=$build_alias
4060 test "x$ac_build_alias" = x &&
4061   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4062 test "x$ac_build_alias" = x &&
4063   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4064 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4065   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4066
4067 fi
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4069 $as_echo "$ac_cv_build" >&6; }
4070 case $ac_cv_build in
4071 *-*-*) ;;
4072 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4073 esac
4074 build=$ac_cv_build
4075 ac_save_IFS=$IFS; IFS='-'
4076 set x $ac_cv_build
4077 shift
4078 build_cpu=$1
4079 build_vendor=$2
4080 shift; shift
4081 # Remember, the first character of IFS is used to create $*,
4082 # except with old shells:
4083 build_os=$*
4084 IFS=$ac_save_IFS
4085 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4086
4087
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4089 $as_echo_n "checking host system type... " >&6; }
4090 if test "${ac_cv_host+set}" = set; then :
4091   $as_echo_n "(cached) " >&6
4092 else
4093   if test "x$host_alias" = x; then
4094   ac_cv_host=$ac_cv_build
4095 else
4096   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4097     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4098 fi
4099
4100 fi
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4102 $as_echo "$ac_cv_host" >&6; }
4103 case $ac_cv_host in
4104 *-*-*) ;;
4105 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4106 esac
4107 host=$ac_cv_host
4108 ac_save_IFS=$IFS; IFS='-'
4109 set x $ac_cv_host
4110 shift
4111 host_cpu=$1
4112 host_vendor=$2
4113 shift; shift
4114 # Remember, the first character of IFS is used to create $*,
4115 # except with old shells:
4116 host_os=$*
4117 IFS=$ac_save_IFS
4118 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4119
4120
4121
4122
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4124 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4125 if test "${ac_cv_path_GREP+set}" = set; then :
4126   $as_echo_n "(cached) " >&6
4127 else
4128   if test -z "$GREP"; then
4129   ac_path_GREP_found=false
4130   # Loop through the user's path and test for each of PROGNAME-LIST
4131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4133 do
4134   IFS=$as_save_IFS
4135   test -z "$as_dir" && as_dir=.
4136     for ac_prog in grep ggrep; do
4137     for ac_exec_ext in '' $ac_executable_extensions; do
4138       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4139       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4140 # Check for GNU ac_path_GREP and select it if it is found.
4141   # Check for GNU $ac_path_GREP
4142 case `"$ac_path_GREP" --version 2>&1` in
4143 *GNU*)
4144   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4145 *)
4146   ac_count=0
4147   $as_echo_n 0123456789 >"conftest.in"
4148   while :
4149   do
4150     cat "conftest.in" "conftest.in" >"conftest.tmp"
4151     mv "conftest.tmp" "conftest.in"
4152     cp "conftest.in" "conftest.nl"
4153     $as_echo 'GREP' >> "conftest.nl"
4154     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4155     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4156     as_fn_arith $ac_count + 1 && ac_count=$as_val
4157     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4158       # Best one so far, save it but keep looking for a better one
4159       ac_cv_path_GREP="$ac_path_GREP"
4160       ac_path_GREP_max=$ac_count
4161     fi
4162     # 10*(2^10) chars as input seems more than enough
4163     test $ac_count -gt 10 && break
4164   done
4165   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4166 esac
4167
4168       $ac_path_GREP_found && break 3
4169     done
4170   done
4171   done
4172 IFS=$as_save_IFS
4173   if test -z "$ac_cv_path_GREP"; then
4174     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4175   fi
4176 else
4177   ac_cv_path_GREP=$GREP
4178 fi
4179
4180 fi
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4182 $as_echo "$ac_cv_path_GREP" >&6; }
4183  GREP="$ac_cv_path_GREP"
4184
4185
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4187 $as_echo_n "checking for egrep... " >&6; }
4188 if test "${ac_cv_path_EGREP+set}" = set; then :
4189   $as_echo_n "(cached) " >&6
4190 else
4191   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4192    then ac_cv_path_EGREP="$GREP -E"
4193    else
4194      if test -z "$EGREP"; then
4195   ac_path_EGREP_found=false
4196   # Loop through the user's path and test for each of PROGNAME-LIST
4197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4199 do
4200   IFS=$as_save_IFS
4201   test -z "$as_dir" && as_dir=.
4202     for ac_prog in egrep; do
4203     for ac_exec_ext in '' $ac_executable_extensions; do
4204       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4205       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4206 # Check for GNU ac_path_EGREP and select it if it is found.
4207   # Check for GNU $ac_path_EGREP
4208 case `"$ac_path_EGREP" --version 2>&1` in
4209 *GNU*)
4210   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4211 *)
4212   ac_count=0
4213   $as_echo_n 0123456789 >"conftest.in"
4214   while :
4215   do
4216     cat "conftest.in" "conftest.in" >"conftest.tmp"
4217     mv "conftest.tmp" "conftest.in"
4218     cp "conftest.in" "conftest.nl"
4219     $as_echo 'EGREP' >> "conftest.nl"
4220     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4221     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4222     as_fn_arith $ac_count + 1 && ac_count=$as_val
4223     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4224       # Best one so far, save it but keep looking for a better one
4225       ac_cv_path_EGREP="$ac_path_EGREP"
4226       ac_path_EGREP_max=$ac_count
4227     fi
4228     # 10*(2^10) chars as input seems more than enough
4229     test $ac_count -gt 10 && break
4230   done
4231   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4232 esac
4233
4234       $ac_path_EGREP_found && break 3
4235     done
4236   done
4237   done
4238 IFS=$as_save_IFS
4239   if test -z "$ac_cv_path_EGREP"; then
4240     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4241   fi
4242 else
4243   ac_cv_path_EGREP=$EGREP
4244 fi
4245
4246    fi
4247 fi
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4249 $as_echo "$ac_cv_path_EGREP" >&6; }
4250  EGREP="$ac_cv_path_EGREP"
4251
4252
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4254 $as_echo_n "checking for ANSI C header files... " >&6; }
4255 if test "${ac_cv_header_stdc+set}" = set; then :
4256   $as_echo_n "(cached) " >&6
4257 else
4258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h.  */
4260 #include <stdlib.h>
4261 #include <stdarg.h>
4262 #include <string.h>
4263 #include <float.h>
4264
4265 int
4266 main ()
4267 {
4268
4269   ;
4270   return 0;
4271 }
4272 _ACEOF
4273 if ac_fn_c_try_compile "$LINENO"; then :
4274   ac_cv_header_stdc=yes
4275 else
4276   ac_cv_header_stdc=no
4277 fi
4278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279
4280 if test $ac_cv_header_stdc = yes; then
4281   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h.  */
4284 #include <string.h>
4285
4286 _ACEOF
4287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4288   $EGREP "memchr" >/dev/null 2>&1; then :
4289
4290 else
4291   ac_cv_header_stdc=no
4292 fi
4293 rm -f conftest*
4294
4295 fi
4296
4297 if test $ac_cv_header_stdc = yes; then
4298   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h.  */
4301 #include <stdlib.h>
4302
4303 _ACEOF
4304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4305   $EGREP "free" >/dev/null 2>&1; then :
4306
4307 else
4308   ac_cv_header_stdc=no
4309 fi
4310 rm -f conftest*
4311
4312 fi
4313
4314 if test $ac_cv_header_stdc = yes; then
4315   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4316   if test "$cross_compiling" = yes; then :
4317   :
4318 else
4319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h.  */
4321 #include <ctype.h>
4322 #include <stdlib.h>
4323 #if ((' ' & 0x0FF) == 0x020)
4324 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4325 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4326 #else
4327 # define ISLOWER(c) \
4328                    (('a' <= (c) && (c) <= 'i') \
4329                      || ('j' <= (c) && (c) <= 'r') \
4330                      || ('s' <= (c) && (c) <= 'z'))
4331 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4332 #endif
4333
4334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4335 int
4336 main ()
4337 {
4338   int i;
4339   for (i = 0; i < 256; i++)
4340     if (XOR (islower (i), ISLOWER (i))
4341         || toupper (i) != TOUPPER (i))
4342       return 2;
4343   return 0;
4344 }
4345 _ACEOF
4346 if ac_fn_c_try_run "$LINENO"; then :
4347
4348 else
4349   ac_cv_header_stdc=no
4350 fi
4351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4352   conftest.$ac_objext conftest.beam conftest.$ac_ext
4353 fi
4354
4355 fi
4356 fi
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4358 $as_echo "$ac_cv_header_stdc" >&6; }
4359 if test $ac_cv_header_stdc = yes; then
4360
4361 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4362
4363 fi
4364
4365 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4366 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4367                   inttypes.h stdint.h unistd.h
4368 do :
4369   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4370 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4371 "
4372 eval as_val=\$$as_ac_Header
4373    if test "x$as_val" = x""yes; then :
4374   cat >>confdefs.h <<_ACEOF
4375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4376 _ACEOF
4377
4378 fi
4379
4380 done
4381
4382
4383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4384 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4385 if test "${ac_cv_c_bigendian+set}" = set; then :
4386   $as_echo_n "(cached) " >&6
4387 else
4388   ac_cv_c_bigendian=unknown
4389     # See if we're dealing with a universal compiler.
4390     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h.  */
4392 #ifndef __APPLE_CC__
4393                not a universal capable compiler
4394              #endif
4395              typedef int dummy;
4396
4397 _ACEOF
4398 if ac_fn_c_try_compile "$LINENO"; then :
4399
4400         # Check for potential -arch flags.  It is not universal unless
4401         # there are at least two -arch flags with different values.
4402         ac_arch=
4403         ac_prev=
4404         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4405          if test -n "$ac_prev"; then
4406            case $ac_word in
4407              i?86 | x86_64 | ppc | ppc64)
4408                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4409                  ac_arch=$ac_word
4410                else
4411                  ac_cv_c_bigendian=universal
4412                  break
4413                fi
4414                ;;
4415            esac
4416            ac_prev=
4417          elif test "x$ac_word" = "x-arch"; then
4418            ac_prev=arch
4419          fi
4420        done
4421 fi
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423     if test $ac_cv_c_bigendian = unknown; then
4424       # See if sys/param.h defines the BYTE_ORDER macro.
4425       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h.  */
4427 #include <sys/types.h>
4428              #include <sys/param.h>
4429
4430 int
4431 main ()
4432 {
4433 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4434                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4435                      && LITTLE_ENDIAN)
4436               bogus endian macros
4437              #endif
4438
4439   ;
4440   return 0;
4441 }
4442 _ACEOF
4443 if ac_fn_c_try_compile "$LINENO"; then :
4444   # It does; now see whether it defined to BIG_ENDIAN or not.
4445          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h.  */
4447 #include <sys/types.h>
4448                 #include <sys/param.h>
4449
4450 int
4451 main ()
4452 {
4453 #if BYTE_ORDER != BIG_ENDIAN
4454                  not big endian
4455                 #endif
4456
4457   ;
4458   return 0;
4459 }
4460 _ACEOF
4461 if ac_fn_c_try_compile "$LINENO"; then :
4462   ac_cv_c_bigendian=yes
4463 else
4464   ac_cv_c_bigendian=no
4465 fi
4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 fi
4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469     fi
4470     if test $ac_cv_c_bigendian = unknown; then
4471       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4472       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h.  */
4474 #include <limits.h>
4475
4476 int
4477 main ()
4478 {
4479 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4480               bogus endian macros
4481              #endif
4482
4483   ;
4484   return 0;
4485 }
4486 _ACEOF
4487 if ac_fn_c_try_compile "$LINENO"; then :
4488   # It does; now see whether it defined to _BIG_ENDIAN or not.
4489          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h.  */
4491 #include <limits.h>
4492
4493 int
4494 main ()
4495 {
4496 #ifndef _BIG_ENDIAN
4497                  not big endian
4498                 #endif
4499
4500   ;
4501   return 0;
4502 }
4503 _ACEOF
4504 if ac_fn_c_try_compile "$LINENO"; then :
4505   ac_cv_c_bigendian=yes
4506 else
4507   ac_cv_c_bigendian=no
4508 fi
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 fi
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512     fi
4513     if test $ac_cv_c_bigendian = unknown; then
4514       # Compile a test program.
4515       if test "$cross_compiling" = yes; then :
4516   # Try to guess by grepping values from an object file.
4517          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h.  */
4519 short int ascii_mm[] =
4520                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4521                 short int ascii_ii[] =
4522                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4523                 int use_ascii (int i) {
4524                   return ascii_mm[i] + ascii_ii[i];
4525                 }
4526                 short int ebcdic_ii[] =
4527                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4528                 short int ebcdic_mm[] =
4529                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4530                 int use_ebcdic (int i) {
4531                   return ebcdic_mm[i] + ebcdic_ii[i];
4532                 }
4533                 extern int foo;
4534
4535 int
4536 main ()
4537 {
4538 return use_ascii (foo) == use_ebcdic (foo);
4539   ;
4540   return 0;
4541 }
4542 _ACEOF
4543 if ac_fn_c_try_compile "$LINENO"; then :
4544   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4545               ac_cv_c_bigendian=yes
4546             fi
4547             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4548               if test "$ac_cv_c_bigendian" = unknown; then
4549                 ac_cv_c_bigendian=no
4550               else
4551                 # finding both strings is unlikely to happen, but who knows?
4552                 ac_cv_c_bigendian=unknown
4553               fi
4554             fi
4555 fi
4556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557 else
4558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h.  */
4560 $ac_includes_default
4561 int
4562 main ()
4563 {
4564
4565              /* Are we little or big endian?  From Harbison&Steele.  */
4566              union
4567              {
4568                long int l;
4569                char c[sizeof (long int)];
4570              } u;
4571              u.l = 1;
4572              return u.c[sizeof (long int) - 1] == 1;
4573
4574   ;
4575   return 0;
4576 }
4577 _ACEOF
4578 if ac_fn_c_try_run "$LINENO"; then :
4579   ac_cv_c_bigendian=no
4580 else
4581   ac_cv_c_bigendian=yes
4582 fi
4583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4584   conftest.$ac_objext conftest.beam conftest.$ac_ext
4585 fi
4586
4587     fi
4588 fi
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4590 $as_echo "$ac_cv_c_bigendian" >&6; }
4591  case $ac_cv_c_bigendian in #(
4592    yes)
4593      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4594 ;; #(
4595    no)
4596       ;; #(
4597    universal)
4598
4599 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4600
4601      ;; #(
4602    *)
4603      as_fn_error "unknown endianness
4604  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4605  esac
4606
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4608 $as_echo_n "checking for inline... " >&6; }
4609 if test "${ac_cv_c_inline+set}" = set; then :
4610   $as_echo_n "(cached) " >&6
4611 else
4612   ac_cv_c_inline=no
4613 for ac_kw in inline __inline__ __inline; do
4614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h.  */
4616 #ifndef __cplusplus
4617 typedef int foo_t;
4618 static $ac_kw foo_t static_foo () {return 0; }
4619 $ac_kw foo_t foo () {return 0; }
4620 #endif
4621
4622 _ACEOF
4623 if ac_fn_c_try_compile "$LINENO"; then :
4624   ac_cv_c_inline=$ac_kw
4625 fi
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627   test "$ac_cv_c_inline" != no && break
4628 done
4629
4630 fi
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4632 $as_echo "$ac_cv_c_inline" >&6; }
4633
4634 case $ac_cv_c_inline in
4635   inline | yes) ;;
4636   *)
4637     case $ac_cv_c_inline in
4638       no) ac_val=;;
4639       *) ac_val=$ac_cv_c_inline;;
4640     esac
4641     cat >>confdefs.h <<_ACEOF
4642 #ifndef __cplusplus
4643 #define inline $ac_val
4644 #endif
4645 _ACEOF
4646     ;;
4647 esac
4648
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4650 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4651 if test "${ac_cv_c_const+set}" = set; then :
4652   $as_echo_n "(cached) " >&6
4653 else
4654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h.  */
4656
4657 int
4658 main ()
4659 {
4660 /* FIXME: Include the comments suggested by Paul. */
4661 #ifndef __cplusplus
4662   /* Ultrix mips cc rejects this.  */
4663   typedef int charset[2];
4664   const charset cs;
4665   /* SunOS 4.1.1 cc rejects this.  */
4666   char const *const *pcpcc;
4667   char **ppc;
4668   /* NEC SVR4.0.2 mips cc rejects this.  */
4669   struct point {int x, y;};
4670   static struct point const zero = {0,0};
4671   /* AIX XL C 1.02.0.0 rejects this.
4672      It does not let you subtract one const X* pointer from another in
4673      an arm of an if-expression whose if-part is not a constant
4674      expression */
4675   const char *g = "string";
4676   pcpcc = &g + (g ? g-g : 0);
4677   /* HPUX 7.0 cc rejects these. */
4678   ++pcpcc;
4679   ppc = (char**) pcpcc;
4680   pcpcc = (char const *const *) ppc;
4681   { /* SCO 3.2v4 cc rejects this.  */
4682     char *t;
4683     char const *s = 0 ? (char *) 0 : (char const *) 0;
4684
4685     *t++ = 0;
4686     if (s) return 0;
4687   }
4688   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4689     int x[] = {25, 17};
4690     const int *foo = &x[0];
4691     ++foo;
4692   }
4693   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4694     typedef const int *iptr;
4695     iptr p = 0;
4696     ++p;
4697   }
4698   { /* AIX XL C 1.02.0.0 rejects this saying
4699        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4700     struct s { int j; const int *ap[3]; };
4701     struct s *b; b->j = 5;
4702   }
4703   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4704     const int foo = 10;
4705     if (!foo) return 0;
4706   }
4707   return !cs[0] && !zero.x;
4708 #endif
4709
4710   ;
4711   return 0;
4712 }
4713 _ACEOF
4714 if ac_fn_c_try_compile "$LINENO"; then :
4715   ac_cv_c_const=yes
4716 else
4717   ac_cv_c_const=no
4718 fi
4719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 fi
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4722 $as_echo "$ac_cv_c_const" >&6; }
4723 if test $ac_cv_c_const = no; then
4724
4725 $as_echo "#define const /**/" >>confdefs.h
4726
4727 fi
4728
4729 # The cast to long int works around a bug in the HP C Compiler
4730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4732 # This bug is HP SR number 8606223364.
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short int" >&5
4734 $as_echo_n "checking size of unsigned short int... " >&6; }
4735 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then :
4736   $as_echo_n "(cached) " >&6
4737 else
4738   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short int))" "ac_cv_sizeof_unsigned_short_int"        "$ac_includes_default"; then :
4739
4740 else
4741   if test "$ac_cv_type_unsigned_short_int" = yes; then
4742      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4744 { as_fn_set_status 77
4745 as_fn_error "cannot compute sizeof (unsigned short int)
4746 See \`config.log' for more details." "$LINENO" 5; }; }
4747    else
4748      ac_cv_sizeof_unsigned_short_int=0
4749    fi
4750 fi
4751
4752 fi
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short_int" >&5
4754 $as_echo "$ac_cv_sizeof_unsigned_short_int" >&6; }
4755
4756
4757
4758 cat >>confdefs.h <<_ACEOF
4759 #define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int
4760 _ACEOF
4761
4762
4763 # The cast to long int works around a bug in the HP C Compiler
4764 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4765 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4766 # This bug is HP SR number 8606223364.
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
4768 $as_echo_n "checking size of unsigned int... " >&6; }
4769 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
4770   $as_echo_n "(cached) " >&6
4771 else
4772   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
4773
4774 else
4775   if test "$ac_cv_type_unsigned_int" = yes; then
4776      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4778 { as_fn_set_status 77
4779 as_fn_error "cannot compute sizeof (unsigned int)
4780 See \`config.log' for more details." "$LINENO" 5; }; }
4781    else
4782      ac_cv_sizeof_unsigned_int=0
4783    fi
4784 fi
4785
4786 fi
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
4788 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
4789
4790
4791
4792 cat >>confdefs.h <<_ACEOF
4793 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
4794 _ACEOF
4795
4796
4797 # The cast to long int works around a bug in the HP C Compiler
4798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4799 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4800 # This bug is HP SR number 8606223364.
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5
4802 $as_echo_n "checking size of unsigned long int... " >&6; }
4803 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then :
4804   $as_echo_n "(cached) " >&6
4805 else
4806   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int"        "$ac_includes_default"; then :
4807
4808 else
4809   if test "$ac_cv_type_unsigned_long_int" = yes; then
4810      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4812 { as_fn_set_status 77
4813 as_fn_error "cannot compute sizeof (unsigned long int)
4814 See \`config.log' for more details." "$LINENO" 5; }; }
4815    else
4816      ac_cv_sizeof_unsigned_long_int=0
4817    fi
4818 fi
4819
4820 fi
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5
4822 $as_echo "$ac_cv_sizeof_unsigned_long_int" >&6; }
4823
4824
4825
4826 cat >>confdefs.h <<_ACEOF
4827 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
4828 _ACEOF
4829
4830
4831 # The cast to long int works around a bug in the HP C Compiler
4832 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4833 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4834 # This bug is HP SR number 8606223364.
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long int" >&5
4836 $as_echo_n "checking size of unsigned long long int... " >&6; }
4837 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then :
4838   $as_echo_n "(cached) " >&6
4839 else
4840   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long int))" "ac_cv_sizeof_unsigned_long_long_int"        "$ac_includes_default"; then :
4841
4842 else
4843   if test "$ac_cv_type_unsigned_long_long_int" = yes; then
4844      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4846 { as_fn_set_status 77
4847 as_fn_error "cannot compute sizeof (unsigned long long int)
4848 See \`config.log' for more details." "$LINENO" 5; }; }
4849    else
4850      ac_cv_sizeof_unsigned_long_long_int=0
4851    fi
4852 fi
4853
4854 fi
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
4856 $as_echo "$ac_cv_sizeof_unsigned_long_long_int" >&6; }
4857
4858
4859
4860 cat >>confdefs.h <<_ACEOF
4861 #define SIZEOF_UNSIGNED_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
4862 _ACEOF
4863
4864
4865 for ac_func in llseek alarm gethostbyname inet_ntoa memset socket strerror strstr
4866 do :
4867   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4868 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4869 eval as_val=\$$as_ac_var
4870    if test "x$as_val" = x""yes; then :
4871   cat >>confdefs.h <<_ACEOF
4872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4873 _ACEOF
4874
4875 fi
4876 done
4877
4878 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
4879 if test "x$ac_cv_type_pid_t" = x""yes; then :
4880
4881 else
4882
4883 cat >>confdefs.h <<_ACEOF
4884 #define pid_t int
4885 _ACEOF
4886
4887 fi
4888
4889 for ac_header in vfork.h
4890 do :
4891   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
4892 if test "x$ac_cv_header_vfork_h" = x""yes; then :
4893   cat >>confdefs.h <<_ACEOF
4894 #define HAVE_VFORK_H 1
4895 _ACEOF
4896
4897 fi
4898
4899 done
4900
4901 for ac_func in fork vfork
4902 do :
4903   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4904 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4905 eval as_val=\$$as_ac_var
4906    if test "x$as_val" = x""yes; then :
4907   cat >>confdefs.h <<_ACEOF
4908 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4909 _ACEOF
4910
4911 fi
4912 done
4913
4914 if test "x$ac_cv_func_fork" = xyes; then
4915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
4916 $as_echo_n "checking for working fork... " >&6; }
4917 if test "${ac_cv_func_fork_works+set}" = set; then :
4918   $as_echo_n "(cached) " >&6
4919 else
4920   if test "$cross_compiling" = yes; then :
4921   ac_cv_func_fork_works=cross
4922 else
4923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h.  */
4925 $ac_includes_default
4926 int
4927 main ()
4928 {
4929
4930           /* By Ruediger Kuhlmann. */
4931           return fork () < 0;
4932
4933   ;
4934   return 0;
4935 }
4936 _ACEOF
4937 if ac_fn_c_try_run "$LINENO"; then :
4938   ac_cv_func_fork_works=yes
4939 else
4940   ac_cv_func_fork_works=no
4941 fi
4942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4943   conftest.$ac_objext conftest.beam conftest.$ac_ext
4944 fi
4945
4946 fi
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
4948 $as_echo "$ac_cv_func_fork_works" >&6; }
4949
4950 else
4951   ac_cv_func_fork_works=$ac_cv_func_fork
4952 fi
4953 if test "x$ac_cv_func_fork_works" = xcross; then
4954   case $host in
4955     *-*-amigaos* | *-*-msdosdjgpp*)
4956       # Override, as these systems have only a dummy fork() stub
4957       ac_cv_func_fork_works=no
4958       ;;
4959     *)
4960       ac_cv_func_fork_works=yes
4961       ;;
4962   esac
4963   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
4964 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
4965 fi
4966 ac_cv_func_vfork_works=$ac_cv_func_vfork
4967 if test "x$ac_cv_func_vfork" = xyes; then
4968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
4969 $as_echo_n "checking for working vfork... " >&6; }
4970 if test "${ac_cv_func_vfork_works+set}" = set; then :
4971   $as_echo_n "(cached) " >&6
4972 else
4973   if test "$cross_compiling" = yes; then :
4974   ac_cv_func_vfork_works=cross
4975 else
4976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h.  */
4978 /* Thanks to Paul Eggert for this test.  */
4979 $ac_includes_default
4980 #include <sys/wait.h>
4981 #ifdef HAVE_VFORK_H
4982 # include <vfork.h>
4983 #endif
4984 /* On some sparc systems, changes by the child to local and incoming
4985    argument registers are propagated back to the parent.  The compiler
4986    is told about this with #include <vfork.h>, but some compilers
4987    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
4988    static variable whose address is put into a register that is
4989    clobbered by the vfork.  */
4990 static void
4991 #ifdef __cplusplus
4992 sparc_address_test (int arg)
4993 # else
4994 sparc_address_test (arg) int arg;
4995 #endif
4996 {
4997   static pid_t child;
4998   if (!child) {
4999     child = vfork ();
5000     if (child < 0) {
5001       perror ("vfork");
5002       _exit(2);
5003     }
5004     if (!child) {
5005       arg = getpid();
5006       write(-1, "", 0);
5007       _exit (arg);
5008     }
5009   }
5010 }
5011
5012 int
5013 main ()
5014 {
5015   pid_t parent = getpid ();
5016   pid_t child;
5017
5018   sparc_address_test (0);
5019
5020   child = vfork ();
5021
5022   if (child == 0) {
5023     /* Here is another test for sparc vfork register problems.  This
5024        test uses lots of local variables, at least as many local
5025        variables as main has allocated so far including compiler
5026        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
5027        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
5028        reuse the register of parent for one of the local variables,
5029        since it will think that parent can't possibly be used any more
5030        in this routine.  Assigning to the local variable will thus
5031        munge parent in the parent process.  */
5032     pid_t
5033       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5034       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5035     /* Convince the compiler that p..p7 are live; otherwise, it might
5036        use the same hardware register for all 8 local variables.  */
5037     if (p != p1 || p != p2 || p != p3 || p != p4
5038         || p != p5 || p != p6 || p != p7)
5039       _exit(1);
5040
5041     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5042        from child file descriptors.  If the child closes a descriptor
5043        before it execs or exits, this munges the parent's descriptor
5044        as well.  Test for this by closing stdout in the child.  */
5045     _exit(close(fileno(stdout)) != 0);
5046   } else {
5047     int status;
5048     struct stat st;
5049
5050     while (wait(&status) != child)
5051       ;
5052     return (
5053          /* Was there some problem with vforking?  */
5054          child < 0
5055
5056          /* Did the child fail?  (This shouldn't happen.)  */
5057          || status
5058
5059          /* Did the vfork/compiler bug occur?  */
5060          || parent != getpid()
5061
5062          /* Did the file descriptor bug occur?  */
5063          || fstat(fileno(stdout), &st) != 0
5064          );
5065   }
5066 }
5067 _ACEOF
5068 if ac_fn_c_try_run "$LINENO"; then :
5069   ac_cv_func_vfork_works=yes
5070 else
5071   ac_cv_func_vfork_works=no
5072 fi
5073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5074   conftest.$ac_objext conftest.beam conftest.$ac_ext
5075 fi
5076
5077 fi
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5079 $as_echo "$ac_cv_func_vfork_works" >&6; }
5080
5081 fi;
5082 if test "x$ac_cv_func_fork_works" = xcross; then
5083   ac_cv_func_vfork_works=$ac_cv_func_vfork
5084   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5085 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5086 fi
5087
5088 if test "x$ac_cv_func_vfork_works" = xyes; then
5089
5090 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5091
5092 else
5093
5094 $as_echo "#define vfork fork" >>confdefs.h
5095
5096 fi
5097 if test "x$ac_cv_func_fork_works" = xyes; then
5098
5099 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5100
5101 fi
5102
5103 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
5104   $as_echo_n "(cached) " >&6
5105 else
5106   ac_cv_func_setvbuf_reversed=no
5107 fi
5108
5109
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether client should be built" >&5
5111 $as_echo_n "checking whether client should be built... " >&6; }
5112 case $host_os in
5113      linux*) sbin_PROGRAMS="$sbin_PROGRAMS nbd-client"
5114               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5115 $as_echo "yes" >&6; }
5116               ;;
5117      *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; } ;;
5119 esac
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find a working nbd.h" >&5
5121 $as_echo_n "checking where to find a working nbd.h... " >&6; }
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h.  */
5124 #define u32 int
5125 #define u64 int
5126 #define __be32 int
5127 #define __be64 int
5128 #include "nbd.h"
5129 #ifdef __GNUC__
5130 #define UNUSED __attribute__((__unused__))
5131 #else
5132 #define UNUSED
5133 #endif
5134
5135 int
5136 main ()
5137 {
5138 int UNUSED foo=NBD_CMD_DISC
5139   ;
5140   return 0;
5141 }
5142 _ACEOF
5143 if ac_fn_c_try_compile "$LINENO"; then :
5144
5145 $as_echo "#define NBD_H_LOCAL 1" >>confdefs.h
5146
5147     NBD_H='"nbd.h"'
5148 else
5149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h.  */
5151 #define u32 int
5152 #define u64 int
5153 #define __be32 int
5154 #define __be64 int
5155 #include <linux/nbd.h>
5156 #ifdef __GNUC__
5157 #define UNUSED __attribute__((__unused__))
5158 #else
5159 #define UNUSED
5160 #endif
5161
5162 int
5163 main ()
5164 {
5165 int UNUSED foo=NBD_CMD_DISC
5166   ;
5167   return 0;
5168 }
5169 _ACEOF
5170 if ac_fn_c_try_compile "$LINENO"; then :
5171
5172 $as_echo "#define NBD_H_LINUX 1" >>confdefs.h
5173
5174       NBD_H='<linux/nbd.h>'
5175 else
5176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h.  */
5178 #include <linux/nbd.h>
5179 #ifdef __GNUC__
5180 #define UNUSED __attribute__((__unused__))
5181 #else
5182 #define UNUSED
5183 #endif
5184
5185 int
5186 main ()
5187 {
5188 int UNUSED foo=NBD_CMD_DISC
5189   ;
5190   return 0;
5191 }
5192 _ACEOF
5193 if ac_fn_c_try_compile "$LINENO"; then :
5194
5195 $as_echo "#define NBD_H_LINUX 1" >>confdefs.h
5196
5197         NBD_H='<linux/nbd.h>'
5198 else
5199   as_fn_error "Could not find an nbd.h from 2.6 or above." "$LINENO" 5
5200
5201 fi
5202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203
5204 fi
5205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5206
5207 fi
5208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209 if test -f nbd.h
5210 then
5211   if test "$NBD_H" = '<linux/nbd.h>'
5212   then
5213     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: there is a local nbd.h, but it is from the 2.4-series of kernels. Using the system-provided, working, nbd.h" >&5
5214 $as_echo "$as_me: WARNING: there is a local nbd.h, but it is from the 2.4-series of kernels. Using the system-provided, working, nbd.h" >&2;}
5215   fi
5216 fi
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NBD_H" >&5
5218 $as_echo "$NBD_H" >&6; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
5220 $as_echo_n "checking for library containing bind... " >&6; }
5221 if test "${ac_cv_search_bind+set}" = set; then :
5222   $as_echo_n "(cached) " >&6
5223 else
5224   ac_func_search_save_LIBS=$LIBS
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h.  */
5227
5228 /* Override any GCC internal prototype to avoid an error.
5229    Use char because int might match the return type of a GCC
5230    builtin and then its argument prototype would still apply.  */
5231 #ifdef __cplusplus
5232 extern "C"
5233 #endif
5234 char bind ();
5235 int
5236 main ()
5237 {
5238 return bind ();
5239   ;
5240   return 0;
5241 }
5242 _ACEOF
5243 for ac_lib in '' socket; do
5244   if test -z "$ac_lib"; then
5245     ac_res="none required"
5246   else
5247     ac_res=-l$ac_lib
5248     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5249   fi
5250   if ac_fn_c_try_link "$LINENO"; then :
5251   ac_cv_search_bind=$ac_res
5252 fi
5253 rm -f core conftest.err conftest.$ac_objext \
5254     conftest$ac_exeext
5255   if test "${ac_cv_search_bind+set}" = set; then :
5256   break
5257 fi
5258 done
5259 if test "${ac_cv_search_bind+set}" = set; then :
5260
5261 else
5262   ac_cv_search_bind=no
5263 fi
5264 rm conftest.$ac_ext
5265 LIBS=$ac_func_search_save_LIBS
5266 fi
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
5268 $as_echo "$ac_cv_search_bind" >&6; }
5269 ac_res=$ac_cv_search_bind
5270 if test "$ac_res" != no; then :
5271   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5272
5273 else
5274   as_fn_error "Could not find an implementation of the bind() system call" "$LINENO" 5
5275 fi
5276
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
5278 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
5279 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5280   $as_echo_n "(cached) " >&6
5281 else
5282   ac_func_search_save_LIBS=$LIBS
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h.  */
5285
5286 /* Override any GCC internal prototype to avoid an error.
5287    Use char because int might match the return type of a GCC
5288    builtin and then its argument prototype would still apply.  */
5289 #ifdef __cplusplus
5290 extern "C"
5291 #endif
5292 char inet_ntoa ();
5293 int
5294 main ()
5295 {
5296 return inet_ntoa ();
5297   ;
5298   return 0;
5299 }
5300 _ACEOF
5301 for ac_lib in '' nsl; do
5302   if test -z "$ac_lib"; then
5303     ac_res="none required"
5304   else
5305     ac_res=-l$ac_lib
5306     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5307   fi
5308   if ac_fn_c_try_link "$LINENO"; then :
5309   ac_cv_search_inet_ntoa=$ac_res
5310 fi
5311 rm -f core conftest.err conftest.$ac_objext \
5312     conftest$ac_exeext
5313   if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5314   break
5315 fi
5316 done
5317 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5318
5319 else
5320   ac_cv_search_inet_ntoa=no
5321 fi
5322 rm conftest.$ac_ext
5323 LIBS=$ac_func_search_save_LIBS
5324 fi
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
5326 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
5327 ac_res=$ac_cv_search_inet_ntoa
5328 if test "$ac_res" != no; then :
5329   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5330
5331 else
5332   as_fn_error "Could not find an implementation of the inet_ntoa() system call" "$LINENO" 5
5333 fi
5334
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing daemon" >&5
5336 $as_echo_n "checking for library containing daemon... " >&6; }
5337 if test "${ac_cv_search_daemon+set}" = set; then :
5338   $as_echo_n "(cached) " >&6
5339 else
5340   ac_func_search_save_LIBS=$LIBS
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h.  */
5343
5344 /* Override any GCC internal prototype to avoid an error.
5345    Use char because int might match the return type of a GCC
5346    builtin and then its argument prototype would still apply.  */
5347 #ifdef __cplusplus
5348 extern "C"
5349 #endif
5350 char daemon ();
5351 int
5352 main ()
5353 {
5354 return daemon ();
5355   ;
5356   return 0;
5357 }
5358 _ACEOF
5359 for ac_lib in '' resolv; do
5360   if test -z "$ac_lib"; then
5361     ac_res="none required"
5362   else
5363     ac_res=-l$ac_lib
5364     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5365   fi
5366   if ac_fn_c_try_link "$LINENO"; then :
5367   ac_cv_search_daemon=$ac_res
5368 fi
5369 rm -f core conftest.err conftest.$ac_objext \
5370     conftest$ac_exeext
5371   if test "${ac_cv_search_daemon+set}" = set; then :
5372   break
5373 fi
5374 done
5375 if test "${ac_cv_search_daemon+set}" = set; then :
5376
5377 else
5378   ac_cv_search_daemon=no
5379 fi
5380 rm conftest.$ac_ext
5381 LIBS=$ac_func_search_save_LIBS
5382 fi
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_daemon" >&5
5384 $as_echo "$ac_cv_search_daemon" >&6; }
5385 ac_res=$ac_cv_search_daemon
5386 if test "$ac_res" != no; then :
5387   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5388
5389 else
5390   as_fn_error "Could not find an implementation of the daemon() system call" "$LINENO" 5
5391 fi
5392
5393 for ac_header in sys/mount.h
5394 do :
5395   ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5396
5397 "
5398 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5399   cat >>confdefs.h <<_ACEOF
5400 #define HAVE_SYS_MOUNT_H 1
5401 _ACEOF
5402
5403 fi
5404
5405 done
5406
5407 for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h sys/ioctl.h sys/socket.h syslog.h linux/types.h
5408 do :
5409   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5410 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5411 eval as_val=\$$as_ac_Header
5412    if test "x$as_val" = x""yes; then :
5413   cat >>confdefs.h <<_ACEOF
5414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5415 _ACEOF
5416
5417 fi
5418
5419 done
5420
5421 # Check whether --enable-glibtest was given.
5422 if test "${enable_glibtest+set}" = set; then :
5423   enableval=$enable_glibtest;
5424 else
5425   enable_glibtest=yes
5426 fi
5427
5428
5429   pkg_config_args=glib-2.0
5430   for module in .
5431   do
5432       case "$module" in
5433          gmodule)
5434              pkg_config_args="$pkg_config_args gmodule-2.0"
5435          ;;
5436          gmodule-no-export)
5437              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
5438          ;;
5439          gobject)
5440              pkg_config_args="$pkg_config_args gobject-2.0"
5441          ;;
5442          gthread)
5443              pkg_config_args="$pkg_config_args gthread-2.0"
5444          ;;
5445          gio*)
5446              pkg_config_args="$pkg_config_args $module-2.0"
5447          ;;
5448       esac
5449   done
5450
5451
5452
5453 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5454         if test -n "$ac_tool_prefix"; then
5455   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5456 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5460   $as_echo_n "(cached) " >&6
5461 else
5462   case $PKG_CONFIG in
5463   [\\/]* | ?:[\\/]*)
5464   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5465   ;;
5466   *)
5467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH
5469 do
5470   IFS=$as_save_IFS
5471   test -z "$as_dir" && as_dir=.
5472     for ac_exec_ext in '' $ac_executable_extensions; do
5473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5474     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476     break 2
5477   fi
5478 done
5479   done
5480 IFS=$as_save_IFS
5481
5482   ;;
5483 esac
5484 fi
5485 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5486 if test -n "$PKG_CONFIG"; then
5487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5488 $as_echo "$PKG_CONFIG" >&6; }
5489 else
5490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491 $as_echo "no" >&6; }
5492 fi
5493
5494
5495 fi
5496 if test -z "$ac_cv_path_PKG_CONFIG"; then
5497   ac_pt_PKG_CONFIG=$PKG_CONFIG
5498   # Extract the first word of "pkg-config", so it can be a program name with args.
5499 set dummy pkg-config; ac_word=$2
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5503   $as_echo_n "(cached) " >&6
5504 else
5505   case $ac_pt_PKG_CONFIG in
5506   [\\/]* | ?:[\\/]*)
5507   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5508   ;;
5509   *)
5510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5512 do
5513   IFS=$as_save_IFS
5514   test -z "$as_dir" && as_dir=.
5515     for ac_exec_ext in '' $ac_executable_extensions; do
5516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519     break 2
5520   fi
5521 done
5522   done
5523 IFS=$as_save_IFS
5524
5525   ;;
5526 esac
5527 fi
5528 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5529 if test -n "$ac_pt_PKG_CONFIG"; then
5530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5531 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5532 else
5533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5535 fi
5536
5537   if test "x$ac_pt_PKG_CONFIG" = x; then
5538     PKG_CONFIG=""
5539   else
5540     case $cross_compiling:$ac_tool_warned in
5541 yes:)
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5544 ac_tool_warned=yes ;;
5545 esac
5546     PKG_CONFIG=$ac_pt_PKG_CONFIG
5547   fi
5548 else
5549   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5550 fi
5551
5552 fi
5553 if test -n "$PKG_CONFIG"; then
5554         _pkg_min_version=0.16
5555         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5556 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5557         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5558                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5559 $as_echo "yes" >&6; }
5560         else
5561                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 $as_echo "no" >&6; }
5563                 PKG_CONFIG=""
5564         fi
5565
5566 fi
5567
5568   no_glib=""
5569
5570   if test "x$PKG_CONFIG" = x ; then
5571     no_glib=yes
5572     PKG_CONFIG=no
5573   fi
5574
5575   min_glib_version=2.6.0
5576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
5577 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
5578
5579   if test x$PKG_CONFIG != xno ; then
5580     ## don't try to run the test against uninstalled libtool libs
5581     if $PKG_CONFIG --uninstalled $pkg_config_args; then
5582           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
5583           enable_glibtest=no
5584     fi
5585
5586     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
5587           :
5588     else
5589           no_glib=yes
5590     fi
5591   fi
5592
5593   if test x"$no_glib" = x ; then
5594     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
5595     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
5596     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
5597
5598     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
5599     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
5600     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
5601            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5602     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
5603            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5604     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
5605            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
5606     if test "x$enable_glibtest" = "xyes" ; then
5607       ac_save_CFLAGS="$CFLAGS"
5608       ac_save_LIBS="$LIBS"
5609       CFLAGS="$CFLAGS $GLIB_CFLAGS"
5610       LIBS="$GLIB_LIBS $LIBS"
5611       rm -f conf.glibtest
5612       if test "$cross_compiling" = yes; then :
5613   echo $ac_n "cross compiling; assumed OK... $ac_c"
5614 else
5615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h.  */
5617
5618 #include <glib.h>
5619 #include <stdio.h>
5620 #include <stdlib.h>
5621
5622 int
5623 main ()
5624 {
5625   int major, minor, micro;
5626   char *tmp_version;
5627   int ignored;
5628
5629   ignored = system ("touch conf.glibtest");
5630
5631   /* HP/UX 9 (%@#!) writes to sscanf strings */
5632   tmp_version = g_strdup("$min_glib_version");
5633   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
5634      printf("%s, bad version string\n", "$min_glib_version");
5635      exit(1);
5636    }
5637
5638   if ((glib_major_version != $glib_config_major_version) ||
5639       (glib_minor_version != $glib_config_minor_version) ||
5640       (glib_micro_version != $glib_config_micro_version))
5641     {
5642       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
5643              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
5644              glib_major_version, glib_minor_version, glib_micro_version);
5645       printf ("*** was found! If pkg-config was correct, then it is best\n");
5646       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
5647       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
5648       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
5649       printf("*** required on your system.\n");
5650       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
5651       printf("*** to point to the correct configuration files\n");
5652     }
5653   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
5654            (glib_minor_version != GLIB_MINOR_VERSION) ||
5655            (glib_micro_version != GLIB_MICRO_VERSION))
5656     {
5657       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
5658              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
5659       printf("*** library (version %d.%d.%d)\n",
5660              glib_major_version, glib_minor_version, glib_micro_version);
5661     }
5662   else
5663     {
5664       if ((glib_major_version > major) ||
5665         ((glib_major_version == major) && (glib_minor_version > minor)) ||
5666         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
5667       {
5668         return 0;
5669        }
5670      else
5671       {
5672         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
5673                glib_major_version, glib_minor_version, glib_micro_version);
5674         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
5675                major, minor, micro);
5676         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
5677         printf("***\n");
5678         printf("*** If you have already installed a sufficiently new version, this error\n");
5679         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
5680         printf("*** being found. The easiest way to fix this is to remove the old version\n");
5681         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
5682         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
5683         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
5684         printf("*** so that the correct libraries are found at run-time))\n");
5685       }
5686     }
5687   return 1;
5688 }
5689
5690 _ACEOF
5691 if ac_fn_c_try_run "$LINENO"; then :
5692
5693 else
5694   no_glib=yes
5695 fi
5696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5697   conftest.$ac_objext conftest.beam conftest.$ac_ext
5698 fi
5699
5700        CFLAGS="$ac_save_CFLAGS"
5701        LIBS="$ac_save_LIBS"
5702      fi
5703   fi
5704   if test "x$no_glib" = x ; then
5705      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
5706 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
5707      HAVE_GLIB=yes
5708   else
5709      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5711      if test "$PKG_CONFIG" = "no" ; then
5712        echo "*** A new enough version of pkg-config was not found."
5713        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
5714      else
5715        if test -f conf.glibtest ; then
5716         :
5717        else
5718           echo "*** Could not run GLIB test program, checking why..."
5719           ac_save_CFLAGS="$CFLAGS"
5720           ac_save_LIBS="$LIBS"
5721           CFLAGS="$CFLAGS $GLIB_CFLAGS"
5722           LIBS="$LIBS $GLIB_LIBS"
5723           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h.  */
5725
5726 #include <glib.h>
5727 #include <stdio.h>
5728
5729 int
5730 main ()
5731 {
5732  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
5733   ;
5734   return 0;
5735 }
5736 _ACEOF
5737 if ac_fn_c_try_link "$LINENO"; then :
5738    echo "*** The test program compiled, but did not run. This usually means"
5739           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
5740           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
5741           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5742           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
5743           echo "*** is required on your system"
5744           echo "***"
5745           echo "*** If you have an old version installed, it is best to remove it, although"
5746           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
5747 else
5748    echo "*** The test program failed to compile or link. See the file config.log for the"
5749           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
5750 fi
5751 rm -f core conftest.err conftest.$ac_objext \
5752     conftest$ac_exeext conftest.$ac_ext
5753           CFLAGS="$ac_save_CFLAGS"
5754           LIBS="$ac_save_LIBS"
5755        fi
5756      fi
5757      GLIB_CFLAGS=""
5758      GLIB_LIBS=""
5759      GLIB_GENMARSHAL=""
5760      GOBJECT_QUERY=""
5761      GLIB_MKENUMS=""
5762      as_fn_error "Missing glib" "$LINENO" 5
5763   fi
5764
5765
5766
5767
5768
5769   rm -f conf.glibtest
5770
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5772 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5773 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
5774   $as_echo_n "(cached) " >&6
5775 else
5776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h.  */
5778 #include <sys/types.h>
5779 #include <sys/wait.h>
5780 #ifndef WEXITSTATUS
5781 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5782 #endif
5783 #ifndef WIFEXITED
5784 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5785 #endif
5786
5787 int
5788 main ()
5789 {
5790   int s;
5791   wait (&s);
5792   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5793   ;
5794   return 0;
5795 }
5796 _ACEOF
5797 if ac_fn_c_try_compile "$LINENO"; then :
5798   ac_cv_header_sys_wait_h=yes
5799 else
5800   ac_cv_header_sys_wait_h=no
5801 fi
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803 fi
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5805 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5806 if test $ac_cv_header_sys_wait_h = yes; then
5807
5808 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5809
5810 fi
5811
5812 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5813 if test "x$ac_cv_type_off_t" = x""yes; then :
5814
5815 else
5816
5817 cat >>confdefs.h <<_ACEOF
5818 #define off_t long int
5819 _ACEOF
5820
5821 fi
5822
5823 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5824 if test "x$ac_cv_type_pid_t" = x""yes; then :
5825
5826 else
5827
5828 cat >>confdefs.h <<_ACEOF
5829 #define pid_t int
5830 _ACEOF
5831
5832 fi
5833
5834
5835 nbd_server_CPPFLAGS=$nbd_server_CPPFLAGS" -DSYSCONFDIR='\"$sysconfdir\"'"
5836
5837 ac_config_headers="$ac_config_headers config.h"
5838
5839 ac_config_files="$ac_config_files Makefile Doxyfile nbd-server.1 nbd-server.5 nbd-client.8"
5840
5841 cat >confcache <<\_ACEOF
5842 # This file is a shell script that caches the results of configure
5843 # tests run on this system so they can be shared between configure
5844 # scripts and configure runs, see configure's option --config-cache.
5845 # It is not useful on other systems.  If it contains results you don't
5846 # want to keep, you may remove or edit it.
5847 #
5848 # config.status only pays attention to the cache file if you give it
5849 # the --recheck option to rerun configure.
5850 #
5851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5853 # following values.
5854
5855 _ACEOF
5856
5857 # The following way of writing the cache mishandles newlines in values,
5858 # but we know of no workaround that is simple, portable, and efficient.
5859 # So, we kill variables containing newlines.
5860 # Ultrix sh set writes to stderr and can't be redirected directly,
5861 # and sets the high bit in the cache file unless we assign to the vars.
5862 (
5863   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5864     eval ac_val=\$$ac_var
5865     case $ac_val in #(
5866     *${as_nl}*)
5867       case $ac_var in #(
5868       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5869 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5870       esac
5871       case $ac_var in #(
5872       _ | IFS | as_nl) ;; #(
5873       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5874       *) { eval $ac_var=; unset $ac_var;} ;;
5875       esac ;;
5876     esac
5877   done
5878
5879   (set) 2>&1 |
5880     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5881     *${as_nl}ac_space=\ *)
5882       # `set' does not quote correctly, so add quotes: double-quote
5883       # substitution turns \\\\ into \\, and sed turns \\ into \.
5884       sed -n \
5885         "s/'/'\\\\''/g;
5886           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5887       ;; #(
5888     *)
5889       # `set' quotes correctly as required by POSIX, so do not add quotes.
5890       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5891       ;;
5892     esac |
5893     sort
5894 ) |
5895   sed '
5896      /^ac_cv_env_/b end
5897      t clear
5898      :clear
5899      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5900      t end
5901      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5902      :end' >>confcache
5903 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5904   if test -w "$cache_file"; then
5905     test "x$cache_file" != "x/dev/null" &&
5906       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5907 $as_echo "$as_me: updating cache $cache_file" >&6;}
5908     cat confcache >$cache_file
5909   else
5910     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5911 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5912   fi
5913 fi
5914 rm -f confcache
5915
5916 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5917 # Let make expand exec_prefix.
5918 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5919
5920 DEFS=-DHAVE_CONFIG_H
5921
5922 ac_libobjs=
5923 ac_ltlibobjs=
5924 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5925   # 1. Remove the extension, and $U if already installed.
5926   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5927   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5928   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5929   #    will be set to the directory where LIBOBJS objects are built.
5930   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5931   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5932 done
5933 LIBOBJS=$ac_libobjs
5934
5935 LTLIBOBJS=$ac_ltlibobjs
5936
5937
5938 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5939   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
5940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5941 fi
5942 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5943   as_fn_error "conditional \"AMDEP\" was never defined.
5944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5945 fi
5946 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5947   as_fn_error "conditional \"am__fastdepCC\" was never defined.
5948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5949 fi
5950
5951
5952 : ${CONFIG_STATUS=./config.status}
5953 ac_write_fail=0
5954 ac_clean_files_save=$ac_clean_files
5955 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5957 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5958 as_write_fail=0
5959 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5960 #! $SHELL
5961 # Generated by $as_me.
5962 # Run this file to recreate the current configuration.
5963 # Compiler output produced by configure, useful for debugging
5964 # configure, is in config.log if it exists.
5965
5966 debug=false
5967 ac_cs_recheck=false
5968 ac_cs_silent=false
5969
5970 SHELL=\${CONFIG_SHELL-$SHELL}
5971 export SHELL
5972 _ASEOF
5973 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5974 ## -------------------- ##
5975 ## M4sh Initialization. ##
5976 ## -------------------- ##
5977
5978 # Be more Bourne compatible
5979 DUALCASE=1; export DUALCASE # for MKS sh
5980 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5981   emulate sh
5982   NULLCMD=:
5983   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5984   # is contrary to our usage.  Disable this feature.
5985   alias -g '${1+"$@"}'='"$@"'
5986   setopt NO_GLOB_SUBST
5987 else
5988   case `(set -o) 2>/dev/null` in #(
5989   *posix*) :
5990     set -o posix ;; #(
5991   *) :
5992      ;;
5993 esac
5994 fi
5995
5996
5997 as_nl='
5998 '
5999 export as_nl
6000 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6001 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6002 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6003 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6004 # Prefer a ksh shell builtin over an external printf program on Solaris,
6005 # but without wasting forks for bash or zsh.
6006 if test -z "$BASH_VERSION$ZSH_VERSION" \
6007     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6008   as_echo='print -r --'
6009   as_echo_n='print -rn --'
6010 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6011   as_echo='printf %s\n'
6012   as_echo_n='printf %s'
6013 else
6014   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6015     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6016     as_echo_n='/usr/ucb/echo -n'
6017   else
6018     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6019     as_echo_n_body='eval
6020       arg=$1;
6021       case $arg in #(
6022       *"$as_nl"*)
6023         expr "X$arg" : "X\\(.*\\)$as_nl";
6024         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6025       esac;
6026       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6027     '
6028     export as_echo_n_body
6029     as_echo_n='sh -c $as_echo_n_body as_echo'
6030   fi
6031   export as_echo_body
6032   as_echo='sh -c $as_echo_body as_echo'
6033 fi
6034
6035 # The user is always right.
6036 if test "${PATH_SEPARATOR+set}" != set; then
6037   PATH_SEPARATOR=:
6038   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6039     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6040       PATH_SEPARATOR=';'
6041   }
6042 fi
6043
6044
6045 # IFS
6046 # We need space, tab and new line, in precisely that order.  Quoting is
6047 # there to prevent editors from complaining about space-tab.
6048 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6049 # splitting by setting IFS to empty value.)
6050 IFS=" ""        $as_nl"
6051
6052 # Find who we are.  Look in the path if we contain no directory separator.
6053 case $0 in #((
6054   *[\\/]* ) as_myself=$0 ;;
6055   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058   IFS=$as_save_IFS
6059   test -z "$as_dir" && as_dir=.
6060     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6061   done
6062 IFS=$as_save_IFS
6063
6064      ;;
6065 esac
6066 # We did not find ourselves, most probably we were run as `sh COMMAND'
6067 # in which case we are not to be found in the path.
6068 if test "x$as_myself" = x; then
6069   as_myself=$0
6070 fi
6071 if test ! -f "$as_myself"; then
6072   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6073   exit 1
6074 fi
6075
6076 # Unset variables that we do not need and which cause bugs (e.g. in
6077 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6078 # suppresses any "Segmentation fault" message there.  '((' could
6079 # trigger a bug in pdksh 5.2.14.
6080 for as_var in BASH_ENV ENV MAIL MAILPATH
6081 do eval test x\${$as_var+set} = xset \
6082   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6083 done
6084 PS1='$ '
6085 PS2='> '
6086 PS4='+ '
6087
6088 # NLS nuisances.
6089 LC_ALL=C
6090 export LC_ALL
6091 LANGUAGE=C
6092 export LANGUAGE
6093
6094 # CDPATH.
6095 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6096
6097
6098 # as_fn_error ERROR [LINENO LOG_FD]
6099 # ---------------------------------
6100 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6101 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6102 # script with status $?, using 1 if that was 0.
6103 as_fn_error ()
6104 {
6105   as_status=$?; test $as_status -eq 0 && as_status=1
6106   if test "$3"; then
6107     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6108     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6109   fi
6110   $as_echo "$as_me: error: $1" >&2
6111   as_fn_exit $as_status
6112 } # as_fn_error
6113
6114
6115 # as_fn_set_status STATUS
6116 # -----------------------
6117 # Set $? to STATUS, without forking.
6118 as_fn_set_status ()
6119 {
6120   return $1
6121 } # as_fn_set_status
6122
6123 # as_fn_exit STATUS
6124 # -----------------
6125 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6126 as_fn_exit ()
6127 {
6128   set +e
6129   as_fn_set_status $1
6130   exit $1
6131 } # as_fn_exit
6132
6133 # as_fn_unset VAR
6134 # ---------------
6135 # Portably unset VAR.
6136 as_fn_unset ()
6137 {
6138   { eval $1=; unset $1;}
6139 }
6140 as_unset=as_fn_unset
6141 # as_fn_append VAR VALUE
6142 # ----------------------
6143 # Append the text in VALUE to the end of the definition contained in VAR. Take
6144 # advantage of any shell optimizations that allow amortized linear growth over
6145 # repeated appends, instead of the typical quadratic growth present in naive
6146 # implementations.
6147 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6148   eval 'as_fn_append ()
6149   {
6150     eval $1+=\$2
6151   }'
6152 else
6153   as_fn_append ()
6154   {
6155     eval $1=\$$1\$2
6156   }
6157 fi # as_fn_append
6158
6159 # as_fn_arith ARG...
6160 # ------------------
6161 # Perform arithmetic evaluation on the ARGs, and store the result in the
6162 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6163 # must be portable across $(()) and expr.
6164 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6165   eval 'as_fn_arith ()
6166   {
6167     as_val=$(( $* ))
6168   }'
6169 else
6170   as_fn_arith ()
6171   {
6172     as_val=`expr "$@" || test $? -eq 1`
6173   }
6174 fi # as_fn_arith
6175
6176
6177 if expr a : '\(a\)' >/dev/null 2>&1 &&
6178    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6179   as_expr=expr
6180 else
6181   as_expr=false
6182 fi
6183
6184 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6185   as_basename=basename
6186 else
6187   as_basename=false
6188 fi
6189
6190 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6191   as_dirname=dirname
6192 else
6193   as_dirname=false
6194 fi
6195
6196 as_me=`$as_basename -- "$0" ||
6197 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6198          X"$0" : 'X\(//\)$' \| \
6199          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6200 $as_echo X/"$0" |
6201     sed '/^.*\/\([^/][^/]*\)\/*$/{
6202             s//\1/
6203             q
6204           }
6205           /^X\/\(\/\/\)$/{
6206             s//\1/
6207             q
6208           }
6209           /^X\/\(\/\).*/{
6210             s//\1/
6211             q
6212           }
6213           s/.*/./; q'`
6214
6215 # Avoid depending upon Character Ranges.
6216 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6217 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6218 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6219 as_cr_digits='0123456789'
6220 as_cr_alnum=$as_cr_Letters$as_cr_digits
6221
6222 ECHO_C= ECHO_N= ECHO_T=
6223 case `echo -n x` in #(((((
6224 -n*)
6225   case `echo 'xy\c'` in
6226   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6227   xy)  ECHO_C='\c';;
6228   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6229        ECHO_T=' ';;
6230   esac;;
6231 *)
6232   ECHO_N='-n';;
6233 esac
6234
6235 rm -f conf$$ conf$$.exe conf$$.file
6236 if test -d conf$$.dir; then
6237   rm -f conf$$.dir/conf$$.file
6238 else
6239   rm -f conf$$.dir
6240   mkdir conf$$.dir 2>/dev/null
6241 fi
6242 if (echo >conf$$.file) 2>/dev/null; then
6243   if ln -s conf$$.file conf$$ 2>/dev/null; then
6244     as_ln_s='ln -s'
6245     # ... but there are two gotchas:
6246     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6247     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6248     # In both cases, we have to default to `cp -p'.
6249     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6250       as_ln_s='cp -p'
6251   elif ln conf$$.file conf$$ 2>/dev/null; then
6252     as_ln_s=ln
6253   else
6254     as_ln_s='cp -p'
6255   fi
6256 else
6257   as_ln_s='cp -p'
6258 fi
6259 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6260 rmdir conf$$.dir 2>/dev/null
6261
6262
6263 # as_fn_mkdir_p
6264 # -------------
6265 # Create "$as_dir" as a directory, including parents if necessary.
6266 as_fn_mkdir_p ()
6267 {
6268
6269   case $as_dir in #(
6270   -*) as_dir=./$as_dir;;
6271   esac
6272   test -d "$as_dir" || eval $as_mkdir_p || {
6273     as_dirs=
6274     while :; do
6275       case $as_dir in #(
6276       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6277       *) as_qdir=$as_dir;;
6278       esac
6279       as_dirs="'$as_qdir' $as_dirs"
6280       as_dir=`$as_dirname -- "$as_dir" ||
6281 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6282          X"$as_dir" : 'X\(//\)[^/]' \| \
6283          X"$as_dir" : 'X\(//\)$' \| \
6284          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6285 $as_echo X"$as_dir" |
6286     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6287             s//\1/
6288             q
6289           }
6290           /^X\(\/\/\)[^/].*/{
6291             s//\1/
6292             q
6293           }
6294           /^X\(\/\/\)$/{
6295             s//\1/
6296             q
6297           }
6298           /^X\(\/\).*/{
6299             s//\1/
6300             q
6301           }
6302           s/.*/./; q'`
6303       test -d "$as_dir" && break
6304     done
6305     test -z "$as_dirs" || eval "mkdir $as_dirs"
6306   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6307
6308
6309 } # as_fn_mkdir_p
6310 if mkdir -p . 2>/dev/null; then
6311   as_mkdir_p='mkdir -p "$as_dir"'
6312 else
6313   test -d ./-p && rmdir ./-p
6314   as_mkdir_p=false
6315 fi
6316
6317 if test -x / >/dev/null 2>&1; then
6318   as_test_x='test -x'
6319 else
6320   if ls -dL / >/dev/null 2>&1; then
6321     as_ls_L_option=L
6322   else
6323     as_ls_L_option=
6324   fi
6325   as_test_x='
6326     eval sh -c '\''
6327       if test -d "$1"; then
6328         test -d "$1/.";
6329       else
6330         case $1 in #(
6331         -*)set "./$1";;
6332         esac;
6333         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6334         ???[sx]*):;;*)false;;esac;fi
6335     '\'' sh
6336   '
6337 fi
6338 as_executable_p=$as_test_x
6339
6340 # Sed expression to map a string onto a valid CPP name.
6341 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6342
6343 # Sed expression to map a string onto a valid variable name.
6344 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6345
6346
6347 exec 6>&1
6348 ## ----------------------------------- ##
6349 ## Main body of $CONFIG_STATUS script. ##
6350 ## ----------------------------------- ##
6351 _ASEOF
6352 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6353
6354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6355 # Save the log message, to keep $0 and so on meaningful, and to
6356 # report actual input values of CONFIG_FILES etc. instead of their
6357 # values after options handling.
6358 ac_log="
6359 This file was extended by nbd $as_me 2.9.13, which was
6360 generated by GNU Autoconf 2.64.  Invocation command line was
6361
6362   CONFIG_FILES    = $CONFIG_FILES
6363   CONFIG_HEADERS  = $CONFIG_HEADERS
6364   CONFIG_LINKS    = $CONFIG_LINKS
6365   CONFIG_COMMANDS = $CONFIG_COMMANDS
6366   $ $0 $@
6367
6368 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6369 "
6370
6371 _ACEOF
6372
6373 case $ac_config_files in *"
6374 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6375 esac
6376
6377 case $ac_config_headers in *"
6378 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6379 esac
6380
6381
6382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6383 # Files that config.status was made for.
6384 config_files="$ac_config_files"
6385 config_headers="$ac_config_headers"
6386 config_commands="$ac_config_commands"
6387
6388 _ACEOF
6389
6390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6391 ac_cs_usage="\
6392 \`$as_me' instantiates files and other configuration actions
6393 from templates according to the current configuration.  Unless the files
6394 and actions are specified as TAGs, all are instantiated by default.
6395
6396 Usage: $0 [OPTION]... [TAG]...
6397
6398   -h, --help       print this help, then exit
6399   -V, --version    print version number and configuration settings, then exit
6400   -q, --quiet, --silent
6401                    do not print progress messages
6402   -d, --debug      don't remove temporary files
6403       --recheck    update $as_me by reconfiguring in the same conditions
6404       --file=FILE[:TEMPLATE]
6405                    instantiate the configuration file FILE
6406       --header=FILE[:TEMPLATE]
6407                    instantiate the configuration header FILE
6408
6409 Configuration files:
6410 $config_files
6411
6412 Configuration headers:
6413 $config_headers
6414
6415 Configuration commands:
6416 $config_commands
6417
6418 Report bugs to <wouter@debian.org>."
6419
6420 _ACEOF
6421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6422 ac_cs_version="\\
6423 nbd config.status 2.9.13
6424 configured by $0, generated by GNU Autoconf 2.64,
6425   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6426
6427 Copyright (C) 2009 Free Software Foundation, Inc.
6428 This config.status script is free software; the Free Software Foundation
6429 gives unlimited permission to copy, distribute and modify it."
6430
6431 ac_pwd='$ac_pwd'
6432 srcdir='$srcdir'
6433 INSTALL='$INSTALL'
6434 MKDIR_P='$MKDIR_P'
6435 AWK='$AWK'
6436 test -n "\$AWK" || AWK=awk
6437 _ACEOF
6438
6439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6440 # The default lists apply if the user does not specify any file.
6441 ac_need_defaults=:
6442 while test $# != 0
6443 do
6444   case $1 in
6445   --*=*)
6446     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6447     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6448     ac_shift=:
6449     ;;
6450   *)
6451     ac_option=$1
6452     ac_optarg=$2
6453     ac_shift=shift
6454     ;;
6455   esac
6456
6457   case $ac_option in
6458   # Handling of the options.
6459   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6460     ac_cs_recheck=: ;;
6461   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6462     $as_echo "$ac_cs_version"; exit ;;
6463   --debug | --debu | --deb | --de | --d | -d )
6464     debug=: ;;
6465   --file | --fil | --fi | --f )
6466     $ac_shift
6467     case $ac_optarg in
6468     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6469     esac
6470     as_fn_append CONFIG_FILES " '$ac_optarg'"
6471     ac_need_defaults=false;;
6472   --header | --heade | --head | --hea )
6473     $ac_shift
6474     case $ac_optarg in
6475     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6476     esac
6477     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6478     ac_need_defaults=false;;
6479   --he | --h)
6480     # Conflict between --help and --header
6481     as_fn_error "ambiguous option: \`$1'
6482 Try \`$0 --help' for more information.";;
6483   --help | --hel | -h )
6484     $as_echo "$ac_cs_usage"; exit ;;
6485   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6486   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6487     ac_cs_silent=: ;;
6488
6489   # This is an error.
6490   -*) as_fn_error "unrecognized option: \`$1'
6491 Try \`$0 --help' for more information." ;;
6492
6493   *) as_fn_append ac_config_targets " $1"
6494      ac_need_defaults=false ;;
6495
6496   esac
6497   shift
6498 done
6499
6500 ac_configure_extra_args=
6501
6502 if $ac_cs_silent; then
6503   exec 6>/dev/null
6504   ac_configure_extra_args="$ac_configure_extra_args --silent"
6505 fi
6506
6507 _ACEOF
6508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6509 if \$ac_cs_recheck; then
6510   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6511   shift
6512   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6513   CONFIG_SHELL='$SHELL'
6514   export CONFIG_SHELL
6515   exec "\$@"
6516 fi
6517
6518 _ACEOF
6519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6520 exec 5>>config.log
6521 {
6522   echo
6523   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6524 ## Running $as_me. ##
6525 _ASBOX
6526   $as_echo "$ac_log"
6527 } >&5
6528
6529 _ACEOF
6530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6531 #
6532 # INIT-COMMANDS
6533 #
6534 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6535
6536 _ACEOF
6537
6538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6539
6540 # Handling of arguments.
6541 for ac_config_target in $ac_config_targets
6542 do
6543   case $ac_config_target in
6544     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6545     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6546     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6547     "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
6548     "nbd-server.1") CONFIG_FILES="$CONFIG_FILES nbd-server.1" ;;
6549     "nbd-server.5") CONFIG_FILES="$CONFIG_FILES nbd-server.5" ;;
6550     "nbd-client.8") CONFIG_FILES="$CONFIG_FILES nbd-client.8" ;;
6551
6552   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6553   esac
6554 done
6555
6556
6557 # If the user did not use the arguments to specify the items to instantiate,
6558 # then the envvar interface is used.  Set only those that are not.
6559 # We use the long form for the default assignment because of an extremely
6560 # bizarre bug on SunOS 4.1.3.
6561 if $ac_need_defaults; then
6562   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6563   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6564   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6565 fi
6566
6567 # Have a temporary directory for convenience.  Make it in the build tree
6568 # simply because there is no reason against having it here, and in addition,
6569 # creating and moving files from /tmp can sometimes cause problems.
6570 # Hook for its removal unless debugging.
6571 # Note that there is a small window in which the directory will not be cleaned:
6572 # after its creation but before its name has been assigned to `$tmp'.
6573 $debug ||
6574 {
6575   tmp=
6576   trap 'exit_status=$?
6577   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6578 ' 0
6579   trap 'as_fn_exit 1' 1 2 13 15
6580 }
6581 # Create a (secure) tmp directory for tmp files.
6582
6583 {
6584   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6585   test -n "$tmp" && test -d "$tmp"
6586 }  ||
6587 {
6588   tmp=./conf$$-$RANDOM
6589   (umask 077 && mkdir "$tmp")
6590 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6591
6592 # Set up the scripts for CONFIG_FILES section.
6593 # No need to generate them if there are no CONFIG_FILES.
6594 # This happens for instance with `./config.status config.h'.
6595 if test -n "$CONFIG_FILES"; then
6596
6597
6598 ac_cr=`echo X | tr X '\015'`
6599 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6600 # But we know of no other shell where ac_cr would be empty at this
6601 # point, so we can use a bashism as a fallback.
6602 if test "x$ac_cr" = x; then
6603   eval ac_cr=\$\'\\r\'
6604 fi
6605 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6606 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6607   ac_cs_awk_cr='\r'
6608 else
6609   ac_cs_awk_cr=$ac_cr
6610 fi
6611
6612 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6613 _ACEOF
6614
6615
6616 {
6617   echo "cat >conf$$subs.awk <<_ACEOF" &&
6618   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6619   echo "_ACEOF"
6620 } >conf$$subs.sh ||
6621   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6622 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6623 ac_delim='%!_!# '
6624 for ac_last_try in false false false false false :; do
6625   . ./conf$$subs.sh ||
6626     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6627
6628   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6629   if test $ac_delim_n = $ac_delim_num; then
6630     break
6631   elif $ac_last_try; then
6632     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6633   else
6634     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6635   fi
6636 done
6637 rm -f conf$$subs.sh
6638
6639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6640 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6641 _ACEOF
6642 sed -n '
6643 h
6644 s/^/S["/; s/!.*/"]=/
6645 p
6646 g
6647 s/^[^!]*!//
6648 :repl
6649 t repl
6650 s/'"$ac_delim"'$//
6651 t delim
6652 :nl
6653 h
6654 s/\(.\{148\}\).*/\1/
6655 t more1
6656 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6657 p
6658 n
6659 b repl
6660 :more1
6661 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6662 p
6663 g
6664 s/.\{148\}//
6665 t nl
6666 :delim
6667 h
6668 s/\(.\{148\}\).*/\1/
6669 t more2
6670 s/["\\]/\\&/g; s/^/"/; s/$/"/
6671 p
6672 b
6673 :more2
6674 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6675 p
6676 g
6677 s/.\{148\}//
6678 t delim
6679 ' <conf$$subs.awk | sed '
6680 /^[^""]/{
6681   N
6682   s/\n//
6683 }
6684 ' >>$CONFIG_STATUS || ac_write_fail=1
6685 rm -f conf$$subs.awk
6686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6687 _ACAWK
6688 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6689   for (key in S) S_is_set[key] = 1
6690   FS = "\a"
6691
6692 }
6693 {
6694   line = $ 0
6695   nfields = split(line, field, "@")
6696   substed = 0
6697   len = length(field[1])
6698   for (i = 2; i < nfields; i++) {
6699     key = field[i]
6700     keylen = length(key)
6701     if (S_is_set[key]) {
6702       value = S[key]
6703       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6704       len += length(value) + length(field[++i])
6705       substed = 1
6706     } else
6707       len += 1 + keylen
6708   }
6709
6710   print line
6711 }
6712
6713 _ACAWK
6714 _ACEOF
6715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6716 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6717   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6718 else
6719   cat
6720 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6721   || as_fn_error "could not setup config files machinery" "$LINENO" 5
6722 _ACEOF
6723
6724 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6725 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6726 # trailing colons and then remove the whole line if VPATH becomes empty
6727 # (actually we leave an empty line to preserve line numbers).
6728 if test "x$srcdir" = x.; then
6729   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6730 s/:*\$(srcdir):*/:/
6731 s/:*\${srcdir}:*/:/
6732 s/:*@srcdir@:*/:/
6733 s/^\([^=]*=[     ]*\):*/\1/
6734 s/:*$//
6735 s/^[^=]*=[       ]*$//
6736 }'
6737 fi
6738
6739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6740 fi # test -n "$CONFIG_FILES"
6741
6742 # Set up the scripts for CONFIG_HEADERS section.
6743 # No need to generate them if there are no CONFIG_HEADERS.
6744 # This happens for instance with `./config.status Makefile'.
6745 if test -n "$CONFIG_HEADERS"; then
6746 cat >"$tmp/defines.awk" <<\_ACAWK ||
6747 BEGIN {
6748 _ACEOF
6749
6750 # Transform confdefs.h into an awk script `defines.awk', embedded as
6751 # here-document in config.status, that substitutes the proper values into
6752 # config.h.in to produce config.h.
6753
6754 # Create a delimiter string that does not exist in confdefs.h, to ease
6755 # handling of long lines.
6756 ac_delim='%!_!# '
6757 for ac_last_try in false false :; do
6758   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6759   if test -z "$ac_t"; then
6760     break
6761   elif $ac_last_try; then
6762     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6763   else
6764     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6765   fi
6766 done
6767
6768 # For the awk script, D is an array of macro values keyed by name,
6769 # likewise P contains macro parameters if any.  Preserve backslash
6770 # newline sequences.
6771
6772 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6773 sed -n '
6774 s/.\{148\}/&'"$ac_delim"'/g
6775 t rset
6776 :rset
6777 s/^[     ]*#[    ]*define[       ][      ]*/ /
6778 t def
6779 d
6780 :def
6781 s/\\$//
6782 t bsnl
6783 s/["\\]/\\&/g
6784 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6785 D["\1"]=" \3"/p
6786 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6787 d
6788 :bsnl
6789 s/["\\]/\\&/g
6790 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6791 D["\1"]=" \3\\\\\\n"\\/p
6792 t cont
6793 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6794 t cont
6795 d
6796 :cont
6797 n
6798 s/.\{148\}/&'"$ac_delim"'/g
6799 t clear
6800 :clear
6801 s/\\$//
6802 t bsnlc
6803 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6804 d
6805 :bsnlc
6806 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6807 b cont
6808 ' <confdefs.h | sed '
6809 s/'"$ac_delim"'/"\\\
6810 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6811
6812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6813   for (key in D) D_is_set[key] = 1
6814   FS = "\a"
6815 }
6816 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6817   line = \$ 0
6818   split(line, arg, " ")
6819   if (arg[1] == "#") {
6820     defundef = arg[2]
6821     mac1 = arg[3]
6822   } else {
6823     defundef = substr(arg[1], 2)
6824     mac1 = arg[2]
6825   }
6826   split(mac1, mac2, "(") #)
6827   macro = mac2[1]
6828   prefix = substr(line, 1, index(line, defundef) - 1)
6829   if (D_is_set[macro]) {
6830     # Preserve the white space surrounding the "#".
6831     print prefix "define", macro P[macro] D[macro]
6832     next
6833   } else {
6834     # Replace #undef with comments.  This is necessary, for example,
6835     # in the case of _POSIX_SOURCE, which is predefined and required
6836     # on some systems where configure will not decide to define it.
6837     if (defundef == "undef") {
6838       print "/*", prefix defundef, macro, "*/"
6839       next
6840     }
6841   }
6842 }
6843 { print }
6844 _ACAWK
6845 _ACEOF
6846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6847   as_fn_error "could not setup config headers machinery" "$LINENO" 5
6848 fi # test -n "$CONFIG_HEADERS"
6849
6850
6851 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6852 shift
6853 for ac_tag
6854 do
6855   case $ac_tag in
6856   :[FHLC]) ac_mode=$ac_tag; continue;;
6857   esac
6858   case $ac_mode$ac_tag in
6859   :[FHL]*:*);;
6860   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6861   :[FH]-) ac_tag=-:-;;
6862   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6863   esac
6864   ac_save_IFS=$IFS
6865   IFS=:
6866   set x $ac_tag
6867   IFS=$ac_save_IFS
6868   shift
6869   ac_file=$1
6870   shift
6871
6872   case $ac_mode in
6873   :L) ac_source=$1;;
6874   :[FH])
6875     ac_file_inputs=
6876     for ac_f
6877     do
6878       case $ac_f in
6879       -) ac_f="$tmp/stdin";;
6880       *) # Look for the file first in the build tree, then in the source tree
6881          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6882          # because $ac_f cannot contain `:'.
6883          test -f "$ac_f" ||
6884            case $ac_f in
6885            [\\/$]*) false;;
6886            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6887            esac ||
6888            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6889       esac
6890       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6891       as_fn_append ac_file_inputs " '$ac_f'"
6892     done
6893
6894     # Let's still pretend it is `configure' which instantiates (i.e., don't
6895     # use $as_me), people would be surprised to read:
6896     #    /* config.h.  Generated by config.status.  */
6897     configure_input='Generated from '`
6898           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6899         `' by configure.'
6900     if test x"$ac_file" != x-; then
6901       configure_input="$ac_file.  $configure_input"
6902       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6903 $as_echo "$as_me: creating $ac_file" >&6;}
6904     fi
6905     # Neutralize special characters interpreted by sed in replacement strings.
6906     case $configure_input in #(
6907     *\&* | *\|* | *\\* )
6908        ac_sed_conf_input=`$as_echo "$configure_input" |
6909        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6910     *) ac_sed_conf_input=$configure_input;;
6911     esac
6912
6913     case $ac_tag in
6914     *:-:* | *:-) cat >"$tmp/stdin" \
6915       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6916     esac
6917     ;;
6918   esac
6919
6920   ac_dir=`$as_dirname -- "$ac_file" ||
6921 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6922          X"$ac_file" : 'X\(//\)[^/]' \| \
6923          X"$ac_file" : 'X\(//\)$' \| \
6924          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6925 $as_echo X"$ac_file" |
6926     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6927             s//\1/
6928             q
6929           }
6930           /^X\(\/\/\)[^/].*/{
6931             s//\1/
6932             q
6933           }
6934           /^X\(\/\/\)$/{
6935             s//\1/
6936             q
6937           }
6938           /^X\(\/\).*/{
6939             s//\1/
6940             q
6941           }
6942           s/.*/./; q'`
6943   as_dir="$ac_dir"; as_fn_mkdir_p
6944   ac_builddir=.
6945
6946 case "$ac_dir" in
6947 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6948 *)
6949   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6950   # A ".." for each directory in $ac_dir_suffix.
6951   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6952   case $ac_top_builddir_sub in
6953   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6954   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6955   esac ;;
6956 esac
6957 ac_abs_top_builddir=$ac_pwd
6958 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6959 # for backward compatibility:
6960 ac_top_builddir=$ac_top_build_prefix
6961
6962 case $srcdir in
6963   .)  # We are building in place.
6964     ac_srcdir=.
6965     ac_top_srcdir=$ac_top_builddir_sub
6966     ac_abs_top_srcdir=$ac_pwd ;;
6967   [\\/]* | ?:[\\/]* )  # Absolute name.
6968     ac_srcdir=$srcdir$ac_dir_suffix;
6969     ac_top_srcdir=$srcdir
6970     ac_abs_top_srcdir=$srcdir ;;
6971   *) # Relative name.
6972     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6973     ac_top_srcdir=$ac_top_build_prefix$srcdir
6974     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6975 esac
6976 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6977
6978
6979   case $ac_mode in
6980   :F)
6981   #
6982   # CONFIG_FILE
6983   #
6984
6985   case $INSTALL in
6986   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6987   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6988   esac
6989   ac_MKDIR_P=$MKDIR_P
6990   case $MKDIR_P in
6991   [\\/$]* | ?:[\\/]* ) ;;
6992   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6993   esac
6994 _ACEOF
6995
6996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6997 # If the template does not know about datarootdir, expand it.
6998 # FIXME: This hack should be removed a few years after 2.60.
6999 ac_datarootdir_hack=; ac_datarootdir_seen=
7000 ac_sed_dataroot='
7001 /datarootdir/ {
7002   p
7003   q
7004 }
7005 /@datadir@/p
7006 /@docdir@/p
7007 /@infodir@/p
7008 /@localedir@/p
7009 /@mandir@/p'
7010 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7011 *datarootdir*) ac_datarootdir_seen=yes;;
7012 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7013   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7014 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7015 _ACEOF
7016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7017   ac_datarootdir_hack='
7018   s&@datadir@&$datadir&g
7019   s&@docdir@&$docdir&g
7020   s&@infodir@&$infodir&g
7021   s&@localedir@&$localedir&g
7022   s&@mandir@&$mandir&g
7023   s&\\\${datarootdir}&$datarootdir&g' ;;
7024 esac
7025 _ACEOF
7026
7027 # Neutralize VPATH when `$srcdir' = `.'.
7028 # Shell code in configure.ac might set extrasub.
7029 # FIXME: do we really want to maintain this feature?
7030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7031 ac_sed_extra="$ac_vpsub
7032 $extrasub
7033 _ACEOF
7034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7035 :t
7036 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7037 s|@configure_input@|$ac_sed_conf_input|;t t
7038 s&@top_builddir@&$ac_top_builddir_sub&;t t
7039 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7040 s&@srcdir@&$ac_srcdir&;t t
7041 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7042 s&@top_srcdir@&$ac_top_srcdir&;t t
7043 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7044 s&@builddir@&$ac_builddir&;t t
7045 s&@abs_builddir@&$ac_abs_builddir&;t t
7046 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7047 s&@INSTALL@&$ac_INSTALL&;t t
7048 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7049 $ac_datarootdir_hack
7050 "
7051 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7052   || as_fn_error "could not create $ac_file" "$LINENO" 5
7053
7054 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7055   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7056   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7057   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7058 which seems to be undefined.  Please make sure it is defined." >&5
7059 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7060 which seems to be undefined.  Please make sure it is defined." >&2;}
7061
7062   rm -f "$tmp/stdin"
7063   case $ac_file in
7064   -) cat "$tmp/out" && rm -f "$tmp/out";;
7065   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7066   esac \
7067   || as_fn_error "could not create $ac_file" "$LINENO" 5
7068  ;;
7069   :H)
7070   #
7071   # CONFIG_HEADER
7072   #
7073   if test x"$ac_file" != x-; then
7074     {
7075       $as_echo "/* $configure_input  */" \
7076       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7077     } >"$tmp/config.h" \
7078       || as_fn_error "could not create $ac_file" "$LINENO" 5
7079     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7080       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7081 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7082     else
7083       rm -f "$ac_file"
7084       mv "$tmp/config.h" "$ac_file" \
7085         || as_fn_error "could not create $ac_file" "$LINENO" 5
7086     fi
7087   else
7088     $as_echo "/* $configure_input  */" \
7089       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7090       || as_fn_error "could not create -" "$LINENO" 5
7091   fi
7092 # Compute "$ac_file"'s index in $config_headers.
7093 _am_arg="$ac_file"
7094 _am_stamp_count=1
7095 for _am_header in $config_headers :; do
7096   case $_am_header in
7097     $_am_arg | $_am_arg:* )
7098       break ;;
7099     * )
7100       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7101   esac
7102 done
7103 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7104 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7105          X"$_am_arg" : 'X\(//\)[^/]' \| \
7106          X"$_am_arg" : 'X\(//\)$' \| \
7107          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7108 $as_echo X"$_am_arg" |
7109     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7110             s//\1/
7111             q
7112           }
7113           /^X\(\/\/\)[^/].*/{
7114             s//\1/
7115             q
7116           }
7117           /^X\(\/\/\)$/{
7118             s//\1/
7119             q
7120           }
7121           /^X\(\/\).*/{
7122             s//\1/
7123             q
7124           }
7125           s/.*/./; q'`/stamp-h$_am_stamp_count
7126  ;;
7127
7128   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7129 $as_echo "$as_me: executing $ac_file commands" >&6;}
7130  ;;
7131   esac
7132
7133
7134   case $ac_file$ac_mode in
7135     "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
7136 # are listed without --file.  Let's play safe and only enable the eval
7137 # if we detect the quoting.
7138 case $CONFIG_FILES in
7139 *\'*) eval set x "$CONFIG_FILES" ;;
7140 *)   set x $CONFIG_FILES ;;
7141 esac
7142 shift
7143 for mf
7144 do
7145   # Strip MF so we end up with the name of the file.
7146   mf=`echo "$mf" | sed -e 's/:.*$//'`
7147   # Check whether this is an Automake generated Makefile or not.
7148   # We used to match only the files named `Makefile.in', but
7149   # some people rename them; so instead we look at the file content.
7150   # Grep'ing the first line is not enough: some people post-process
7151   # each Makefile.in and add a new line on top of each file to say so.
7152   # Grep'ing the whole file is not good either: AIX grep has a line
7153   # limit of 2048, but all sed's we know have understand at least 4000.
7154   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7155     dirpart=`$as_dirname -- "$mf" ||
7156 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7157          X"$mf" : 'X\(//\)[^/]' \| \
7158          X"$mf" : 'X\(//\)$' \| \
7159          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7160 $as_echo X"$mf" |
7161     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7162             s//\1/
7163             q
7164           }
7165           /^X\(\/\/\)[^/].*/{
7166             s//\1/
7167             q
7168           }
7169           /^X\(\/\/\)$/{
7170             s//\1/
7171             q
7172           }
7173           /^X\(\/\).*/{
7174             s//\1/
7175             q
7176           }
7177           s/.*/./; q'`
7178   else
7179     continue
7180   fi
7181   # Extract the definition of DEPDIR, am__include, and am__quote
7182   # from the Makefile without running `make'.
7183   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7184   test -z "$DEPDIR" && continue
7185   am__include=`sed -n 's/^am__include = //p' < "$mf"`
7186   test -z "am__include" && continue
7187   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7188   # When using ansi2knr, U may be empty or an underscore; expand it
7189   U=`sed -n 's/^U = //p' < "$mf"`
7190   # Find all dependency output files, they are included files with
7191   # $(DEPDIR) in their names.  We invoke sed twice because it is the
7192   # simplest approach to changing $(DEPDIR) to its actual value in the
7193   # expansion.
7194   for file in `sed -n "
7195     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7196        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7197     # Make sure the directory exists.
7198     test -f "$dirpart/$file" && continue
7199     fdir=`$as_dirname -- "$file" ||
7200 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7201          X"$file" : 'X\(//\)[^/]' \| \
7202          X"$file" : 'X\(//\)$' \| \
7203          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7204 $as_echo X"$file" |
7205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7206             s//\1/
7207             q
7208           }
7209           /^X\(\/\/\)[^/].*/{
7210             s//\1/
7211             q
7212           }
7213           /^X\(\/\/\)$/{
7214             s//\1/
7215             q
7216           }
7217           /^X\(\/\).*/{
7218             s//\1/
7219             q
7220           }
7221           s/.*/./; q'`
7222     as_dir=$dirpart/$fdir; as_fn_mkdir_p
7223     # echo "creating $dirpart/$file"
7224     echo '# dummy' > "$dirpart/$file"
7225   done
7226 done
7227  ;;
7228
7229   esac
7230 done # for ac_tag
7231
7232
7233 as_fn_exit 0
7234 _ACEOF
7235 ac_clean_files=$ac_clean_files_save
7236
7237 test $ac_write_fail = 0 ||
7238   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7239
7240
7241 # configure is writing to config.log, and then calls config.status.
7242 # config.status does its own redirection, appending to config.log.
7243 # Unfortunately, on DOS this fails, as config.log is still kept open
7244 # by configure, so config.status won't be able to write to it; its
7245 # output is simply discarded.  So we exec the FD to /dev/null,
7246 # effectively closing config.log, so it can be properly (re)opened and
7247 # appended to by config.status.  When coming back to configure, we
7248 # need to make the FD available again.
7249 if test "$no_create" != yes; then
7250   ac_cs_success=:
7251   ac_config_status_args=
7252   test "$silent" = yes &&
7253     ac_config_status_args="$ac_config_status_args --quiet"
7254   exec 5>/dev/null
7255   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7256   exec 5>>config.log
7257   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7258   # would make configure fail if this is the last instruction.
7259   $ac_cs_success || as_fn_exit $?
7260 fi
7261 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7262   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7263 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7264 fi
7265
7266