xref: /dragonfly/contrib/lvm2/dist/configure (revision 0085a56d)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83  as_unset=unset
84else
85  as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order.  Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" ""	$as_nl"
95
96# Find who we are.  Look in the path if we contain no directory separator.
97case $0 in
98  *[\\/]* ) as_myself=$0 ;;
99  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102  IFS=$as_save_IFS
103  test -z "$as_dir" && as_dir=.
104  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108     ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113  as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117  { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137  as_expr=expr
138else
139  as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143  as_basename=basename
144else
145  as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152	 X"$0" : 'X\(//\)$' \| \
153	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155    sed '/^.*\/\([^/][^/]*\)\/*$/{
156	    s//\1/
157	    q
158	  }
159	  /^X\/\(\/\/\)$/{
160	    s//\1/
161	    q
162	  }
163	  /^X\/\(\/\).*/{
164	    s//\1/
165	    q
166	  }
167	  s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174  if (eval ":") 2>/dev/null; then
175  as_have_required=yes
176else
177  as_have_required=no
178fi
179
180  if test $as_have_required = yes &&	 (eval ":
181(as_func_return () {
182  (exit \$1)
183}
184as_func_success () {
185  as_func_return 0
186}
187as_func_failure () {
188  as_func_return 1
189}
190as_func_ret_success () {
191  return 0
192}
193as_func_ret_failure () {
194  return 1
195}
196
197exitcode=0
198if as_func_success; then
199  :
200else
201  exitcode=1
202  echo as_func_success failed.
203fi
204
205if as_func_failure; then
206  exitcode=1
207  echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211  :
212else
213  exitcode=1
214  echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218  exitcode=1
219  echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223  :
224else
225  exitcode=1
226  echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232  as_lineno_1=\$LINENO
233  as_lineno_2=\$LINENO
234  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237  :
238else
239  as_candidate_shells=
240    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243  IFS=$as_save_IFS
244  test -z "$as_dir" && as_dir=.
245  case $as_dir in
246	 /*)
247	   for as_base in sh bash ksh sh5; do
248	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249	   done;;
250       esac
251done
252IFS=$as_save_IFS
253
254
255      for as_shell in $as_candidate_shells $SHELL; do
256	 # Try only shells that exist, to save several forks.
257	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in
268  *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277  CONFIG_SHELL=$as_shell
278	       as_have_required=yes
279	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281  emulate sh
282  NULLCMD=:
283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284  # is contrary to our usage.  Disable this feature.
285  alias -g '${1+"$@"}'='"$@"'
286  setopt NO_GLOB_SUBST
287else
288  case `(set -o) 2>/dev/null` in
289  *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297  (exit $1)
298}
299as_func_success () {
300  as_func_return 0
301}
302as_func_failure () {
303  as_func_return 1
304}
305as_func_ret_success () {
306  return 0
307}
308as_func_ret_failure () {
309  return 1
310}
311
312exitcode=0
313if as_func_success; then
314  :
315else
316  exitcode=1
317  echo as_func_success failed.
318fi
319
320if as_func_failure; then
321  exitcode=1
322  echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326  :
327else
328  exitcode=1
329  echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333  exitcode=1
334  echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338  :
339else
340  exitcode=1
341  echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347  as_lineno_1=$LINENO
348  as_lineno_2=$LINENO
349  test "x$as_lineno_1" != "x$as_lineno_2" &&
350  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354  break
355fi
356
357fi
358
359      done
360
361      if test "x$CONFIG_SHELL" != x; then
362  for as_var in BASH_ENV ENV
363	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364	done
365	export CONFIG_SHELL
366	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370    if test $as_have_required = no; then
371  echo This script requires a shell more modern than all the
372      echo shells that I found on your system.  Please install a
373      echo modern shell, or manually run the script under such a
374      echo shell if you do have one.
375      { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386  (exit \$1)
387}
388as_func_success () {
389  as_func_return 0
390}
391as_func_failure () {
392  as_func_return 1
393}
394as_func_ret_success () {
395  return 0
396}
397as_func_ret_failure () {
398  return 1
399}
400
401exitcode=0
402if as_func_success; then
403  :
404else
405  exitcode=1
406  echo as_func_success failed.
407fi
408
409if as_func_failure; then
410  exitcode=1
411  echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415  :
416else
417  exitcode=1
418  echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422  exitcode=1
423  echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427  :
428else
429  exitcode=1
430  echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434  echo No shell found that supports shell functions.
435  echo Please tell bug-autoconf@gnu.org about your system,
436  echo including any error possibly output before this message.
437  echo This can help us improve future autoconf versions.
438  echo Configuration will now proceed without shell functions.
439}
440
441
442
443  as_lineno_1=$LINENO
444  as_lineno_2=$LINENO
445  test "x$as_lineno_1" != "x$as_lineno_2" &&
446  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449  # uniformly replaced by the line number.  The first 'sed' inserts a
450  # line-number line after each line using $LINENO; the second 'sed'
451  # does the real work.  The second script uses 'N' to pair each
452  # line-number line with the line containing $LINENO, and appends
453  # trailing '-' during substitution so that $LINENO is not a special
454  # case at line end.
455  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457  # E. McMahon (1931-1989) for sed's syntax.  :-)
458  sed -n '
459    p
460    /[$]LINENO/=
461  ' <$as_myself |
462    sed '
463      s/[$]LINENO.*/&-/
464      t lineno
465      b
466      :lineno
467      N
468      :loop
469      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470      t loop
471      s/-\n.*//
472    ' >$as_me.lineno &&
473  chmod +x "$as_me.lineno" ||
474    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475   { (exit 1); exit 1; }; }
476
477  # Don't try to exec as it changes $[0], causing all sort of problems
478  # (the dirname of $[0] is not the place where we might find the
479  # original and so on.  Autoconf is especially sensitive to this).
480  . "./$as_me.lineno"
481  # Exit status is that of the last command.
482  exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487  as_dirname=dirname
488else
489  as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495  case `echo 'x\c'` in
496  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497  *)   ECHO_C='\c';;
498  esac;;
499*)
500  ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504  as_expr=expr
505else
506  as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511  rm -f conf$$.dir/conf$$.file
512else
513  rm -f conf$$.dir
514  mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517  if ln -s conf$$.file conf$$ 2>/dev/null; then
518    as_ln_s='ln -s'
519    # ... but there are two gotchas:
520    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522    # In both cases, we have to default to `cp -p'.
523    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524      as_ln_s='cp -p'
525  elif ln conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s=ln
527  else
528    as_ln_s='cp -p'
529  fi
530else
531  as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537  as_mkdir_p=:
538else
539  test -d ./-p && rmdir ./-p
540  as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544  as_test_x='test -x'
545else
546  if ls -dL / >/dev/null 2>&1; then
547    as_ls_L_option=L
548  else
549    as_ls_L_option=
550  fi
551  as_test_x='
552    eval sh -c '\''
553      if test -d "$1"; then
554	test -d "$1/.";
555      else
556	case $1 in
557	-*)set "./$1";;
558	esac;
559	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560	???[sx]*):;;*)false;;esac;fi
561    '\'' sh
562  '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574exec 7<&0 </dev/null 6>&1
575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581#
582# Initializations.
583#
584ac_default_prefix=/usr/local
585ac_clean_files=
586ac_config_libobj_dir=.
587LIBOBJS=
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="lib/device/dev-cache.h"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
605#ifdef HAVE_SYS_TYPES_H
606# include <sys/types.h>
607#endif
608#ifdef HAVE_SYS_STAT_H
609# include <sys/stat.h>
610#endif
611#ifdef STDC_HEADERS
612# include <stdlib.h>
613# include <stddef.h>
614#else
615# ifdef HAVE_STDLIB_H
616#  include <stdlib.h>
617# endif
618#endif
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621#  include <memory.h>
622# endif
623# include <string.h>
624#endif
625#ifdef HAVE_STRINGS_H
626# include <strings.h>
627#endif
628#ifdef HAVE_INTTYPES_H
629# include <inttypes.h>
630#endif
631#ifdef HAVE_STDINT_H
632# include <stdint.h>
633#endif
634#ifdef HAVE_UNISTD_H
635# include <unistd.h>
636#endif"
637
638ac_default_prefix=/usr
639ac_subst_vars='LTLIBOBJS
640usrsbindir
641usrlibdir
642udevdir
643udev_prefix
644tmpdir
645kernelvsn
646missingkernel
647kerneldir
648interface
649LIB_PTHREAD
650UDEV_RULES
651STATIC_LINK
652STATICDIR
653SNAPSHOTS
654SELINUX_LIBS
655POOL
656PKGCONFIG
657OWNER
658MIRRORS
659LVM_RELEASE_DATE
660LVM_RELEASE
661LVM_PATCHLEVEL
662LVM_MINOR
663LVM_MAJOR
664LVM_LIBAPI
665LVM_VERSION
666LVM1_FALLBACK
667LVM1
668LOCALEDIR
669LIB_SUFFIX
670LDDEPS
671JOBS
672INTL_PACKAGE
673INTL
674HAVE_SELINUX
675HAVE_REALTIME
676HAVE_LIBDL
677GROUP
678FSADM
679DM_LIB_PATCHLEVEL
680DM_LIB_VERSION
681DM_IOCTLS
682DM_DEVICE_UID
683DM_DEVICE_MODE
684DM_DEVICE_GID
685DM_COMPAT
686DMEVENTD
687DEVMAPPER
688DEBUG
689COPTIMISE_FLAG
690CONFDIR
691CMDLIB
692CLVMD
693CLUSTER
694CLDWHOLEARCHIVE
695CLDNOWHOLEARCHIVE
696CLDFLAGS
697BUILD_DMEVENTD
698BUILD_CMIRRORD
699APPLIB
700MODPROBE_CMD
701MSGFMT
702LVM2CMD_LIB
703LVM2APP_LIB
704GENHTML
705LCOV
706SACKPT_LIBS
707SACKPT_CFLAGS
708DLM_LIBS
709DLM_CFLAGS
710CPG_LIBS
711CPG_CFLAGS
712CONFDB_LIBS
713CONFDB_CFLAGS
714SALCK_LIBS
715SALCK_CFLAGS
716QUORUM_LIBS
717QUORUM_CFLAGS
718COROSYNC_LIBS
719COROSYNC_CFLAGS
720CMAN_LIBS
721CMAN_CFLAGS
722GULM_LIBS
723GULM_CFLAGS
724CCS_LIBS
725CCS_CFLAGS
726PKGCONFIGINIT_LIBS
727PKGCONFIGINIT_CFLAGS
728PKG_CONFIG
729POW_LIB
730LIBOBJS
731ALLOCA
732CSCOPE_CMD
733CFLOW_CMD
734RANLIB
735MKDIR_P
736SET_MAKE
737LN_S
738INSTALL_DATA
739INSTALL_SCRIPT
740INSTALL_PROGRAM
741EGREP
742GREP
743CPP
744OBJEXT
745EXEEXT
746ac_ct_CC
747CPPFLAGS
748LDFLAGS
749CFLAGS
750CC
751AWK
752SED
753target_os
754target_vendor
755target_cpu
756target
757host_os
758host_vendor
759host_cpu
760host
761build_os
762build_vendor
763build_cpu
764build
765target_alias
766host_alias
767build_alias
768LIBS
769ECHO_T
770ECHO_N
771ECHO_C
772DEFS
773mandir
774localedir
775libdir
776psdir
777pdfdir
778dvidir
779htmldir
780infodir
781docdir
782oldincludedir
783includedir
784localstatedir
785sharedstatedir
786sysconfdir
787datadir
788datarootdir
789libexecdir
790sbindir
791bindir
792program_transform_name
793prefix
794exec_prefix
795PACKAGE_BUGREPORT
796PACKAGE_STRING
797PACKAGE_VERSION
798PACKAGE_TARNAME
799PACKAGE_NAME
800PATH_SEPARATOR
801SHELL'
802ac_subst_files=''
803ac_user_opts='
804enable_option_checking
805enable_static_link
806with_user
807with_group
808with_device_uid
809with_device_gid
810with_device_mode
811enable_lvm1_fallback
812with_lvm1
813with_pool
814with_cluster
815with_snapshots
816with_mirrors
817enable_readline
818enable_realtime
819with_clvmd
820enable_cmirrord
821with_cmirrord_pidfile
822enable_debug
823with_optimisation
824enable_profiling
825enable_devmapper
826enable_udev_sync
827enable_udev_rules
828enable_compat
829enable_units_compat
830enable_ioctl
831enable_o_direct
832enable_applib
833enable_cmdlib
834enable_pkgconfig
835enable_fsadm
836enable_dmeventd
837enable_selinux
838enable_nls
839with_localedir
840with_confdir
841with_staticdir
842with_usrlibdir
843with_usrsbindir
844with_udev_prefix
845with_udevdir
846with_dmeventd_pidfile
847with_dmeventd_path
848with_interface
849'
850      ac_precious_vars='build_alias
851host_alias
852target_alias
853CC
854CFLAGS
855LDFLAGS
856LIBS
857CPPFLAGS
858CPP
859PKG_CONFIG
860PKGCONFIGINIT_CFLAGS
861PKGCONFIGINIT_LIBS
862CCS_CFLAGS
863CCS_LIBS
864GULM_CFLAGS
865GULM_LIBS
866CMAN_CFLAGS
867CMAN_LIBS
868COROSYNC_CFLAGS
869COROSYNC_LIBS
870QUORUM_CFLAGS
871QUORUM_LIBS
872SALCK_CFLAGS
873SALCK_LIBS
874CONFDB_CFLAGS
875CONFDB_LIBS
876CPG_CFLAGS
877CPG_LIBS
878DLM_CFLAGS
879DLM_LIBS
880SACKPT_CFLAGS
881SACKPT_LIBS'
882
883
884# Initialize some variables set by options.
885ac_init_help=
886ac_init_version=false
887ac_unrecognized_opts=
888ac_unrecognized_sep=
889# The variables have the same names as the options, with
890# dashes changed to underlines.
891cache_file=/dev/null
892exec_prefix=NONE
893no_create=
894no_recursion=
895prefix=NONE
896program_prefix=NONE
897program_suffix=NONE
898program_transform_name=s,x,x,
899silent=
900site=
901srcdir=
902verbose=
903x_includes=NONE
904x_libraries=NONE
905
906# Installation directory options.
907# These are left unexpanded so users can "make install exec_prefix=/foo"
908# and all the variables that are supposed to be based on exec_prefix
909# by default will actually change.
910# Use braces instead of parens because sh, perl, etc. also accept them.
911# (The list follows the same order as the GNU Coding Standards.)
912bindir='${exec_prefix}/bin'
913sbindir='${exec_prefix}/sbin'
914libexecdir='${exec_prefix}/libexec'
915datarootdir='${prefix}/share'
916datadir='${datarootdir}'
917sysconfdir='${prefix}/etc'
918sharedstatedir='${prefix}/com'
919localstatedir='${prefix}/var'
920includedir='${prefix}/include'
921oldincludedir='/usr/include'
922docdir='${datarootdir}/doc/${PACKAGE}'
923infodir='${datarootdir}/info'
924htmldir='${docdir}'
925dvidir='${docdir}'
926pdfdir='${docdir}'
927psdir='${docdir}'
928libdir='${exec_prefix}/lib'
929localedir='${datarootdir}/locale'
930mandir='${datarootdir}/man'
931
932ac_prev=
933ac_dashdash=
934for ac_option
935do
936  # If the previous option needs an argument, assign it.
937  if test -n "$ac_prev"; then
938    eval $ac_prev=\$ac_option
939    ac_prev=
940    continue
941  fi
942
943  case $ac_option in
944  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945  *)	ac_optarg=yes ;;
946  esac
947
948  # Accept the important Cygnus configure options, so we can diagnose typos.
949
950  case $ac_dashdash$ac_option in
951  --)
952    ac_dashdash=yes ;;
953
954  -bindir | --bindir | --bindi | --bind | --bin | --bi)
955    ac_prev=bindir ;;
956  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
957    bindir=$ac_optarg ;;
958
959  -build | --build | --buil | --bui | --bu)
960    ac_prev=build_alias ;;
961  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962    build_alias=$ac_optarg ;;
963
964  -cache-file | --cache-file | --cache-fil | --cache-fi \
965  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966    ac_prev=cache_file ;;
967  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969    cache_file=$ac_optarg ;;
970
971  --config-cache | -C)
972    cache_file=config.cache ;;
973
974  -datadir | --datadir | --datadi | --datad)
975    ac_prev=datadir ;;
976  -datadir=* | --datadir=* | --datadi=* | --datad=*)
977    datadir=$ac_optarg ;;
978
979  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980  | --dataroo | --dataro | --datar)
981    ac_prev=datarootdir ;;
982  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984    datarootdir=$ac_optarg ;;
985
986  -disable-* | --disable-*)
987    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988    # Reject names that are not valid shell variable names.
989    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
991   { (exit 1); exit 1; }; }
992    ac_useropt_orig=$ac_useropt
993    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994    case $ac_user_opts in
995      *"
996"enable_$ac_useropt"
997"*) ;;
998      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999	 ac_unrecognized_sep=', ';;
1000    esac
1001    eval enable_$ac_useropt=no ;;
1002
1003  -docdir | --docdir | --docdi | --doc | --do)
1004    ac_prev=docdir ;;
1005  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006    docdir=$ac_optarg ;;
1007
1008  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009    ac_prev=dvidir ;;
1010  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011    dvidir=$ac_optarg ;;
1012
1013  -enable-* | --enable-*)
1014    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015    # Reject names that are not valid shell variable names.
1016    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1018   { (exit 1); exit 1; }; }
1019    ac_useropt_orig=$ac_useropt
1020    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021    case $ac_user_opts in
1022      *"
1023"enable_$ac_useropt"
1024"*) ;;
1025      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026	 ac_unrecognized_sep=', ';;
1027    esac
1028    eval enable_$ac_useropt=\$ac_optarg ;;
1029
1030  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032  | --exec | --exe | --ex)
1033    ac_prev=exec_prefix ;;
1034  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036  | --exec=* | --exe=* | --ex=*)
1037    exec_prefix=$ac_optarg ;;
1038
1039  -gas | --gas | --ga | --g)
1040    # Obsolete; use --with-gas.
1041    with_gas=yes ;;
1042
1043  -help | --help | --hel | --he | -h)
1044    ac_init_help=long ;;
1045  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046    ac_init_help=recursive ;;
1047  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048    ac_init_help=short ;;
1049
1050  -host | --host | --hos | --ho)
1051    ac_prev=host_alias ;;
1052  -host=* | --host=* | --hos=* | --ho=*)
1053    host_alias=$ac_optarg ;;
1054
1055  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056    ac_prev=htmldir ;;
1057  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058  | --ht=*)
1059    htmldir=$ac_optarg ;;
1060
1061  -includedir | --includedir | --includedi | --included | --include \
1062  | --includ | --inclu | --incl | --inc)
1063    ac_prev=includedir ;;
1064  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065  | --includ=* | --inclu=* | --incl=* | --inc=*)
1066    includedir=$ac_optarg ;;
1067
1068  -infodir | --infodir | --infodi | --infod | --info | --inf)
1069    ac_prev=infodir ;;
1070  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071    infodir=$ac_optarg ;;
1072
1073  -libdir | --libdir | --libdi | --libd)
1074    ac_prev=libdir ;;
1075  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076    libdir=$ac_optarg ;;
1077
1078  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079  | --libexe | --libex | --libe)
1080    ac_prev=libexecdir ;;
1081  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082  | --libexe=* | --libex=* | --libe=*)
1083    libexecdir=$ac_optarg ;;
1084
1085  -localedir | --localedir | --localedi | --localed | --locale)
1086    ac_prev=localedir ;;
1087  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088    localedir=$ac_optarg ;;
1089
1090  -localstatedir | --localstatedir | --localstatedi | --localstated \
1091  | --localstate | --localstat | --localsta | --localst | --locals)
1092    ac_prev=localstatedir ;;
1093  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095    localstatedir=$ac_optarg ;;
1096
1097  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098    ac_prev=mandir ;;
1099  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100    mandir=$ac_optarg ;;
1101
1102  -nfp | --nfp | --nf)
1103    # Obsolete; use --without-fp.
1104    with_fp=no ;;
1105
1106  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107  | --no-cr | --no-c | -n)
1108    no_create=yes ;;
1109
1110  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112    no_recursion=yes ;;
1113
1114  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116  | --oldin | --oldi | --old | --ol | --o)
1117    ac_prev=oldincludedir ;;
1118  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121    oldincludedir=$ac_optarg ;;
1122
1123  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124    ac_prev=prefix ;;
1125  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126    prefix=$ac_optarg ;;
1127
1128  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129  | --program-pre | --program-pr | --program-p)
1130    ac_prev=program_prefix ;;
1131  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133    program_prefix=$ac_optarg ;;
1134
1135  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136  | --program-suf | --program-su | --program-s)
1137    ac_prev=program_suffix ;;
1138  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140    program_suffix=$ac_optarg ;;
1141
1142  -program-transform-name | --program-transform-name \
1143  | --program-transform-nam | --program-transform-na \
1144  | --program-transform-n | --program-transform- \
1145  | --program-transform | --program-transfor \
1146  | --program-transfo | --program-transf \
1147  | --program-trans | --program-tran \
1148  | --progr-tra | --program-tr | --program-t)
1149    ac_prev=program_transform_name ;;
1150  -program-transform-name=* | --program-transform-name=* \
1151  | --program-transform-nam=* | --program-transform-na=* \
1152  | --program-transform-n=* | --program-transform-=* \
1153  | --program-transform=* | --program-transfor=* \
1154  | --program-transfo=* | --program-transf=* \
1155  | --program-trans=* | --program-tran=* \
1156  | --progr-tra=* | --program-tr=* | --program-t=*)
1157    program_transform_name=$ac_optarg ;;
1158
1159  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160    ac_prev=pdfdir ;;
1161  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162    pdfdir=$ac_optarg ;;
1163
1164  -psdir | --psdir | --psdi | --psd | --ps)
1165    ac_prev=psdir ;;
1166  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167    psdir=$ac_optarg ;;
1168
1169  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170  | -silent | --silent | --silen | --sile | --sil)
1171    silent=yes ;;
1172
1173  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174    ac_prev=sbindir ;;
1175  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176  | --sbi=* | --sb=*)
1177    sbindir=$ac_optarg ;;
1178
1179  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181  | --sharedst | --shareds | --shared | --share | --shar \
1182  | --sha | --sh)
1183    ac_prev=sharedstatedir ;;
1184  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187  | --sha=* | --sh=*)
1188    sharedstatedir=$ac_optarg ;;
1189
1190  -site | --site | --sit)
1191    ac_prev=site ;;
1192  -site=* | --site=* | --sit=*)
1193    site=$ac_optarg ;;
1194
1195  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196    ac_prev=srcdir ;;
1197  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198    srcdir=$ac_optarg ;;
1199
1200  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201  | --syscon | --sysco | --sysc | --sys | --sy)
1202    ac_prev=sysconfdir ;;
1203  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205    sysconfdir=$ac_optarg ;;
1206
1207  -target | --target | --targe | --targ | --tar | --ta | --t)
1208    ac_prev=target_alias ;;
1209  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210    target_alias=$ac_optarg ;;
1211
1212  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213    verbose=yes ;;
1214
1215  -version | --version | --versio | --versi | --vers | -V)
1216    ac_init_version=: ;;
1217
1218  -with-* | --with-*)
1219    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220    # Reject names that are not valid shell variable names.
1221    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1223   { (exit 1); exit 1; }; }
1224    ac_useropt_orig=$ac_useropt
1225    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226    case $ac_user_opts in
1227      *"
1228"with_$ac_useropt"
1229"*) ;;
1230      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231	 ac_unrecognized_sep=', ';;
1232    esac
1233    eval with_$ac_useropt=\$ac_optarg ;;
1234
1235  -without-* | --without-*)
1236    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237    # Reject names that are not valid shell variable names.
1238    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1240   { (exit 1); exit 1; }; }
1241    ac_useropt_orig=$ac_useropt
1242    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243    case $ac_user_opts in
1244      *"
1245"with_$ac_useropt"
1246"*) ;;
1247      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248	 ac_unrecognized_sep=', ';;
1249    esac
1250    eval with_$ac_useropt=no ;;
1251
1252  --x)
1253    # Obsolete; use --with-x.
1254    with_x=yes ;;
1255
1256  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257  | --x-incl | --x-inc | --x-in | --x-i)
1258    ac_prev=x_includes ;;
1259  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261    x_includes=$ac_optarg ;;
1262
1263  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265    ac_prev=x_libraries ;;
1266  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268    x_libraries=$ac_optarg ;;
1269
1270  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1271Try \`$0 --help' for more information." >&2
1272   { (exit 1); exit 1; }; }
1273    ;;
1274
1275  *=*)
1276    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277    # Reject names that are not valid shell variable names.
1278    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1279      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1280   { (exit 1); exit 1; }; }
1281    eval $ac_envvar=\$ac_optarg
1282    export $ac_envvar ;;
1283
1284  *)
1285    # FIXME: should be removed in autoconf 3.0.
1286    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1290    ;;
1291
1292  esac
1293done
1294
1295if test -n "$ac_prev"; then
1296  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1297  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1298   { (exit 1); exit 1; }; }
1299fi
1300
1301if test -n "$ac_unrecognized_opts"; then
1302  case $enable_option_checking in
1303    no) ;;
1304    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1305   { (exit 1); exit 1; }; } ;;
1306    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1307  esac
1308fi
1309
1310# Check all directory arguments for consistency.
1311for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312		datadir sysconfdir sharedstatedir localstatedir includedir \
1313		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314		libdir localedir mandir
1315do
1316  eval ac_val=\$$ac_var
1317  # Remove trailing slashes.
1318  case $ac_val in
1319    */ )
1320      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321      eval $ac_var=\$ac_val;;
1322  esac
1323  # Be sure to have absolute directory names.
1324  case $ac_val in
1325    [\\/$]* | ?:[\\/]* )  continue;;
1326    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327  esac
1328  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1329   { (exit 1); exit 1; }; }
1330done
1331
1332# There might be people who depend on the old broken behavior: `$host'
1333# used to hold the argument of --host etc.
1334# FIXME: To remove some day.
1335build=$build_alias
1336host=$host_alias
1337target=$target_alias
1338
1339# FIXME: To remove some day.
1340if test "x$host_alias" != x; then
1341  if test "x$build_alias" = x; then
1342    cross_compiling=maybe
1343    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1344    If a cross compiler is detected then cross compile mode will be used." >&2
1345  elif test "x$build_alias" != "x$host_alias"; then
1346    cross_compiling=yes
1347  fi
1348fi
1349
1350ac_tool_prefix=
1351test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352
1353test "$silent" = yes && exec 6>/dev/null
1354
1355
1356ac_pwd=`pwd` && test -n "$ac_pwd" &&
1357ac_ls_di=`ls -di .` &&
1358ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1359  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1360   { (exit 1); exit 1; }; }
1361test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1362  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1363   { (exit 1); exit 1; }; }
1364
1365
1366# Find the source files, if location was not specified.
1367if test -z "$srcdir"; then
1368  ac_srcdir_defaulted=yes
1369  # Try the directory containing this script, then the parent directory.
1370  ac_confdir=`$as_dirname -- "$as_myself" ||
1371$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372	 X"$as_myself" : 'X\(//\)[^/]' \| \
1373	 X"$as_myself" : 'X\(//\)$' \| \
1374	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375$as_echo X"$as_myself" |
1376    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377	    s//\1/
1378	    q
1379	  }
1380	  /^X\(\/\/\)[^/].*/{
1381	    s//\1/
1382	    q
1383	  }
1384	  /^X\(\/\/\)$/{
1385	    s//\1/
1386	    q
1387	  }
1388	  /^X\(\/\).*/{
1389	    s//\1/
1390	    q
1391	  }
1392	  s/.*/./; q'`
1393  srcdir=$ac_confdir
1394  if test ! -r "$srcdir/$ac_unique_file"; then
1395    srcdir=..
1396  fi
1397else
1398  ac_srcdir_defaulted=no
1399fi
1400if test ! -r "$srcdir/$ac_unique_file"; then
1401  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1403   { (exit 1); exit 1; }; }
1404fi
1405ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406ac_abs_confdir=`(
1407	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1408   { (exit 1); exit 1; }; }
1409	pwd)`
1410# When building in place, set srcdir=.
1411if test "$ac_abs_confdir" = "$ac_pwd"; then
1412  srcdir=.
1413fi
1414# Remove unnecessary trailing slashes from srcdir.
1415# Double slashes in file names in object file debugging info
1416# mess up M-x gdb in Emacs.
1417case $srcdir in
1418*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419esac
1420for ac_var in $ac_precious_vars; do
1421  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422  eval ac_env_${ac_var}_value=\$${ac_var}
1423  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425done
1426
1427#
1428# Report the --help message.
1429#
1430if test "$ac_init_help" = "long"; then
1431  # Omit some internal or obsolete options to make the list less imposing.
1432  # This message is too long to be a string in the A/UX 3.1 sh.
1433  cat <<_ACEOF
1434\`configure' configures this package to adapt to many kinds of systems.
1435
1436Usage: $0 [OPTION]... [VAR=VALUE]...
1437
1438To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439VAR=VALUE.  See below for descriptions of some of the useful variables.
1440
1441Defaults for the options are specified in brackets.
1442
1443Configuration:
1444  -h, --help              display this help and exit
1445      --help=short        display options specific to this package
1446      --help=recursive    display the short help of all the included packages
1447  -V, --version           display version information and exit
1448  -q, --quiet, --silent   do not print \`checking...' messages
1449      --cache-file=FILE   cache test results in FILE [disabled]
1450  -C, --config-cache      alias for \`--cache-file=config.cache'
1451  -n, --no-create         do not create output files
1452      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1453
1454Installation directories:
1455  --prefix=PREFIX         install architecture-independent files in PREFIX
1456                          [$ac_default_prefix]
1457  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1458                          [PREFIX]
1459
1460By default, \`make install' will install all the files in
1461\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1462an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463for instance \`--prefix=\$HOME'.
1464
1465For better control, use the options below.
1466
1467Fine tuning of the installation directories:
1468  --bindir=DIR            user executables [EPREFIX/bin]
1469  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1470  --libexecdir=DIR        program executables [EPREFIX/libexec]
1471  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1472  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1473  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1474  --libdir=DIR            object code libraries [EPREFIX/lib]
1475  --includedir=DIR        C header files [PREFIX/include]
1476  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1477  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1478  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1479  --infodir=DIR           info documentation [DATAROOTDIR/info]
1480  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1481  --mandir=DIR            man documentation [DATAROOTDIR/man]
1482  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1483  --htmldir=DIR           html documentation [DOCDIR]
1484  --dvidir=DIR            dvi documentation [DOCDIR]
1485  --pdfdir=DIR            pdf documentation [DOCDIR]
1486  --psdir=DIR             ps documentation [DOCDIR]
1487_ACEOF
1488
1489  cat <<\_ACEOF
1490
1491System types:
1492  --build=BUILD     configure for building on BUILD [guessed]
1493  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1494  --target=TARGET   configure for building compilers for TARGET [HOST]
1495_ACEOF
1496fi
1497
1498if test -n "$ac_init_help"; then
1499
1500  cat <<\_ACEOF
1501
1502Optional Features:
1503  --disable-option-checking  ignore unrecognized --enable/--with options
1504  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1505  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1506  --enable-static_link    Use this to link the tools to their libraries
1507                          statically.  Default is dynamic linking
1508  --enable-lvm1_fallback  Use this to fall back and use LVM1 binaries if
1509                          device-mapper is missing from the kernel
1510  --disable-readline      Disable readline support
1511  --enable-realtime       Enable realtime clock support
1512  --enable-cmirrord       Enable the cluster mirror log daemon
1513  --enable-debug          Enable debugging
1514  --enable-profiling      Gather gcov profiling data
1515  --disable-devmapper     Disable LVM2 device-mapper interaction
1516  --enable-udev_sync      Enable synchronisation with udev processing
1517  --enable-udev_rules     Install rule files needed for udev synchronisation
1518  --enable-compat         Enable support for old device-mapper versions
1519  --enable-units-compat   Enable output compatibility with old versions that
1520                          that don't use KiB-style unit suffixes
1521  --disable-driver        Disable calls to device-mapper in the kernel
1522  --disable-o_direct      Disable O_DIRECT
1523  --enable-applib         Build application library
1524  --enable-cmdlib         Build shared command library
1525  --enable-pkgconfig      Install pkgconfig support
1526  --enable-fsadm          Enable fsadm
1527  --enable-dmeventd       Enable the device-mapper event daemon
1528  --disable-selinux       Disable selinux support
1529  --enable-nls            Enable Native Language Support
1530
1531Optional Packages:
1532  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1533  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1534  --with-user=USER        Set the owner of installed files [USER=]
1535  --with-group=GROUP      Set the group owner of installed files [GROUP=]
1536  --with-device-uid=UID   Set the owner used for new device nodes [UID=0]
1537  --with-device-gid=UID   Set the group used for new device nodes [GID=0]
1538  --with-device-mode=MODE Set the mode used for new device nodes [MODE=0600]
1539  --with-lvm1=TYPE        LVM1 metadata support: internal/shared/none
1540                          TYPE=internal
1541  --with-pool=TYPE        GFS pool read-only support: internal/shared/none
1542                          TYPE=internal
1543  --with-cluster=TYPE     Cluster LVM locking support: internal/shared/none
1544                          TYPE=internal
1545  --with-snapshots=TYPE   Snapshot support: internal/shared/none
1546                          TYPE=internal
1547  --with-mirrors=TYPE     Mirror support: internal/shared/none
1548                          TYPE=internal
1549  --with-clvmd=TYPE       Build cluster LVM Daemon.
1550                          The following cluster manager combinations are valid:
1551                           * cman,gulm             (RHEL4 or equivalent)
1552                           * cman                  (RHEL5 or equivalent)
1553                           * cman,corosync,openais (or selection of them)
1554                           * all                   (autodetect)
1555                           * none                  (disable build)
1556                          TYPE=none
1557  --with-cmirrord-pidfile=PATH    cmirrord pidfile [/var/run/cmirrord.pid]
1558  --with-optimisation=OPT C optimisation flag [OPT=-O2]
1559  --with-localedir=DIR    Translation files in DIR [PREFIX/share/locale]
1560  --with-confdir=DIR      Configuration files in DIR [/etc]
1561  --with-staticdir=DIR    Static binary in DIR [EPREFIX/sbin]
1562  --with-usrlibdir=DIR
1563  --with-usrsbindir=DIR
1564  --with-udev-prefix=UPREFIX      Install udev rule files in UPREFIX [EPREFIX]
1565  --with-udevdir=DIR      udev rules in DIR [UPREFIX/lib/udev/rules.d]
1566  --with-dmeventd-pidfile=PATH    dmeventd pidfile [/var/run/dmeventd.pid]
1567  --with-dmeventd-path=PATH       dmeventd path [EPREFIX/sbin/dmeventd]
1568  --with-interface=IFACE  Choose kernel interface (ioctl) [ioctl]
1569
1570Some influential environment variables:
1571  CC          C compiler command
1572  CFLAGS      C compiler flags
1573  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1574              nonstandard directory <lib dir>
1575  LIBS        libraries to pass to the linker, e.g. -l<library>
1576  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1577              you have headers in a nonstandard directory <include dir>
1578  CPP         C preprocessor
1579  PKG_CONFIG  path to pkg-config utility
1580  PKGCONFIGINIT_CFLAGS
1581              C compiler flags for PKGCONFIGINIT, overriding pkg-config
1582  PKGCONFIGINIT_LIBS
1583              linker flags for PKGCONFIGINIT, overriding pkg-config
1584  CCS_CFLAGS  C compiler flags for CCS, overriding pkg-config
1585  CCS_LIBS    linker flags for CCS, overriding pkg-config
1586  GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1587  GULM_LIBS   linker flags for GULM, overriding pkg-config
1588  CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1589  CMAN_LIBS   linker flags for CMAN, overriding pkg-config
1590  COROSYNC_CFLAGS
1591              C compiler flags for COROSYNC, overriding pkg-config
1592  COROSYNC_LIBS
1593              linker flags for COROSYNC, overriding pkg-config
1594  QUORUM_CFLAGS
1595              C compiler flags for QUORUM, overriding pkg-config
1596  QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1597  SALCK_CFLAGS
1598              C compiler flags for SALCK, overriding pkg-config
1599  SALCK_LIBS  linker flags for SALCK, overriding pkg-config
1600  CONFDB_CFLAGS
1601              C compiler flags for CONFDB, overriding pkg-config
1602  CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1603  CPG_CFLAGS  C compiler flags for CPG, overriding pkg-config
1604  CPG_LIBS    linker flags for CPG, overriding pkg-config
1605  DLM_CFLAGS  C compiler flags for DLM, overriding pkg-config
1606  DLM_LIBS    linker flags for DLM, overriding pkg-config
1607  SACKPT_CFLAGS
1608              C compiler flags for SACKPT, overriding pkg-config
1609  SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1610
1611Use these variables to override the choices made by `configure' or to help
1612it to find libraries and programs with nonstandard names/locations.
1613
1614_ACEOF
1615ac_status=$?
1616fi
1617
1618if test "$ac_init_help" = "recursive"; then
1619  # If there are subdirs, report their specific --help.
1620  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1621    test -d "$ac_dir" ||
1622      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1623      continue
1624    ac_builddir=.
1625
1626case "$ac_dir" in
1627.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628*)
1629  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1630  # A ".." for each directory in $ac_dir_suffix.
1631  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1632  case $ac_top_builddir_sub in
1633  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1635  esac ;;
1636esac
1637ac_abs_top_builddir=$ac_pwd
1638ac_abs_builddir=$ac_pwd$ac_dir_suffix
1639# for backward compatibility:
1640ac_top_builddir=$ac_top_build_prefix
1641
1642case $srcdir in
1643  .)  # We are building in place.
1644    ac_srcdir=.
1645    ac_top_srcdir=$ac_top_builddir_sub
1646    ac_abs_top_srcdir=$ac_pwd ;;
1647  [\\/]* | ?:[\\/]* )  # Absolute name.
1648    ac_srcdir=$srcdir$ac_dir_suffix;
1649    ac_top_srcdir=$srcdir
1650    ac_abs_top_srcdir=$srcdir ;;
1651  *) # Relative name.
1652    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1653    ac_top_srcdir=$ac_top_build_prefix$srcdir
1654    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1655esac
1656ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1657
1658    cd "$ac_dir" || { ac_status=$?; continue; }
1659    # Check for guested configure.
1660    if test -f "$ac_srcdir/configure.gnu"; then
1661      echo &&
1662      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1663    elif test -f "$ac_srcdir/configure"; then
1664      echo &&
1665      $SHELL "$ac_srcdir/configure" --help=recursive
1666    else
1667      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1668    fi || ac_status=$?
1669    cd "$ac_pwd" || { ac_status=$?; break; }
1670  done
1671fi
1672
1673test -n "$ac_init_help" && exit $ac_status
1674if $ac_init_version; then
1675  cat <<\_ACEOF
1676configure
1677generated by GNU Autoconf 2.63
1678
1679Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16802002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1681This configure script is free software; the Free Software Foundation
1682gives unlimited permission to copy, distribute and modify it.
1683_ACEOF
1684  exit
1685fi
1686cat >config.log <<_ACEOF
1687This file contains any messages produced by compilers while
1688running configure, to aid debugging if configure makes a mistake.
1689
1690It was created by $as_me, which was
1691generated by GNU Autoconf 2.63.  Invocation command line was
1692
1693  $ $0 $@
1694
1695_ACEOF
1696exec 5>>config.log
1697{
1698cat <<_ASUNAME
1699## --------- ##
1700## Platform. ##
1701## --------- ##
1702
1703hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1704uname -m = `(uname -m) 2>/dev/null || echo unknown`
1705uname -r = `(uname -r) 2>/dev/null || echo unknown`
1706uname -s = `(uname -s) 2>/dev/null || echo unknown`
1707uname -v = `(uname -v) 2>/dev/null || echo unknown`
1708
1709/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1710/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1711
1712/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1713/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1714/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1715/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1716/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1717/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1718/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1719
1720_ASUNAME
1721
1722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723for as_dir in $PATH
1724do
1725  IFS=$as_save_IFS
1726  test -z "$as_dir" && as_dir=.
1727  $as_echo "PATH: $as_dir"
1728done
1729IFS=$as_save_IFS
1730
1731} >&5
1732
1733cat >&5 <<_ACEOF
1734
1735
1736## ----------- ##
1737## Core tests. ##
1738## ----------- ##
1739
1740_ACEOF
1741
1742
1743# Keep a trace of the command line.
1744# Strip out --no-create and --no-recursion so they do not pile up.
1745# Strip out --silent because we don't want to record it for future runs.
1746# Also quote any args containing shell meta-characters.
1747# Make two passes to allow for proper duplicate-argument suppression.
1748ac_configure_args=
1749ac_configure_args0=
1750ac_configure_args1=
1751ac_must_keep_next=false
1752for ac_pass in 1 2
1753do
1754  for ac_arg
1755  do
1756    case $ac_arg in
1757    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1758    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1759    | -silent | --silent | --silen | --sile | --sil)
1760      continue ;;
1761    *\'*)
1762      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1763    esac
1764    case $ac_pass in
1765    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1766    2)
1767      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1768      if test $ac_must_keep_next = true; then
1769	ac_must_keep_next=false # Got value, back to normal.
1770      else
1771	case $ac_arg in
1772	  *=* | --config-cache | -C | -disable-* | --disable-* \
1773	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1774	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1775	  | -with-* | --with-* | -without-* | --without-* | --x)
1776	    case "$ac_configure_args0 " in
1777	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1778	    esac
1779	    ;;
1780	  -* ) ac_must_keep_next=true ;;
1781	esac
1782      fi
1783      ac_configure_args="$ac_configure_args '$ac_arg'"
1784      ;;
1785    esac
1786  done
1787done
1788$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1789$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1790
1791# When interrupted or exit'd, cleanup temporary files, and complete
1792# config.log.  We remove comments because anyway the quotes in there
1793# would cause problems or look ugly.
1794# WARNING: Use '\'' to represent an apostrophe within the trap.
1795# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1796trap 'exit_status=$?
1797  # Save into config.log some information that might help in debugging.
1798  {
1799    echo
1800
1801    cat <<\_ASBOX
1802## ---------------- ##
1803## Cache variables. ##
1804## ---------------- ##
1805_ASBOX
1806    echo
1807    # The following way of writing the cache mishandles newlines in values,
1808(
1809  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1810    eval ac_val=\$$ac_var
1811    case $ac_val in #(
1812    *${as_nl}*)
1813      case $ac_var in #(
1814      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1815$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1816      esac
1817      case $ac_var in #(
1818      _ | IFS | as_nl) ;; #(
1819      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1820      *) $as_unset $ac_var ;;
1821      esac ;;
1822    esac
1823  done
1824  (set) 2>&1 |
1825    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1826    *${as_nl}ac_space=\ *)
1827      sed -n \
1828	"s/'\''/'\''\\\\'\'''\''/g;
1829	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1830      ;; #(
1831    *)
1832      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1833      ;;
1834    esac |
1835    sort
1836)
1837    echo
1838
1839    cat <<\_ASBOX
1840## ----------------- ##
1841## Output variables. ##
1842## ----------------- ##
1843_ASBOX
1844    echo
1845    for ac_var in $ac_subst_vars
1846    do
1847      eval ac_val=\$$ac_var
1848      case $ac_val in
1849      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1850      esac
1851      $as_echo "$ac_var='\''$ac_val'\''"
1852    done | sort
1853    echo
1854
1855    if test -n "$ac_subst_files"; then
1856      cat <<\_ASBOX
1857## ------------------- ##
1858## File substitutions. ##
1859## ------------------- ##
1860_ASBOX
1861      echo
1862      for ac_var in $ac_subst_files
1863      do
1864	eval ac_val=\$$ac_var
1865	case $ac_val in
1866	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1867	esac
1868	$as_echo "$ac_var='\''$ac_val'\''"
1869      done | sort
1870      echo
1871    fi
1872
1873    if test -s confdefs.h; then
1874      cat <<\_ASBOX
1875## ----------- ##
1876## confdefs.h. ##
1877## ----------- ##
1878_ASBOX
1879      echo
1880      cat confdefs.h
1881      echo
1882    fi
1883    test "$ac_signal" != 0 &&
1884      $as_echo "$as_me: caught signal $ac_signal"
1885    $as_echo "$as_me: exit $exit_status"
1886  } >&5
1887  rm -f core *.core core.conftest.* &&
1888    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1889    exit $exit_status
1890' 0
1891for ac_signal in 1 2 13 15; do
1892  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1893done
1894ac_signal=0
1895
1896# confdefs.h avoids OS command line length limits that DEFS can exceed.
1897rm -f -r conftest* confdefs.h
1898
1899# Predefined preprocessor variables.
1900
1901cat >>confdefs.h <<_ACEOF
1902#define PACKAGE_NAME "$PACKAGE_NAME"
1903_ACEOF
1904
1905
1906cat >>confdefs.h <<_ACEOF
1907#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1908_ACEOF
1909
1910
1911cat >>confdefs.h <<_ACEOF
1912#define PACKAGE_VERSION "$PACKAGE_VERSION"
1913_ACEOF
1914
1915
1916cat >>confdefs.h <<_ACEOF
1917#define PACKAGE_STRING "$PACKAGE_STRING"
1918_ACEOF
1919
1920
1921cat >>confdefs.h <<_ACEOF
1922#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1923_ACEOF
1924
1925
1926# Let the site file select an alternate cache file if it wants to.
1927# Prefer an explicitly selected file to automatically selected ones.
1928ac_site_file1=NONE
1929ac_site_file2=NONE
1930if test -n "$CONFIG_SITE"; then
1931  ac_site_file1=$CONFIG_SITE
1932elif test "x$prefix" != xNONE; then
1933  ac_site_file1=$prefix/share/config.site
1934  ac_site_file2=$prefix/etc/config.site
1935else
1936  ac_site_file1=$ac_default_prefix/share/config.site
1937  ac_site_file2=$ac_default_prefix/etc/config.site
1938fi
1939for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1940do
1941  test "x$ac_site_file" = xNONE && continue
1942  if test -r "$ac_site_file"; then
1943    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1944$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1945    sed 's/^/| /' "$ac_site_file" >&5
1946    . "$ac_site_file"
1947  fi
1948done
1949
1950if test -r "$cache_file"; then
1951  # Some versions of bash will fail to source /dev/null (special
1952  # files actually), so we avoid doing that.
1953  if test -f "$cache_file"; then
1954    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1955$as_echo "$as_me: loading cache $cache_file" >&6;}
1956    case $cache_file in
1957      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1958      *)                      . "./$cache_file";;
1959    esac
1960  fi
1961else
1962  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1963$as_echo "$as_me: creating cache $cache_file" >&6;}
1964  >$cache_file
1965fi
1966
1967# Check that the precious variables saved in the cache have kept the same
1968# value.
1969ac_cache_corrupted=false
1970for ac_var in $ac_precious_vars; do
1971  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1972  eval ac_new_set=\$ac_env_${ac_var}_set
1973  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1974  eval ac_new_val=\$ac_env_${ac_var}_value
1975  case $ac_old_set,$ac_new_set in
1976    set,)
1977      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1978$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1979      ac_cache_corrupted=: ;;
1980    ,set)
1981      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1982$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1983      ac_cache_corrupted=: ;;
1984    ,);;
1985    *)
1986      if test "x$ac_old_val" != "x$ac_new_val"; then
1987	# differences in whitespace do not lead to failure.
1988	ac_old_val_w=`echo x $ac_old_val`
1989	ac_new_val_w=`echo x $ac_new_val`
1990	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1991	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1992$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1993	  ac_cache_corrupted=:
1994	else
1995	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1996$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1997	  eval $ac_var=\$ac_old_val
1998	fi
1999	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2000$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2001	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2002$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2003      fi;;
2004  esac
2005  # Pass precious variables to config.status.
2006  if test "$ac_new_set" = set; then
2007    case $ac_new_val in
2008    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2009    *) ac_arg=$ac_var=$ac_new_val ;;
2010    esac
2011    case " $ac_configure_args " in
2012      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2013      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2014    esac
2015  fi
2016done
2017if $ac_cache_corrupted; then
2018  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2020  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2021$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2022  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2023$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2024   { (exit 1); exit 1; }; }
2025fi
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043ac_ext=c
2044ac_cpp='$CPP $CPPFLAGS'
2045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048
2049
2050
2051ac_config_headers="$ac_config_headers lib/misc/configure.h"
2052
2053
2054################################################################################
2055ac_aux_dir=
2056for ac_dir in autoconf "$srcdir"/autoconf; do
2057  if test -f "$ac_dir/install-sh"; then
2058    ac_aux_dir=$ac_dir
2059    ac_install_sh="$ac_aux_dir/install-sh -c"
2060    break
2061  elif test -f "$ac_dir/install.sh"; then
2062    ac_aux_dir=$ac_dir
2063    ac_install_sh="$ac_aux_dir/install.sh -c"
2064    break
2065  elif test -f "$ac_dir/shtool"; then
2066    ac_aux_dir=$ac_dir
2067    ac_install_sh="$ac_aux_dir/shtool install -c"
2068    break
2069  fi
2070done
2071if test -z "$ac_aux_dir"; then
2072  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2073$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2074   { (exit 1); exit 1; }; }
2075fi
2076
2077# These three variables are undocumented and unsupported,
2078# and are intended to be withdrawn in a future Autoconf release.
2079# They can cause serious problems if a builder's source tree is in a directory
2080# whose full name contains unusual characters.
2081ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2082ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2083ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2084
2085
2086
2087################################################################################
2088# Make sure we can run config.sub.
2089$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2090  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2091$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2092   { (exit 1); exit 1; }; }
2093
2094{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2095$as_echo_n "checking build system type... " >&6; }
2096if test "${ac_cv_build+set}" = set; then
2097  $as_echo_n "(cached) " >&6
2098else
2099  ac_build_alias=$build_alias
2100test "x$ac_build_alias" = x &&
2101  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2102test "x$ac_build_alias" = x &&
2103  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2104$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2105   { (exit 1); exit 1; }; }
2106ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2107  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2108$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2109   { (exit 1); exit 1; }; }
2110
2111fi
2112{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2113$as_echo "$ac_cv_build" >&6; }
2114case $ac_cv_build in
2115*-*-*) ;;
2116*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2117$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2118   { (exit 1); exit 1; }; };;
2119esac
2120build=$ac_cv_build
2121ac_save_IFS=$IFS; IFS='-'
2122set x $ac_cv_build
2123shift
2124build_cpu=$1
2125build_vendor=$2
2126shift; shift
2127# Remember, the first character of IFS is used to create $*,
2128# except with old shells:
2129build_os=$*
2130IFS=$ac_save_IFS
2131case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2132
2133
2134{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2135$as_echo_n "checking host system type... " >&6; }
2136if test "${ac_cv_host+set}" = set; then
2137  $as_echo_n "(cached) " >&6
2138else
2139  if test "x$host_alias" = x; then
2140  ac_cv_host=$ac_cv_build
2141else
2142  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2143    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2144$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2145   { (exit 1); exit 1; }; }
2146fi
2147
2148fi
2149{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2150$as_echo "$ac_cv_host" >&6; }
2151case $ac_cv_host in
2152*-*-*) ;;
2153*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2154$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2155   { (exit 1); exit 1; }; };;
2156esac
2157host=$ac_cv_host
2158ac_save_IFS=$IFS; IFS='-'
2159set x $ac_cv_host
2160shift
2161host_cpu=$1
2162host_vendor=$2
2163shift; shift
2164# Remember, the first character of IFS is used to create $*,
2165# except with old shells:
2166host_os=$*
2167IFS=$ac_save_IFS
2168case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2169
2170
2171{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2172$as_echo_n "checking target system type... " >&6; }
2173if test "${ac_cv_target+set}" = set; then
2174  $as_echo_n "(cached) " >&6
2175else
2176  if test "x$target_alias" = x; then
2177  ac_cv_target=$ac_cv_host
2178else
2179  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2180    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2181$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2182   { (exit 1); exit 1; }; }
2183fi
2184
2185fi
2186{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2187$as_echo "$ac_cv_target" >&6; }
2188case $ac_cv_target in
2189*-*-*) ;;
2190*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2191$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2192   { (exit 1); exit 1; }; };;
2193esac
2194target=$ac_cv_target
2195ac_save_IFS=$IFS; IFS='-'
2196set x $ac_cv_target
2197shift
2198target_cpu=$1
2199target_vendor=$2
2200shift; shift
2201# Remember, the first character of IFS is used to create $*,
2202# except with old shells:
2203target_os=$*
2204IFS=$ac_save_IFS
2205case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2206
2207
2208# The aliases save the names the user supplied, while $host etc.
2209# will get canonicalized.
2210test -n "$target_alias" &&
2211  test "$program_prefix$program_suffix$program_transform_name" = \
2212    NONENONEs,x,x, &&
2213  program_prefix=${target_alias}-
2214
2215case "$host_os" in
2216	linux*)
2217		CFLAGS="$CFLAGS"
2218		COPTIMISE_FLAG="-O2"
2219		CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2220		CLDWHOLEARCHIVE="-Wl,-whole-archive"
2221		CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2222		LDDEPS="$LDDEPS .export.sym"
2223		LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2224		LIB_SUFFIX=so
2225		DEVMAPPER=yes
2226		ODIRECT=yes
2227		DM_IOCTLS=yes
2228		SELINUX=yes
2229		CLUSTER=internal
2230		FSADM=yes
2231		;;
2232	darwin*)
2233		CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2234		COPTIMISE_FLAG="-O2"
2235		CLDFLAGS="$CLDFLAGS"
2236		CLDWHOLEARCHIVE="-all_load"
2237		CLDNOWHOLEARCHIVE=
2238		LIB_SUFFIX=dylib
2239		DEVMAPPER=yes
2240		ODIRECT=no
2241		DM_IOCTLS=no
2242		SELINUX=no
2243		CLUSTER=none
2244		FSADM=no
2245		;;
2246esac
2247
2248################################################################################
2249{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2250$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2251if test "${ac_cv_path_SED+set}" = set; then
2252  $as_echo_n "(cached) " >&6
2253else
2254            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2255     for ac_i in 1 2 3 4 5 6 7; do
2256       ac_script="$ac_script$as_nl$ac_script"
2257     done
2258     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2259     $as_unset ac_script || ac_script=
2260     if test -z "$SED"; then
2261  ac_path_SED_found=false
2262  # Loop through the user's path and test for each of PROGNAME-LIST
2263  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264for as_dir in $PATH
2265do
2266  IFS=$as_save_IFS
2267  test -z "$as_dir" && as_dir=.
2268  for ac_prog in sed gsed; do
2269    for ac_exec_ext in '' $ac_executable_extensions; do
2270      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2271      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2272# Check for GNU ac_path_SED and select it if it is found.
2273  # Check for GNU $ac_path_SED
2274case `"$ac_path_SED" --version 2>&1` in
2275*GNU*)
2276  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2277*)
2278  ac_count=0
2279  $as_echo_n 0123456789 >"conftest.in"
2280  while :
2281  do
2282    cat "conftest.in" "conftest.in" >"conftest.tmp"
2283    mv "conftest.tmp" "conftest.in"
2284    cp "conftest.in" "conftest.nl"
2285    $as_echo '' >> "conftest.nl"
2286    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2287    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2288    ac_count=`expr $ac_count + 1`
2289    if test $ac_count -gt ${ac_path_SED_max-0}; then
2290      # Best one so far, save it but keep looking for a better one
2291      ac_cv_path_SED="$ac_path_SED"
2292      ac_path_SED_max=$ac_count
2293    fi
2294    # 10*(2^10) chars as input seems more than enough
2295    test $ac_count -gt 10 && break
2296  done
2297  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2298esac
2299
2300      $ac_path_SED_found && break 3
2301    done
2302  done
2303done
2304IFS=$as_save_IFS
2305  if test -z "$ac_cv_path_SED"; then
2306    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2307$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
2308   { (exit 1); exit 1; }; }
2309  fi
2310else
2311  ac_cv_path_SED=$SED
2312fi
2313
2314fi
2315{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2316$as_echo "$ac_cv_path_SED" >&6; }
2317 SED="$ac_cv_path_SED"
2318  rm -f conftest.sed
2319
2320for ac_prog in gawk mawk nawk awk
2321do
2322  # Extract the first word of "$ac_prog", so it can be a program name with args.
2323set dummy $ac_prog; ac_word=$2
2324{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2325$as_echo_n "checking for $ac_word... " >&6; }
2326if test "${ac_cv_prog_AWK+set}" = set; then
2327  $as_echo_n "(cached) " >&6
2328else
2329  if test -n "$AWK"; then
2330  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2331else
2332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333for as_dir in $PATH
2334do
2335  IFS=$as_save_IFS
2336  test -z "$as_dir" && as_dir=.
2337  for ac_exec_ext in '' $ac_executable_extensions; do
2338  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339    ac_cv_prog_AWK="$ac_prog"
2340    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341    break 2
2342  fi
2343done
2344done
2345IFS=$as_save_IFS
2346
2347fi
2348fi
2349AWK=$ac_cv_prog_AWK
2350if test -n "$AWK"; then
2351  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2352$as_echo "$AWK" >&6; }
2353else
2354  { $as_echo "$as_me:$LINENO: result: no" >&5
2355$as_echo "no" >&6; }
2356fi
2357
2358
2359  test -n "$AWK" && break
2360done
2361
2362ac_ext=c
2363ac_cpp='$CPP $CPPFLAGS'
2364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366ac_compiler_gnu=$ac_cv_c_compiler_gnu
2367if test -n "$ac_tool_prefix"; then
2368  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2369set dummy ${ac_tool_prefix}gcc; ac_word=$2
2370{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2371$as_echo_n "checking for $ac_word... " >&6; }
2372if test "${ac_cv_prog_CC+set}" = set; then
2373  $as_echo_n "(cached) " >&6
2374else
2375  if test -n "$CC"; then
2376  ac_cv_prog_CC="$CC" # Let the user override the test.
2377else
2378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379for as_dir in $PATH
2380do
2381  IFS=$as_save_IFS
2382  test -z "$as_dir" && as_dir=.
2383  for ac_exec_ext in '' $ac_executable_extensions; do
2384  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2385    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2386    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387    break 2
2388  fi
2389done
2390done
2391IFS=$as_save_IFS
2392
2393fi
2394fi
2395CC=$ac_cv_prog_CC
2396if test -n "$CC"; then
2397  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2398$as_echo "$CC" >&6; }
2399else
2400  { $as_echo "$as_me:$LINENO: result: no" >&5
2401$as_echo "no" >&6; }
2402fi
2403
2404
2405fi
2406if test -z "$ac_cv_prog_CC"; then
2407  ac_ct_CC=$CC
2408  # Extract the first word of "gcc", so it can be a program name with args.
2409set dummy gcc; ac_word=$2
2410{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2411$as_echo_n "checking for $ac_word... " >&6; }
2412if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2413  $as_echo_n "(cached) " >&6
2414else
2415  if test -n "$ac_ct_CC"; then
2416  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2417else
2418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419for as_dir in $PATH
2420do
2421  IFS=$as_save_IFS
2422  test -z "$as_dir" && as_dir=.
2423  for ac_exec_ext in '' $ac_executable_extensions; do
2424  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2425    ac_cv_prog_ac_ct_CC="gcc"
2426    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427    break 2
2428  fi
2429done
2430done
2431IFS=$as_save_IFS
2432
2433fi
2434fi
2435ac_ct_CC=$ac_cv_prog_ac_ct_CC
2436if test -n "$ac_ct_CC"; then
2437  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2438$as_echo "$ac_ct_CC" >&6; }
2439else
2440  { $as_echo "$as_me:$LINENO: result: no" >&5
2441$as_echo "no" >&6; }
2442fi
2443
2444  if test "x$ac_ct_CC" = x; then
2445    CC=""
2446  else
2447    case $cross_compiling:$ac_tool_warned in
2448yes:)
2449{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2451ac_tool_warned=yes ;;
2452esac
2453    CC=$ac_ct_CC
2454  fi
2455else
2456  CC="$ac_cv_prog_CC"
2457fi
2458
2459if test -z "$CC"; then
2460          if test -n "$ac_tool_prefix"; then
2461    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2462set dummy ${ac_tool_prefix}cc; ac_word=$2
2463{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2464$as_echo_n "checking for $ac_word... " >&6; }
2465if test "${ac_cv_prog_CC+set}" = set; then
2466  $as_echo_n "(cached) " >&6
2467else
2468  if test -n "$CC"; then
2469  ac_cv_prog_CC="$CC" # Let the user override the test.
2470else
2471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472for as_dir in $PATH
2473do
2474  IFS=$as_save_IFS
2475  test -z "$as_dir" && as_dir=.
2476  for ac_exec_ext in '' $ac_executable_extensions; do
2477  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478    ac_cv_prog_CC="${ac_tool_prefix}cc"
2479    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480    break 2
2481  fi
2482done
2483done
2484IFS=$as_save_IFS
2485
2486fi
2487fi
2488CC=$ac_cv_prog_CC
2489if test -n "$CC"; then
2490  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2491$as_echo "$CC" >&6; }
2492else
2493  { $as_echo "$as_me:$LINENO: result: no" >&5
2494$as_echo "no" >&6; }
2495fi
2496
2497
2498  fi
2499fi
2500if test -z "$CC"; then
2501  # Extract the first word of "cc", so it can be a program name with args.
2502set dummy cc; ac_word=$2
2503{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2504$as_echo_n "checking for $ac_word... " >&6; }
2505if test "${ac_cv_prog_CC+set}" = set; then
2506  $as_echo_n "(cached) " >&6
2507else
2508  if test -n "$CC"; then
2509  ac_cv_prog_CC="$CC" # Let the user override the test.
2510else
2511  ac_prog_rejected=no
2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515  IFS=$as_save_IFS
2516  test -z "$as_dir" && as_dir=.
2517  for ac_exec_ext in '' $ac_executable_extensions; do
2518  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2519    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2520       ac_prog_rejected=yes
2521       continue
2522     fi
2523    ac_cv_prog_CC="cc"
2524    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525    break 2
2526  fi
2527done
2528done
2529IFS=$as_save_IFS
2530
2531if test $ac_prog_rejected = yes; then
2532  # We found a bogon in the path, so make sure we never use it.
2533  set dummy $ac_cv_prog_CC
2534  shift
2535  if test $# != 0; then
2536    # We chose a different compiler from the bogus one.
2537    # However, it has the same basename, so the bogon will be chosen
2538    # first if we set CC to just the basename; use the full file name.
2539    shift
2540    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2541  fi
2542fi
2543fi
2544fi
2545CC=$ac_cv_prog_CC
2546if test -n "$CC"; then
2547  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2548$as_echo "$CC" >&6; }
2549else
2550  { $as_echo "$as_me:$LINENO: result: no" >&5
2551$as_echo "no" >&6; }
2552fi
2553
2554
2555fi
2556if test -z "$CC"; then
2557  if test -n "$ac_tool_prefix"; then
2558  for ac_prog in cl.exe
2559  do
2560    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2561set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2562{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2563$as_echo_n "checking for $ac_word... " >&6; }
2564if test "${ac_cv_prog_CC+set}" = set; then
2565  $as_echo_n "(cached) " >&6
2566else
2567  if test -n "$CC"; then
2568  ac_cv_prog_CC="$CC" # Let the user override the test.
2569else
2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571for as_dir in $PATH
2572do
2573  IFS=$as_save_IFS
2574  test -z "$as_dir" && as_dir=.
2575  for ac_exec_ext in '' $ac_executable_extensions; do
2576  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2578    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579    break 2
2580  fi
2581done
2582done
2583IFS=$as_save_IFS
2584
2585fi
2586fi
2587CC=$ac_cv_prog_CC
2588if test -n "$CC"; then
2589  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2590$as_echo "$CC" >&6; }
2591else
2592  { $as_echo "$as_me:$LINENO: result: no" >&5
2593$as_echo "no" >&6; }
2594fi
2595
2596
2597    test -n "$CC" && break
2598  done
2599fi
2600if test -z "$CC"; then
2601  ac_ct_CC=$CC
2602  for ac_prog in cl.exe
2603do
2604  # Extract the first word of "$ac_prog", so it can be a program name with args.
2605set dummy $ac_prog; ac_word=$2
2606{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2607$as_echo_n "checking for $ac_word... " >&6; }
2608if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2609  $as_echo_n "(cached) " >&6
2610else
2611  if test -n "$ac_ct_CC"; then
2612  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2613else
2614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615for as_dir in $PATH
2616do
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_ac_ct_CC="$ac_prog"
2622    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623    break 2
2624  fi
2625done
2626done
2627IFS=$as_save_IFS
2628
2629fi
2630fi
2631ac_ct_CC=$ac_cv_prog_ac_ct_CC
2632if test -n "$ac_ct_CC"; then
2633  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2634$as_echo "$ac_ct_CC" >&6; }
2635else
2636  { $as_echo "$as_me:$LINENO: result: no" >&5
2637$as_echo "no" >&6; }
2638fi
2639
2640
2641  test -n "$ac_ct_CC" && break
2642done
2643
2644  if test "x$ac_ct_CC" = x; then
2645    CC=""
2646  else
2647    case $cross_compiling:$ac_tool_warned in
2648yes:)
2649{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2651ac_tool_warned=yes ;;
2652esac
2653    CC=$ac_ct_CC
2654  fi
2655fi
2656
2657fi
2658
2659
2660test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2661$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2662{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2663See \`config.log' for more details." >&5
2664$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2665See \`config.log' for more details." >&2;}
2666   { (exit 1); exit 1; }; }; }
2667
2668# Provide some information about the compiler.
2669$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2670set X $ac_compile
2671ac_compiler=$2
2672{ (ac_try="$ac_compiler --version >&5"
2673case "(($ac_try" in
2674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675  *) ac_try_echo=$ac_try;;
2676esac
2677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2678$as_echo "$ac_try_echo") >&5
2679  (eval "$ac_compiler --version >&5") 2>&5
2680  ac_status=$?
2681  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682  (exit $ac_status); }
2683{ (ac_try="$ac_compiler -v >&5"
2684case "(($ac_try" in
2685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686  *) ac_try_echo=$ac_try;;
2687esac
2688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2689$as_echo "$ac_try_echo") >&5
2690  (eval "$ac_compiler -v >&5") 2>&5
2691  ac_status=$?
2692  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693  (exit $ac_status); }
2694{ (ac_try="$ac_compiler -V >&5"
2695case "(($ac_try" in
2696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697  *) ac_try_echo=$ac_try;;
2698esac
2699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2700$as_echo "$ac_try_echo") >&5
2701  (eval "$ac_compiler -V >&5") 2>&5
2702  ac_status=$?
2703  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704  (exit $ac_status); }
2705
2706cat >conftest.$ac_ext <<_ACEOF
2707/* confdefs.h.  */
2708_ACEOF
2709cat confdefs.h >>conftest.$ac_ext
2710cat >>conftest.$ac_ext <<_ACEOF
2711/* end confdefs.h.  */
2712
2713int
2714main ()
2715{
2716
2717  ;
2718  return 0;
2719}
2720_ACEOF
2721ac_clean_files_save=$ac_clean_files
2722ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2723# Try to create an executable without -o first, disregard a.out.
2724# It will help us diagnose broken compilers, and finding out an intuition
2725# of exeext.
2726{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2727$as_echo_n "checking for C compiler default output file name... " >&6; }
2728ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2729
2730# The possible output files:
2731ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2732
2733ac_rmfiles=
2734for ac_file in $ac_files
2735do
2736  case $ac_file in
2737    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2738    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2739  esac
2740done
2741rm -f $ac_rmfiles
2742
2743if { (ac_try="$ac_link_default"
2744case "(($ac_try" in
2745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746  *) ac_try_echo=$ac_try;;
2747esac
2748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2749$as_echo "$ac_try_echo") >&5
2750  (eval "$ac_link_default") 2>&5
2751  ac_status=$?
2752  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); }; then
2754  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2755# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2756# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2757# so that the user can short-circuit this test for compilers unknown to
2758# Autoconf.
2759for ac_file in $ac_files ''
2760do
2761  test -f "$ac_file" || continue
2762  case $ac_file in
2763    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2764	;;
2765    [ab].out )
2766	# We found the default executable, but exeext='' is most
2767	# certainly right.
2768	break;;
2769    *.* )
2770        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2771	then :; else
2772	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2773	fi
2774	# We set ac_cv_exeext here because the later test for it is not
2775	# safe: cross compilers may not add the suffix if given an `-o'
2776	# argument, so we may need to know it at that point already.
2777	# Even if this section looks crufty: it has the advantage of
2778	# actually working.
2779	break;;
2780    * )
2781	break;;
2782  esac
2783done
2784test "$ac_cv_exeext" = no && ac_cv_exeext=
2785
2786else
2787  ac_file=''
2788fi
2789
2790{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2791$as_echo "$ac_file" >&6; }
2792if test -z "$ac_file"; then
2793  $as_echo "$as_me: failed program was:" >&5
2794sed 's/^/| /' conftest.$ac_ext >&5
2795
2796{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2798{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2799See \`config.log' for more details." >&5
2800$as_echo "$as_me: error: C compiler cannot create executables
2801See \`config.log' for more details." >&2;}
2802   { (exit 77); exit 77; }; }; }
2803fi
2804
2805ac_exeext=$ac_cv_exeext
2806
2807# Check that the compiler produces executables we can run.  If not, either
2808# the compiler is broken, or we cross compile.
2809{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2810$as_echo_n "checking whether the C compiler works... " >&6; }
2811# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2812# If not cross compiling, check that we can run a simple program.
2813if test "$cross_compiling" != yes; then
2814  if { ac_try='./$ac_file'
2815  { (case "(($ac_try" in
2816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817  *) ac_try_echo=$ac_try;;
2818esac
2819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2820$as_echo "$ac_try_echo") >&5
2821  (eval "$ac_try") 2>&5
2822  ac_status=$?
2823  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824  (exit $ac_status); }; }; then
2825    cross_compiling=no
2826  else
2827    if test "$cross_compiling" = maybe; then
2828	cross_compiling=yes
2829    else
2830	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2832{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2833If you meant to cross compile, use \`--host'.
2834See \`config.log' for more details." >&5
2835$as_echo "$as_me: error: cannot run C compiled programs.
2836If you meant to cross compile, use \`--host'.
2837See \`config.log' for more details." >&2;}
2838   { (exit 1); exit 1; }; }; }
2839    fi
2840  fi
2841fi
2842{ $as_echo "$as_me:$LINENO: result: yes" >&5
2843$as_echo "yes" >&6; }
2844
2845rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2846ac_clean_files=$ac_clean_files_save
2847# Check that the compiler produces executables we can run.  If not, either
2848# the compiler is broken, or we cross compile.
2849{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2850$as_echo_n "checking whether we are cross compiling... " >&6; }
2851{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2852$as_echo "$cross_compiling" >&6; }
2853
2854{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2855$as_echo_n "checking for suffix of executables... " >&6; }
2856if { (ac_try="$ac_link"
2857case "(($ac_try" in
2858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859  *) ac_try_echo=$ac_try;;
2860esac
2861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2862$as_echo "$ac_try_echo") >&5
2863  (eval "$ac_link") 2>&5
2864  ac_status=$?
2865  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866  (exit $ac_status); }; then
2867  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2868# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2869# work properly (i.e., refer to `conftest.exe'), while it won't with
2870# `rm'.
2871for ac_file in conftest.exe conftest conftest.*; do
2872  test -f "$ac_file" || continue
2873  case $ac_file in
2874    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2875    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2876	  break;;
2877    * ) break;;
2878  esac
2879done
2880else
2881  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2883{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2884See \`config.log' for more details." >&5
2885$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2886See \`config.log' for more details." >&2;}
2887   { (exit 1); exit 1; }; }; }
2888fi
2889
2890rm -f conftest$ac_cv_exeext
2891{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2892$as_echo "$ac_cv_exeext" >&6; }
2893
2894rm -f conftest.$ac_ext
2895EXEEXT=$ac_cv_exeext
2896ac_exeext=$EXEEXT
2897{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2898$as_echo_n "checking for suffix of object files... " >&6; }
2899if test "${ac_cv_objext+set}" = set; then
2900  $as_echo_n "(cached) " >&6
2901else
2902  cat >conftest.$ac_ext <<_ACEOF
2903/* confdefs.h.  */
2904_ACEOF
2905cat confdefs.h >>conftest.$ac_ext
2906cat >>conftest.$ac_ext <<_ACEOF
2907/* end confdefs.h.  */
2908
2909int
2910main ()
2911{
2912
2913  ;
2914  return 0;
2915}
2916_ACEOF
2917rm -f conftest.o conftest.obj
2918if { (ac_try="$ac_compile"
2919case "(($ac_try" in
2920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921  *) ac_try_echo=$ac_try;;
2922esac
2923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2924$as_echo "$ac_try_echo") >&5
2925  (eval "$ac_compile") 2>&5
2926  ac_status=$?
2927  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928  (exit $ac_status); }; then
2929  for ac_file in conftest.o conftest.obj conftest.*; do
2930  test -f "$ac_file" || continue;
2931  case $ac_file in
2932    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2933    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2934       break;;
2935  esac
2936done
2937else
2938  $as_echo "$as_me: failed program was:" >&5
2939sed 's/^/| /' conftest.$ac_ext >&5
2940
2941{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2943{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2944See \`config.log' for more details." >&5
2945$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2946See \`config.log' for more details." >&2;}
2947   { (exit 1); exit 1; }; }; }
2948fi
2949
2950rm -f conftest.$ac_cv_objext conftest.$ac_ext
2951fi
2952{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2953$as_echo "$ac_cv_objext" >&6; }
2954OBJEXT=$ac_cv_objext
2955ac_objext=$OBJEXT
2956{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2957$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2958if test "${ac_cv_c_compiler_gnu+set}" = set; then
2959  $as_echo_n "(cached) " >&6
2960else
2961  cat >conftest.$ac_ext <<_ACEOF
2962/* confdefs.h.  */
2963_ACEOF
2964cat confdefs.h >>conftest.$ac_ext
2965cat >>conftest.$ac_ext <<_ACEOF
2966/* end confdefs.h.  */
2967
2968int
2969main ()
2970{
2971#ifndef __GNUC__
2972       choke me
2973#endif
2974
2975  ;
2976  return 0;
2977}
2978_ACEOF
2979rm -f conftest.$ac_objext
2980if { (ac_try="$ac_compile"
2981case "(($ac_try" in
2982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983  *) ac_try_echo=$ac_try;;
2984esac
2985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2986$as_echo "$ac_try_echo") >&5
2987  (eval "$ac_compile") 2>conftest.er1
2988  ac_status=$?
2989  grep -v '^ *+' conftest.er1 >conftest.err
2990  rm -f conftest.er1
2991  cat conftest.err >&5
2992  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993  (exit $ac_status); } && {
2994	 test -z "$ac_c_werror_flag" ||
2995	 test ! -s conftest.err
2996       } && test -s conftest.$ac_objext; then
2997  ac_compiler_gnu=yes
2998else
2999  $as_echo "$as_me: failed program was:" >&5
3000sed 's/^/| /' conftest.$ac_ext >&5
3001
3002	ac_compiler_gnu=no
3003fi
3004
3005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006ac_cv_c_compiler_gnu=$ac_compiler_gnu
3007
3008fi
3009{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3010$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3011if test $ac_compiler_gnu = yes; then
3012  GCC=yes
3013else
3014  GCC=
3015fi
3016ac_test_CFLAGS=${CFLAGS+set}
3017ac_save_CFLAGS=$CFLAGS
3018{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3019$as_echo_n "checking whether $CC accepts -g... " >&6; }
3020if test "${ac_cv_prog_cc_g+set}" = set; then
3021  $as_echo_n "(cached) " >&6
3022else
3023  ac_save_c_werror_flag=$ac_c_werror_flag
3024   ac_c_werror_flag=yes
3025   ac_cv_prog_cc_g=no
3026   CFLAGS="-g"
3027   cat >conftest.$ac_ext <<_ACEOF
3028/* confdefs.h.  */
3029_ACEOF
3030cat confdefs.h >>conftest.$ac_ext
3031cat >>conftest.$ac_ext <<_ACEOF
3032/* end confdefs.h.  */
3033
3034int
3035main ()
3036{
3037
3038  ;
3039  return 0;
3040}
3041_ACEOF
3042rm -f conftest.$ac_objext
3043if { (ac_try="$ac_compile"
3044case "(($ac_try" in
3045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046  *) ac_try_echo=$ac_try;;
3047esac
3048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3049$as_echo "$ac_try_echo") >&5
3050  (eval "$ac_compile") 2>conftest.er1
3051  ac_status=$?
3052  grep -v '^ *+' conftest.er1 >conftest.err
3053  rm -f conftest.er1
3054  cat conftest.err >&5
3055  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); } && {
3057	 test -z "$ac_c_werror_flag" ||
3058	 test ! -s conftest.err
3059       } && test -s conftest.$ac_objext; then
3060  ac_cv_prog_cc_g=yes
3061else
3062  $as_echo "$as_me: failed program was:" >&5
3063sed 's/^/| /' conftest.$ac_ext >&5
3064
3065	CFLAGS=""
3066      cat >conftest.$ac_ext <<_ACEOF
3067/* confdefs.h.  */
3068_ACEOF
3069cat confdefs.h >>conftest.$ac_ext
3070cat >>conftest.$ac_ext <<_ACEOF
3071/* end confdefs.h.  */
3072
3073int
3074main ()
3075{
3076
3077  ;
3078  return 0;
3079}
3080_ACEOF
3081rm -f conftest.$ac_objext
3082if { (ac_try="$ac_compile"
3083case "(($ac_try" in
3084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085  *) ac_try_echo=$ac_try;;
3086esac
3087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3088$as_echo "$ac_try_echo") >&5
3089  (eval "$ac_compile") 2>conftest.er1
3090  ac_status=$?
3091  grep -v '^ *+' conftest.er1 >conftest.err
3092  rm -f conftest.er1
3093  cat conftest.err >&5
3094  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095  (exit $ac_status); } && {
3096	 test -z "$ac_c_werror_flag" ||
3097	 test ! -s conftest.err
3098       } && test -s conftest.$ac_objext; then
3099  :
3100else
3101  $as_echo "$as_me: failed program was:" >&5
3102sed 's/^/| /' conftest.$ac_ext >&5
3103
3104	ac_c_werror_flag=$ac_save_c_werror_flag
3105	 CFLAGS="-g"
3106	 cat >conftest.$ac_ext <<_ACEOF
3107/* confdefs.h.  */
3108_ACEOF
3109cat confdefs.h >>conftest.$ac_ext
3110cat >>conftest.$ac_ext <<_ACEOF
3111/* end confdefs.h.  */
3112
3113int
3114main ()
3115{
3116
3117  ;
3118  return 0;
3119}
3120_ACEOF
3121rm -f conftest.$ac_objext
3122if { (ac_try="$ac_compile"
3123case "(($ac_try" in
3124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125  *) ac_try_echo=$ac_try;;
3126esac
3127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3128$as_echo "$ac_try_echo") >&5
3129  (eval "$ac_compile") 2>conftest.er1
3130  ac_status=$?
3131  grep -v '^ *+' conftest.er1 >conftest.err
3132  rm -f conftest.er1
3133  cat conftest.err >&5
3134  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135  (exit $ac_status); } && {
3136	 test -z "$ac_c_werror_flag" ||
3137	 test ! -s conftest.err
3138       } && test -s conftest.$ac_objext; then
3139  ac_cv_prog_cc_g=yes
3140else
3141  $as_echo "$as_me: failed program was:" >&5
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
3144
3145fi
3146
3147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148fi
3149
3150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151fi
3152
3153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3154   ac_c_werror_flag=$ac_save_c_werror_flag
3155fi
3156{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3157$as_echo "$ac_cv_prog_cc_g" >&6; }
3158if test "$ac_test_CFLAGS" = set; then
3159  CFLAGS=$ac_save_CFLAGS
3160elif test $ac_cv_prog_cc_g = yes; then
3161  if test "$GCC" = yes; then
3162    CFLAGS="-g -O2"
3163  else
3164    CFLAGS="-g"
3165  fi
3166else
3167  if test "$GCC" = yes; then
3168    CFLAGS="-O2"
3169  else
3170    CFLAGS=
3171  fi
3172fi
3173{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3174$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3175if test "${ac_cv_prog_cc_c89+set}" = set; then
3176  $as_echo_n "(cached) " >&6
3177else
3178  ac_cv_prog_cc_c89=no
3179ac_save_CC=$CC
3180cat >conftest.$ac_ext <<_ACEOF
3181/* confdefs.h.  */
3182_ACEOF
3183cat confdefs.h >>conftest.$ac_ext
3184cat >>conftest.$ac_ext <<_ACEOF
3185/* end confdefs.h.  */
3186#include <stdarg.h>
3187#include <stdio.h>
3188#include <sys/types.h>
3189#include <sys/stat.h>
3190/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3191struct buf { int x; };
3192FILE * (*rcsopen) (struct buf *, struct stat *, int);
3193static char *e (p, i)
3194     char **p;
3195     int i;
3196{
3197  return p[i];
3198}
3199static char *f (char * (*g) (char **, int), char **p, ...)
3200{
3201  char *s;
3202  va_list v;
3203  va_start (v,p);
3204  s = g (p, va_arg (v,int));
3205  va_end (v);
3206  return s;
3207}
3208
3209/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3210   function prototypes and stuff, but not '\xHH' hex character constants.
3211   These don't provoke an error unfortunately, instead are silently treated
3212   as 'x'.  The following induces an error, until -std is added to get
3213   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3214   array size at least.  It's necessary to write '\x00'==0 to get something
3215   that's true only with -std.  */
3216int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3217
3218/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3219   inside strings and character constants.  */
3220#define FOO(x) 'x'
3221int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3222
3223int test (int i, double x);
3224struct s1 {int (*f) (int a);};
3225struct s2 {int (*f) (double a);};
3226int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3227int argc;
3228char **argv;
3229int
3230main ()
3231{
3232return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3233  ;
3234  return 0;
3235}
3236_ACEOF
3237for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3238	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3239do
3240  CC="$ac_save_CC $ac_arg"
3241  rm -f conftest.$ac_objext
3242if { (ac_try="$ac_compile"
3243case "(($ac_try" in
3244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245  *) ac_try_echo=$ac_try;;
3246esac
3247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3248$as_echo "$ac_try_echo") >&5
3249  (eval "$ac_compile") 2>conftest.er1
3250  ac_status=$?
3251  grep -v '^ *+' conftest.er1 >conftest.err
3252  rm -f conftest.er1
3253  cat conftest.err >&5
3254  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255  (exit $ac_status); } && {
3256	 test -z "$ac_c_werror_flag" ||
3257	 test ! -s conftest.err
3258       } && test -s conftest.$ac_objext; then
3259  ac_cv_prog_cc_c89=$ac_arg
3260else
3261  $as_echo "$as_me: failed program was:" >&5
3262sed 's/^/| /' conftest.$ac_ext >&5
3263
3264
3265fi
3266
3267rm -f core conftest.err conftest.$ac_objext
3268  test "x$ac_cv_prog_cc_c89" != "xno" && break
3269done
3270rm -f conftest.$ac_ext
3271CC=$ac_save_CC
3272
3273fi
3274# AC_CACHE_VAL
3275case "x$ac_cv_prog_cc_c89" in
3276  x)
3277    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3278$as_echo "none needed" >&6; } ;;
3279  xno)
3280    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3281$as_echo "unsupported" >&6; } ;;
3282  *)
3283    CC="$CC $ac_cv_prog_cc_c89"
3284    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3285$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3286esac
3287
3288
3289ac_ext=c
3290ac_cpp='$CPP $CPPFLAGS'
3291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294
3295
3296
3297ac_ext=c
3298ac_cpp='$CPP $CPPFLAGS'
3299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3303$as_echo_n "checking how to run the C preprocessor... " >&6; }
3304# On Suns, sometimes $CPP names a directory.
3305if test -n "$CPP" && test -d "$CPP"; then
3306  CPP=
3307fi
3308if test -z "$CPP"; then
3309  if test "${ac_cv_prog_CPP+set}" = set; then
3310  $as_echo_n "(cached) " >&6
3311else
3312      # Double quotes because CPP needs to be expanded
3313    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3314    do
3315      ac_preproc_ok=false
3316for ac_c_preproc_warn_flag in '' yes
3317do
3318  # Use a header file that comes with gcc, so configuring glibc
3319  # with a fresh cross-compiler works.
3320  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3321  # <limits.h> exists even on freestanding compilers.
3322  # On the NeXT, cc -E runs the code through the compiler's parser,
3323  # not just through cpp. "Syntax error" is here to catch this case.
3324  cat >conftest.$ac_ext <<_ACEOF
3325/* confdefs.h.  */
3326_ACEOF
3327cat confdefs.h >>conftest.$ac_ext
3328cat >>conftest.$ac_ext <<_ACEOF
3329/* end confdefs.h.  */
3330#ifdef __STDC__
3331# include <limits.h>
3332#else
3333# include <assert.h>
3334#endif
3335		     Syntax error
3336_ACEOF
3337if { (ac_try="$ac_cpp conftest.$ac_ext"
3338case "(($ac_try" in
3339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340  *) ac_try_echo=$ac_try;;
3341esac
3342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3343$as_echo "$ac_try_echo") >&5
3344  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3345  ac_status=$?
3346  grep -v '^ *+' conftest.er1 >conftest.err
3347  rm -f conftest.er1
3348  cat conftest.err >&5
3349  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350  (exit $ac_status); } >/dev/null && {
3351	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3352	 test ! -s conftest.err
3353       }; then
3354  :
3355else
3356  $as_echo "$as_me: failed program was:" >&5
3357sed 's/^/| /' conftest.$ac_ext >&5
3358
3359  # Broken: fails on valid input.
3360continue
3361fi
3362
3363rm -f conftest.err conftest.$ac_ext
3364
3365  # OK, works on sane cases.  Now check whether nonexistent headers
3366  # can be detected and how.
3367  cat >conftest.$ac_ext <<_ACEOF
3368/* confdefs.h.  */
3369_ACEOF
3370cat confdefs.h >>conftest.$ac_ext
3371cat >>conftest.$ac_ext <<_ACEOF
3372/* end confdefs.h.  */
3373#include <ac_nonexistent.h>
3374_ACEOF
3375if { (ac_try="$ac_cpp conftest.$ac_ext"
3376case "(($ac_try" in
3377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378  *) ac_try_echo=$ac_try;;
3379esac
3380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3381$as_echo "$ac_try_echo") >&5
3382  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3383  ac_status=$?
3384  grep -v '^ *+' conftest.er1 >conftest.err
3385  rm -f conftest.er1
3386  cat conftest.err >&5
3387  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); } >/dev/null && {
3389	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3390	 test ! -s conftest.err
3391       }; then
3392  # Broken: success on invalid input.
3393continue
3394else
3395  $as_echo "$as_me: failed program was:" >&5
3396sed 's/^/| /' conftest.$ac_ext >&5
3397
3398  # Passes both tests.
3399ac_preproc_ok=:
3400break
3401fi
3402
3403rm -f conftest.err conftest.$ac_ext
3404
3405done
3406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3407rm -f conftest.err conftest.$ac_ext
3408if $ac_preproc_ok; then
3409  break
3410fi
3411
3412    done
3413    ac_cv_prog_CPP=$CPP
3414
3415fi
3416  CPP=$ac_cv_prog_CPP
3417else
3418  ac_cv_prog_CPP=$CPP
3419fi
3420{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3421$as_echo "$CPP" >&6; }
3422ac_preproc_ok=false
3423for ac_c_preproc_warn_flag in '' yes
3424do
3425  # Use a header file that comes with gcc, so configuring glibc
3426  # with a fresh cross-compiler works.
3427  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428  # <limits.h> exists even on freestanding compilers.
3429  # On the NeXT, cc -E runs the code through the compiler's parser,
3430  # not just through cpp. "Syntax error" is here to catch this case.
3431  cat >conftest.$ac_ext <<_ACEOF
3432/* confdefs.h.  */
3433_ACEOF
3434cat confdefs.h >>conftest.$ac_ext
3435cat >>conftest.$ac_ext <<_ACEOF
3436/* end confdefs.h.  */
3437#ifdef __STDC__
3438# include <limits.h>
3439#else
3440# include <assert.h>
3441#endif
3442		     Syntax error
3443_ACEOF
3444if { (ac_try="$ac_cpp conftest.$ac_ext"
3445case "(($ac_try" in
3446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447  *) ac_try_echo=$ac_try;;
3448esac
3449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3450$as_echo "$ac_try_echo") >&5
3451  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3452  ac_status=$?
3453  grep -v '^ *+' conftest.er1 >conftest.err
3454  rm -f conftest.er1
3455  cat conftest.err >&5
3456  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); } >/dev/null && {
3458	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3459	 test ! -s conftest.err
3460       }; then
3461  :
3462else
3463  $as_echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466  # Broken: fails on valid input.
3467continue
3468fi
3469
3470rm -f conftest.err conftest.$ac_ext
3471
3472  # OK, works on sane cases.  Now check whether nonexistent headers
3473  # can be detected and how.
3474  cat >conftest.$ac_ext <<_ACEOF
3475/* confdefs.h.  */
3476_ACEOF
3477cat confdefs.h >>conftest.$ac_ext
3478cat >>conftest.$ac_ext <<_ACEOF
3479/* end confdefs.h.  */
3480#include <ac_nonexistent.h>
3481_ACEOF
3482if { (ac_try="$ac_cpp conftest.$ac_ext"
3483case "(($ac_try" in
3484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485  *) ac_try_echo=$ac_try;;
3486esac
3487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3488$as_echo "$ac_try_echo") >&5
3489  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3490  ac_status=$?
3491  grep -v '^ *+' conftest.er1 >conftest.err
3492  rm -f conftest.er1
3493  cat conftest.err >&5
3494  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495  (exit $ac_status); } >/dev/null && {
3496	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3497	 test ! -s conftest.err
3498       }; then
3499  # Broken: success on invalid input.
3500continue
3501else
3502  $as_echo "$as_me: failed program was:" >&5
3503sed 's/^/| /' conftest.$ac_ext >&5
3504
3505  # Passes both tests.
3506ac_preproc_ok=:
3507break
3508fi
3509
3510rm -f conftest.err conftest.$ac_ext
3511
3512done
3513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514rm -f conftest.err conftest.$ac_ext
3515if $ac_preproc_ok; then
3516  :
3517else
3518  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3521See \`config.log' for more details." >&5
3522$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3523See \`config.log' for more details." >&2;}
3524   { (exit 1); exit 1; }; }; }
3525fi
3526
3527ac_ext=c
3528ac_cpp='$CPP $CPPFLAGS'
3529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532
3533
3534{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3535$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3536if test "${ac_cv_path_GREP+set}" = set; then
3537  $as_echo_n "(cached) " >&6
3538else
3539  if test -z "$GREP"; then
3540  ac_path_GREP_found=false
3541  # Loop through the user's path and test for each of PROGNAME-LIST
3542  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3544do
3545  IFS=$as_save_IFS
3546  test -z "$as_dir" && as_dir=.
3547  for ac_prog in grep ggrep; do
3548    for ac_exec_ext in '' $ac_executable_extensions; do
3549      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3550      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3551# Check for GNU ac_path_GREP and select it if it is found.
3552  # Check for GNU $ac_path_GREP
3553case `"$ac_path_GREP" --version 2>&1` in
3554*GNU*)
3555  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3556*)
3557  ac_count=0
3558  $as_echo_n 0123456789 >"conftest.in"
3559  while :
3560  do
3561    cat "conftest.in" "conftest.in" >"conftest.tmp"
3562    mv "conftest.tmp" "conftest.in"
3563    cp "conftest.in" "conftest.nl"
3564    $as_echo 'GREP' >> "conftest.nl"
3565    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3566    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3567    ac_count=`expr $ac_count + 1`
3568    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3569      # Best one so far, save it but keep looking for a better one
3570      ac_cv_path_GREP="$ac_path_GREP"
3571      ac_path_GREP_max=$ac_count
3572    fi
3573    # 10*(2^10) chars as input seems more than enough
3574    test $ac_count -gt 10 && break
3575  done
3576  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3577esac
3578
3579      $ac_path_GREP_found && break 3
3580    done
3581  done
3582done
3583IFS=$as_save_IFS
3584  if test -z "$ac_cv_path_GREP"; then
3585    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3586$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3587   { (exit 1); exit 1; }; }
3588  fi
3589else
3590  ac_cv_path_GREP=$GREP
3591fi
3592
3593fi
3594{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3595$as_echo "$ac_cv_path_GREP" >&6; }
3596 GREP="$ac_cv_path_GREP"
3597
3598
3599{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3600$as_echo_n "checking for egrep... " >&6; }
3601if test "${ac_cv_path_EGREP+set}" = set; then
3602  $as_echo_n "(cached) " >&6
3603else
3604  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3605   then ac_cv_path_EGREP="$GREP -E"
3606   else
3607     if test -z "$EGREP"; then
3608  ac_path_EGREP_found=false
3609  # Loop through the user's path and test for each of PROGNAME-LIST
3610  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3612do
3613  IFS=$as_save_IFS
3614  test -z "$as_dir" && as_dir=.
3615  for ac_prog in egrep; do
3616    for ac_exec_ext in '' $ac_executable_extensions; do
3617      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3618      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3619# Check for GNU ac_path_EGREP and select it if it is found.
3620  # Check for GNU $ac_path_EGREP
3621case `"$ac_path_EGREP" --version 2>&1` in
3622*GNU*)
3623  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3624*)
3625  ac_count=0
3626  $as_echo_n 0123456789 >"conftest.in"
3627  while :
3628  do
3629    cat "conftest.in" "conftest.in" >"conftest.tmp"
3630    mv "conftest.tmp" "conftest.in"
3631    cp "conftest.in" "conftest.nl"
3632    $as_echo 'EGREP' >> "conftest.nl"
3633    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3634    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3635    ac_count=`expr $ac_count + 1`
3636    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3637      # Best one so far, save it but keep looking for a better one
3638      ac_cv_path_EGREP="$ac_path_EGREP"
3639      ac_path_EGREP_max=$ac_count
3640    fi
3641    # 10*(2^10) chars as input seems more than enough
3642    test $ac_count -gt 10 && break
3643  done
3644  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3645esac
3646
3647      $ac_path_EGREP_found && break 3
3648    done
3649  done
3650done
3651IFS=$as_save_IFS
3652  if test -z "$ac_cv_path_EGREP"; then
3653    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3654$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3655   { (exit 1); exit 1; }; }
3656  fi
3657else
3658  ac_cv_path_EGREP=$EGREP
3659fi
3660
3661   fi
3662fi
3663{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3664$as_echo "$ac_cv_path_EGREP" >&6; }
3665 EGREP="$ac_cv_path_EGREP"
3666
3667
3668if test $ac_cv_c_compiler_gnu = yes; then
3669    { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3670$as_echo_n "checking whether $CC needs -traditional... " >&6; }
3671if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3672  $as_echo_n "(cached) " >&6
3673else
3674    ac_pattern="Autoconf.*'x'"
3675  cat >conftest.$ac_ext <<_ACEOF
3676/* confdefs.h.  */
3677_ACEOF
3678cat confdefs.h >>conftest.$ac_ext
3679cat >>conftest.$ac_ext <<_ACEOF
3680/* end confdefs.h.  */
3681#include <sgtty.h>
3682Autoconf TIOCGETP
3683_ACEOF
3684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3685  $EGREP "$ac_pattern" >/dev/null 2>&1; then
3686  ac_cv_prog_gcc_traditional=yes
3687else
3688  ac_cv_prog_gcc_traditional=no
3689fi
3690rm -f conftest*
3691
3692
3693  if test $ac_cv_prog_gcc_traditional = no; then
3694    cat >conftest.$ac_ext <<_ACEOF
3695/* confdefs.h.  */
3696_ACEOF
3697cat confdefs.h >>conftest.$ac_ext
3698cat >>conftest.$ac_ext <<_ACEOF
3699/* end confdefs.h.  */
3700#include <termio.h>
3701Autoconf TCGETA
3702_ACEOF
3703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3704  $EGREP "$ac_pattern" >/dev/null 2>&1; then
3705  ac_cv_prog_gcc_traditional=yes
3706fi
3707rm -f conftest*
3708
3709  fi
3710fi
3711{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3712$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3713  if test $ac_cv_prog_gcc_traditional = yes; then
3714    CC="$CC -traditional"
3715  fi
3716fi
3717
3718# Find a good install program.  We prefer a C program (faster),
3719# so one script is as good as another.  But avoid the broken or
3720# incompatible versions:
3721# SysV /etc/install, /usr/sbin/install
3722# SunOS /usr/etc/install
3723# IRIX /sbin/install
3724# AIX /bin/install
3725# AmigaOS /C/install, which installs bootblocks on floppy discs
3726# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3727# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3728# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3729# OS/2's system install, which has a completely different semantic
3730# ./install, which can be erroneously created by make from ./install.sh.
3731# Reject install programs that cannot install multiple files.
3732{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3733$as_echo_n "checking for a BSD-compatible install... " >&6; }
3734if test -z "$INSTALL"; then
3735if test "${ac_cv_path_install+set}" = set; then
3736  $as_echo_n "(cached) " >&6
3737else
3738  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739for as_dir in $PATH
3740do
3741  IFS=$as_save_IFS
3742  test -z "$as_dir" && as_dir=.
3743  # Account for people who put trailing slashes in PATH elements.
3744case $as_dir/ in
3745  ./ | .// | /cC/* | \
3746  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3747  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3748  /usr/ucb/* ) ;;
3749  *)
3750    # OSF1 and SCO ODT 3.0 have their own names for install.
3751    # Don't use installbsd from OSF since it installs stuff as root
3752    # by default.
3753    for ac_prog in ginstall scoinst install; do
3754      for ac_exec_ext in '' $ac_executable_extensions; do
3755	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3756	  if test $ac_prog = install &&
3757	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3758	    # AIX install.  It has an incompatible calling convention.
3759	    :
3760	  elif test $ac_prog = install &&
3761	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3762	    # program-specific install script used by HP pwplus--don't use.
3763	    :
3764	  else
3765	    rm -rf conftest.one conftest.two conftest.dir
3766	    echo one > conftest.one
3767	    echo two > conftest.two
3768	    mkdir conftest.dir
3769	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3770	      test -s conftest.one && test -s conftest.two &&
3771	      test -s conftest.dir/conftest.one &&
3772	      test -s conftest.dir/conftest.two
3773	    then
3774	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3775	      break 3
3776	    fi
3777	  fi
3778	fi
3779      done
3780    done
3781    ;;
3782esac
3783
3784done
3785IFS=$as_save_IFS
3786
3787rm -rf conftest.one conftest.two conftest.dir
3788
3789fi
3790  if test "${ac_cv_path_install+set}" = set; then
3791    INSTALL=$ac_cv_path_install
3792  else
3793    # As a last resort, use the slow shell script.  Don't cache a
3794    # value for INSTALL within a source directory, because that will
3795    # break other packages using the cache if that directory is
3796    # removed, or if the value is a relative name.
3797    INSTALL=$ac_install_sh
3798  fi
3799fi
3800{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3801$as_echo "$INSTALL" >&6; }
3802
3803# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3804# It thinks the first close brace ends the variable substitution.
3805test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3806
3807test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3808
3809test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3810
3811{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3812$as_echo_n "checking whether ln -s works... " >&6; }
3813LN_S=$as_ln_s
3814if test "$LN_S" = "ln -s"; then
3815  { $as_echo "$as_me:$LINENO: result: yes" >&5
3816$as_echo "yes" >&6; }
3817else
3818  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3819$as_echo "no, using $LN_S" >&6; }
3820fi
3821
3822{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3823$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3824set x ${MAKE-make}
3825ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3826if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3827  $as_echo_n "(cached) " >&6
3828else
3829  cat >conftest.make <<\_ACEOF
3830SHELL = /bin/sh
3831all:
3832	@echo '@@@%%%=$(MAKE)=@@@%%%'
3833_ACEOF
3834# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3835case `${MAKE-make} -f conftest.make 2>/dev/null` in
3836  *@@@%%%=?*=@@@%%%*)
3837    eval ac_cv_prog_make_${ac_make}_set=yes;;
3838  *)
3839    eval ac_cv_prog_make_${ac_make}_set=no;;
3840esac
3841rm -f conftest.make
3842fi
3843if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3844  { $as_echo "$as_me:$LINENO: result: yes" >&5
3845$as_echo "yes" >&6; }
3846  SET_MAKE=
3847else
3848  { $as_echo "$as_me:$LINENO: result: no" >&5
3849$as_echo "no" >&6; }
3850  SET_MAKE="MAKE=${MAKE-make}"
3851fi
3852
3853{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3854$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3855if test -z "$MKDIR_P"; then
3856  if test "${ac_cv_path_mkdir+set}" = set; then
3857  $as_echo_n "(cached) " >&6
3858else
3859  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3861do
3862  IFS=$as_save_IFS
3863  test -z "$as_dir" && as_dir=.
3864  for ac_prog in mkdir gmkdir; do
3865	 for ac_exec_ext in '' $ac_executable_extensions; do
3866	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3867	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3868	     'mkdir (GNU coreutils) '* | \
3869	     'mkdir (coreutils) '* | \
3870	     'mkdir (fileutils) '4.1*)
3871	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3872	       break 3;;
3873	   esac
3874	 done
3875       done
3876done
3877IFS=$as_save_IFS
3878
3879fi
3880
3881  if test "${ac_cv_path_mkdir+set}" = set; then
3882    MKDIR_P="$ac_cv_path_mkdir -p"
3883  else
3884    # As a last resort, use the slow shell script.  Don't cache a
3885    # value for MKDIR_P within a source directory, because that will
3886    # break other packages using the cache if that directory is
3887    # removed, or if the value is a relative name.
3888    test -d ./--version && rmdir ./--version
3889    MKDIR_P="$ac_install_sh -d"
3890  fi
3891fi
3892{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3893$as_echo "$MKDIR_P" >&6; }
3894
3895if test -n "$ac_tool_prefix"; then
3896  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3897set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3898{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3899$as_echo_n "checking for $ac_word... " >&6; }
3900if test "${ac_cv_prog_RANLIB+set}" = set; then
3901  $as_echo_n "(cached) " >&6
3902else
3903  if test -n "$RANLIB"; then
3904  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3905else
3906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907for as_dir in $PATH
3908do
3909  IFS=$as_save_IFS
3910  test -z "$as_dir" && as_dir=.
3911  for ac_exec_ext in '' $ac_executable_extensions; do
3912  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3913    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3914    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915    break 2
3916  fi
3917done
3918done
3919IFS=$as_save_IFS
3920
3921fi
3922fi
3923RANLIB=$ac_cv_prog_RANLIB
3924if test -n "$RANLIB"; then
3925  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3926$as_echo "$RANLIB" >&6; }
3927else
3928  { $as_echo "$as_me:$LINENO: result: no" >&5
3929$as_echo "no" >&6; }
3930fi
3931
3932
3933fi
3934if test -z "$ac_cv_prog_RANLIB"; then
3935  ac_ct_RANLIB=$RANLIB
3936  # Extract the first word of "ranlib", so it can be a program name with args.
3937set dummy ranlib; ac_word=$2
3938{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3939$as_echo_n "checking for $ac_word... " >&6; }
3940if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3941  $as_echo_n "(cached) " >&6
3942else
3943  if test -n "$ac_ct_RANLIB"; then
3944  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3945else
3946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947for as_dir in $PATH
3948do
3949  IFS=$as_save_IFS
3950  test -z "$as_dir" && as_dir=.
3951  for ac_exec_ext in '' $ac_executable_extensions; do
3952  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3953    ac_cv_prog_ac_ct_RANLIB="ranlib"
3954    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955    break 2
3956  fi
3957done
3958done
3959IFS=$as_save_IFS
3960
3961fi
3962fi
3963ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3964if test -n "$ac_ct_RANLIB"; then
3965  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3966$as_echo "$ac_ct_RANLIB" >&6; }
3967else
3968  { $as_echo "$as_me:$LINENO: result: no" >&5
3969$as_echo "no" >&6; }
3970fi
3971
3972  if test "x$ac_ct_RANLIB" = x; then
3973    RANLIB=":"
3974  else
3975    case $cross_compiling:$ac_tool_warned in
3976yes:)
3977{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3979ac_tool_warned=yes ;;
3980esac
3981    RANLIB=$ac_ct_RANLIB
3982  fi
3983else
3984  RANLIB="$ac_cv_prog_RANLIB"
3985fi
3986
3987# Extract the first word of "cflow", so it can be a program name with args.
3988set dummy cflow; ac_word=$2
3989{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3990$as_echo_n "checking for $ac_word... " >&6; }
3991if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3992  $as_echo_n "(cached) " >&6
3993else
3994  case $CFLOW_CMD in
3995  [\\/]* | ?:[\\/]*)
3996  ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
3997  ;;
3998  *)
3999  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000for as_dir in $PATH
4001do
4002  IFS=$as_save_IFS
4003  test -z "$as_dir" && as_dir=.
4004  for ac_exec_ext in '' $ac_executable_extensions; do
4005  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006    ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4007    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008    break 2
4009  fi
4010done
4011done
4012IFS=$as_save_IFS
4013
4014  ;;
4015esac
4016fi
4017CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4018if test -n "$CFLOW_CMD"; then
4019  { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4020$as_echo "$CFLOW_CMD" >&6; }
4021else
4022  { $as_echo "$as_me:$LINENO: result: no" >&5
4023$as_echo "no" >&6; }
4024fi
4025
4026
4027# Extract the first word of "cscope", so it can be a program name with args.
4028set dummy cscope; ac_word=$2
4029{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4030$as_echo_n "checking for $ac_word... " >&6; }
4031if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
4032  $as_echo_n "(cached) " >&6
4033else
4034  case $CSCOPE_CMD in
4035  [\\/]* | ?:[\\/]*)
4036  ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4037  ;;
4038  *)
4039  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040for as_dir in $PATH
4041do
4042  IFS=$as_save_IFS
4043  test -z "$as_dir" && as_dir=.
4044  for ac_exec_ext in '' $ac_executable_extensions; do
4045  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4046    ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4047    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048    break 2
4049  fi
4050done
4051done
4052IFS=$as_save_IFS
4053
4054  ;;
4055esac
4056fi
4057CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4058if test -n "$CSCOPE_CMD"; then
4059  { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4060$as_echo "$CSCOPE_CMD" >&6; }
4061else
4062  { $as_echo "$as_me:$LINENO: result: no" >&5
4063$as_echo "no" >&6; }
4064fi
4065
4066
4067
4068################################################################################
4069
4070
4071
4072
4073
4074ac_header_dirent=no
4075for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4076  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4077{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4078$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4080  $as_echo_n "(cached) " >&6
4081else
4082  cat >conftest.$ac_ext <<_ACEOF
4083/* confdefs.h.  */
4084_ACEOF
4085cat confdefs.h >>conftest.$ac_ext
4086cat >>conftest.$ac_ext <<_ACEOF
4087/* end confdefs.h.  */
4088#include <sys/types.h>
4089#include <$ac_hdr>
4090
4091int
4092main ()
4093{
4094if ((DIR *) 0)
4095return 0;
4096  ;
4097  return 0;
4098}
4099_ACEOF
4100rm -f conftest.$ac_objext
4101if { (ac_try="$ac_compile"
4102case "(($ac_try" in
4103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104  *) ac_try_echo=$ac_try;;
4105esac
4106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4107$as_echo "$ac_try_echo") >&5
4108  (eval "$ac_compile") 2>conftest.er1
4109  ac_status=$?
4110  grep -v '^ *+' conftest.er1 >conftest.err
4111  rm -f conftest.er1
4112  cat conftest.err >&5
4113  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114  (exit $ac_status); } && {
4115	 test -z "$ac_c_werror_flag" ||
4116	 test ! -s conftest.err
4117       } && test -s conftest.$ac_objext; then
4118  eval "$as_ac_Header=yes"
4119else
4120  $as_echo "$as_me: failed program was:" >&5
4121sed 's/^/| /' conftest.$ac_ext >&5
4122
4123	eval "$as_ac_Header=no"
4124fi
4125
4126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127fi
4128ac_res=`eval 'as_val=${'$as_ac_Header'}
4129		 $as_echo "$as_val"'`
4130	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4131$as_echo "$ac_res" >&6; }
4132as_val=`eval 'as_val=${'$as_ac_Header'}
4133		 $as_echo "$as_val"'`
4134   if test "x$as_val" = x""yes; then
4135  cat >>confdefs.h <<_ACEOF
4136#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4137_ACEOF
4138
4139ac_header_dirent=$ac_hdr; break
4140fi
4141
4142done
4143# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4144if test $ac_header_dirent = dirent.h; then
4145  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4146$as_echo_n "checking for library containing opendir... " >&6; }
4147if test "${ac_cv_search_opendir+set}" = set; then
4148  $as_echo_n "(cached) " >&6
4149else
4150  ac_func_search_save_LIBS=$LIBS
4151cat >conftest.$ac_ext <<_ACEOF
4152/* confdefs.h.  */
4153_ACEOF
4154cat confdefs.h >>conftest.$ac_ext
4155cat >>conftest.$ac_ext <<_ACEOF
4156/* end confdefs.h.  */
4157
4158/* Override any GCC internal prototype to avoid an error.
4159   Use char because int might match the return type of a GCC
4160   builtin and then its argument prototype would still apply.  */
4161#ifdef __cplusplus
4162extern "C"
4163#endif
4164char opendir ();
4165int
4166main ()
4167{
4168return opendir ();
4169  ;
4170  return 0;
4171}
4172_ACEOF
4173for ac_lib in '' dir; do
4174  if test -z "$ac_lib"; then
4175    ac_res="none required"
4176  else
4177    ac_res=-l$ac_lib
4178    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4179  fi
4180  rm -f conftest.$ac_objext conftest$ac_exeext
4181if { (ac_try="$ac_link"
4182case "(($ac_try" in
4183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184  *) ac_try_echo=$ac_try;;
4185esac
4186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4187$as_echo "$ac_try_echo") >&5
4188  (eval "$ac_link") 2>conftest.er1
4189  ac_status=$?
4190  grep -v '^ *+' conftest.er1 >conftest.err
4191  rm -f conftest.er1
4192  cat conftest.err >&5
4193  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194  (exit $ac_status); } && {
4195	 test -z "$ac_c_werror_flag" ||
4196	 test ! -s conftest.err
4197       } && test -s conftest$ac_exeext && {
4198	 test "$cross_compiling" = yes ||
4199	 $as_test_x conftest$ac_exeext
4200       }; then
4201  ac_cv_search_opendir=$ac_res
4202else
4203  $as_echo "$as_me: failed program was:" >&5
4204sed 's/^/| /' conftest.$ac_ext >&5
4205
4206
4207fi
4208
4209rm -rf conftest.dSYM
4210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4211      conftest$ac_exeext
4212  if test "${ac_cv_search_opendir+set}" = set; then
4213  break
4214fi
4215done
4216if test "${ac_cv_search_opendir+set}" = set; then
4217  :
4218else
4219  ac_cv_search_opendir=no
4220fi
4221rm conftest.$ac_ext
4222LIBS=$ac_func_search_save_LIBS
4223fi
4224{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4225$as_echo "$ac_cv_search_opendir" >&6; }
4226ac_res=$ac_cv_search_opendir
4227if test "$ac_res" != no; then
4228  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4229
4230fi
4231
4232else
4233  { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4234$as_echo_n "checking for library containing opendir... " >&6; }
4235if test "${ac_cv_search_opendir+set}" = set; then
4236  $as_echo_n "(cached) " >&6
4237else
4238  ac_func_search_save_LIBS=$LIBS
4239cat >conftest.$ac_ext <<_ACEOF
4240/* confdefs.h.  */
4241_ACEOF
4242cat confdefs.h >>conftest.$ac_ext
4243cat >>conftest.$ac_ext <<_ACEOF
4244/* end confdefs.h.  */
4245
4246/* Override any GCC internal prototype to avoid an error.
4247   Use char because int might match the return type of a GCC
4248   builtin and then its argument prototype would still apply.  */
4249#ifdef __cplusplus
4250extern "C"
4251#endif
4252char opendir ();
4253int
4254main ()
4255{
4256return opendir ();
4257  ;
4258  return 0;
4259}
4260_ACEOF
4261for ac_lib in '' x; do
4262  if test -z "$ac_lib"; then
4263    ac_res="none required"
4264  else
4265    ac_res=-l$ac_lib
4266    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4267  fi
4268  rm -f conftest.$ac_objext conftest$ac_exeext
4269if { (ac_try="$ac_link"
4270case "(($ac_try" in
4271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272  *) ac_try_echo=$ac_try;;
4273esac
4274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4275$as_echo "$ac_try_echo") >&5
4276  (eval "$ac_link") 2>conftest.er1
4277  ac_status=$?
4278  grep -v '^ *+' conftest.er1 >conftest.err
4279  rm -f conftest.er1
4280  cat conftest.err >&5
4281  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282  (exit $ac_status); } && {
4283	 test -z "$ac_c_werror_flag" ||
4284	 test ! -s conftest.err
4285       } && test -s conftest$ac_exeext && {
4286	 test "$cross_compiling" = yes ||
4287	 $as_test_x conftest$ac_exeext
4288       }; then
4289  ac_cv_search_opendir=$ac_res
4290else
4291  $as_echo "$as_me: failed program was:" >&5
4292sed 's/^/| /' conftest.$ac_ext >&5
4293
4294
4295fi
4296
4297rm -rf conftest.dSYM
4298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4299      conftest$ac_exeext
4300  if test "${ac_cv_search_opendir+set}" = set; then
4301  break
4302fi
4303done
4304if test "${ac_cv_search_opendir+set}" = set; then
4305  :
4306else
4307  ac_cv_search_opendir=no
4308fi
4309rm conftest.$ac_ext
4310LIBS=$ac_func_search_save_LIBS
4311fi
4312{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4313$as_echo "$ac_cv_search_opendir" >&6; }
4314ac_res=$ac_cv_search_opendir
4315if test "$ac_res" != no; then
4316  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4317
4318fi
4319
4320fi
4321
4322{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4323$as_echo_n "checking for ANSI C header files... " >&6; }
4324if test "${ac_cv_header_stdc+set}" = set; then
4325  $as_echo_n "(cached) " >&6
4326else
4327  cat >conftest.$ac_ext <<_ACEOF
4328/* confdefs.h.  */
4329_ACEOF
4330cat confdefs.h >>conftest.$ac_ext
4331cat >>conftest.$ac_ext <<_ACEOF
4332/* end confdefs.h.  */
4333#include <stdlib.h>
4334#include <stdarg.h>
4335#include <string.h>
4336#include <float.h>
4337
4338int
4339main ()
4340{
4341
4342  ;
4343  return 0;
4344}
4345_ACEOF
4346rm -f conftest.$ac_objext
4347if { (ac_try="$ac_compile"
4348case "(($ac_try" in
4349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350  *) ac_try_echo=$ac_try;;
4351esac
4352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4353$as_echo "$ac_try_echo") >&5
4354  (eval "$ac_compile") 2>conftest.er1
4355  ac_status=$?
4356  grep -v '^ *+' conftest.er1 >conftest.err
4357  rm -f conftest.er1
4358  cat conftest.err >&5
4359  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360  (exit $ac_status); } && {
4361	 test -z "$ac_c_werror_flag" ||
4362	 test ! -s conftest.err
4363       } && test -s conftest.$ac_objext; then
4364  ac_cv_header_stdc=yes
4365else
4366  $as_echo "$as_me: failed program was:" >&5
4367sed 's/^/| /' conftest.$ac_ext >&5
4368
4369	ac_cv_header_stdc=no
4370fi
4371
4372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373
4374if test $ac_cv_header_stdc = yes; then
4375  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4376  cat >conftest.$ac_ext <<_ACEOF
4377/* confdefs.h.  */
4378_ACEOF
4379cat confdefs.h >>conftest.$ac_ext
4380cat >>conftest.$ac_ext <<_ACEOF
4381/* end confdefs.h.  */
4382#include <string.h>
4383
4384_ACEOF
4385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4386  $EGREP "memchr" >/dev/null 2>&1; then
4387  :
4388else
4389  ac_cv_header_stdc=no
4390fi
4391rm -f conftest*
4392
4393fi
4394
4395if test $ac_cv_header_stdc = yes; then
4396  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4397  cat >conftest.$ac_ext <<_ACEOF
4398/* confdefs.h.  */
4399_ACEOF
4400cat confdefs.h >>conftest.$ac_ext
4401cat >>conftest.$ac_ext <<_ACEOF
4402/* end confdefs.h.  */
4403#include <stdlib.h>
4404
4405_ACEOF
4406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4407  $EGREP "free" >/dev/null 2>&1; then
4408  :
4409else
4410  ac_cv_header_stdc=no
4411fi
4412rm -f conftest*
4413
4414fi
4415
4416if test $ac_cv_header_stdc = yes; then
4417  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4418  if test "$cross_compiling" = yes; then
4419  :
4420else
4421  cat >conftest.$ac_ext <<_ACEOF
4422/* confdefs.h.  */
4423_ACEOF
4424cat confdefs.h >>conftest.$ac_ext
4425cat >>conftest.$ac_ext <<_ACEOF
4426/* end confdefs.h.  */
4427#include <ctype.h>
4428#include <stdlib.h>
4429#if ((' ' & 0x0FF) == 0x020)
4430# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4431# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4432#else
4433# define ISLOWER(c) \
4434		   (('a' <= (c) && (c) <= 'i') \
4435		     || ('j' <= (c) && (c) <= 'r') \
4436		     || ('s' <= (c) && (c) <= 'z'))
4437# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4438#endif
4439
4440#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4441int
4442main ()
4443{
4444  int i;
4445  for (i = 0; i < 256; i++)
4446    if (XOR (islower (i), ISLOWER (i))
4447	|| toupper (i) != TOUPPER (i))
4448      return 2;
4449  return 0;
4450}
4451_ACEOF
4452rm -f conftest$ac_exeext
4453if { (ac_try="$ac_link"
4454case "(($ac_try" in
4455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456  *) ac_try_echo=$ac_try;;
4457esac
4458eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4459$as_echo "$ac_try_echo") >&5
4460  (eval "$ac_link") 2>&5
4461  ac_status=$?
4462  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4464  { (case "(($ac_try" in
4465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466  *) ac_try_echo=$ac_try;;
4467esac
4468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4469$as_echo "$ac_try_echo") >&5
4470  (eval "$ac_try") 2>&5
4471  ac_status=$?
4472  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473  (exit $ac_status); }; }; then
4474  :
4475else
4476  $as_echo "$as_me: program exited with status $ac_status" >&5
4477$as_echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
4479
4480( exit $ac_status )
4481ac_cv_header_stdc=no
4482fi
4483rm -rf conftest.dSYM
4484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4485fi
4486
4487
4488fi
4489fi
4490{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4491$as_echo "$ac_cv_header_stdc" >&6; }
4492if test $ac_cv_header_stdc = yes; then
4493
4494cat >>confdefs.h <<\_ACEOF
4495#define STDC_HEADERS 1
4496_ACEOF
4497
4498fi
4499
4500{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4501$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4502if test "${ac_cv_header_sys_wait_h+set}" = set; then
4503  $as_echo_n "(cached) " >&6
4504else
4505  cat >conftest.$ac_ext <<_ACEOF
4506/* confdefs.h.  */
4507_ACEOF
4508cat confdefs.h >>conftest.$ac_ext
4509cat >>conftest.$ac_ext <<_ACEOF
4510/* end confdefs.h.  */
4511#include <sys/types.h>
4512#include <sys/wait.h>
4513#ifndef WEXITSTATUS
4514# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4515#endif
4516#ifndef WIFEXITED
4517# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4518#endif
4519
4520int
4521main ()
4522{
4523  int s;
4524  wait (&s);
4525  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4526  ;
4527  return 0;
4528}
4529_ACEOF
4530rm -f conftest.$ac_objext
4531if { (ac_try="$ac_compile"
4532case "(($ac_try" in
4533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534  *) ac_try_echo=$ac_try;;
4535esac
4536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4537$as_echo "$ac_try_echo") >&5
4538  (eval "$ac_compile") 2>conftest.er1
4539  ac_status=$?
4540  grep -v '^ *+' conftest.er1 >conftest.err
4541  rm -f conftest.er1
4542  cat conftest.err >&5
4543  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544  (exit $ac_status); } && {
4545	 test -z "$ac_c_werror_flag" ||
4546	 test ! -s conftest.err
4547       } && test -s conftest.$ac_objext; then
4548  ac_cv_header_sys_wait_h=yes
4549else
4550  $as_echo "$as_me: failed program was:" >&5
4551sed 's/^/| /' conftest.$ac_ext >&5
4552
4553	ac_cv_header_sys_wait_h=no
4554fi
4555
4556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557fi
4558{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4559$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4560if test $ac_cv_header_sys_wait_h = yes; then
4561
4562cat >>confdefs.h <<\_ACEOF
4563#define HAVE_SYS_WAIT_H 1
4564_ACEOF
4565
4566fi
4567
4568{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4569$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4570if test "${ac_cv_header_time+set}" = set; then
4571  $as_echo_n "(cached) " >&6
4572else
4573  cat >conftest.$ac_ext <<_ACEOF
4574/* confdefs.h.  */
4575_ACEOF
4576cat confdefs.h >>conftest.$ac_ext
4577cat >>conftest.$ac_ext <<_ACEOF
4578/* end confdefs.h.  */
4579#include <sys/types.h>
4580#include <sys/time.h>
4581#include <time.h>
4582
4583int
4584main ()
4585{
4586if ((struct tm *) 0)
4587return 0;
4588  ;
4589  return 0;
4590}
4591_ACEOF
4592rm -f conftest.$ac_objext
4593if { (ac_try="$ac_compile"
4594case "(($ac_try" in
4595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596  *) ac_try_echo=$ac_try;;
4597esac
4598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4599$as_echo "$ac_try_echo") >&5
4600  (eval "$ac_compile") 2>conftest.er1
4601  ac_status=$?
4602  grep -v '^ *+' conftest.er1 >conftest.err
4603  rm -f conftest.er1
4604  cat conftest.err >&5
4605  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606  (exit $ac_status); } && {
4607	 test -z "$ac_c_werror_flag" ||
4608	 test ! -s conftest.err
4609       } && test -s conftest.$ac_objext; then
4610  ac_cv_header_time=yes
4611else
4612  $as_echo "$as_me: failed program was:" >&5
4613sed 's/^/| /' conftest.$ac_ext >&5
4614
4615	ac_cv_header_time=no
4616fi
4617
4618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619fi
4620{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4621$as_echo "$ac_cv_header_time" >&6; }
4622if test $ac_cv_header_time = yes; then
4623
4624cat >>confdefs.h <<\_ACEOF
4625#define TIME_WITH_SYS_TIME 1
4626_ACEOF
4627
4628fi
4629
4630
4631# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4642		  inttypes.h stdint.h unistd.h
4643do
4644as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4645{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4646$as_echo_n "checking for $ac_header... " >&6; }
4647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4648  $as_echo_n "(cached) " >&6
4649else
4650  cat >conftest.$ac_ext <<_ACEOF
4651/* confdefs.h.  */
4652_ACEOF
4653cat confdefs.h >>conftest.$ac_ext
4654cat >>conftest.$ac_ext <<_ACEOF
4655/* end confdefs.h.  */
4656$ac_includes_default
4657
4658#include <$ac_header>
4659_ACEOF
4660rm -f conftest.$ac_objext
4661if { (ac_try="$ac_compile"
4662case "(($ac_try" in
4663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664  *) ac_try_echo=$ac_try;;
4665esac
4666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4667$as_echo "$ac_try_echo") >&5
4668  (eval "$ac_compile") 2>conftest.er1
4669  ac_status=$?
4670  grep -v '^ *+' conftest.er1 >conftest.err
4671  rm -f conftest.er1
4672  cat conftest.err >&5
4673  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674  (exit $ac_status); } && {
4675	 test -z "$ac_c_werror_flag" ||
4676	 test ! -s conftest.err
4677       } && test -s conftest.$ac_objext; then
4678  eval "$as_ac_Header=yes"
4679else
4680  $as_echo "$as_me: failed program was:" >&5
4681sed 's/^/| /' conftest.$ac_ext >&5
4682
4683	eval "$as_ac_Header=no"
4684fi
4685
4686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687fi
4688ac_res=`eval 'as_val=${'$as_ac_Header'}
4689		 $as_echo "$as_val"'`
4690	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4691$as_echo "$ac_res" >&6; }
4692as_val=`eval 'as_val=${'$as_ac_Header'}
4693		 $as_echo "$as_val"'`
4694   if test "x$as_val" = x""yes; then
4695  cat >>confdefs.h <<_ACEOF
4696#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4697_ACEOF
4698
4699fi
4700
4701done
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4718  libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4719do
4720as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4722  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4723$as_echo_n "checking for $ac_header... " >&6; }
4724if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4725  $as_echo_n "(cached) " >&6
4726fi
4727ac_res=`eval 'as_val=${'$as_ac_Header'}
4728		 $as_echo "$as_val"'`
4729	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4730$as_echo "$ac_res" >&6; }
4731else
4732  # Is the header compilable?
4733{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4734$as_echo_n "checking $ac_header usability... " >&6; }
4735cat >conftest.$ac_ext <<_ACEOF
4736/* confdefs.h.  */
4737_ACEOF
4738cat confdefs.h >>conftest.$ac_ext
4739cat >>conftest.$ac_ext <<_ACEOF
4740/* end confdefs.h.  */
4741$ac_includes_default
4742#include <$ac_header>
4743_ACEOF
4744rm -f conftest.$ac_objext
4745if { (ac_try="$ac_compile"
4746case "(($ac_try" in
4747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748  *) ac_try_echo=$ac_try;;
4749esac
4750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4751$as_echo "$ac_try_echo") >&5
4752  (eval "$ac_compile") 2>conftest.er1
4753  ac_status=$?
4754  grep -v '^ *+' conftest.er1 >conftest.err
4755  rm -f conftest.er1
4756  cat conftest.err >&5
4757  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758  (exit $ac_status); } && {
4759	 test -z "$ac_c_werror_flag" ||
4760	 test ! -s conftest.err
4761       } && test -s conftest.$ac_objext; then
4762  ac_header_compiler=yes
4763else
4764  $as_echo "$as_me: failed program was:" >&5
4765sed 's/^/| /' conftest.$ac_ext >&5
4766
4767	ac_header_compiler=no
4768fi
4769
4770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4772$as_echo "$ac_header_compiler" >&6; }
4773
4774# Is the header present?
4775{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4776$as_echo_n "checking $ac_header presence... " >&6; }
4777cat >conftest.$ac_ext <<_ACEOF
4778/* confdefs.h.  */
4779_ACEOF
4780cat confdefs.h >>conftest.$ac_ext
4781cat >>conftest.$ac_ext <<_ACEOF
4782/* end confdefs.h.  */
4783#include <$ac_header>
4784_ACEOF
4785if { (ac_try="$ac_cpp conftest.$ac_ext"
4786case "(($ac_try" in
4787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788  *) ac_try_echo=$ac_try;;
4789esac
4790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4791$as_echo "$ac_try_echo") >&5
4792  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4793  ac_status=$?
4794  grep -v '^ *+' conftest.er1 >conftest.err
4795  rm -f conftest.er1
4796  cat conftest.err >&5
4797  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798  (exit $ac_status); } >/dev/null && {
4799	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4800	 test ! -s conftest.err
4801       }; then
4802  ac_header_preproc=yes
4803else
4804  $as_echo "$as_me: failed program was:" >&5
4805sed 's/^/| /' conftest.$ac_ext >&5
4806
4807  ac_header_preproc=no
4808fi
4809
4810rm -f conftest.err conftest.$ac_ext
4811{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4812$as_echo "$ac_header_preproc" >&6; }
4813
4814# So?  What about this header?
4815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4816  yes:no: )
4817    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4818$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4819    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4820$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4821    ac_header_preproc=yes
4822    ;;
4823  no:yes:* )
4824    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4825$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4826    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4827$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4828    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4829$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4830    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4831$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4832    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4833$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4834    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4835$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4836
4837    ;;
4838esac
4839{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4840$as_echo_n "checking for $ac_header... " >&6; }
4841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4842  $as_echo_n "(cached) " >&6
4843else
4844  eval "$as_ac_Header=\$ac_header_preproc"
4845fi
4846ac_res=`eval 'as_val=${'$as_ac_Header'}
4847		 $as_echo "$as_val"'`
4848	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4849$as_echo "$ac_res" >&6; }
4850
4851fi
4852as_val=`eval 'as_val=${'$as_ac_Header'}
4853		 $as_echo "$as_val"'`
4854   if test "x$as_val" = x""yes; then
4855  cat >>confdefs.h <<_ACEOF
4856#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4857_ACEOF
4858
4859else
4860  { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4861$as_echo "$as_me: error: bailing out" >&2;}
4862   { (exit 1); exit 1; }; }
4863fi
4864
4865done
4866
4867
4868case "$host_os" in
4869	linux*)
4870
4871
4872
4873for ac_header in asm/byteorder.h linux/fs.h malloc.h
4874do
4875as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4877  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4878$as_echo_n "checking for $ac_header... " >&6; }
4879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4880  $as_echo_n "(cached) " >&6
4881fi
4882ac_res=`eval 'as_val=${'$as_ac_Header'}
4883		 $as_echo "$as_val"'`
4884	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4885$as_echo "$ac_res" >&6; }
4886else
4887  # Is the header compilable?
4888{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4889$as_echo_n "checking $ac_header usability... " >&6; }
4890cat >conftest.$ac_ext <<_ACEOF
4891/* confdefs.h.  */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h.  */
4896$ac_includes_default
4897#include <$ac_header>
4898_ACEOF
4899rm -f conftest.$ac_objext
4900if { (ac_try="$ac_compile"
4901case "(($ac_try" in
4902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903  *) ac_try_echo=$ac_try;;
4904esac
4905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4906$as_echo "$ac_try_echo") >&5
4907  (eval "$ac_compile") 2>conftest.er1
4908  ac_status=$?
4909  grep -v '^ *+' conftest.er1 >conftest.err
4910  rm -f conftest.er1
4911  cat conftest.err >&5
4912  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913  (exit $ac_status); } && {
4914	 test -z "$ac_c_werror_flag" ||
4915	 test ! -s conftest.err
4916       } && test -s conftest.$ac_objext; then
4917  ac_header_compiler=yes
4918else
4919  $as_echo "$as_me: failed program was:" >&5
4920sed 's/^/| /' conftest.$ac_ext >&5
4921
4922	ac_header_compiler=no
4923fi
4924
4925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4927$as_echo "$ac_header_compiler" >&6; }
4928
4929# Is the header present?
4930{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4931$as_echo_n "checking $ac_header presence... " >&6; }
4932cat >conftest.$ac_ext <<_ACEOF
4933/* confdefs.h.  */
4934_ACEOF
4935cat confdefs.h >>conftest.$ac_ext
4936cat >>conftest.$ac_ext <<_ACEOF
4937/* end confdefs.h.  */
4938#include <$ac_header>
4939_ACEOF
4940if { (ac_try="$ac_cpp conftest.$ac_ext"
4941case "(($ac_try" in
4942  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943  *) ac_try_echo=$ac_try;;
4944esac
4945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4946$as_echo "$ac_try_echo") >&5
4947  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4948  ac_status=$?
4949  grep -v '^ *+' conftest.er1 >conftest.err
4950  rm -f conftest.er1
4951  cat conftest.err >&5
4952  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953  (exit $ac_status); } >/dev/null && {
4954	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4955	 test ! -s conftest.err
4956       }; then
4957  ac_header_preproc=yes
4958else
4959  $as_echo "$as_me: failed program was:" >&5
4960sed 's/^/| /' conftest.$ac_ext >&5
4961
4962  ac_header_preproc=no
4963fi
4964
4965rm -f conftest.err conftest.$ac_ext
4966{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4967$as_echo "$ac_header_preproc" >&6; }
4968
4969# So?  What about this header?
4970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4971  yes:no: )
4972    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4973$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4974    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4975$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4976    ac_header_preproc=yes
4977    ;;
4978  no:yes:* )
4979    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4980$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4981    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4982$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4983    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4984$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4985    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4986$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4987    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4988$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4989    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4990$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4991
4992    ;;
4993esac
4994{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4995$as_echo_n "checking for $ac_header... " >&6; }
4996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4997  $as_echo_n "(cached) " >&6
4998else
4999  eval "$as_ac_Header=\$ac_header_preproc"
5000fi
5001ac_res=`eval 'as_val=${'$as_ac_Header'}
5002		 $as_echo "$as_val"'`
5003	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5004$as_echo "$ac_res" >&6; }
5005
5006fi
5007as_val=`eval 'as_val=${'$as_ac_Header'}
5008		 $as_echo "$as_val"'`
5009   if test "x$as_val" = x""yes; then
5010  cat >>confdefs.h <<_ACEOF
5011#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5012_ACEOF
5013
5014else
5015  { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5016$as_echo "$as_me: error: bailing out" >&2;}
5017   { (exit 1); exit 1; }; }
5018fi
5019
5020done
5021 ;;
5022	darwin*)
5023
5024
5025for ac_header in machine/endian.h sys/disk.h
5026do
5027as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5029  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5030$as_echo_n "checking for $ac_header... " >&6; }
5031if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5032  $as_echo_n "(cached) " >&6
5033fi
5034ac_res=`eval 'as_val=${'$as_ac_Header'}
5035		 $as_echo "$as_val"'`
5036	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5037$as_echo "$ac_res" >&6; }
5038else
5039  # Is the header compilable?
5040{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5041$as_echo_n "checking $ac_header usability... " >&6; }
5042cat >conftest.$ac_ext <<_ACEOF
5043/* confdefs.h.  */
5044_ACEOF
5045cat confdefs.h >>conftest.$ac_ext
5046cat >>conftest.$ac_ext <<_ACEOF
5047/* end confdefs.h.  */
5048$ac_includes_default
5049#include <$ac_header>
5050_ACEOF
5051rm -f conftest.$ac_objext
5052if { (ac_try="$ac_compile"
5053case "(($ac_try" in
5054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055  *) ac_try_echo=$ac_try;;
5056esac
5057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5058$as_echo "$ac_try_echo") >&5
5059  (eval "$ac_compile") 2>conftest.er1
5060  ac_status=$?
5061  grep -v '^ *+' conftest.er1 >conftest.err
5062  rm -f conftest.er1
5063  cat conftest.err >&5
5064  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065  (exit $ac_status); } && {
5066	 test -z "$ac_c_werror_flag" ||
5067	 test ! -s conftest.err
5068       } && test -s conftest.$ac_objext; then
5069  ac_header_compiler=yes
5070else
5071  $as_echo "$as_me: failed program was:" >&5
5072sed 's/^/| /' conftest.$ac_ext >&5
5073
5074	ac_header_compiler=no
5075fi
5076
5077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5079$as_echo "$ac_header_compiler" >&6; }
5080
5081# Is the header present?
5082{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5083$as_echo_n "checking $ac_header presence... " >&6; }
5084cat >conftest.$ac_ext <<_ACEOF
5085/* confdefs.h.  */
5086_ACEOF
5087cat confdefs.h >>conftest.$ac_ext
5088cat >>conftest.$ac_ext <<_ACEOF
5089/* end confdefs.h.  */
5090#include <$ac_header>
5091_ACEOF
5092if { (ac_try="$ac_cpp conftest.$ac_ext"
5093case "(($ac_try" in
5094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095  *) ac_try_echo=$ac_try;;
5096esac
5097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5098$as_echo "$ac_try_echo") >&5
5099  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5100  ac_status=$?
5101  grep -v '^ *+' conftest.er1 >conftest.err
5102  rm -f conftest.er1
5103  cat conftest.err >&5
5104  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105  (exit $ac_status); } >/dev/null && {
5106	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5107	 test ! -s conftest.err
5108       }; then
5109  ac_header_preproc=yes
5110else
5111  $as_echo "$as_me: failed program was:" >&5
5112sed 's/^/| /' conftest.$ac_ext >&5
5113
5114  ac_header_preproc=no
5115fi
5116
5117rm -f conftest.err conftest.$ac_ext
5118{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5119$as_echo "$ac_header_preproc" >&6; }
5120
5121# So?  What about this header?
5122case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5123  yes:no: )
5124    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5125$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5126    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5127$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5128    ac_header_preproc=yes
5129    ;;
5130  no:yes:* )
5131    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5132$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5133    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5134$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5135    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5136$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5137    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5138$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5139    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5140$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5141    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5142$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5143
5144    ;;
5145esac
5146{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5147$as_echo_n "checking for $ac_header... " >&6; }
5148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5149  $as_echo_n "(cached) " >&6
5150else
5151  eval "$as_ac_Header=\$ac_header_preproc"
5152fi
5153ac_res=`eval 'as_val=${'$as_ac_Header'}
5154		 $as_echo "$as_val"'`
5155	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5156$as_echo "$ac_res" >&6; }
5157
5158fi
5159as_val=`eval 'as_val=${'$as_ac_Header'}
5160		 $as_echo "$as_val"'`
5161   if test "x$as_val" = x""yes; then
5162  cat >>confdefs.h <<_ACEOF
5163#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5164_ACEOF
5165
5166else
5167  { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5168$as_echo "$as_me: error: bailing out" >&2;}
5169   { (exit 1); exit 1; }; }
5170fi
5171
5172done
5173 ;;
5174esac
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5193  stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5194  sys/types.h unistd.h
5195do
5196as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5198  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5199$as_echo_n "checking for $ac_header... " >&6; }
5200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5201  $as_echo_n "(cached) " >&6
5202fi
5203ac_res=`eval 'as_val=${'$as_ac_Header'}
5204		 $as_echo "$as_val"'`
5205	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5206$as_echo "$ac_res" >&6; }
5207else
5208  # Is the header compilable?
5209{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5210$as_echo_n "checking $ac_header usability... " >&6; }
5211cat >conftest.$ac_ext <<_ACEOF
5212/* confdefs.h.  */
5213_ACEOF
5214cat confdefs.h >>conftest.$ac_ext
5215cat >>conftest.$ac_ext <<_ACEOF
5216/* end confdefs.h.  */
5217$ac_includes_default
5218#include <$ac_header>
5219_ACEOF
5220rm -f conftest.$ac_objext
5221if { (ac_try="$ac_compile"
5222case "(($ac_try" in
5223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224  *) ac_try_echo=$ac_try;;
5225esac
5226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5227$as_echo "$ac_try_echo") >&5
5228  (eval "$ac_compile") 2>conftest.er1
5229  ac_status=$?
5230  grep -v '^ *+' conftest.er1 >conftest.err
5231  rm -f conftest.er1
5232  cat conftest.err >&5
5233  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234  (exit $ac_status); } && {
5235	 test -z "$ac_c_werror_flag" ||
5236	 test ! -s conftest.err
5237       } && test -s conftest.$ac_objext; then
5238  ac_header_compiler=yes
5239else
5240  $as_echo "$as_me: failed program was:" >&5
5241sed 's/^/| /' conftest.$ac_ext >&5
5242
5243	ac_header_compiler=no
5244fi
5245
5246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5248$as_echo "$ac_header_compiler" >&6; }
5249
5250# Is the header present?
5251{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5252$as_echo_n "checking $ac_header presence... " >&6; }
5253cat >conftest.$ac_ext <<_ACEOF
5254/* confdefs.h.  */
5255_ACEOF
5256cat confdefs.h >>conftest.$ac_ext
5257cat >>conftest.$ac_ext <<_ACEOF
5258/* end confdefs.h.  */
5259#include <$ac_header>
5260_ACEOF
5261if { (ac_try="$ac_cpp conftest.$ac_ext"
5262case "(($ac_try" in
5263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264  *) ac_try_echo=$ac_try;;
5265esac
5266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5267$as_echo "$ac_try_echo") >&5
5268  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5269  ac_status=$?
5270  grep -v '^ *+' conftest.er1 >conftest.err
5271  rm -f conftest.er1
5272  cat conftest.err >&5
5273  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274  (exit $ac_status); } >/dev/null && {
5275	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5276	 test ! -s conftest.err
5277       }; then
5278  ac_header_preproc=yes
5279else
5280  $as_echo "$as_me: failed program was:" >&5
5281sed 's/^/| /' conftest.$ac_ext >&5
5282
5283  ac_header_preproc=no
5284fi
5285
5286rm -f conftest.err conftest.$ac_ext
5287{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5288$as_echo "$ac_header_preproc" >&6; }
5289
5290# So?  What about this header?
5291case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5292  yes:no: )
5293    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5294$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5295    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5296$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5297    ac_header_preproc=yes
5298    ;;
5299  no:yes:* )
5300    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5301$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5302    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5303$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5304    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5305$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5306    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5307$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5308    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5309$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5310    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5311$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5312
5313    ;;
5314esac
5315{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5316$as_echo_n "checking for $ac_header... " >&6; }
5317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5318  $as_echo_n "(cached) " >&6
5319else
5320  eval "$as_ac_Header=\$ac_header_preproc"
5321fi
5322ac_res=`eval 'as_val=${'$as_ac_Header'}
5323		 $as_echo "$as_val"'`
5324	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5325$as_echo "$ac_res" >&6; }
5326
5327fi
5328as_val=`eval 'as_val=${'$as_ac_Header'}
5329		 $as_echo "$as_val"'`
5330   if test "x$as_val" = x""yes; then
5331  cat >>confdefs.h <<_ACEOF
5332#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5333_ACEOF
5334
5335else
5336  { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5337$as_echo "$as_me: error: bailing out" >&2;}
5338   { (exit 1); exit 1; }; }
5339fi
5340
5341done
5342
5343
5344
5345for ac_header in termios.h sys/statvfs.h
5346do
5347as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5349  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5350$as_echo_n "checking for $ac_header... " >&6; }
5351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5352  $as_echo_n "(cached) " >&6
5353fi
5354ac_res=`eval 'as_val=${'$as_ac_Header'}
5355		 $as_echo "$as_val"'`
5356	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5357$as_echo "$ac_res" >&6; }
5358else
5359  # Is the header compilable?
5360{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5361$as_echo_n "checking $ac_header usability... " >&6; }
5362cat >conftest.$ac_ext <<_ACEOF
5363/* confdefs.h.  */
5364_ACEOF
5365cat confdefs.h >>conftest.$ac_ext
5366cat >>conftest.$ac_ext <<_ACEOF
5367/* end confdefs.h.  */
5368$ac_includes_default
5369#include <$ac_header>
5370_ACEOF
5371rm -f conftest.$ac_objext
5372if { (ac_try="$ac_compile"
5373case "(($ac_try" in
5374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375  *) ac_try_echo=$ac_try;;
5376esac
5377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5378$as_echo "$ac_try_echo") >&5
5379  (eval "$ac_compile") 2>conftest.er1
5380  ac_status=$?
5381  grep -v '^ *+' conftest.er1 >conftest.err
5382  rm -f conftest.er1
5383  cat conftest.err >&5
5384  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385  (exit $ac_status); } && {
5386	 test -z "$ac_c_werror_flag" ||
5387	 test ! -s conftest.err
5388       } && test -s conftest.$ac_objext; then
5389  ac_header_compiler=yes
5390else
5391  $as_echo "$as_me: failed program was:" >&5
5392sed 's/^/| /' conftest.$ac_ext >&5
5393
5394	ac_header_compiler=no
5395fi
5396
5397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5399$as_echo "$ac_header_compiler" >&6; }
5400
5401# Is the header present?
5402{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5403$as_echo_n "checking $ac_header presence... " >&6; }
5404cat >conftest.$ac_ext <<_ACEOF
5405/* confdefs.h.  */
5406_ACEOF
5407cat confdefs.h >>conftest.$ac_ext
5408cat >>conftest.$ac_ext <<_ACEOF
5409/* end confdefs.h.  */
5410#include <$ac_header>
5411_ACEOF
5412if { (ac_try="$ac_cpp conftest.$ac_ext"
5413case "(($ac_try" in
5414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415  *) ac_try_echo=$ac_try;;
5416esac
5417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5418$as_echo "$ac_try_echo") >&5
5419  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5420  ac_status=$?
5421  grep -v '^ *+' conftest.er1 >conftest.err
5422  rm -f conftest.er1
5423  cat conftest.err >&5
5424  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425  (exit $ac_status); } >/dev/null && {
5426	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5427	 test ! -s conftest.err
5428       }; then
5429  ac_header_preproc=yes
5430else
5431  $as_echo "$as_me: failed program was:" >&5
5432sed 's/^/| /' conftest.$ac_ext >&5
5433
5434  ac_header_preproc=no
5435fi
5436
5437rm -f conftest.err conftest.$ac_ext
5438{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5439$as_echo "$ac_header_preproc" >&6; }
5440
5441# So?  What about this header?
5442case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5443  yes:no: )
5444    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5445$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5446    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5447$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5448    ac_header_preproc=yes
5449    ;;
5450  no:yes:* )
5451    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5452$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5453    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5454$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5455    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5456$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5457    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5458$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5459    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5460$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5461    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5462$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5463
5464    ;;
5465esac
5466{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5467$as_echo_n "checking for $ac_header... " >&6; }
5468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5469  $as_echo_n "(cached) " >&6
5470else
5471  eval "$as_ac_Header=\$ac_header_preproc"
5472fi
5473ac_res=`eval 'as_val=${'$as_ac_Header'}
5474		 $as_echo "$as_val"'`
5475	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5476$as_echo "$ac_res" >&6; }
5477
5478fi
5479as_val=`eval 'as_val=${'$as_ac_Header'}
5480		 $as_echo "$as_val"'`
5481   if test "x$as_val" = x""yes; then
5482  cat >>confdefs.h <<_ACEOF
5483#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5484_ACEOF
5485
5486fi
5487
5488done
5489
5490
5491################################################################################
5492{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5493$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5494if test "${ac_cv_c_const+set}" = set; then
5495  $as_echo_n "(cached) " >&6
5496else
5497  cat >conftest.$ac_ext <<_ACEOF
5498/* confdefs.h.  */
5499_ACEOF
5500cat confdefs.h >>conftest.$ac_ext
5501cat >>conftest.$ac_ext <<_ACEOF
5502/* end confdefs.h.  */
5503
5504int
5505main ()
5506{
5507/* FIXME: Include the comments suggested by Paul. */
5508#ifndef __cplusplus
5509  /* Ultrix mips cc rejects this.  */
5510  typedef int charset[2];
5511  const charset cs;
5512  /* SunOS 4.1.1 cc rejects this.  */
5513  char const *const *pcpcc;
5514  char **ppc;
5515  /* NEC SVR4.0.2 mips cc rejects this.  */
5516  struct point {int x, y;};
5517  static struct point const zero = {0,0};
5518  /* AIX XL C 1.02.0.0 rejects this.
5519     It does not let you subtract one const X* pointer from another in
5520     an arm of an if-expression whose if-part is not a constant
5521     expression */
5522  const char *g = "string";
5523  pcpcc = &g + (g ? g-g : 0);
5524  /* HPUX 7.0 cc rejects these. */
5525  ++pcpcc;
5526  ppc = (char**) pcpcc;
5527  pcpcc = (char const *const *) ppc;
5528  { /* SCO 3.2v4 cc rejects this.  */
5529    char *t;
5530    char const *s = 0 ? (char *) 0 : (char const *) 0;
5531
5532    *t++ = 0;
5533    if (s) return 0;
5534  }
5535  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5536    int x[] = {25, 17};
5537    const int *foo = &x[0];
5538    ++foo;
5539  }
5540  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5541    typedef const int *iptr;
5542    iptr p = 0;
5543    ++p;
5544  }
5545  { /* AIX XL C 1.02.0.0 rejects this saying
5546       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5547    struct s { int j; const int *ap[3]; };
5548    struct s *b; b->j = 5;
5549  }
5550  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5551    const int foo = 10;
5552    if (!foo) return 0;
5553  }
5554  return !cs[0] && !zero.x;
5555#endif
5556
5557  ;
5558  return 0;
5559}
5560_ACEOF
5561rm -f conftest.$ac_objext
5562if { (ac_try="$ac_compile"
5563case "(($ac_try" in
5564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565  *) ac_try_echo=$ac_try;;
5566esac
5567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5568$as_echo "$ac_try_echo") >&5
5569  (eval "$ac_compile") 2>conftest.er1
5570  ac_status=$?
5571  grep -v '^ *+' conftest.er1 >conftest.err
5572  rm -f conftest.er1
5573  cat conftest.err >&5
5574  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575  (exit $ac_status); } && {
5576	 test -z "$ac_c_werror_flag" ||
5577	 test ! -s conftest.err
5578       } && test -s conftest.$ac_objext; then
5579  ac_cv_c_const=yes
5580else
5581  $as_echo "$as_me: failed program was:" >&5
5582sed 's/^/| /' conftest.$ac_ext >&5
5583
5584	ac_cv_c_const=no
5585fi
5586
5587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588fi
5589{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5590$as_echo "$ac_cv_c_const" >&6; }
5591if test $ac_cv_c_const = no; then
5592
5593cat >>confdefs.h <<\_ACEOF
5594#define const /**/
5595_ACEOF
5596
5597fi
5598
5599{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5600$as_echo_n "checking for inline... " >&6; }
5601if test "${ac_cv_c_inline+set}" = set; then
5602  $as_echo_n "(cached) " >&6
5603else
5604  ac_cv_c_inline=no
5605for ac_kw in inline __inline__ __inline; do
5606  cat >conftest.$ac_ext <<_ACEOF
5607/* confdefs.h.  */
5608_ACEOF
5609cat confdefs.h >>conftest.$ac_ext
5610cat >>conftest.$ac_ext <<_ACEOF
5611/* end confdefs.h.  */
5612#ifndef __cplusplus
5613typedef int foo_t;
5614static $ac_kw foo_t static_foo () {return 0; }
5615$ac_kw foo_t foo () {return 0; }
5616#endif
5617
5618_ACEOF
5619rm -f conftest.$ac_objext
5620if { (ac_try="$ac_compile"
5621case "(($ac_try" in
5622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623  *) ac_try_echo=$ac_try;;
5624esac
5625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5626$as_echo "$ac_try_echo") >&5
5627  (eval "$ac_compile") 2>conftest.er1
5628  ac_status=$?
5629  grep -v '^ *+' conftest.er1 >conftest.err
5630  rm -f conftest.er1
5631  cat conftest.err >&5
5632  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633  (exit $ac_status); } && {
5634	 test -z "$ac_c_werror_flag" ||
5635	 test ! -s conftest.err
5636       } && test -s conftest.$ac_objext; then
5637  ac_cv_c_inline=$ac_kw
5638else
5639  $as_echo "$as_me: failed program was:" >&5
5640sed 's/^/| /' conftest.$ac_ext >&5
5641
5642
5643fi
5644
5645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5646  test "$ac_cv_c_inline" != no && break
5647done
5648
5649fi
5650{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5651$as_echo "$ac_cv_c_inline" >&6; }
5652
5653
5654case $ac_cv_c_inline in
5655  inline | yes) ;;
5656  *)
5657    case $ac_cv_c_inline in
5658      no) ac_val=;;
5659      *) ac_val=$ac_cv_c_inline;;
5660    esac
5661    cat >>confdefs.h <<_ACEOF
5662#ifndef __cplusplus
5663#define inline $ac_val
5664#endif
5665_ACEOF
5666    ;;
5667esac
5668
5669{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5670$as_echo_n "checking for struct stat.st_rdev... " >&6; }
5671if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5672  $as_echo_n "(cached) " >&6
5673else
5674  cat >conftest.$ac_ext <<_ACEOF
5675/* confdefs.h.  */
5676_ACEOF
5677cat confdefs.h >>conftest.$ac_ext
5678cat >>conftest.$ac_ext <<_ACEOF
5679/* end confdefs.h.  */
5680$ac_includes_default
5681int
5682main ()
5683{
5684static struct stat ac_aggr;
5685if (ac_aggr.st_rdev)
5686return 0;
5687  ;
5688  return 0;
5689}
5690_ACEOF
5691rm -f conftest.$ac_objext
5692if { (ac_try="$ac_compile"
5693case "(($ac_try" in
5694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695  *) ac_try_echo=$ac_try;;
5696esac
5697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5698$as_echo "$ac_try_echo") >&5
5699  (eval "$ac_compile") 2>conftest.er1
5700  ac_status=$?
5701  grep -v '^ *+' conftest.er1 >conftest.err
5702  rm -f conftest.er1
5703  cat conftest.err >&5
5704  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705  (exit $ac_status); } && {
5706	 test -z "$ac_c_werror_flag" ||
5707	 test ! -s conftest.err
5708       } && test -s conftest.$ac_objext; then
5709  ac_cv_member_struct_stat_st_rdev=yes
5710else
5711  $as_echo "$as_me: failed program was:" >&5
5712sed 's/^/| /' conftest.$ac_ext >&5
5713
5714	cat >conftest.$ac_ext <<_ACEOF
5715/* confdefs.h.  */
5716_ACEOF
5717cat confdefs.h >>conftest.$ac_ext
5718cat >>conftest.$ac_ext <<_ACEOF
5719/* end confdefs.h.  */
5720$ac_includes_default
5721int
5722main ()
5723{
5724static struct stat ac_aggr;
5725if (sizeof ac_aggr.st_rdev)
5726return 0;
5727  ;
5728  return 0;
5729}
5730_ACEOF
5731rm -f conftest.$ac_objext
5732if { (ac_try="$ac_compile"
5733case "(($ac_try" in
5734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735  *) ac_try_echo=$ac_try;;
5736esac
5737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5738$as_echo "$ac_try_echo") >&5
5739  (eval "$ac_compile") 2>conftest.er1
5740  ac_status=$?
5741  grep -v '^ *+' conftest.er1 >conftest.err
5742  rm -f conftest.er1
5743  cat conftest.err >&5
5744  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745  (exit $ac_status); } && {
5746	 test -z "$ac_c_werror_flag" ||
5747	 test ! -s conftest.err
5748       } && test -s conftest.$ac_objext; then
5749  ac_cv_member_struct_stat_st_rdev=yes
5750else
5751  $as_echo "$as_me: failed program was:" >&5
5752sed 's/^/| /' conftest.$ac_ext >&5
5753
5754	ac_cv_member_struct_stat_st_rdev=no
5755fi
5756
5757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758fi
5759
5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761fi
5762{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5763$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5764if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5765
5766cat >>confdefs.h <<_ACEOF
5767#define HAVE_STRUCT_STAT_ST_RDEV 1
5768_ACEOF
5769
5770
5771fi
5772
5773{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5774$as_echo_n "checking for off_t... " >&6; }
5775if test "${ac_cv_type_off_t+set}" = set; then
5776  $as_echo_n "(cached) " >&6
5777else
5778  ac_cv_type_off_t=no
5779cat >conftest.$ac_ext <<_ACEOF
5780/* confdefs.h.  */
5781_ACEOF
5782cat confdefs.h >>conftest.$ac_ext
5783cat >>conftest.$ac_ext <<_ACEOF
5784/* end confdefs.h.  */
5785$ac_includes_default
5786int
5787main ()
5788{
5789if (sizeof (off_t))
5790       return 0;
5791  ;
5792  return 0;
5793}
5794_ACEOF
5795rm -f conftest.$ac_objext
5796if { (ac_try="$ac_compile"
5797case "(($ac_try" in
5798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799  *) ac_try_echo=$ac_try;;
5800esac
5801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5802$as_echo "$ac_try_echo") >&5
5803  (eval "$ac_compile") 2>conftest.er1
5804  ac_status=$?
5805  grep -v '^ *+' conftest.er1 >conftest.err
5806  rm -f conftest.er1
5807  cat conftest.err >&5
5808  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809  (exit $ac_status); } && {
5810	 test -z "$ac_c_werror_flag" ||
5811	 test ! -s conftest.err
5812       } && test -s conftest.$ac_objext; then
5813  cat >conftest.$ac_ext <<_ACEOF
5814/* confdefs.h.  */
5815_ACEOF
5816cat confdefs.h >>conftest.$ac_ext
5817cat >>conftest.$ac_ext <<_ACEOF
5818/* end confdefs.h.  */
5819$ac_includes_default
5820int
5821main ()
5822{
5823if (sizeof ((off_t)))
5824	  return 0;
5825  ;
5826  return 0;
5827}
5828_ACEOF
5829rm -f conftest.$ac_objext
5830if { (ac_try="$ac_compile"
5831case "(($ac_try" in
5832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833  *) ac_try_echo=$ac_try;;
5834esac
5835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5836$as_echo "$ac_try_echo") >&5
5837  (eval "$ac_compile") 2>conftest.er1
5838  ac_status=$?
5839  grep -v '^ *+' conftest.er1 >conftest.err
5840  rm -f conftest.er1
5841  cat conftest.err >&5
5842  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843  (exit $ac_status); } && {
5844	 test -z "$ac_c_werror_flag" ||
5845	 test ! -s conftest.err
5846       } && test -s conftest.$ac_objext; then
5847  :
5848else
5849  $as_echo "$as_me: failed program was:" >&5
5850sed 's/^/| /' conftest.$ac_ext >&5
5851
5852	ac_cv_type_off_t=yes
5853fi
5854
5855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856else
5857  $as_echo "$as_me: failed program was:" >&5
5858sed 's/^/| /' conftest.$ac_ext >&5
5859
5860
5861fi
5862
5863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864fi
5865{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5866$as_echo "$ac_cv_type_off_t" >&6; }
5867if test "x$ac_cv_type_off_t" = x""yes; then
5868  :
5869else
5870
5871cat >>confdefs.h <<_ACEOF
5872#define off_t long int
5873_ACEOF
5874
5875fi
5876
5877{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5878$as_echo_n "checking for pid_t... " >&6; }
5879if test "${ac_cv_type_pid_t+set}" = set; then
5880  $as_echo_n "(cached) " >&6
5881else
5882  ac_cv_type_pid_t=no
5883cat >conftest.$ac_ext <<_ACEOF
5884/* confdefs.h.  */
5885_ACEOF
5886cat confdefs.h >>conftest.$ac_ext
5887cat >>conftest.$ac_ext <<_ACEOF
5888/* end confdefs.h.  */
5889$ac_includes_default
5890int
5891main ()
5892{
5893if (sizeof (pid_t))
5894       return 0;
5895  ;
5896  return 0;
5897}
5898_ACEOF
5899rm -f conftest.$ac_objext
5900if { (ac_try="$ac_compile"
5901case "(($ac_try" in
5902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903  *) ac_try_echo=$ac_try;;
5904esac
5905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5906$as_echo "$ac_try_echo") >&5
5907  (eval "$ac_compile") 2>conftest.er1
5908  ac_status=$?
5909  grep -v '^ *+' conftest.er1 >conftest.err
5910  rm -f conftest.er1
5911  cat conftest.err >&5
5912  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913  (exit $ac_status); } && {
5914	 test -z "$ac_c_werror_flag" ||
5915	 test ! -s conftest.err
5916       } && test -s conftest.$ac_objext; then
5917  cat >conftest.$ac_ext <<_ACEOF
5918/* confdefs.h.  */
5919_ACEOF
5920cat confdefs.h >>conftest.$ac_ext
5921cat >>conftest.$ac_ext <<_ACEOF
5922/* end confdefs.h.  */
5923$ac_includes_default
5924int
5925main ()
5926{
5927if (sizeof ((pid_t)))
5928	  return 0;
5929  ;
5930  return 0;
5931}
5932_ACEOF
5933rm -f conftest.$ac_objext
5934if { (ac_try="$ac_compile"
5935case "(($ac_try" in
5936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937  *) ac_try_echo=$ac_try;;
5938esac
5939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5940$as_echo "$ac_try_echo") >&5
5941  (eval "$ac_compile") 2>conftest.er1
5942  ac_status=$?
5943  grep -v '^ *+' conftest.er1 >conftest.err
5944  rm -f conftest.er1
5945  cat conftest.err >&5
5946  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947  (exit $ac_status); } && {
5948	 test -z "$ac_c_werror_flag" ||
5949	 test ! -s conftest.err
5950       } && test -s conftest.$ac_objext; then
5951  :
5952else
5953  $as_echo "$as_me: failed program was:" >&5
5954sed 's/^/| /' conftest.$ac_ext >&5
5955
5956	ac_cv_type_pid_t=yes
5957fi
5958
5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960else
5961  $as_echo "$as_me: failed program was:" >&5
5962sed 's/^/| /' conftest.$ac_ext >&5
5963
5964
5965fi
5966
5967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5968fi
5969{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5970$as_echo "$ac_cv_type_pid_t" >&6; }
5971if test "x$ac_cv_type_pid_t" = x""yes; then
5972  :
5973else
5974
5975cat >>confdefs.h <<_ACEOF
5976#define pid_t int
5977_ACEOF
5978
5979fi
5980
5981{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5982$as_echo_n "checking return type of signal handlers... " >&6; }
5983if test "${ac_cv_type_signal+set}" = set; then
5984  $as_echo_n "(cached) " >&6
5985else
5986  cat >conftest.$ac_ext <<_ACEOF
5987/* confdefs.h.  */
5988_ACEOF
5989cat confdefs.h >>conftest.$ac_ext
5990cat >>conftest.$ac_ext <<_ACEOF
5991/* end confdefs.h.  */
5992#include <sys/types.h>
5993#include <signal.h>
5994
5995int
5996main ()
5997{
5998return *(signal (0, 0)) (0) == 1;
5999  ;
6000  return 0;
6001}
6002_ACEOF
6003rm -f conftest.$ac_objext
6004if { (ac_try="$ac_compile"
6005case "(($ac_try" in
6006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007  *) ac_try_echo=$ac_try;;
6008esac
6009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6010$as_echo "$ac_try_echo") >&5
6011  (eval "$ac_compile") 2>conftest.er1
6012  ac_status=$?
6013  grep -v '^ *+' conftest.er1 >conftest.err
6014  rm -f conftest.er1
6015  cat conftest.err >&5
6016  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017  (exit $ac_status); } && {
6018	 test -z "$ac_c_werror_flag" ||
6019	 test ! -s conftest.err
6020       } && test -s conftest.$ac_objext; then
6021  ac_cv_type_signal=int
6022else
6023  $as_echo "$as_me: failed program was:" >&5
6024sed 's/^/| /' conftest.$ac_ext >&5
6025
6026	ac_cv_type_signal=void
6027fi
6028
6029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030fi
6031{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6032$as_echo "$ac_cv_type_signal" >&6; }
6033
6034cat >>confdefs.h <<_ACEOF
6035#define RETSIGTYPE $ac_cv_type_signal
6036_ACEOF
6037
6038
6039{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6040$as_echo_n "checking for size_t... " >&6; }
6041if test "${ac_cv_type_size_t+set}" = set; then
6042  $as_echo_n "(cached) " >&6
6043else
6044  ac_cv_type_size_t=no
6045cat >conftest.$ac_ext <<_ACEOF
6046/* confdefs.h.  */
6047_ACEOF
6048cat confdefs.h >>conftest.$ac_ext
6049cat >>conftest.$ac_ext <<_ACEOF
6050/* end confdefs.h.  */
6051$ac_includes_default
6052int
6053main ()
6054{
6055if (sizeof (size_t))
6056       return 0;
6057  ;
6058  return 0;
6059}
6060_ACEOF
6061rm -f conftest.$ac_objext
6062if { (ac_try="$ac_compile"
6063case "(($ac_try" in
6064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065  *) ac_try_echo=$ac_try;;
6066esac
6067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6068$as_echo "$ac_try_echo") >&5
6069  (eval "$ac_compile") 2>conftest.er1
6070  ac_status=$?
6071  grep -v '^ *+' conftest.er1 >conftest.err
6072  rm -f conftest.er1
6073  cat conftest.err >&5
6074  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075  (exit $ac_status); } && {
6076	 test -z "$ac_c_werror_flag" ||
6077	 test ! -s conftest.err
6078       } && test -s conftest.$ac_objext; then
6079  cat >conftest.$ac_ext <<_ACEOF
6080/* confdefs.h.  */
6081_ACEOF
6082cat confdefs.h >>conftest.$ac_ext
6083cat >>conftest.$ac_ext <<_ACEOF
6084/* end confdefs.h.  */
6085$ac_includes_default
6086int
6087main ()
6088{
6089if (sizeof ((size_t)))
6090	  return 0;
6091  ;
6092  return 0;
6093}
6094_ACEOF
6095rm -f conftest.$ac_objext
6096if { (ac_try="$ac_compile"
6097case "(($ac_try" in
6098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099  *) ac_try_echo=$ac_try;;
6100esac
6101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6102$as_echo "$ac_try_echo") >&5
6103  (eval "$ac_compile") 2>conftest.er1
6104  ac_status=$?
6105  grep -v '^ *+' conftest.er1 >conftest.err
6106  rm -f conftest.er1
6107  cat conftest.err >&5
6108  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109  (exit $ac_status); } && {
6110	 test -z "$ac_c_werror_flag" ||
6111	 test ! -s conftest.err
6112       } && test -s conftest.$ac_objext; then
6113  :
6114else
6115  $as_echo "$as_me: failed program was:" >&5
6116sed 's/^/| /' conftest.$ac_ext >&5
6117
6118	ac_cv_type_size_t=yes
6119fi
6120
6121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6122else
6123  $as_echo "$as_me: failed program was:" >&5
6124sed 's/^/| /' conftest.$ac_ext >&5
6125
6126
6127fi
6128
6129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130fi
6131{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6132$as_echo "$ac_cv_type_size_t" >&6; }
6133if test "x$ac_cv_type_size_t" = x""yes; then
6134  :
6135else
6136
6137cat >>confdefs.h <<_ACEOF
6138#define size_t unsigned int
6139_ACEOF
6140
6141fi
6142
6143{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6144$as_echo_n "checking for mode_t... " >&6; }
6145if test "${ac_cv_type_mode_t+set}" = set; then
6146  $as_echo_n "(cached) " >&6
6147else
6148  ac_cv_type_mode_t=no
6149cat >conftest.$ac_ext <<_ACEOF
6150/* confdefs.h.  */
6151_ACEOF
6152cat confdefs.h >>conftest.$ac_ext
6153cat >>conftest.$ac_ext <<_ACEOF
6154/* end confdefs.h.  */
6155$ac_includes_default
6156int
6157main ()
6158{
6159if (sizeof (mode_t))
6160       return 0;
6161  ;
6162  return 0;
6163}
6164_ACEOF
6165rm -f conftest.$ac_objext
6166if { (ac_try="$ac_compile"
6167case "(($ac_try" in
6168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169  *) ac_try_echo=$ac_try;;
6170esac
6171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6172$as_echo "$ac_try_echo") >&5
6173  (eval "$ac_compile") 2>conftest.er1
6174  ac_status=$?
6175  grep -v '^ *+' conftest.er1 >conftest.err
6176  rm -f conftest.er1
6177  cat conftest.err >&5
6178  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179  (exit $ac_status); } && {
6180	 test -z "$ac_c_werror_flag" ||
6181	 test ! -s conftest.err
6182       } && test -s conftest.$ac_objext; then
6183  cat >conftest.$ac_ext <<_ACEOF
6184/* confdefs.h.  */
6185_ACEOF
6186cat confdefs.h >>conftest.$ac_ext
6187cat >>conftest.$ac_ext <<_ACEOF
6188/* end confdefs.h.  */
6189$ac_includes_default
6190int
6191main ()
6192{
6193if (sizeof ((mode_t)))
6194	  return 0;
6195  ;
6196  return 0;
6197}
6198_ACEOF
6199rm -f conftest.$ac_objext
6200if { (ac_try="$ac_compile"
6201case "(($ac_try" in
6202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203  *) ac_try_echo=$ac_try;;
6204esac
6205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6206$as_echo "$ac_try_echo") >&5
6207  (eval "$ac_compile") 2>conftest.er1
6208  ac_status=$?
6209  grep -v '^ *+' conftest.er1 >conftest.err
6210  rm -f conftest.er1
6211  cat conftest.err >&5
6212  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213  (exit $ac_status); } && {
6214	 test -z "$ac_c_werror_flag" ||
6215	 test ! -s conftest.err
6216       } && test -s conftest.$ac_objext; then
6217  :
6218else
6219  $as_echo "$as_me: failed program was:" >&5
6220sed 's/^/| /' conftest.$ac_ext >&5
6221
6222	ac_cv_type_mode_t=yes
6223fi
6224
6225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226else
6227  $as_echo "$as_me: failed program was:" >&5
6228sed 's/^/| /' conftest.$ac_ext >&5
6229
6230
6231fi
6232
6233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234fi
6235{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6236$as_echo "$ac_cv_type_mode_t" >&6; }
6237if test "x$ac_cv_type_mode_t" = x""yes; then
6238  :
6239else
6240
6241cat >>confdefs.h <<_ACEOF
6242#define mode_t int
6243_ACEOF
6244
6245fi
6246
6247{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6248$as_echo_n "checking for struct stat.st_rdev... " >&6; }
6249if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6250  $as_echo_n "(cached) " >&6
6251else
6252  cat >conftest.$ac_ext <<_ACEOF
6253/* confdefs.h.  */
6254_ACEOF
6255cat confdefs.h >>conftest.$ac_ext
6256cat >>conftest.$ac_ext <<_ACEOF
6257/* end confdefs.h.  */
6258$ac_includes_default
6259int
6260main ()
6261{
6262static struct stat ac_aggr;
6263if (ac_aggr.st_rdev)
6264return 0;
6265  ;
6266  return 0;
6267}
6268_ACEOF
6269rm -f conftest.$ac_objext
6270if { (ac_try="$ac_compile"
6271case "(($ac_try" in
6272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273  *) ac_try_echo=$ac_try;;
6274esac
6275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6276$as_echo "$ac_try_echo") >&5
6277  (eval "$ac_compile") 2>conftest.er1
6278  ac_status=$?
6279  grep -v '^ *+' conftest.er1 >conftest.err
6280  rm -f conftest.er1
6281  cat conftest.err >&5
6282  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283  (exit $ac_status); } && {
6284	 test -z "$ac_c_werror_flag" ||
6285	 test ! -s conftest.err
6286       } && test -s conftest.$ac_objext; then
6287  ac_cv_member_struct_stat_st_rdev=yes
6288else
6289  $as_echo "$as_me: failed program was:" >&5
6290sed 's/^/| /' conftest.$ac_ext >&5
6291
6292	cat >conftest.$ac_ext <<_ACEOF
6293/* confdefs.h.  */
6294_ACEOF
6295cat confdefs.h >>conftest.$ac_ext
6296cat >>conftest.$ac_ext <<_ACEOF
6297/* end confdefs.h.  */
6298$ac_includes_default
6299int
6300main ()
6301{
6302static struct stat ac_aggr;
6303if (sizeof ac_aggr.st_rdev)
6304return 0;
6305  ;
6306  return 0;
6307}
6308_ACEOF
6309rm -f conftest.$ac_objext
6310if { (ac_try="$ac_compile"
6311case "(($ac_try" in
6312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313  *) ac_try_echo=$ac_try;;
6314esac
6315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6316$as_echo "$ac_try_echo") >&5
6317  (eval "$ac_compile") 2>conftest.er1
6318  ac_status=$?
6319  grep -v '^ *+' conftest.er1 >conftest.err
6320  rm -f conftest.er1
6321  cat conftest.err >&5
6322  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323  (exit $ac_status); } && {
6324	 test -z "$ac_c_werror_flag" ||
6325	 test ! -s conftest.err
6326       } && test -s conftest.$ac_objext; then
6327  ac_cv_member_struct_stat_st_rdev=yes
6328else
6329  $as_echo "$as_me: failed program was:" >&5
6330sed 's/^/| /' conftest.$ac_ext >&5
6331
6332	ac_cv_member_struct_stat_st_rdev=no
6333fi
6334
6335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6336fi
6337
6338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339fi
6340{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6341$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6342if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6343
6344cat >>confdefs.h <<_ACEOF
6345#define HAVE_STRUCT_STAT_ST_RDEV 1
6346_ACEOF
6347
6348
6349fi
6350
6351{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6352$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6353if test "${ac_cv_struct_tm+set}" = set; then
6354  $as_echo_n "(cached) " >&6
6355else
6356  cat >conftest.$ac_ext <<_ACEOF
6357/* confdefs.h.  */
6358_ACEOF
6359cat confdefs.h >>conftest.$ac_ext
6360cat >>conftest.$ac_ext <<_ACEOF
6361/* end confdefs.h.  */
6362#include <sys/types.h>
6363#include <time.h>
6364
6365int
6366main ()
6367{
6368struct tm tm;
6369				     int *p = &tm.tm_sec;
6370				     return !p;
6371  ;
6372  return 0;
6373}
6374_ACEOF
6375rm -f conftest.$ac_objext
6376if { (ac_try="$ac_compile"
6377case "(($ac_try" in
6378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379  *) ac_try_echo=$ac_try;;
6380esac
6381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6382$as_echo "$ac_try_echo") >&5
6383  (eval "$ac_compile") 2>conftest.er1
6384  ac_status=$?
6385  grep -v '^ *+' conftest.er1 >conftest.err
6386  rm -f conftest.er1
6387  cat conftest.err >&5
6388  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389  (exit $ac_status); } && {
6390	 test -z "$ac_c_werror_flag" ||
6391	 test ! -s conftest.err
6392       } && test -s conftest.$ac_objext; then
6393  ac_cv_struct_tm=time.h
6394else
6395  $as_echo "$as_me: failed program was:" >&5
6396sed 's/^/| /' conftest.$ac_ext >&5
6397
6398	ac_cv_struct_tm=sys/time.h
6399fi
6400
6401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6402fi
6403{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6404$as_echo "$ac_cv_struct_tm" >&6; }
6405if test $ac_cv_struct_tm = sys/time.h; then
6406
6407cat >>confdefs.h <<\_ACEOF
6408#define TM_IN_SYS_TIME 1
6409_ACEOF
6410
6411fi
6412
6413
6414################################################################################
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6433  strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6434  uname
6435do
6436as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6437{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6438$as_echo_n "checking for $ac_func... " >&6; }
6439if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6440  $as_echo_n "(cached) " >&6
6441else
6442  cat >conftest.$ac_ext <<_ACEOF
6443/* confdefs.h.  */
6444_ACEOF
6445cat confdefs.h >>conftest.$ac_ext
6446cat >>conftest.$ac_ext <<_ACEOF
6447/* end confdefs.h.  */
6448/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6449   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6450#define $ac_func innocuous_$ac_func
6451
6452/* System header to define __stub macros and hopefully few prototypes,
6453    which can conflict with char $ac_func (); below.
6454    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6455    <limits.h> exists even on freestanding compilers.  */
6456
6457#ifdef __STDC__
6458# include <limits.h>
6459#else
6460# include <assert.h>
6461#endif
6462
6463#undef $ac_func
6464
6465/* Override any GCC internal prototype to avoid an error.
6466   Use char because int might match the return type of a GCC
6467   builtin and then its argument prototype would still apply.  */
6468#ifdef __cplusplus
6469extern "C"
6470#endif
6471char $ac_func ();
6472/* The GNU C library defines this for functions which it implements
6473    to always fail with ENOSYS.  Some functions are actually named
6474    something starting with __ and the normal name is an alias.  */
6475#if defined __stub_$ac_func || defined __stub___$ac_func
6476choke me
6477#endif
6478
6479int
6480main ()
6481{
6482return $ac_func ();
6483  ;
6484  return 0;
6485}
6486_ACEOF
6487rm -f conftest.$ac_objext conftest$ac_exeext
6488if { (ac_try="$ac_link"
6489case "(($ac_try" in
6490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6491  *) ac_try_echo=$ac_try;;
6492esac
6493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6494$as_echo "$ac_try_echo") >&5
6495  (eval "$ac_link") 2>conftest.er1
6496  ac_status=$?
6497  grep -v '^ *+' conftest.er1 >conftest.err
6498  rm -f conftest.er1
6499  cat conftest.err >&5
6500  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501  (exit $ac_status); } && {
6502	 test -z "$ac_c_werror_flag" ||
6503	 test ! -s conftest.err
6504       } && test -s conftest$ac_exeext && {
6505	 test "$cross_compiling" = yes ||
6506	 $as_test_x conftest$ac_exeext
6507       }; then
6508  eval "$as_ac_var=yes"
6509else
6510  $as_echo "$as_me: failed program was:" >&5
6511sed 's/^/| /' conftest.$ac_ext >&5
6512
6513	eval "$as_ac_var=no"
6514fi
6515
6516rm -rf conftest.dSYM
6517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6518      conftest$ac_exeext conftest.$ac_ext
6519fi
6520ac_res=`eval 'as_val=${'$as_ac_var'}
6521		 $as_echo "$as_val"'`
6522	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6523$as_echo "$ac_res" >&6; }
6524as_val=`eval 'as_val=${'$as_ac_var'}
6525		 $as_echo "$as_val"'`
6526   if test "x$as_val" = x""yes; then
6527  cat >>confdefs.h <<_ACEOF
6528#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6529_ACEOF
6530
6531else
6532  { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6533$as_echo "$as_me: error: bailing out" >&2;}
6534   { (exit 1); exit 1; }; }
6535fi
6536done
6537
6538
6539for ac_func in siginterrupt
6540do
6541as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6542{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6543$as_echo_n "checking for $ac_func... " >&6; }
6544if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6545  $as_echo_n "(cached) " >&6
6546else
6547  cat >conftest.$ac_ext <<_ACEOF
6548/* confdefs.h.  */
6549_ACEOF
6550cat confdefs.h >>conftest.$ac_ext
6551cat >>conftest.$ac_ext <<_ACEOF
6552/* end confdefs.h.  */
6553/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6554   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6555#define $ac_func innocuous_$ac_func
6556
6557/* System header to define __stub macros and hopefully few prototypes,
6558    which can conflict with char $ac_func (); below.
6559    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6560    <limits.h> exists even on freestanding compilers.  */
6561
6562#ifdef __STDC__
6563# include <limits.h>
6564#else
6565# include <assert.h>
6566#endif
6567
6568#undef $ac_func
6569
6570/* Override any GCC internal prototype to avoid an error.
6571   Use char because int might match the return type of a GCC
6572   builtin and then its argument prototype would still apply.  */
6573#ifdef __cplusplus
6574extern "C"
6575#endif
6576char $ac_func ();
6577/* The GNU C library defines this for functions which it implements
6578    to always fail with ENOSYS.  Some functions are actually named
6579    something starting with __ and the normal name is an alias.  */
6580#if defined __stub_$ac_func || defined __stub___$ac_func
6581choke me
6582#endif
6583
6584int
6585main ()
6586{
6587return $ac_func ();
6588  ;
6589  return 0;
6590}
6591_ACEOF
6592rm -f conftest.$ac_objext conftest$ac_exeext
6593if { (ac_try="$ac_link"
6594case "(($ac_try" in
6595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596  *) ac_try_echo=$ac_try;;
6597esac
6598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6599$as_echo "$ac_try_echo") >&5
6600  (eval "$ac_link") 2>conftest.er1
6601  ac_status=$?
6602  grep -v '^ *+' conftest.er1 >conftest.err
6603  rm -f conftest.er1
6604  cat conftest.err >&5
6605  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606  (exit $ac_status); } && {
6607	 test -z "$ac_c_werror_flag" ||
6608	 test ! -s conftest.err
6609       } && test -s conftest$ac_exeext && {
6610	 test "$cross_compiling" = yes ||
6611	 $as_test_x conftest$ac_exeext
6612       }; then
6613  eval "$as_ac_var=yes"
6614else
6615  $as_echo "$as_me: failed program was:" >&5
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
6618	eval "$as_ac_var=no"
6619fi
6620
6621rm -rf conftest.dSYM
6622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6623      conftest$ac_exeext conftest.$ac_ext
6624fi
6625ac_res=`eval 'as_val=${'$as_ac_var'}
6626		 $as_echo "$as_val"'`
6627	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6628$as_echo "$ac_res" >&6; }
6629as_val=`eval 'as_val=${'$as_ac_var'}
6630		 $as_echo "$as_val"'`
6631   if test "x$as_val" = x""yes; then
6632  cat >>confdefs.h <<_ACEOF
6633#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6634_ACEOF
6635
6636fi
6637done
6638
6639# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6640# for constant arguments.  Useless!
6641{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6642$as_echo_n "checking for working alloca.h... " >&6; }
6643if test "${ac_cv_working_alloca_h+set}" = set; then
6644  $as_echo_n "(cached) " >&6
6645else
6646  cat >conftest.$ac_ext <<_ACEOF
6647/* confdefs.h.  */
6648_ACEOF
6649cat confdefs.h >>conftest.$ac_ext
6650cat >>conftest.$ac_ext <<_ACEOF
6651/* end confdefs.h.  */
6652#include <alloca.h>
6653int
6654main ()
6655{
6656char *p = (char *) alloca (2 * sizeof (int));
6657			  if (p) return 0;
6658  ;
6659  return 0;
6660}
6661_ACEOF
6662rm -f conftest.$ac_objext conftest$ac_exeext
6663if { (ac_try="$ac_link"
6664case "(($ac_try" in
6665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666  *) ac_try_echo=$ac_try;;
6667esac
6668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6669$as_echo "$ac_try_echo") >&5
6670  (eval "$ac_link") 2>conftest.er1
6671  ac_status=$?
6672  grep -v '^ *+' conftest.er1 >conftest.err
6673  rm -f conftest.er1
6674  cat conftest.err >&5
6675  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676  (exit $ac_status); } && {
6677	 test -z "$ac_c_werror_flag" ||
6678	 test ! -s conftest.err
6679       } && test -s conftest$ac_exeext && {
6680	 test "$cross_compiling" = yes ||
6681	 $as_test_x conftest$ac_exeext
6682       }; then
6683  ac_cv_working_alloca_h=yes
6684else
6685  $as_echo "$as_me: failed program was:" >&5
6686sed 's/^/| /' conftest.$ac_ext >&5
6687
6688	ac_cv_working_alloca_h=no
6689fi
6690
6691rm -rf conftest.dSYM
6692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6693      conftest$ac_exeext conftest.$ac_ext
6694fi
6695{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6696$as_echo "$ac_cv_working_alloca_h" >&6; }
6697if test $ac_cv_working_alloca_h = yes; then
6698
6699cat >>confdefs.h <<\_ACEOF
6700#define HAVE_ALLOCA_H 1
6701_ACEOF
6702
6703fi
6704
6705{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6706$as_echo_n "checking for alloca... " >&6; }
6707if test "${ac_cv_func_alloca_works+set}" = set; then
6708  $as_echo_n "(cached) " >&6
6709else
6710  cat >conftest.$ac_ext <<_ACEOF
6711/* confdefs.h.  */
6712_ACEOF
6713cat confdefs.h >>conftest.$ac_ext
6714cat >>conftest.$ac_ext <<_ACEOF
6715/* end confdefs.h.  */
6716#ifdef __GNUC__
6717# define alloca __builtin_alloca
6718#else
6719# ifdef _MSC_VER
6720#  include <malloc.h>
6721#  define alloca _alloca
6722# else
6723#  ifdef HAVE_ALLOCA_H
6724#   include <alloca.h>
6725#  else
6726#   ifdef _AIX
6727 #pragma alloca
6728#   else
6729#    ifndef alloca /* predefined by HP cc +Olibcalls */
6730char *alloca ();
6731#    endif
6732#   endif
6733#  endif
6734# endif
6735#endif
6736
6737int
6738main ()
6739{
6740char *p = (char *) alloca (1);
6741				    if (p) return 0;
6742  ;
6743  return 0;
6744}
6745_ACEOF
6746rm -f conftest.$ac_objext conftest$ac_exeext
6747if { (ac_try="$ac_link"
6748case "(($ac_try" in
6749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6750  *) ac_try_echo=$ac_try;;
6751esac
6752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6753$as_echo "$ac_try_echo") >&5
6754  (eval "$ac_link") 2>conftest.er1
6755  ac_status=$?
6756  grep -v '^ *+' conftest.er1 >conftest.err
6757  rm -f conftest.er1
6758  cat conftest.err >&5
6759  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760  (exit $ac_status); } && {
6761	 test -z "$ac_c_werror_flag" ||
6762	 test ! -s conftest.err
6763       } && test -s conftest$ac_exeext && {
6764	 test "$cross_compiling" = yes ||
6765	 $as_test_x conftest$ac_exeext
6766       }; then
6767  ac_cv_func_alloca_works=yes
6768else
6769  $as_echo "$as_me: failed program was:" >&5
6770sed 's/^/| /' conftest.$ac_ext >&5
6771
6772	ac_cv_func_alloca_works=no
6773fi
6774
6775rm -rf conftest.dSYM
6776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6777      conftest$ac_exeext conftest.$ac_ext
6778fi
6779{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6780$as_echo "$ac_cv_func_alloca_works" >&6; }
6781
6782if test $ac_cv_func_alloca_works = yes; then
6783
6784cat >>confdefs.h <<\_ACEOF
6785#define HAVE_ALLOCA 1
6786_ACEOF
6787
6788else
6789  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6790# that cause trouble.  Some versions do not even contain alloca or
6791# contain a buggy version.  If you still want to use their alloca,
6792# use ar to extract alloca.o from them instead of compiling alloca.c.
6793
6794ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6795
6796cat >>confdefs.h <<\_ACEOF
6797#define C_ALLOCA 1
6798_ACEOF
6799
6800
6801{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6802$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6803if test "${ac_cv_os_cray+set}" = set; then
6804  $as_echo_n "(cached) " >&6
6805else
6806  cat >conftest.$ac_ext <<_ACEOF
6807/* confdefs.h.  */
6808_ACEOF
6809cat confdefs.h >>conftest.$ac_ext
6810cat >>conftest.$ac_ext <<_ACEOF
6811/* end confdefs.h.  */
6812#if defined CRAY && ! defined CRAY2
6813webecray
6814#else
6815wenotbecray
6816#endif
6817
6818_ACEOF
6819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6820  $EGREP "webecray" >/dev/null 2>&1; then
6821  ac_cv_os_cray=yes
6822else
6823  ac_cv_os_cray=no
6824fi
6825rm -f conftest*
6826
6827fi
6828{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6829$as_echo "$ac_cv_os_cray" >&6; }
6830if test $ac_cv_os_cray = yes; then
6831  for ac_func in _getb67 GETB67 getb67; do
6832    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6833{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6834$as_echo_n "checking for $ac_func... " >&6; }
6835if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6836  $as_echo_n "(cached) " >&6
6837else
6838  cat >conftest.$ac_ext <<_ACEOF
6839/* confdefs.h.  */
6840_ACEOF
6841cat confdefs.h >>conftest.$ac_ext
6842cat >>conftest.$ac_ext <<_ACEOF
6843/* end confdefs.h.  */
6844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6845   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6846#define $ac_func innocuous_$ac_func
6847
6848/* System header to define __stub macros and hopefully few prototypes,
6849    which can conflict with char $ac_func (); below.
6850    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6851    <limits.h> exists even on freestanding compilers.  */
6852
6853#ifdef __STDC__
6854# include <limits.h>
6855#else
6856# include <assert.h>
6857#endif
6858
6859#undef $ac_func
6860
6861/* Override any GCC internal prototype to avoid an error.
6862   Use char because int might match the return type of a GCC
6863   builtin and then its argument prototype would still apply.  */
6864#ifdef __cplusplus
6865extern "C"
6866#endif
6867char $ac_func ();
6868/* The GNU C library defines this for functions which it implements
6869    to always fail with ENOSYS.  Some functions are actually named
6870    something starting with __ and the normal name is an alias.  */
6871#if defined __stub_$ac_func || defined __stub___$ac_func
6872choke me
6873#endif
6874
6875int
6876main ()
6877{
6878return $ac_func ();
6879  ;
6880  return 0;
6881}
6882_ACEOF
6883rm -f conftest.$ac_objext conftest$ac_exeext
6884if { (ac_try="$ac_link"
6885case "(($ac_try" in
6886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887  *) ac_try_echo=$ac_try;;
6888esac
6889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6890$as_echo "$ac_try_echo") >&5
6891  (eval "$ac_link") 2>conftest.er1
6892  ac_status=$?
6893  grep -v '^ *+' conftest.er1 >conftest.err
6894  rm -f conftest.er1
6895  cat conftest.err >&5
6896  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897  (exit $ac_status); } && {
6898	 test -z "$ac_c_werror_flag" ||
6899	 test ! -s conftest.err
6900       } && test -s conftest$ac_exeext && {
6901	 test "$cross_compiling" = yes ||
6902	 $as_test_x conftest$ac_exeext
6903       }; then
6904  eval "$as_ac_var=yes"
6905else
6906  $as_echo "$as_me: failed program was:" >&5
6907sed 's/^/| /' conftest.$ac_ext >&5
6908
6909	eval "$as_ac_var=no"
6910fi
6911
6912rm -rf conftest.dSYM
6913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6914      conftest$ac_exeext conftest.$ac_ext
6915fi
6916ac_res=`eval 'as_val=${'$as_ac_var'}
6917		 $as_echo "$as_val"'`
6918	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6919$as_echo "$ac_res" >&6; }
6920as_val=`eval 'as_val=${'$as_ac_var'}
6921		 $as_echo "$as_val"'`
6922   if test "x$as_val" = x""yes; then
6923
6924cat >>confdefs.h <<_ACEOF
6925#define CRAY_STACKSEG_END $ac_func
6926_ACEOF
6927
6928    break
6929fi
6930
6931  done
6932fi
6933
6934{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6935$as_echo_n "checking stack direction for C alloca... " >&6; }
6936if test "${ac_cv_c_stack_direction+set}" = set; then
6937  $as_echo_n "(cached) " >&6
6938else
6939  if test "$cross_compiling" = yes; then
6940  ac_cv_c_stack_direction=0
6941else
6942  cat >conftest.$ac_ext <<_ACEOF
6943/* confdefs.h.  */
6944_ACEOF
6945cat confdefs.h >>conftest.$ac_ext
6946cat >>conftest.$ac_ext <<_ACEOF
6947/* end confdefs.h.  */
6948$ac_includes_default
6949int
6950find_stack_direction ()
6951{
6952  static char *addr = 0;
6953  auto char dummy;
6954  if (addr == 0)
6955    {
6956      addr = &dummy;
6957      return find_stack_direction ();
6958    }
6959  else
6960    return (&dummy > addr) ? 1 : -1;
6961}
6962
6963int
6964main ()
6965{
6966  return find_stack_direction () < 0;
6967}
6968_ACEOF
6969rm -f conftest$ac_exeext
6970if { (ac_try="$ac_link"
6971case "(($ac_try" in
6972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973  *) ac_try_echo=$ac_try;;
6974esac
6975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6976$as_echo "$ac_try_echo") >&5
6977  (eval "$ac_link") 2>&5
6978  ac_status=$?
6979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6981  { (case "(($ac_try" in
6982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983  *) ac_try_echo=$ac_try;;
6984esac
6985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6986$as_echo "$ac_try_echo") >&5
6987  (eval "$ac_try") 2>&5
6988  ac_status=$?
6989  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990  (exit $ac_status); }; }; then
6991  ac_cv_c_stack_direction=1
6992else
6993  $as_echo "$as_me: program exited with status $ac_status" >&5
6994$as_echo "$as_me: failed program was:" >&5
6995sed 's/^/| /' conftest.$ac_ext >&5
6996
6997( exit $ac_status )
6998ac_cv_c_stack_direction=-1
6999fi
7000rm -rf conftest.dSYM
7001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7002fi
7003
7004
7005fi
7006{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7007$as_echo "$ac_cv_c_stack_direction" >&6; }
7008
7009cat >>confdefs.h <<_ACEOF
7010#define STACK_DIRECTION $ac_cv_c_stack_direction
7011_ACEOF
7012
7013
7014fi
7015
7016{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
7017$as_echo_n "checking whether closedir returns void... " >&6; }
7018if test "${ac_cv_func_closedir_void+set}" = set; then
7019  $as_echo_n "(cached) " >&6
7020else
7021  if test "$cross_compiling" = yes; then
7022  ac_cv_func_closedir_void=yes
7023else
7024  cat >conftest.$ac_ext <<_ACEOF
7025/* confdefs.h.  */
7026_ACEOF
7027cat confdefs.h >>conftest.$ac_ext
7028cat >>conftest.$ac_ext <<_ACEOF
7029/* end confdefs.h.  */
7030$ac_includes_default
7031#include <$ac_header_dirent>
7032#ifndef __cplusplus
7033int closedir ();
7034#endif
7035
7036int
7037main ()
7038{
7039return closedir (opendir (".")) != 0;
7040  ;
7041  return 0;
7042}
7043_ACEOF
7044rm -f conftest$ac_exeext
7045if { (ac_try="$ac_link"
7046case "(($ac_try" in
7047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7048  *) ac_try_echo=$ac_try;;
7049esac
7050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7051$as_echo "$ac_try_echo") >&5
7052  (eval "$ac_link") 2>&5
7053  ac_status=$?
7054  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7056  { (case "(($ac_try" in
7057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7058  *) ac_try_echo=$ac_try;;
7059esac
7060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7061$as_echo "$ac_try_echo") >&5
7062  (eval "$ac_try") 2>&5
7063  ac_status=$?
7064  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065  (exit $ac_status); }; }; then
7066  ac_cv_func_closedir_void=no
7067else
7068  $as_echo "$as_me: program exited with status $ac_status" >&5
7069$as_echo "$as_me: failed program was:" >&5
7070sed 's/^/| /' conftest.$ac_ext >&5
7071
7072( exit $ac_status )
7073ac_cv_func_closedir_void=yes
7074fi
7075rm -rf conftest.dSYM
7076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7077fi
7078
7079
7080fi
7081{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
7082$as_echo "$ac_cv_func_closedir_void" >&6; }
7083if test $ac_cv_func_closedir_void = yes; then
7084
7085cat >>confdefs.h <<\_ACEOF
7086#define CLOSEDIR_VOID 1
7087_ACEOF
7088
7089fi
7090
7091
7092for ac_header in vfork.h
7093do
7094as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7096  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7097$as_echo_n "checking for $ac_header... " >&6; }
7098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7099  $as_echo_n "(cached) " >&6
7100fi
7101ac_res=`eval 'as_val=${'$as_ac_Header'}
7102		 $as_echo "$as_val"'`
7103	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7104$as_echo "$ac_res" >&6; }
7105else
7106  # Is the header compilable?
7107{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7108$as_echo_n "checking $ac_header usability... " >&6; }
7109cat >conftest.$ac_ext <<_ACEOF
7110/* confdefs.h.  */
7111_ACEOF
7112cat confdefs.h >>conftest.$ac_ext
7113cat >>conftest.$ac_ext <<_ACEOF
7114/* end confdefs.h.  */
7115$ac_includes_default
7116#include <$ac_header>
7117_ACEOF
7118rm -f conftest.$ac_objext
7119if { (ac_try="$ac_compile"
7120case "(($ac_try" in
7121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7122  *) ac_try_echo=$ac_try;;
7123esac
7124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7125$as_echo "$ac_try_echo") >&5
7126  (eval "$ac_compile") 2>conftest.er1
7127  ac_status=$?
7128  grep -v '^ *+' conftest.er1 >conftest.err
7129  rm -f conftest.er1
7130  cat conftest.err >&5
7131  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132  (exit $ac_status); } && {
7133	 test -z "$ac_c_werror_flag" ||
7134	 test ! -s conftest.err
7135       } && test -s conftest.$ac_objext; then
7136  ac_header_compiler=yes
7137else
7138  $as_echo "$as_me: failed program was:" >&5
7139sed 's/^/| /' conftest.$ac_ext >&5
7140
7141	ac_header_compiler=no
7142fi
7143
7144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7146$as_echo "$ac_header_compiler" >&6; }
7147
7148# Is the header present?
7149{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7150$as_echo_n "checking $ac_header presence... " >&6; }
7151cat >conftest.$ac_ext <<_ACEOF
7152/* confdefs.h.  */
7153_ACEOF
7154cat confdefs.h >>conftest.$ac_ext
7155cat >>conftest.$ac_ext <<_ACEOF
7156/* end confdefs.h.  */
7157#include <$ac_header>
7158_ACEOF
7159if { (ac_try="$ac_cpp conftest.$ac_ext"
7160case "(($ac_try" in
7161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162  *) ac_try_echo=$ac_try;;
7163esac
7164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7165$as_echo "$ac_try_echo") >&5
7166  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7167  ac_status=$?
7168  grep -v '^ *+' conftest.er1 >conftest.err
7169  rm -f conftest.er1
7170  cat conftest.err >&5
7171  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172  (exit $ac_status); } >/dev/null && {
7173	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7174	 test ! -s conftest.err
7175       }; then
7176  ac_header_preproc=yes
7177else
7178  $as_echo "$as_me: failed program was:" >&5
7179sed 's/^/| /' conftest.$ac_ext >&5
7180
7181  ac_header_preproc=no
7182fi
7183
7184rm -f conftest.err conftest.$ac_ext
7185{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7186$as_echo "$ac_header_preproc" >&6; }
7187
7188# So?  What about this header?
7189case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7190  yes:no: )
7191    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7192$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7193    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7194$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7195    ac_header_preproc=yes
7196    ;;
7197  no:yes:* )
7198    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7199$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7200    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7201$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7202    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7203$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7204    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7205$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7206    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7207$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7208    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7209$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7210
7211    ;;
7212esac
7213{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7214$as_echo_n "checking for $ac_header... " >&6; }
7215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7216  $as_echo_n "(cached) " >&6
7217else
7218  eval "$as_ac_Header=\$ac_header_preproc"
7219fi
7220ac_res=`eval 'as_val=${'$as_ac_Header'}
7221		 $as_echo "$as_val"'`
7222	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7223$as_echo "$ac_res" >&6; }
7224
7225fi
7226as_val=`eval 'as_val=${'$as_ac_Header'}
7227		 $as_echo "$as_val"'`
7228   if test "x$as_val" = x""yes; then
7229  cat >>confdefs.h <<_ACEOF
7230#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7231_ACEOF
7232
7233fi
7234
7235done
7236
7237
7238
7239for ac_func in fork vfork
7240do
7241as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7242{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7243$as_echo_n "checking for $ac_func... " >&6; }
7244if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7245  $as_echo_n "(cached) " >&6
7246else
7247  cat >conftest.$ac_ext <<_ACEOF
7248/* confdefs.h.  */
7249_ACEOF
7250cat confdefs.h >>conftest.$ac_ext
7251cat >>conftest.$ac_ext <<_ACEOF
7252/* end confdefs.h.  */
7253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7254   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7255#define $ac_func innocuous_$ac_func
7256
7257/* System header to define __stub macros and hopefully few prototypes,
7258    which can conflict with char $ac_func (); below.
7259    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7260    <limits.h> exists even on freestanding compilers.  */
7261
7262#ifdef __STDC__
7263# include <limits.h>
7264#else
7265# include <assert.h>
7266#endif
7267
7268#undef $ac_func
7269
7270/* Override any GCC internal prototype to avoid an error.
7271   Use char because int might match the return type of a GCC
7272   builtin and then its argument prototype would still apply.  */
7273#ifdef __cplusplus
7274extern "C"
7275#endif
7276char $ac_func ();
7277/* The GNU C library defines this for functions which it implements
7278    to always fail with ENOSYS.  Some functions are actually named
7279    something starting with __ and the normal name is an alias.  */
7280#if defined __stub_$ac_func || defined __stub___$ac_func
7281choke me
7282#endif
7283
7284int
7285main ()
7286{
7287return $ac_func ();
7288  ;
7289  return 0;
7290}
7291_ACEOF
7292rm -f conftest.$ac_objext conftest$ac_exeext
7293if { (ac_try="$ac_link"
7294case "(($ac_try" in
7295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296  *) ac_try_echo=$ac_try;;
7297esac
7298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7299$as_echo "$ac_try_echo") >&5
7300  (eval "$ac_link") 2>conftest.er1
7301  ac_status=$?
7302  grep -v '^ *+' conftest.er1 >conftest.err
7303  rm -f conftest.er1
7304  cat conftest.err >&5
7305  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306  (exit $ac_status); } && {
7307	 test -z "$ac_c_werror_flag" ||
7308	 test ! -s conftest.err
7309       } && test -s conftest$ac_exeext && {
7310	 test "$cross_compiling" = yes ||
7311	 $as_test_x conftest$ac_exeext
7312       }; then
7313  eval "$as_ac_var=yes"
7314else
7315  $as_echo "$as_me: failed program was:" >&5
7316sed 's/^/| /' conftest.$ac_ext >&5
7317
7318	eval "$as_ac_var=no"
7319fi
7320
7321rm -rf conftest.dSYM
7322rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7323      conftest$ac_exeext conftest.$ac_ext
7324fi
7325ac_res=`eval 'as_val=${'$as_ac_var'}
7326		 $as_echo "$as_val"'`
7327	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7328$as_echo "$ac_res" >&6; }
7329as_val=`eval 'as_val=${'$as_ac_var'}
7330		 $as_echo "$as_val"'`
7331   if test "x$as_val" = x""yes; then
7332  cat >>confdefs.h <<_ACEOF
7333#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7334_ACEOF
7335
7336fi
7337done
7338
7339if test "x$ac_cv_func_fork" = xyes; then
7340  { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7341$as_echo_n "checking for working fork... " >&6; }
7342if test "${ac_cv_func_fork_works+set}" = set; then
7343  $as_echo_n "(cached) " >&6
7344else
7345  if test "$cross_compiling" = yes; then
7346  ac_cv_func_fork_works=cross
7347else
7348  cat >conftest.$ac_ext <<_ACEOF
7349/* confdefs.h.  */
7350_ACEOF
7351cat confdefs.h >>conftest.$ac_ext
7352cat >>conftest.$ac_ext <<_ACEOF
7353/* end confdefs.h.  */
7354$ac_includes_default
7355int
7356main ()
7357{
7358
7359	  /* By Ruediger Kuhlmann. */
7360	  return fork () < 0;
7361
7362  ;
7363  return 0;
7364}
7365_ACEOF
7366rm -f conftest$ac_exeext
7367if { (ac_try="$ac_link"
7368case "(($ac_try" in
7369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370  *) ac_try_echo=$ac_try;;
7371esac
7372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7373$as_echo "$ac_try_echo") >&5
7374  (eval "$ac_link") 2>&5
7375  ac_status=$?
7376  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7378  { (case "(($ac_try" in
7379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7380  *) ac_try_echo=$ac_try;;
7381esac
7382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7383$as_echo "$ac_try_echo") >&5
7384  (eval "$ac_try") 2>&5
7385  ac_status=$?
7386  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387  (exit $ac_status); }; }; then
7388  ac_cv_func_fork_works=yes
7389else
7390  $as_echo "$as_me: program exited with status $ac_status" >&5
7391$as_echo "$as_me: failed program was:" >&5
7392sed 's/^/| /' conftest.$ac_ext >&5
7393
7394( exit $ac_status )
7395ac_cv_func_fork_works=no
7396fi
7397rm -rf conftest.dSYM
7398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7399fi
7400
7401
7402fi
7403{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7404$as_echo "$ac_cv_func_fork_works" >&6; }
7405
7406else
7407  ac_cv_func_fork_works=$ac_cv_func_fork
7408fi
7409if test "x$ac_cv_func_fork_works" = xcross; then
7410  case $host in
7411    *-*-amigaos* | *-*-msdosdjgpp*)
7412      # Override, as these systems have only a dummy fork() stub
7413      ac_cv_func_fork_works=no
7414      ;;
7415    *)
7416      ac_cv_func_fork_works=yes
7417      ;;
7418  esac
7419  { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7420$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7421fi
7422ac_cv_func_vfork_works=$ac_cv_func_vfork
7423if test "x$ac_cv_func_vfork" = xyes; then
7424  { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7425$as_echo_n "checking for working vfork... " >&6; }
7426if test "${ac_cv_func_vfork_works+set}" = set; then
7427  $as_echo_n "(cached) " >&6
7428else
7429  if test "$cross_compiling" = yes; then
7430  ac_cv_func_vfork_works=cross
7431else
7432  cat >conftest.$ac_ext <<_ACEOF
7433/* confdefs.h.  */
7434_ACEOF
7435cat confdefs.h >>conftest.$ac_ext
7436cat >>conftest.$ac_ext <<_ACEOF
7437/* end confdefs.h.  */
7438/* Thanks to Paul Eggert for this test.  */
7439$ac_includes_default
7440#include <sys/wait.h>
7441#ifdef HAVE_VFORK_H
7442# include <vfork.h>
7443#endif
7444/* On some sparc systems, changes by the child to local and incoming
7445   argument registers are propagated back to the parent.  The compiler
7446   is told about this with #include <vfork.h>, but some compilers
7447   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7448   static variable whose address is put into a register that is
7449   clobbered by the vfork.  */
7450static void
7451#ifdef __cplusplus
7452sparc_address_test (int arg)
7453# else
7454sparc_address_test (arg) int arg;
7455#endif
7456{
7457  static pid_t child;
7458  if (!child) {
7459    child = vfork ();
7460    if (child < 0) {
7461      perror ("vfork");
7462      _exit(2);
7463    }
7464    if (!child) {
7465      arg = getpid();
7466      write(-1, "", 0);
7467      _exit (arg);
7468    }
7469  }
7470}
7471
7472int
7473main ()
7474{
7475  pid_t parent = getpid ();
7476  pid_t child;
7477
7478  sparc_address_test (0);
7479
7480  child = vfork ();
7481
7482  if (child == 0) {
7483    /* Here is another test for sparc vfork register problems.  This
7484       test uses lots of local variables, at least as many local
7485       variables as main has allocated so far including compiler
7486       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7487       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7488       reuse the register of parent for one of the local variables,
7489       since it will think that parent can't possibly be used any more
7490       in this routine.  Assigning to the local variable will thus
7491       munge parent in the parent process.  */
7492    pid_t
7493      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7494      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7495    /* Convince the compiler that p..p7 are live; otherwise, it might
7496       use the same hardware register for all 8 local variables.  */
7497    if (p != p1 || p != p2 || p != p3 || p != p4
7498	|| p != p5 || p != p6 || p != p7)
7499      _exit(1);
7500
7501    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7502       from child file descriptors.  If the child closes a descriptor
7503       before it execs or exits, this munges the parent's descriptor
7504       as well.  Test for this by closing stdout in the child.  */
7505    _exit(close(fileno(stdout)) != 0);
7506  } else {
7507    int status;
7508    struct stat st;
7509
7510    while (wait(&status) != child)
7511      ;
7512    return (
7513	 /* Was there some problem with vforking?  */
7514	 child < 0
7515
7516	 /* Did the child fail?  (This shouldn't happen.)  */
7517	 || status
7518
7519	 /* Did the vfork/compiler bug occur?  */
7520	 || parent != getpid()
7521
7522	 /* Did the file descriptor bug occur?  */
7523	 || fstat(fileno(stdout), &st) != 0
7524	 );
7525  }
7526}
7527_ACEOF
7528rm -f conftest$ac_exeext
7529if { (ac_try="$ac_link"
7530case "(($ac_try" in
7531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532  *) ac_try_echo=$ac_try;;
7533esac
7534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7535$as_echo "$ac_try_echo") >&5
7536  (eval "$ac_link") 2>&5
7537  ac_status=$?
7538  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7540  { (case "(($ac_try" in
7541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7542  *) ac_try_echo=$ac_try;;
7543esac
7544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7545$as_echo "$ac_try_echo") >&5
7546  (eval "$ac_try") 2>&5
7547  ac_status=$?
7548  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549  (exit $ac_status); }; }; then
7550  ac_cv_func_vfork_works=yes
7551else
7552  $as_echo "$as_me: program exited with status $ac_status" >&5
7553$as_echo "$as_me: failed program was:" >&5
7554sed 's/^/| /' conftest.$ac_ext >&5
7555
7556( exit $ac_status )
7557ac_cv_func_vfork_works=no
7558fi
7559rm -rf conftest.dSYM
7560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7561fi
7562
7563
7564fi
7565{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7566$as_echo "$ac_cv_func_vfork_works" >&6; }
7567
7568fi;
7569if test "x$ac_cv_func_fork_works" = xcross; then
7570  ac_cv_func_vfork_works=$ac_cv_func_vfork
7571  { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7572$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7573fi
7574
7575if test "x$ac_cv_func_vfork_works" = xyes; then
7576
7577cat >>confdefs.h <<\_ACEOF
7578#define HAVE_WORKING_VFORK 1
7579_ACEOF
7580
7581else
7582
7583cat >>confdefs.h <<\_ACEOF
7584#define vfork fork
7585_ACEOF
7586
7587fi
7588if test "x$ac_cv_func_fork_works" = xyes; then
7589
7590cat >>confdefs.h <<\_ACEOF
7591#define HAVE_WORKING_FORK 1
7592_ACEOF
7593
7594fi
7595
7596{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7597$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
7598if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7599  $as_echo_n "(cached) " >&6
7600else
7601  rm -f conftest.sym conftest.file
7602echo >conftest.file
7603if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
7604  if test "$cross_compiling" = yes; then
7605  ac_cv_func_lstat_dereferences_slashed_symlink=no
7606else
7607  cat >conftest.$ac_ext <<_ACEOF
7608/* confdefs.h.  */
7609_ACEOF
7610cat confdefs.h >>conftest.$ac_ext
7611cat >>conftest.$ac_ext <<_ACEOF
7612/* end confdefs.h.  */
7613$ac_includes_default
7614int
7615main ()
7616{
7617struct stat sbuf;
7618     /* Linux will dereference the symlink and fail.
7619	That is better in the sense that it means we will not
7620	have to compile and use the lstat wrapper.  */
7621     return lstat ("conftest.sym/", &sbuf) == 0;
7622  ;
7623  return 0;
7624}
7625_ACEOF
7626rm -f conftest$ac_exeext
7627if { (ac_try="$ac_link"
7628case "(($ac_try" in
7629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630  *) ac_try_echo=$ac_try;;
7631esac
7632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7633$as_echo "$ac_try_echo") >&5
7634  (eval "$ac_link") 2>&5
7635  ac_status=$?
7636  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7638  { (case "(($ac_try" in
7639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7640  *) ac_try_echo=$ac_try;;
7641esac
7642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7643$as_echo "$ac_try_echo") >&5
7644  (eval "$ac_try") 2>&5
7645  ac_status=$?
7646  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647  (exit $ac_status); }; }; then
7648  ac_cv_func_lstat_dereferences_slashed_symlink=yes
7649else
7650  $as_echo "$as_me: program exited with status $ac_status" >&5
7651$as_echo "$as_me: failed program was:" >&5
7652sed 's/^/| /' conftest.$ac_ext >&5
7653
7654( exit $ac_status )
7655ac_cv_func_lstat_dereferences_slashed_symlink=no
7656fi
7657rm -rf conftest.dSYM
7658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7659fi
7660
7661
7662else
7663  # If the `ln -s' command failed, then we probably don't even
7664  # have an lstat function.
7665  ac_cv_func_lstat_dereferences_slashed_symlink=no
7666fi
7667rm -f conftest.sym conftest.file
7668
7669fi
7670{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7671$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7672
7673test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7674
7675cat >>confdefs.h <<_ACEOF
7676#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7677_ACEOF
7678
7679
7680if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7681  case " $LIBOBJS " in
7682  *" lstat.$ac_objext "* ) ;;
7683  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7684 ;;
7685esac
7686
7687fi
7688
7689{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7690$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
7691if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7692  $as_echo_n "(cached) " >&6
7693else
7694  if test "$cross_compiling" = yes; then
7695  ac_cv_func_lstat_empty_string_bug=yes
7696else
7697  cat >conftest.$ac_ext <<_ACEOF
7698/* confdefs.h.  */
7699_ACEOF
7700cat confdefs.h >>conftest.$ac_ext
7701cat >>conftest.$ac_ext <<_ACEOF
7702/* end confdefs.h.  */
7703$ac_includes_default
7704int
7705main ()
7706{
7707struct stat sbuf;
7708  return lstat ("", &sbuf) == 0;
7709  ;
7710  return 0;
7711}
7712_ACEOF
7713rm -f conftest$ac_exeext
7714if { (ac_try="$ac_link"
7715case "(($ac_try" in
7716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717  *) ac_try_echo=$ac_try;;
7718esac
7719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7720$as_echo "$ac_try_echo") >&5
7721  (eval "$ac_link") 2>&5
7722  ac_status=$?
7723  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7725  { (case "(($ac_try" in
7726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7727  *) ac_try_echo=$ac_try;;
7728esac
7729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7730$as_echo "$ac_try_echo") >&5
7731  (eval "$ac_try") 2>&5
7732  ac_status=$?
7733  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734  (exit $ac_status); }; }; then
7735  ac_cv_func_lstat_empty_string_bug=no
7736else
7737  $as_echo "$as_me: program exited with status $ac_status" >&5
7738$as_echo "$as_me: failed program was:" >&5
7739sed 's/^/| /' conftest.$ac_ext >&5
7740
7741( exit $ac_status )
7742ac_cv_func_lstat_empty_string_bug=yes
7743fi
7744rm -rf conftest.dSYM
7745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7746fi
7747
7748
7749fi
7750{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7751$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
7752if test $ac_cv_func_lstat_empty_string_bug = yes; then
7753  case " $LIBOBJS " in
7754  *" lstat.$ac_objext "* ) ;;
7755  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
7756 ;;
7757esac
7758
7759
7760cat >>confdefs.h <<_ACEOF
7761#define HAVE_LSTAT_EMPTY_STRING_BUG 1
7762_ACEOF
7763
7764fi
7765
7766
7767for ac_header in stdlib.h
7768do
7769as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7770if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7771  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7772$as_echo_n "checking for $ac_header... " >&6; }
7773if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7774  $as_echo_n "(cached) " >&6
7775fi
7776ac_res=`eval 'as_val=${'$as_ac_Header'}
7777		 $as_echo "$as_val"'`
7778	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7779$as_echo "$ac_res" >&6; }
7780else
7781  # Is the header compilable?
7782{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7783$as_echo_n "checking $ac_header usability... " >&6; }
7784cat >conftest.$ac_ext <<_ACEOF
7785/* confdefs.h.  */
7786_ACEOF
7787cat confdefs.h >>conftest.$ac_ext
7788cat >>conftest.$ac_ext <<_ACEOF
7789/* end confdefs.h.  */
7790$ac_includes_default
7791#include <$ac_header>
7792_ACEOF
7793rm -f conftest.$ac_objext
7794if { (ac_try="$ac_compile"
7795case "(($ac_try" in
7796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797  *) ac_try_echo=$ac_try;;
7798esac
7799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7800$as_echo "$ac_try_echo") >&5
7801  (eval "$ac_compile") 2>conftest.er1
7802  ac_status=$?
7803  grep -v '^ *+' conftest.er1 >conftest.err
7804  rm -f conftest.er1
7805  cat conftest.err >&5
7806  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807  (exit $ac_status); } && {
7808	 test -z "$ac_c_werror_flag" ||
7809	 test ! -s conftest.err
7810       } && test -s conftest.$ac_objext; then
7811  ac_header_compiler=yes
7812else
7813  $as_echo "$as_me: failed program was:" >&5
7814sed 's/^/| /' conftest.$ac_ext >&5
7815
7816	ac_header_compiler=no
7817fi
7818
7819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7821$as_echo "$ac_header_compiler" >&6; }
7822
7823# Is the header present?
7824{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7825$as_echo_n "checking $ac_header presence... " >&6; }
7826cat >conftest.$ac_ext <<_ACEOF
7827/* confdefs.h.  */
7828_ACEOF
7829cat confdefs.h >>conftest.$ac_ext
7830cat >>conftest.$ac_ext <<_ACEOF
7831/* end confdefs.h.  */
7832#include <$ac_header>
7833_ACEOF
7834if { (ac_try="$ac_cpp conftest.$ac_ext"
7835case "(($ac_try" in
7836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837  *) ac_try_echo=$ac_try;;
7838esac
7839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7840$as_echo "$ac_try_echo") >&5
7841  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7842  ac_status=$?
7843  grep -v '^ *+' conftest.er1 >conftest.err
7844  rm -f conftest.er1
7845  cat conftest.err >&5
7846  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847  (exit $ac_status); } >/dev/null && {
7848	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7849	 test ! -s conftest.err
7850       }; then
7851  ac_header_preproc=yes
7852else
7853  $as_echo "$as_me: failed program was:" >&5
7854sed 's/^/| /' conftest.$ac_ext >&5
7855
7856  ac_header_preproc=no
7857fi
7858
7859rm -f conftest.err conftest.$ac_ext
7860{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7861$as_echo "$ac_header_preproc" >&6; }
7862
7863# So?  What about this header?
7864case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7865  yes:no: )
7866    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7867$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7868    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7869$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7870    ac_header_preproc=yes
7871    ;;
7872  no:yes:* )
7873    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7874$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7875    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7876$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7877    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7878$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7879    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7880$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7881    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7882$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7883    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7884$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7885
7886    ;;
7887esac
7888{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7889$as_echo_n "checking for $ac_header... " >&6; }
7890if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7891  $as_echo_n "(cached) " >&6
7892else
7893  eval "$as_ac_Header=\$ac_header_preproc"
7894fi
7895ac_res=`eval 'as_val=${'$as_ac_Header'}
7896		 $as_echo "$as_val"'`
7897	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7898$as_echo "$ac_res" >&6; }
7899
7900fi
7901as_val=`eval 'as_val=${'$as_ac_Header'}
7902		 $as_echo "$as_val"'`
7903   if test "x$as_val" = x""yes; then
7904  cat >>confdefs.h <<_ACEOF
7905#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7906_ACEOF
7907
7908fi
7909
7910done
7911
7912{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7913$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7914if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7915  $as_echo_n "(cached) " >&6
7916else
7917  if test "$cross_compiling" = yes; then
7918  ac_cv_func_malloc_0_nonnull=no
7919else
7920  cat >conftest.$ac_ext <<_ACEOF
7921/* confdefs.h.  */
7922_ACEOF
7923cat confdefs.h >>conftest.$ac_ext
7924cat >>conftest.$ac_ext <<_ACEOF
7925/* end confdefs.h.  */
7926#if defined STDC_HEADERS || defined HAVE_STDLIB_H
7927# include <stdlib.h>
7928#else
7929char *malloc ();
7930#endif
7931
7932int
7933main ()
7934{
7935return ! malloc (0);
7936  ;
7937  return 0;
7938}
7939_ACEOF
7940rm -f conftest$ac_exeext
7941if { (ac_try="$ac_link"
7942case "(($ac_try" in
7943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944  *) ac_try_echo=$ac_try;;
7945esac
7946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7947$as_echo "$ac_try_echo") >&5
7948  (eval "$ac_link") 2>&5
7949  ac_status=$?
7950  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7952  { (case "(($ac_try" in
7953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954  *) ac_try_echo=$ac_try;;
7955esac
7956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7957$as_echo "$ac_try_echo") >&5
7958  (eval "$ac_try") 2>&5
7959  ac_status=$?
7960  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961  (exit $ac_status); }; }; then
7962  ac_cv_func_malloc_0_nonnull=yes
7963else
7964  $as_echo "$as_me: program exited with status $ac_status" >&5
7965$as_echo "$as_me: failed program was:" >&5
7966sed 's/^/| /' conftest.$ac_ext >&5
7967
7968( exit $ac_status )
7969ac_cv_func_malloc_0_nonnull=no
7970fi
7971rm -rf conftest.dSYM
7972rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7973fi
7974
7975
7976fi
7977{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7978$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7979if test $ac_cv_func_malloc_0_nonnull = yes; then
7980
7981cat >>confdefs.h <<\_ACEOF
7982#define HAVE_MALLOC 1
7983_ACEOF
7984
7985else
7986  cat >>confdefs.h <<\_ACEOF
7987#define HAVE_MALLOC 0
7988_ACEOF
7989
7990   case " $LIBOBJS " in
7991  *" malloc.$ac_objext "* ) ;;
7992  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7993 ;;
7994esac
7995
7996
7997cat >>confdefs.h <<\_ACEOF
7998#define malloc rpl_malloc
7999_ACEOF
8000
8001fi
8002
8003
8004
8005{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
8006$as_echo_n "checking for working memcmp... " >&6; }
8007if test "${ac_cv_func_memcmp_working+set}" = set; then
8008  $as_echo_n "(cached) " >&6
8009else
8010  if test "$cross_compiling" = yes; then
8011  ac_cv_func_memcmp_working=no
8012else
8013  cat >conftest.$ac_ext <<_ACEOF
8014/* confdefs.h.  */
8015_ACEOF
8016cat confdefs.h >>conftest.$ac_ext
8017cat >>conftest.$ac_ext <<_ACEOF
8018/* end confdefs.h.  */
8019$ac_includes_default
8020int
8021main ()
8022{
8023
8024  /* Some versions of memcmp are not 8-bit clean.  */
8025  char c0 = '\100', c1 = '\200', c2 = '\201';
8026  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8027    return 1;
8028
8029  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8030     or more and with at least one buffer not starting on a 4-byte boundary.
8031     William Lewis provided this test program.   */
8032  {
8033    char foo[21];
8034    char bar[21];
8035    int i;
8036    for (i = 0; i < 4; i++)
8037      {
8038	char *a = foo + i;
8039	char *b = bar + i;
8040	strcpy (a, "--------01111111");
8041	strcpy (b, "--------10000000");
8042	if (memcmp (a, b, 16) >= 0)
8043	  return 1;
8044      }
8045    return 0;
8046  }
8047
8048  ;
8049  return 0;
8050}
8051_ACEOF
8052rm -f conftest$ac_exeext
8053if { (ac_try="$ac_link"
8054case "(($ac_try" in
8055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056  *) ac_try_echo=$ac_try;;
8057esac
8058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8059$as_echo "$ac_try_echo") >&5
8060  (eval "$ac_link") 2>&5
8061  ac_status=$?
8062  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8064  { (case "(($ac_try" in
8065  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066  *) ac_try_echo=$ac_try;;
8067esac
8068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8069$as_echo "$ac_try_echo") >&5
8070  (eval "$ac_try") 2>&5
8071  ac_status=$?
8072  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073  (exit $ac_status); }; }; then
8074  ac_cv_func_memcmp_working=yes
8075else
8076  $as_echo "$as_me: program exited with status $ac_status" >&5
8077$as_echo "$as_me: failed program was:" >&5
8078sed 's/^/| /' conftest.$ac_ext >&5
8079
8080( exit $ac_status )
8081ac_cv_func_memcmp_working=no
8082fi
8083rm -rf conftest.dSYM
8084rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8085fi
8086
8087
8088fi
8089{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8090$as_echo "$ac_cv_func_memcmp_working" >&6; }
8091test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8092  *" memcmp.$ac_objext "* ) ;;
8093  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8094 ;;
8095esac
8096
8097
8098
8099
8100for ac_header in stdlib.h unistd.h
8101do
8102as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8103if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8104  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8105$as_echo_n "checking for $ac_header... " >&6; }
8106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8107  $as_echo_n "(cached) " >&6
8108fi
8109ac_res=`eval 'as_val=${'$as_ac_Header'}
8110		 $as_echo "$as_val"'`
8111	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8112$as_echo "$ac_res" >&6; }
8113else
8114  # Is the header compilable?
8115{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8116$as_echo_n "checking $ac_header usability... " >&6; }
8117cat >conftest.$ac_ext <<_ACEOF
8118/* confdefs.h.  */
8119_ACEOF
8120cat confdefs.h >>conftest.$ac_ext
8121cat >>conftest.$ac_ext <<_ACEOF
8122/* end confdefs.h.  */
8123$ac_includes_default
8124#include <$ac_header>
8125_ACEOF
8126rm -f conftest.$ac_objext
8127if { (ac_try="$ac_compile"
8128case "(($ac_try" in
8129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130  *) ac_try_echo=$ac_try;;
8131esac
8132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8133$as_echo "$ac_try_echo") >&5
8134  (eval "$ac_compile") 2>conftest.er1
8135  ac_status=$?
8136  grep -v '^ *+' conftest.er1 >conftest.err
8137  rm -f conftest.er1
8138  cat conftest.err >&5
8139  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140  (exit $ac_status); } && {
8141	 test -z "$ac_c_werror_flag" ||
8142	 test ! -s conftest.err
8143       } && test -s conftest.$ac_objext; then
8144  ac_header_compiler=yes
8145else
8146  $as_echo "$as_me: failed program was:" >&5
8147sed 's/^/| /' conftest.$ac_ext >&5
8148
8149	ac_header_compiler=no
8150fi
8151
8152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8153{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8154$as_echo "$ac_header_compiler" >&6; }
8155
8156# Is the header present?
8157{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8158$as_echo_n "checking $ac_header presence... " >&6; }
8159cat >conftest.$ac_ext <<_ACEOF
8160/* confdefs.h.  */
8161_ACEOF
8162cat confdefs.h >>conftest.$ac_ext
8163cat >>conftest.$ac_ext <<_ACEOF
8164/* end confdefs.h.  */
8165#include <$ac_header>
8166_ACEOF
8167if { (ac_try="$ac_cpp conftest.$ac_ext"
8168case "(($ac_try" in
8169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170  *) ac_try_echo=$ac_try;;
8171esac
8172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8173$as_echo "$ac_try_echo") >&5
8174  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8175  ac_status=$?
8176  grep -v '^ *+' conftest.er1 >conftest.err
8177  rm -f conftest.er1
8178  cat conftest.err >&5
8179  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180  (exit $ac_status); } >/dev/null && {
8181	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8182	 test ! -s conftest.err
8183       }; then
8184  ac_header_preproc=yes
8185else
8186  $as_echo "$as_me: failed program was:" >&5
8187sed 's/^/| /' conftest.$ac_ext >&5
8188
8189  ac_header_preproc=no
8190fi
8191
8192rm -f conftest.err conftest.$ac_ext
8193{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8194$as_echo "$ac_header_preproc" >&6; }
8195
8196# So?  What about this header?
8197case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8198  yes:no: )
8199    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8200$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8201    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8202$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8203    ac_header_preproc=yes
8204    ;;
8205  no:yes:* )
8206    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8207$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8208    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8209$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8210    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8211$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8212    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8213$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8214    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8215$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8216    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8217$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8218
8219    ;;
8220esac
8221{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8222$as_echo_n "checking for $ac_header... " >&6; }
8223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8224  $as_echo_n "(cached) " >&6
8225else
8226  eval "$as_ac_Header=\$ac_header_preproc"
8227fi
8228ac_res=`eval 'as_val=${'$as_ac_Header'}
8229		 $as_echo "$as_val"'`
8230	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8231$as_echo "$ac_res" >&6; }
8232
8233fi
8234as_val=`eval 'as_val=${'$as_ac_Header'}
8235		 $as_echo "$as_val"'`
8236   if test "x$as_val" = x""yes; then
8237  cat >>confdefs.h <<_ACEOF
8238#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8239_ACEOF
8240
8241fi
8242
8243done
8244
8245
8246for ac_func in getpagesize
8247do
8248as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8249{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8250$as_echo_n "checking for $ac_func... " >&6; }
8251if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8252  $as_echo_n "(cached) " >&6
8253else
8254  cat >conftest.$ac_ext <<_ACEOF
8255/* confdefs.h.  */
8256_ACEOF
8257cat confdefs.h >>conftest.$ac_ext
8258cat >>conftest.$ac_ext <<_ACEOF
8259/* end confdefs.h.  */
8260/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8261   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8262#define $ac_func innocuous_$ac_func
8263
8264/* System header to define __stub macros and hopefully few prototypes,
8265    which can conflict with char $ac_func (); below.
8266    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8267    <limits.h> exists even on freestanding compilers.  */
8268
8269#ifdef __STDC__
8270# include <limits.h>
8271#else
8272# include <assert.h>
8273#endif
8274
8275#undef $ac_func
8276
8277/* Override any GCC internal prototype to avoid an error.
8278   Use char because int might match the return type of a GCC
8279   builtin and then its argument prototype would still apply.  */
8280#ifdef __cplusplus
8281extern "C"
8282#endif
8283char $ac_func ();
8284/* The GNU C library defines this for functions which it implements
8285    to always fail with ENOSYS.  Some functions are actually named
8286    something starting with __ and the normal name is an alias.  */
8287#if defined __stub_$ac_func || defined __stub___$ac_func
8288choke me
8289#endif
8290
8291int
8292main ()
8293{
8294return $ac_func ();
8295  ;
8296  return 0;
8297}
8298_ACEOF
8299rm -f conftest.$ac_objext conftest$ac_exeext
8300if { (ac_try="$ac_link"
8301case "(($ac_try" in
8302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303  *) ac_try_echo=$ac_try;;
8304esac
8305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8306$as_echo "$ac_try_echo") >&5
8307  (eval "$ac_link") 2>conftest.er1
8308  ac_status=$?
8309  grep -v '^ *+' conftest.er1 >conftest.err
8310  rm -f conftest.er1
8311  cat conftest.err >&5
8312  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313  (exit $ac_status); } && {
8314	 test -z "$ac_c_werror_flag" ||
8315	 test ! -s conftest.err
8316       } && test -s conftest$ac_exeext && {
8317	 test "$cross_compiling" = yes ||
8318	 $as_test_x conftest$ac_exeext
8319       }; then
8320  eval "$as_ac_var=yes"
8321else
8322  $as_echo "$as_me: failed program was:" >&5
8323sed 's/^/| /' conftest.$ac_ext >&5
8324
8325	eval "$as_ac_var=no"
8326fi
8327
8328rm -rf conftest.dSYM
8329rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8330      conftest$ac_exeext conftest.$ac_ext
8331fi
8332ac_res=`eval 'as_val=${'$as_ac_var'}
8333		 $as_echo "$as_val"'`
8334	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8335$as_echo "$ac_res" >&6; }
8336as_val=`eval 'as_val=${'$as_ac_var'}
8337		 $as_echo "$as_val"'`
8338   if test "x$as_val" = x""yes; then
8339  cat >>confdefs.h <<_ACEOF
8340#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8341_ACEOF
8342
8343fi
8344done
8345
8346{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8347$as_echo_n "checking for working mmap... " >&6; }
8348if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8349  $as_echo_n "(cached) " >&6
8350else
8351  if test "$cross_compiling" = yes; then
8352  ac_cv_func_mmap_fixed_mapped=no
8353else
8354  cat >conftest.$ac_ext <<_ACEOF
8355/* confdefs.h.  */
8356_ACEOF
8357cat confdefs.h >>conftest.$ac_ext
8358cat >>conftest.$ac_ext <<_ACEOF
8359/* end confdefs.h.  */
8360$ac_includes_default
8361/* malloc might have been renamed as rpl_malloc. */
8362#undef malloc
8363
8364/* Thanks to Mike Haertel and Jim Avera for this test.
8365   Here is a matrix of mmap possibilities:
8366	mmap private not fixed
8367	mmap private fixed at somewhere currently unmapped
8368	mmap private fixed at somewhere already mapped
8369	mmap shared not fixed
8370	mmap shared fixed at somewhere currently unmapped
8371	mmap shared fixed at somewhere already mapped
8372   For private mappings, we should verify that changes cannot be read()
8373   back from the file, nor mmap's back from the file at a different
8374   address.  (There have been systems where private was not correctly
8375   implemented like the infamous i386 svr4.0, and systems where the
8376   VM page cache was not coherent with the file system buffer cache
8377   like early versions of FreeBSD and possibly contemporary NetBSD.)
8378   For shared mappings, we should conversely verify that changes get
8379   propagated back to all the places they're supposed to be.
8380
8381   Grep wants private fixed already mapped.
8382   The main things grep needs to know about mmap are:
8383   * does it exist and is it safe to write into the mmap'd area
8384   * how to use it (BSD variants)  */
8385
8386#include <fcntl.h>
8387#include <sys/mman.h>
8388
8389#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8390char *malloc ();
8391#endif
8392
8393/* This mess was copied from the GNU getpagesize.h.  */
8394#ifndef HAVE_GETPAGESIZE
8395/* Assume that all systems that can run configure have sys/param.h.  */
8396# ifndef HAVE_SYS_PARAM_H
8397#  define HAVE_SYS_PARAM_H 1
8398# endif
8399
8400# ifdef _SC_PAGESIZE
8401#  define getpagesize() sysconf(_SC_PAGESIZE)
8402# else /* no _SC_PAGESIZE */
8403#  ifdef HAVE_SYS_PARAM_H
8404#   include <sys/param.h>
8405#   ifdef EXEC_PAGESIZE
8406#    define getpagesize() EXEC_PAGESIZE
8407#   else /* no EXEC_PAGESIZE */
8408#    ifdef NBPG
8409#     define getpagesize() NBPG * CLSIZE
8410#     ifndef CLSIZE
8411#      define CLSIZE 1
8412#     endif /* no CLSIZE */
8413#    else /* no NBPG */
8414#     ifdef NBPC
8415#      define getpagesize() NBPC
8416#     else /* no NBPC */
8417#      ifdef PAGESIZE
8418#       define getpagesize() PAGESIZE
8419#      endif /* PAGESIZE */
8420#     endif /* no NBPC */
8421#    endif /* no NBPG */
8422#   endif /* no EXEC_PAGESIZE */
8423#  else /* no HAVE_SYS_PARAM_H */
8424#   define getpagesize() 8192	/* punt totally */
8425#  endif /* no HAVE_SYS_PARAM_H */
8426# endif /* no _SC_PAGESIZE */
8427
8428#endif /* no HAVE_GETPAGESIZE */
8429
8430int
8431main ()
8432{
8433  char *data, *data2, *data3;
8434  int i, pagesize;
8435  int fd;
8436
8437  pagesize = getpagesize ();
8438
8439  /* First, make a file with some known garbage in it. */
8440  data = (char *) malloc (pagesize);
8441  if (!data)
8442    return 1;
8443  for (i = 0; i < pagesize; ++i)
8444    *(data + i) = rand ();
8445  umask (0);
8446  fd = creat ("conftest.mmap", 0600);
8447  if (fd < 0)
8448    return 1;
8449  if (write (fd, data, pagesize) != pagesize)
8450    return 1;
8451  close (fd);
8452
8453  /* Next, try to mmap the file at a fixed address which already has
8454     something else allocated at it.  If we can, also make sure that
8455     we see the same garbage.  */
8456  fd = open ("conftest.mmap", O_RDWR);
8457  if (fd < 0)
8458    return 1;
8459  data2 = (char *) malloc (2 * pagesize);
8460  if (!data2)
8461    return 1;
8462  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8463  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8464		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
8465    return 1;
8466  for (i = 0; i < pagesize; ++i)
8467    if (*(data + i) != *(data2 + i))
8468      return 1;
8469
8470  /* Finally, make sure that changes to the mapped area do not
8471     percolate back to the file as seen by read().  (This is a bug on
8472     some variants of i386 svr4.0.)  */
8473  for (i = 0; i < pagesize; ++i)
8474    *(data2 + i) = *(data2 + i) + 1;
8475  data3 = (char *) malloc (pagesize);
8476  if (!data3)
8477    return 1;
8478  if (read (fd, data3, pagesize) != pagesize)
8479    return 1;
8480  for (i = 0; i < pagesize; ++i)
8481    if (*(data + i) != *(data3 + i))
8482      return 1;
8483  close (fd);
8484  return 0;
8485}
8486_ACEOF
8487rm -f conftest$ac_exeext
8488if { (ac_try="$ac_link"
8489case "(($ac_try" in
8490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491  *) ac_try_echo=$ac_try;;
8492esac
8493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8494$as_echo "$ac_try_echo") >&5
8495  (eval "$ac_link") 2>&5
8496  ac_status=$?
8497  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8499  { (case "(($ac_try" in
8500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501  *) ac_try_echo=$ac_try;;
8502esac
8503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8504$as_echo "$ac_try_echo") >&5
8505  (eval "$ac_try") 2>&5
8506  ac_status=$?
8507  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508  (exit $ac_status); }; }; then
8509  ac_cv_func_mmap_fixed_mapped=yes
8510else
8511  $as_echo "$as_me: program exited with status $ac_status" >&5
8512$as_echo "$as_me: failed program was:" >&5
8513sed 's/^/| /' conftest.$ac_ext >&5
8514
8515( exit $ac_status )
8516ac_cv_func_mmap_fixed_mapped=no
8517fi
8518rm -rf conftest.dSYM
8519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8520fi
8521
8522
8523fi
8524{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8525$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8526if test $ac_cv_func_mmap_fixed_mapped = yes; then
8527
8528cat >>confdefs.h <<\_ACEOF
8529#define HAVE_MMAP 1
8530_ACEOF
8531
8532fi
8533rm -f conftest.mmap
8534
8535{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8536$as_echo_n "checking whether stat accepts an empty string... " >&6; }
8537if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
8538  $as_echo_n "(cached) " >&6
8539else
8540  if test "$cross_compiling" = yes; then
8541  ac_cv_func_stat_empty_string_bug=yes
8542else
8543  cat >conftest.$ac_ext <<_ACEOF
8544/* confdefs.h.  */
8545_ACEOF
8546cat confdefs.h >>conftest.$ac_ext
8547cat >>conftest.$ac_ext <<_ACEOF
8548/* end confdefs.h.  */
8549$ac_includes_default
8550int
8551main ()
8552{
8553struct stat sbuf;
8554  return stat ("", &sbuf) == 0;
8555  ;
8556  return 0;
8557}
8558_ACEOF
8559rm -f conftest$ac_exeext
8560if { (ac_try="$ac_link"
8561case "(($ac_try" in
8562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563  *) ac_try_echo=$ac_try;;
8564esac
8565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8566$as_echo "$ac_try_echo") >&5
8567  (eval "$ac_link") 2>&5
8568  ac_status=$?
8569  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8571  { (case "(($ac_try" in
8572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573  *) ac_try_echo=$ac_try;;
8574esac
8575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8576$as_echo "$ac_try_echo") >&5
8577  (eval "$ac_try") 2>&5
8578  ac_status=$?
8579  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580  (exit $ac_status); }; }; then
8581  ac_cv_func_stat_empty_string_bug=no
8582else
8583  $as_echo "$as_me: program exited with status $ac_status" >&5
8584$as_echo "$as_me: failed program was:" >&5
8585sed 's/^/| /' conftest.$ac_ext >&5
8586
8587( exit $ac_status )
8588ac_cv_func_stat_empty_string_bug=yes
8589fi
8590rm -rf conftest.dSYM
8591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8592fi
8593
8594
8595fi
8596{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8597$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
8598if test $ac_cv_func_stat_empty_string_bug = yes; then
8599  case " $LIBOBJS " in
8600  *" stat.$ac_objext "* ) ;;
8601  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8602 ;;
8603esac
8604
8605
8606cat >>confdefs.h <<_ACEOF
8607#define HAVE_STAT_EMPTY_STRING_BUG 1
8608_ACEOF
8609
8610fi
8611
8612{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8613$as_echo_n "checking for working strtod... " >&6; }
8614if test "${ac_cv_func_strtod+set}" = set; then
8615  $as_echo_n "(cached) " >&6
8616else
8617  if test "$cross_compiling" = yes; then
8618  ac_cv_func_strtod=no
8619else
8620  cat >conftest.$ac_ext <<_ACEOF
8621/* confdefs.h.  */
8622_ACEOF
8623cat confdefs.h >>conftest.$ac_ext
8624cat >>conftest.$ac_ext <<_ACEOF
8625/* end confdefs.h.  */
8626
8627$ac_includes_default
8628#ifndef strtod
8629double strtod ();
8630#endif
8631int
8632main()
8633{
8634  {
8635    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
8636    char *string = " +69";
8637    char *term;
8638    double value;
8639    value = strtod (string, &term);
8640    if (value != 69 || term != (string + 4))
8641      return 1;
8642  }
8643
8644  {
8645    /* Under Solaris 2.4, strtod returns the wrong value for the
8646       terminating character under some conditions.  */
8647    char *string = "NaN";
8648    char *term;
8649    strtod (string, &term);
8650    if (term != string && *(term - 1) == 0)
8651      return 1;
8652  }
8653  return 0;
8654}
8655
8656_ACEOF
8657rm -f conftest$ac_exeext
8658if { (ac_try="$ac_link"
8659case "(($ac_try" in
8660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661  *) ac_try_echo=$ac_try;;
8662esac
8663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8664$as_echo "$ac_try_echo") >&5
8665  (eval "$ac_link") 2>&5
8666  ac_status=$?
8667  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8669  { (case "(($ac_try" in
8670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671  *) ac_try_echo=$ac_try;;
8672esac
8673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8674$as_echo "$ac_try_echo") >&5
8675  (eval "$ac_try") 2>&5
8676  ac_status=$?
8677  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678  (exit $ac_status); }; }; then
8679  ac_cv_func_strtod=yes
8680else
8681  $as_echo "$as_me: program exited with status $ac_status" >&5
8682$as_echo "$as_me: failed program was:" >&5
8683sed 's/^/| /' conftest.$ac_ext >&5
8684
8685( exit $ac_status )
8686ac_cv_func_strtod=no
8687fi
8688rm -rf conftest.dSYM
8689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8690fi
8691
8692
8693fi
8694{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8695$as_echo "$ac_cv_func_strtod" >&6; }
8696if test $ac_cv_func_strtod = no; then
8697  case " $LIBOBJS " in
8698  *" strtod.$ac_objext "* ) ;;
8699  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8700 ;;
8701esac
8702
8703{ $as_echo "$as_me:$LINENO: checking for pow" >&5
8704$as_echo_n "checking for pow... " >&6; }
8705if test "${ac_cv_func_pow+set}" = set; then
8706  $as_echo_n "(cached) " >&6
8707else
8708  cat >conftest.$ac_ext <<_ACEOF
8709/* confdefs.h.  */
8710_ACEOF
8711cat confdefs.h >>conftest.$ac_ext
8712cat >>conftest.$ac_ext <<_ACEOF
8713/* end confdefs.h.  */
8714/* Define pow to an innocuous variant, in case <limits.h> declares pow.
8715   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8716#define pow innocuous_pow
8717
8718/* System header to define __stub macros and hopefully few prototypes,
8719    which can conflict with char pow (); below.
8720    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8721    <limits.h> exists even on freestanding compilers.  */
8722
8723#ifdef __STDC__
8724# include <limits.h>
8725#else
8726# include <assert.h>
8727#endif
8728
8729#undef pow
8730
8731/* Override any GCC internal prototype to avoid an error.
8732   Use char because int might match the return type of a GCC
8733   builtin and then its argument prototype would still apply.  */
8734#ifdef __cplusplus
8735extern "C"
8736#endif
8737char pow ();
8738/* The GNU C library defines this for functions which it implements
8739    to always fail with ENOSYS.  Some functions are actually named
8740    something starting with __ and the normal name is an alias.  */
8741#if defined __stub_pow || defined __stub___pow
8742choke me
8743#endif
8744
8745int
8746main ()
8747{
8748return pow ();
8749  ;
8750  return 0;
8751}
8752_ACEOF
8753rm -f conftest.$ac_objext conftest$ac_exeext
8754if { (ac_try="$ac_link"
8755case "(($ac_try" in
8756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757  *) ac_try_echo=$ac_try;;
8758esac
8759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8760$as_echo "$ac_try_echo") >&5
8761  (eval "$ac_link") 2>conftest.er1
8762  ac_status=$?
8763  grep -v '^ *+' conftest.er1 >conftest.err
8764  rm -f conftest.er1
8765  cat conftest.err >&5
8766  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767  (exit $ac_status); } && {
8768	 test -z "$ac_c_werror_flag" ||
8769	 test ! -s conftest.err
8770       } && test -s conftest$ac_exeext && {
8771	 test "$cross_compiling" = yes ||
8772	 $as_test_x conftest$ac_exeext
8773       }; then
8774  ac_cv_func_pow=yes
8775else
8776  $as_echo "$as_me: failed program was:" >&5
8777sed 's/^/| /' conftest.$ac_ext >&5
8778
8779	ac_cv_func_pow=no
8780fi
8781
8782rm -rf conftest.dSYM
8783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8784      conftest$ac_exeext conftest.$ac_ext
8785fi
8786{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8787$as_echo "$ac_cv_func_pow" >&6; }
8788
8789if test $ac_cv_func_pow = no; then
8790  { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8791$as_echo_n "checking for pow in -lm... " >&6; }
8792if test "${ac_cv_lib_m_pow+set}" = set; then
8793  $as_echo_n "(cached) " >&6
8794else
8795  ac_check_lib_save_LIBS=$LIBS
8796LIBS="-lm  $LIBS"
8797cat >conftest.$ac_ext <<_ACEOF
8798/* confdefs.h.  */
8799_ACEOF
8800cat confdefs.h >>conftest.$ac_ext
8801cat >>conftest.$ac_ext <<_ACEOF
8802/* end confdefs.h.  */
8803
8804/* Override any GCC internal prototype to avoid an error.
8805   Use char because int might match the return type of a GCC
8806   builtin and then its argument prototype would still apply.  */
8807#ifdef __cplusplus
8808extern "C"
8809#endif
8810char pow ();
8811int
8812main ()
8813{
8814return pow ();
8815  ;
8816  return 0;
8817}
8818_ACEOF
8819rm -f conftest.$ac_objext conftest$ac_exeext
8820if { (ac_try="$ac_link"
8821case "(($ac_try" in
8822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823  *) ac_try_echo=$ac_try;;
8824esac
8825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8826$as_echo "$ac_try_echo") >&5
8827  (eval "$ac_link") 2>conftest.er1
8828  ac_status=$?
8829  grep -v '^ *+' conftest.er1 >conftest.err
8830  rm -f conftest.er1
8831  cat conftest.err >&5
8832  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833  (exit $ac_status); } && {
8834	 test -z "$ac_c_werror_flag" ||
8835	 test ! -s conftest.err
8836       } && test -s conftest$ac_exeext && {
8837	 test "$cross_compiling" = yes ||
8838	 $as_test_x conftest$ac_exeext
8839       }; then
8840  ac_cv_lib_m_pow=yes
8841else
8842  $as_echo "$as_me: failed program was:" >&5
8843sed 's/^/| /' conftest.$ac_ext >&5
8844
8845	ac_cv_lib_m_pow=no
8846fi
8847
8848rm -rf conftest.dSYM
8849rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8850      conftest$ac_exeext conftest.$ac_ext
8851LIBS=$ac_check_lib_save_LIBS
8852fi
8853{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8854$as_echo "$ac_cv_lib_m_pow" >&6; }
8855if test "x$ac_cv_lib_m_pow" = x""yes; then
8856  POW_LIB=-lm
8857else
8858  { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8859$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8860fi
8861
8862fi
8863
8864fi
8865
8866
8867for ac_func in vprintf
8868do
8869as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8870{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8871$as_echo_n "checking for $ac_func... " >&6; }
8872if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8873  $as_echo_n "(cached) " >&6
8874else
8875  cat >conftest.$ac_ext <<_ACEOF
8876/* confdefs.h.  */
8877_ACEOF
8878cat confdefs.h >>conftest.$ac_ext
8879cat >>conftest.$ac_ext <<_ACEOF
8880/* end confdefs.h.  */
8881/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8882   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8883#define $ac_func innocuous_$ac_func
8884
8885/* System header to define __stub macros and hopefully few prototypes,
8886    which can conflict with char $ac_func (); below.
8887    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8888    <limits.h> exists even on freestanding compilers.  */
8889
8890#ifdef __STDC__
8891# include <limits.h>
8892#else
8893# include <assert.h>
8894#endif
8895
8896#undef $ac_func
8897
8898/* Override any GCC internal prototype to avoid an error.
8899   Use char because int might match the return type of a GCC
8900   builtin and then its argument prototype would still apply.  */
8901#ifdef __cplusplus
8902extern "C"
8903#endif
8904char $ac_func ();
8905/* The GNU C library defines this for functions which it implements
8906    to always fail with ENOSYS.  Some functions are actually named
8907    something starting with __ and the normal name is an alias.  */
8908#if defined __stub_$ac_func || defined __stub___$ac_func
8909choke me
8910#endif
8911
8912int
8913main ()
8914{
8915return $ac_func ();
8916  ;
8917  return 0;
8918}
8919_ACEOF
8920rm -f conftest.$ac_objext conftest$ac_exeext
8921if { (ac_try="$ac_link"
8922case "(($ac_try" in
8923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924  *) ac_try_echo=$ac_try;;
8925esac
8926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8927$as_echo "$ac_try_echo") >&5
8928  (eval "$ac_link") 2>conftest.er1
8929  ac_status=$?
8930  grep -v '^ *+' conftest.er1 >conftest.err
8931  rm -f conftest.er1
8932  cat conftest.err >&5
8933  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934  (exit $ac_status); } && {
8935	 test -z "$ac_c_werror_flag" ||
8936	 test ! -s conftest.err
8937       } && test -s conftest$ac_exeext && {
8938	 test "$cross_compiling" = yes ||
8939	 $as_test_x conftest$ac_exeext
8940       }; then
8941  eval "$as_ac_var=yes"
8942else
8943  $as_echo "$as_me: failed program was:" >&5
8944sed 's/^/| /' conftest.$ac_ext >&5
8945
8946	eval "$as_ac_var=no"
8947fi
8948
8949rm -rf conftest.dSYM
8950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8951      conftest$ac_exeext conftest.$ac_ext
8952fi
8953ac_res=`eval 'as_val=${'$as_ac_var'}
8954		 $as_echo "$as_val"'`
8955	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8956$as_echo "$ac_res" >&6; }
8957as_val=`eval 'as_val=${'$as_ac_var'}
8958		 $as_echo "$as_val"'`
8959   if test "x$as_val" = x""yes; then
8960  cat >>confdefs.h <<_ACEOF
8961#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8962_ACEOF
8963
8964{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8965$as_echo_n "checking for _doprnt... " >&6; }
8966if test "${ac_cv_func__doprnt+set}" = set; then
8967  $as_echo_n "(cached) " >&6
8968else
8969  cat >conftest.$ac_ext <<_ACEOF
8970/* confdefs.h.  */
8971_ACEOF
8972cat confdefs.h >>conftest.$ac_ext
8973cat >>conftest.$ac_ext <<_ACEOF
8974/* end confdefs.h.  */
8975/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8976   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8977#define _doprnt innocuous__doprnt
8978
8979/* System header to define __stub macros and hopefully few prototypes,
8980    which can conflict with char _doprnt (); below.
8981    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8982    <limits.h> exists even on freestanding compilers.  */
8983
8984#ifdef __STDC__
8985# include <limits.h>
8986#else
8987# include <assert.h>
8988#endif
8989
8990#undef _doprnt
8991
8992/* Override any GCC internal prototype to avoid an error.
8993   Use char because int might match the return type of a GCC
8994   builtin and then its argument prototype would still apply.  */
8995#ifdef __cplusplus
8996extern "C"
8997#endif
8998char _doprnt ();
8999/* The GNU C library defines this for functions which it implements
9000    to always fail with ENOSYS.  Some functions are actually named
9001    something starting with __ and the normal name is an alias.  */
9002#if defined __stub__doprnt || defined __stub____doprnt
9003choke me
9004#endif
9005
9006int
9007main ()
9008{
9009return _doprnt ();
9010  ;
9011  return 0;
9012}
9013_ACEOF
9014rm -f conftest.$ac_objext conftest$ac_exeext
9015if { (ac_try="$ac_link"
9016case "(($ac_try" in
9017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9018  *) ac_try_echo=$ac_try;;
9019esac
9020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9021$as_echo "$ac_try_echo") >&5
9022  (eval "$ac_link") 2>conftest.er1
9023  ac_status=$?
9024  grep -v '^ *+' conftest.er1 >conftest.err
9025  rm -f conftest.er1
9026  cat conftest.err >&5
9027  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028  (exit $ac_status); } && {
9029	 test -z "$ac_c_werror_flag" ||
9030	 test ! -s conftest.err
9031       } && test -s conftest$ac_exeext && {
9032	 test "$cross_compiling" = yes ||
9033	 $as_test_x conftest$ac_exeext
9034       }; then
9035  ac_cv_func__doprnt=yes
9036else
9037  $as_echo "$as_me: failed program was:" >&5
9038sed 's/^/| /' conftest.$ac_ext >&5
9039
9040	ac_cv_func__doprnt=no
9041fi
9042
9043rm -rf conftest.dSYM
9044rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9045      conftest$ac_exeext conftest.$ac_ext
9046fi
9047{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9048$as_echo "$ac_cv_func__doprnt" >&6; }
9049if test "x$ac_cv_func__doprnt" = x""yes; then
9050
9051cat >>confdefs.h <<\_ACEOF
9052#define HAVE_DOPRNT 1
9053_ACEOF
9054
9055fi
9056
9057fi
9058done
9059
9060
9061
9062################################################################################
9063{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
9064$as_echo_n "checking whether to use static linking... " >&6; }
9065# Check whether --enable-static_link was given.
9066if test "${enable_static_link+set}" = set; then
9067  enableval=$enable_static_link; STATIC_LINK=$enableval
9068else
9069  STATIC_LINK=no
9070fi
9071
9072{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
9073$as_echo "$STATIC_LINK" >&6; }
9074
9075################################################################################
9076
9077
9078################################################################################
9079{ $as_echo "$as_me:$LINENO: checking file owner" >&5
9080$as_echo_n "checking file owner... " >&6; }
9081OWNER=""
9082
9083
9084# Check whether --with-user was given.
9085if test "${with_user+set}" = set; then
9086  withval=$with_user;  OWNER="$withval"
9087fi
9088
9089{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
9090$as_echo "$OWNER" >&6; }
9091
9092if test x$OWNER != x; then
9093	OWNER="-o $OWNER"
9094fi
9095
9096################################################################################
9097{ $as_echo "$as_me:$LINENO: checking group owner" >&5
9098$as_echo_n "checking group owner... " >&6; }
9099GROUP=""
9100
9101# Check whether --with-group was given.
9102if test "${with_group+set}" = set; then
9103  withval=$with_group;  GROUP="$withval"
9104fi
9105
9106{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
9107$as_echo "$GROUP" >&6; }
9108
9109if test x$GROUP != x; then
9110	GROUP="-g $GROUP"
9111fi
9112
9113################################################################################
9114{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
9115$as_echo_n "checking device node uid... " >&6; }
9116
9117
9118# Check whether --with-device-uid was given.
9119if test "${with_device_uid+set}" = set; then
9120  withval=$with_device_uid;  DM_DEVICE_UID="$withval"
9121else
9122   DM_DEVICE_UID="0"
9123fi
9124
9125{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
9126$as_echo "$DM_DEVICE_UID" >&6; }
9127
9128################################################################################
9129{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
9130$as_echo_n "checking device node gid... " >&6; }
9131
9132
9133# Check whether --with-device-gid was given.
9134if test "${with_device_gid+set}" = set; then
9135  withval=$with_device_gid;  DM_DEVICE_GID="$withval"
9136else
9137   DM_DEVICE_GID="0"
9138fi
9139
9140{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
9141$as_echo "$DM_DEVICE_GID" >&6; }
9142
9143################################################################################
9144{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
9145$as_echo_n "checking device node mode... " >&6; }
9146
9147
9148# Check whether --with-device-mode was given.
9149if test "${with_device_mode+set}" = set; then
9150  withval=$with_device_mode;  DM_DEVICE_MODE="$withval"
9151else
9152   DM_DEVICE_MODE="0600"
9153fi
9154
9155{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
9156$as_echo "$DM_DEVICE_MODE" >&6; }
9157
9158################################################################################
9159{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
9160$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
9161# Check whether --enable-lvm1_fallback was given.
9162if test "${enable_lvm1_fallback+set}" = set; then
9163  enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
9164else
9165  LVM1_FALLBACK=no
9166fi
9167
9168{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
9169$as_echo "$LVM1_FALLBACK" >&6; }
9170
9171if test x$LVM1_FALLBACK = xyes; then
9172
9173cat >>confdefs.h <<\_ACEOF
9174#define LVM1_FALLBACK 1
9175_ACEOF
9176
9177fi
9178
9179################################################################################
9180{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9181$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
9182
9183# Check whether --with-lvm1 was given.
9184if test "${with_lvm1+set}" = set; then
9185  withval=$with_lvm1;  LVM1="$withval"
9186else
9187   LVM1="internal"
9188fi
9189
9190{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9191$as_echo "$LVM1" >&6; }
9192
9193if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
9194 then  { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
9195" >&5
9196$as_echo "$as_me: error: --with-lvm1 parameter invalid
9197" >&2;}
9198   { (exit 1); exit 1; }; }
9199fi;
9200
9201if test x$LVM1 = xinternal; then
9202
9203cat >>confdefs.h <<\_ACEOF
9204#define LVM1_INTERNAL 1
9205_ACEOF
9206
9207fi
9208
9209################################################################################
9210{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9211$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
9212
9213# Check whether --with-pool was given.
9214if test "${with_pool+set}" = set; then
9215  withval=$with_pool;  POOL="$withval"
9216else
9217   POOL="internal"
9218fi
9219
9220{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
9221$as_echo "$POOL" >&6; }
9222
9223if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
9224 then  { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
9225" >&5
9226$as_echo "$as_me: error: --with-pool parameter invalid
9227" >&2;}
9228   { (exit 1); exit 1; }; }
9229fi;
9230
9231if test x$POOL = xinternal; then
9232
9233cat >>confdefs.h <<\_ACEOF
9234#define POOL_INTERNAL 1
9235_ACEOF
9236
9237fi
9238
9239################################################################################
9240{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9241$as_echo_n "checking whether to include support for cluster locking... " >&6; }
9242
9243# Check whether --with-cluster was given.
9244if test "${with_cluster+set}" = set; then
9245  withval=$with_cluster;  CLUSTER="$withval"
9246fi
9247
9248{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9249$as_echo "$CLUSTER" >&6; }
9250
9251if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
9252 then  { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
9253" >&5
9254$as_echo "$as_me: error: --with-cluster parameter invalid
9255" >&2;}
9256   { (exit 1); exit 1; }; }
9257fi;
9258
9259if test x$CLUSTER = xinternal; then
9260
9261cat >>confdefs.h <<\_ACEOF
9262#define CLUSTER_LOCKING_INTERNAL 1
9263_ACEOF
9264
9265fi
9266
9267################################################################################
9268{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9269$as_echo_n "checking whether to include snapshots... " >&6; }
9270
9271# Check whether --with-snapshots was given.
9272if test "${with_snapshots+set}" = set; then
9273  withval=$with_snapshots;  SNAPSHOTS="$withval"
9274else
9275   SNAPSHOTS="internal"
9276fi
9277
9278{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9279$as_echo "$SNAPSHOTS" >&6; }
9280
9281if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
9282 then  { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
9283" >&5
9284$as_echo "$as_me: error: --with-snapshots parameter invalid
9285" >&2;}
9286   { (exit 1); exit 1; }; }
9287fi;
9288
9289if test x$SNAPSHOTS = xinternal; then
9290
9291cat >>confdefs.h <<\_ACEOF
9292#define SNAPSHOT_INTERNAL 1
9293_ACEOF
9294
9295fi
9296
9297################################################################################
9298{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9299$as_echo_n "checking whether to include mirrors... " >&6; }
9300
9301# Check whether --with-mirrors was given.
9302if test "${with_mirrors+set}" = set; then
9303  withval=$with_mirrors;  MIRRORS="$withval"
9304else
9305   MIRRORS="internal"
9306fi
9307
9308{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9309$as_echo "$MIRRORS" >&6; }
9310
9311if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
9312 then  { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
9313" >&5
9314$as_echo "$as_me: error: --with-mirrors parameter invalid
9315" >&2;}
9316   { (exit 1); exit 1; }; }
9317fi;
9318
9319if test x$MIRRORS = xinternal; then
9320
9321cat >>confdefs.h <<\_ACEOF
9322#define MIRRORED_INTERNAL 1
9323_ACEOF
9324
9325fi
9326
9327################################################################################
9328{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9329$as_echo_n "checking whether to enable readline... " >&6; }
9330# Check whether --enable-readline was given.
9331if test "${enable_readline+set}" = set; then
9332  enableval=$enable_readline; READLINE=$enableval
9333else
9334  READLINE=maybe
9335fi
9336
9337{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9338$as_echo "$READLINE" >&6; }
9339
9340################################################################################
9341{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9342$as_echo_n "checking whether to enable realtime support... " >&6; }
9343# Check whether --enable-realtime was given.
9344if test "${enable_realtime+set}" = set; then
9345  enableval=$enable_realtime; REALTIME=$enableval
9346fi
9347
9348{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9349$as_echo "$REALTIME" >&6; }
9350
9351################################################################################
9352pkg_config_init() {
9353
9354
9355if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9356	if test -n "$ac_tool_prefix"; then
9357  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9358set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9359{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9360$as_echo_n "checking for $ac_word... " >&6; }
9361if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9362  $as_echo_n "(cached) " >&6
9363else
9364  case $PKG_CONFIG in
9365  [\\/]* | ?:[\\/]*)
9366  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9367  ;;
9368  *)
9369  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9370for as_dir in $PATH
9371do
9372  IFS=$as_save_IFS
9373  test -z "$as_dir" && as_dir=.
9374  for ac_exec_ext in '' $ac_executable_extensions; do
9375  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9376    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9377    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9378    break 2
9379  fi
9380done
9381done
9382IFS=$as_save_IFS
9383
9384  ;;
9385esac
9386fi
9387PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9388if test -n "$PKG_CONFIG"; then
9389  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9390$as_echo "$PKG_CONFIG" >&6; }
9391else
9392  { $as_echo "$as_me:$LINENO: result: no" >&5
9393$as_echo "no" >&6; }
9394fi
9395
9396
9397fi
9398if test -z "$ac_cv_path_PKG_CONFIG"; then
9399  ac_pt_PKG_CONFIG=$PKG_CONFIG
9400  # Extract the first word of "pkg-config", so it can be a program name with args.
9401set dummy pkg-config; ac_word=$2
9402{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9403$as_echo_n "checking for $ac_word... " >&6; }
9404if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9405  $as_echo_n "(cached) " >&6
9406else
9407  case $ac_pt_PKG_CONFIG in
9408  [\\/]* | ?:[\\/]*)
9409  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9410  ;;
9411  *)
9412  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9413for as_dir in $PATH
9414do
9415  IFS=$as_save_IFS
9416  test -z "$as_dir" && as_dir=.
9417  for ac_exec_ext in '' $ac_executable_extensions; do
9418  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9419    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9420    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9421    break 2
9422  fi
9423done
9424done
9425IFS=$as_save_IFS
9426
9427  ;;
9428esac
9429fi
9430ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9431if test -n "$ac_pt_PKG_CONFIG"; then
9432  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9433$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9434else
9435  { $as_echo "$as_me:$LINENO: result: no" >&5
9436$as_echo "no" >&6; }
9437fi
9438
9439  if test "x$ac_pt_PKG_CONFIG" = x; then
9440    PKG_CONFIG=""
9441  else
9442    case $cross_compiling:$ac_tool_warned in
9443yes:)
9444{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9446ac_tool_warned=yes ;;
9447esac
9448    PKG_CONFIG=$ac_pt_PKG_CONFIG
9449  fi
9450else
9451  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9452fi
9453
9454fi
9455if test -n "$PKG_CONFIG"; then
9456	_pkg_min_version=0.9.0
9457	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9458$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9459	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9460		{ $as_echo "$as_me:$LINENO: result: yes" >&5
9461$as_echo "yes" >&6; }
9462	else
9463		{ $as_echo "$as_me:$LINENO: result: no" >&5
9464$as_echo "no" >&6; }
9465		PKG_CONFIG=""
9466	fi
9467
9468fi
9469
9470pkg_failed=no
9471{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
9472$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
9473
9474if test -n "$PKGCONFIGINIT_CFLAGS"; then
9475    pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
9476 elif test -n "$PKG_CONFIG"; then
9477    if test -n "$PKG_CONFIG" && \
9478    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9479  ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9480  ac_status=$?
9481  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482  (exit $ac_status); }; then
9483  pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
9484else
9485  pkg_failed=yes
9486fi
9487 else
9488    pkg_failed=untried
9489fi
9490if test -n "$PKGCONFIGINIT_LIBS"; then
9491    pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
9492 elif test -n "$PKG_CONFIG"; then
9493    if test -n "$PKG_CONFIG" && \
9494    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
9495  ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
9496  ac_status=$?
9497  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498  (exit $ac_status); }; then
9499  pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
9500else
9501  pkg_failed=yes
9502fi
9503 else
9504    pkg_failed=untried
9505fi
9506
9507
9508
9509if test $pkg_failed = yes; then
9510
9511if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9512        _pkg_short_errors_supported=yes
9513else
9514        _pkg_short_errors_supported=no
9515fi
9516        if test $_pkg_short_errors_supported = yes; then
9517	        PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
9518        else
9519	        PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
9520        fi
9521	# Put the nasty error message in config.log where it belongs
9522	echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
9523
9524	{ $as_echo "$as_me:$LINENO: result: no" >&5
9525$as_echo "no" >&6; }
9526                { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9527$as_echo "pkg-config initialized" >&6; }
9528elif test $pkg_failed = untried; then
9529	{ $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
9530$as_echo "pkg-config initialized" >&6; }
9531else
9532	PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
9533	PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
9534        { $as_echo "$as_me:$LINENO: result: yes" >&5
9535$as_echo "yes" >&6; }
9536	:
9537fi
9538	PKGCONFIG_INIT=1
9539}
9540
9541################################################################################
9542{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9543$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9544
9545# Check whether --with-clvmd was given.
9546if test "${with_clvmd+set}" = set; then
9547  withval=$with_clvmd;  CLVMD="$withval"
9548else
9549   CLVMD="none"
9550fi
9551
9552if test x$CLVMD = xyes; then
9553	CLVMD=all
9554fi
9555{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9556$as_echo "$CLVMD" >&6; }
9557
9558if  test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9559	CLUSTER=internal
9560fi
9561
9562if  test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
9563	pkg_config_init
9564fi
9565
9566
9567if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
9568	BUILDGULM=yes
9569fi
9570if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
9571	BUILDCOROSYNC=yes
9572fi
9573if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
9574	BUILDOPENAIS=yes
9575fi
9576if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
9577	BUILDCMAN=yes
9578fi
9579
9580if test x$BUILDGULM = xyes; then
9581	if test x$BUILDCOROSYNC = xyes || \
9582	   test x$BUILDOPENAIS = xyes; then
9583		{ { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
9584$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
9585   { (exit 1); exit 1; }; }
9586	fi
9587fi
9588
9589soft_bailout() {
9590	NOTFOUND=1
9591}
9592
9593hard_bailout() {
9594	{ { $as_echo "$as_me:$LINENO: error: bailing out" >&5
9595$as_echo "$as_me: error: bailing out" >&2;}
9596   { (exit 1); exit 1; }; }
9597}
9598
9599if test x$CLVMD = xall; then
9600	bailout=soft_bailout
9601	BUILDGULM=yes
9602	BUILDCMAN=yes
9603	BUILDCOROSYNC=yes
9604	BUILDOPENAIS=yes
9605else
9606	bailout=hard_bailout
9607fi
9608
9609check_lib_no_libs() {
9610	lib_no_libs_arg1=$1
9611	shift
9612	lib_no_libs_arg2=$1
9613	shift
9614	lib_no_libs_args=$@
9615
9616as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
9617{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
9618$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
9619if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9620  $as_echo_n "(cached) " >&6
9621else
9622  ac_check_lib_save_LIBS=$LIBS
9623LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
9624cat >conftest.$ac_ext <<_ACEOF
9625/* confdefs.h.  */
9626_ACEOF
9627cat confdefs.h >>conftest.$ac_ext
9628cat >>conftest.$ac_ext <<_ACEOF
9629/* end confdefs.h.  */
9630
9631/* Override any GCC internal prototype to avoid an error.
9632   Use char because int might match the return type of a GCC
9633   builtin and then its argument prototype would still apply.  */
9634#ifdef __cplusplus
9635extern "C"
9636#endif
9637char $lib_no_libs_arg2 ();
9638int
9639main ()
9640{
9641return $lib_no_libs_arg2 ();
9642  ;
9643  return 0;
9644}
9645_ACEOF
9646rm -f conftest.$ac_objext conftest$ac_exeext
9647if { (ac_try="$ac_link"
9648case "(($ac_try" in
9649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650  *) ac_try_echo=$ac_try;;
9651esac
9652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9653$as_echo "$ac_try_echo") >&5
9654  (eval "$ac_link") 2>conftest.er1
9655  ac_status=$?
9656  grep -v '^ *+' conftest.er1 >conftest.err
9657  rm -f conftest.er1
9658  cat conftest.err >&5
9659  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660  (exit $ac_status); } && {
9661	 test -z "$ac_c_werror_flag" ||
9662	 test ! -s conftest.err
9663       } && test -s conftest$ac_exeext && {
9664	 test "$cross_compiling" = yes ||
9665	 $as_test_x conftest$ac_exeext
9666       }; then
9667  eval "$as_ac_Lib=yes"
9668else
9669  $as_echo "$as_me: failed program was:" >&5
9670sed 's/^/| /' conftest.$ac_ext >&5
9671
9672	eval "$as_ac_Lib=no"
9673fi
9674
9675rm -rf conftest.dSYM
9676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9677      conftest$ac_exeext conftest.$ac_ext
9678LIBS=$ac_check_lib_save_LIBS
9679fi
9680ac_res=`eval 'as_val=${'$as_ac_Lib'}
9681		 $as_echo "$as_val"'`
9682	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9683$as_echo "$ac_res" >&6; }
9684as_val=`eval 'as_val=${'$as_ac_Lib'}
9685		 $as_echo "$as_val"'`
9686   if test "x$as_val" = x""yes; then
9687  cat >>confdefs.h <<_ACEOF
9688#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
9689_ACEOF
9690
9691  LIBS="-l$lib_no_libs_arg1 $LIBS"
9692
9693else
9694  $bailout
9695fi
9696
9697	LIBS=$ac_check_lib_save_LIBS
9698}
9699
9700if test x$BUILDGULM = xyes; then
9701
9702pkg_failed=no
9703{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
9704$as_echo_n "checking for CCS... " >&6; }
9705
9706if test -n "$CCS_CFLAGS"; then
9707    pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
9708 elif test -n "$PKG_CONFIG"; then
9709    if test -n "$PKG_CONFIG" && \
9710    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9711  ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9712  ac_status=$?
9713  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714  (exit $ac_status); }; then
9715  pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
9716else
9717  pkg_failed=yes
9718fi
9719 else
9720    pkg_failed=untried
9721fi
9722if test -n "$CCS_LIBS"; then
9723    pkg_cv_CCS_LIBS="$CCS_LIBS"
9724 elif test -n "$PKG_CONFIG"; then
9725    if test -n "$PKG_CONFIG" && \
9726    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
9727  ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
9728  ac_status=$?
9729  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730  (exit $ac_status); }; then
9731  pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
9732else
9733  pkg_failed=yes
9734fi
9735 else
9736    pkg_failed=untried
9737fi
9738
9739
9740
9741if test $pkg_failed = yes; then
9742
9743if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9744        _pkg_short_errors_supported=yes
9745else
9746        _pkg_short_errors_supported=no
9747fi
9748        if test $_pkg_short_errors_supported = yes; then
9749	        CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
9750        else
9751	        CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
9752        fi
9753	# Put the nasty error message in config.log where it belongs
9754	echo "$CCS_PKG_ERRORS" >&5
9755
9756	{ $as_echo "$as_me:$LINENO: result: no" >&5
9757$as_echo "no" >&6; }
9758                NOTFOUND=0
9759
9760for ac_header in ccs.h
9761do
9762as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9764  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9765$as_echo_n "checking for $ac_header... " >&6; }
9766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9767  $as_echo_n "(cached) " >&6
9768fi
9769ac_res=`eval 'as_val=${'$as_ac_Header'}
9770		 $as_echo "$as_val"'`
9771	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9772$as_echo "$ac_res" >&6; }
9773else
9774  # Is the header compilable?
9775{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9776$as_echo_n "checking $ac_header usability... " >&6; }
9777cat >conftest.$ac_ext <<_ACEOF
9778/* confdefs.h.  */
9779_ACEOF
9780cat confdefs.h >>conftest.$ac_ext
9781cat >>conftest.$ac_ext <<_ACEOF
9782/* end confdefs.h.  */
9783$ac_includes_default
9784#include <$ac_header>
9785_ACEOF
9786rm -f conftest.$ac_objext
9787if { (ac_try="$ac_compile"
9788case "(($ac_try" in
9789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790  *) ac_try_echo=$ac_try;;
9791esac
9792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9793$as_echo "$ac_try_echo") >&5
9794  (eval "$ac_compile") 2>conftest.er1
9795  ac_status=$?
9796  grep -v '^ *+' conftest.er1 >conftest.err
9797  rm -f conftest.er1
9798  cat conftest.err >&5
9799  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800  (exit $ac_status); } && {
9801	 test -z "$ac_c_werror_flag" ||
9802	 test ! -s conftest.err
9803       } && test -s conftest.$ac_objext; then
9804  ac_header_compiler=yes
9805else
9806  $as_echo "$as_me: failed program was:" >&5
9807sed 's/^/| /' conftest.$ac_ext >&5
9808
9809	ac_header_compiler=no
9810fi
9811
9812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9813{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9814$as_echo "$ac_header_compiler" >&6; }
9815
9816# Is the header present?
9817{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9818$as_echo_n "checking $ac_header presence... " >&6; }
9819cat >conftest.$ac_ext <<_ACEOF
9820/* confdefs.h.  */
9821_ACEOF
9822cat confdefs.h >>conftest.$ac_ext
9823cat >>conftest.$ac_ext <<_ACEOF
9824/* end confdefs.h.  */
9825#include <$ac_header>
9826_ACEOF
9827if { (ac_try="$ac_cpp conftest.$ac_ext"
9828case "(($ac_try" in
9829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830  *) ac_try_echo=$ac_try;;
9831esac
9832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9833$as_echo "$ac_try_echo") >&5
9834  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9835  ac_status=$?
9836  grep -v '^ *+' conftest.er1 >conftest.err
9837  rm -f conftest.er1
9838  cat conftest.err >&5
9839  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840  (exit $ac_status); } >/dev/null && {
9841	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9842	 test ! -s conftest.err
9843       }; then
9844  ac_header_preproc=yes
9845else
9846  $as_echo "$as_me: failed program was:" >&5
9847sed 's/^/| /' conftest.$ac_ext >&5
9848
9849  ac_header_preproc=no
9850fi
9851
9852rm -f conftest.err conftest.$ac_ext
9853{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9854$as_echo "$ac_header_preproc" >&6; }
9855
9856# So?  What about this header?
9857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9858  yes:no: )
9859    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9860$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9861    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9862$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9863    ac_header_preproc=yes
9864    ;;
9865  no:yes:* )
9866    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9867$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9868    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9869$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9870    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9871$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9872    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9873$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9874    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9875$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9876    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9877$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9878
9879    ;;
9880esac
9881{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9882$as_echo_n "checking for $ac_header... " >&6; }
9883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9884  $as_echo_n "(cached) " >&6
9885else
9886  eval "$as_ac_Header=\$ac_header_preproc"
9887fi
9888ac_res=`eval 'as_val=${'$as_ac_Header'}
9889		 $as_echo "$as_val"'`
9890	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9891$as_echo "$ac_res" >&6; }
9892
9893fi
9894as_val=`eval 'as_val=${'$as_ac_Header'}
9895		 $as_echo "$as_val"'`
9896   if test "x$as_val" = x""yes; then
9897  cat >>confdefs.h <<_ACEOF
9898#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9899_ACEOF
9900
9901else
9902  $bailout
9903fi
9904
9905done
9906
9907		check_lib_no_libs ccs ccs_connect
9908		if test $NOTFOUND = 0; then
9909			{ $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
9910$as_echo "no pkg for libccs, using -lccs" >&6; }
9911			CCS_LIBS="-lccs"
9912			HAVE_CCS=yes
9913		fi
9914elif test $pkg_failed = untried; then
9915	NOTFOUND=0
9916
9917for ac_header in ccs.h
9918do
9919as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9920if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9921  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9922$as_echo_n "checking for $ac_header... " >&6; }
9923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9924  $as_echo_n "(cached) " >&6
9925fi
9926ac_res=`eval 'as_val=${'$as_ac_Header'}
9927		 $as_echo "$as_val"'`
9928	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9929$as_echo "$ac_res" >&6; }
9930else
9931  # Is the header compilable?
9932{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9933$as_echo_n "checking $ac_header usability... " >&6; }
9934cat >conftest.$ac_ext <<_ACEOF
9935/* confdefs.h.  */
9936_ACEOF
9937cat confdefs.h >>conftest.$ac_ext
9938cat >>conftest.$ac_ext <<_ACEOF
9939/* end confdefs.h.  */
9940$ac_includes_default
9941#include <$ac_header>
9942_ACEOF
9943rm -f conftest.$ac_objext
9944if { (ac_try="$ac_compile"
9945case "(($ac_try" in
9946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9947  *) ac_try_echo=$ac_try;;
9948esac
9949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9950$as_echo "$ac_try_echo") >&5
9951  (eval "$ac_compile") 2>conftest.er1
9952  ac_status=$?
9953  grep -v '^ *+' conftest.er1 >conftest.err
9954  rm -f conftest.er1
9955  cat conftest.err >&5
9956  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957  (exit $ac_status); } && {
9958	 test -z "$ac_c_werror_flag" ||
9959	 test ! -s conftest.err
9960       } && test -s conftest.$ac_objext; then
9961  ac_header_compiler=yes
9962else
9963  $as_echo "$as_me: failed program was:" >&5
9964sed 's/^/| /' conftest.$ac_ext >&5
9965
9966	ac_header_compiler=no
9967fi
9968
9969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9970{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9971$as_echo "$ac_header_compiler" >&6; }
9972
9973# Is the header present?
9974{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9975$as_echo_n "checking $ac_header presence... " >&6; }
9976cat >conftest.$ac_ext <<_ACEOF
9977/* confdefs.h.  */
9978_ACEOF
9979cat confdefs.h >>conftest.$ac_ext
9980cat >>conftest.$ac_ext <<_ACEOF
9981/* end confdefs.h.  */
9982#include <$ac_header>
9983_ACEOF
9984if { (ac_try="$ac_cpp conftest.$ac_ext"
9985case "(($ac_try" in
9986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987  *) ac_try_echo=$ac_try;;
9988esac
9989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9990$as_echo "$ac_try_echo") >&5
9991  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9992  ac_status=$?
9993  grep -v '^ *+' conftest.er1 >conftest.err
9994  rm -f conftest.er1
9995  cat conftest.err >&5
9996  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997  (exit $ac_status); } >/dev/null && {
9998	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9999	 test ! -s conftest.err
10000       }; then
10001  ac_header_preproc=yes
10002else
10003  $as_echo "$as_me: failed program was:" >&5
10004sed 's/^/| /' conftest.$ac_ext >&5
10005
10006  ac_header_preproc=no
10007fi
10008
10009rm -f conftest.err conftest.$ac_ext
10010{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10011$as_echo "$ac_header_preproc" >&6; }
10012
10013# So?  What about this header?
10014case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10015  yes:no: )
10016    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10017$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10018    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10019$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10020    ac_header_preproc=yes
10021    ;;
10022  no:yes:* )
10023    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10024$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10025    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10026$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10027    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10028$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10029    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10030$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10031    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10032$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10033    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10034$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10035
10036    ;;
10037esac
10038{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10039$as_echo_n "checking for $ac_header... " >&6; }
10040if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10041  $as_echo_n "(cached) " >&6
10042else
10043  eval "$as_ac_Header=\$ac_header_preproc"
10044fi
10045ac_res=`eval 'as_val=${'$as_ac_Header'}
10046		 $as_echo "$as_val"'`
10047	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10048$as_echo "$ac_res" >&6; }
10049
10050fi
10051as_val=`eval 'as_val=${'$as_ac_Header'}
10052		 $as_echo "$as_val"'`
10053   if test "x$as_val" = x""yes; then
10054  cat >>confdefs.h <<_ACEOF
10055#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10056_ACEOF
10057
10058else
10059  $bailout
10060fi
10061
10062done
10063
10064		check_lib_no_libs ccs ccs_connect
10065		if test $NOTFOUND = 0; then
10066			{ $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
10067$as_echo "no pkg for libccs, using -lccs" >&6; }
10068			CCS_LIBS="-lccs"
10069			HAVE_CCS=yes
10070		fi
10071else
10072	CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
10073	CCS_LIBS=$pkg_cv_CCS_LIBS
10074        { $as_echo "$as_me:$LINENO: result: yes" >&5
10075$as_echo "yes" >&6; }
10076	HAVE_CCS=yes
10077fi
10078
10079pkg_failed=no
10080{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
10081$as_echo_n "checking for GULM... " >&6; }
10082
10083if test -n "$GULM_CFLAGS"; then
10084    pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
10085 elif test -n "$PKG_CONFIG"; then
10086    if test -n "$PKG_CONFIG" && \
10087    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10088  ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10089  ac_status=$?
10090  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091  (exit $ac_status); }; then
10092  pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
10093else
10094  pkg_failed=yes
10095fi
10096 else
10097    pkg_failed=untried
10098fi
10099if test -n "$GULM_LIBS"; then
10100    pkg_cv_GULM_LIBS="$GULM_LIBS"
10101 elif test -n "$PKG_CONFIG"; then
10102    if test -n "$PKG_CONFIG" && \
10103    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
10104  ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
10105  ac_status=$?
10106  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107  (exit $ac_status); }; then
10108  pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
10109else
10110  pkg_failed=yes
10111fi
10112 else
10113    pkg_failed=untried
10114fi
10115
10116
10117
10118if test $pkg_failed = yes; then
10119
10120if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10121        _pkg_short_errors_supported=yes
10122else
10123        _pkg_short_errors_supported=no
10124fi
10125        if test $_pkg_short_errors_supported = yes; then
10126	        GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
10127        else
10128	        GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
10129        fi
10130	# Put the nasty error message in config.log where it belongs
10131	echo "$GULM_PKG_ERRORS" >&5
10132
10133	{ $as_echo "$as_me:$LINENO: result: no" >&5
10134$as_echo "no" >&6; }
10135                NOTFOUND=0
10136
10137for ac_header in libgulm.h
10138do
10139as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10141  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10142$as_echo_n "checking for $ac_header... " >&6; }
10143if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10144  $as_echo_n "(cached) " >&6
10145fi
10146ac_res=`eval 'as_val=${'$as_ac_Header'}
10147		 $as_echo "$as_val"'`
10148	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10149$as_echo "$ac_res" >&6; }
10150else
10151  # Is the header compilable?
10152{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10153$as_echo_n "checking $ac_header usability... " >&6; }
10154cat >conftest.$ac_ext <<_ACEOF
10155/* confdefs.h.  */
10156_ACEOF
10157cat confdefs.h >>conftest.$ac_ext
10158cat >>conftest.$ac_ext <<_ACEOF
10159/* end confdefs.h.  */
10160$ac_includes_default
10161#include <$ac_header>
10162_ACEOF
10163rm -f conftest.$ac_objext
10164if { (ac_try="$ac_compile"
10165case "(($ac_try" in
10166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167  *) ac_try_echo=$ac_try;;
10168esac
10169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10170$as_echo "$ac_try_echo") >&5
10171  (eval "$ac_compile") 2>conftest.er1
10172  ac_status=$?
10173  grep -v '^ *+' conftest.er1 >conftest.err
10174  rm -f conftest.er1
10175  cat conftest.err >&5
10176  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177  (exit $ac_status); } && {
10178	 test -z "$ac_c_werror_flag" ||
10179	 test ! -s conftest.err
10180       } && test -s conftest.$ac_objext; then
10181  ac_header_compiler=yes
10182else
10183  $as_echo "$as_me: failed program was:" >&5
10184sed 's/^/| /' conftest.$ac_ext >&5
10185
10186	ac_header_compiler=no
10187fi
10188
10189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10190{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10191$as_echo "$ac_header_compiler" >&6; }
10192
10193# Is the header present?
10194{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10195$as_echo_n "checking $ac_header presence... " >&6; }
10196cat >conftest.$ac_ext <<_ACEOF
10197/* confdefs.h.  */
10198_ACEOF
10199cat confdefs.h >>conftest.$ac_ext
10200cat >>conftest.$ac_ext <<_ACEOF
10201/* end confdefs.h.  */
10202#include <$ac_header>
10203_ACEOF
10204if { (ac_try="$ac_cpp conftest.$ac_ext"
10205case "(($ac_try" in
10206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207  *) ac_try_echo=$ac_try;;
10208esac
10209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10210$as_echo "$ac_try_echo") >&5
10211  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10212  ac_status=$?
10213  grep -v '^ *+' conftest.er1 >conftest.err
10214  rm -f conftest.er1
10215  cat conftest.err >&5
10216  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217  (exit $ac_status); } >/dev/null && {
10218	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10219	 test ! -s conftest.err
10220       }; then
10221  ac_header_preproc=yes
10222else
10223  $as_echo "$as_me: failed program was:" >&5
10224sed 's/^/| /' conftest.$ac_ext >&5
10225
10226  ac_header_preproc=no
10227fi
10228
10229rm -f conftest.err conftest.$ac_ext
10230{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10231$as_echo "$ac_header_preproc" >&6; }
10232
10233# So?  What about this header?
10234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10235  yes:no: )
10236    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10237$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10238    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10239$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10240    ac_header_preproc=yes
10241    ;;
10242  no:yes:* )
10243    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10244$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10245    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10246$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10247    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10248$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10249    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10250$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10251    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10252$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10253    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10254$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10255
10256    ;;
10257esac
10258{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10259$as_echo_n "checking for $ac_header... " >&6; }
10260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10261  $as_echo_n "(cached) " >&6
10262else
10263  eval "$as_ac_Header=\$ac_header_preproc"
10264fi
10265ac_res=`eval 'as_val=${'$as_ac_Header'}
10266		 $as_echo "$as_val"'`
10267	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10268$as_echo "$ac_res" >&6; }
10269
10270fi
10271as_val=`eval 'as_val=${'$as_ac_Header'}
10272		 $as_echo "$as_val"'`
10273   if test "x$as_val" = x""yes; then
10274  cat >>confdefs.h <<_ACEOF
10275#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10276_ACEOF
10277
10278else
10279  $bailout
10280fi
10281
10282done
10283
10284		check_lib_no_libs gulm lg_core_login
10285		if test $NOTFOUND = 0; then
10286			{ $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10287$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10288			GULM_LIBS="-lgulm"
10289			HAVE_GULM=yes
10290		fi
10291elif test $pkg_failed = untried; then
10292	NOTFOUND=0
10293
10294for ac_header in libgulm.h
10295do
10296as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10297if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10298  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10299$as_echo_n "checking for $ac_header... " >&6; }
10300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10301  $as_echo_n "(cached) " >&6
10302fi
10303ac_res=`eval 'as_val=${'$as_ac_Header'}
10304		 $as_echo "$as_val"'`
10305	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10306$as_echo "$ac_res" >&6; }
10307else
10308  # Is the header compilable?
10309{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10310$as_echo_n "checking $ac_header usability... " >&6; }
10311cat >conftest.$ac_ext <<_ACEOF
10312/* confdefs.h.  */
10313_ACEOF
10314cat confdefs.h >>conftest.$ac_ext
10315cat >>conftest.$ac_ext <<_ACEOF
10316/* end confdefs.h.  */
10317$ac_includes_default
10318#include <$ac_header>
10319_ACEOF
10320rm -f conftest.$ac_objext
10321if { (ac_try="$ac_compile"
10322case "(($ac_try" in
10323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324  *) ac_try_echo=$ac_try;;
10325esac
10326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10327$as_echo "$ac_try_echo") >&5
10328  (eval "$ac_compile") 2>conftest.er1
10329  ac_status=$?
10330  grep -v '^ *+' conftest.er1 >conftest.err
10331  rm -f conftest.er1
10332  cat conftest.err >&5
10333  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334  (exit $ac_status); } && {
10335	 test -z "$ac_c_werror_flag" ||
10336	 test ! -s conftest.err
10337       } && test -s conftest.$ac_objext; then
10338  ac_header_compiler=yes
10339else
10340  $as_echo "$as_me: failed program was:" >&5
10341sed 's/^/| /' conftest.$ac_ext >&5
10342
10343	ac_header_compiler=no
10344fi
10345
10346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10347{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10348$as_echo "$ac_header_compiler" >&6; }
10349
10350# Is the header present?
10351{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10352$as_echo_n "checking $ac_header presence... " >&6; }
10353cat >conftest.$ac_ext <<_ACEOF
10354/* confdefs.h.  */
10355_ACEOF
10356cat confdefs.h >>conftest.$ac_ext
10357cat >>conftest.$ac_ext <<_ACEOF
10358/* end confdefs.h.  */
10359#include <$ac_header>
10360_ACEOF
10361if { (ac_try="$ac_cpp conftest.$ac_ext"
10362case "(($ac_try" in
10363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364  *) ac_try_echo=$ac_try;;
10365esac
10366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10367$as_echo "$ac_try_echo") >&5
10368  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10369  ac_status=$?
10370  grep -v '^ *+' conftest.er1 >conftest.err
10371  rm -f conftest.er1
10372  cat conftest.err >&5
10373  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374  (exit $ac_status); } >/dev/null && {
10375	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10376	 test ! -s conftest.err
10377       }; then
10378  ac_header_preproc=yes
10379else
10380  $as_echo "$as_me: failed program was:" >&5
10381sed 's/^/| /' conftest.$ac_ext >&5
10382
10383  ac_header_preproc=no
10384fi
10385
10386rm -f conftest.err conftest.$ac_ext
10387{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10388$as_echo "$ac_header_preproc" >&6; }
10389
10390# So?  What about this header?
10391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10392  yes:no: )
10393    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10394$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10395    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10396$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10397    ac_header_preproc=yes
10398    ;;
10399  no:yes:* )
10400    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10401$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10402    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10403$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10404    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10405$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10406    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10407$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10408    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10409$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10410    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10411$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10412
10413    ;;
10414esac
10415{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10416$as_echo_n "checking for $ac_header... " >&6; }
10417if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10418  $as_echo_n "(cached) " >&6
10419else
10420  eval "$as_ac_Header=\$ac_header_preproc"
10421fi
10422ac_res=`eval 'as_val=${'$as_ac_Header'}
10423		 $as_echo "$as_val"'`
10424	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10425$as_echo "$ac_res" >&6; }
10426
10427fi
10428as_val=`eval 'as_val=${'$as_ac_Header'}
10429		 $as_echo "$as_val"'`
10430   if test "x$as_val" = x""yes; then
10431  cat >>confdefs.h <<_ACEOF
10432#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10433_ACEOF
10434
10435else
10436  $bailout
10437fi
10438
10439done
10440
10441		check_lib_no_libs gulm lg_core_login
10442		if test $NOTFOUND = 0; then
10443			{ $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
10444$as_echo "no pkg for libgulm, using -lgulm" >&6; }
10445			GULM_LIBS="-lgulm"
10446			HAVE_GULM=yes
10447		fi
10448else
10449	GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
10450	GULM_LIBS=$pkg_cv_GULM_LIBS
10451        { $as_echo "$as_me:$LINENO: result: yes" >&5
10452$as_echo "yes" >&6; }
10453	HAVE_GULM=yes
10454fi
10455fi
10456
10457if test x$BUILDCMAN = xyes; then
10458
10459pkg_failed=no
10460{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
10461$as_echo_n "checking for CMAN... " >&6; }
10462
10463if test -n "$CMAN_CFLAGS"; then
10464    pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
10465 elif test -n "$PKG_CONFIG"; then
10466    if test -n "$PKG_CONFIG" && \
10467    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10468  ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10469  ac_status=$?
10470  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471  (exit $ac_status); }; then
10472  pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
10473else
10474  pkg_failed=yes
10475fi
10476 else
10477    pkg_failed=untried
10478fi
10479if test -n "$CMAN_LIBS"; then
10480    pkg_cv_CMAN_LIBS="$CMAN_LIBS"
10481 elif test -n "$PKG_CONFIG"; then
10482    if test -n "$PKG_CONFIG" && \
10483    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
10484  ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
10485  ac_status=$?
10486  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487  (exit $ac_status); }; then
10488  pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
10489else
10490  pkg_failed=yes
10491fi
10492 else
10493    pkg_failed=untried
10494fi
10495
10496
10497
10498if test $pkg_failed = yes; then
10499
10500if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10501        _pkg_short_errors_supported=yes
10502else
10503        _pkg_short_errors_supported=no
10504fi
10505        if test $_pkg_short_errors_supported = yes; then
10506	        CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
10507        else
10508	        CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
10509        fi
10510	# Put the nasty error message in config.log where it belongs
10511	echo "$CMAN_PKG_ERRORS" >&5
10512
10513	{ $as_echo "$as_me:$LINENO: result: no" >&5
10514$as_echo "no" >&6; }
10515                NOTFOUND=0
10516
10517for ac_header in libcman.h
10518do
10519as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10521  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10522$as_echo_n "checking for $ac_header... " >&6; }
10523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10524  $as_echo_n "(cached) " >&6
10525fi
10526ac_res=`eval 'as_val=${'$as_ac_Header'}
10527		 $as_echo "$as_val"'`
10528	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10529$as_echo "$ac_res" >&6; }
10530else
10531  # Is the header compilable?
10532{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10533$as_echo_n "checking $ac_header usability... " >&6; }
10534cat >conftest.$ac_ext <<_ACEOF
10535/* confdefs.h.  */
10536_ACEOF
10537cat confdefs.h >>conftest.$ac_ext
10538cat >>conftest.$ac_ext <<_ACEOF
10539/* end confdefs.h.  */
10540$ac_includes_default
10541#include <$ac_header>
10542_ACEOF
10543rm -f conftest.$ac_objext
10544if { (ac_try="$ac_compile"
10545case "(($ac_try" in
10546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547  *) ac_try_echo=$ac_try;;
10548esac
10549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10550$as_echo "$ac_try_echo") >&5
10551  (eval "$ac_compile") 2>conftest.er1
10552  ac_status=$?
10553  grep -v '^ *+' conftest.er1 >conftest.err
10554  rm -f conftest.er1
10555  cat conftest.err >&5
10556  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557  (exit $ac_status); } && {
10558	 test -z "$ac_c_werror_flag" ||
10559	 test ! -s conftest.err
10560       } && test -s conftest.$ac_objext; then
10561  ac_header_compiler=yes
10562else
10563  $as_echo "$as_me: failed program was:" >&5
10564sed 's/^/| /' conftest.$ac_ext >&5
10565
10566	ac_header_compiler=no
10567fi
10568
10569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10570{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10571$as_echo "$ac_header_compiler" >&6; }
10572
10573# Is the header present?
10574{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10575$as_echo_n "checking $ac_header presence... " >&6; }
10576cat >conftest.$ac_ext <<_ACEOF
10577/* confdefs.h.  */
10578_ACEOF
10579cat confdefs.h >>conftest.$ac_ext
10580cat >>conftest.$ac_ext <<_ACEOF
10581/* end confdefs.h.  */
10582#include <$ac_header>
10583_ACEOF
10584if { (ac_try="$ac_cpp conftest.$ac_ext"
10585case "(($ac_try" in
10586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587  *) ac_try_echo=$ac_try;;
10588esac
10589eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10590$as_echo "$ac_try_echo") >&5
10591  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10592  ac_status=$?
10593  grep -v '^ *+' conftest.er1 >conftest.err
10594  rm -f conftest.er1
10595  cat conftest.err >&5
10596  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597  (exit $ac_status); } >/dev/null && {
10598	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10599	 test ! -s conftest.err
10600       }; then
10601  ac_header_preproc=yes
10602else
10603  $as_echo "$as_me: failed program was:" >&5
10604sed 's/^/| /' conftest.$ac_ext >&5
10605
10606  ac_header_preproc=no
10607fi
10608
10609rm -f conftest.err conftest.$ac_ext
10610{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10611$as_echo "$ac_header_preproc" >&6; }
10612
10613# So?  What about this header?
10614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10615  yes:no: )
10616    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10617$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10618    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10619$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10620    ac_header_preproc=yes
10621    ;;
10622  no:yes:* )
10623    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10624$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10625    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10626$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10627    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10628$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10629    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10630$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10631    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10632$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10633    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10634$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10635
10636    ;;
10637esac
10638{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10639$as_echo_n "checking for $ac_header... " >&6; }
10640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10641  $as_echo_n "(cached) " >&6
10642else
10643  eval "$as_ac_Header=\$ac_header_preproc"
10644fi
10645ac_res=`eval 'as_val=${'$as_ac_Header'}
10646		 $as_echo "$as_val"'`
10647	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10648$as_echo "$ac_res" >&6; }
10649
10650fi
10651as_val=`eval 'as_val=${'$as_ac_Header'}
10652		 $as_echo "$as_val"'`
10653   if test "x$as_val" = x""yes; then
10654  cat >>confdefs.h <<_ACEOF
10655#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10656_ACEOF
10657
10658else
10659  $bailout
10660fi
10661
10662done
10663
10664		check_lib_no_libs cman cman_init
10665		if test $NOTFOUND = 0; then
10666			{ $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10667$as_echo "no pkg for libcman, using -lcman" >&6; }
10668			CMAN_LIBS="-lcman"
10669			HAVE_CMAN=yes
10670		fi
10671elif test $pkg_failed = untried; then
10672	NOTFOUND=0
10673
10674for ac_header in libcman.h
10675do
10676as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10678  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10679$as_echo_n "checking for $ac_header... " >&6; }
10680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10681  $as_echo_n "(cached) " >&6
10682fi
10683ac_res=`eval 'as_val=${'$as_ac_Header'}
10684		 $as_echo "$as_val"'`
10685	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10686$as_echo "$ac_res" >&6; }
10687else
10688  # Is the header compilable?
10689{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10690$as_echo_n "checking $ac_header usability... " >&6; }
10691cat >conftest.$ac_ext <<_ACEOF
10692/* confdefs.h.  */
10693_ACEOF
10694cat confdefs.h >>conftest.$ac_ext
10695cat >>conftest.$ac_ext <<_ACEOF
10696/* end confdefs.h.  */
10697$ac_includes_default
10698#include <$ac_header>
10699_ACEOF
10700rm -f conftest.$ac_objext
10701if { (ac_try="$ac_compile"
10702case "(($ac_try" in
10703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704  *) ac_try_echo=$ac_try;;
10705esac
10706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10707$as_echo "$ac_try_echo") >&5
10708  (eval "$ac_compile") 2>conftest.er1
10709  ac_status=$?
10710  grep -v '^ *+' conftest.er1 >conftest.err
10711  rm -f conftest.er1
10712  cat conftest.err >&5
10713  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714  (exit $ac_status); } && {
10715	 test -z "$ac_c_werror_flag" ||
10716	 test ! -s conftest.err
10717       } && test -s conftest.$ac_objext; then
10718  ac_header_compiler=yes
10719else
10720  $as_echo "$as_me: failed program was:" >&5
10721sed 's/^/| /' conftest.$ac_ext >&5
10722
10723	ac_header_compiler=no
10724fi
10725
10726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10727{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10728$as_echo "$ac_header_compiler" >&6; }
10729
10730# Is the header present?
10731{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10732$as_echo_n "checking $ac_header presence... " >&6; }
10733cat >conftest.$ac_ext <<_ACEOF
10734/* confdefs.h.  */
10735_ACEOF
10736cat confdefs.h >>conftest.$ac_ext
10737cat >>conftest.$ac_ext <<_ACEOF
10738/* end confdefs.h.  */
10739#include <$ac_header>
10740_ACEOF
10741if { (ac_try="$ac_cpp conftest.$ac_ext"
10742case "(($ac_try" in
10743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744  *) ac_try_echo=$ac_try;;
10745esac
10746eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10747$as_echo "$ac_try_echo") >&5
10748  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10749  ac_status=$?
10750  grep -v '^ *+' conftest.er1 >conftest.err
10751  rm -f conftest.er1
10752  cat conftest.err >&5
10753  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754  (exit $ac_status); } >/dev/null && {
10755	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10756	 test ! -s conftest.err
10757       }; then
10758  ac_header_preproc=yes
10759else
10760  $as_echo "$as_me: failed program was:" >&5
10761sed 's/^/| /' conftest.$ac_ext >&5
10762
10763  ac_header_preproc=no
10764fi
10765
10766rm -f conftest.err conftest.$ac_ext
10767{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10768$as_echo "$ac_header_preproc" >&6; }
10769
10770# So?  What about this header?
10771case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10772  yes:no: )
10773    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10774$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10775    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10776$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10777    ac_header_preproc=yes
10778    ;;
10779  no:yes:* )
10780    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10781$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10782    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10783$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10784    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10785$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10786    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10787$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10788    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10789$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10790    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10791$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10792
10793    ;;
10794esac
10795{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10796$as_echo_n "checking for $ac_header... " >&6; }
10797if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10798  $as_echo_n "(cached) " >&6
10799else
10800  eval "$as_ac_Header=\$ac_header_preproc"
10801fi
10802ac_res=`eval 'as_val=${'$as_ac_Header'}
10803		 $as_echo "$as_val"'`
10804	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10805$as_echo "$ac_res" >&6; }
10806
10807fi
10808as_val=`eval 'as_val=${'$as_ac_Header'}
10809		 $as_echo "$as_val"'`
10810   if test "x$as_val" = x""yes; then
10811  cat >>confdefs.h <<_ACEOF
10812#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10813_ACEOF
10814
10815else
10816  $bailout
10817fi
10818
10819done
10820
10821		check_lib_no_libs cman cman_init
10822		if test $NOTFOUND = 0; then
10823			{ $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
10824$as_echo "no pkg for libcman, using -lcman" >&6; }
10825			CMAN_LIBS="-lcman"
10826			HAVE_CMAN=yes
10827		fi
10828else
10829	CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
10830	CMAN_LIBS=$pkg_cv_CMAN_LIBS
10831        { $as_echo "$as_me:$LINENO: result: yes" >&5
10832$as_echo "yes" >&6; }
10833	HAVE_CMAN=yes
10834fi
10835	CHECKCONFDB=yes
10836	CHECKDLM=yes
10837fi
10838
10839if test x$BUILDCOROSYNC = xyes || \
10840   test x$BUILDOPENAIS = xyes; then
10841
10842pkg_failed=no
10843{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
10844$as_echo_n "checking for COROSYNC... " >&6; }
10845
10846if test -n "$COROSYNC_CFLAGS"; then
10847    pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
10848 elif test -n "$PKG_CONFIG"; then
10849    if test -n "$PKG_CONFIG" && \
10850    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10851  ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10852  ac_status=$?
10853  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854  (exit $ac_status); }; then
10855  pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
10856else
10857  pkg_failed=yes
10858fi
10859 else
10860    pkg_failed=untried
10861fi
10862if test -n "$COROSYNC_LIBS"; then
10863    pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
10864 elif test -n "$PKG_CONFIG"; then
10865    if test -n "$PKG_CONFIG" && \
10866    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
10867  ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
10868  ac_status=$?
10869  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870  (exit $ac_status); }; then
10871  pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
10872else
10873  pkg_failed=yes
10874fi
10875 else
10876    pkg_failed=untried
10877fi
10878
10879
10880
10881if test $pkg_failed = yes; then
10882
10883if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10884        _pkg_short_errors_supported=yes
10885else
10886        _pkg_short_errors_supported=no
10887fi
10888        if test $_pkg_short_errors_supported = yes; then
10889	        COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
10890        else
10891	        COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
10892        fi
10893	# Put the nasty error message in config.log where it belongs
10894	echo "$COROSYNC_PKG_ERRORS" >&5
10895
10896	{ $as_echo "$as_me:$LINENO: result: no" >&5
10897$as_echo "no" >&6; }
10898                $bailout
10899elif test $pkg_failed = untried; then
10900	$bailout
10901else
10902	COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
10903	COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
10904        { $as_echo "$as_me:$LINENO: result: yes" >&5
10905$as_echo "yes" >&6; }
10906	HAVE_COROSYNC=yes
10907fi
10908	CHECKCONFDB=yes
10909fi
10910
10911if test x$BUILDCOROSYNC = xyes; then
10912
10913pkg_failed=no
10914{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
10915$as_echo_n "checking for QUORUM... " >&6; }
10916
10917if test -n "$QUORUM_CFLAGS"; then
10918    pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
10919 elif test -n "$PKG_CONFIG"; then
10920    if test -n "$PKG_CONFIG" && \
10921    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10922  ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10923  ac_status=$?
10924  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925  (exit $ac_status); }; then
10926  pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
10927else
10928  pkg_failed=yes
10929fi
10930 else
10931    pkg_failed=untried
10932fi
10933if test -n "$QUORUM_LIBS"; then
10934    pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
10935 elif test -n "$PKG_CONFIG"; then
10936    if test -n "$PKG_CONFIG" && \
10937    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
10938  ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
10939  ac_status=$?
10940  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941  (exit $ac_status); }; then
10942  pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
10943else
10944  pkg_failed=yes
10945fi
10946 else
10947    pkg_failed=untried
10948fi
10949
10950
10951
10952if test $pkg_failed = yes; then
10953
10954if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10955        _pkg_short_errors_supported=yes
10956else
10957        _pkg_short_errors_supported=no
10958fi
10959        if test $_pkg_short_errors_supported = yes; then
10960	        QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
10961        else
10962	        QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
10963        fi
10964	# Put the nasty error message in config.log where it belongs
10965	echo "$QUORUM_PKG_ERRORS" >&5
10966
10967	{ $as_echo "$as_me:$LINENO: result: no" >&5
10968$as_echo "no" >&6; }
10969                $bailout
10970elif test $pkg_failed = untried; then
10971	$bailout
10972else
10973	QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
10974	QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
10975        { $as_echo "$as_me:$LINENO: result: yes" >&5
10976$as_echo "yes" >&6; }
10977	HAVE_QUORUM=yes
10978fi
10979	CHECKCPG=yes
10980	CHECKDLM=yes
10981fi
10982
10983if test x$BUILDOPENAIS = xyes; then
10984
10985pkg_failed=no
10986{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
10987$as_echo_n "checking for SALCK... " >&6; }
10988
10989if test -n "$SALCK_CFLAGS"; then
10990    pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
10991 elif test -n "$PKG_CONFIG"; then
10992    if test -n "$PKG_CONFIG" && \
10993    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
10994  ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
10995  ac_status=$?
10996  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997  (exit $ac_status); }; then
10998  pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
10999else
11000  pkg_failed=yes
11001fi
11002 else
11003    pkg_failed=untried
11004fi
11005if test -n "$SALCK_LIBS"; then
11006    pkg_cv_SALCK_LIBS="$SALCK_LIBS"
11007 elif test -n "$PKG_CONFIG"; then
11008    if test -n "$PKG_CONFIG" && \
11009    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
11010  ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
11011  ac_status=$?
11012  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013  (exit $ac_status); }; then
11014  pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
11015else
11016  pkg_failed=yes
11017fi
11018 else
11019    pkg_failed=untried
11020fi
11021
11022
11023
11024if test $pkg_failed = yes; then
11025
11026if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11027        _pkg_short_errors_supported=yes
11028else
11029        _pkg_short_errors_supported=no
11030fi
11031        if test $_pkg_short_errors_supported = yes; then
11032	        SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
11033        else
11034	        SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
11035        fi
11036	# Put the nasty error message in config.log where it belongs
11037	echo "$SALCK_PKG_ERRORS" >&5
11038
11039	{ $as_echo "$as_me:$LINENO: result: no" >&5
11040$as_echo "no" >&6; }
11041                $bailout
11042elif test $pkg_failed = untried; then
11043	$bailout
11044else
11045	SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
11046	SALCK_LIBS=$pkg_cv_SALCK_LIBS
11047        { $as_echo "$as_me:$LINENO: result: yes" >&5
11048$as_echo "yes" >&6; }
11049	HAVE_SALCK=yes
11050fi
11051	CHECKCPG=yes
11052fi
11053
11054
11055
11056if test x$CHECKCONFDB = xyes; then
11057
11058pkg_failed=no
11059{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
11060$as_echo_n "checking for CONFDB... " >&6; }
11061
11062if test -n "$CONFDB_CFLAGS"; then
11063    pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
11064 elif test -n "$PKG_CONFIG"; then
11065    if test -n "$PKG_CONFIG" && \
11066    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11067  ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11068  ac_status=$?
11069  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070  (exit $ac_status); }; then
11071  pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
11072else
11073  pkg_failed=yes
11074fi
11075 else
11076    pkg_failed=untried
11077fi
11078if test -n "$CONFDB_LIBS"; then
11079    pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
11080 elif test -n "$PKG_CONFIG"; then
11081    if test -n "$PKG_CONFIG" && \
11082    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
11083  ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
11084  ac_status=$?
11085  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086  (exit $ac_status); }; then
11087  pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
11088else
11089  pkg_failed=yes
11090fi
11091 else
11092    pkg_failed=untried
11093fi
11094
11095
11096
11097if test $pkg_failed = yes; then
11098
11099if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11100        _pkg_short_errors_supported=yes
11101else
11102        _pkg_short_errors_supported=no
11103fi
11104        if test $_pkg_short_errors_supported = yes; then
11105	        CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
11106        else
11107	        CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
11108        fi
11109	# Put the nasty error message in config.log where it belongs
11110	echo "$CONFDB_PKG_ERRORS" >&5
11111
11112	{ $as_echo "$as_me:$LINENO: result: no" >&5
11113$as_echo "no" >&6; }
11114                HAVE_CONFDB=no
11115elif test $pkg_failed = untried; then
11116	HAVE_CONFDB=no
11117else
11118	CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
11119	CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
11120        { $as_echo "$as_me:$LINENO: result: yes" >&5
11121$as_echo "yes" >&6; }
11122	HAVE_CONFDB=yes
11123fi
11124
11125
11126for ac_header in corosync/confdb.h
11127do
11128as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11130  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11131$as_echo_n "checking for $ac_header... " >&6; }
11132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11133  $as_echo_n "(cached) " >&6
11134fi
11135ac_res=`eval 'as_val=${'$as_ac_Header'}
11136		 $as_echo "$as_val"'`
11137	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11138$as_echo "$ac_res" >&6; }
11139else
11140  # Is the header compilable?
11141{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11142$as_echo_n "checking $ac_header usability... " >&6; }
11143cat >conftest.$ac_ext <<_ACEOF
11144/* confdefs.h.  */
11145_ACEOF
11146cat confdefs.h >>conftest.$ac_ext
11147cat >>conftest.$ac_ext <<_ACEOF
11148/* end confdefs.h.  */
11149$ac_includes_default
11150#include <$ac_header>
11151_ACEOF
11152rm -f conftest.$ac_objext
11153if { (ac_try="$ac_compile"
11154case "(($ac_try" in
11155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156  *) ac_try_echo=$ac_try;;
11157esac
11158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11159$as_echo "$ac_try_echo") >&5
11160  (eval "$ac_compile") 2>conftest.er1
11161  ac_status=$?
11162  grep -v '^ *+' conftest.er1 >conftest.err
11163  rm -f conftest.er1
11164  cat conftest.err >&5
11165  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166  (exit $ac_status); } && {
11167	 test -z "$ac_c_werror_flag" ||
11168	 test ! -s conftest.err
11169       } && test -s conftest.$ac_objext; then
11170  ac_header_compiler=yes
11171else
11172  $as_echo "$as_me: failed program was:" >&5
11173sed 's/^/| /' conftest.$ac_ext >&5
11174
11175	ac_header_compiler=no
11176fi
11177
11178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11179{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11180$as_echo "$ac_header_compiler" >&6; }
11181
11182# Is the header present?
11183{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11184$as_echo_n "checking $ac_header presence... " >&6; }
11185cat >conftest.$ac_ext <<_ACEOF
11186/* confdefs.h.  */
11187_ACEOF
11188cat confdefs.h >>conftest.$ac_ext
11189cat >>conftest.$ac_ext <<_ACEOF
11190/* end confdefs.h.  */
11191#include <$ac_header>
11192_ACEOF
11193if { (ac_try="$ac_cpp conftest.$ac_ext"
11194case "(($ac_try" in
11195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196  *) ac_try_echo=$ac_try;;
11197esac
11198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11199$as_echo "$ac_try_echo") >&5
11200  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11201  ac_status=$?
11202  grep -v '^ *+' conftest.er1 >conftest.err
11203  rm -f conftest.er1
11204  cat conftest.err >&5
11205  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206  (exit $ac_status); } >/dev/null && {
11207	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11208	 test ! -s conftest.err
11209       }; then
11210  ac_header_preproc=yes
11211else
11212  $as_echo "$as_me: failed program was:" >&5
11213sed 's/^/| /' conftest.$ac_ext >&5
11214
11215  ac_header_preproc=no
11216fi
11217
11218rm -f conftest.err conftest.$ac_ext
11219{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11220$as_echo "$ac_header_preproc" >&6; }
11221
11222# So?  What about this header?
11223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11224  yes:no: )
11225    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11226$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11227    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11228$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11229    ac_header_preproc=yes
11230    ;;
11231  no:yes:* )
11232    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11233$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11234    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11235$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11236    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11237$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11238    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11239$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11240    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11241$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11242    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11243$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11244
11245    ;;
11246esac
11247{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11248$as_echo_n "checking for $ac_header... " >&6; }
11249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11250  $as_echo_n "(cached) " >&6
11251else
11252  eval "$as_ac_Header=\$ac_header_preproc"
11253fi
11254ac_res=`eval 'as_val=${'$as_ac_Header'}
11255		 $as_echo "$as_val"'`
11256	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11257$as_echo "$ac_res" >&6; }
11258
11259fi
11260as_val=`eval 'as_val=${'$as_ac_Header'}
11261		 $as_echo "$as_val"'`
11262   if test "x$as_val" = x""yes; then
11263  cat >>confdefs.h <<_ACEOF
11264#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11265_ACEOF
11266 HAVE_CONFDB_H=yes
11267else
11268  HAVE_CONFDB_H=no
11269fi
11270
11271done
11272
11273
11274	if test x$HAVE_CONFDB != xyes && \
11275	   test x$HAVE_CONFDB_H = xyes; then
11276		check_lib_no_libs confdb confdb_initialize
11277		{ $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
11278$as_echo "no pkg for confdb, using -lconfdb" >&6; }
11279		CONFDB_LIBS="-lconfdb"
11280		HAVE_CONFDB=yes
11281	fi
11282
11283	if test x$BUILDCOROSYNC = xyes && \
11284	   test x$HAVE_CONFDB != xyes &&
11285	   test x$CLVMD != xall; then
11286		{ { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
11287$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
11288   { (exit 1); exit 1; }; }
11289	fi
11290fi
11291
11292if test x$CHECKCPG = xyes; then
11293
11294pkg_failed=no
11295{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11296$as_echo_n "checking for CPG... " >&6; }
11297
11298if test -n "$CPG_CFLAGS"; then
11299    pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11300 elif test -n "$PKG_CONFIG"; then
11301    if test -n "$PKG_CONFIG" && \
11302    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11303  ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11304  ac_status=$?
11305  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306  (exit $ac_status); }; then
11307  pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11308else
11309  pkg_failed=yes
11310fi
11311 else
11312    pkg_failed=untried
11313fi
11314if test -n "$CPG_LIBS"; then
11315    pkg_cv_CPG_LIBS="$CPG_LIBS"
11316 elif test -n "$PKG_CONFIG"; then
11317    if test -n "$PKG_CONFIG" && \
11318    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11319  ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11320  ac_status=$?
11321  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322  (exit $ac_status); }; then
11323  pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11324else
11325  pkg_failed=yes
11326fi
11327 else
11328    pkg_failed=untried
11329fi
11330
11331
11332
11333if test $pkg_failed = yes; then
11334
11335if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11336        _pkg_short_errors_supported=yes
11337else
11338        _pkg_short_errors_supported=no
11339fi
11340        if test $_pkg_short_errors_supported = yes; then
11341	        CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11342        else
11343	        CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11344        fi
11345	# Put the nasty error message in config.log where it belongs
11346	echo "$CPG_PKG_ERRORS" >&5
11347
11348	{ $as_echo "$as_me:$LINENO: result: no" >&5
11349$as_echo "no" >&6; }
11350                $bailout
11351elif test $pkg_failed = untried; then
11352	$bailout
11353else
11354	CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11355	CPG_LIBS=$pkg_cv_CPG_LIBS
11356        { $as_echo "$as_me:$LINENO: result: yes" >&5
11357$as_echo "yes" >&6; }
11358	HAVE_CPG=yes
11359fi
11360fi
11361
11362if test x$CHECKDLM = xyes; then
11363
11364pkg_failed=no
11365{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
11366$as_echo_n "checking for DLM... " >&6; }
11367
11368if test -n "$DLM_CFLAGS"; then
11369    pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
11370 elif test -n "$PKG_CONFIG"; then
11371    if test -n "$PKG_CONFIG" && \
11372    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11373  ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11374  ac_status=$?
11375  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376  (exit $ac_status); }; then
11377  pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
11378else
11379  pkg_failed=yes
11380fi
11381 else
11382    pkg_failed=untried
11383fi
11384if test -n "$DLM_LIBS"; then
11385    pkg_cv_DLM_LIBS="$DLM_LIBS"
11386 elif test -n "$PKG_CONFIG"; then
11387    if test -n "$PKG_CONFIG" && \
11388    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
11389  ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
11390  ac_status=$?
11391  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392  (exit $ac_status); }; then
11393  pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
11394else
11395  pkg_failed=yes
11396fi
11397 else
11398    pkg_failed=untried
11399fi
11400
11401
11402
11403if test $pkg_failed = yes; then
11404
11405if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11406        _pkg_short_errors_supported=yes
11407else
11408        _pkg_short_errors_supported=no
11409fi
11410        if test $_pkg_short_errors_supported = yes; then
11411	        DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
11412        else
11413	        DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
11414        fi
11415	# Put the nasty error message in config.log where it belongs
11416	echo "$DLM_PKG_ERRORS" >&5
11417
11418	{ $as_echo "$as_me:$LINENO: result: no" >&5
11419$as_echo "no" >&6; }
11420                NOTFOUND=0
11421
11422for ac_header in libdlm.h
11423do
11424as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11425if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11426  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11427$as_echo_n "checking for $ac_header... " >&6; }
11428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429  $as_echo_n "(cached) " >&6
11430fi
11431ac_res=`eval 'as_val=${'$as_ac_Header'}
11432		 $as_echo "$as_val"'`
11433	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11434$as_echo "$ac_res" >&6; }
11435else
11436  # Is the header compilable?
11437{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11438$as_echo_n "checking $ac_header usability... " >&6; }
11439cat >conftest.$ac_ext <<_ACEOF
11440/* confdefs.h.  */
11441_ACEOF
11442cat confdefs.h >>conftest.$ac_ext
11443cat >>conftest.$ac_ext <<_ACEOF
11444/* end confdefs.h.  */
11445$ac_includes_default
11446#include <$ac_header>
11447_ACEOF
11448rm -f conftest.$ac_objext
11449if { (ac_try="$ac_compile"
11450case "(($ac_try" in
11451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452  *) ac_try_echo=$ac_try;;
11453esac
11454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11455$as_echo "$ac_try_echo") >&5
11456  (eval "$ac_compile") 2>conftest.er1
11457  ac_status=$?
11458  grep -v '^ *+' conftest.er1 >conftest.err
11459  rm -f conftest.er1
11460  cat conftest.err >&5
11461  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462  (exit $ac_status); } && {
11463	 test -z "$ac_c_werror_flag" ||
11464	 test ! -s conftest.err
11465       } && test -s conftest.$ac_objext; then
11466  ac_header_compiler=yes
11467else
11468  $as_echo "$as_me: failed program was:" >&5
11469sed 's/^/| /' conftest.$ac_ext >&5
11470
11471	ac_header_compiler=no
11472fi
11473
11474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11475{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11476$as_echo "$ac_header_compiler" >&6; }
11477
11478# Is the header present?
11479{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11480$as_echo_n "checking $ac_header presence... " >&6; }
11481cat >conftest.$ac_ext <<_ACEOF
11482/* confdefs.h.  */
11483_ACEOF
11484cat confdefs.h >>conftest.$ac_ext
11485cat >>conftest.$ac_ext <<_ACEOF
11486/* end confdefs.h.  */
11487#include <$ac_header>
11488_ACEOF
11489if { (ac_try="$ac_cpp conftest.$ac_ext"
11490case "(($ac_try" in
11491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492  *) ac_try_echo=$ac_try;;
11493esac
11494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11495$as_echo "$ac_try_echo") >&5
11496  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11497  ac_status=$?
11498  grep -v '^ *+' conftest.er1 >conftest.err
11499  rm -f conftest.er1
11500  cat conftest.err >&5
11501  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502  (exit $ac_status); } >/dev/null && {
11503	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11504	 test ! -s conftest.err
11505       }; then
11506  ac_header_preproc=yes
11507else
11508  $as_echo "$as_me: failed program was:" >&5
11509sed 's/^/| /' conftest.$ac_ext >&5
11510
11511  ac_header_preproc=no
11512fi
11513
11514rm -f conftest.err conftest.$ac_ext
11515{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11516$as_echo "$ac_header_preproc" >&6; }
11517
11518# So?  What about this header?
11519case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11520  yes:no: )
11521    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11522$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11523    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11524$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11525    ac_header_preproc=yes
11526    ;;
11527  no:yes:* )
11528    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11529$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11530    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11531$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11532    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11533$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11534    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11535$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11536    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11537$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11538    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11539$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11540
11541    ;;
11542esac
11543{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11544$as_echo_n "checking for $ac_header... " >&6; }
11545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11546  $as_echo_n "(cached) " >&6
11547else
11548  eval "$as_ac_Header=\$ac_header_preproc"
11549fi
11550ac_res=`eval 'as_val=${'$as_ac_Header'}
11551		 $as_echo "$as_val"'`
11552	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11553$as_echo "$ac_res" >&6; }
11554
11555fi
11556as_val=`eval 'as_val=${'$as_ac_Header'}
11557		 $as_echo "$as_val"'`
11558   if test "x$as_val" = x""yes; then
11559  cat >>confdefs.h <<_ACEOF
11560#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11561_ACEOF
11562
11563else
11564  $bailout
11565fi
11566
11567done
11568
11569		check_lib_no_libs dlm dlm_lock -lpthread
11570		if test $NOTFOUND = 0; then
11571			{ $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11572$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11573			DLM_LIBS="-ldlm -lpthread"
11574			HAVE_DLM=yes
11575		fi
11576elif test $pkg_failed = untried; then
11577	NOTFOUND=0
11578
11579for ac_header in libdlm.h
11580do
11581as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11583  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11584$as_echo_n "checking for $ac_header... " >&6; }
11585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11586  $as_echo_n "(cached) " >&6
11587fi
11588ac_res=`eval 'as_val=${'$as_ac_Header'}
11589		 $as_echo "$as_val"'`
11590	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11591$as_echo "$ac_res" >&6; }
11592else
11593  # Is the header compilable?
11594{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11595$as_echo_n "checking $ac_header usability... " >&6; }
11596cat >conftest.$ac_ext <<_ACEOF
11597/* confdefs.h.  */
11598_ACEOF
11599cat confdefs.h >>conftest.$ac_ext
11600cat >>conftest.$ac_ext <<_ACEOF
11601/* end confdefs.h.  */
11602$ac_includes_default
11603#include <$ac_header>
11604_ACEOF
11605rm -f conftest.$ac_objext
11606if { (ac_try="$ac_compile"
11607case "(($ac_try" in
11608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609  *) ac_try_echo=$ac_try;;
11610esac
11611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11612$as_echo "$ac_try_echo") >&5
11613  (eval "$ac_compile") 2>conftest.er1
11614  ac_status=$?
11615  grep -v '^ *+' conftest.er1 >conftest.err
11616  rm -f conftest.er1
11617  cat conftest.err >&5
11618  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619  (exit $ac_status); } && {
11620	 test -z "$ac_c_werror_flag" ||
11621	 test ! -s conftest.err
11622       } && test -s conftest.$ac_objext; then
11623  ac_header_compiler=yes
11624else
11625  $as_echo "$as_me: failed program was:" >&5
11626sed 's/^/| /' conftest.$ac_ext >&5
11627
11628	ac_header_compiler=no
11629fi
11630
11631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11633$as_echo "$ac_header_compiler" >&6; }
11634
11635# Is the header present?
11636{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11637$as_echo_n "checking $ac_header presence... " >&6; }
11638cat >conftest.$ac_ext <<_ACEOF
11639/* confdefs.h.  */
11640_ACEOF
11641cat confdefs.h >>conftest.$ac_ext
11642cat >>conftest.$ac_ext <<_ACEOF
11643/* end confdefs.h.  */
11644#include <$ac_header>
11645_ACEOF
11646if { (ac_try="$ac_cpp conftest.$ac_ext"
11647case "(($ac_try" in
11648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649  *) ac_try_echo=$ac_try;;
11650esac
11651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11652$as_echo "$ac_try_echo") >&5
11653  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11654  ac_status=$?
11655  grep -v '^ *+' conftest.er1 >conftest.err
11656  rm -f conftest.er1
11657  cat conftest.err >&5
11658  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659  (exit $ac_status); } >/dev/null && {
11660	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11661	 test ! -s conftest.err
11662       }; then
11663  ac_header_preproc=yes
11664else
11665  $as_echo "$as_me: failed program was:" >&5
11666sed 's/^/| /' conftest.$ac_ext >&5
11667
11668  ac_header_preproc=no
11669fi
11670
11671rm -f conftest.err conftest.$ac_ext
11672{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11673$as_echo "$ac_header_preproc" >&6; }
11674
11675# So?  What about this header?
11676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11677  yes:no: )
11678    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11679$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11680    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11681$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11682    ac_header_preproc=yes
11683    ;;
11684  no:yes:* )
11685    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11686$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11687    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11688$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11689    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11690$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11691    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11692$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11693    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11694$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11695    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11696$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11697
11698    ;;
11699esac
11700{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11701$as_echo_n "checking for $ac_header... " >&6; }
11702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11703  $as_echo_n "(cached) " >&6
11704else
11705  eval "$as_ac_Header=\$ac_header_preproc"
11706fi
11707ac_res=`eval 'as_val=${'$as_ac_Header'}
11708		 $as_echo "$as_val"'`
11709	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11710$as_echo "$ac_res" >&6; }
11711
11712fi
11713as_val=`eval 'as_val=${'$as_ac_Header'}
11714		 $as_echo "$as_val"'`
11715   if test "x$as_val" = x""yes; then
11716  cat >>confdefs.h <<_ACEOF
11717#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11718_ACEOF
11719
11720else
11721  $bailout
11722fi
11723
11724done
11725
11726		check_lib_no_libs dlm dlm_lock -lpthread
11727		if test $NOTFOUND = 0; then
11728			{ $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
11729$as_echo "no pkg for libdlm, using -ldlm" >&6; }
11730			DLM_LIBS="-ldlm -lpthread"
11731			HAVE_DLM=yes
11732		fi
11733else
11734	DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
11735	DLM_LIBS=$pkg_cv_DLM_LIBS
11736        { $as_echo "$as_me:$LINENO: result: yes" >&5
11737$as_echo "yes" >&6; }
11738	HAVE_DLM=yes
11739fi
11740fi
11741
11742if test x$CLVMD = xall; then
11743	CLVMD=none
11744	if test x$HAVE_CCS = xyes && \
11745	   test x$HAVE_GULM = xyes; then
11746		{ $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
11747$as_echo "Enabling clvmd gulm cluster manager" >&6; }
11748		CLVMD="$CLVMD,gulm"
11749	fi
11750	if test x$HAVE_CMAN = xyes && \
11751	   test x$HAVE_DLM = xyes; then
11752		{ $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
11753$as_echo "Enabling clvmd cman cluster manager" >&6; }
11754		CLVMD="$CLVMD,cman"
11755	fi
11756	if test x$HAVE_COROSYNC = xyes && \
11757	   test x$HAVE_QUORUM = xyes && \
11758	   test x$HAVE_CPG = xyes && \
11759	   test x$HAVE_DLM = xyes && \
11760	   test x$HAVE_CONFDB = xyes; then
11761		{ $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
11762$as_echo "Enabling clvmd corosync cluster manager" >&6; }
11763		CLVMD="$CLVMD,corosync"
11764	fi
11765	if test x$HAVE_COROSYNC = xyes && \
11766	   test x$HAVE_CPG = xyes && \
11767	   test x$HAVE_SALCK = xyes; then
11768		{ $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
11769$as_echo "Enabling clvmd openais cluster manager" >&6; }
11770		CLVMD="$CLVMD,openais"
11771	fi
11772	if test x$CLVMD = xnone; then
11773		{ $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
11774$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
11775	fi
11776fi
11777
11778################################################################################
11779{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
11780$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
11781# Check whether --enable-cmirrord was given.
11782if test "${enable_cmirrord+set}" = set; then
11783  enableval=$enable_cmirrord; CMIRRORD=$enableval
11784else
11785  CMIRRORD=no
11786fi
11787
11788{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
11789$as_echo "$CMIRRORD" >&6; }
11790
11791BUILD_CMIRRORD=$CMIRRORD
11792
11793################################################################################
11794
11795
11796if test "x$BUILD_CMIRRORD" = xyes; then
11797
11798# Check whether --with-cmirrord-pidfile was given.
11799if test "${with_cmirrord_pidfile+set}" = set; then
11800  withval=$with_cmirrord_pidfile;  cat >>confdefs.h <<_ACEOF
11801#define CMIRRORD_PIDFILE "$withval"
11802_ACEOF
11803
11804else
11805   cat >>confdefs.h <<_ACEOF
11806#define CMIRRORD_PIDFILE "/var/run/cmirrord.pid"
11807_ACEOF
11808
11809fi
11810
11811fi
11812
11813################################################################################
11814if [ "x$BUILD_CMIRRORD" = xyes ]; then
11815		if  test x$PKGCONFIG_INIT != x1; then
11816		pkg_config_init
11817	fi
11818
11819pkg_failed=no
11820{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
11821$as_echo_n "checking for SACKPT... " >&6; }
11822
11823if test -n "$SACKPT_CFLAGS"; then
11824    pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
11825 elif test -n "$PKG_CONFIG"; then
11826    if test -n "$PKG_CONFIG" && \
11827    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11828  ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11829  ac_status=$?
11830  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831  (exit $ac_status); }; then
11832  pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
11833else
11834  pkg_failed=yes
11835fi
11836 else
11837    pkg_failed=untried
11838fi
11839if test -n "$SACKPT_LIBS"; then
11840    pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
11841 elif test -n "$PKG_CONFIG"; then
11842    if test -n "$PKG_CONFIG" && \
11843    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
11844  ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
11845  ac_status=$?
11846  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847  (exit $ac_status); }; then
11848  pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
11849else
11850  pkg_failed=yes
11851fi
11852 else
11853    pkg_failed=untried
11854fi
11855
11856
11857
11858if test $pkg_failed = yes; then
11859
11860if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11861        _pkg_short_errors_supported=yes
11862else
11863        _pkg_short_errors_supported=no
11864fi
11865        if test $_pkg_short_errors_supported = yes; then
11866	        SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
11867        else
11868	        SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
11869        fi
11870	# Put the nasty error message in config.log where it belongs
11871	echo "$SACKPT_PKG_ERRORS" >&5
11872
11873	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
11874
11875$SACKPT_PKG_ERRORS
11876
11877Consider adjusting the PKG_CONFIG_PATH environment variable if you
11878installed software in a non-standard prefix.
11879
11880Alternatively, you may set the environment variables SACKPT_CFLAGS
11881and SACKPT_LIBS to avoid the need to call pkg-config.
11882See the pkg-config man page for more details.
11883" >&5
11884$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
11885
11886$SACKPT_PKG_ERRORS
11887
11888Consider adjusting the PKG_CONFIG_PATH environment variable if you
11889installed software in a non-standard prefix.
11890
11891Alternatively, you may set the environment variables SACKPT_CFLAGS
11892and SACKPT_LIBS to avoid the need to call pkg-config.
11893See the pkg-config man page for more details.
11894" >&2;}
11895   { (exit 1); exit 1; }; }
11896elif test $pkg_failed = untried; then
11897	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11899{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
11900is in your PATH or set the PKG_CONFIG environment variable to the full
11901path to pkg-config.
11902
11903Alternatively, you may set the environment variables SACKPT_CFLAGS
11904and SACKPT_LIBS to avoid the need to call pkg-config.
11905See the pkg-config man page for more details.
11906
11907To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11908See \`config.log' for more details." >&5
11909$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
11910is in your PATH or set the PKG_CONFIG environment variable to the full
11911path to pkg-config.
11912
11913Alternatively, you may set the environment variables SACKPT_CFLAGS
11914and SACKPT_LIBS to avoid the need to call pkg-config.
11915See the pkg-config man page for more details.
11916
11917To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11918See \`config.log' for more details." >&2;}
11919   { (exit 1); exit 1; }; }; }
11920else
11921	SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
11922	SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
11923        { $as_echo "$as_me:$LINENO: result: yes" >&5
11924$as_echo "yes" >&6; }
11925	:
11926fi
11927	if test x$HAVE_CPG != xyes; then
11928
11929pkg_failed=no
11930{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
11931$as_echo_n "checking for CPG... " >&6; }
11932
11933if test -n "$CPG_CFLAGS"; then
11934    pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
11935 elif test -n "$PKG_CONFIG"; then
11936    if test -n "$PKG_CONFIG" && \
11937    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11938  ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11939  ac_status=$?
11940  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941  (exit $ac_status); }; then
11942  pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
11943else
11944  pkg_failed=yes
11945fi
11946 else
11947    pkg_failed=untried
11948fi
11949if test -n "$CPG_LIBS"; then
11950    pkg_cv_CPG_LIBS="$CPG_LIBS"
11951 elif test -n "$PKG_CONFIG"; then
11952    if test -n "$PKG_CONFIG" && \
11953    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
11954  ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
11955  ac_status=$?
11956  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957  (exit $ac_status); }; then
11958  pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
11959else
11960  pkg_failed=yes
11961fi
11962 else
11963    pkg_failed=untried
11964fi
11965
11966
11967
11968if test $pkg_failed = yes; then
11969
11970if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11971        _pkg_short_errors_supported=yes
11972else
11973        _pkg_short_errors_supported=no
11974fi
11975        if test $_pkg_short_errors_supported = yes; then
11976	        CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
11977        else
11978	        CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
11979        fi
11980	# Put the nasty error message in config.log where it belongs
11981	echo "$CPG_PKG_ERRORS" >&5
11982
11983	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
11984
11985$CPG_PKG_ERRORS
11986
11987Consider adjusting the PKG_CONFIG_PATH environment variable if you
11988installed software in a non-standard prefix.
11989
11990Alternatively, you may set the environment variables CPG_CFLAGS
11991and CPG_LIBS to avoid the need to call pkg-config.
11992See the pkg-config man page for more details.
11993" >&5
11994$as_echo "$as_me: error: Package requirements (libcpg) were not met:
11995
11996$CPG_PKG_ERRORS
11997
11998Consider adjusting the PKG_CONFIG_PATH environment variable if you
11999installed software in a non-standard prefix.
12000
12001Alternatively, you may set the environment variables CPG_CFLAGS
12002and CPG_LIBS to avoid the need to call pkg-config.
12003See the pkg-config man page for more details.
12004" >&2;}
12005   { (exit 1); exit 1; }; }
12006elif test $pkg_failed = untried; then
12007	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12009{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
12010is in your PATH or set the PKG_CONFIG environment variable to the full
12011path to pkg-config.
12012
12013Alternatively, you may set the environment variables CPG_CFLAGS
12014and CPG_LIBS to avoid the need to call pkg-config.
12015See the pkg-config man page for more details.
12016
12017To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12018See \`config.log' for more details." >&5
12019$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
12020is in your PATH or set the PKG_CONFIG environment variable to the full
12021path to pkg-config.
12022
12023Alternatively, you may set the environment variables CPG_CFLAGS
12024and CPG_LIBS to avoid the need to call pkg-config.
12025See the pkg-config man page for more details.
12026
12027To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12028See \`config.log' for more details." >&2;}
12029   { (exit 1); exit 1; }; }; }
12030else
12031	CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
12032	CPG_LIBS=$pkg_cv_CPG_LIBS
12033        { $as_echo "$as_me:$LINENO: result: yes" >&5
12034$as_echo "yes" >&6; }
12035	:
12036fi
12037	fi
12038fi
12039
12040################################################################################
12041{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
12042$as_echo_n "checking whether to enable debugging... " >&6; }
12043# Check whether --enable-debug was given.
12044if test "${enable_debug+set}" = set; then
12045  enableval=$enable_debug; DEBUG=$enableval
12046else
12047  DEBUG=no
12048fi
12049
12050{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
12051$as_echo "$DEBUG" >&6; }
12052
12053if test x$DEBUG = xyes; then
12054	COPTIMISE_FLAG=
12055else
12056	CSCOPE_CMD=
12057fi
12058
12059################################################################################
12060{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
12061$as_echo_n "checking for C optimisation flag... " >&6; }
12062
12063# Check whether --with-optimisation was given.
12064if test "${with_optimisation+set}" = set; then
12065  withval=$with_optimisation;  COPTIMISE_FLAG="$withval"
12066fi
12067
12068{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
12069$as_echo "$COPTIMISE_FLAG" >&6; }
12070
12071################################################################################
12072{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
12073$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
12074# Check whether --enable-profiling was given.
12075if test "${enable_profiling+set}" = set; then
12076  enableval=$enable_profiling; PROFILING=$enableval
12077else
12078  PROFILING=no
12079fi
12080
12081{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
12082$as_echo "$PROFILING" >&6; }
12083
12084if test "x$PROFILING" = xyes; then
12085  COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
12086  # Extract the first word of "lcov", so it can be a program name with args.
12087set dummy lcov; ac_word=$2
12088{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12089$as_echo_n "checking for $ac_word... " >&6; }
12090if test "${ac_cv_path_LCOV+set}" = set; then
12091  $as_echo_n "(cached) " >&6
12092else
12093  case $LCOV in
12094  [\\/]* | ?:[\\/]*)
12095  ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
12096  ;;
12097  *)
12098  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099for as_dir in $PATH
12100do
12101  IFS=$as_save_IFS
12102  test -z "$as_dir" && as_dir=.
12103  for ac_exec_ext in '' $ac_executable_extensions; do
12104  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12105    ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
12106    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12107    break 2
12108  fi
12109done
12110done
12111IFS=$as_save_IFS
12112
12113  test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
12114  ;;
12115esac
12116fi
12117LCOV=$ac_cv_path_LCOV
12118if test -n "$LCOV"; then
12119  { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
12120$as_echo "$LCOV" >&6; }
12121else
12122  { $as_echo "$as_me:$LINENO: result: no" >&5
12123$as_echo "no" >&6; }
12124fi
12125
12126
12127  # Extract the first word of "genhtml", so it can be a program name with args.
12128set dummy genhtml; ac_word=$2
12129{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12130$as_echo_n "checking for $ac_word... " >&6; }
12131if test "${ac_cv_path_GENHTML+set}" = set; then
12132  $as_echo_n "(cached) " >&6
12133else
12134  case $GENHTML in
12135  [\\/]* | ?:[\\/]*)
12136  ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
12137  ;;
12138  *)
12139  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12140for as_dir in $PATH
12141do
12142  IFS=$as_save_IFS
12143  test -z "$as_dir" && as_dir=.
12144  for ac_exec_ext in '' $ac_executable_extensions; do
12145  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12146    ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
12147    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12148    break 2
12149  fi
12150done
12151done
12152IFS=$as_save_IFS
12153
12154  test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
12155  ;;
12156esac
12157fi
12158GENHTML=$ac_cv_path_GENHTML
12159if test -n "$GENHTML"; then
12160  { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
12161$as_echo "$GENHTML" >&6; }
12162else
12163  { $as_echo "$as_me:$LINENO: result: no" >&5
12164$as_echo "no" >&6; }
12165fi
12166
12167
12168  if test "$LCOV" = no -o "$GENHTML" = no ; then
12169    { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
12170$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
12171   { (exit 1); exit 1; }; }
12172  fi
12173fi
12174
12175################################################################################
12176{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
12177$as_echo_n "checking whether to use device-mapper... " >&6; }
12178# Check whether --enable-devmapper was given.
12179if test "${enable_devmapper+set}" = set; then
12180  enableval=$enable_devmapper; DEVMAPPER=$enableval
12181fi
12182
12183{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
12184$as_echo "$DEVMAPPER" >&6; }
12185
12186if test x$DEVMAPPER = xyes; then
12187
12188cat >>confdefs.h <<\_ACEOF
12189#define DEVMAPPER_SUPPORT 1
12190_ACEOF
12191
12192fi
12193
12194################################################################################
12195{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
12196$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
12197# Check whether --enable-udev_sync was given.
12198if test "${enable_udev_sync+set}" = set; then
12199  enableval=$enable_udev_sync; UDEV_SYNC=$enableval
12200else
12201  UDEV_SYNC=no
12202fi
12203
12204{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
12205$as_echo "$UDEV_SYNC" >&6; }
12206
12207if test x$UDEV_SYNC = xyes; then
12208
12209cat >>confdefs.h <<\_ACEOF
12210#define UDEV_SYNC_SUPPORT 1
12211_ACEOF
12212
12213fi
12214
12215{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
12216$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
12217# Check whether --enable-udev_rules was given.
12218if test "${enable_udev_rules+set}" = set; then
12219  enableval=$enable_udev_rules; UDEV_RULES=$enableval
12220else
12221  UDEV_RULES=$UDEV_SYNC
12222fi
12223
12224{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
12225$as_echo "$UDEV_RULES" >&6; }
12226
12227################################################################################
12228
12229if test x$UDEV_SYNC = xyes; then
12230	{ $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
12231$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
12232if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
12233  $as_echo_n "(cached) " >&6
12234else
12235  ac_check_lib_save_LIBS=$LIBS
12236LIBS="-ludev  $LIBS"
12237cat >conftest.$ac_ext <<_ACEOF
12238/* confdefs.h.  */
12239_ACEOF
12240cat confdefs.h >>conftest.$ac_ext
12241cat >>conftest.$ac_ext <<_ACEOF
12242/* end confdefs.h.  */
12243
12244/* Override any GCC internal prototype to avoid an error.
12245   Use char because int might match the return type of a GCC
12246   builtin and then its argument prototype would still apply.  */
12247#ifdef __cplusplus
12248extern "C"
12249#endif
12250char udev_queue_get_udev_is_active ();
12251int
12252main ()
12253{
12254return udev_queue_get_udev_is_active ();
12255  ;
12256  return 0;
12257}
12258_ACEOF
12259rm -f conftest.$ac_objext conftest$ac_exeext
12260if { (ac_try="$ac_link"
12261case "(($ac_try" in
12262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263  *) ac_try_echo=$ac_try;;
12264esac
12265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12266$as_echo "$ac_try_echo") >&5
12267  (eval "$ac_link") 2>conftest.er1
12268  ac_status=$?
12269  grep -v '^ *+' conftest.er1 >conftest.err
12270  rm -f conftest.er1
12271  cat conftest.err >&5
12272  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273  (exit $ac_status); } && {
12274	 test -z "$ac_c_werror_flag" ||
12275	 test ! -s conftest.err
12276       } && test -s conftest$ac_exeext && {
12277	 test "$cross_compiling" = yes ||
12278	 $as_test_x conftest$ac_exeext
12279       }; then
12280  ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
12281else
12282  $as_echo "$as_me: failed program was:" >&5
12283sed 's/^/| /' conftest.$ac_ext >&5
12284
12285	ac_cv_lib_udev_udev_queue_get_udev_is_active=no
12286fi
12287
12288rm -rf conftest.dSYM
12289rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12290      conftest$ac_exeext conftest.$ac_ext
12291LIBS=$ac_check_lib_save_LIBS
12292fi
12293{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
12294$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
12295if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
12296  HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=yes
12297else
12298  HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=no
12299fi
12300
12301
12302		if test x$HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE = xyes; then
12303
12304cat >>confdefs.h <<\_ACEOF
12305#define HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE 1
12306_ACEOF
12307
12308			LIBS="-ludev $LIBS"
12309		fi
12310fi
12311
12312################################################################################
12313# Check whether --enable-compat was given.
12314if test "${enable_compat+set}" = set; then
12315  enableval=$enable_compat; DM_COMPAT=$enableval
12316else
12317  DM_COMPAT=no
12318fi
12319
12320
12321################################################################################
12322# Check whether --enable-units-compat was given.
12323if test "${enable_units_compat+set}" = set; then
12324  enableval=$enable_units_compat; UNITS_COMPAT=$enableval
12325else
12326  UNITS_COMPAT=no
12327fi
12328
12329
12330if test x$UNITS_COMPAT = xyes; then
12331
12332cat >>confdefs.h <<\_ACEOF
12333#define DEFAULT_SI_UNIT_CONSISTENCY 0
12334_ACEOF
12335
12336fi
12337
12338################################################################################
12339# Check whether --enable-ioctl was given.
12340if test "${enable_ioctl+set}" = set; then
12341  enableval=$enable_ioctl; DM_IOCTLS=$enableval
12342fi
12343
12344
12345################################################################################
12346{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
12347$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
12348# Check whether --enable-o_direct was given.
12349if test "${enable_o_direct+set}" = set; then
12350  enableval=$enable_o_direct; ODIRECT=$enableval
12351fi
12352
12353{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
12354$as_echo "$ODIRECT" >&6; }
12355
12356if test x$ODIRECT = xyes; then
12357
12358cat >>confdefs.h <<\_ACEOF
12359#define O_DIRECT_SUPPORT 1
12360_ACEOF
12361
12362fi
12363
12364################################################################################
12365{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
12366$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
12367# Check whether --enable-applib was given.
12368if test "${enable_applib+set}" = set; then
12369  enableval=$enable_applib; APPLIB=$enableval
12370else
12371  APPLIB=no
12372fi
12373
12374{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
12375$as_echo "$APPLIB" >&6; }
12376
12377test x$APPLIB = xyes \
12378  && LVM2APP_LIB=-llvm2app \
12379  || LVM2APP_LIB=
12380
12381################################################################################
12382{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
12383$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
12384# Check whether --enable-cmdlib was given.
12385if test "${enable_cmdlib+set}" = set; then
12386  enableval=$enable_cmdlib; CMDLIB=$enableval
12387else
12388  CMDLIB=no
12389fi
12390
12391{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
12392$as_echo "$CMDLIB" >&6; }
12393
12394test x$CMDLIB = xyes \
12395  && LVM2CMD_LIB=-llvm2cmd \
12396  || LVM2CMD_LIB=
12397
12398################################################################################
12399# Check whether --enable-pkgconfig was given.
12400if test "${enable_pkgconfig+set}" = set; then
12401  enableval=$enable_pkgconfig; PKGCONFIG=$enableval
12402else
12403  PKGCONFIG=no
12404fi
12405
12406
12407################################################################################
12408{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
12409$as_echo_n "checking whether to install fsadm... " >&6; }
12410# Check whether --enable-fsadm was given.
12411if test "${enable_fsadm+set}" = set; then
12412  enableval=$enable_fsadm; FSADM=$enableval
12413fi
12414
12415{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
12416$as_echo "$FSADM" >&6; }
12417
12418################################################################################
12419{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
12420$as_echo_n "checking whether to use dmeventd... " >&6; }
12421# Check whether --enable-dmeventd was given.
12422if test "${enable_dmeventd+set}" = set; then
12423  enableval=$enable_dmeventd; DMEVENTD=$enableval
12424fi
12425
12426{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
12427$as_echo "$DMEVENTD" >&6; }
12428
12429BUILD_DMEVENTD=$DMEVENTD
12430
12431if test x$DMEVENTD = xyes; then
12432   if test x$MIRRORS != xinternal; then
12433      { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
12434      " >&5
12435$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
12436      " >&2;}
12437   { (exit 1); exit 1; }; }
12438   fi
12439   if test x$CMDLIB = xno; then
12440      { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12441      " >&5
12442$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
12443      " >&2;}
12444   { (exit 1); exit 1; }; }
12445   fi
12446fi
12447
12448if test x$DMEVENTD = xyes; then
12449
12450cat >>confdefs.h <<\_ACEOF
12451#define DMEVENTD 1
12452_ACEOF
12453
12454fi
12455
12456################################################################################
12457
12458{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
12459$as_echo_n "checking for getline in -lc... " >&6; }
12460if test "${ac_cv_lib_c_getline+set}" = set; then
12461  $as_echo_n "(cached) " >&6
12462else
12463  ac_check_lib_save_LIBS=$LIBS
12464LIBS="-lc  $LIBS"
12465cat >conftest.$ac_ext <<_ACEOF
12466/* confdefs.h.  */
12467_ACEOF
12468cat confdefs.h >>conftest.$ac_ext
12469cat >>conftest.$ac_ext <<_ACEOF
12470/* end confdefs.h.  */
12471
12472/* Override any GCC internal prototype to avoid an error.
12473   Use char because int might match the return type of a GCC
12474   builtin and then its argument prototype would still apply.  */
12475#ifdef __cplusplus
12476extern "C"
12477#endif
12478char getline ();
12479int
12480main ()
12481{
12482return getline ();
12483  ;
12484  return 0;
12485}
12486_ACEOF
12487rm -f conftest.$ac_objext conftest$ac_exeext
12488if { (ac_try="$ac_link"
12489case "(($ac_try" in
12490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491  *) ac_try_echo=$ac_try;;
12492esac
12493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12494$as_echo "$ac_try_echo") >&5
12495  (eval "$ac_link") 2>conftest.er1
12496  ac_status=$?
12497  grep -v '^ *+' conftest.er1 >conftest.err
12498  rm -f conftest.er1
12499  cat conftest.err >&5
12500  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501  (exit $ac_status); } && {
12502	 test -z "$ac_c_werror_flag" ||
12503	 test ! -s conftest.err
12504       } && test -s conftest$ac_exeext && {
12505	 test "$cross_compiling" = yes ||
12506	 $as_test_x conftest$ac_exeext
12507       }; then
12508  ac_cv_lib_c_getline=yes
12509else
12510  $as_echo "$as_me: failed program was:" >&5
12511sed 's/^/| /' conftest.$ac_ext >&5
12512
12513	ac_cv_lib_c_getline=no
12514fi
12515
12516rm -rf conftest.dSYM
12517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12518      conftest$ac_exeext conftest.$ac_ext
12519LIBS=$ac_check_lib_save_LIBS
12520fi
12521{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
12522$as_echo "$ac_cv_lib_c_getline" >&6; }
12523if test "x$ac_cv_lib_c_getline" = x""yes; then
12524
12525cat >>confdefs.h <<\_ACEOF
12526#define HAVE_GETLINE 1
12527_ACEOF
12528
12529fi
12530
12531
12532################################################################################
12533
12534{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
12535$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
12536if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
12537  $as_echo_n "(cached) " >&6
12538else
12539  ac_check_lib_save_LIBS=$LIBS
12540LIBS="-lc  $LIBS"
12541cat >conftest.$ac_ext <<_ACEOF
12542/* confdefs.h.  */
12543_ACEOF
12544cat confdefs.h >>conftest.$ac_ext
12545cat >>conftest.$ac_ext <<_ACEOF
12546/* end confdefs.h.  */
12547
12548/* Override any GCC internal prototype to avoid an error.
12549   Use char because int might match the return type of a GCC
12550   builtin and then its argument prototype would still apply.  */
12551#ifdef __cplusplus
12552extern "C"
12553#endif
12554char canonicalize_file_name ();
12555int
12556main ()
12557{
12558return canonicalize_file_name ();
12559  ;
12560  return 0;
12561}
12562_ACEOF
12563rm -f conftest.$ac_objext conftest$ac_exeext
12564if { (ac_try="$ac_link"
12565case "(($ac_try" in
12566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567  *) ac_try_echo=$ac_try;;
12568esac
12569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12570$as_echo "$ac_try_echo") >&5
12571  (eval "$ac_link") 2>conftest.er1
12572  ac_status=$?
12573  grep -v '^ *+' conftest.er1 >conftest.err
12574  rm -f conftest.er1
12575  cat conftest.err >&5
12576  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577  (exit $ac_status); } && {
12578	 test -z "$ac_c_werror_flag" ||
12579	 test ! -s conftest.err
12580       } && test -s conftest$ac_exeext && {
12581	 test "$cross_compiling" = yes ||
12582	 $as_test_x conftest$ac_exeext
12583       }; then
12584  ac_cv_lib_c_canonicalize_file_name=yes
12585else
12586  $as_echo "$as_me: failed program was:" >&5
12587sed 's/^/| /' conftest.$ac_ext >&5
12588
12589	ac_cv_lib_c_canonicalize_file_name=no
12590fi
12591
12592rm -rf conftest.dSYM
12593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12594      conftest$ac_exeext conftest.$ac_ext
12595LIBS=$ac_check_lib_save_LIBS
12596fi
12597{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
12598$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
12599if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
12600
12601cat >>confdefs.h <<\_ACEOF
12602#define HAVE_CANONICALIZE_FILE_NAME 1
12603_ACEOF
12604
12605fi
12606
12607
12608################################################################################
12609if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
12610 then  exec_prefix="";
12611fi;
12612
12613################################################################################
12614if test x$READLINE != xno; then
12615	{ $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
12616$as_echo_n "checking for library containing tgetent... " >&6; }
12617if test "${ac_cv_search_tgetent+set}" = set; then
12618  $as_echo_n "(cached) " >&6
12619else
12620  ac_func_search_save_LIBS=$LIBS
12621cat >conftest.$ac_ext <<_ACEOF
12622/* confdefs.h.  */
12623_ACEOF
12624cat confdefs.h >>conftest.$ac_ext
12625cat >>conftest.$ac_ext <<_ACEOF
12626/* end confdefs.h.  */
12627
12628/* Override any GCC internal prototype to avoid an error.
12629   Use char because int might match the return type of a GCC
12630   builtin and then its argument prototype would still apply.  */
12631#ifdef __cplusplus
12632extern "C"
12633#endif
12634char tgetent ();
12635int
12636main ()
12637{
12638return tgetent ();
12639  ;
12640  return 0;
12641}
12642_ACEOF
12643for ac_lib in '' tinfo ncurses curses termcap termlib; do
12644  if test -z "$ac_lib"; then
12645    ac_res="none required"
12646  else
12647    ac_res=-l$ac_lib
12648    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12649  fi
12650  rm -f conftest.$ac_objext conftest$ac_exeext
12651if { (ac_try="$ac_link"
12652case "(($ac_try" in
12653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654  *) ac_try_echo=$ac_try;;
12655esac
12656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12657$as_echo "$ac_try_echo") >&5
12658  (eval "$ac_link") 2>conftest.er1
12659  ac_status=$?
12660  grep -v '^ *+' conftest.er1 >conftest.err
12661  rm -f conftest.er1
12662  cat conftest.err >&5
12663  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664  (exit $ac_status); } && {
12665	 test -z "$ac_c_werror_flag" ||
12666	 test ! -s conftest.err
12667       } && test -s conftest$ac_exeext && {
12668	 test "$cross_compiling" = yes ||
12669	 $as_test_x conftest$ac_exeext
12670       }; then
12671  ac_cv_search_tgetent=$ac_res
12672else
12673  $as_echo "$as_me: failed program was:" >&5
12674sed 's/^/| /' conftest.$ac_ext >&5
12675
12676
12677fi
12678
12679rm -rf conftest.dSYM
12680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12681      conftest$ac_exeext
12682  if test "${ac_cv_search_tgetent+set}" = set; then
12683  break
12684fi
12685done
12686if test "${ac_cv_search_tgetent+set}" = set; then
12687  :
12688else
12689  ac_cv_search_tgetent=no
12690fi
12691rm conftest.$ac_ext
12692LIBS=$ac_func_search_save_LIBS
12693fi
12694{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
12695$as_echo "$ac_cv_search_tgetent" >&6; }
12696ac_res=$ac_cv_search_tgetent
12697if test "$ac_res" != no; then
12698  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12699  tg_found=yes
12700else
12701  tg_found=no
12702fi
12703
12704	test x$READLINE:$tg_found = xyes:no &&
12705	  { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
12706--enable-readline option (which is enabled by default).  Either disable readline
12707support with --disable-readline or download and install termcap from:
12708	ftp.gnu.org/gnu/termcap
12709Note: if you are using precompiled packages you will also need the development
12710  package as well (which may be called termcap-devel or something similar).
12711Note: (n)curses also seems to work as a substitute for termcap.  This was
12712  not found either - but you could try installing that as well.
12713" >&5
12714$as_echo "$as_me: error: termcap could not be found which is required for the
12715--enable-readline option (which is enabled by default).  Either disable readline
12716support with --disable-readline or download and install termcap from:
12717	ftp.gnu.org/gnu/termcap
12718Note: if you are using precompiled packages you will also need the development
12719  package as well (which may be called termcap-devel or something similar).
12720Note: (n)curses also seems to work as a substitute for termcap.  This was
12721  not found either - but you could try installing that as well.
12722" >&2;}
12723   { (exit 1); exit 1; }; }
12724fi
12725
12726################################################################################
12727{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12728$as_echo_n "checking for dlopen in -ldl... " >&6; }
12729if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12730  $as_echo_n "(cached) " >&6
12731else
12732  ac_check_lib_save_LIBS=$LIBS
12733LIBS="-ldl  $LIBS"
12734cat >conftest.$ac_ext <<_ACEOF
12735/* confdefs.h.  */
12736_ACEOF
12737cat confdefs.h >>conftest.$ac_ext
12738cat >>conftest.$ac_ext <<_ACEOF
12739/* end confdefs.h.  */
12740
12741/* Override any GCC internal prototype to avoid an error.
12742   Use char because int might match the return type of a GCC
12743   builtin and then its argument prototype would still apply.  */
12744#ifdef __cplusplus
12745extern "C"
12746#endif
12747char dlopen ();
12748int
12749main ()
12750{
12751return dlopen ();
12752  ;
12753  return 0;
12754}
12755_ACEOF
12756rm -f conftest.$ac_objext conftest$ac_exeext
12757if { (ac_try="$ac_link"
12758case "(($ac_try" in
12759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760  *) ac_try_echo=$ac_try;;
12761esac
12762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12763$as_echo "$ac_try_echo") >&5
12764  (eval "$ac_link") 2>conftest.er1
12765  ac_status=$?
12766  grep -v '^ *+' conftest.er1 >conftest.err
12767  rm -f conftest.er1
12768  cat conftest.err >&5
12769  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770  (exit $ac_status); } && {
12771	 test -z "$ac_c_werror_flag" ||
12772	 test ! -s conftest.err
12773       } && test -s conftest$ac_exeext && {
12774	 test "$cross_compiling" = yes ||
12775	 $as_test_x conftest$ac_exeext
12776       }; then
12777  ac_cv_lib_dl_dlopen=yes
12778else
12779  $as_echo "$as_me: failed program was:" >&5
12780sed 's/^/| /' conftest.$ac_ext >&5
12781
12782	ac_cv_lib_dl_dlopen=no
12783fi
12784
12785rm -rf conftest.dSYM
12786rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12787      conftest$ac_exeext conftest.$ac_ext
12788LIBS=$ac_check_lib_save_LIBS
12789fi
12790{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12791$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12792if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12793  HAVE_LIBDL=yes
12794else
12795  HAVE_LIBDL=no
12796fi
12797
12798
12799if [ "x$HAVE_LIBDL" = xyes ]; then
12800
12801cat >>confdefs.h <<\_ACEOF
12802#define HAVE_LIBDL 1
12803_ACEOF
12804
12805	LIBS="-ldl $LIBS"
12806else
12807	HAVE_LIBDL=no
12808fi
12809
12810################################################################################
12811if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
12812      -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
12813      \) -a "x$STATIC_LINK" = xyes ];
12814 then  { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
12815" >&5
12816$as_echo "$as_me: error: Features cannot be 'shared' when building statically
12817" >&2;}
12818   { (exit 1); exit 1; }; }
12819fi
12820
12821################################################################################
12822{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
12823$as_echo_n "checking whether to enable selinux support... " >&6; }
12824# Check whether --enable-selinux was given.
12825if test "${enable_selinux+set}" = set; then
12826  enableval=$enable_selinux; SELINUX=$enableval
12827fi
12828
12829{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
12830$as_echo "$SELINUX" >&6; }
12831
12832################################################################################
12833if test x$SELINUX = xyes; then
12834	{ $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
12835$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
12836if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
12837  $as_echo_n "(cached) " >&6
12838else
12839  ac_check_lib_save_LIBS=$LIBS
12840LIBS="-lsepol  $LIBS"
12841cat >conftest.$ac_ext <<_ACEOF
12842/* confdefs.h.  */
12843_ACEOF
12844cat confdefs.h >>conftest.$ac_ext
12845cat >>conftest.$ac_ext <<_ACEOF
12846/* end confdefs.h.  */
12847
12848/* Override any GCC internal prototype to avoid an error.
12849   Use char because int might match the return type of a GCC
12850   builtin and then its argument prototype would still apply.  */
12851#ifdef __cplusplus
12852extern "C"
12853#endif
12854char sepol_check_context ();
12855int
12856main ()
12857{
12858return sepol_check_context ();
12859  ;
12860  return 0;
12861}
12862_ACEOF
12863rm -f conftest.$ac_objext conftest$ac_exeext
12864if { (ac_try="$ac_link"
12865case "(($ac_try" in
12866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12867  *) ac_try_echo=$ac_try;;
12868esac
12869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12870$as_echo "$ac_try_echo") >&5
12871  (eval "$ac_link") 2>conftest.er1
12872  ac_status=$?
12873  grep -v '^ *+' conftest.er1 >conftest.err
12874  rm -f conftest.er1
12875  cat conftest.err >&5
12876  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877  (exit $ac_status); } && {
12878	 test -z "$ac_c_werror_flag" ||
12879	 test ! -s conftest.err
12880       } && test -s conftest$ac_exeext && {
12881	 test "$cross_compiling" = yes ||
12882	 $as_test_x conftest$ac_exeext
12883       }; then
12884  ac_cv_lib_sepol_sepol_check_context=yes
12885else
12886  $as_echo "$as_me: failed program was:" >&5
12887sed 's/^/| /' conftest.$ac_ext >&5
12888
12889	ac_cv_lib_sepol_sepol_check_context=no
12890fi
12891
12892rm -rf conftest.dSYM
12893rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12894      conftest$ac_exeext conftest.$ac_ext
12895LIBS=$ac_check_lib_save_LIBS
12896fi
12897{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
12898$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
12899if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
12900  HAVE_SEPOL=yes
12901else
12902  HAVE_SEPOL=no
12903fi
12904
12905
12906	if test x$HAVE_SEPOL = xyes; then
12907
12908cat >>confdefs.h <<\_ACEOF
12909#define HAVE_SEPOL 1
12910_ACEOF
12911
12912		SELINUX_LIBS="-lsepol $SELINUX_LIBS"
12913	fi
12914
12915	{ $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
12916$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
12917if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
12918  $as_echo_n "(cached) " >&6
12919else
12920  ac_check_lib_save_LIBS=$LIBS
12921LIBS="-lselinux  $LIBS"
12922cat >conftest.$ac_ext <<_ACEOF
12923/* confdefs.h.  */
12924_ACEOF
12925cat confdefs.h >>conftest.$ac_ext
12926cat >>conftest.$ac_ext <<_ACEOF
12927/* end confdefs.h.  */
12928
12929/* Override any GCC internal prototype to avoid an error.
12930   Use char because int might match the return type of a GCC
12931   builtin and then its argument prototype would still apply.  */
12932#ifdef __cplusplus
12933extern "C"
12934#endif
12935char is_selinux_enabled ();
12936int
12937main ()
12938{
12939return is_selinux_enabled ();
12940  ;
12941  return 0;
12942}
12943_ACEOF
12944rm -f conftest.$ac_objext conftest$ac_exeext
12945if { (ac_try="$ac_link"
12946case "(($ac_try" in
12947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948  *) ac_try_echo=$ac_try;;
12949esac
12950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12951$as_echo "$ac_try_echo") >&5
12952  (eval "$ac_link") 2>conftest.er1
12953  ac_status=$?
12954  grep -v '^ *+' conftest.er1 >conftest.err
12955  rm -f conftest.er1
12956  cat conftest.err >&5
12957  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958  (exit $ac_status); } && {
12959	 test -z "$ac_c_werror_flag" ||
12960	 test ! -s conftest.err
12961       } && test -s conftest$ac_exeext && {
12962	 test "$cross_compiling" = yes ||
12963	 $as_test_x conftest$ac_exeext
12964       }; then
12965  ac_cv_lib_selinux_is_selinux_enabled=yes
12966else
12967  $as_echo "$as_me: failed program was:" >&5
12968sed 's/^/| /' conftest.$ac_ext >&5
12969
12970	ac_cv_lib_selinux_is_selinux_enabled=no
12971fi
12972
12973rm -rf conftest.dSYM
12974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12975      conftest$ac_exeext conftest.$ac_ext
12976LIBS=$ac_check_lib_save_LIBS
12977fi
12978{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
12979$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
12980if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
12981  HAVE_SELINUX=yes
12982else
12983  HAVE_SELINUX=no
12984fi
12985
12986
12987	if test x$HAVE_SELINUX = xyes; then
12988
12989cat >>confdefs.h <<\_ACEOF
12990#define HAVE_SELINUX 1
12991_ACEOF
12992
12993		SELINUX_LIBS="-lselinux $SELINUX_LIBS"
12994	else
12995		{ $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
12996$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
12997	fi
12998	LIBS="$SELINUX_LIBS $LIBS"
12999
13000	# With --enable-static_link and selinux enabled, linking
13001	# fails on at least Debian unstable due to unsatisfied references
13002	# to pthread_mutex_lock and _unlock.  See if we need -lpthread.
13003	if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
13004		lvm_saved_libs=$LIBS
13005		LIBS="$LIBS -static"
13006		{ $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13007$as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
13008if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13009  $as_echo_n "(cached) " >&6
13010else
13011  ac_func_search_save_LIBS=$LIBS
13012cat >conftest.$ac_ext <<_ACEOF
13013/* confdefs.h.  */
13014_ACEOF
13015cat confdefs.h >>conftest.$ac_ext
13016cat >>conftest.$ac_ext <<_ACEOF
13017/* end confdefs.h.  */
13018
13019/* Override any GCC internal prototype to avoid an error.
13020   Use char because int might match the return type of a GCC
13021   builtin and then its argument prototype would still apply.  */
13022#ifdef __cplusplus
13023extern "C"
13024#endif
13025char pthread_mutex_lock ();
13026int
13027main ()
13028{
13029return pthread_mutex_lock ();
13030  ;
13031  return 0;
13032}
13033_ACEOF
13034for ac_lib in '' pthread; do
13035  if test -z "$ac_lib"; then
13036    ac_res="none required"
13037  else
13038    ac_res=-l$ac_lib
13039    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13040  fi
13041  rm -f conftest.$ac_objext conftest$ac_exeext
13042if { (ac_try="$ac_link"
13043case "(($ac_try" in
13044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045  *) ac_try_echo=$ac_try;;
13046esac
13047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13048$as_echo "$ac_try_echo") >&5
13049  (eval "$ac_link") 2>conftest.er1
13050  ac_status=$?
13051  grep -v '^ *+' conftest.er1 >conftest.err
13052  rm -f conftest.er1
13053  cat conftest.err >&5
13054  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055  (exit $ac_status); } && {
13056	 test -z "$ac_c_werror_flag" ||
13057	 test ! -s conftest.err
13058       } && test -s conftest$ac_exeext && {
13059	 test "$cross_compiling" = yes ||
13060	 $as_test_x conftest$ac_exeext
13061       }; then
13062  ac_cv_search_pthread_mutex_lock=$ac_res
13063else
13064  $as_echo "$as_me: failed program was:" >&5
13065sed 's/^/| /' conftest.$ac_ext >&5
13066
13067
13068fi
13069
13070rm -rf conftest.dSYM
13071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13072      conftest$ac_exeext
13073  if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13074  break
13075fi
13076done
13077if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13078  :
13079else
13080  ac_cv_search_pthread_mutex_lock=no
13081fi
13082rm conftest.$ac_ext
13083LIBS=$ac_func_search_save_LIBS
13084fi
13085{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13086$as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
13087ac_res=$ac_cv_search_pthread_mutex_lock
13088if test "$ac_res" != no; then
13089  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13090  test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
13091				LIB_PTHREAD=-lpthread
13092fi
13093
13094		LIBS=$lvm_saved_libs
13095	fi
13096fi
13097
13098################################################################################
13099if test x$REALTIME = xyes; then
13100	{ $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13101$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13102if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
13103  $as_echo_n "(cached) " >&6
13104else
13105  ac_check_lib_save_LIBS=$LIBS
13106LIBS="-lrt  $LIBS"
13107cat >conftest.$ac_ext <<_ACEOF
13108/* confdefs.h.  */
13109_ACEOF
13110cat confdefs.h >>conftest.$ac_ext
13111cat >>conftest.$ac_ext <<_ACEOF
13112/* end confdefs.h.  */
13113
13114/* Override any GCC internal prototype to avoid an error.
13115   Use char because int might match the return type of a GCC
13116   builtin and then its argument prototype would still apply.  */
13117#ifdef __cplusplus
13118extern "C"
13119#endif
13120char clock_gettime ();
13121int
13122main ()
13123{
13124return clock_gettime ();
13125  ;
13126  return 0;
13127}
13128_ACEOF
13129rm -f conftest.$ac_objext conftest$ac_exeext
13130if { (ac_try="$ac_link"
13131case "(($ac_try" in
13132  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133  *) ac_try_echo=$ac_try;;
13134esac
13135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13136$as_echo "$ac_try_echo") >&5
13137  (eval "$ac_link") 2>conftest.er1
13138  ac_status=$?
13139  grep -v '^ *+' conftest.er1 >conftest.err
13140  rm -f conftest.er1
13141  cat conftest.err >&5
13142  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143  (exit $ac_status); } && {
13144	 test -z "$ac_c_werror_flag" ||
13145	 test ! -s conftest.err
13146       } && test -s conftest$ac_exeext && {
13147	 test "$cross_compiling" = yes ||
13148	 $as_test_x conftest$ac_exeext
13149       }; then
13150  ac_cv_lib_rt_clock_gettime=yes
13151else
13152  $as_echo "$as_me: failed program was:" >&5
13153sed 's/^/| /' conftest.$ac_ext >&5
13154
13155	ac_cv_lib_rt_clock_gettime=no
13156fi
13157
13158rm -rf conftest.dSYM
13159rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13160      conftest$ac_exeext conftest.$ac_ext
13161LIBS=$ac_check_lib_save_LIBS
13162fi
13163{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13164$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13165if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
13166  HAVE_REALTIME=yes
13167else
13168  HAVE_REALTIME=no
13169fi
13170
13171
13172	if test x$HAVE_REALTIME = xyes; then
13173
13174cat >>confdefs.h <<\_ACEOF
13175#define HAVE_REALTIME 1
13176_ACEOF
13177
13178		LIBS="-lrt $LIBS"
13179	else
13180		{ $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
13181$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
13182	fi
13183fi
13184
13185################################################################################
13186
13187for ac_header in getopt.h
13188do
13189as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13191  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13192$as_echo_n "checking for $ac_header... " >&6; }
13193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13194  $as_echo_n "(cached) " >&6
13195fi
13196ac_res=`eval 'as_val=${'$as_ac_Header'}
13197		 $as_echo "$as_val"'`
13198	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13199$as_echo "$ac_res" >&6; }
13200else
13201  # Is the header compilable?
13202{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13203$as_echo_n "checking $ac_header usability... " >&6; }
13204cat >conftest.$ac_ext <<_ACEOF
13205/* confdefs.h.  */
13206_ACEOF
13207cat confdefs.h >>conftest.$ac_ext
13208cat >>conftest.$ac_ext <<_ACEOF
13209/* end confdefs.h.  */
13210$ac_includes_default
13211#include <$ac_header>
13212_ACEOF
13213rm -f conftest.$ac_objext
13214if { (ac_try="$ac_compile"
13215case "(($ac_try" in
13216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13217  *) ac_try_echo=$ac_try;;
13218esac
13219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13220$as_echo "$ac_try_echo") >&5
13221  (eval "$ac_compile") 2>conftest.er1
13222  ac_status=$?
13223  grep -v '^ *+' conftest.er1 >conftest.err
13224  rm -f conftest.er1
13225  cat conftest.err >&5
13226  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227  (exit $ac_status); } && {
13228	 test -z "$ac_c_werror_flag" ||
13229	 test ! -s conftest.err
13230       } && test -s conftest.$ac_objext; then
13231  ac_header_compiler=yes
13232else
13233  $as_echo "$as_me: failed program was:" >&5
13234sed 's/^/| /' conftest.$ac_ext >&5
13235
13236	ac_header_compiler=no
13237fi
13238
13239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13240{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13241$as_echo "$ac_header_compiler" >&6; }
13242
13243# Is the header present?
13244{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13245$as_echo_n "checking $ac_header presence... " >&6; }
13246cat >conftest.$ac_ext <<_ACEOF
13247/* confdefs.h.  */
13248_ACEOF
13249cat confdefs.h >>conftest.$ac_ext
13250cat >>conftest.$ac_ext <<_ACEOF
13251/* end confdefs.h.  */
13252#include <$ac_header>
13253_ACEOF
13254if { (ac_try="$ac_cpp conftest.$ac_ext"
13255case "(($ac_try" in
13256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257  *) ac_try_echo=$ac_try;;
13258esac
13259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13260$as_echo "$ac_try_echo") >&5
13261  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13262  ac_status=$?
13263  grep -v '^ *+' conftest.er1 >conftest.err
13264  rm -f conftest.er1
13265  cat conftest.err >&5
13266  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267  (exit $ac_status); } >/dev/null && {
13268	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13269	 test ! -s conftest.err
13270       }; then
13271  ac_header_preproc=yes
13272else
13273  $as_echo "$as_me: failed program was:" >&5
13274sed 's/^/| /' conftest.$ac_ext >&5
13275
13276  ac_header_preproc=no
13277fi
13278
13279rm -f conftest.err conftest.$ac_ext
13280{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13281$as_echo "$ac_header_preproc" >&6; }
13282
13283# So?  What about this header?
13284case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13285  yes:no: )
13286    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13287$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13288    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13289$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13290    ac_header_preproc=yes
13291    ;;
13292  no:yes:* )
13293    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13294$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13295    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13296$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13297    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13298$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13299    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13300$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13301    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13302$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13303    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13304$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13305
13306    ;;
13307esac
13308{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13309$as_echo_n "checking for $ac_header... " >&6; }
13310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13311  $as_echo_n "(cached) " >&6
13312else
13313  eval "$as_ac_Header=\$ac_header_preproc"
13314fi
13315ac_res=`eval 'as_val=${'$as_ac_Header'}
13316		 $as_echo "$as_val"'`
13317	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13318$as_echo "$ac_res" >&6; }
13319
13320fi
13321as_val=`eval 'as_val=${'$as_ac_Header'}
13322		 $as_echo "$as_val"'`
13323   if test "x$as_val" = x""yes; then
13324  cat >>confdefs.h <<_ACEOF
13325#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13326_ACEOF
13327
13328cat >>confdefs.h <<\_ACEOF
13329#define HAVE_GETOPTLONG 1
13330_ACEOF
13331
13332fi
13333
13334done
13335
13336
13337################################################################################
13338if test x$READLINE != xno; then
13339	rl_found=yes
13340
13341{ $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13342$as_echo_n "checking for readline in -lreadline... " >&6; }
13343if test "${ac_cv_lib_readline_readline+set}" = set; then
13344  $as_echo_n "(cached) " >&6
13345else
13346  ac_check_lib_save_LIBS=$LIBS
13347LIBS="-lreadline  $LIBS"
13348cat >conftest.$ac_ext <<_ACEOF
13349/* confdefs.h.  */
13350_ACEOF
13351cat confdefs.h >>conftest.$ac_ext
13352cat >>conftest.$ac_ext <<_ACEOF
13353/* end confdefs.h.  */
13354
13355/* Override any GCC internal prototype to avoid an error.
13356   Use char because int might match the return type of a GCC
13357   builtin and then its argument prototype would still apply.  */
13358#ifdef __cplusplus
13359extern "C"
13360#endif
13361char readline ();
13362int
13363main ()
13364{
13365return readline ();
13366  ;
13367  return 0;
13368}
13369_ACEOF
13370rm -f conftest.$ac_objext conftest$ac_exeext
13371if { (ac_try="$ac_link"
13372case "(($ac_try" in
13373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374  *) ac_try_echo=$ac_try;;
13375esac
13376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13377$as_echo "$ac_try_echo") >&5
13378  (eval "$ac_link") 2>conftest.er1
13379  ac_status=$?
13380  grep -v '^ *+' conftest.er1 >conftest.err
13381  rm -f conftest.er1
13382  cat conftest.err >&5
13383  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384  (exit $ac_status); } && {
13385	 test -z "$ac_c_werror_flag" ||
13386	 test ! -s conftest.err
13387       } && test -s conftest$ac_exeext && {
13388	 test "$cross_compiling" = yes ||
13389	 $as_test_x conftest$ac_exeext
13390       }; then
13391  ac_cv_lib_readline_readline=yes
13392else
13393  $as_echo "$as_me: failed program was:" >&5
13394sed 's/^/| /' conftest.$ac_ext >&5
13395
13396	ac_cv_lib_readline_readline=no
13397fi
13398
13399rm -rf conftest.dSYM
13400rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13401      conftest$ac_exeext conftest.$ac_ext
13402LIBS=$ac_check_lib_save_LIBS
13403fi
13404{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13405$as_echo "$ac_cv_lib_readline_readline" >&6; }
13406if test "x$ac_cv_lib_readline_readline" = x""yes; then
13407  cat >>confdefs.h <<_ACEOF
13408#define HAVE_LIBREADLINE 1
13409_ACEOF
13410
13411  LIBS="-lreadline $LIBS"
13412
13413else
13414  rl_found=no
13415fi
13416
13417	test x$READLINE:$rl_found = xyes:no &&
13418	  { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
13419--enable-readline option (which is enabled by default).  Either disable readline
13420support with --disable-readline or download and install readline from:
13421	ftp.gnu.org/gnu/readline
13422Note: if you are using precompiled packages you will also need the development
13423package as well (which may be called readline-devel or something similar).
13424" >&5
13425$as_echo "$as_me: error: GNU Readline could not be found which is required for the
13426--enable-readline option (which is enabled by default).  Either disable readline
13427support with --disable-readline or download and install readline from:
13428	ftp.gnu.org/gnu/readline
13429Note: if you are using precompiled packages you will also need the development
13430package as well (which may be called readline-devel or something similar).
13431" >&2;}
13432   { (exit 1); exit 1; }; }
13433	if test $rl_found = yes; then
13434
13435for ac_func in rl_completion_matches
13436do
13437as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13438{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13439$as_echo_n "checking for $ac_func... " >&6; }
13440if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13441  $as_echo_n "(cached) " >&6
13442else
13443  cat >conftest.$ac_ext <<_ACEOF
13444/* confdefs.h.  */
13445_ACEOF
13446cat confdefs.h >>conftest.$ac_ext
13447cat >>conftest.$ac_ext <<_ACEOF
13448/* end confdefs.h.  */
13449/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13450   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13451#define $ac_func innocuous_$ac_func
13452
13453/* System header to define __stub macros and hopefully few prototypes,
13454    which can conflict with char $ac_func (); below.
13455    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13456    <limits.h> exists even on freestanding compilers.  */
13457
13458#ifdef __STDC__
13459# include <limits.h>
13460#else
13461# include <assert.h>
13462#endif
13463
13464#undef $ac_func
13465
13466/* Override any GCC internal prototype to avoid an error.
13467   Use char because int might match the return type of a GCC
13468   builtin and then its argument prototype would still apply.  */
13469#ifdef __cplusplus
13470extern "C"
13471#endif
13472char $ac_func ();
13473/* The GNU C library defines this for functions which it implements
13474    to always fail with ENOSYS.  Some functions are actually named
13475    something starting with __ and the normal name is an alias.  */
13476#if defined __stub_$ac_func || defined __stub___$ac_func
13477choke me
13478#endif
13479
13480int
13481main ()
13482{
13483return $ac_func ();
13484  ;
13485  return 0;
13486}
13487_ACEOF
13488rm -f conftest.$ac_objext conftest$ac_exeext
13489if { (ac_try="$ac_link"
13490case "(($ac_try" in
13491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492  *) ac_try_echo=$ac_try;;
13493esac
13494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13495$as_echo "$ac_try_echo") >&5
13496  (eval "$ac_link") 2>conftest.er1
13497  ac_status=$?
13498  grep -v '^ *+' conftest.er1 >conftest.err
13499  rm -f conftest.er1
13500  cat conftest.err >&5
13501  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502  (exit $ac_status); } && {
13503	 test -z "$ac_c_werror_flag" ||
13504	 test ! -s conftest.err
13505       } && test -s conftest$ac_exeext && {
13506	 test "$cross_compiling" = yes ||
13507	 $as_test_x conftest$ac_exeext
13508       }; then
13509  eval "$as_ac_var=yes"
13510else
13511  $as_echo "$as_me: failed program was:" >&5
13512sed 's/^/| /' conftest.$ac_ext >&5
13513
13514	eval "$as_ac_var=no"
13515fi
13516
13517rm -rf conftest.dSYM
13518rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13519      conftest$ac_exeext conftest.$ac_ext
13520fi
13521ac_res=`eval 'as_val=${'$as_ac_var'}
13522		 $as_echo "$as_val"'`
13523	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13524$as_echo "$ac_res" >&6; }
13525as_val=`eval 'as_val=${'$as_ac_var'}
13526		 $as_echo "$as_val"'`
13527   if test "x$as_val" = x""yes; then
13528  cat >>confdefs.h <<_ACEOF
13529#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13530_ACEOF
13531
13532fi
13533done
13534
13535
13536cat >>confdefs.h <<\_ACEOF
13537#define READLINE_SUPPORT 1
13538_ACEOF
13539
13540	fi
13541fi
13542
13543################################################################################
13544{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
13545$as_echo_n "checking whether to enable internationalisation... " >&6; }
13546# Check whether --enable-nls was given.
13547if test "${enable_nls+set}" = set; then
13548  enableval=$enable_nls; INTL=$enableval
13549else
13550  INTL=no
13551fi
13552
13553{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
13554$as_echo "$INTL" >&6; }
13555
13556if test x$INTL = xyes; then
13557# FIXME - Move this - can be device-mapper too
13558	INTL_PACKAGE="lvm2"
13559	# Extract the first word of "msgfmt", so it can be a program name with args.
13560set dummy msgfmt; ac_word=$2
13561{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13562$as_echo_n "checking for $ac_word... " >&6; }
13563if test "${ac_cv_path_MSGFMT+set}" = set; then
13564  $as_echo_n "(cached) " >&6
13565else
13566  case $MSGFMT in
13567  [\\/]* | ?:[\\/]*)
13568  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13569  ;;
13570  *)
13571  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572for as_dir in $PATH
13573do
13574  IFS=$as_save_IFS
13575  test -z "$as_dir" && as_dir=.
13576  for ac_exec_ext in '' $ac_executable_extensions; do
13577  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13578    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
13579    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13580    break 2
13581  fi
13582done
13583done
13584IFS=$as_save_IFS
13585
13586  ;;
13587esac
13588fi
13589MSGFMT=$ac_cv_path_MSGFMT
13590if test -n "$MSGFMT"; then
13591  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
13592$as_echo "$MSGFMT" >&6; }
13593else
13594  { $as_echo "$as_me:$LINENO: result: no" >&5
13595$as_echo "no" >&6; }
13596fi
13597
13598
13599	if [ "x$MSGFMT" == x ];
13600		then  { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
13601		" >&5
13602$as_echo "$as_me: error: msgfmt not found in path $PATH
13603		" >&2;}
13604   { (exit 1); exit 1; }; }
13605	fi;
13606
13607
13608# Check whether --with-localedir was given.
13609if test "${with_localedir+set}" = set; then
13610  withval=$with_localedir;  LOCALEDIR="$withval"
13611else
13612   LOCALEDIR='${prefix}/share/locale'
13613fi
13614
13615fi
13616
13617################################################################################
13618
13619# Check whether --with-confdir was given.
13620if test "${with_confdir+set}" = set; then
13621  withval=$with_confdir;  CONFDIR="$withval"
13622else
13623   CONFDIR='/etc'
13624fi
13625
13626
13627
13628# Check whether --with-staticdir was given.
13629if test "${with_staticdir+set}" = set; then
13630  withval=$with_staticdir;  STATICDIR="$withval"
13631else
13632   STATICDIR='${exec_prefix}/sbin'
13633fi
13634
13635
13636
13637# Check whether --with-usrlibdir was given.
13638if test "${with_usrlibdir+set}" = set; then
13639  withval=$with_usrlibdir;  usrlibdir="$withval"
13640else
13641   usrlibdir='${prefix}/lib'
13642fi
13643
13644
13645
13646# Check whether --with-usrsbindir was given.
13647if test "${with_usrsbindir+set}" = set; then
13648  withval=$with_usrsbindir;  usrsbindir="$withval"
13649else
13650   usrsbindir='${prefix}/sbin'
13651fi
13652
13653
13654################################################################################
13655
13656# Check whether --with-udev_prefix was given.
13657if test "${with_udev_prefix+set}" = set; then
13658  withval=$with_udev_prefix;  udev_prefix="$withval"
13659else
13660   udev_prefix='${exec_prefix}'
13661fi
13662
13663
13664
13665# Check whether --with-udevdir was given.
13666if test "${with_udevdir+set}" = set; then
13667  withval=$with_udevdir;  udevdir="$withval"
13668else
13669   udevdir='${udev_prefix}/lib/udev/rules.d'
13670fi
13671
13672
13673################################################################################
13674if test x$READLINE = xyes; then
13675
13676
13677for ac_header in readline/readline.h readline/history.h
13678do
13679as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13681  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13682$as_echo_n "checking for $ac_header... " >&6; }
13683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13684  $as_echo_n "(cached) " >&6
13685fi
13686ac_res=`eval 'as_val=${'$as_ac_Header'}
13687		 $as_echo "$as_val"'`
13688	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13689$as_echo "$ac_res" >&6; }
13690else
13691  # Is the header compilable?
13692{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13693$as_echo_n "checking $ac_header usability... " >&6; }
13694cat >conftest.$ac_ext <<_ACEOF
13695/* confdefs.h.  */
13696_ACEOF
13697cat confdefs.h >>conftest.$ac_ext
13698cat >>conftest.$ac_ext <<_ACEOF
13699/* end confdefs.h.  */
13700$ac_includes_default
13701#include <$ac_header>
13702_ACEOF
13703rm -f conftest.$ac_objext
13704if { (ac_try="$ac_compile"
13705case "(($ac_try" in
13706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707  *) ac_try_echo=$ac_try;;
13708esac
13709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13710$as_echo "$ac_try_echo") >&5
13711  (eval "$ac_compile") 2>conftest.er1
13712  ac_status=$?
13713  grep -v '^ *+' conftest.er1 >conftest.err
13714  rm -f conftest.er1
13715  cat conftest.err >&5
13716  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717  (exit $ac_status); } && {
13718	 test -z "$ac_c_werror_flag" ||
13719	 test ! -s conftest.err
13720       } && test -s conftest.$ac_objext; then
13721  ac_header_compiler=yes
13722else
13723  $as_echo "$as_me: failed program was:" >&5
13724sed 's/^/| /' conftest.$ac_ext >&5
13725
13726	ac_header_compiler=no
13727fi
13728
13729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13730{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13731$as_echo "$ac_header_compiler" >&6; }
13732
13733# Is the header present?
13734{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13735$as_echo_n "checking $ac_header presence... " >&6; }
13736cat >conftest.$ac_ext <<_ACEOF
13737/* confdefs.h.  */
13738_ACEOF
13739cat confdefs.h >>conftest.$ac_ext
13740cat >>conftest.$ac_ext <<_ACEOF
13741/* end confdefs.h.  */
13742#include <$ac_header>
13743_ACEOF
13744if { (ac_try="$ac_cpp conftest.$ac_ext"
13745case "(($ac_try" in
13746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747  *) ac_try_echo=$ac_try;;
13748esac
13749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13750$as_echo "$ac_try_echo") >&5
13751  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13752  ac_status=$?
13753  grep -v '^ *+' conftest.er1 >conftest.err
13754  rm -f conftest.er1
13755  cat conftest.err >&5
13756  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757  (exit $ac_status); } >/dev/null && {
13758	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13759	 test ! -s conftest.err
13760       }; then
13761  ac_header_preproc=yes
13762else
13763  $as_echo "$as_me: failed program was:" >&5
13764sed 's/^/| /' conftest.$ac_ext >&5
13765
13766  ac_header_preproc=no
13767fi
13768
13769rm -f conftest.err conftest.$ac_ext
13770{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13771$as_echo "$ac_header_preproc" >&6; }
13772
13773# So?  What about this header?
13774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13775  yes:no: )
13776    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13777$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13778    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13779$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13780    ac_header_preproc=yes
13781    ;;
13782  no:yes:* )
13783    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13784$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13785    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13786$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13787    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13788$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13789    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13790$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13791    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13792$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13793    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13794$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13795
13796    ;;
13797esac
13798{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13799$as_echo_n "checking for $ac_header... " >&6; }
13800if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13801  $as_echo_n "(cached) " >&6
13802else
13803  eval "$as_ac_Header=\$ac_header_preproc"
13804fi
13805ac_res=`eval 'as_val=${'$as_ac_Header'}
13806		 $as_echo "$as_val"'`
13807	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13808$as_echo "$ac_res" >&6; }
13809
13810fi
13811as_val=`eval 'as_val=${'$as_ac_Header'}
13812		 $as_echo "$as_val"'`
13813   if test "x$as_val" = x""yes; then
13814  cat >>confdefs.h <<_ACEOF
13815#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13816_ACEOF
13817
13818else
13819  { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13820$as_echo "$as_me: error: bailing out" >&2;}
13821   { (exit 1); exit 1; }; }
13822fi
13823
13824done
13825
13826fi
13827
13828if test x$CLVMD != xnone; then
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839for ac_header in mntent.h netdb.h netinet/in.h pthread.h search.h sys/mount.h sys/socket.h sys/uio.h sys/un.h utmpx.h
13840do
13841as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13842if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13843  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13844$as_echo_n "checking for $ac_header... " >&6; }
13845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13846  $as_echo_n "(cached) " >&6
13847fi
13848ac_res=`eval 'as_val=${'$as_ac_Header'}
13849		 $as_echo "$as_val"'`
13850	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13851$as_echo "$ac_res" >&6; }
13852else
13853  # Is the header compilable?
13854{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13855$as_echo_n "checking $ac_header usability... " >&6; }
13856cat >conftest.$ac_ext <<_ACEOF
13857/* confdefs.h.  */
13858_ACEOF
13859cat confdefs.h >>conftest.$ac_ext
13860cat >>conftest.$ac_ext <<_ACEOF
13861/* end confdefs.h.  */
13862$ac_includes_default
13863#include <$ac_header>
13864_ACEOF
13865rm -f conftest.$ac_objext
13866if { (ac_try="$ac_compile"
13867case "(($ac_try" in
13868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869  *) ac_try_echo=$ac_try;;
13870esac
13871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13872$as_echo "$ac_try_echo") >&5
13873  (eval "$ac_compile") 2>conftest.er1
13874  ac_status=$?
13875  grep -v '^ *+' conftest.er1 >conftest.err
13876  rm -f conftest.er1
13877  cat conftest.err >&5
13878  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879  (exit $ac_status); } && {
13880	 test -z "$ac_c_werror_flag" ||
13881	 test ! -s conftest.err
13882       } && test -s conftest.$ac_objext; then
13883  ac_header_compiler=yes
13884else
13885  $as_echo "$as_me: failed program was:" >&5
13886sed 's/^/| /' conftest.$ac_ext >&5
13887
13888	ac_header_compiler=no
13889fi
13890
13891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13892{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13893$as_echo "$ac_header_compiler" >&6; }
13894
13895# Is the header present?
13896{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13897$as_echo_n "checking $ac_header presence... " >&6; }
13898cat >conftest.$ac_ext <<_ACEOF
13899/* confdefs.h.  */
13900_ACEOF
13901cat confdefs.h >>conftest.$ac_ext
13902cat >>conftest.$ac_ext <<_ACEOF
13903/* end confdefs.h.  */
13904#include <$ac_header>
13905_ACEOF
13906if { (ac_try="$ac_cpp conftest.$ac_ext"
13907case "(($ac_try" in
13908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909  *) ac_try_echo=$ac_try;;
13910esac
13911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13912$as_echo "$ac_try_echo") >&5
13913  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13914  ac_status=$?
13915  grep -v '^ *+' conftest.er1 >conftest.err
13916  rm -f conftest.er1
13917  cat conftest.err >&5
13918  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919  (exit $ac_status); } >/dev/null && {
13920	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13921	 test ! -s conftest.err
13922       }; then
13923  ac_header_preproc=yes
13924else
13925  $as_echo "$as_me: failed program was:" >&5
13926sed 's/^/| /' conftest.$ac_ext >&5
13927
13928  ac_header_preproc=no
13929fi
13930
13931rm -f conftest.err conftest.$ac_ext
13932{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13933$as_echo "$ac_header_preproc" >&6; }
13934
13935# So?  What about this header?
13936case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13937  yes:no: )
13938    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13939$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13940    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13941$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13942    ac_header_preproc=yes
13943    ;;
13944  no:yes:* )
13945    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13946$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13947    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13948$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13949    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13950$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13951    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13952$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13953    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13954$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13955    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13956$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13957
13958    ;;
13959esac
13960{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13961$as_echo_n "checking for $ac_header... " >&6; }
13962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13963  $as_echo_n "(cached) " >&6
13964else
13965  eval "$as_ac_Header=\$ac_header_preproc"
13966fi
13967ac_res=`eval 'as_val=${'$as_ac_Header'}
13968		 $as_echo "$as_val"'`
13969	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13970$as_echo "$ac_res" >&6; }
13971
13972fi
13973as_val=`eval 'as_val=${'$as_ac_Header'}
13974		 $as_echo "$as_val"'`
13975   if test "x$as_val" = x""yes; then
13976  cat >>confdefs.h <<_ACEOF
13977#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13978_ACEOF
13979
13980else
13981  { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
13982$as_echo "$as_me: error: bailing out" >&2;}
13983   { (exit 1); exit 1; }; }
13984fi
13985
13986done
13987
13988
13989
13990
13991
13992
13993for ac_func in dup2 getmntent memmove select socket
13994do
13995as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13996{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13997$as_echo_n "checking for $ac_func... " >&6; }
13998if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13999  $as_echo_n "(cached) " >&6
14000else
14001  cat >conftest.$ac_ext <<_ACEOF
14002/* confdefs.h.  */
14003_ACEOF
14004cat confdefs.h >>conftest.$ac_ext
14005cat >>conftest.$ac_ext <<_ACEOF
14006/* end confdefs.h.  */
14007/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14008   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14009#define $ac_func innocuous_$ac_func
14010
14011/* System header to define __stub macros and hopefully few prototypes,
14012    which can conflict with char $ac_func (); below.
14013    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14014    <limits.h> exists even on freestanding compilers.  */
14015
14016#ifdef __STDC__
14017# include <limits.h>
14018#else
14019# include <assert.h>
14020#endif
14021
14022#undef $ac_func
14023
14024/* Override any GCC internal prototype to avoid an error.
14025   Use char because int might match the return type of a GCC
14026   builtin and then its argument prototype would still apply.  */
14027#ifdef __cplusplus
14028extern "C"
14029#endif
14030char $ac_func ();
14031/* The GNU C library defines this for functions which it implements
14032    to always fail with ENOSYS.  Some functions are actually named
14033    something starting with __ and the normal name is an alias.  */
14034#if defined __stub_$ac_func || defined __stub___$ac_func
14035choke me
14036#endif
14037
14038int
14039main ()
14040{
14041return $ac_func ();
14042  ;
14043  return 0;
14044}
14045_ACEOF
14046rm -f conftest.$ac_objext conftest$ac_exeext
14047if { (ac_try="$ac_link"
14048case "(($ac_try" in
14049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050  *) ac_try_echo=$ac_try;;
14051esac
14052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14053$as_echo "$ac_try_echo") >&5
14054  (eval "$ac_link") 2>conftest.er1
14055  ac_status=$?
14056  grep -v '^ *+' conftest.er1 >conftest.err
14057  rm -f conftest.er1
14058  cat conftest.err >&5
14059  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060  (exit $ac_status); } && {
14061	 test -z "$ac_c_werror_flag" ||
14062	 test ! -s conftest.err
14063       } && test -s conftest$ac_exeext && {
14064	 test "$cross_compiling" = yes ||
14065	 $as_test_x conftest$ac_exeext
14066       }; then
14067  eval "$as_ac_var=yes"
14068else
14069  $as_echo "$as_me: failed program was:" >&5
14070sed 's/^/| /' conftest.$ac_ext >&5
14071
14072	eval "$as_ac_var=no"
14073fi
14074
14075rm -rf conftest.dSYM
14076rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14077      conftest$ac_exeext conftest.$ac_ext
14078fi
14079ac_res=`eval 'as_val=${'$as_ac_var'}
14080		 $as_echo "$as_val"'`
14081	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14082$as_echo "$ac_res" >&6; }
14083as_val=`eval 'as_val=${'$as_ac_var'}
14084		 $as_echo "$as_val"'`
14085   if test "x$as_val" = x""yes; then
14086  cat >>confdefs.h <<_ACEOF
14087#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14088_ACEOF
14089
14090else
14091  { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14092$as_echo "$as_me: error: bailing out" >&2;}
14093   { (exit 1); exit 1; }; }
14094fi
14095done
14096
14097	# getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
14098# -lseq on Dynix/PTX, -lgen on Unixware.
14099{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
14100$as_echo_n "checking for library containing getmntent... " >&6; }
14101if test "${ac_cv_search_getmntent+set}" = set; then
14102  $as_echo_n "(cached) " >&6
14103else
14104  ac_func_search_save_LIBS=$LIBS
14105cat >conftest.$ac_ext <<_ACEOF
14106/* confdefs.h.  */
14107_ACEOF
14108cat confdefs.h >>conftest.$ac_ext
14109cat >>conftest.$ac_ext <<_ACEOF
14110/* end confdefs.h.  */
14111
14112/* Override any GCC internal prototype to avoid an error.
14113   Use char because int might match the return type of a GCC
14114   builtin and then its argument prototype would still apply.  */
14115#ifdef __cplusplus
14116extern "C"
14117#endif
14118char getmntent ();
14119int
14120main ()
14121{
14122return getmntent ();
14123  ;
14124  return 0;
14125}
14126_ACEOF
14127for ac_lib in '' sun seq gen; do
14128  if test -z "$ac_lib"; then
14129    ac_res="none required"
14130  else
14131    ac_res=-l$ac_lib
14132    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14133  fi
14134  rm -f conftest.$ac_objext conftest$ac_exeext
14135if { (ac_try="$ac_link"
14136case "(($ac_try" in
14137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14138  *) ac_try_echo=$ac_try;;
14139esac
14140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14141$as_echo "$ac_try_echo") >&5
14142  (eval "$ac_link") 2>conftest.er1
14143  ac_status=$?
14144  grep -v '^ *+' conftest.er1 >conftest.err
14145  rm -f conftest.er1
14146  cat conftest.err >&5
14147  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148  (exit $ac_status); } && {
14149	 test -z "$ac_c_werror_flag" ||
14150	 test ! -s conftest.err
14151       } && test -s conftest$ac_exeext && {
14152	 test "$cross_compiling" = yes ||
14153	 $as_test_x conftest$ac_exeext
14154       }; then
14155  ac_cv_search_getmntent=$ac_res
14156else
14157  $as_echo "$as_me: failed program was:" >&5
14158sed 's/^/| /' conftest.$ac_ext >&5
14159
14160
14161fi
14162
14163rm -rf conftest.dSYM
14164rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14165      conftest$ac_exeext
14166  if test "${ac_cv_search_getmntent+set}" = set; then
14167  break
14168fi
14169done
14170if test "${ac_cv_search_getmntent+set}" = set; then
14171  :
14172else
14173  ac_cv_search_getmntent=no
14174fi
14175rm conftest.$ac_ext
14176LIBS=$ac_func_search_save_LIBS
14177fi
14178{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
14179$as_echo "$ac_cv_search_getmntent" >&6; }
14180ac_res=$ac_cv_search_getmntent
14181if test "$ac_res" != no; then
14182  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14183  ac_cv_func_getmntent=yes
14184
14185cat >>confdefs.h <<\_ACEOF
14186#define HAVE_GETMNTENT 1
14187_ACEOF
14188
14189else
14190  ac_cv_func_getmntent=no
14191fi
14192
14193
14194#	AC_FUNC_REALLOC
14195
14196
14197for ac_header in sys/select.h sys/socket.h
14198do
14199as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14201  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14202$as_echo_n "checking for $ac_header... " >&6; }
14203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14204  $as_echo_n "(cached) " >&6
14205fi
14206ac_res=`eval 'as_val=${'$as_ac_Header'}
14207		 $as_echo "$as_val"'`
14208	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14209$as_echo "$ac_res" >&6; }
14210else
14211  # Is the header compilable?
14212{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14213$as_echo_n "checking $ac_header usability... " >&6; }
14214cat >conftest.$ac_ext <<_ACEOF
14215/* confdefs.h.  */
14216_ACEOF
14217cat confdefs.h >>conftest.$ac_ext
14218cat >>conftest.$ac_ext <<_ACEOF
14219/* end confdefs.h.  */
14220$ac_includes_default
14221#include <$ac_header>
14222_ACEOF
14223rm -f conftest.$ac_objext
14224if { (ac_try="$ac_compile"
14225case "(($ac_try" in
14226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227  *) ac_try_echo=$ac_try;;
14228esac
14229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14230$as_echo "$ac_try_echo") >&5
14231  (eval "$ac_compile") 2>conftest.er1
14232  ac_status=$?
14233  grep -v '^ *+' conftest.er1 >conftest.err
14234  rm -f conftest.er1
14235  cat conftest.err >&5
14236  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237  (exit $ac_status); } && {
14238	 test -z "$ac_c_werror_flag" ||
14239	 test ! -s conftest.err
14240       } && test -s conftest.$ac_objext; then
14241  ac_header_compiler=yes
14242else
14243  $as_echo "$as_me: failed program was:" >&5
14244sed 's/^/| /' conftest.$ac_ext >&5
14245
14246	ac_header_compiler=no
14247fi
14248
14249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14250{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14251$as_echo "$ac_header_compiler" >&6; }
14252
14253# Is the header present?
14254{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14255$as_echo_n "checking $ac_header presence... " >&6; }
14256cat >conftest.$ac_ext <<_ACEOF
14257/* confdefs.h.  */
14258_ACEOF
14259cat confdefs.h >>conftest.$ac_ext
14260cat >>conftest.$ac_ext <<_ACEOF
14261/* end confdefs.h.  */
14262#include <$ac_header>
14263_ACEOF
14264if { (ac_try="$ac_cpp conftest.$ac_ext"
14265case "(($ac_try" in
14266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267  *) ac_try_echo=$ac_try;;
14268esac
14269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14270$as_echo "$ac_try_echo") >&5
14271  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14272  ac_status=$?
14273  grep -v '^ *+' conftest.er1 >conftest.err
14274  rm -f conftest.er1
14275  cat conftest.err >&5
14276  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277  (exit $ac_status); } >/dev/null && {
14278	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14279	 test ! -s conftest.err
14280       }; then
14281  ac_header_preproc=yes
14282else
14283  $as_echo "$as_me: failed program was:" >&5
14284sed 's/^/| /' conftest.$ac_ext >&5
14285
14286  ac_header_preproc=no
14287fi
14288
14289rm -f conftest.err conftest.$ac_ext
14290{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14291$as_echo "$ac_header_preproc" >&6; }
14292
14293# So?  What about this header?
14294case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14295  yes:no: )
14296    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14297$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14298    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14299$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14300    ac_header_preproc=yes
14301    ;;
14302  no:yes:* )
14303    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14304$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14305    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14306$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14307    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14308$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14309    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14310$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14311    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14312$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14313    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14314$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14315
14316    ;;
14317esac
14318{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14319$as_echo_n "checking for $ac_header... " >&6; }
14320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14321  $as_echo_n "(cached) " >&6
14322else
14323  eval "$as_ac_Header=\$ac_header_preproc"
14324fi
14325ac_res=`eval 'as_val=${'$as_ac_Header'}
14326		 $as_echo "$as_val"'`
14327	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14328$as_echo "$ac_res" >&6; }
14329
14330fi
14331as_val=`eval 'as_val=${'$as_ac_Header'}
14332		 $as_echo "$as_val"'`
14333   if test "x$as_val" = x""yes; then
14334  cat >>confdefs.h <<_ACEOF
14335#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14336_ACEOF
14337
14338fi
14339
14340done
14341
14342{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
14343$as_echo_n "checking types of arguments for select... " >&6; }
14344if test "${ac_cv_func_select_args+set}" = set; then
14345  $as_echo_n "(cached) " >&6
14346else
14347  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14348 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14349  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14350   cat >conftest.$ac_ext <<_ACEOF
14351/* confdefs.h.  */
14352_ACEOF
14353cat confdefs.h >>conftest.$ac_ext
14354cat >>conftest.$ac_ext <<_ACEOF
14355/* end confdefs.h.  */
14356$ac_includes_default
14357#ifdef HAVE_SYS_SELECT_H
14358# include <sys/select.h>
14359#endif
14360#ifdef HAVE_SYS_SOCKET_H
14361# include <sys/socket.h>
14362#endif
14363
14364int
14365main ()
14366{
14367extern int select ($ac_arg1,
14368					    $ac_arg234, $ac_arg234, $ac_arg234,
14369					    $ac_arg5);
14370  ;
14371  return 0;
14372}
14373_ACEOF
14374rm -f conftest.$ac_objext
14375if { (ac_try="$ac_compile"
14376case "(($ac_try" in
14377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378  *) ac_try_echo=$ac_try;;
14379esac
14380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14381$as_echo "$ac_try_echo") >&5
14382  (eval "$ac_compile") 2>conftest.er1
14383  ac_status=$?
14384  grep -v '^ *+' conftest.er1 >conftest.err
14385  rm -f conftest.er1
14386  cat conftest.err >&5
14387  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388  (exit $ac_status); } && {
14389	 test -z "$ac_c_werror_flag" ||
14390	 test ! -s conftest.err
14391       } && test -s conftest.$ac_objext; then
14392  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14393else
14394  $as_echo "$as_me: failed program was:" >&5
14395sed 's/^/| /' conftest.$ac_ext >&5
14396
14397
14398fi
14399
14400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14401  done
14402 done
14403done
14404# Provide a safe default value.
14405: ${ac_cv_func_select_args='int,int *,struct timeval *'}
14406
14407fi
14408{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
14409$as_echo "$ac_cv_func_select_args" >&6; }
14410ac_save_IFS=$IFS; IFS=','
14411set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14412IFS=$ac_save_IFS
14413shift
14414
14415cat >>confdefs.h <<_ACEOF
14416#define SELECT_TYPE_ARG1 $1
14417_ACEOF
14418
14419
14420cat >>confdefs.h <<_ACEOF
14421#define SELECT_TYPE_ARG234 ($2)
14422_ACEOF
14423
14424
14425cat >>confdefs.h <<_ACEOF
14426#define SELECT_TYPE_ARG5 ($3)
14427_ACEOF
14428
14429rm -f conftest*
14430
14431fi
14432
14433if test x$CLUSTER != xnone; then
14434
14435
14436for ac_header in sys/socket.h sys/un.h
14437do
14438as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14439if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14440  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14441$as_echo_n "checking for $ac_header... " >&6; }
14442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14443  $as_echo_n "(cached) " >&6
14444fi
14445ac_res=`eval 'as_val=${'$as_ac_Header'}
14446		 $as_echo "$as_val"'`
14447	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14448$as_echo "$ac_res" >&6; }
14449else
14450  # Is the header compilable?
14451{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14452$as_echo_n "checking $ac_header usability... " >&6; }
14453cat >conftest.$ac_ext <<_ACEOF
14454/* confdefs.h.  */
14455_ACEOF
14456cat confdefs.h >>conftest.$ac_ext
14457cat >>conftest.$ac_ext <<_ACEOF
14458/* end confdefs.h.  */
14459$ac_includes_default
14460#include <$ac_header>
14461_ACEOF
14462rm -f conftest.$ac_objext
14463if { (ac_try="$ac_compile"
14464case "(($ac_try" in
14465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466  *) ac_try_echo=$ac_try;;
14467esac
14468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14469$as_echo "$ac_try_echo") >&5
14470  (eval "$ac_compile") 2>conftest.er1
14471  ac_status=$?
14472  grep -v '^ *+' conftest.er1 >conftest.err
14473  rm -f conftest.er1
14474  cat conftest.err >&5
14475  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476  (exit $ac_status); } && {
14477	 test -z "$ac_c_werror_flag" ||
14478	 test ! -s conftest.err
14479       } && test -s conftest.$ac_objext; then
14480  ac_header_compiler=yes
14481else
14482  $as_echo "$as_me: failed program was:" >&5
14483sed 's/^/| /' conftest.$ac_ext >&5
14484
14485	ac_header_compiler=no
14486fi
14487
14488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14489{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14490$as_echo "$ac_header_compiler" >&6; }
14491
14492# Is the header present?
14493{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14494$as_echo_n "checking $ac_header presence... " >&6; }
14495cat >conftest.$ac_ext <<_ACEOF
14496/* confdefs.h.  */
14497_ACEOF
14498cat confdefs.h >>conftest.$ac_ext
14499cat >>conftest.$ac_ext <<_ACEOF
14500/* end confdefs.h.  */
14501#include <$ac_header>
14502_ACEOF
14503if { (ac_try="$ac_cpp conftest.$ac_ext"
14504case "(($ac_try" in
14505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14506  *) ac_try_echo=$ac_try;;
14507esac
14508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14509$as_echo "$ac_try_echo") >&5
14510  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14511  ac_status=$?
14512  grep -v '^ *+' conftest.er1 >conftest.err
14513  rm -f conftest.er1
14514  cat conftest.err >&5
14515  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516  (exit $ac_status); } >/dev/null && {
14517	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14518	 test ! -s conftest.err
14519       }; then
14520  ac_header_preproc=yes
14521else
14522  $as_echo "$as_me: failed program was:" >&5
14523sed 's/^/| /' conftest.$ac_ext >&5
14524
14525  ac_header_preproc=no
14526fi
14527
14528rm -f conftest.err conftest.$ac_ext
14529{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14530$as_echo "$ac_header_preproc" >&6; }
14531
14532# So?  What about this header?
14533case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14534  yes:no: )
14535    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14536$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14537    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14538$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14539    ac_header_preproc=yes
14540    ;;
14541  no:yes:* )
14542    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14543$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14544    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14545$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14546    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14547$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14548    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14549$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14550    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14551$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14552    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14553$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14554
14555    ;;
14556esac
14557{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14558$as_echo_n "checking for $ac_header... " >&6; }
14559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14560  $as_echo_n "(cached) " >&6
14561else
14562  eval "$as_ac_Header=\$ac_header_preproc"
14563fi
14564ac_res=`eval 'as_val=${'$as_ac_Header'}
14565		 $as_echo "$as_val"'`
14566	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14567$as_echo "$ac_res" >&6; }
14568
14569fi
14570as_val=`eval 'as_val=${'$as_ac_Header'}
14571		 $as_echo "$as_val"'`
14572   if test "x$as_val" = x""yes; then
14573  cat >>confdefs.h <<_ACEOF
14574#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14575_ACEOF
14576
14577else
14578  { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14579$as_echo "$as_me: error: bailing out" >&2;}
14580   { (exit 1); exit 1; }; }
14581fi
14582
14583done
14584
14585
14586for ac_func in socket
14587do
14588as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14589{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14590$as_echo_n "checking for $ac_func... " >&6; }
14591if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14592  $as_echo_n "(cached) " >&6
14593else
14594  cat >conftest.$ac_ext <<_ACEOF
14595/* confdefs.h.  */
14596_ACEOF
14597cat confdefs.h >>conftest.$ac_ext
14598cat >>conftest.$ac_ext <<_ACEOF
14599/* end confdefs.h.  */
14600/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14601   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14602#define $ac_func innocuous_$ac_func
14603
14604/* System header to define __stub macros and hopefully few prototypes,
14605    which can conflict with char $ac_func (); below.
14606    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14607    <limits.h> exists even on freestanding compilers.  */
14608
14609#ifdef __STDC__
14610# include <limits.h>
14611#else
14612# include <assert.h>
14613#endif
14614
14615#undef $ac_func
14616
14617/* Override any GCC internal prototype to avoid an error.
14618   Use char because int might match the return type of a GCC
14619   builtin and then its argument prototype would still apply.  */
14620#ifdef __cplusplus
14621extern "C"
14622#endif
14623char $ac_func ();
14624/* The GNU C library defines this for functions which it implements
14625    to always fail with ENOSYS.  Some functions are actually named
14626    something starting with __ and the normal name is an alias.  */
14627#if defined __stub_$ac_func || defined __stub___$ac_func
14628choke me
14629#endif
14630
14631int
14632main ()
14633{
14634return $ac_func ();
14635  ;
14636  return 0;
14637}
14638_ACEOF
14639rm -f conftest.$ac_objext conftest$ac_exeext
14640if { (ac_try="$ac_link"
14641case "(($ac_try" in
14642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643  *) ac_try_echo=$ac_try;;
14644esac
14645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14646$as_echo "$ac_try_echo") >&5
14647  (eval "$ac_link") 2>conftest.er1
14648  ac_status=$?
14649  grep -v '^ *+' conftest.er1 >conftest.err
14650  rm -f conftest.er1
14651  cat conftest.err >&5
14652  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653  (exit $ac_status); } && {
14654	 test -z "$ac_c_werror_flag" ||
14655	 test ! -s conftest.err
14656       } && test -s conftest$ac_exeext && {
14657	 test "$cross_compiling" = yes ||
14658	 $as_test_x conftest$ac_exeext
14659       }; then
14660  eval "$as_ac_var=yes"
14661else
14662  $as_echo "$as_me: failed program was:" >&5
14663sed 's/^/| /' conftest.$ac_ext >&5
14664
14665	eval "$as_ac_var=no"
14666fi
14667
14668rm -rf conftest.dSYM
14669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14670      conftest$ac_exeext conftest.$ac_ext
14671fi
14672ac_res=`eval 'as_val=${'$as_ac_var'}
14673		 $as_echo "$as_val"'`
14674	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14675$as_echo "$ac_res" >&6; }
14676as_val=`eval 'as_val=${'$as_ac_var'}
14677		 $as_echo "$as_val"'`
14678   if test "x$as_val" = x""yes; then
14679  cat >>confdefs.h <<_ACEOF
14680#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14681_ACEOF
14682
14683else
14684  { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14685$as_echo "$as_me: error: bailing out" >&2;}
14686   { (exit 1); exit 1; }; }
14687fi
14688done
14689
14690fi
14691
14692if test x$HAVE_LIBDL = xyes; then
14693
14694for ac_header in dlfcn.h
14695do
14696as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14698  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14699$as_echo_n "checking for $ac_header... " >&6; }
14700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14701  $as_echo_n "(cached) " >&6
14702fi
14703ac_res=`eval 'as_val=${'$as_ac_Header'}
14704		 $as_echo "$as_val"'`
14705	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14706$as_echo "$ac_res" >&6; }
14707else
14708  # Is the header compilable?
14709{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14710$as_echo_n "checking $ac_header usability... " >&6; }
14711cat >conftest.$ac_ext <<_ACEOF
14712/* confdefs.h.  */
14713_ACEOF
14714cat confdefs.h >>conftest.$ac_ext
14715cat >>conftest.$ac_ext <<_ACEOF
14716/* end confdefs.h.  */
14717$ac_includes_default
14718#include <$ac_header>
14719_ACEOF
14720rm -f conftest.$ac_objext
14721if { (ac_try="$ac_compile"
14722case "(($ac_try" in
14723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724  *) ac_try_echo=$ac_try;;
14725esac
14726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14727$as_echo "$ac_try_echo") >&5
14728  (eval "$ac_compile") 2>conftest.er1
14729  ac_status=$?
14730  grep -v '^ *+' conftest.er1 >conftest.err
14731  rm -f conftest.er1
14732  cat conftest.err >&5
14733  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734  (exit $ac_status); } && {
14735	 test -z "$ac_c_werror_flag" ||
14736	 test ! -s conftest.err
14737       } && test -s conftest.$ac_objext; then
14738  ac_header_compiler=yes
14739else
14740  $as_echo "$as_me: failed program was:" >&5
14741sed 's/^/| /' conftest.$ac_ext >&5
14742
14743	ac_header_compiler=no
14744fi
14745
14746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14747{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14748$as_echo "$ac_header_compiler" >&6; }
14749
14750# Is the header present?
14751{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14752$as_echo_n "checking $ac_header presence... " >&6; }
14753cat >conftest.$ac_ext <<_ACEOF
14754/* confdefs.h.  */
14755_ACEOF
14756cat confdefs.h >>conftest.$ac_ext
14757cat >>conftest.$ac_ext <<_ACEOF
14758/* end confdefs.h.  */
14759#include <$ac_header>
14760_ACEOF
14761if { (ac_try="$ac_cpp conftest.$ac_ext"
14762case "(($ac_try" in
14763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764  *) ac_try_echo=$ac_try;;
14765esac
14766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14767$as_echo "$ac_try_echo") >&5
14768  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14769  ac_status=$?
14770  grep -v '^ *+' conftest.er1 >conftest.err
14771  rm -f conftest.er1
14772  cat conftest.err >&5
14773  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774  (exit $ac_status); } >/dev/null && {
14775	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14776	 test ! -s conftest.err
14777       }; then
14778  ac_header_preproc=yes
14779else
14780  $as_echo "$as_me: failed program was:" >&5
14781sed 's/^/| /' conftest.$ac_ext >&5
14782
14783  ac_header_preproc=no
14784fi
14785
14786rm -f conftest.err conftest.$ac_ext
14787{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14788$as_echo "$ac_header_preproc" >&6; }
14789
14790# So?  What about this header?
14791case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14792  yes:no: )
14793    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14794$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14795    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14796$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14797    ac_header_preproc=yes
14798    ;;
14799  no:yes:* )
14800    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14801$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14802    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14803$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14804    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14805$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14806    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14807$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14808    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14809$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14810    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14811$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14812
14813    ;;
14814esac
14815{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14816$as_echo_n "checking for $ac_header... " >&6; }
14817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14818  $as_echo_n "(cached) " >&6
14819else
14820  eval "$as_ac_Header=\$ac_header_preproc"
14821fi
14822ac_res=`eval 'as_val=${'$as_ac_Header'}
14823		 $as_echo "$as_val"'`
14824	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14825$as_echo "$ac_res" >&6; }
14826
14827fi
14828as_val=`eval 'as_val=${'$as_ac_Header'}
14829		 $as_echo "$as_val"'`
14830   if test "x$as_val" = x""yes; then
14831  cat >>confdefs.h <<_ACEOF
14832#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14833_ACEOF
14834
14835else
14836  { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14837$as_echo "$as_me: error: bailing out" >&2;}
14838   { (exit 1); exit 1; }; }
14839fi
14840
14841done
14842
14843fi
14844
14845if test x$INTL = xyes; then
14846
14847for ac_header in libintl.h
14848do
14849as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14850if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14851  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14852$as_echo_n "checking for $ac_header... " >&6; }
14853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14854  $as_echo_n "(cached) " >&6
14855fi
14856ac_res=`eval 'as_val=${'$as_ac_Header'}
14857		 $as_echo "$as_val"'`
14858	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14859$as_echo "$ac_res" >&6; }
14860else
14861  # Is the header compilable?
14862{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14863$as_echo_n "checking $ac_header usability... " >&6; }
14864cat >conftest.$ac_ext <<_ACEOF
14865/* confdefs.h.  */
14866_ACEOF
14867cat confdefs.h >>conftest.$ac_ext
14868cat >>conftest.$ac_ext <<_ACEOF
14869/* end confdefs.h.  */
14870$ac_includes_default
14871#include <$ac_header>
14872_ACEOF
14873rm -f conftest.$ac_objext
14874if { (ac_try="$ac_compile"
14875case "(($ac_try" in
14876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877  *) ac_try_echo=$ac_try;;
14878esac
14879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14880$as_echo "$ac_try_echo") >&5
14881  (eval "$ac_compile") 2>conftest.er1
14882  ac_status=$?
14883  grep -v '^ *+' conftest.er1 >conftest.err
14884  rm -f conftest.er1
14885  cat conftest.err >&5
14886  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887  (exit $ac_status); } && {
14888	 test -z "$ac_c_werror_flag" ||
14889	 test ! -s conftest.err
14890       } && test -s conftest.$ac_objext; then
14891  ac_header_compiler=yes
14892else
14893  $as_echo "$as_me: failed program was:" >&5
14894sed 's/^/| /' conftest.$ac_ext >&5
14895
14896	ac_header_compiler=no
14897fi
14898
14899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14900{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14901$as_echo "$ac_header_compiler" >&6; }
14902
14903# Is the header present?
14904{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14905$as_echo_n "checking $ac_header presence... " >&6; }
14906cat >conftest.$ac_ext <<_ACEOF
14907/* confdefs.h.  */
14908_ACEOF
14909cat confdefs.h >>conftest.$ac_ext
14910cat >>conftest.$ac_ext <<_ACEOF
14911/* end confdefs.h.  */
14912#include <$ac_header>
14913_ACEOF
14914if { (ac_try="$ac_cpp conftest.$ac_ext"
14915case "(($ac_try" in
14916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14917  *) ac_try_echo=$ac_try;;
14918esac
14919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14920$as_echo "$ac_try_echo") >&5
14921  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14922  ac_status=$?
14923  grep -v '^ *+' conftest.er1 >conftest.err
14924  rm -f conftest.er1
14925  cat conftest.err >&5
14926  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927  (exit $ac_status); } >/dev/null && {
14928	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14929	 test ! -s conftest.err
14930       }; then
14931  ac_header_preproc=yes
14932else
14933  $as_echo "$as_me: failed program was:" >&5
14934sed 's/^/| /' conftest.$ac_ext >&5
14935
14936  ac_header_preproc=no
14937fi
14938
14939rm -f conftest.err conftest.$ac_ext
14940{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14941$as_echo "$ac_header_preproc" >&6; }
14942
14943# So?  What about this header?
14944case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14945  yes:no: )
14946    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14947$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14948    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14949$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14950    ac_header_preproc=yes
14951    ;;
14952  no:yes:* )
14953    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14954$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14955    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14956$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14957    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14958$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14959    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14960$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14961    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14962$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14963    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14964$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14965
14966    ;;
14967esac
14968{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14969$as_echo_n "checking for $ac_header... " >&6; }
14970if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14971  $as_echo_n "(cached) " >&6
14972else
14973  eval "$as_ac_Header=\$ac_header_preproc"
14974fi
14975ac_res=`eval 'as_val=${'$as_ac_Header'}
14976		 $as_echo "$as_val"'`
14977	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14978$as_echo "$ac_res" >&6; }
14979
14980fi
14981as_val=`eval 'as_val=${'$as_ac_Header'}
14982		 $as_echo "$as_val"'`
14983   if test "x$as_val" = x""yes; then
14984  cat >>confdefs.h <<_ACEOF
14985#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14986_ACEOF
14987
14988else
14989  { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14990$as_echo "$as_me: error: bailing out" >&2;}
14991   { (exit 1); exit 1; }; }
14992fi
14993
14994done
14995
14996fi
14997
14998if test x$HAVE_SELINUX = xyes; then
14999
15000for ac_header in selinux/selinux.h
15001do
15002as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15003if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15004  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15005$as_echo_n "checking for $ac_header... " >&6; }
15006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15007  $as_echo_n "(cached) " >&6
15008fi
15009ac_res=`eval 'as_val=${'$as_ac_Header'}
15010		 $as_echo "$as_val"'`
15011	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15012$as_echo "$ac_res" >&6; }
15013else
15014  # Is the header compilable?
15015{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15016$as_echo_n "checking $ac_header usability... " >&6; }
15017cat >conftest.$ac_ext <<_ACEOF
15018/* confdefs.h.  */
15019_ACEOF
15020cat confdefs.h >>conftest.$ac_ext
15021cat >>conftest.$ac_ext <<_ACEOF
15022/* end confdefs.h.  */
15023$ac_includes_default
15024#include <$ac_header>
15025_ACEOF
15026rm -f conftest.$ac_objext
15027if { (ac_try="$ac_compile"
15028case "(($ac_try" in
15029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030  *) ac_try_echo=$ac_try;;
15031esac
15032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15033$as_echo "$ac_try_echo") >&5
15034  (eval "$ac_compile") 2>conftest.er1
15035  ac_status=$?
15036  grep -v '^ *+' conftest.er1 >conftest.err
15037  rm -f conftest.er1
15038  cat conftest.err >&5
15039  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040  (exit $ac_status); } && {
15041	 test -z "$ac_c_werror_flag" ||
15042	 test ! -s conftest.err
15043       } && test -s conftest.$ac_objext; then
15044  ac_header_compiler=yes
15045else
15046  $as_echo "$as_me: failed program was:" >&5
15047sed 's/^/| /' conftest.$ac_ext >&5
15048
15049	ac_header_compiler=no
15050fi
15051
15052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15053{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15054$as_echo "$ac_header_compiler" >&6; }
15055
15056# Is the header present?
15057{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15058$as_echo_n "checking $ac_header presence... " >&6; }
15059cat >conftest.$ac_ext <<_ACEOF
15060/* confdefs.h.  */
15061_ACEOF
15062cat confdefs.h >>conftest.$ac_ext
15063cat >>conftest.$ac_ext <<_ACEOF
15064/* end confdefs.h.  */
15065#include <$ac_header>
15066_ACEOF
15067if { (ac_try="$ac_cpp conftest.$ac_ext"
15068case "(($ac_try" in
15069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070  *) ac_try_echo=$ac_try;;
15071esac
15072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15073$as_echo "$ac_try_echo") >&5
15074  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15075  ac_status=$?
15076  grep -v '^ *+' conftest.er1 >conftest.err
15077  rm -f conftest.er1
15078  cat conftest.err >&5
15079  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080  (exit $ac_status); } >/dev/null && {
15081	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15082	 test ! -s conftest.err
15083       }; then
15084  ac_header_preproc=yes
15085else
15086  $as_echo "$as_me: failed program was:" >&5
15087sed 's/^/| /' conftest.$ac_ext >&5
15088
15089  ac_header_preproc=no
15090fi
15091
15092rm -f conftest.err conftest.$ac_ext
15093{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15094$as_echo "$ac_header_preproc" >&6; }
15095
15096# So?  What about this header?
15097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15098  yes:no: )
15099    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15100$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15101    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15102$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15103    ac_header_preproc=yes
15104    ;;
15105  no:yes:* )
15106    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15107$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15108    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15109$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15110    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15111$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15112    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15113$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15114    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15115$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15116    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15117$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15118
15119    ;;
15120esac
15121{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15122$as_echo_n "checking for $ac_header... " >&6; }
15123if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15124  $as_echo_n "(cached) " >&6
15125else
15126  eval "$as_ac_Header=\$ac_header_preproc"
15127fi
15128ac_res=`eval 'as_val=${'$as_ac_Header'}
15129		 $as_echo "$as_val"'`
15130	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15131$as_echo "$ac_res" >&6; }
15132
15133fi
15134as_val=`eval 'as_val=${'$as_ac_Header'}
15135		 $as_echo "$as_val"'`
15136   if test "x$as_val" = x""yes; then
15137  cat >>confdefs.h <<_ACEOF
15138#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15139_ACEOF
15140
15141else
15142  { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15143$as_echo "$as_me: error: bailing out" >&2;}
15144   { (exit 1); exit 1; }; }
15145fi
15146
15147done
15148
15149fi
15150
15151if test x$UDEV_SYNC = xyes; then
15152
15153
15154for ac_header in sys/ipc.h sys/sem.h
15155do
15156as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15158  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15159$as_echo_n "checking for $ac_header... " >&6; }
15160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15161  $as_echo_n "(cached) " >&6
15162fi
15163ac_res=`eval 'as_val=${'$as_ac_Header'}
15164		 $as_echo "$as_val"'`
15165	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15166$as_echo "$ac_res" >&6; }
15167else
15168  # Is the header compilable?
15169{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15170$as_echo_n "checking $ac_header usability... " >&6; }
15171cat >conftest.$ac_ext <<_ACEOF
15172/* confdefs.h.  */
15173_ACEOF
15174cat confdefs.h >>conftest.$ac_ext
15175cat >>conftest.$ac_ext <<_ACEOF
15176/* end confdefs.h.  */
15177$ac_includes_default
15178#include <$ac_header>
15179_ACEOF
15180rm -f conftest.$ac_objext
15181if { (ac_try="$ac_compile"
15182case "(($ac_try" in
15183  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15184  *) ac_try_echo=$ac_try;;
15185esac
15186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15187$as_echo "$ac_try_echo") >&5
15188  (eval "$ac_compile") 2>conftest.er1
15189  ac_status=$?
15190  grep -v '^ *+' conftest.er1 >conftest.err
15191  rm -f conftest.er1
15192  cat conftest.err >&5
15193  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194  (exit $ac_status); } && {
15195	 test -z "$ac_c_werror_flag" ||
15196	 test ! -s conftest.err
15197       } && test -s conftest.$ac_objext; then
15198  ac_header_compiler=yes
15199else
15200  $as_echo "$as_me: failed program was:" >&5
15201sed 's/^/| /' conftest.$ac_ext >&5
15202
15203	ac_header_compiler=no
15204fi
15205
15206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15207{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15208$as_echo "$ac_header_compiler" >&6; }
15209
15210# Is the header present?
15211{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15212$as_echo_n "checking $ac_header presence... " >&6; }
15213cat >conftest.$ac_ext <<_ACEOF
15214/* confdefs.h.  */
15215_ACEOF
15216cat confdefs.h >>conftest.$ac_ext
15217cat >>conftest.$ac_ext <<_ACEOF
15218/* end confdefs.h.  */
15219#include <$ac_header>
15220_ACEOF
15221if { (ac_try="$ac_cpp conftest.$ac_ext"
15222case "(($ac_try" in
15223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224  *) ac_try_echo=$ac_try;;
15225esac
15226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15227$as_echo "$ac_try_echo") >&5
15228  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15229  ac_status=$?
15230  grep -v '^ *+' conftest.er1 >conftest.err
15231  rm -f conftest.er1
15232  cat conftest.err >&5
15233  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234  (exit $ac_status); } >/dev/null && {
15235	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15236	 test ! -s conftest.err
15237       }; then
15238  ac_header_preproc=yes
15239else
15240  $as_echo "$as_me: failed program was:" >&5
15241sed 's/^/| /' conftest.$ac_ext >&5
15242
15243  ac_header_preproc=no
15244fi
15245
15246rm -f conftest.err conftest.$ac_ext
15247{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15248$as_echo "$ac_header_preproc" >&6; }
15249
15250# So?  What about this header?
15251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15252  yes:no: )
15253    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15254$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15255    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15256$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15257    ac_header_preproc=yes
15258    ;;
15259  no:yes:* )
15260    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15261$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15262    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15263$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15264    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15265$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15266    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15267$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15268    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15269$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15270    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15271$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15272
15273    ;;
15274esac
15275{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15276$as_echo_n "checking for $ac_header... " >&6; }
15277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15278  $as_echo_n "(cached) " >&6
15279else
15280  eval "$as_ac_Header=\$ac_header_preproc"
15281fi
15282ac_res=`eval 'as_val=${'$as_ac_Header'}
15283		 $as_echo "$as_val"'`
15284	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15285$as_echo "$ac_res" >&6; }
15286
15287fi
15288as_val=`eval 'as_val=${'$as_ac_Header'}
15289		 $as_echo "$as_val"'`
15290   if test "x$as_val" = x""yes; then
15291  cat >>confdefs.h <<_ACEOF
15292#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15293_ACEOF
15294
15295else
15296  { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
15297$as_echo "$as_me: error: bailing out" >&2;}
15298   { (exit 1); exit 1; }; }
15299fi
15300
15301done
15302
15303fi
15304
15305################################################################################
15306# Extract the first word of "modprobe", so it can be a program name with args.
15307set dummy modprobe; ac_word=$2
15308{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15309$as_echo_n "checking for $ac_word... " >&6; }
15310if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
15311  $as_echo_n "(cached) " >&6
15312else
15313  case $MODPROBE_CMD in
15314  [\\/]* | ?:[\\/]*)
15315  ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
15316  ;;
15317  *)
15318  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15319for as_dir in $PATH
15320do
15321  IFS=$as_save_IFS
15322  test -z "$as_dir" && as_dir=.
15323  for ac_exec_ext in '' $ac_executable_extensions; do
15324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15325    ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
15326    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15327    break 2
15328  fi
15329done
15330done
15331IFS=$as_save_IFS
15332
15333  ;;
15334esac
15335fi
15336MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
15337if test -n "$MODPROBE_CMD"; then
15338  { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
15339$as_echo "$MODPROBE_CMD" >&6; }
15340else
15341  { $as_echo "$as_me:$LINENO: result: no" >&5
15342$as_echo "no" >&6; }
15343fi
15344
15345
15346
15347if test x$MODPROBE_CMD != x; then
15348
15349cat >>confdefs.h <<_ACEOF
15350#define MODPROBE_CMD "$MODPROBE_CMD"
15351_ACEOF
15352
15353fi
15354
15355################################################################################
15356
15357
15358if test "$BUILD_DMEVENTD" = yes; then
15359
15360# Check whether --with-dmeventd-pidfile was given.
15361if test "${with_dmeventd_pidfile+set}" = set; then
15362  withval=$with_dmeventd_pidfile;  cat >>confdefs.h <<_ACEOF
15363#define DMEVENTD_PIDFILE "$withval"
15364_ACEOF
15365
15366else
15367   cat >>confdefs.h <<_ACEOF
15368#define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
15369_ACEOF
15370
15371fi
15372
15373fi
15374
15375
15376
15377if test "$BUILD_DMEVENTD" = yes; then
15378        dmeventd_prefix="$exec_prefix"
15379        if test "x$dmeventd_prefix" = "xNONE"; then
15380                dmeventd_prefix="$prefix"
15381        fi
15382        if test "x$dmeventd_prefix" = "xNONE"; then
15383                dmeventd_prefix=""
15384        fi
15385
15386# Check whether --with-dmeventd-path was given.
15387if test "${with_dmeventd_path+set}" = set; then
15388  withval=$with_dmeventd_path;  cat >>confdefs.h <<_ACEOF
15389#define DMEVENTD_PATH "$withval"
15390_ACEOF
15391
15392else
15393   cat >>confdefs.h <<_ACEOF
15394#define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
15395_ACEOF
15396
15397fi
15398
15399fi
15400
15401################################################################################
15402{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
15403$as_echo_n "checking for kernel interface choice... " >&6; }
15404
15405# Check whether --with-interface was given.
15406if test "${with_interface+set}" = set; then
15407  withval=$with_interface;  interface="$withval"
15408else
15409   interface=ioctl
15410fi
15411
15412if [ "x$interface" != xioctl ];
15413then
15414  { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
15415$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
15416   { (exit 1); exit 1; }; }
15417fi
15418{ $as_echo "$as_me:$LINENO: result: $interface" >&5
15419$as_echo "$interface" >&6; }
15420
15421################################################################################
15422DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
15423
15424cat >>confdefs.h <<_ACEOF
15425#define DM_LIB_VERSION $DM_LIB_VERSION
15426_ACEOF
15427
15428
15429DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
15430
15431LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
15432
15433VER=`cat "$srcdir"/VERSION`
15434LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
15435VER=`echo "$VER" | $AWK '{print $1}'`
15436LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
15437VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
15438LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
15439LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
15440LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
15441LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
15442
15443################################################################################
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528################################################################################
15529ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile"
15530
15531cat >confcache <<\_ACEOF
15532# This file is a shell script that caches the results of configure
15533# tests run on this system so they can be shared between configure
15534# scripts and configure runs, see configure's option --config-cache.
15535# It is not useful on other systems.  If it contains results you don't
15536# want to keep, you may remove or edit it.
15537#
15538# config.status only pays attention to the cache file if you give it
15539# the --recheck option to rerun configure.
15540#
15541# `ac_cv_env_foo' variables (set or unset) will be overridden when
15542# loading this file, other *unset* `ac_cv_foo' will be assigned the
15543# following values.
15544
15545_ACEOF
15546
15547# The following way of writing the cache mishandles newlines in values,
15548# but we know of no workaround that is simple, portable, and efficient.
15549# So, we kill variables containing newlines.
15550# Ultrix sh set writes to stderr and can't be redirected directly,
15551# and sets the high bit in the cache file unless we assign to the vars.
15552(
15553  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15554    eval ac_val=\$$ac_var
15555    case $ac_val in #(
15556    *${as_nl}*)
15557      case $ac_var in #(
15558      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15559$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15560      esac
15561      case $ac_var in #(
15562      _ | IFS | as_nl) ;; #(
15563      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15564      *) $as_unset $ac_var ;;
15565      esac ;;
15566    esac
15567  done
15568
15569  (set) 2>&1 |
15570    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15571    *${as_nl}ac_space=\ *)
15572      # `set' does not quote correctly, so add quotes (double-quote
15573      # substitution turns \\\\ into \\, and sed turns \\ into \).
15574      sed -n \
15575	"s/'/'\\\\''/g;
15576	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15577      ;; #(
15578    *)
15579      # `set' quotes correctly as required by POSIX, so do not add quotes.
15580      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15581      ;;
15582    esac |
15583    sort
15584) |
15585  sed '
15586     /^ac_cv_env_/b end
15587     t clear
15588     :clear
15589     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15590     t end
15591     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15592     :end' >>confcache
15593if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15594  if test -w "$cache_file"; then
15595    test "x$cache_file" != "x/dev/null" &&
15596      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15597$as_echo "$as_me: updating cache $cache_file" >&6;}
15598    cat confcache >$cache_file
15599  else
15600    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15601$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15602  fi
15603fi
15604rm -f confcache
15605
15606test "x$prefix" = xNONE && prefix=$ac_default_prefix
15607# Let make expand exec_prefix.
15608test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15609
15610DEFS=-DHAVE_CONFIG_H
15611
15612ac_libobjs=
15613ac_ltlibobjs=
15614for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15615  # 1. Remove the extension, and $U if already installed.
15616  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15617  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15618  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15619  #    will be set to the directory where LIBOBJS objects are built.
15620  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15621  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15622done
15623LIBOBJS=$ac_libobjs
15624
15625LTLIBOBJS=$ac_ltlibobjs
15626
15627
15628
15629: ${CONFIG_STATUS=./config.status}
15630ac_write_fail=0
15631ac_clean_files_save=$ac_clean_files
15632ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15633{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15634$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15635cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15636#! $SHELL
15637# Generated by $as_me.
15638# Run this file to recreate the current configuration.
15639# Compiler output produced by configure, useful for debugging
15640# configure, is in config.log if it exists.
15641
15642debug=false
15643ac_cs_recheck=false
15644ac_cs_silent=false
15645SHELL=\${CONFIG_SHELL-$SHELL}
15646_ACEOF
15647
15648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15649## --------------------- ##
15650## M4sh Initialization.  ##
15651## --------------------- ##
15652
15653# Be more Bourne compatible
15654DUALCASE=1; export DUALCASE # for MKS sh
15655if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15656  emulate sh
15657  NULLCMD=:
15658  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15659  # is contrary to our usage.  Disable this feature.
15660  alias -g '${1+"$@"}'='"$@"'
15661  setopt NO_GLOB_SUBST
15662else
15663  case `(set -o) 2>/dev/null` in
15664  *posix*) set -o posix ;;
15665esac
15666
15667fi
15668
15669
15670
15671
15672# PATH needs CR
15673# Avoid depending upon Character Ranges.
15674as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15675as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15676as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15677as_cr_digits='0123456789'
15678as_cr_alnum=$as_cr_Letters$as_cr_digits
15679
15680as_nl='
15681'
15682export as_nl
15683# Printing a long string crashes Solaris 7 /usr/bin/printf.
15684as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15685as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15686as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15687if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15688  as_echo='printf %s\n'
15689  as_echo_n='printf %s'
15690else
15691  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15692    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15693    as_echo_n='/usr/ucb/echo -n'
15694  else
15695    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15696    as_echo_n_body='eval
15697      arg=$1;
15698      case $arg in
15699      *"$as_nl"*)
15700	expr "X$arg" : "X\\(.*\\)$as_nl";
15701	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15702      esac;
15703      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15704    '
15705    export as_echo_n_body
15706    as_echo_n='sh -c $as_echo_n_body as_echo'
15707  fi
15708  export as_echo_body
15709  as_echo='sh -c $as_echo_body as_echo'
15710fi
15711
15712# The user is always right.
15713if test "${PATH_SEPARATOR+set}" != set; then
15714  PATH_SEPARATOR=:
15715  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15716    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15717      PATH_SEPARATOR=';'
15718  }
15719fi
15720
15721# Support unset when possible.
15722if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15723  as_unset=unset
15724else
15725  as_unset=false
15726fi
15727
15728
15729# IFS
15730# We need space, tab and new line, in precisely that order.  Quoting is
15731# there to prevent editors from complaining about space-tab.
15732# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15733# splitting by setting IFS to empty value.)
15734IFS=" ""	$as_nl"
15735
15736# Find who we are.  Look in the path if we contain no directory separator.
15737case $0 in
15738  *[\\/]* ) as_myself=$0 ;;
15739  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15740for as_dir in $PATH
15741do
15742  IFS=$as_save_IFS
15743  test -z "$as_dir" && as_dir=.
15744  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15745done
15746IFS=$as_save_IFS
15747
15748     ;;
15749esac
15750# We did not find ourselves, most probably we were run as `sh COMMAND'
15751# in which case we are not to be found in the path.
15752if test "x$as_myself" = x; then
15753  as_myself=$0
15754fi
15755if test ! -f "$as_myself"; then
15756  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15757  { (exit 1); exit 1; }
15758fi
15759
15760# Work around bugs in pre-3.0 UWIN ksh.
15761for as_var in ENV MAIL MAILPATH
15762do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15763done
15764PS1='$ '
15765PS2='> '
15766PS4='+ '
15767
15768# NLS nuisances.
15769LC_ALL=C
15770export LC_ALL
15771LANGUAGE=C
15772export LANGUAGE
15773
15774# Required to use basename.
15775if expr a : '\(a\)' >/dev/null 2>&1 &&
15776   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15777  as_expr=expr
15778else
15779  as_expr=false
15780fi
15781
15782if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15783  as_basename=basename
15784else
15785  as_basename=false
15786fi
15787
15788
15789# Name of the executable.
15790as_me=`$as_basename -- "$0" ||
15791$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15792	 X"$0" : 'X\(//\)$' \| \
15793	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15794$as_echo X/"$0" |
15795    sed '/^.*\/\([^/][^/]*\)\/*$/{
15796	    s//\1/
15797	    q
15798	  }
15799	  /^X\/\(\/\/\)$/{
15800	    s//\1/
15801	    q
15802	  }
15803	  /^X\/\(\/\).*/{
15804	    s//\1/
15805	    q
15806	  }
15807	  s/.*/./; q'`
15808
15809# CDPATH.
15810$as_unset CDPATH
15811
15812
15813
15814  as_lineno_1=$LINENO
15815  as_lineno_2=$LINENO
15816  test "x$as_lineno_1" != "x$as_lineno_2" &&
15817  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15818
15819  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15820  # uniformly replaced by the line number.  The first 'sed' inserts a
15821  # line-number line after each line using $LINENO; the second 'sed'
15822  # does the real work.  The second script uses 'N' to pair each
15823  # line-number line with the line containing $LINENO, and appends
15824  # trailing '-' during substitution so that $LINENO is not a special
15825  # case at line end.
15826  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15827  # scripts with optimization help from Paolo Bonzini.  Blame Lee
15828  # E. McMahon (1931-1989) for sed's syntax.  :-)
15829  sed -n '
15830    p
15831    /[$]LINENO/=
15832  ' <$as_myself |
15833    sed '
15834      s/[$]LINENO.*/&-/
15835      t lineno
15836      b
15837      :lineno
15838      N
15839      :loop
15840      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15841      t loop
15842      s/-\n.*//
15843    ' >$as_me.lineno &&
15844  chmod +x "$as_me.lineno" ||
15845    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15846   { (exit 1); exit 1; }; }
15847
15848  # Don't try to exec as it changes $[0], causing all sort of problems
15849  # (the dirname of $[0] is not the place where we might find the
15850  # original and so on.  Autoconf is especially sensitive to this).
15851  . "./$as_me.lineno"
15852  # Exit status is that of the last command.
15853  exit
15854}
15855
15856
15857if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15858  as_dirname=dirname
15859else
15860  as_dirname=false
15861fi
15862
15863ECHO_C= ECHO_N= ECHO_T=
15864case `echo -n x` in
15865-n*)
15866  case `echo 'x\c'` in
15867  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15868  *)   ECHO_C='\c';;
15869  esac;;
15870*)
15871  ECHO_N='-n';;
15872esac
15873if expr a : '\(a\)' >/dev/null 2>&1 &&
15874   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15875  as_expr=expr
15876else
15877  as_expr=false
15878fi
15879
15880rm -f conf$$ conf$$.exe conf$$.file
15881if test -d conf$$.dir; then
15882  rm -f conf$$.dir/conf$$.file
15883else
15884  rm -f conf$$.dir
15885  mkdir conf$$.dir 2>/dev/null
15886fi
15887if (echo >conf$$.file) 2>/dev/null; then
15888  if ln -s conf$$.file conf$$ 2>/dev/null; then
15889    as_ln_s='ln -s'
15890    # ... but there are two gotchas:
15891    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15892    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15893    # In both cases, we have to default to `cp -p'.
15894    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15895      as_ln_s='cp -p'
15896  elif ln conf$$.file conf$$ 2>/dev/null; then
15897    as_ln_s=ln
15898  else
15899    as_ln_s='cp -p'
15900  fi
15901else
15902  as_ln_s='cp -p'
15903fi
15904rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15905rmdir conf$$.dir 2>/dev/null
15906
15907if mkdir -p . 2>/dev/null; then
15908  as_mkdir_p=:
15909else
15910  test -d ./-p && rmdir ./-p
15911  as_mkdir_p=false
15912fi
15913
15914if test -x / >/dev/null 2>&1; then
15915  as_test_x='test -x'
15916else
15917  if ls -dL / >/dev/null 2>&1; then
15918    as_ls_L_option=L
15919  else
15920    as_ls_L_option=
15921  fi
15922  as_test_x='
15923    eval sh -c '\''
15924      if test -d "$1"; then
15925	test -d "$1/.";
15926      else
15927	case $1 in
15928	-*)set "./$1";;
15929	esac;
15930	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15931	???[sx]*):;;*)false;;esac;fi
15932    '\'' sh
15933  '
15934fi
15935as_executable_p=$as_test_x
15936
15937# Sed expression to map a string onto a valid CPP name.
15938as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15939
15940# Sed expression to map a string onto a valid variable name.
15941as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15942
15943
15944exec 6>&1
15945
15946# Save the log message, to keep $[0] and so on meaningful, and to
15947# report actual input values of CONFIG_FILES etc. instead of their
15948# values after options handling.
15949ac_log="
15950This file was extended by $as_me, which was
15951generated by GNU Autoconf 2.63.  Invocation command line was
15952
15953  CONFIG_FILES    = $CONFIG_FILES
15954  CONFIG_HEADERS  = $CONFIG_HEADERS
15955  CONFIG_LINKS    = $CONFIG_LINKS
15956  CONFIG_COMMANDS = $CONFIG_COMMANDS
15957  $ $0 $@
15958
15959on `(hostname || uname -n) 2>/dev/null | sed 1q`
15960"
15961
15962_ACEOF
15963
15964case $ac_config_files in *"
15965"*) set x $ac_config_files; shift; ac_config_files=$*;;
15966esac
15967
15968case $ac_config_headers in *"
15969"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15970esac
15971
15972
15973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15974# Files that config.status was made for.
15975config_files="$ac_config_files"
15976config_headers="$ac_config_headers"
15977
15978_ACEOF
15979
15980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15981ac_cs_usage="\
15982\`$as_me' instantiates files from templates according to the
15983current configuration.
15984
15985Usage: $0 [OPTION]... [FILE]...
15986
15987  -h, --help       print this help, then exit
15988  -V, --version    print version number and configuration settings, then exit
15989  -q, --quiet, --silent
15990                   do not print progress messages
15991  -d, --debug      don't remove temporary files
15992      --recheck    update $as_me by reconfiguring in the same conditions
15993      --file=FILE[:TEMPLATE]
15994                   instantiate the configuration file FILE
15995      --header=FILE[:TEMPLATE]
15996                   instantiate the configuration header FILE
15997
15998Configuration files:
15999$config_files
16000
16001Configuration headers:
16002$config_headers
16003
16004Report bugs to <bug-autoconf@gnu.org>."
16005
16006_ACEOF
16007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16008ac_cs_version="\\
16009config.status
16010configured by $0, generated by GNU Autoconf 2.63,
16011  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16012
16013Copyright (C) 2008 Free Software Foundation, Inc.
16014This config.status script is free software; the Free Software Foundation
16015gives unlimited permission to copy, distribute and modify it."
16016
16017ac_pwd='$ac_pwd'
16018srcdir='$srcdir'
16019INSTALL='$INSTALL'
16020MKDIR_P='$MKDIR_P'
16021AWK='$AWK'
16022test -n "\$AWK" || AWK=awk
16023_ACEOF
16024
16025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16026# The default lists apply if the user does not specify any file.
16027ac_need_defaults=:
16028while test $# != 0
16029do
16030  case $1 in
16031  --*=*)
16032    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16033    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16034    ac_shift=:
16035    ;;
16036  *)
16037    ac_option=$1
16038    ac_optarg=$2
16039    ac_shift=shift
16040    ;;
16041  esac
16042
16043  case $ac_option in
16044  # Handling of the options.
16045  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16046    ac_cs_recheck=: ;;
16047  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16048    $as_echo "$ac_cs_version"; exit ;;
16049  --debug | --debu | --deb | --de | --d | -d )
16050    debug=: ;;
16051  --file | --fil | --fi | --f )
16052    $ac_shift
16053    case $ac_optarg in
16054    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16055    esac
16056    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16057    ac_need_defaults=false;;
16058  --header | --heade | --head | --hea )
16059    $ac_shift
16060    case $ac_optarg in
16061    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16062    esac
16063    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16064    ac_need_defaults=false;;
16065  --he | --h)
16066    # Conflict between --help and --header
16067    { $as_echo "$as_me: error: ambiguous option: $1
16068Try \`$0 --help' for more information." >&2
16069   { (exit 1); exit 1; }; };;
16070  --help | --hel | -h )
16071    $as_echo "$ac_cs_usage"; exit ;;
16072  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16073  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16074    ac_cs_silent=: ;;
16075
16076  # This is an error.
16077  -*) { $as_echo "$as_me: error: unrecognized option: $1
16078Try \`$0 --help' for more information." >&2
16079   { (exit 1); exit 1; }; } ;;
16080
16081  *) ac_config_targets="$ac_config_targets $1"
16082     ac_need_defaults=false ;;
16083
16084  esac
16085  shift
16086done
16087
16088ac_configure_extra_args=
16089
16090if $ac_cs_silent; then
16091  exec 6>/dev/null
16092  ac_configure_extra_args="$ac_configure_extra_args --silent"
16093fi
16094
16095_ACEOF
16096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16097if \$ac_cs_recheck; then
16098  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16099  shift
16100  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16101  CONFIG_SHELL='$SHELL'
16102  export CONFIG_SHELL
16103  exec "\$@"
16104fi
16105
16106_ACEOF
16107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16108exec 5>>config.log
16109{
16110  echo
16111  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16112## Running $as_me. ##
16113_ASBOX
16114  $as_echo "$ac_log"
16115} >&5
16116
16117_ACEOF
16118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16119_ACEOF
16120
16121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16122
16123# Handling of arguments.
16124for ac_config_target in $ac_config_targets
16125do
16126  case $ac_config_target in
16127    "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
16128    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16129    "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
16130    "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
16131    "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
16132    "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
16133    "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
16134    "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
16135    "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
16136    "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
16137    "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
16138    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16139    "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
16140    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16141    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16142    "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
16143    "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
16144    "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
16145    "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
16146    "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
16147    "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
16148    "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
16149    "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
16150    "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
16151    "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
16152    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16153    "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
16154    "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
16155    "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
16156    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
16157    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16158    "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
16159    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16160    "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
16161
16162  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16163$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16164   { (exit 1); exit 1; }; };;
16165  esac
16166done
16167
16168
16169# If the user did not use the arguments to specify the items to instantiate,
16170# then the envvar interface is used.  Set only those that are not.
16171# We use the long form for the default assignment because of an extremely
16172# bizarre bug on SunOS 4.1.3.
16173if $ac_need_defaults; then
16174  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16175  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16176fi
16177
16178# Have a temporary directory for convenience.  Make it in the build tree
16179# simply because there is no reason against having it here, and in addition,
16180# creating and moving files from /tmp can sometimes cause problems.
16181# Hook for its removal unless debugging.
16182# Note that there is a small window in which the directory will not be cleaned:
16183# after its creation but before its name has been assigned to `$tmp'.
16184$debug ||
16185{
16186  tmp=
16187  trap 'exit_status=$?
16188  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16189' 0
16190  trap '{ (exit 1); exit 1; }' 1 2 13 15
16191}
16192# Create a (secure) tmp directory for tmp files.
16193
16194{
16195  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16196  test -n "$tmp" && test -d "$tmp"
16197}  ||
16198{
16199  tmp=./conf$$-$RANDOM
16200  (umask 077 && mkdir "$tmp")
16201} ||
16202{
16203   $as_echo "$as_me: cannot create a temporary directory in ." >&2
16204   { (exit 1); exit 1; }
16205}
16206
16207# Set up the scripts for CONFIG_FILES section.
16208# No need to generate them if there are no CONFIG_FILES.
16209# This happens for instance with `./config.status config.h'.
16210if test -n "$CONFIG_FILES"; then
16211
16212
16213ac_cr='
16214'
16215ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16216if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16217  ac_cs_awk_cr='\\r'
16218else
16219  ac_cs_awk_cr=$ac_cr
16220fi
16221
16222echo 'BEGIN {' >"$tmp/subs1.awk" &&
16223_ACEOF
16224
16225
16226{
16227  echo "cat >conf$$subs.awk <<_ACEOF" &&
16228  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16229  echo "_ACEOF"
16230} >conf$$subs.sh ||
16231  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16232$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16233   { (exit 1); exit 1; }; }
16234ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16235ac_delim='%!_!# '
16236for ac_last_try in false false false false false :; do
16237  . ./conf$$subs.sh ||
16238    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16239$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16240   { (exit 1); exit 1; }; }
16241
16242  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16243  if test $ac_delim_n = $ac_delim_num; then
16244    break
16245  elif $ac_last_try; then
16246    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16247$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16248   { (exit 1); exit 1; }; }
16249  else
16250    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16251  fi
16252done
16253rm -f conf$$subs.sh
16254
16255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16256cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16257_ACEOF
16258sed -n '
16259h
16260s/^/S["/; s/!.*/"]=/
16261p
16262g
16263s/^[^!]*!//
16264:repl
16265t repl
16266s/'"$ac_delim"'$//
16267t delim
16268:nl
16269h
16270s/\(.\{148\}\).*/\1/
16271t more1
16272s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16273p
16274n
16275b repl
16276:more1
16277s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16278p
16279g
16280s/.\{148\}//
16281t nl
16282:delim
16283h
16284s/\(.\{148\}\).*/\1/
16285t more2
16286s/["\\]/\\&/g; s/^/"/; s/$/"/
16287p
16288b
16289:more2
16290s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16291p
16292g
16293s/.\{148\}//
16294t delim
16295' <conf$$subs.awk | sed '
16296/^[^""]/{
16297  N
16298  s/\n//
16299}
16300' >>$CONFIG_STATUS || ac_write_fail=1
16301rm -f conf$$subs.awk
16302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16303_ACAWK
16304cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16305  for (key in S) S_is_set[key] = 1
16306  FS = ""
16307
16308}
16309{
16310  line = $ 0
16311  nfields = split(line, field, "@")
16312  substed = 0
16313  len = length(field[1])
16314  for (i = 2; i < nfields; i++) {
16315    key = field[i]
16316    keylen = length(key)
16317    if (S_is_set[key]) {
16318      value = S[key]
16319      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16320      len += length(value) + length(field[++i])
16321      substed = 1
16322    } else
16323      len += 1 + keylen
16324  }
16325
16326  print line
16327}
16328
16329_ACAWK
16330_ACEOF
16331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16332if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16333  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16334else
16335  cat
16336fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16337  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16338$as_echo "$as_me: error: could not setup config files machinery" >&2;}
16339   { (exit 1); exit 1; }; }
16340_ACEOF
16341
16342# VPATH may cause trouble with some makes, so we remove $(srcdir),
16343# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16344# trailing colons and then remove the whole line if VPATH becomes empty
16345# (actually we leave an empty line to preserve line numbers).
16346if test "x$srcdir" = x.; then
16347  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
16348s/:*\$(srcdir):*/:/
16349s/:*\${srcdir}:*/:/
16350s/:*@srcdir@:*/:/
16351s/^\([^=]*=[	 ]*\):*/\1/
16352s/:*$//
16353s/^[^=]*=[	 ]*$//
16354}'
16355fi
16356
16357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16358fi # test -n "$CONFIG_FILES"
16359
16360# Set up the scripts for CONFIG_HEADERS section.
16361# No need to generate them if there are no CONFIG_HEADERS.
16362# This happens for instance with `./config.status Makefile'.
16363if test -n "$CONFIG_HEADERS"; then
16364cat >"$tmp/defines.awk" <<\_ACAWK ||
16365BEGIN {
16366_ACEOF
16367
16368# Transform confdefs.h into an awk script `defines.awk', embedded as
16369# here-document in config.status, that substitutes the proper values into
16370# config.h.in to produce config.h.
16371
16372# Create a delimiter string that does not exist in confdefs.h, to ease
16373# handling of long lines.
16374ac_delim='%!_!# '
16375for ac_last_try in false false :; do
16376  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16377  if test -z "$ac_t"; then
16378    break
16379  elif $ac_last_try; then
16380    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16381$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16382   { (exit 1); exit 1; }; }
16383  else
16384    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16385  fi
16386done
16387
16388# For the awk script, D is an array of macro values keyed by name,
16389# likewise P contains macro parameters if any.  Preserve backslash
16390# newline sequences.
16391
16392ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16393sed -n '
16394s/.\{148\}/&'"$ac_delim"'/g
16395t rset
16396:rset
16397s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16398t def
16399d
16400:def
16401s/\\$//
16402t bsnl
16403s/["\\]/\\&/g
16404s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16405D["\1"]=" \3"/p
16406s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16407d
16408:bsnl
16409s/["\\]/\\&/g
16410s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16411D["\1"]=" \3\\\\\\n"\\/p
16412t cont
16413s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16414t cont
16415d
16416:cont
16417n
16418s/.\{148\}/&'"$ac_delim"'/g
16419t clear
16420:clear
16421s/\\$//
16422t bsnlc
16423s/["\\]/\\&/g; s/^/"/; s/$/"/p
16424d
16425:bsnlc
16426s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16427b cont
16428' <confdefs.h | sed '
16429s/'"$ac_delim"'/"\\\
16430"/g' >>$CONFIG_STATUS || ac_write_fail=1
16431
16432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16433  for (key in D) D_is_set[key] = 1
16434  FS = ""
16435}
16436/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16437  line = \$ 0
16438  split(line, arg, " ")
16439  if (arg[1] == "#") {
16440    defundef = arg[2]
16441    mac1 = arg[3]
16442  } else {
16443    defundef = substr(arg[1], 2)
16444    mac1 = arg[2]
16445  }
16446  split(mac1, mac2, "(") #)
16447  macro = mac2[1]
16448  prefix = substr(line, 1, index(line, defundef) - 1)
16449  if (D_is_set[macro]) {
16450    # Preserve the white space surrounding the "#".
16451    print prefix "define", macro P[macro] D[macro]
16452    next
16453  } else {
16454    # Replace #undef with comments.  This is necessary, for example,
16455    # in the case of _POSIX_SOURCE, which is predefined and required
16456    # on some systems where configure will not decide to define it.
16457    if (defundef == "undef") {
16458      print "/*", prefix defundef, macro, "*/"
16459      next
16460    }
16461  }
16462}
16463{ print }
16464_ACAWK
16465_ACEOF
16466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16467  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16468$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16469   { (exit 1); exit 1; }; }
16470fi # test -n "$CONFIG_HEADERS"
16471
16472
16473eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
16474shift
16475for ac_tag
16476do
16477  case $ac_tag in
16478  :[FHLC]) ac_mode=$ac_tag; continue;;
16479  esac
16480  case $ac_mode$ac_tag in
16481  :[FHL]*:*);;
16482  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16483$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16484   { (exit 1); exit 1; }; };;
16485  :[FH]-) ac_tag=-:-;;
16486  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16487  esac
16488  ac_save_IFS=$IFS
16489  IFS=:
16490  set x $ac_tag
16491  IFS=$ac_save_IFS
16492  shift
16493  ac_file=$1
16494  shift
16495
16496  case $ac_mode in
16497  :L) ac_source=$1;;
16498  :[FH])
16499    ac_file_inputs=
16500    for ac_f
16501    do
16502      case $ac_f in
16503      -) ac_f="$tmp/stdin";;
16504      *) # Look for the file first in the build tree, then in the source tree
16505	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16506	 # because $ac_f cannot contain `:'.
16507	 test -f "$ac_f" ||
16508	   case $ac_f in
16509	   [\\/$]*) false;;
16510	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16511	   esac ||
16512	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16513$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16514   { (exit 1); exit 1; }; };;
16515      esac
16516      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16517      ac_file_inputs="$ac_file_inputs '$ac_f'"
16518    done
16519
16520    # Let's still pretend it is `configure' which instantiates (i.e., don't
16521    # use $as_me), people would be surprised to read:
16522    #    /* config.h.  Generated by config.status.  */
16523    configure_input='Generated from '`
16524	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16525	`' by configure.'
16526    if test x"$ac_file" != x-; then
16527      configure_input="$ac_file.  $configure_input"
16528      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16529$as_echo "$as_me: creating $ac_file" >&6;}
16530    fi
16531    # Neutralize special characters interpreted by sed in replacement strings.
16532    case $configure_input in #(
16533    *\&* | *\|* | *\\* )
16534       ac_sed_conf_input=`$as_echo "$configure_input" |
16535       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16536    *) ac_sed_conf_input=$configure_input;;
16537    esac
16538
16539    case $ac_tag in
16540    *:-:* | *:-) cat >"$tmp/stdin" \
16541      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16542$as_echo "$as_me: error: could not create $ac_file" >&2;}
16543   { (exit 1); exit 1; }; } ;;
16544    esac
16545    ;;
16546  esac
16547
16548  ac_dir=`$as_dirname -- "$ac_file" ||
16549$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16550	 X"$ac_file" : 'X\(//\)[^/]' \| \
16551	 X"$ac_file" : 'X\(//\)$' \| \
16552	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16553$as_echo X"$ac_file" |
16554    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16555	    s//\1/
16556	    q
16557	  }
16558	  /^X\(\/\/\)[^/].*/{
16559	    s//\1/
16560	    q
16561	  }
16562	  /^X\(\/\/\)$/{
16563	    s//\1/
16564	    q
16565	  }
16566	  /^X\(\/\).*/{
16567	    s//\1/
16568	    q
16569	  }
16570	  s/.*/./; q'`
16571  { as_dir="$ac_dir"
16572  case $as_dir in #(
16573  -*) as_dir=./$as_dir;;
16574  esac
16575  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16576    as_dirs=
16577    while :; do
16578      case $as_dir in #(
16579      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16580      *) as_qdir=$as_dir;;
16581      esac
16582      as_dirs="'$as_qdir' $as_dirs"
16583      as_dir=`$as_dirname -- "$as_dir" ||
16584$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16585	 X"$as_dir" : 'X\(//\)[^/]' \| \
16586	 X"$as_dir" : 'X\(//\)$' \| \
16587	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16588$as_echo X"$as_dir" |
16589    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16590	    s//\1/
16591	    q
16592	  }
16593	  /^X\(\/\/\)[^/].*/{
16594	    s//\1/
16595	    q
16596	  }
16597	  /^X\(\/\/\)$/{
16598	    s//\1/
16599	    q
16600	  }
16601	  /^X\(\/\).*/{
16602	    s//\1/
16603	    q
16604	  }
16605	  s/.*/./; q'`
16606      test -d "$as_dir" && break
16607    done
16608    test -z "$as_dirs" || eval "mkdir $as_dirs"
16609  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16610$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16611   { (exit 1); exit 1; }; }; }
16612  ac_builddir=.
16613
16614case "$ac_dir" in
16615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16616*)
16617  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16618  # A ".." for each directory in $ac_dir_suffix.
16619  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16620  case $ac_top_builddir_sub in
16621  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16622  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16623  esac ;;
16624esac
16625ac_abs_top_builddir=$ac_pwd
16626ac_abs_builddir=$ac_pwd$ac_dir_suffix
16627# for backward compatibility:
16628ac_top_builddir=$ac_top_build_prefix
16629
16630case $srcdir in
16631  .)  # We are building in place.
16632    ac_srcdir=.
16633    ac_top_srcdir=$ac_top_builddir_sub
16634    ac_abs_top_srcdir=$ac_pwd ;;
16635  [\\/]* | ?:[\\/]* )  # Absolute name.
16636    ac_srcdir=$srcdir$ac_dir_suffix;
16637    ac_top_srcdir=$srcdir
16638    ac_abs_top_srcdir=$srcdir ;;
16639  *) # Relative name.
16640    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16641    ac_top_srcdir=$ac_top_build_prefix$srcdir
16642    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16643esac
16644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16645
16646
16647  case $ac_mode in
16648  :F)
16649  #
16650  # CONFIG_FILE
16651  #
16652
16653  case $INSTALL in
16654  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16655  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16656  esac
16657  ac_MKDIR_P=$MKDIR_P
16658  case $MKDIR_P in
16659  [\\/$]* | ?:[\\/]* ) ;;
16660  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16661  esac
16662_ACEOF
16663
16664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16665# If the template does not know about datarootdir, expand it.
16666# FIXME: This hack should be removed a few years after 2.60.
16667ac_datarootdir_hack=; ac_datarootdir_seen=
16668
16669ac_sed_dataroot='
16670/datarootdir/ {
16671  p
16672  q
16673}
16674/@datadir@/p
16675/@docdir@/p
16676/@infodir@/p
16677/@localedir@/p
16678/@mandir@/p
16679'
16680case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16681*datarootdir*) ac_datarootdir_seen=yes;;
16682*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16683  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16684$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16685_ACEOF
16686cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16687  ac_datarootdir_hack='
16688  s&@datadir@&$datadir&g
16689  s&@docdir@&$docdir&g
16690  s&@infodir@&$infodir&g
16691  s&@localedir@&$localedir&g
16692  s&@mandir@&$mandir&g
16693    s&\\\${datarootdir}&$datarootdir&g' ;;
16694esac
16695_ACEOF
16696
16697# Neutralize VPATH when `$srcdir' = `.'.
16698# Shell code in configure.ac might set extrasub.
16699# FIXME: do we really want to maintain this feature?
16700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16701ac_sed_extra="$ac_vpsub
16702$extrasub
16703_ACEOF
16704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16705:t
16706/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16707s|@configure_input@|$ac_sed_conf_input|;t t
16708s&@top_builddir@&$ac_top_builddir_sub&;t t
16709s&@top_build_prefix@&$ac_top_build_prefix&;t t
16710s&@srcdir@&$ac_srcdir&;t t
16711s&@abs_srcdir@&$ac_abs_srcdir&;t t
16712s&@top_srcdir@&$ac_top_srcdir&;t t
16713s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16714s&@builddir@&$ac_builddir&;t t
16715s&@abs_builddir@&$ac_abs_builddir&;t t
16716s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16717s&@INSTALL@&$ac_INSTALL&;t t
16718s&@MKDIR_P@&$ac_MKDIR_P&;t t
16719$ac_datarootdir_hack
16720"
16721eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16722  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16723$as_echo "$as_me: error: could not create $ac_file" >&2;}
16724   { (exit 1); exit 1; }; }
16725
16726test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16727  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16728  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16729  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16730which seems to be undefined.  Please make sure it is defined." >&5
16731$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16732which seems to be undefined.  Please make sure it is defined." >&2;}
16733
16734  rm -f "$tmp/stdin"
16735  case $ac_file in
16736  -) cat "$tmp/out" && rm -f "$tmp/out";;
16737  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16738  esac \
16739  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16740$as_echo "$as_me: error: could not create $ac_file" >&2;}
16741   { (exit 1); exit 1; }; }
16742 ;;
16743  :H)
16744  #
16745  # CONFIG_HEADER
16746  #
16747  if test x"$ac_file" != x-; then
16748    {
16749      $as_echo "/* $configure_input  */" \
16750      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16751    } >"$tmp/config.h" \
16752      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16753$as_echo "$as_me: error: could not create $ac_file" >&2;}
16754   { (exit 1); exit 1; }; }
16755    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16756      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16757$as_echo "$as_me: $ac_file is unchanged" >&6;}
16758    else
16759      rm -f "$ac_file"
16760      mv "$tmp/config.h" "$ac_file" \
16761	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16762$as_echo "$as_me: error: could not create $ac_file" >&2;}
16763   { (exit 1); exit 1; }; }
16764    fi
16765  else
16766    $as_echo "/* $configure_input  */" \
16767      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16768      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16769$as_echo "$as_me: error: could not create -" >&2;}
16770   { (exit 1); exit 1; }; }
16771  fi
16772 ;;
16773
16774
16775  esac
16776
16777done # for ac_tag
16778
16779
16780{ (exit 0); exit 0; }
16781_ACEOF
16782chmod +x $CONFIG_STATUS
16783ac_clean_files=$ac_clean_files_save
16784
16785test $ac_write_fail = 0 ||
16786  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16787$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16788   { (exit 1); exit 1; }; }
16789
16790
16791# configure is writing to config.log, and then calls config.status.
16792# config.status does its own redirection, appending to config.log.
16793# Unfortunately, on DOS this fails, as config.log is still kept open
16794# by configure, so config.status won't be able to write to it; its
16795# output is simply discarded.  So we exec the FD to /dev/null,
16796# effectively closing config.log, so it can be properly (re)opened and
16797# appended to by config.status.  When coming back to configure, we
16798# need to make the FD available again.
16799if test "$no_create" != yes; then
16800  ac_cs_success=:
16801  ac_config_status_args=
16802  test "$silent" = yes &&
16803    ac_config_status_args="$ac_config_status_args --quiet"
16804  exec 5>/dev/null
16805  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16806  exec 5>>config.log
16807  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16808  # would make configure fail if this is the last instruction.
16809  $ac_cs_success || { (exit 1); exit 1; }
16810fi
16811if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16812  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16813$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16814fi
16815
16816
16817if test x$ODIRECT != xyes; then
16818  { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
16819$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
16820fi
16821